/* Le Comptoir des Copains — bleu marine, blanc, noir.
   Police système (San Francisco sur Apple), Inter ailleurs. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-400-800-normal.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blanc: #fff;
  --gris-fond: #f5f5f7;
  --noir: #000;
  --encre: #1d1d1f;
  --gris: #6e6e73;
  --gris-clair: #a1a1a6;
  --filet: rgba(0, 0, 0, .12);
  --marine: #0c2a63;        /* boutons, accents */
  --marine-nuit: #071a40;   /* voiles, fonds profonds */
  --marine-vif: #1b4599;    /* survols, liens */
  --ciel: #a9c1f0;          /* accents sur fond sombre */
  --voile: 7, 26, 64;       /* --marine-nuit en composantes, pour les transparences */
  --police: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --marge: clamp(20px, 5vw, 48px);
  --large: 1200px;
  --rayon: 28px;
  --ease: cubic-bezier(.28, .11, .32, 1);
  --nav-h: 82px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 10px);
}

body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -.01em;
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

.menu-ouvert body { overflow: hidden; }

img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: rgba(12, 42, 99, .18); }

:focus-visible { outline: 3px solid var(--marine-vif); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .section--noir :focus-visible, .final :focus-visible, .pied :focus-visible { outline-color: #fff; }

.evitement {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--marine); color: #fff; font-weight: 600;
}
.evitement:focus { top: 8px; }

/* ───────── Titres et textes ───────── */

h1, .geant {
  font-size: clamp(2.75rem, 8.4vw, 6rem);
  line-height: 1.03;
  letter-spacing: -.028em;
  font-weight: 600;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.125rem, 5.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.024em;
  font-weight: 600;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -.016em;
  font-weight: 600;
}

.chapo {
  font-size: clamp(1.1875rem, 2.1vw, 1.625rem);
  line-height: 1.32;
  letter-spacing: -.012em;
  color: var(--gris);
  text-wrap: pretty;
}

.surtitre {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 600;
  color: var(--marine-vif);
  letter-spacing: -.005em;
}

.lien { color: var(--marine-vif); }
.lien:hover { text-decoration: underline; text-underline-offset: .22em; }
.lien span { display: inline-block; transition: transform .3s var(--ease); }
.lien:hover span { transform: translateX(3px); }
.lien--discret { color: inherit; text-decoration: underline; text-underline-offset: .22em; }
.lien--discret:hover { color: var(--marine-vif); }

/* ───────── Boutons ───────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px;
  background: var(--marine); color: #fff;
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: var(--marine-vif); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { border-radius: 999px; outline-offset: 4px; }
.btn--l { min-height: 64px; padding: 0 40px; font-size: 1.25rem; }
.btn--xl { min-height: 76px; padding: 0 clamp(40px, 5vw, 60px); font-size: clamp(1.375rem, 2.4vw, 1.625rem); }
.btn--nav { min-height: 40px; padding: 0 20px; font-size: 1rem; }
.btn--blanc { background: #fff; color: var(--marine); }
.btn--blanc:hover { background: #e4ebfa; }
.btn--gris { background: #e8e8ed; color: var(--encre); }
.btn--gris:hover { background: #dcdce1; }
.btn--verre {
  border: 1px solid rgba(255, 255, 255, .36);
  background: rgba(255, 255, 255, .13); color: #fff;
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
}
.btn--verre:hover { background: rgba(255, 255, 255, .24); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }

@media (max-width: 400px) {
  .btn--l { min-height: 60px; padding: 0 28px; font-size: 1.125rem; }
  .btn--xl { min-height: 68px; padding: 0 34px; font-size: 1.25rem; }
}

/* ───────── Mise en page ───────── */

.boite { width: min(var(--large), 100% - 2 * var(--marge)); margin-inline: auto; }
.boite--etroite { --large: 980px; }

.section { padding-block: clamp(84px, 11vw, 150px); }
.section--gris { background: var(--gris-fond); }
.section--noir { background: var(--noir); color: #f5f5f7; }
.section--noir .chapo { color: var(--gris-clair); }
.section--noir .surtitre, .section--noir .lien { color: var(--ciel); }

.entete { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); }
.entete .chapo { max-width: 38ch; }
.entete--centre { text-align: center; justify-items: center; }
.entete--centre .chapo { max-width: 46ch; }

.tuile {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--rayon); background: #111;
}
.tuile img, .tuile video { width: 100%; height: 100%; object-fit: cover; }
.tuile figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 56px 22px 18px;
  font-size: .9375rem; font-weight: 600; color: #fff; text-align: left;
  background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent);
  pointer-events: none;
}

