/* ------------------------------------------------------------------
   Valkear : palette tirée du logo (or fendu, crépuscule des cimes, couchant sur la cité)
   ------------------------------------------------------------------ */

@font-face { font-family: "Cinzel"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/cinzel-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("../assets/fonts/alegreya-sans-latin-400-italic.woff2") format("woff2"); }

:root {
  --braise: #0f0a08;          /* fond : noir de roche brûlée */
  --crepuscule: #1b2231;      /* ardoise des cimes enneigées */
  --crepuscule-bas: #141a26;
  --or: #d3a24c;              /* or fendu des lettres */
  --or-clair: #f0d08f;
  --or-sombre: #8a6a2f;
  --ambre: #e07b39;           /* soleil couchant sur la cité */
  --parchemin: #efe5d0;
  --brume: #b1ab9c;
  --ligne: rgba(211, 162, 76, 0.28);
  --ok: #7cc48a;
  --alerte: #e5675a;

  --titre: "Cinzel", "Trajan Pro", Georgia, serif;
  --texte: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --page: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--braise);
  color: var(--parchemin);
  font-family: var(--texte);
  font-size: 19px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: ""; position: fixed; inset: auto 0 0 0; height: 48vh; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 75% 100% at 50% 135%, rgba(255, 92, 20, 0.2), transparent 70%);
}
main, .site-footer { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--or); color: #1a1208; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 3px; }

.wrap { width: min(100% - 64px, var(--page)); margin-inline: auto; }

/* ------------------------------------------------------------------
   Boutons : angles coupés, comme les pointes du logo
   ------------------------------------------------------------------ */
.btn {
  --cut: 10px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 26px;
  font-family: var(--texte); font-weight: 700; font-size: 18px; letter-spacing: 0.01em; line-height: 1.1;
  text-decoration: none; text-align: center; cursor: pointer; border: 0;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  transition: filter 0.15s ease;
}
.btn-icon { width: 1.25em; height: 1.25em; flex: none; }

.btn-gold {
  color: #1a1208;
  background: linear-gradient(180deg, var(--or-clair) 0%, var(--or) 48%, #b98532 100%);
}
.btn-gold::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.5) 50%, transparent 62%);
  transform: translateX(-130%); transition: transform 0.8s ease;
}
.btn-gold:hover { filter: brightness(1.08); }
.btn-gold:hover::after { transform: translateX(130%); }

.btn-line { color: var(--parchemin); background: var(--or); }
.btn-line::before {
  content: ""; position: absolute; inset: 1.5px; z-index: -1; background: var(--braise);
  clip-path: polygon(calc(var(--cut) - 1px) 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, calc(var(--cut) - 1px) 100%, 0 calc(100% - var(--cut) + 1px), 0 calc(var(--cut) - 1px));
}
.btn-line:hover { filter: brightness(1.15); }

.btn-small { min-height: 40px; padding: 0 18px; font-size: 17px; --cut: 8px; }
.btn-large { min-height: 60px; padding: 0 34px; font-size: 20px; --cut: 13px; }
.btn-xl { width: 100%; min-height: 68px; padding: 0 28px; font-size: 21px; --cut: 15px; }

.btn.is-soon { cursor: default; filter: grayscale(0.7) brightness(0.62); }
.btn.is-soon:hover { filter: grayscale(0.7) brightness(0.62); }

.text-link { color: var(--or-clair); text-underline-offset: 4px; }
.text-link:hover { color: var(--parchemin); }

