/* ==========================================================
   Lords of Echoes — feuille de style
   ========================================================== */

:root {
  --ink: #0d0e0f;
  --ink-2: #131416;
  --ink-3: #1a1b1d;
  --cream: #efe6d4;
  --cream-2: #d9ceb9;
  --muted: #a99f8d;
  --gold: #c49a5c;
  --gold-light: #e0bd82;
  --gold-dark: #8a6330;
  --line: rgba(196, 154, 92, 0.35);
  --line-soft: rgba(239, 230, 212, 0.14);

  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "EB Garamond", Garamond, Georgia, serif;

  --header-h: 72px;
  --gutter: clamp(20px, 6vw, 96px);
  --maxw: 1440px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 1px solid var(--gold-light); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typo commune ---------- */
.brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--cream);
  white-space: nowrap;
}
.brand-name small, .hero-title small { font-size: 0.62em; letter-spacing: 0.04em; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream-2);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 3.9vw, 58px);
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
  margin-bottom: 22px;
}

.lead {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
  color: var(--cream-2);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}

/* ---------- Ornement (ligne — losange — ligne) ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 190px;
  margin: 0 auto;
}
.ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament i {
  width: 7px; height: 7px;
  border: 1px solid var(--gold-light);
  transform: rotate(45deg);
  flex: none;
}
.ornament--sm { width: 120px; }
.ornament--sm i { width: 5px; height: 5px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background-color .25s, border-color .25s, color .25s, box-shadow .25s, transform .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-gold {
  color: #fbf3e2;
  background: linear-gradient(180deg, #b58449 0%, #8f6431 100%);
  border: 1px solid #d3a86a;
  box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.25), 0 6px 20px rgba(0, 0, 0, 0.35);
}
.btn-gold:hover {
  background: linear-gradient(180deg, #c59252 0%, #9c6e37 100%);
  box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.35), 0 8px 28px rgba(196, 154, 92, 0.25);
}

.btn-ghost {
  color: var(--cream);
  background: rgba(10, 10, 10, 0.45);
  border: 1px solid rgba(239, 230, 212, 0.55);
  backdrop-filter: blur(2px);
}
.btn-ghost:hover { border-color: var(--gold-light); background: rgba(10, 10, 10, 0.6); }

.btn-outline {
  color: var(--cream);
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid var(--gold);
  padding: 0 24px;
  height: 46px;
  font-size: 12px;
}
.btn-outline svg { width: 16px; height: 16px; transition: transform .25s; }
.btn-outline:hover { background: rgba(196, 154, 92, 0.14); }
.btn-outline:hover svg { transform: translateX(4px); }

.btn-sm { height: 36px; padding: 0 18px; font-size: 12px; gap: 10px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-lg { height: 56px; padding: 0 30px; min-width: 238px; font-size: 14px; }
.btn-lg svg { width: 22px; height: 22px; }

.play-ring {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.play-ring svg { width: 16px; height: 16px; margin-left: 2px; }

/* ==========================================================
   EN-TÊTE
   ========================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(8, 8, 9, 0.88) 0%, rgba(8, 8, 9, 0.55) 70%, rgba(8, 8, 9, 0) 100%);
  transition: background-color .35s, box-shadow .35s;
}
.site-header.is-scrolled {
  background-color: rgba(10, 10, 11, 0.94);
  box-shadow: 0 1px 0 var(--line-soft), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 clamp(20px, 4.5vw, 64px);
}

.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand-tree { width: 44px; height: 44px; color: var(--gold); }
.site-header .brand-name { font-size: 25px; }

.main-nav { margin: 0 auto; }
.main-nav ul { display: flex; gap: clamp(20px, 2.6vw, 44px); }
.main-nav a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: 15px;
  color: var(--cream-2);
  transition: color .2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--gold-light); }
.main-nav a.is-active::after, .main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; flex: none; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; color: var(--cream-2); transition: color .2s; }
.icon-btn:hover { color: var(--gold-light); }
.icon-btn svg { width: 19px; height: 19px; }
.header-sep { width: 1px; height: 26px; background: var(--line-soft); }

/* Sélecteur de langue */
.lang { position: relative; }
.lang-toggle {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; letter-spacing: 0.06em;
  color: var(--cream-2);
  padding: 6px 2px;
}
.lang-toggle:hover { color: var(--gold-light); }
.lang-globe { width: 15px; height: 15px; }
.lang-chevron { width: 12px; height: 12px; transition: transform .2s; }
.lang.is-open .lang-chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  min-width: 80px;
  padding: 6px 0;
  background: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 5;
}
.lang--up .lang-menu { top: auto; bottom: calc(100% + 8px); transform: translateY(4px); }
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu li { padding: 6px 16px; font-size: 13px; letter-spacing: 0.06em; cursor: pointer; color: var(--cream-2); }
.lang-menu li:hover, .lang-menu li[aria-selected="true"] { color: var(--gold-light); }

