/* Atls — feuille de style. Valeurs normatives : ../bible.md (frontmatter). */
:root {
  --fond: #F7EFE2;
  --fond2: #EFE5D4;
  --encre: #111111;
  --encre-douce: #6B6358;
  --ligne: rgba(17, 17, 17, .12);
  --accent: #B8893B;
  --mot-gris: #DDD2C0;
  --gouttiere: 16px;
  --marge: clamp(20px, 3.4vw, 48px);
  --arrondi: 28px;
  --section: clamp(88px, 10vw, 140px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Onest", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
em { font: italic 400 1.04em/1 var(--serif); letter-spacing: -0.01em; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- Composants ---------- */
.carte { margin: var(--gouttiere); border-radius: var(--arrondi); overflow: hidden; position: relative; }
.sombre { background: var(--encre); color: var(--fond); }

.etiquette {
  font: 500 12px/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.sombre .etiquette { color: rgba(247, 239, 226, .6); }
.point::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 10px; vertical-align: 2px;
}
.titre {
  font: 500 clamp(40px, 5.2vw, 76px)/1 var(--sans);
  letter-spacing: -0.04em;
  margin-top: 18px;
  max-width: 12ch;
}
.titre--xl { font-size: clamp(48px, 7vw, 112px); max-width: 11ch; }

.bouton {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 0;
  font: 500 14px/1 var(--sans); letter-spacing: .02em;
  background: var(--encre); color: var(--fond);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.bouton--clair { background: var(--fond); color: var(--encre); }
.bouton:hover { transform: translateY(-2px); }
.bouton .fleche { transition: transform .3s var(--ease); }
.bouton:hover .fleche { transform: translateX(4px); }

.rond-bouton {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--ligne); background: transparent; font-size: 18px;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.rond-bouton--plein { background: var(--encre); color: var(--fond); border-color: var(--encre); }

.logo {
  display: inline-block; width: 30px; height: 26px; background: currentColor;
  -webkit-mask: url(img/logo-panthere.svg) center / contain no-repeat;
          mask: url(img/logo-panthere.svg) center / contain no-repeat;
}
.marque { display: inline-flex; align-items: center; gap: 12px; }
.marque__nom { font: 600 18px/1 var(--sans); letter-spacing: .24em; }

/* ---------- 1 · Ouverture ---------- */
.hero {
  height: calc(100svh - 2 * var(--gouttiere));
  min-height: 640px; max-height: 1000px;
  color: var(--fond);
  display: flex; flex-direction: column;
  padding: 0 var(--marge) var(--marge);
}
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero__voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,0) 38%),
    linear-gradient(0deg, rgba(10,10,10,.65) 0%, rgba(10,10,10,0) 45%);
}
.nav {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 26px 0;
  font-size: 14px;
}
.nav__liens { display: flex; gap: 32px; }
.nav__liens a { opacity: .85; transition: opacity .2s; }
.nav__liens a:hover { opacity: 1; }
.nav__droite { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.langue { background: none; border: 0; padding: 6px; font-size: 13px; letter-spacing: .08em; }
.langue span { opacity: .5; transition: opacity .2s; }
html[lang="fr"] .langue [data-l="fr"], html[lang="en"] .langue [data-l="en"] { opacity: 1; }
.nav .bouton { padding: 12px 20px; }

.hero__titre {
  position: relative; z-index: 2;
  font: 500 clamp(56px, 11.2vw, 176px)/.86 var(--sans);
  letter-spacing: -0.05em; text-transform: uppercase;
  margin-top: clamp(4px, 1vw, 16px);
}
.hero__titre .ligne { display: block; }

.hero__bas {
  position: relative; z-index: 2; margin-top: auto;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.hero__accroche { font: 500 clamp(24px, 2.6vw, 38px)/1.08 var(--sans); letter-spacing: -0.03em; margin-bottom: 24px; }
.hero__cartes { display: flex; gap: 12px; }
.flottante {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px 12px 12px; border-radius: 20px;
  background: rgba(247, 239, 226, .14);
  border: 1px solid rgba(247, 239, 226, .22);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 14px; min-width: 250px;
}
.flottante img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; object-position: top; }
.flottante .etiquette { color: rgba(247, 239, 226, .75); font-size: 11px; margin-bottom: 4px; }
.flottante--pays { flex-direction: column; align-items: flex-start; padding: 16px 18px; gap: 12px; }
.flottante__grand { font: 500 22px/1 var(--sans); letter-spacing: -0.02em; }
.pastilles { display: flex; }
.pastilles span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font: 600 10px/1 var(--sans); letter-spacing: .04em;
  background: var(--fond); color: var(--encre); border: 2px solid #2a2a2a; margin-right: -6px;
}
.pastilles span:nth-child(2) { background: var(--accent); color: var(--fond); }
.pastilles span:nth-child(3) { background: var(--encre); color: var(--fond); border-color: rgba(247,239,226,.5); }

/* ---------- 2 · Manifeste ---------- */
.manifeste { padding: var(--section) calc(var(--marge) + var(--gouttiere)) calc(var(--section) * .7); position: relative; }
.manifeste__haut { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-bottom: clamp(32px, 14vw, 210px); }
.rond {
  width: 104px; height: 104px; border-radius: 50%; flex: none;
  border: 1px solid var(--ligne); display: grid; place-content: center; text-align: center;
  font: 500 24px/1 var(--sans); letter-spacing: -0.03em;
}
.rond small { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-douce); margin-top: 6px; }
.citation { max-width: 440px; background: var(--fond2); border-radius: 20px; padding: 22px 24px; }
.citation p:last-child { margin-top: 12px; font-size: 17px; line-height: 1.5; }

