/* ==========================================================================
   Grand Ouest - Voyage aux USA
   Palette : nuit du desert, ocre de canyon, sauge de prairie
   ========================================================================== */

:root {
  --ink:        #0d0f14;
  --ink-2:      #141821;
  --ink-3:      #1d2330;
  --line:       rgba(255,255,255,.10);
  --paper:      #f5f1e8;
  --muted:      #9aa3b2;

  --ocre:       #d98b3f;
  --rouille:    #b8502e;
  --sauge:      #7f9270;
  --or:         #e8b96a;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1240px;
  --r: 14px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--paper);
  background: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(var(--wrap), calc(100% - 3rem)); margin-inline: auto; }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ocre);
  font-weight: 600;
  margin: 0 0 .9rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.eyebrow::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 90px;
  background: linear-gradient(90deg, var(--ocre), transparent);
}

.section-title { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.02em; }
.section-lede {
  color: var(--muted);
  max-width: 62ch;
  margin: 1.1rem 0 0;
  font-size: 1.05rem;
}

section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem clamp(1.5rem, 4vw, 3rem);
  transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(13,15,20,.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  padding-block: .75rem;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(140deg, var(--ocre), var(--rouille) 60%, #7a2f22);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1rem;
  color: #1a0f08;
  box-shadow: 0 4px 16px rgba(217,139,63,.35);
}
.brand__text { font-family: var(--serif); font-size: 1.12rem; letter-spacing: .01em; }
.brand__text small {
  display: block; font-family: var(--sans); font-size: .6rem;
  letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}

.nav__links { display: flex; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none; font-size: .86rem; font-weight: 500;
  color: rgba(245,241,232,.78); position: relative; padding-block: .3rem;
  transition: color .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--ocre); transition: width .3s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { width: 100%; }

.nav__toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; color: var(--paper); width: 42px; height: 38px;
  cursor: pointer; font-size: 1.1rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100svh;
  display: grid; align-items: end;
  position: relative; overflow: hidden;
  padding: 0 0 clamp(3rem, 8vh, 6rem);
}
.hero__media { position: absolute; inset: -8% 0 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 112%; object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 22s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(13,15,20,.72) 0%, rgba(13,15,20,.18) 32%, rgba(13,15,20,.86) 78%, var(--ink) 100%),
    radial-gradient(120% 80% at 20% 90%, rgba(184,80,46,.28), transparent 60%);
}
.hero .wrap { position: relative; z-index: 2; }

.hero__kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  padding: .45rem 1rem; border: 1px solid rgba(232,185,106,.4);
  border-radius: 999px; color: var(--or);
  background: rgba(232,185,106,.08);
  backdrop-filter: blur(6px);
  margin-bottom: 1.6rem;
}
.hero h1 {
  font-size: clamp(3rem, 9.5vw, 7.5rem);
  letter-spacing: -.035em;
  text-shadow: 0 10px 60px rgba(0,0,0,.55);
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--or), var(--ocre) 45%, var(--rouille));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  max-width: 54ch; color: rgba(245,241,232,.86);
  margin: 1.5rem 0 2.3rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  font-size: .9rem; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--ocre), var(--rouille));
  color: #180d06;
  box-shadow: 0 10px 30px rgba(184,80,46,.4);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(184,80,46,.55); }
.btn--ghost {
  border-color: rgba(245,241,232,.28); color: var(--paper);
  background: rgba(255,255,255,.04); backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--paper); transform: translateY(-3px); }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  padding-top: 2rem; border-top: 1px solid var(--line);
}
.stat__num {
  font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1; color: var(--or);
}
.stat__label {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-top: .45rem;
}