.burger { display: none; width: 36px; height: 36px; position: relative; }
.burger span {
  position: absolute; left: 7px; right: 7px; height: 1.5px;
  background: var(--cream);
  transition: transform .3s, opacity .3s;
}
.burger span:nth-child(1) { top: 11px; }
.burger span:nth-child(2) { top: 17px; }
.burger span:nth-child(3) { top: 23px; }
.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================
   SLOTS — chaque bloc = 100 % largeur × 100 % hauteur d'écran
   Les images sont fournies par Codex (voir ASSETS.md).
   Si une image est absente, le dégradé de secours reste visible.
   ========================================================== */
.slot {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Filet doré + losange en bas de chaque slot */
.slot::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line) 20%, var(--line) 80%, transparent 100%);
  z-index: 3;
}
.slot > * { position: relative; z-index: 2; }

/* ---------- SLOT 1 : HERO ---------- */
.slot-hero {
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 20px) 20px 110px;
  background-image:
    radial-gradient(ellipse 55% 55% at 50% 42%, rgba(8, 8, 8, 0.38) 0%, rgba(8, 8, 8, 0) 70%),
    linear-gradient(180deg, rgba(8, 8, 9, 0.35) 0%, rgba(8, 8, 9, 0) 22%, rgba(8, 8, 9, 0) 62%, rgba(8, 8, 9, 0.75) 100%),
    url("../assets/img/hero.jpg"),
    /* secours : crépuscule sur la vallée */
    radial-gradient(ellipse 40% 30% at 88% 18%, rgba(246, 196, 128, 0.55), transparent 70%),
    linear-gradient(180deg, #3b3a44 0%, #6d5a55 22%, #8a6e58 34%, #3a3a2e 52%, #1d2119 72%, #0d0f0c 100%);
}
.slot-hero::before {
  /* petit losange au centre du filet */
  content: "";
  position: absolute;
  left: 50%; bottom: -4px;
  width: 7px; height: 7px;
  border: 1px solid var(--gold);
  background: var(--ink);
  transform: translateX(-50%) rotate(45deg);
  z-index: 4;
}

.hero-content { max-width: 900px; margin-top: -2vh; }
.hero-tree {
  width: clamp(76px, 7.5vw, 112px);
  height: clamp(76px, 7.5vw, 112px);
  margin: 0 auto 6px;
  color: var(--gold-light);
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.6));
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 7.2vw, 108px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: #f4ecdc;
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.65), 0 1px 2px rgba(0, 0, 0, 0.5);
}
.hero-tagline {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(12px, 1.3vw, 19px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-2);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.slot-hero .ornament { margin-top: 22px; width: clamp(160px, 20vw, 290px); }
.hero-quote {
  margin-top: clamp(26px, 4.5vh, 48px);
  font-style: italic;
  font-size: clamp(19px, 1.9vw, 28px);
  line-height: 1.35;
  color: var(--cream);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}
.hero-ctas {
  margin-top: clamp(30px, 5vh, 52px);
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 34px;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1.5px solid rgba(239, 230, 212, 0.75);
  border-radius: 12px;
  z-index: 3;
}
.scroll-hint span {
  position: absolute;
  left: 50%; top: 8px;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--cream);
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  80% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; }
}