.mots {
  font: 500 clamp(52px, 11vw, 180px)/.9 var(--sans);
  letter-spacing: -0.055em; text-transform: uppercase;
  color: var(--mot-gris);
}
.mots > span { display: block; }
.mots__l2 { display: flex !important; justify-content: flex-end; flex-wrap: wrap; gap: 0 .22em; }
.mots__noir { color: var(--encre); }

.carrousel {
  position: absolute; left: 50%; top: calc(var(--section) - 24px);
  width: clamp(200px, 18vw, 260px); aspect-ratio: 3 / 4;
  transform: translateX(-50%);
  z-index: 2;
}
.carrousel__carte {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(17,17,17,.45);
  transform: rotate(-4deg); opacity: 0; transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.carrousel__carte.actif { opacity: 1; transform: rotate(-4deg); }
.carrousel__carte img { width: 100%; height: 100%; object-fit: cover; }
.carrousel__carte figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(17,17,17,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--fond); font-size: 13px; display: flex; flex-direction: column;
}
.carrousel__carte figcaption span { opacity: .7; font-size: 12px; }
.carrousel__commandes { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(40px, 5vw, 72px); }
.points { display: flex; gap: 8px; }
.points i { width: 8px; height: 6px; border-radius: 3px; background: var(--mot-gris); transition: width .3s var(--ease), background .3s; }
.points i.actif { width: 24px; background: var(--encre); }

/* ---------- 3 · Personnalisation ---------- */
.perso {
  background: var(--fond2);
  padding: var(--section) var(--marge);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: start;
}
.liste { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--ligne); }
.liste li {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--ligne); cursor: pointer;
}
.liste .num { font-size: 13px; color: var(--accent); font-weight: 500; letter-spacing: .06em; }
.liste h3 { font: 500 clamp(26px, 2.6vw, 38px)/1.1 var(--sans); letter-spacing: -0.03em; transition: transform .4s var(--ease); }
.liste p { color: var(--encre-douce); font-size: 15px; margin-top: 6px; max-width: 46ch; }
.liste li.actif h3, .liste li:hover h3 { transform: translateX(6px); }
.liste li.actif .rond-bouton, .liste li:hover .rond-bouton { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.perso__visuel {
  position: sticky; top: 32px;
  aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--encre);
}
.perso__visuel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s var(--ease); }
.perso__visuel img.visible { opacity: 1; }