.scroll-hint {
  position: absolute; right: clamp(1.5rem, 4vw, 3rem); bottom: 1.4rem; z-index: 3;
  font-size: .66rem; letter-spacing: .3em; text-transform: uppercase;
  writing-mode: vertical-rl;
  color: rgba(245,241,232,.5);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.scroll-hint span { width: 1px; height: 42px; background: linear-gradient(var(--ocre), transparent); animation: drop 2.2s infinite; }
@media (max-width: 760px) { .scroll-hint { display: none; } }
@keyframes drop { 0%,100% { opacity: .2; transform: scaleY(.4); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ==========================================================================
   Intro / manifeste
   ========================================================================== */
.manifesto { background: linear-gradient(180deg, var(--ink), var(--ink-2)); }
.manifesto__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
}
.manifesto p + p { margin-top: 1.1rem; }
.manifesto__quote {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.4; font-style: italic;
  border-left: 2px solid var(--ocre); padding-left: 1.6rem; margin: 2rem 0 0;
}
.manifesto__quote cite {
  display: block; font-family: var(--sans); font-style: normal;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-top: .9rem;
}
.manifesto__media { position: relative; cursor: pointer; }
.manifesto__media img { border-radius: var(--r); box-shadow: var(--shadow); }
.manifesto__media::before {
  content: ""; position: absolute; inset: 1.6rem -1.6rem -1.6rem 1.6rem;
  border: 1px solid rgba(217,139,63,.35); border-radius: var(--r); z-index: -1;
}

/* ==========================================================================
   Grille de cartes
   ========================================================================== */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}

.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters button {
  font: inherit; font-size: .78rem; font-weight: 500;
  padding: .5rem 1.05rem; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line);
  transition: all .25s var(--ease);
}
.filters button:hover { color: var(--paper); border-color: rgba(245,241,232,.35); }
.filters button.is-active {
  background: var(--ocre); border-color: var(--ocre); color: #1a0f08; font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.4rem;
}

.card {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: var(--ink-3); isolation: isolate; cursor: pointer;
  border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: rgba(217,139,63,.5); }
.card.is-hidden { display: none; }

.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-2); }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), filter .5s;
  filter: saturate(1.02);
}
.card:hover .card__media img { transform: scale(1.07); }

.card__body { padding: 1.25rem 1.35rem 1.5rem; }
.card__tag {
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ocre); font-weight: 600;
}
.card__title { font-size: 1.32rem; margin: .5rem 0 .5rem; }
.card__state { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: .45rem; }
.card__state::before { content: "\25C7"; color: var(--sauge); font-size: .7rem; }
.card__desc { font-size: .9rem; color: rgba(245,241,232,.72); margin: .85rem 0 0; }

.card__zoom {
  position: absolute; top: .9rem; right: .9rem; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(13,15,20,.55); backdrop-filter: blur(8px);
  border: 1px solid var(--line); font-size: .95rem;
  opacity: 0; transform: scale(.8); transition: all .35s var(--ease);
}
.card:hover .card__zoom { opacity: 1; transform: scale(1); }

/* ==========================================================================
   Prairies - bandeau immersif
   ========================================================================== */
.prairie { background: var(--ink-2); }
.banner {
  position: relative; border-radius: var(--r); overflow: hidden;
  min-height: 480px; display: grid; align-items: end;
  box-shadow: var(--shadow); cursor: pointer;
}
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,15,20,.9) 0%, rgba(13,15,20,.55) 45%, transparent 85%),
              linear-gradient(0deg, rgba(13,15,20,.85), transparent 55%),
              linear-gradient(180deg, rgba(13,15,20,.92) 2%, rgba(13,15,20,.35) 35%, transparent 55%);
}
.banner__content { position: relative; z-index: 2; padding: clamp(2rem, 4vw, 3.5rem); max-width: 640px; }
.banner__content h3 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: .9rem; }
.banner__content p { color: rgba(245,241,232,.8); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.4rem; }

/* ==========================================================================
   Itineraires
   ========================================================================== */
.roads { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.roads__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }

.road {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.8rem 1.7rem 2rem; background: rgba(255,255,255,.02);
  position: relative; overflow: hidden;
  transition: border-color .35s, transform .35s var(--ease), background .35s;
}
.road:hover { border-color: rgba(217,139,63,.5); transform: translateY(-5px); background: rgba(217,139,63,.05); }
.road__num {
  font-family: var(--serif); font-size: 3.4rem; line-height: 1;
  color: rgba(217,139,63,.22); position: absolute; top: .8rem; right: 1.2rem;
}
.road h3 { font-size: 1.45rem; margin-bottom: .3rem; padding-right: 3.4rem; }
.road__meta {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sauge); margin-bottom: 1.1rem; padding-right: 3.4rem;
}
.road p { font-size: .92rem; color: rgba(245,241,232,.74); margin: 0 0 1.2rem; }
.road ol { list-style: none; margin: 0; padding: 0; font-size: .87rem; }
.road li {
  position: relative; padding-left: 1.5rem; padding-block: .38rem;
  color: rgba(245,241,232,.85);
}
.road li::before {
  content: ""; position: absolute; left: .28rem; top: .95rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--ocre);
}
.road li:not(:last-child)::after {
  content: ""; position: absolute; left: .53rem; top: 1.35rem;
  width: 1px; height: calc(100% - .5rem); background: rgba(217,139,63,.3);
}