/* ------------------------------------------------------------------
   En-tête
   ------------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 16px max(32px, calc((100vw - var(--page)) / 2));
  transition: background-color 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(20, 16, 12, 0.92);
  border-bottom-color: var(--ligne);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 28px; height: 28px; color: var(--or); }
.brand-name { font-family: var(--titre); font-weight: 700; font-size: 24px; letter-spacing: 0.1em; color: var(--parchemin); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-weight: 500; font-size: 18px; text-decoration: none; color: rgba(239, 229, 208, 0.82);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--or-clair); }
.nav a.is-current { color: var(--or-clair); border-bottom-color: var(--or); }

.nav-toggle {
  display: none; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ligne);
  background: rgba(20, 16, 12, 0.7); color: var(--parchemin); cursor: pointer; place-items: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; content: ""; position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

/* ------------------------------------------------------------------
   Accueil : l'emblème est l'élément marquant
   ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 104px 24px 72px; text-align: center;
}

/* Fond : lueur de braise, et un diaporama de captures quand elles existent */
.hero-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-scene::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 160px;
  background: linear-gradient(to bottom, transparent, var(--braise));
}
.hero-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 85% 50% at 50% 108%, rgba(140, 38, 12, 0.5), transparent 70%),
    radial-gradient(ellipse 60% 42% at 50% 38%, rgba(70, 30, 16, 0.4), transparent 75%),
    #080404;
}
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slides::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 62% at 50% 46%, rgba(8, 4, 3, 0.5), rgba(8, 4, 3, 0.9) 88%),
    linear-gradient(to bottom, rgba(8, 4, 3, 0.55), transparent 24%);
}
.hero-slide {
  position: absolute; inset: -3%; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.8s ease;
}
.hero-slide.is-on { opacity: 0.6; animation: slide-zoom 16s ease-out forwards; }
@keyframes slide-zoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 100%; }
.hero-lead, .hero-note, .server-state, .discord-live { text-shadow: 0 1px 16px rgba(0, 0, 0, 0.95), 0 0 3px rgba(0, 0, 0, 0.7); }

.emblem {
  --mx: 32%; --my: 24%;
  position: relative;
  width: min(560px, 82vw, calc((100svh - 400px) * 0.924));
  min-width: 250px;
  aspect-ratio: 1152 / 1247;
}
.emblem img {
  display: block; width: 100%; height: 100%;
  filter: drop-shadow(0 28px 70px rgba(224, 123, 57, 0.22));
}
/* Reflet de torche : une lumière chaude qui glisse sur l'or, limitée à la forme du logo */
.emblem-glint {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("../assets/img/valkear-emblem.webp") center / 100% 100% no-repeat;
  mask: url("../assets/img/valkear-emblem.webp") center / 100% 100% no-repeat;
  background: radial-gradient(circle 230px at var(--mx) var(--my), rgba(255, 244, 214, 0.95) 0%, rgba(255, 226, 160, 0.4) 30%, rgba(255, 226, 160, 0) 100%);
  mix-blend-mode: overlay;
}

.hero-lead {
  max-width: 46rem; margin-top: 26px;
  font-size: 22px; line-height: 1.55; color: var(--parchemin);
  text-wrap: balance;
}
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 30px; }
.hero-note { max-width: 36rem; margin-top: 18px; font-size: 17px; color: var(--brume); }

.server-state { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 17px; color: var(--brume); }
.server-state .dot, .discord-live .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ambre); box-shadow: 0 0 10px var(--ambre); animation: dot-pulse 2.6s ease-in-out infinite; }
.discord-live .dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
@keyframes dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.discord-live { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 17px; color: var(--brume); }
.server-state[data-state="soon"] .dot { background: var(--or); box-shadow: 0 0 10px var(--or); }
.server-state[data-state="open"] .dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.server-state[data-state="maintenance"] .dot { background: var(--alerte); box-shadow: 0 0 10px var(--alerte); }

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */
.section { position: relative; padding: 100px 0; }

.title {
  font-family: var(--titre); font-weight: 700; color: var(--parchemin);
  font-size: clamp(30px, 4.2vw, 54px); line-height: 1.12; letter-spacing: 0.02em;
  text-wrap: balance;
}

/* Apparition douce des blocs au défilement (sans JavaScript, tout reste visible) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Séparateur : fine ligne dorée avec un losange, comme les pointes du logo */
.rule-ornament { display: flex; align-items: center; gap: 18px; width: min(100% - 64px, 760px); margin: 0 auto; }
.rule-ornament::before, .rule-ornament::after { content: ""; flex: 1; height: 1px; }
.rule-ornament::before { background: linear-gradient(to right, transparent, rgba(211, 162, 76, 0.55)); }
.rule-ornament::after { background: linear-gradient(to left, transparent, rgba(211, 162, 76, 0.55)); }
.rule-ornament i { width: 9px; height: 9px; background: var(--or); transform: rotate(45deg); }