.lecture {
  position: absolute; right: 14px; bottom: 14px; z-index: 4;
  width: 38px; height: 38px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .24); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background-color .25s var(--ease);
}
.lecture[hidden] { display: none; }
.lecture:hover { background: rgba(255, 255, 255, .38); }
.lecture svg { width: 18px; height: 18px; }
.lecture .i-pause { fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; }
.lecture .i-play { fill: currentColor; display: none; }
.lecture[data-lecture="pause"] .i-pause { display: none; }
.lecture[data-lecture="pause"] .i-play { display: block; }

/* ───────── Barre du haut : capsule de verre ───────── */

.nav {
  position: fixed; top: 12px; left: 50%; z-index: 50;
  width: min(1180px, 100% - 24px); height: 58px; padding: 0 9px 0 12px;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: clamp(12px, 2vw, 26px);
  border: 1px solid rgba(0, 0, 0, .07); border-radius: 999px;
  background: rgba(255, 255, 255, .76); color: var(--encre);
  -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 10px 34px rgba(var(--voile), .1);
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
/* au-dessus d'une zone sombre (photo, fond noir) : verre bleu nuit, texte blanc */
.js .nav:not(.clair) { background: rgba(22, 22, 24, .46); color: #fff; border-color: rgba(255, 255, 255, .2); box-shadow: none; }
.js .nav:not(.clair) .btn--nav { background: #fff; color: var(--marine); }
.js .nav:not(.clair) .btn--nav:hover { background: #e4ebfa; }
.js.menu-ouvert .nav { background: #fff; color: var(--encre); border-color: var(--filet); box-shadow: none; }
.js.menu-ouvert .nav .btn--nav { background: var(--marine); color: #fff; }

.marque {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; white-space: nowrap;
}
.marque-logo {
  position: relative; flex: none; width: 40px; height: 40px;
  transition: opacity .45s var(--ease), transform .45s var(--ease), width .45s var(--ease), margin .45s var(--ease);
}
.marque-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .45s var(--ease); }
.l-sombre { opacity: 0; }
.js .nav:not(.clair) .l-clair { opacity: 0; }
.js .nav:not(.clair) .l-sombre { opacity: 1; }
.js.menu-ouvert .nav .l-clair { opacity: 1; }
.js.menu-ouvert .nav .l-sombre { opacity: 0; }
/* tout en haut, le grand logo de l'accueil suffit : celui de la barre s'efface */
.js .nav.haut .marque-logo { width: 0; margin-right: -4px; opacity: 0; transform: scale(.4); }
.js.menu-ouvert .nav .marque-logo { width: 40px; margin-right: 0; opacity: 1; transform: none; }

.liens { display: flex; gap: clamp(16px, 2.4vw, 32px); font-size: .9375rem; }
.liens a { opacity: .84; transition: opacity .2s; }
.liens a:hover { opacity: 1; }

.burger {
  display: none; width: 44px; height: 44px; margin-right: 2px; padding: 0;
  place-content: center; gap: 6px;
  border: 0; background: none; color: inherit; cursor: pointer;
}
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40;
  padding: calc(var(--nav-h) + 16px) var(--marge) 32px;
  display: flex; flex-direction: column; gap: 26px; overflow: auto;
  background: #fff;
  opacity: 0; transition: opacity .35s var(--ease);
}
.menu[hidden] { display: none; }
.menu.ouvert { opacity: 1; }
.menu nav { display: grid; }
.menu nav a {
  padding: .44em 0; border-bottom: 1px solid var(--filet);
  font-size: 1.75rem; font-weight: 600; letter-spacing: -.022em;
  opacity: 0; transform: translateY(-10px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.menu.ouvert nav a { opacity: 1; transform: none; }
.menu.ouvert nav a:nth-child(2) { transition-delay: .04s; }
.menu.ouvert nav a:nth-child(3) { transition-delay: .08s; }
.menu.ouvert nav a:nth-child(4) { transition-delay: .12s; }
.menu.ouvert nav a:nth-child(5) { transition-delay: .16s; }
.menu-tel { text-align: center; font-size: 1.1875rem; color: var(--marine-vif); }

@media (max-width: 860px) {
  .liens { display: none; }
  .burger { display: grid; }
  .nav { padding-right: 4px; }
}
@media (max-width: 480px) {
  .marque { font-size: 1rem; }
  .btn--nav { display: none; }
}

/* ───────── Accueil : photo du bar en fond, voile neutre (sans couleur) ───────── */

.hero {
  position: sticky; top: 0; z-index: 0;
  height: 100svh; min-height: 620px;
  display: grid; place-items: center;
  overflow: hidden; isolation: isolate;
  background: #111; color: #fff; text-align: center;
}
.hero-fond { position: absolute; inset: 0; z-index: -2; animation: zoom 14s var(--ease) both; }
.hero-fond img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.04 + var(--hp, 0) * .1)); }
.hero-voile {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .66) 0%, rgba(0, 0, 0, .46) 44%, rgba(0, 0, 0, .76) 100%);
}
.hero-texte {
  width: min(980px, 100% - 2 * var(--marge));
  padding: calc(var(--nav-h) + 4px) 0 clamp(96px, 17vh, 170px);
  display: grid; justify-items: center;
  opacity: calc(1 - var(--hp, 0) * 1.6);
  transform: translateY(calc(var(--hp, 0) * -80px));
  text-shadow: 0 1px 26px rgba(0, 0, 0, .5);
}
.hero-logo { width: clamp(84px, 9vw, 116px); margin-bottom: 18px; }
.hero .surtitre { margin-bottom: 12px; color: rgba(255, 255, 255, .88); }
.hero h1 { margin-bottom: .18em; }
.hero .chapo { margin-bottom: clamp(24px, 3.2vw, 38px); font-size: clamp(1.375rem, 3vw, 2rem); color: rgba(255, 255, 255, .9); }
.hero .actions { justify-content: center; }

.pastille {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 22px; padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, .26); border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: .875rem; font-weight: 600;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.pastille[hidden] { display: none; }
.pastille::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.pastille.ouvert::before { background: #fff; animation: pouls 2.4s ease-out infinite; }

@keyframes zoom { from { transform: scale(1.14); } to { transform: none; } }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } }
@keyframes monte { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.e1, .e2, .e3, .e4, .e5, .e6 { animation: monte 1s var(--ease) both; }
.e1 { animation-delay: .1s; }
.e2 { animation-delay: .2s; }
.e3 { animation-delay: .28s; }
.e4 { animation-delay: .36s; }
.e5 { animation-delay: .46s; }
.e6 { animation-delay: .6s; }

@media (max-height: 700px) {
  .hero-logo { width: 72px; margin-bottom: 12px; }
  .hero-texte { padding-bottom: 92px; }
}

/* ───────── La feuille blanche qui recouvre l'accueil ───────── */

.feuille {
  position: relative; z-index: 1; display: flow-root;
  border-radius: clamp(26px, 4vw, 44px) clamp(26px, 4vw, 44px) 0 0;
  background: var(--blanc);
}

.triptyque {
  position: relative; z-index: 2;
  width: min(var(--large), 100% - 2 * var(--marge));
  margin: calc(-1 * clamp(72px, 13vh, 132px)) auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 18px);
  align-items: start;
  animation: monte 1.2s var(--ease) .7s both;
}
.triptyque .tuile { aspect-ratio: 3 / 4; box-shadow: 0 30px 70px rgba(0, 0, 0, .3); }
.triptyque .cote { margin-top: clamp(28px, 5vw, 72px); }