/* ---------- 4 · Réalisations ---------- */
.realisations, .process { padding: var(--section) calc(var(--marge) + var(--gouttiere)) 0; }
.entete { display: flex; flex-direction: column; }
.clubs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gouttiere); margin-top: clamp(40px, 5vw, 72px); }
.club {
  position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 4;
  color: var(--fond); background: var(--encre);
}
.club img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.club:hover img { transform: scale(1.04); }
.club::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,0) 55%); }
.club__info { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 24px; }
.tag {
  display: inline-block; padding: 7px 12px; border-radius: 999px;
  background: rgba(247,239,226,.16); border: 1px solid rgba(247,239,226,.25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 12px; letter-spacing: .04em;
}
.club h3 { font: 500 clamp(26px, 2.4vw, 34px)/1.05 var(--sans); letter-spacing: -0.03em; margin: 14px 0 8px; }
.club p { font-size: 14px; opacity: .8; max-width: 36ch; }
.credit { display: block; margin-top: 10px; font-size: 11px; opacity: .55; }
.club:nth-child(1) img { object-position: 50% 30%; }
.club:nth-child(4) img { object-position: 38% 50%; }
@media (max-width: 1200px) { .clubs { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 5 · Process ---------- */
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 5vw, 72px); }
.etapes li { border-top: 1px solid var(--encre); padding-top: 22px; position: relative; }
.etapes .num { font-size: 13px; color: var(--accent); font-weight: 500; letter-spacing: .06em; }
.etapes h3 { font: 500 26px/1.1 var(--sans); letter-spacing: -0.03em; margin: 22px 0 10px; }
.etapes p { color: var(--encre-douce); font-size: 15px; }

/* ---------- 6 · Chiffres ---------- */
.chiffres { padding: var(--section) var(--marge); margin-top: var(--section); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(48px, 6vw, 96px); }
.stats > div { border-top: 1px solid rgba(247,239,226,.22); padding-top: 26px; }
.stats dt { font: 500 clamp(56px, 6.4vw, 96px)/1 var(--sans); letter-spacing: -0.05em; }
.stats dd { margin-top: 14px; font-size: 14px; color: rgba(247,239,226,.6); }

/* ---------- 7 · Galerie ---------- */
.galerie { padding: var(--section) 0 calc(var(--section) * .6); overflow: hidden; }
.galerie__mot {
  text-align: center; text-transform: uppercase;
  font: 500 clamp(44px, 9vw, 150px)/1 var(--sans); letter-spacing: -0.05em;
  display: flex; justify-content: center; align-items: center; gap: .18em;
  padding: 0 var(--marge);
}
.galerie__mot .logo { width: .9em; height: .78em; }
.bande { margin-top: clamp(32px, 4vw, 56px); }
.bande__piste { display: flex; gap: var(--gouttiere); width: max-content; }
.bande__piste img { height: clamp(260px, 30vw, 420px); width: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; }

/* ---------- 8 · Devis + pied ---------- */
.devis { padding: var(--section) var(--marge) 32px; }
.devis__grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.devis__intro { margin-top: 24px; max-width: 38ch; color: rgba(247,239,226,.65); font-size: 17px; }
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; align-content: start; }
.formulaire .large { grid-column: 1 / -1; }
.formulaire label span { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(247,239,226,.55); margin-bottom: 8px; }
.formulaire input, .formulaire textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(247,239,226,.3);
  color: var(--fond); font: 400 18px/1.4 var(--sans); padding: 6px 0 12px; border-radius: 0; resize: vertical;
  transition: border-color .3s;
}
.formulaire input:focus, .formulaire textarea:focus { outline: none; border-color: var(--fond); }
.formulaire .bouton { justify-self: start; margin-top: 8px; }
.formulaire__retour { font-size: 14px; color: var(--accent); min-height: 1em; }

.pied {
  margin-top: clamp(80px, 10vw, 140px); padding-top: 40px; border-top: 1px solid rgba(247,239,226,.18);
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; font-size: 14px;
}
.pied a { display: block; color: rgba(247,239,226,.8); margin-top: 10px; transition: color .2s; }
.pied a:hover { color: var(--fond); }
.pied .marque { display: inline-flex; margin-top: 0; color: var(--fond); }
.pied__marque p { margin-top: 18px; color: rgba(247,239,226,.6); }
.pied__bas {
  grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; font-size: 12px; color: rgba(247,239,226,.45);
}