/* Éléments communs aux sections */
.eyebrow {
  margin-bottom: 18px; font-weight: 700; font-size: 15px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--or);
}
.section-head { max-width: 46rem; margin: 0 auto 64px; text-align: center; }
.subtitle { margin-top: 20px; font-style: italic; font-size: 21px; line-height: 1.55; color: var(--brume); text-wrap: balance; }

/* Le projet : un court texte et un panneau de chiffres */
.section-project { padding-bottom: 90px; }
.project-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 90px; align-items: center; }
.project-text .title { margin-bottom: 28px; }
.project-text p:not(.eyebrow) { max-width: 33rem; font-size: 22px; line-height: 1.7; color: rgba(239, 229, 208, 0.94); }
.project-text p:not(.eyebrow) + p { margin-top: 22px; }
.project-text strong { color: var(--or-clair); font-weight: 700; }
.project-text .project-lead { font-size: 23px; }
.project-text .project-note { margin-top: 30px; padding-left: 20px; border-left: 3px solid var(--ambre); font-style: italic; color: var(--parchemin); }

.stats {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 36px;
  padding: 52px 48px; border: 1px solid var(--ligne); background: rgba(15, 8, 6, 0.72); box-shadow: 0 0 90px rgba(255, 92, 20, 0.12);
}
.stats::before, .stats::after { content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--or); }
.stats::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.stats::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.stats dt { font-family: var(--titre); font-weight: 500; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; color: var(--parchemin); }
.stats dd { margin: 10px 0 0; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brume); }

/* Le principe : quatre cartes à icônes */
.section-principle { padding-top: 70px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.feature { padding: 38px 32px 42px; border: 1px solid var(--ligne); background: rgba(239, 229, 208, 0.02); transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; }
.feature:hover { border-color: rgba(211, 162, 76, 0.65); box-shadow: 0 18px 50px rgba(255, 92, 20, 0.1); background: rgba(239, 229, 208, 0.045); }
.feature:hover .feature-icon { transform: translateY(-3px) scale(1.07); }
.feature-icon { width: 56px; height: 56px; margin-bottom: 26px; fill: none; stroke: var(--or); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s ease; }
.feature h3 { font-family: var(--titre); font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: 0.03em; color: var(--parchemin); margin-bottom: 12px; }
.feature p { color: var(--brume); font-size: 18px; line-height: 1.55; }

/* Avancement : frise d'étapes pilotée par js/config.js */
.progress { max-width: 1000px; margin: 0 auto; }
.progress-count { margin-bottom: 38px; text-align: right; font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--or-clair); }
.track { --n: 5; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.track-line {
  position: absolute; top: 10px; height: 2px; background: rgba(211, 162, 76, 0.2);
  left: calc(100% / (var(--n) * 2)); right: calc(100% / (var(--n) * 2));
}
.track-fill { display: block; height: 100%; width: var(--fill, 0%); background: linear-gradient(to right, var(--or-sombre), var(--or-clair)); }
.track .step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.track .node {
  position: relative; z-index: 1; width: 22px; height: 22px; display: grid; place-items: center;
}
.track .node::before {
  content: ""; width: 14px; height: 14px; transform: rotate(45deg);
  border: 2px solid rgba(211, 162, 76, 0.4); background: var(--braise);
}
.track .is-done .node::before { background: var(--or); border-color: var(--or); }
.track .is-current .node::before { background: var(--or-clair); border-color: var(--or-clair); box-shadow: 0 0 0 5px rgba(240, 208, 143, 0.16), 0 0 22px rgba(240, 208, 143, 0.55); }
.track .step-label { font-weight: 700; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(177, 171, 156, 0.7); padding: 0 6px; }
.track .is-done .step-label { color: rgba(239, 229, 208, 0.9); }
.track .is-current .step-label { color: var(--or-clair); }

/* Actualités */
.section-news { padding-top: 70px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; max-width: 980px; margin: 0 auto; }
.news-card { display: flex; flex-direction: column; border: 1px solid var(--ligne); background: rgba(239, 229, 208, 0.03); }
.news-art {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 8;
  background: radial-gradient(ellipse 80% 90% at 50% 20%, #34170d, #0f0807 75%);
  border-bottom: 1px solid var(--ligne);
}
.news-art img { position: relative; width: 112px; height: auto; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6)); }
.news-tag {
  position: absolute; left: 0; bottom: 0; padding: 7px 16px;
  background: var(--or); color: #1a1208; font-weight: 700; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase;
}
.news-body { padding: 26px 28px 30px; }
.news-body h3 { font-family: var(--titre); font-weight: 700; font-size: 22px; line-height: 1.3; color: var(--parchemin); }
.news-body time { display: block; margin-top: 6px; font-size: 16px; color: var(--brume); }
.news-body p { margin-top: 14px; color: rgba(239, 229, 208, 0.84); font-size: 18px; line-height: 1.55; }
.news-more { margin-top: 44px; text-align: center; font-size: 19px; }
.news-empty { text-align: center; color: var(--brume); }