/* ---------- SLOT 2 : FAÇONNEZ VOTRE HISTOIRE ---------- */
.slot-story {
  padding: calc(var(--header-h) + 40px) 0 80px;
  background-image:
    linear-gradient(90deg, #0e0f10 0%, rgba(14, 15, 16, 0.85) 30%, rgba(14, 15, 16, 0.3) 44%, rgba(14, 15, 16, 0) 52%),
    linear-gradient(180deg, rgba(14, 15, 16, 0.25) 0%, rgba(14, 15, 16, 0) 20%, rgba(14, 15, 16, 0) 80%, rgba(14, 15, 16, 0.5) 100%),
    url("../assets/img/histoire.jpg"),
    /* secours : place de marché chaleureuse à droite */
    radial-gradient(ellipse 45% 60% at 78% 55%, rgba(150, 110, 70, 0.55), transparent 70%),
    radial-gradient(ellipse 30% 30% at 85% 12%, rgba(190, 180, 170, 0.35), transparent 70%),
    linear-gradient(90deg, #111213 0%, #17181a 40%, #2b261f 70%, #3a3026 100%);
  background-position: center, center, right -12vw center, center, center, center;
}
.story-content { max-width: 660px; }
@media (min-width: 861px) {
  .section-title { white-space: nowrap; }
}
.story-content .lead { margin-bottom: clamp(48px, 9vh, 90px); }

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 640px;
}
.features li {
  text-align: center;
  padding: 0 10px;
  border-left: 1px solid var(--line-soft);
}
.features li:first-child { border-left: 0; padding-left: 0; }
.feature-icon { width: 42px; height: 42px; margin: 0 auto 18px; color: var(--gold); }
.feature-icon--wide { width: 62px; }
.features h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--cream);
  margin-bottom: 10px;
}
.features p { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ---------- SLOT 3 : UNE VALLÉE ---------- */
.slot-valley {
  padding: calc(var(--header-h) + 40px) 0 80px;
  background-image:
    linear-gradient(90deg, rgba(10, 12, 14, 0.72) 0%, rgba(10, 12, 14, 0.45) 30%, rgba(10, 12, 14, 0) 55%),
    linear-gradient(180deg, rgba(10, 12, 14, 0.35) 0%, rgba(10, 12, 14, 0) 25%, rgba(10, 12, 14, 0) 70%, rgba(10, 12, 14, 0.7) 100%),
    url("../assets/img/vallee.jpg"),
    /* secours : vallée brumeuse */
    radial-gradient(ellipse 60% 25% at 50% 62%, rgba(200, 205, 210, 0.28), transparent 70%),
    linear-gradient(180deg, #5d5f66 0%, #8b8c92 18%, #4d5557 38%, #2b3431 58%, #151a17 80%, #0c0e0d 100%);
}
.valley-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.valley-content { max-width: 620px; }
.valley-content .lead { margin-bottom: 34px; }

.valley-quote {
  position: relative;
  flex: none;
  text-align: center;
  margin-right: clamp(0px, 2vw, 40px);
  margin-top: -20vh;
}
.valley-quote::before {
  content: "";
  position: absolute;
  inset: -70px -90px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(8, 10, 12, 0.72), rgba(8, 10, 12, 0.4) 60%, transparent);
  pointer-events: none;
}
.valley-quote blockquote {
  margin: 16px 0;
  font-style: italic;
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.45;
  color: var(--cream);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

/* ==========================================================
   PIED DE PAGE
   ========================================================== */
.site-footer {
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 20% 0%, #17181a 0%, transparent 70%),
    var(--ink);
  border-top: 1px solid var(--line-soft);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.65fr 0.8fr 1.3fr;
  align-items: start;
  gap: 0;
  padding-top: 56px;
  padding-bottom: 36px;
}

.footer-brand {
  text-align: center;
  padding-right: 40px;
  border-right: 1px solid var(--line-soft);
  align-self: stretch;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.footer-tree { width: 64px; height: 64px; color: var(--gold); margin-bottom: 10px; }
.footer-brand .brand-name { font-size: 30px; }
.footer-tagline {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col { padding-left: 40px; }
.site-footer h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--cream);
  margin-bottom: 18px;
}
.footer-col li + li { margin-top: 5px; }
.footer-col a { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--gold-light); }

.footer-news {
  padding-left: 40px;
  border-left: 1px solid var(--line-soft);
  align-self: stretch;
}
.footer-news > p { font-size: 15px; line-height: 1.4; color: var(--cream-2); margin-bottom: 14px; }

.news-form { display: flex; max-width: 360px; height: 44px; }
.news-form input {
  flex: 1; min-width: 0;
  padding: 0 16px;
  font: inherit; font-size: 15px;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(239, 230, 212, 0.28);
  border-right: 0;
  border-radius: 2px 0 0 2px;
  outline: none;
  transition: border-color .2s;
}
.news-form input::placeholder { color: var(--muted); }
.news-form input:focus { border-color: var(--gold); }
.news-form button {
  flex: none;
  width: 48px;
  display: grid; place-items: center;
  color: #fbf3e2;
  background: linear-gradient(180deg, #a87942 0%, #7f5828 100%);
  border: 1px solid #c49a5c;
  border-radius: 0 2px 2px 0;
  transition: filter .2s;
}
.news-form button:hover { filter: brightness(1.15); }
.news-form button svg { width: 18px; height: 18px; }
.news-msg { min-height: 20px; margin-top: 6px; font-size: 13px; color: var(--gold-light); }
.news-msg.is-error { color: #d98b73; }

.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  max-width: 360px;
  margin-top: 18px;
}
.footer-social > a { color: var(--cream-2); transition: color .2s; }
.footer-social > a:hover { color: var(--gold-light); }
.footer-social > a svg { width: 17px; height: 17px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 22px;
  position: relative;
  font-size: 12px;
  color: var(--muted);
}
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px;
  background: var(--line-soft);
}
.footer-bottom ul { display: flex; }
.footer-bottom li + li { border-left: 1px solid var(--line-soft); }
.footer-bottom li a { padding: 0 14px; transition: color .2s; }
.footer-bottom li:last-child a { padding-right: 0; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ==========================================================
   MODALE BANDE-ANNONCE
   ========================================================== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 4, 5, 0.88); backdrop-filter: blur(4px); }