/* ==========================================================================
   Conseils
   ========================================================================== */
.tips__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 1.2rem; }
.tip {
  border-radius: var(--r); padding: 1.6rem;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s;
}
.tip:hover { transform: translateY(-4px); border-color: rgba(127,146,112,.55); }
.tip__icon { font-size: 1.5rem; margin-bottom: .8rem; }
.tip h4 { font-family: var(--serif); font-size: 1.12rem; margin: 0 0 .5rem; }
.tip p { font-size: .87rem; color: rgba(245,241,232,.7); margin: 0; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,9,12,.95); backdrop-filter: blur(10px);
  display: grid; place-items: center; padding: 4vh 4vw;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__inner { max-width: 1100px; width: 100%; }
.lightbox img {
  width: 100%; max-height: 72vh; object-fit: contain;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.7);
}
.lightbox__caption {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; flex-wrap: wrap; margin-top: 1.2rem;
}
.lightbox__caption h3 { font-size: 1.5rem; }
.lightbox__caption p { margin: .35rem 0 0; color: var(--muted); font-size: .85rem; max-width: 60ch; }
.lightbox__credit { font-size: .74rem; color: var(--muted); text-align: right; max-width: 320px; }
.lightbox__credit a { color: var(--ocre); }

.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid var(--line);
  color: var(--paper); font-size: 1.3rem; cursor: pointer;
  display: grid; place-items: center; transition: background .25s;
}
.lb-btn:hover { background: rgba(217,139,63,.35); }
.lb-prev { left: 2vw; } .lb-next { right: 2vw; }
.lb-close { top: 2.2vh; right: 2vw; transform: none; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.footer { background: #090a0e; border-top: 1px solid var(--line); padding: 4rem 0 2.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.footer h5 {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ocre); margin: 0 0 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.footer li { margin-bottom: .55rem; }
.footer a { color: rgba(245,241,232,.65); text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--ocre); }
.footer__note { font-size: .84rem; color: var(--muted); max-width: 42ch; }
.credits {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line);
  font-size: .74rem; color: #6c7484; line-height: 1.9;
}
.credits strong { color: var(--muted); font-weight: 600; }
.credits a { color: #7d8798; text-decoration: underline; text-underline-offset: 2px; }
.credits__list { columns: 2; column-gap: 2.5rem; margin-top: .8rem; }
.credits__list p { margin: 0 0 .35rem; break-inside: avoid; }

/* ==========================================================================
   Revelations au scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .manifesto__grid { grid-template-columns: 1fr; }
  .manifesto__media::before { display: none; }
  .trio { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .credits__list { columns: 1; }
}

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(13,15,20,.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .4s var(--ease);
  }
  .nav__links.is-open { max-height: 360px; }
  .nav__links li { padding: .9rem clamp(1.5rem, 4vw, 3rem); border-top: 1px solid var(--line); }

  /* Le hero doit rester sous la barre fixe même quand le contenu remplit l'écran. */
  .hero { padding-top: 5.5rem; }
  .hero__kicker { margin-bottom: 1.1rem; }
  .hero__sub { margin: 1.1rem 0 1.7rem; }
  .hero__cta .btn { padding: .8rem 1.4rem; }
  .hero__stats { margin-top: 2rem; padding-top: 1.5rem; gap: 1.3rem 2.2rem; }
  .stat__num { font-size: 1.7rem; }
  .lb-prev { left: .5rem; } .lb-next { right: .5rem; }
  .lightbox__credit { text-align: left; }
  .banner { min-height: 380px; }
}
