/* Site de Tacaryth Studio — Dungeons of Therasia: The Scarlet Sea (05/12/2026)
   Mêmes polices et mêmes ors que le jeu (Cinzel pour les titres, Alegreya pour le texte, licences OFL dans fonts/). */
@font-face { font-family: "Cinzel"; font-weight: 700; font-display: swap; src: url("fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-weight: 400; font-display: swap; src: url("fonts/alegreya-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/alegreya-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-weight: 700; font-display: swap; src: url("fonts/alegreya-latin-700-normal.woff2") format("woff2"); }

:root {
  --or: #e8c97a; --or-fonce: #b8913f; --encre: #efe3c8; --pale: #b9a582;
  --nuit: #0e0b09; --bois: #1a1410; --carte: #221a13; --bord: #4a3a26; --pourpre: #8e5bd6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--nuit); color: var(--encre); font: 19px/1.6 "Alegreya", Georgia, serif; }
img { max-width: 100%; display: block; }
a { color: var(--or); }
h1, h2, h3 { font-family: "Cinzel", "Times New Roman", serif; color: var(--or); letter-spacing: .03em; line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); text-align: center; }
h2::after { content: ""; display: block; width: 120px; height: 2px; margin: .45em auto 0; background: linear-gradient(90deg, transparent, var(--or-fonce), transparent); }
.lang-en { display: none; }
html[lang="en"] .lang-fr { display: none; }
html[lang="en"] .lang-en { display: revert; }

/* ---- barre du haut ---- */
.barre { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1.2rem; padding: .5rem 1.2rem;
  background: rgba(14, 11, 9, .88); backdrop-filter: blur(6px); border-bottom: 1px solid var(--bord); }
.barre .marque { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--or); font-family: "Cinzel", serif; font-size: 1.05rem; }
.barre .marque img { width: 38px; height: 38px; object-fit: contain; }
.barre nav { display: flex; gap: 1.1rem; margin-left: auto; flex-wrap: wrap; }
.barre nav a { color: var(--encre); text-decoration: none; font-size: .95rem; }
.barre nav a:hover { color: var(--or); }
.langue { display: flex; border: 1px solid var(--bord); border-radius: 6px; overflow: hidden; }
.langue button { background: none; border: 0; color: var(--pale); font: 700 .8rem "Cinzel", serif; padding: .35rem .6rem; cursor: pointer; }
.langue button[aria-pressed="true"] { background: var(--or-fonce); color: var(--nuit); }

/* ---- bannière ---- */
.banniere { position: relative; min-height: 88vh; display: grid; place-items: end center; text-align: center; padding: 3rem 1.2rem 4.5rem;
  background: linear-gradient(180deg, rgba(14,11,9,.15) 0%, rgba(14,11,9,.35) 55%, var(--nuit) 100%), url("img/banniere.webp") center 35% / cover no-repeat; }