.modal-box { position: relative; width: min(1100px, 100%); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
.modal-media { aspect-ratio: 16 / 9; background: #000 url("../assets/img/hero.jpg") center / cover; }
.modal-media video { width: 100%; height: 100%; object-fit: cover; }
.modal-close {
  position: absolute; top: -44px; right: 0;
  width: 36px; height: 36px;
  font-size: 30px; line-height: 1;
  color: var(--cream);
}
.modal-close:hover { color: var(--gold-light); }

/* ==========================================================
   ANIMATIONS D'APPARITION
   ========================================================== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .slot .reveal:nth-child(2) { transition-delay: .08s; }
.js .slot .reveal:nth-child(3) { transition-delay: .16s; }
.js .slot .reveal:nth-child(4) { transition-delay: .24s; }
.js .slot .reveal:nth-child(5) { transition-delay: .32s; }
.js .slot .reveal:nth-child(6) { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint span { animation: none; opacity: 1; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1180px) {
  .header-inner { gap: 20px; }
  .main-nav ul { gap: 20px; }
  .site-header .brand-name { font-size: 21px; }
  .brand-tree { width: 38px; height: 38px; }
}

@media (max-width: 1024px) {
  .burger { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    margin: 0;
    background: rgba(10, 10, 11, 0.97);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .3s, visibility .3s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .site-header { background-color: rgba(10, 10, 11, 0.97); }
  .main-nav ul { flex-direction: column; gap: 0; padding: 12px var(--gutter) 24px; }
  .main-nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line-soft); }
  .main-nav a::after { display: none; }
  .header-actions { margin-left: auto; }

  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-brand { grid-column: 1 / -1; border-right: 0; padding-right: 0; }
  .footer-col { padding-left: 0; }
  .footer-news { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
}

@media (max-width: 860px) {
  .slot-story {
    align-items: flex-end;
    padding-top: calc(var(--header-h) + 36vh);
    background-image:
      linear-gradient(180deg, rgba(14, 15, 16, 0) 0%, rgba(14, 15, 16, 0) calc(var(--header-h) + 22vh), #0e0f10 calc(var(--header-h) + 42vh)),
      url("../assets/img/histoire.jpg"),
      linear-gradient(180deg, #3a3026 0%, #17181a 40%, #0e0f10 60%);
    background-position: center, 78% var(--header-h), center;
    background-size: cover, auto 46vh, cover;
  }
  .slot-valley { align-items: flex-end; }
  .slot-valley {
    background-image:
      linear-gradient(180deg, rgba(10, 12, 14, 0.2) 0%, rgba(10, 12, 14, 0.2) 35%, rgba(10, 12, 14, 0.85) 75%, rgba(10, 12, 14, 0.95) 100%),
      url("../assets/img/vallee.jpg"),
      radial-gradient(ellipse 60% 25% at 50% 40%, rgba(200, 205, 210, 0.28), transparent 70%),
      linear-gradient(180deg, #5d5f66 0%, #8b8c92 18%, #4d5557 38%, #2b3431 58%, #151a17 80%, #0c0e0d 100%);
    background-position: center, 60% center, center, center;
  }
  .valley-grid { flex-direction: column-reverse; align-items: flex-start; gap: 44px; }
  .valley-quote { align-self: center; margin: 0; }
  .lead br { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .header-actions .icon-btn,
  .header-actions .header-sep,
  .header-actions .btn-sm { display: none; }
  .site-header .brand-name { font-size: 19px; }
  .brand-tree { width: 34px; height: 34px; }
  .brand { gap: 10px; }

  .btn-lg { width: 100%; min-width: 0; }
  .hero-ctas { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }
  .hero-tagline { letter-spacing: 0.12em; }

  .features { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .features li:nth-child(3) { border-left: 0; padding-left: 0; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom li:first-child a { padding-left: 0; }
  .footer-social { justify-content: flex-start; }
}