/* Cyrodiil : galerie de captures */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 16px; }
.gallery-item {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--ligne); background: #000; color: inherit; font: inherit;
}
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item .gallery-caption {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 14px; text-align: left; font-size: 17px;
  background: linear-gradient(to top, rgba(8, 4, 3, 0.9), transparent);
}

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8, 4, 3, 0.95); color: var(--parchemin);
}
.lightbox::backdrop { background: rgba(8, 4, 3, 0.8); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { display: grid; justify-items: center; gap: 14px; margin: 0; max-width: 92vw; }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border: 1px solid var(--ligne); }
.lightbox figcaption { font-size: 18px; color: var(--brume); min-height: 1.4em; }
.lightbox button { position: absolute; border: 0; background: transparent; color: var(--parchemin); cursor: pointer; font-size: 44px; line-height: 1; padding: 12px 18px; }
.lightbox button:hover { color: var(--or-clair); }
.lightbox-close { top: 14px; right: 18px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Bande d'image avant « Jouer » */
.band { position: relative; display: grid; place-items: center; height: clamp(260px, 36vw, 440px); overflow: hidden; margin-top: 30px; border-block: 1px solid var(--ligne); }
.band-img { position: absolute; inset: -14% 0; background-size: cover; background-position: center; will-change: transform; }
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--braise), rgba(8, 4, 3, 0.4) 28%, rgba(8, 4, 3, 0.4) 72%, var(--braise));
}
.band-text {
  position: relative; z-index: 1; padding: 0 24px; text-align: center; text-wrap: balance;
  font-family: var(--titre); font-weight: 700; font-size: clamp(26px, 4.2vw, 52px); line-height: 1.15; letter-spacing: 0.02em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.95);
}

/* Jouer : le launcher est la pièce centrale */
.section-play {
  padding: 120px 0 140px; overflow: hidden;
  background: radial-gradient(ellipse 75% 65% at 82% 100%, rgba(150, 40, 12, 0.38), transparent 70%), var(--braise);
}
.play-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 90px; align-items: center; }
.steps { margin-top: 44px; counter-reset: etape; }
.steps li { position: relative; padding: 0 0 34px 72px; counter-increment: etape; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(etape); position: absolute; left: 0; top: -6px;
  font-family: var(--titre); font-weight: 700; font-size: 44px; line-height: 1; color: var(--or);
}
.steps h3 { font-family: var(--titre); font-weight: 700; font-size: 22px; line-height: 1.3; color: var(--parchemin); margin-bottom: 6px; }
.steps p { color: rgba(239, 229, 208, 0.86); max-width: 30rem; }