.banniere h1 { font-size: clamp(2.1rem, 6vw, 4.2rem); text-shadow: 0 3px 14px #000; margin-bottom: .1em; }
.banniere .sous-titre { font-family: "Cinzel", serif; font-size: clamp(1.1rem, 2.6vw, 1.7rem); color: var(--encre); text-shadow: 0 2px 8px #000; margin: 0 0 1.1rem; }
.banniere .accroche { max-width: 46rem; margin: 0 auto 1.6rem; font-size: 1.15rem; text-shadow: 0 2px 8px #000; }
.boutons { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.bouton { display: inline-block; padding: .75rem 1.5rem; border-radius: 6px; text-decoration: none; font: 700 1rem "Cinzel", serif; letter-spacing: .04em;
  background: linear-gradient(180deg, #f0d48a, #b8913f); color: #1a1208; border: 1px solid #f3dea2; box-shadow: 0 4px 16px rgba(0,0,0,.5); }
.bouton.second { background: rgba(14,11,9,.6); color: var(--or); border-color: var(--or-fonce); }
.bouton[aria-disabled="true"] { opacity: .75; cursor: default; }
.etat { margin-top: 1rem; color: var(--pale); font-style: italic; text-shadow: 0 2px 6px #000; }

/* ---- sections ---- */
section { padding: 4.5rem 1.2rem; }
.large { max-width: 1180px; margin: 0 auto; }
.texte { max-width: 46rem; margin: 0 auto 2rem; text-align: center; color: var(--encre); }
.atouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.atout { background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; padding: 1.3rem 1.4rem; }
.atout h3 { font-size: 1.1rem; }
.atout p { margin: 0; color: var(--encre); }

.lieux { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 2.2rem; }
.lieux figure { margin: 0; position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--bord); aspect-ratio: 16 / 9; }
.lieux img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.lieux figure:hover img { transform: scale(1.05); }
.lieux figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .5rem .8rem; font-family: "Cinzel", serif; font-size: .9rem; color: var(--or);
  background: linear-gradient(transparent, rgba(0,0,0,.85)); }

.boucles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.4rem; }
.boucles figure { margin: 0; }
.boucles video { width: 100%; aspect-ratio: 15 / 8; object-fit: cover; border-radius: 8px; border: 1px solid var(--bord); background: #000; display: block; box-shadow: 0 8px 26px rgba(0,0,0,.55); }
.boucles figcaption { margin-top: .5rem; text-align: center; color: var(--pale); font-style: italic; }
@media (max-width: 760px) { .boucles { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .boucles video { animation: none; } }

/* ---- histoire ---- */
.histoire { background: var(--bois); }
.chapitres { display: grid; gap: 2.4rem; }
.chapitre { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.chapitre:nth-child(even) .image { order: 2; }
.chapitre .image img { border-radius: 10px; border: 1px solid var(--bord); box-shadow: 0 8px 30px rgba(0,0,0,.6); }
.chapitre h3 { font-size: 1.3rem; }
@media (max-width: 760px) { .chapitre { grid-template-columns: 1fr; } .chapitre:nth-child(even) .image { order: 0; } }

/* ---- héros : la troupe devant la plage peinte (05/12/2026) ---- */
.heros-scene { position: relative; padding-bottom: 3.5rem;
  background: linear-gradient(180deg, var(--nuit) 0%, rgba(14,11,9,.55) 22%, rgba(14,11,9,.45) 60%, var(--nuit) 100%), url("img/heros_plage.webp") center 60% / cover no-repeat; }
.heros-scene .texte { text-shadow: 0 2px 8px #000; }
.troupe { display: flex; justify-content: center; align-items: flex-end; margin: 1.5rem auto 0; padding: 0 1rem; }
.heros-perso { position: relative; flex: 0 1 140px; margin: 0 -14px; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; font: inherit; transition: transform .25s, filter .25s; }
.heros-perso:nth-child(even) { margin-bottom: 1.4rem; }
.heros-perso::before { content: ""; position: absolute; left: 8%; right: 8%; top: 18%; bottom: 6%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(var(--c), .55) 0%, rgba(var(--c), 0) 70%); filter: blur(8px); opacity: .55; transition: opacity .25s; z-index: 0; }
.heros-perso img { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 10px 12px rgba(0,0,0,.75));
  /* les portraits s'arrêtent à la taille : le bas se fond dans la plage au lieu d'une coupe nette */
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 98%); mask-image: linear-gradient(180deg, #000 72%, transparent 98%); }
.heros-nom { display: none; }
.troupe:hover .heros-perso, .troupe:focus-within .heros-perso { filter: brightness(.7) saturate(.85); }
.troupe .heros-perso:hover, .troupe .heros-perso:focus-visible, .troupe .heros-perso.actif { filter: none; transform: translateY(-8px) scale(1.08); z-index: 3; }
.heros-perso:hover::before, .heros-perso:focus-visible::before, .heros-perso.actif::before { opacity: 1; }
.heros-perso:focus-visible { outline: none; }
.heros-perso:focus-visible img { outline: 2px solid var(--or); outline-offset: 2px; border-radius: 6px; }
.cartouche { max-width: 40rem; min-height: 7.5rem; margin: 1.6rem auto 0; padding: 1rem 1.6rem; text-align: center;
  background: rgba(14,11,9,.78); border: 1px solid var(--or-fonce); border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.6); }
.cartouche strong { display: block; font: 700 1.35rem "Cinzel", serif; color: var(--or); }
.cartouche em { display: block; color: var(--pale); margin-bottom: .4rem; }
.cartouche q { quotes: none; font-style: italic; }
@media (max-width: 900px) {
  .troupe { flex-wrap: wrap; gap: .6rem; }
  .heros-perso, .heros-perso:nth-child(even) { flex: 0 0 calc(20% - .6rem); margin: 0; }
}
@media (max-width: 600px) {
  .heros-perso, .heros-perso:nth-child(even) { flex-basis: calc(33.3% - .6rem); }
  .heros-nom { display: block; font: 700 .72rem "Cinzel", serif; color: var(--or); margin-top: -.3rem; text-shadow: 0 1px 4px #000; position: relative; z-index: 2; }
}

/* ---- studio ---- */
.studio .bloc { display: grid; grid-template-columns: 320px 1fr; gap: 2.4rem; align-items: center; max-width: 960px; margin: 0 auto; }
.studio .bloc img { width: 100%; }
@media (max-width: 760px) { .studio .bloc { grid-template-columns: 1fr; } .studio .bloc img { max-width: 280px; margin: 0 auto; } }

/* ---- contact / pied ---- */
.contact { background: var(--bois); text-align: center; }
.contact .mail { font: 700 1.3rem "Cinzel", serif; }
footer { padding: 2rem 1.2rem; text-align: center; color: var(--pale); font-size: .9rem; border-top: 1px solid var(--bord); }
footer a { color: var(--pale); }

/* ---- page simple (mentions légales) ---- */
.page { max-width: 48rem; margin: 0 auto; padding: 3rem 1.2rem; }
.page h1 { font-size: 2rem; }
.page h2 { text-align: left; font-size: 1.3rem; margin-top: 2rem; }
.page h2::after { margin-left: 0; }

@media (max-width: 860px) { .lieux { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .lieux { grid-template-columns: 1fr; } }
/* téléphone : le menu se réduit au logo et au choix de langue (les sections se suivent sur la page) */
@media (max-width: 720px) { .barre nav { display: none; } .barre .langue { margin-left: auto; } }