@media (max-width: 700px) {
  .triptyque { grid-template-columns: 1fr 1fr; margin-top: -64px; }
  .triptyque .centre { grid-column: 1 / -1; order: -1; aspect-ratio: 4 / 5; }
  .triptyque .cote { margin-top: 0; }
}

/* ───────── Présentation ───────── */

.presentation { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(48px, 7vw, 96px); }
.manifeste {
  font-size: clamp(1.75rem, 4.4vw, 3.25rem);
  line-height: 1.14; letter-spacing: -.024em; font-weight: 600;
  color: var(--gris);
  text-wrap: pretty;
}
.manifeste strong { font-weight: inherit; color: var(--encre); }
.manifeste.anime .mot { color: #c7c7cc; transition: color .45s var(--ease); }
.manifeste.anime .mot.allume { color: var(--encre); }

.chiffres {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(56px, 8vw, 104px);
}
.chiffres > div { border-top: 1px solid var(--filet); padding-top: 20px; }
.chiffres dt {
  font-size: clamp(2.5rem, 5.2vw, 4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1;
  color: var(--marine); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.chiffres dt small { font-size: .5em; color: var(--gris); letter-spacing: -.01em; margin-left: .06em; }
.chiffres dd { margin-top: 12px; max-width: 24ch; font-size: .9375rem; line-height: 1.4; color: var(--gris); }
@media (max-width: 760px) { .chiffres { grid-template-columns: 1fr 1fr; gap: 28px 20px; } }

/* ───────── Bande de mots qui défile ───────── */

.defile {
  overflow: hidden; padding: clamp(4px, 1vw, 12px) 0 clamp(60px, 8vw, 112px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.defile-piste { display: flex; width: max-content; animation: defile 48s linear infinite; }
.defile-piste span {
  display: inline-flex; align-items: center;
  font-size: clamp(3rem, 9.4vw, 7.25rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.12;
  white-space: nowrap; color: var(--blanc); -webkit-text-stroke: 3px var(--marine); paint-order: stroke fill;
}
.defile-piste span::after { content: ""; width: .13em; height: .13em; margin: 0 .36em; border-radius: 50%; background: var(--marine); }
@supports not ((-webkit-text-stroke: 1px black) and (paint-order: stroke fill)) { .defile-piste span { color: var(--marine); -webkit-text-stroke: 0; } }
@keyframes defile { to { transform: translateX(-50%); } }

/* ───────── Le lieu : rayon de cartes ───────── */

.rayon {
  --h: 540px;
  --bord: max(var(--marge), (100% - var(--large)) / 2);
  display: flex; gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--bord);
  padding: 4px var(--bord) 22px;
  scrollbar-width: none;
}
.rayon::-webkit-scrollbar { display: none; }
.rayon:focus-visible { outline-offset: -3px; }

.carte {
  position: relative; flex: none; height: var(--h); aspect-ratio: 4 / 5;
  overflow: hidden; isolation: isolate;
  border-radius: var(--rayon); background: #111; color: #fff;
  scroll-snap-align: start;
}
.carte--large { aspect-ratio: 3 / 2; }
.carte img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.carte:hover img { transform: scale(1.045); }
.carte::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .66), rgba(0, 0, 0, .22) 32%, transparent 56%);
}
.carte-texte { position: absolute; inset: 0 0 auto 0; z-index: 1; padding: 26px 26px 0; display: grid; gap: 6px; }
.carte-texte h3 { font-size: 1.625rem; }
.carte-texte p { max-width: 26ch; font-size: 1rem; color: rgba(255, 255, 255, .9); }

.palettes { display: flex; justify-content: flex-end; gap: 14px; margin-top: 6px; }
.palettes[hidden] { display: none; }
.palette {
  width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: #e8e8ed; color: var(--encre); cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), opacity .25s var(--ease);
}
.palette:hover:not(:disabled) { background: var(--marine); color: #fff; }
.palette:disabled { opacity: .36; cursor: default; }
.palette svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 700px) {
  .rayon { --h: 440px; gap: 12px; }
  .carte--large { aspect-ratio: auto; width: 86vw; }
}
@media (hover: none) { .palettes { display: none; } }

/* ───────── À table : trois photos ───────── */

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trio .tuile { aspect-ratio: 4 / 5; }
.trio .tuile img { transition: transform 1.4s var(--ease); }
.trio .tuile:hover img { transform: scale(1.045); }

@media (max-width: 900px) {
  .trio {
    width: 100%; display: flex; gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--marge);
    padding-inline: var(--marge); scrollbar-width: none;
  }
  .trio::-webkit-scrollbar { display: none; }
  .trio .tuile { flex: 0 0 min(78vw, 360px); scroll-snap-align: start; }
  .js .trio .r { opacity: 1; transform: none; }
}

/* ───────── L'étal : récit au défilement ───────── */

.etal { padding-top: clamp(64px, 9vw, 130px); }
.recit { --large: 1080px; }
.recit-media { display: grid; gap: 14px; }
.plan { position: relative; overflow: hidden; margin: 0; border-radius: var(--rayon); background: #0c0c0d; }
.plan img, .plan video { width: 100%; height: 100%; object-fit: cover; }
.plan--duo { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; border-radius: 0; background: none; }
.plan--duo img { border-radius: var(--rayon); }
.recit-jauge { display: none; }
.recit-etapes { display: grid; gap: 30px; margin-top: 36px; }
.recit-etapes span { font-size: .875rem; font-weight: 600; color: var(--ciel); font-variant-numeric: tabular-nums; }
.recit-etapes h3 { margin: 8px 0 10px; font-size: clamp(2.5rem, 6.4vw, 4.75rem); letter-spacing: -.03em; line-height: 1; }
.recit-etapes p { max-width: 30ch; font-size: clamp(1.0625rem, 1.7vw, 1.3125rem); line-height: 1.38; color: var(--gris-clair); }
.centre-btn { margin-top: clamp(44px, 6vw, 72px); text-align: center; }

.js .recit {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: clamp(40px, 7vw, 110px); align-items: start;
}
.js .recit-etapes { grid-area: 1 / 1; gap: 0; margin: 0; }
.js .recit-media { grid-area: 1 / 2; position: sticky; top: calc(var(--nav-h) + 3vh); display: block; height: min(76vh, 700px); }
.js .plan {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.04); pointer-events: none;
  transition: opacity .7s var(--ease), transform 1.2s var(--ease);
}
.js .plan.actif { opacity: 1; transform: none; pointer-events: auto; }
.js .recit-etapes li {
  min-height: min(76vh, 700px); display: grid; align-content: center;
  opacity: .24; transition: opacity .5s var(--ease);
}
.js .recit-etapes li.actif { opacity: 1; }
.js .recit-jauge { position: absolute; left: 20px; bottom: 20px; z-index: 3; display: flex; gap: 6px; }
.recit-jauge i { width: 28px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .34); transition: background-color .4s var(--ease); }
.recit-jauge i.actif { background: #fff; }

@media (max-width: 900px) {
  .js .recit { display: block; padding-top: 54px; }
  .js .recit-media { top: calc(var(--nav-h) - 4px); z-index: 2; height: 40svh; }
  /* les textes passent derrière l'image épinglée */
  .js .recit-media::before { content: ""; position: absolute; inset: auto calc(-1 * var(--marge)) 100% calc(-1 * var(--marge)); height: var(--nav-h); background: var(--noir); }
  .js .recit-media::after { content: ""; position: absolute; inset: 100% calc(-1 * var(--marge)) auto calc(-1 * var(--marge)); height: 44px; background: linear-gradient(var(--noir), transparent); pointer-events: none; }
  .js .recit-etapes li { min-height: 46svh; }
}

/* ───────── Questions ───────── */

.faq { margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--filet); }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; list-style: none; cursor: pointer;
  font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -.016em; line-height: 1.25;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--marine-vif); }