/* ---------- Apparitions au défilement (activées par main.js) ---------- */
.js .apparait { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delai, 0ms); }
.js .apparait.vu { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav__liens { display: none; }
  .nav__droite .bouton { display: none; }
  .hero { min-height: 600px; }
  .hero__photo { object-position: 42% 55%; }
  .hero__titre { font-size: 14.5vw; line-height: .95; }
  .mots { font-size: 15vw; }
  .mots__l2 { justify-content: flex-start; }
  .hero__bas { flex-direction: column; align-items: stretch; }
  .hero__cartes { display: none; }
  .manifeste__haut { flex-direction: column-reverse; }
  .rond { display: none; }
  .carrousel { position: relative; left: auto; top: auto; transform: none; margin: 32px auto 0; width: 70%; }
  .perso, .devis__grille { grid-template-columns: 1fr; }
  .perso__visuel { position: relative; top: 0; order: -1; aspect-ratio: 4 / 3; }
  .liste li { grid-template-columns: 40px 1fr; }
  .liste .rond-bouton { display: none; }
  .clubs { grid-template-columns: 1fr; }
  .club { aspect-ratio: 4 / 5; }
  .etapes, .stats { grid-template-columns: 1fr 1fr; }
  .formulaire { grid-template-columns: 1fr; }
  .pied { grid-template-columns: 1fr 1fr; }
  .pied__marque { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .etapes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Animations (étape 5 — voir storyboard) ---------- */
@keyframes dezoom { from { scale: 1.08; } to { scale: 1; } }
@keyframes revele { from { clip-path: inset(0 0 100% 0); translate: 0 .35em; } to { clip-path: inset(-10% 0 -20% 0); translate: 0 0; } }
@keyframes monte { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@keyframes defile { to { transform: translateX(-50%); } }

.js .hero__photo { animation: dezoom 1.6s var(--ease) both; translate: 0 var(--parallaxe, 0px); }
.js .hero__titre .ligne { animation: revele 1s var(--ease) both; }
.js .hero__titre .ligne:nth-child(1) { animation-delay: .25s; }
.js .hero__titre .ligne:nth-child(2) { animation-delay: .4s; }
.js .nav { animation: monte .8s var(--ease) .1s both; }
.js .hero__bas > div:first-child { animation: monte .8s var(--ease) .7s both; }
.js .hero__cartes { animation: monte .8s var(--ease) .95s both; }

/* Manifeste : mots et carte pilotés par le défilement (main.js → --p de 0 à 1) */
.js .mots__l1 { translate: calc((var(--p, .5) - .5) * 16vw) 0; }
.js .mots__l2 { translate: calc((.5 - var(--p, .5)) * 16vw) 0; }
.js .carrousel__carte.actif { transform: rotate(calc(-6deg + var(--p, .5) * 9deg)); }

/* Process : le filet se dessine, puis le texte */
.etapes li { border-top-color: var(--ligne); }
.etapes li::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--encre);
  transform: scaleX(1); transform-origin: left; transition: transform 1s var(--ease) var(--delai, 0ms);
}
.js .etapes li.apparait { opacity: 1; transform: none; }
.js .etapes li.apparait::before { transform: scaleX(0); }
.js .etapes li.apparait.vu::before { transform: scaleX(1); }
.js .etapes li.apparait > * { opacity: 0; translate: 0 12px; transition: opacity .6s var(--ease), translate .6s var(--ease); transition-delay: calc(var(--delai, 0ms) + 450ms); }
.js .etapes li.apparait.vu > * { opacity: 1; translate: 0 0; }

/* Galerie : défilement continu (piste dupliquée par main.js) */
.js .bande__piste { animation: defile 70s linear infinite; }
.bande:hover .bande__piste { animation-play-state: paused; }
.bande__piste img { transition: transform .6s var(--ease); }
.bande__piste img:hover { transform: scale(.97); }