.download {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 44px 40px 36px;
  background: linear-gradient(165deg, rgba(20, 16, 12, 0.94), rgba(20, 16, 12, 0.8));
  border: 1px solid rgba(211, 162, 76, 0.55);
  box-shadow: 0 0 90px rgba(224, 123, 57, 0.2), inset 0 0 0 6px rgba(20, 16, 12, 0.9), inset 0 0 0 7px var(--ligne);
}
.download-emblem { width: 150px; margin-bottom: 14px; filter: drop-shadow(0 12px 30px rgba(224, 123, 57, 0.3)); }
.download h3 { font-family: var(--titre); font-weight: 700; font-size: 30px; letter-spacing: 0.04em; }
.download-meta { margin: 4px 0 26px; color: var(--brume); font-size: 18px; }
.download-note { margin-top: 18px; color: rgba(239, 229, 208, 0.84); font-size: 17px; max-width: 24rem; }
.download-os { margin-top: 12px; padding: 10px 14px; border-left: 3px solid var(--ambre); background: rgba(224, 123, 57, 0.1); text-align: left; font-size: 16px; }
.download .text-link { margin-top: 16px; font-size: 17px; }

/* Questions fréquentes */
.faq-wrap { max-width: 860px; }
.faq-wrap .title { margin-bottom: 40px; }
details { border-top: 1px solid var(--ligne); }
details:last-of-type { border-bottom: 1px solid var(--ligne); }
summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 48px 22px 0; font-weight: 700; font-size: 20px; line-height: 1.35;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--or); border-bottom: 2px solid var(--or);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease;
}
details[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
summary:hover { color: var(--or-clair); }
details p { padding: 0 48px 26px 0; max-width: 40rem; color: rgba(239, 229, 208, 0.86); }

/* ------------------------------------------------------------------
   Pied de page
   ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--ligne); padding: 64px 0 56px; background: #0a0605; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px 80px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 22px; }
.footer-brand img { width: 92px; }
.footer-brand p { max-width: 20rem; color: rgba(239, 229, 208, 0.85); }
.footer-links { display: grid; gap: 10px; justify-items: start; }
.footer-links a { color: rgba(239, 229, 208, 0.85); text-underline-offset: 4px; }
.footer-links a:hover { color: var(--or-clair); }
.legal { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid rgba(211, 162, 76, 0.16); font-size: 15px; line-height: 1.55; color: var(--brume); max-width: 62rem; }

/* ------------------------------------------------------------------
   Écrans moyens et petits
   ------------------------------------------------------------------ */
@media (max-width: 1040px) {
  .project-grid, .play-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { margin-bottom: 48px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
  .nav-toggle { display: inline-grid; }
  .nav {
    position: fixed; top: 72px; left: 0; right: 0; z-index: 49;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 20px; background: rgba(20, 16, 12, 0.98); border-bottom: 1px solid var(--ligne);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(211, 162, 76, 0.14); font-size: 20px; }
  .nav a.is-current { border-bottom-color: rgba(211, 162, 76, 0.14); }
  .site-header { padding: 14px 20px; gap: 14px; }
}

@media (max-width: 640px) {
  body { font-size: 18px; }
  .wrap { width: min(100% - 40px, var(--page)); }
  .section { padding: 76px 0; }
  .section-play { padding: 90px 0 100px; }
  .brand-name { font-size: 21px; }
  .hero { padding: 92px 20px 56px; }
  .gallery { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 220px; }
  .gallery-item:first-child { grid-column: auto; grid-row: auto; }
  .hero-lead { font-size: 20px; }
  .cta-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 380px; }
  .btn-large { padding: 0 22px; font-size: 19px; }
  .stats { padding: 34px 26px; gap: 32px 20px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .progress-count { text-align: left; }
  .track { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-left: 2px; }
  .track-line { top: 11px; bottom: 11px; left: 10px; right: auto; width: 2px; height: auto; }
  .track-fill { width: 100%; height: var(--fill, 0%); background: linear-gradient(to bottom, var(--or-sombre), var(--or-clair)); }
  .track .step { flex-direction: row; text-align: left; gap: 20px; }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .steps li { padding-left: 58px; }
  .download { padding: 34px 22px 28px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .site-header .btn { padding: 0 14px; flex: none; }
  .site-header .btn-icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