.faq summary::after {
  content: ""; flex: none; width: 20px; height: 20px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform .45s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.reponse { max-width: 64ch; padding-bottom: 26px; color: var(--gris); }

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* ───────── Infos pratiques ───────── */

.pratique { display: grid; grid-template-columns: 1fr 1.15fr .85fr; gap: 20px; }
.bloc { padding: clamp(26px, 3vw, 38px); border-radius: var(--rayon); background: #fff; }
.bloc h3 { margin-top: 28px; font-size: .875rem; font-weight: 600; letter-spacing: 0; color: var(--gris); }
.bloc > h3:first-child, .bloc-tete h3 { margin-top: 0; }
.bloc--adresse { display: flex; flex-direction: column; }
.bloc p { margin-top: 6px; }
.bloc .bloc-cta { margin-top: auto; padding-top: 30px; }
.bloc-cta .btn { width: 100%; }
.bloc .grand { font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.bloc .grand a:hover { color: var(--marine-vif); }
.bloc-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.etat { margin: 0 !important; padding: 6px 12px; border-radius: 999px; background: #f0f0f2; color: var(--gris); font-size: .8125rem; font-weight: 600; }
.etat::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.etat.ouvert { background: #e4ebfa; color: var(--marine); }
.horaires { width: 100%; margin-top: 14px; border-collapse: collapse; }
.horaires th, .horaires td { padding: 11px 0; }
.horaires th { text-align: left; font-weight: 400; }
.horaires td { text-align: right; color: var(--gris); font-variant-numeric: tabular-nums; }
.horaires tr + tr th, .horaires tr + tr td { border-top: 1px solid var(--filet); }
.horaires tr.auj th, .horaires tr.auj td { font-weight: 600; color: var(--marine); }
.note { margin-top: 14px !important; font-size: .875rem; color: var(--gris); }
.bloc-photo { min-height: 340px; }
.bloc-photo img { position: absolute; inset: 0; }

@media (max-width: 900px) {
  .pratique { grid-template-columns: 1fr; gap: 12px; }
  .bloc-photo { min-height: 0; aspect-ratio: 4 / 5; }
}

/* ───────── Réserver ───────── */

.final { padding-bottom: clamp(20px, 3vw, 40px); background: var(--marine-nuit); color: #fff; }
.final .entete { gap: 24px; margin-bottom: clamp(48px, 7vw, 88px); }
.final .chapo { max-width: 34ch; color: rgba(255, 255, 255, .9); }
.final .lien { color: #fff; text-decoration: underline; text-underline-offset: .22em; }
.apart { font-size: .9375rem; color: rgba(255, 255, 255, .86); }
.enseigne { overflow: hidden; border-radius: var(--rayon); background: #0b0b0c; }
.enseigne img { width: 100%; }

/* ───────── Pied de page ───────── */

.pied {
  position: relative; z-index: 1;
  padding: clamp(40px, 6vw, 72px) 0 calc(36px + env(safe-area-inset-bottom));
  background: var(--noir); color: var(--gris-clair); font-size: .8125rem;
}
.pied a { color: #f5f5f7; }
.pied a:hover { text-decoration: underline; text-underline-offset: .22em; }
.pied-haut {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 20px;
  padding-bottom: 26px; margin-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.pied-logo { width: 72px; }
.pied-nom { font-size: 1.0625rem; font-weight: 600; color: #f5f5f7; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-left: auto; font-size: .875rem; }
.pied-bas { margin-top: 6px; }

/* ───────── Boutons fixes : barre (téléphone) et sceau (ordinateur) ───────── */

.barre {
  position: fixed; inset: auto 0 0 0; z-index: 45;
  display: none; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0, 0, 0, .1);
  transform: translateY(110%); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s .45s;
}
.barre.visible { transform: none; visibility: visible; transition-delay: 0s; }
.barre .btn { min-height: 50px; min-width: 0; padding: 0 18px; font-size: 1rem; }
.barre .btn:last-child { flex: 1; }

.sceau {
  position: fixed; right: 26px; bottom: 26px; z-index: 44;
  width: 122px; height: 122px;
  display: none; place-items: center;
  border-radius: 50%; background: var(--marine); color: #fff;
  box-shadow: 0 16px 44px rgba(var(--voile), .34);
  opacity: 0; transform: scale(.6) rotate(-30deg); visibility: hidden;
  transition: opacity .5s var(--ease), transform .6s var(--ease), background-color .3s var(--ease), visibility 0s .6s;
}
.sceau.visible { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.sceau:hover { background: var(--marine-vif); }
.sceau > svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: tourne 20s linear infinite; }
.sceau text { font-size: 17px; font-weight: 600; letter-spacing: .04em; fill: currentColor; }
.sceau-centre { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--marine); transition: transform .4s var(--ease); }
.sceau:hover .sceau-centre { transform: scale(1.12); }
.sceau-centre svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes tourne { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .barre { display: flex; }
  .pied { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .pied-liens { margin-left: 0; width: 100%; }
}
@media (min-width: 1000px) and (hover: hover) { .sceau { display: grid; } }

/* ───────── Apparitions ───────── */

.js .r {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.js .r.vu { opacity: 1; transform: none; }

/* titres : chaque mot monte derrière un cache */
.js .t .m { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .04em .16em; margin: -.06em -.04em -.16em; }
.js .t .m > span { display: inline-block; transform: translateY(112%); transition: transform 1s var(--ease) calc(var(--i, 0) * 70ms); }
.js .t.vu .m > span { transform: none; }

/* la photo de l'enseigne grandit en entrant dans l'écran (navigateurs récents) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes grandit { from { transform: scale(.9); } to { transform: none; } }
    .enseigne { animation: grandit linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .e1, .e2, .e3, .e4, .e5, .e6, .triptyque, .hero-fond, .defile-piste, .sceau > svg, .pastille.ouvert::before { animation: none; }
  .js .r { opacity: 1; transform: none; transition: none; }
  .carte img, .lien span, .menu nav a, .js .plan, .js .recit-etapes li { transition: none; }
}

/* ───────── Pages simples (mentions légales, 404) ───────── */

.page { padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 clamp(72px, 10vw, 120px); }
.page .boite { --large: 980px; }
.page h1 { font-size: clamp(2.25rem, 6vw, 4rem); margin-bottom: clamp(28px, 4vw, 48px); }
.page h2 { margin: 44px 0 10px; font-size: 1.5rem; letter-spacing: -.018em; }
.page p { max-width: 68ch; margin-top: 8px; color: var(--gris); }
.page p strong { color: var(--encre); }
.page--centre { min-height: 82vh; display: grid; place-content: center; justify-items: center; gap: 20px; text-align: center; }
.page--centre h1 { margin: 0; }
