/* ============================================================================
   OYA FADE — style.css
   ========================================================================== */

/* Polices hébergées sur le site (licence SIL OFL 1.1, voir assets/fonts/).
   Aucun appel à Google Fonts : l'adresse IP des visiteurs n'est transmise à
   aucun tiers au chargement de la page. */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bebas-neue-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bebas-neue-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/space-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/space-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-mono-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-mono-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --black: #050505;
  --ink: #0d0d0d;
  --white: #F4F4F4;
  --teal: #7FE3D7;
  --teal-dark: #1d3a37;
  --line: rgba(244, 244, 244, 0.14);
  --muted: rgba(244, 244, 244, 0.62);
  --font-main: 'Bebas Neue', Impact, 'Arial Narrow Bold', sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'Courier New', monospace;
  --ease: cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Pas de `scroll-behavior: smooth` ici : Lenis gère l'inertie, et les deux
   moteurs superposés produisent des à-coups. Repli si Lenis est absent. */
html:not(.lenis) { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.modal-open,
body.menu-open { overflow: hidden; }

img, video, iframe { max-width: 100%; display: block; }
/* `<picture>` ne sert qu'a proposer plusieurs fichiers pour une meme image :
   il ne doit pas exister dans la mise en page, sinon les <img> positionnes
   en absolu (fond du hero, mosaique) se calent sur lui. */
picture { display: contents; }
/* `display: contents` remonte les enfants de <picture> dans la mise en page :
   sans cette regle, <source> — que le navigateur laisse en `inline` — devient
   lui aussi une case de grille et la mosaique du salon compte le double de
   lignes, moitie vides. */
picture > source { display: none; }

/* Curseur natif masqué uniquement si le curseur personnalisé fonctionne
   vraiment (souris détectée + GSAP chargé). */
.has-custom-cursor,
.has-custom-cursor * { cursor: none; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* -------------------------------------
   Grain cinéma
------------------------------------- */
.film-grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 400; opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* -------------------------------------
   Curseur personnalisé
------------------------------------- */
.cursor, .cursor-follower {
  position: fixed; top: 0; left: 0; pointer-events: none; border-radius: 50%;
  z-index: 10100; transform: translate(-50%, -50%); display: none; will-change: transform;
}
.has-custom-cursor .cursor,
.has-custom-cursor .cursor-follower { display: block; }
.cursor { width: 10px; height: 10px; background: var(--teal); transition: width .3s, height .3s; margin: -5px 0 0 -5px; }
.cursor-follower { width: 38px; height: 38px; border: 1px solid var(--muted); margin: -19px 0 0 -19px; transition: opacity .3s; }
.cursor.active { width: 72px; height: 72px; margin: -36px 0 0 -36px; mix-blend-mode: difference; background: var(--white); }
.cursor.active + .cursor-follower { opacity: 0; }

/* -------------------------------------
   Loader
------------------------------------- */
.loader-brut {
  position: fixed; inset: 0; background: var(--black);
  display: flex; align-items: center; justify-content: center;
  z-index: 10200; color: var(--teal);
  font-family: var(--font-main); font-size: clamp(2rem, 7vw, 5rem); letter-spacing: .1em;
  transition: opacity .8s ease-out;
}
.loader-brut span { color: var(--white); }
.loader-brut.hidden { opacity: 0; pointer-events: none; }
.loader-brut[hidden] { display: none; }

/* -------------------------------------
   Typographie
------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-main); text-transform: uppercase; line-height: .9; margin: 0; font-weight: 400; }
.mono-text { font-family: var(--font-mono); font-size: clamp(.85rem, 1.05vw, 1.05rem); line-height: 1.65; }
.teal-text { color: var(--teal); }
.muted-text { color: var(--muted); }

.outline-text { color: var(--white); }
@supports (-webkit-text-stroke: 1px black) {
  .outline-text { color: transparent; -webkit-text-stroke: 2px var(--white); }
}

.magnetic, .magnetic-text { display: inline-block; }

/* Révélation : tout est visible par défaut. L'état masqué n'existe que si
   GSAP tourne réellement (`js-anim`), et `force-visible` est le filet final. */
.js-anim .reveal-text { opacity: 0; transform: translateY(46px); }
.force-visible .reveal-text { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html, html:not(.lenis) { scroll-behavior: auto; }
  .reveal-text { opacity: 1 !important; transform: none !important; }
  .ribbon-track { animation: none !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* -------------------------------------
   Conteneur de défilement horizontal
------------------------------------- */
/* `clip` et non `hidden` : un conteneur `hidden` reste defilable par script.
   Quand l'iframe Planity se donne le focus, le navigateur le faisait defiler
   jusqu'a elle, ce decalage s'ajoutait a la translation GSAP et tout le ruban
   sortait du champ. */
.scroll-container { width: 100vw; height: 100vh; overflow: hidden; overflow: clip; }
.scroll-content { display: flex; flex-wrap: nowrap; height: 100vh; width: max-content; }
.panel {
  width: 100vw; height: 100vh; padding: 6vw;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; flex: 0 0 auto; overflow: hidden;
}

/* -------------------------------------
   1 — Hero
------------------------------------- */
.hero-panel { align-items: center; justify-content: center; text-align: center; }
/* Débord volontaire : la parallaxe déplace l'image sans découvrir les bords. */
.hero-bg {
  position: absolute; top: -4%; left: -8%; width: 116%; height: 108%;
  object-fit: cover; z-index: 0;
  filter: grayscale(25%) brightness(.62) contrast(1.06);
  will-change: transform;
}
.hero-panel::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at center, rgba(5,5,5,.5) 0%, rgba(5,5,5,.9) 78%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero-brut-logo { width: 82px; height: auto; margin-bottom: 2rem; filter: brightness(0) invert(1); }
.hero-title h1 { font-size: clamp(4rem, 18vw, 17rem); letter-spacing: -.02em; color: var(--teal); }
.hero-sub { margin-top: .8rem; color: var(--white); font-size: clamp(.75rem, 1.4vw, 1.3rem); letter-spacing: .35em; }
.hero-meta { margin-top: 2rem; display: flex; gap: .8rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.hero-cta { margin-top: 1.6rem; display: flex; gap: .9rem; flex-wrap: wrap; justify-content: center; }
.scroll-indicator-horizontal {
  position: absolute; bottom: 4vh; left: 50%; transform: translateX(-50%); z-index: 2;
  color: var(--muted); font-size: .75rem; letter-spacing: .2em;
}

.status-badge, .rating-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .05em;
  padding: .42rem .9rem; border-radius: 100px; border: 1px solid var(--line);
  background: rgba(5, 5, 5, .5); backdrop-filter: blur(4px);
}
.status-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status-badge.is-open { color: var(--teal); border-color: var(--teal-dark); }
.status-badge.is-open::before { background: var(--teal); box-shadow: 0 0 0 3px rgba(127, 227, 215, .18); }
.status-badge.is-closed { color: var(--muted); }
.rating-badge { color: var(--teal); border-color: var(--teal-dark); }
.rating-badge::before { content: '★'; font-size: .95rem; line-height: 1; }

/* -------------------------------------
   2 — Bandeau réalisations
------------------------------------- */
.gallery-panel { width: 115vw; justify-content: center; gap: 2.5vh; padding: 6vh 0 6vh 6vw; }
.gallery-head { flex: 0 0 auto; max-width: 46ch; }
.gallery-head h2 { font-size: clamp(2.5rem, 6vw, 7rem); color: var(--teal); }
.gallery-head p { color: var(--muted); margin-top: .7rem; }

.ribbon { position: relative; overflow: hidden; width: 100%; }
.ribbon::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--black) 0%, transparent 6%, transparent 94%, var(--black) 100%);
}
.ribbon-hint { display: none; }
.ribbon-track { display: flex; gap: 1.2vw; width: max-content; will-change: transform; }
.ribbon-item {
  flex: 0 0 auto; height: 54vh; aspect-ratio: 440 / 620;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  background: var(--ink);
}
.ribbon-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(20%) contrast(1.03);
  transition: filter .5s var(--ease), transform .6s var(--ease);
}
.ribbon-item:hover img { filter: none; transform: scale(1.04); }

/* -------------------------------------
   3 — L'Équipe
------------------------------------- */
.team-panel { flex-direction: row; align-items: center; justify-content: flex-start; padding: 0 5vw 0 0; }
.team-header { flex: 0 0 14vw; height: 100%; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--line); margin-right: 2vw; }
.team-header h2 { font-size: 9vw; writing-mode: vertical-rl; transform: rotate(180deg); }
.team-members-wrapper { display: flex; flex: 1; height: 100%; align-items: center; min-width: 0; }
.team-member { display: flex; flex: 1; height: 100%; align-items: center; justify-content: center; gap: 3vw; padding: 5vw 2vw; min-width: 0; }
.left-member { border-right: 1px solid var(--line); }
.team-photo { flex: 0 0 17vw; height: 62vh; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.08); transition: filter .5s var(--ease), transform .8s var(--ease); }
.team-photo:hover img { filter: none; transform: scale(1.03); }
.team-desc { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.team-desc h2 { font-size: clamp(2.5rem, 5.5vw, 7rem); margin-bottom: .4rem; color: var(--white); }
.team-role { font-weight: 700; font-size: clamp(.85rem, 1.1vw, 1.1rem); letter-spacing: .08em; }
.team-bio { margin-top: 1rem; color: var(--muted); }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* -------------------------------------
   4 — L'Espace
------------------------------------- */
.station-panel { width: 120vw; padding: 0; align-items: center; justify-content: center; }
/* Légèrement plus large que le panneau : marge de manœuvre pour la parallaxe. */
.station-gallery { display: flex; position: absolute; top: 0; left: -4%; width: 108%; height: 100%; }
.gallery-img {
  flex: 1; min-width: 0; height: 100%; object-fit: cover;
  filter: grayscale(55%) brightness(.52) contrast(1.05);
  border-right: 1px solid rgba(244, 244, 244, .08);
  will-change: transform;
  transition: filter .6s var(--ease);
}
.station-gallery:hover .gallery-img { filter: grayscale(70%) brightness(.36); }
.station-gallery .gallery-img:hover { filter: grayscale(0%) brightness(.85); }
.station-overlay-text {
  position: relative; z-index: 2; text-align: center; max-width: min(92vw, 720px);
  background: rgba(5, 5, 5, .74); padding: clamp(1.5rem, 3.5vw, 3.5rem);
  border: 1px solid var(--teal); backdrop-filter: blur(3px);
}
.station-overlay-text h2 { font-size: clamp(3rem, 9vw, 10rem); color: var(--teal); }
.station-overlay-text p { color: var(--muted); margin-top: .8rem; }

/* -------------------------------------
   5 — Archives
------------------------------------- */
.portfolio-panel { flex-direction: row; gap: 8vw; align-items: center; }
.portfolio-title-side { writing-mode: vertical-rl; transform: rotate(180deg); }
.portfolio-title-side h2 { font-size: 7.5vw; color: var(--white); }
.portfolio-title-side p { color: var(--muted); margin-top: 1rem; }
.portfolio-list { display: flex; flex-direction: column; z-index: 2; position: relative; flex: 1; min-width: 0; }
.portfolio-item { padding: 1.8vh 0; border-bottom: 1px solid var(--line); transition: padding .35s var(--ease), border-color .3s; }
.portfolio-item h2 { font-size: clamp(2rem, 6.5vw, 8rem); transition: color .3s; color: var(--white); }
@supports (-webkit-text-stroke: 1px black) {
  .portfolio-item h2 { color: transparent; -webkit-text-stroke: 1px var(--white); transition: color .3s, -webkit-text-stroke .3s; }
}
.portfolio-item:hover, .portfolio-item:focus-visible { padding-left: 2.5vw; border-bottom-color: var(--teal); }
.portfolio-item:hover h2, .portfolio-item:focus-visible h2 { color: var(--teal); -webkit-text-stroke: 0; }

/* Vignette qui suit le curseur sur les archives */
.portfolio-preview {
  position: fixed; top: 0; left: 0; width: 240px; height: 320px;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--teal);
  pointer-events: none; z-index: 9200; opacity: 0; visibility: hidden;
  transform: translate(-9999px, -9999px) scale(.92); will-change: transform;
}
.portfolio-preview img { width: 100%; height: 100%; object-fit: cover; }

/* -------------------------------------
   Modale galerie
------------------------------------- */
.video-modal {
  position: fixed; inset: 0; background: rgba(5, 5, 5, .96);
  z-index: 10000; display: flex; flex-direction: column;
  padding: 4vh 5vw; opacity: 0; pointer-events: none; transition: opacity .4s;
  overflow-y: auto; overscroll-behavior: contain;
}
.video-modal.open { opacity: 1; pointer-events: auto; }
.modal-close {
  align-self: flex-end; position: sticky; top: 1rem;
  font-family: var(--font-main); font-size: clamp(1.2rem, 2vw, 2rem);
  color: var(--teal); background: rgba(5, 5, 5, .85); backdrop-filter: blur(8px);
  border: 1px solid var(--teal); border-radius: 100px;
  padding: .35rem 1.4rem; z-index: 10; letter-spacing: .1em; cursor: pointer;
  transition: background .3s, color .3s;
}
.modal-close:hover { background: var(--teal); color: var(--black); }
.modal-title-container { text-align: center; margin-bottom: 2.5rem; }
.modal-title-container h2 { font-size: clamp(2.5rem, 7vw, 8rem); color: var(--white); }
.modal-video-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem; width: 100%; max-width: 1500px; margin: 0 auto; padding-bottom: 4vh;
}
.modal-video-grid video, .modal-video-grid img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .3s; border-radius: 10px; background: var(--ink);
}
.modal-video-grid video:hover, .modal-video-grid img:hover { transform: scale(1.02); border-color: var(--teal); }
.modal-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 4rem 1rem; }

/* -------------------------------------
   6 — Services
------------------------------------- */
.prices-panel { flex-direction: row; align-items: center; gap: 4vw; width: 120vw; }
.prices-header { flex: 0 0 12vw; }
.prices-header h2 { font-size: 9vw; writing-mode: vertical-rl; transform: rotate(180deg); }
.prices-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5vw; flex: 1; min-width: 0; }
.price-col { border-left: 1px solid var(--line); padding-left: 2vw; min-width: 0; }
.price-col > h3 { font-size: clamp(1.6rem, 2.6vw, 3rem); margin-bottom: 1.6rem; color: var(--white); letter-spacing: .04em; }
.price-list { display: flex; flex-direction: column; gap: 1rem; }
.price-item {
  border: 1px solid var(--line); padding: 1.1rem 1.2rem; border-radius: 8px;
  background: rgba(244, 244, 244, .02);
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.price-item:hover { border-color: var(--teal); background: rgba(127, 227, 215, .05); transform: translateX(8px); }
.price-item.is-featured { border-color: var(--teal); background: rgba(127, 227, 215, .06); }
.price-item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.price-item-top h4 { font-size: clamp(1.2rem, 1.7vw, 2rem); letter-spacing: .04em; color: var(--white); }
.price-item-top .price { font-family: var(--font-mono); font-size: clamp(.95rem, 1.1vw, 1.35rem); color: var(--teal); font-weight: 700; white-space: nowrap; }
.prices-note { grid-column: 1 / -1; color: var(--muted); font-size: .76rem; margin-top: .5rem; }

/* -------------------------------------
   7 — Réseaux
------------------------------------- */
.reviews-panel { flex-direction: row; align-items: center; gap: 5vw; }
.reviews-header { flex: 0 0 10vw; }
.reviews-header h2 { font-size: 9vw; writing-mode: vertical-rl; transform: rotate(180deg); }
.reviews-grid { display: flex; gap: 2vw; flex: 1; justify-content: center; min-width: 0; }
.review-card {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 4vw 2vw; flex: 1; min-width: 0; min-height: 46vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  text-decoration: none; color: inherit;
  transition: border-color .35s, transform .45s var(--ease);
}
.review-card-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  filter: grayscale(85%) brightness(.34); transition: filter .5s var(--ease), transform .8s var(--ease);
}
.review-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5,5,5,.4) 0%, rgba(5,5,5,.86) 100%);
}
.review-card:hover { border-color: var(--teal); transform: translateY(-8px); }
.review-card:hover .review-card-bg { filter: grayscale(0%) brightness(.5); transform: scale(1.06); }
.review-card-body { position: relative; }
.review-card h3 { font-size: clamp(1.5rem, 2.8vw, 3rem); margin-bottom: .8rem; color: var(--teal); }
.review-card p { color: var(--muted); font-size: .85rem; }

/* -------------------------------------
   8 — Réservation, carte & pied de page
------------------------------------- */
.booking-panel { flex-direction: column; justify-content: flex-start; overflow-y: auto; padding: 6vh 6vw 3vh; }
.booking-content { width: 100%; display: flex; flex-direction: column; align-items: center; }
.booking-content h2 { font-size: clamp(3.5rem, 11vw, 13rem); }
.booking-content > p { margin-bottom: 1.4rem; color: var(--muted); }

.booking-cols { display: flex; gap: 2.2rem; width: 100%; max-width: min(94vw, 1340px); align-items: stretch; flex-wrap: wrap; }
.booking-main { flex: 1.6 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.booking-side { flex: 1 1 340px; max-width: 380px; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.booking-primary { font-size: 1.6rem; padding: 1rem 2rem; }

.embed-frame {
  width: 100%;
  border: 1px solid var(--teal); border-radius: 12px; overflow: hidden;
  position: relative; background: var(--ink);
}
#booking-embed {
  height: clamp(580px, 70vh, 840px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}
.embed-frame iframe { width: 100%; height: 100%; border: 0; }
.embed-frame.map-frame { height: clamp(200px, 24vh, 260px); border-color: var(--line); }
.embed-frame.map-frame iframe { filter: grayscale(100%) invert(92%) hue-rotate(180deg) contrast(105%); }

.embed-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .9rem; text-align: center; padding: 1.5rem;
  color: var(--muted); font-size: .8rem; line-height: 1.6;
}
.embed-frame.is-loaded .embed-placeholder { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-main); font-size: 1.3rem; letter-spacing: .08em;
  padding: .65rem 1.7rem; border-radius: 100px; text-decoration: none;
  border: 1px solid var(--teal); color: var(--teal); background: transparent;
  transition: background .3s, color .3s, border-color .3s; cursor: pointer;
}
.btn:hover { background: var(--teal); color: var(--black); }
.btn-solid { background: var(--teal); color: var(--black); }
.btn-solid:hover { background: var(--white); border-color: var(--white); }
.btn-ghost { border-color: var(--line); color: var(--white); background: rgba(5,5,5,.4); }
.btn-ghost:hover { border-color: var(--white); background: var(--white); color: var(--black); }
.btn-block { width: 100%; }

.info-card { border: 1px solid var(--line); border-radius: 10px; padding: 1.3rem; background: rgba(244, 244, 244, .02); }
.info-card h3 { font-size: 1.5rem; color: var(--teal); margin-bottom: .8rem; letter-spacing: .06em; }
.info-card p, .info-card address { font-style: normal; color: var(--muted); font-size: .85rem; line-height: 1.7; }
.info-card a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--teal-dark); }
.info-card a:hover { color: var(--teal); }

#hours-list { list-style: none; font-size: .82rem; }
#hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; color: var(--muted); border-bottom: 1px solid rgba(244, 244, 244, .06); }
#hours-list li:last-child { border-bottom: 0; }
#hours-list li.is-today { color: var(--teal); font-weight: 700; }

.footer-brut {
  position: relative; width: 100%; max-width: 1100px; margin: 2.5rem auto 0; flex-shrink: 0;
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 1.5rem; font-size: .76rem; color: var(--muted);
}
.footer-brut a { color: var(--muted); text-decoration: none; }
.footer-brut a:hover { color: var(--teal); }
.footer-col p { margin-bottom: .25rem; }

/* -------------------------------------
   Menu & appels à l'action flottants
------------------------------------- */
.menu-btn {
  position: fixed; top: 1.2rem; right: 1.2rem; z-index: 9500; background: rgba(5, 5, 5, .55);
  border: 1px solid var(--line); border-radius: 50%; backdrop-filter: blur(6px);
  width: 46px; height: 46px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; cursor: pointer;
}
.menu-line { display: block; width: 18px; height: 2px; background: var(--teal); transition: transform .35s var(--ease), opacity .3s; }
.menu-btn.is-open .menu-line:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn.is-open .menu-line:last-child { transform: translateY(-4px) rotate(-45deg); }

.sticky-booking-btn {
  position: fixed; top: 1.2rem; left: 1.2rem; z-index: 9400;
  font-family: var(--font-main); font-size: 1.35rem; letter-spacing: .1em;
  background: var(--teal); color: var(--black); text-decoration: none;
  padding: .6rem 1.5rem; border-radius: 100px; border: 1px solid var(--teal);
  transition: background .3s, color .3s;
}
.sticky-booking-btn:hover { background: transparent; color: var(--teal); }

.contact-bar { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 9400; display: flex; flex-direction: column; gap: .6rem; }
.contact-bar a {
  width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 5, 5, .7); border: 1px solid var(--line); backdrop-filter: blur(6px);
  color: var(--teal); text-decoration: none; transition: background .3s, color .3s, border-color .3s;
}
.contact-bar a:hover { background: var(--teal); color: var(--black); border-color: var(--teal); }
.contact-bar svg { width: 21px; height: 21px; fill: currentColor; }

.menu-overlay {
  position: fixed; inset: 0; background: var(--black); z-index: 9450;
  display: flex; align-items: center; justify-content: center; overflow-y: auto;
  transform: translateY(-100%); transition: transform .8s cubic-bezier(.77, 0, .175, 1);
}
.menu-overlay.open { transform: translateY(0); }
.menu-nav { display: flex; flex-direction: column; text-align: center; gap: 1rem; padding: 12vh 1rem; margin: auto; }
.menu-link { font-family: var(--font-main); font-size: clamp(2rem, 6vw, 6rem); color: var(--white); text-decoration: none; transition: color .3s; letter-spacing: .04em; }
@supports (-webkit-text-stroke: 1px black) {
  .menu-link { color: transparent; -webkit-text-stroke: 1.5px var(--white); transition: color .3s, -webkit-text-stroke .3s; }
}
.menu-link:hover, .menu-link:focus-visible { color: var(--teal); -webkit-text-stroke: 0; }
.menu-footer { margin-top: 2rem; color: var(--muted); font-size: .78rem; line-height: 1.9; }
.menu-footer a { color: var(--muted); }

/* -------------------------------------
   Consentement cookies — recommandation CNIL consolidée du 16/01/2026.
   Les trois boutons du premier niveau partagent STRICTEMENT le même style :
   aucun choix n'est mis visuellement plus en valeur qu'un autre.
------------------------------------- */
.consent-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 10300;
  max-width: 660px; margin-inline: auto;
  background: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .8rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
}
.consent-banner[hidden], .consent-panel[hidden] { display: none; }
.consent-title { font-family: var(--font-main); font-size: 1.4rem; letter-spacing: .06em; color: var(--white); line-height: 1; }
.consent-text { font-size: .76rem; line-height: 1.65; color: var(--muted); }
.consent-text strong { color: var(--white); font-weight: 700; }
.consent-banner a, .consent-panel a { color: var(--teal); }
.consent-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.consent-btn {
  flex: 1 1 0; min-width: 9.5rem;
  font-family: var(--font-main); font-size: 1.05rem; letter-spacing: .08em; line-height: 1.2;
  padding: .6rem 1rem; border-radius: 100px; border: 1px solid var(--white);
  background: transparent; color: var(--white); cursor: pointer;
  transition: background .2s, color .2s;
}
.consent-btn:hover, .consent-btn:focus-visible { background: var(--white); color: var(--black); }

.consent-panel {
  position: fixed; inset: 0; z-index: 10400; background: rgba(5, 5, 5, .82);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.consent-dialog {
  width: 100%; max-width: 640px; max-height: calc(100vh - 2rem); overflow-y: auto;
  background: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.4rem; display: flex; flex-direction: column; gap: 1rem;
}
.consent-item {
  border: 1px solid var(--line); border-radius: 10px; padding: 1rem;
  display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: center;
}
.consent-item h3 { font-size: 1.15rem; letter-spacing: .05em; color: var(--white); line-height: 1.1; }
.consent-item p { grid-column: 1 / -1; font-size: .74rem; line-height: 1.6; color: var(--muted); }
.consent-always { font-size: .7rem; color: var(--muted); white-space: nowrap; }

.consent-switch { position: relative; width: 48px; height: 26px; flex: none; }
.consent-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.consent-switch span { position: absolute; inset: 0; border-radius: 26px; background: #2a2a2a; border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.consent-switch span::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s;
}
.consent-switch input:checked + span { background: var(--teal-dark); border-color: var(--teal); }
.consent-switch input:checked + span::after { transform: translateX(22px); background: var(--teal); }
.consent-switch input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 3px; }

.embed-consent-note { font-size: .7rem; color: var(--muted); max-width: 44ch; }

/* Lien persistant « Gérer les cookies » */
.consent-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.consent-link:hover { color: var(--teal); }

/* Avis clients : source et date affichées à côté de la note (C. conso. L.111-7-2) */
.rating-badge { text-decoration: none; }
.rating-note { margin-top: .75rem; font-size: .66rem; line-height: 1.6; color: var(--muted); max-width: 64ch; text-align: center; }

/* Durées des prestations */
.price-meta { display: block; margin-top: .35rem; font-size: .7rem; color: var(--muted); letter-spacing: .04em; }

/* -------------------------------------
   Pages légales
------------------------------------- */
.legal-page { max-width: 780px; margin: 0 auto; padding: 12vh 6vw 10vh; }
.legal-page h1 { font-size: clamp(2.5rem, 8vw, 5rem); color: var(--teal); margin-bottom: 2rem; }
.legal-page h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 2.5rem 0 .8rem; color: var(--white); }
.legal-page p, .legal-page li { color: var(--muted); font-size: .9rem; line-height: 1.8; }
.legal-page ul { padding-left: 1.2rem; margin: .5rem 0; }
.legal-page a { color: var(--teal); }
.legal-back { display: inline-block; margin-bottom: 2rem; color: var(--muted); text-decoration: none; font-size: .85rem; }
.legal-back:hover { color: var(--teal); }
.legal-todo { color: #ffb35c; }
.legal-foot { margin-top: 3rem; }
.legal-page h3 { font-family: var(--font-mono); text-transform: none; font-size: .95rem; font-weight: 700; color: var(--white); margin: 1.6rem 0 .5rem; line-height: 1.4; }
.legal-page dl { display: grid; grid-template-columns: minmax(10rem, max-content) 1fr; gap: .45rem 1.2rem; margin: .8rem 0; }
.legal-page dt { color: var(--white); font-size: .85rem; }
.legal-page dd { color: var(--muted); font-size: .85rem; line-height: 1.7; }
.legal-table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line); border-radius: 8px; }
.legal-page table { width: 100%; border-collapse: collapse; font-size: .78rem; min-width: 560px; }
.legal-page th, .legal-page td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--line); color: var(--muted); line-height: 1.55; }
.legal-page th { color: var(--white); font-weight: 700; background: rgba(244, 244, 244, .03); }
.legal-page tr:last-child td { border-bottom: 0; }
.legal-meta { font-size: .78rem; color: var(--muted); margin-bottom: 2rem; }
@media (max-width: 560px) { .legal-page dl { grid-template-columns: 1fr; gap: .2rem; } .legal-page dd { margin-bottom: .6rem; } }

/* -------------------------------------
   Page 404
------------------------------------- */
.error-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 8vh 6vw; position: relative; z-index: 2;
}
.error-page .error-logo { width: 72px; height: auto; margin-bottom: 2rem; filter: brightness(0) invert(1); }
.error-page h1 { font-size: clamp(6rem, 20vw, 16rem); color: var(--teal); line-height: .85; }
.error-page h2 { font-size: clamp(1.8rem, 4.5vw, 3.5rem); margin-top: 1rem; color: var(--white); }
.error-page p { color: var(--muted); max-width: 480px; margin: 1.2rem auto 2.2rem; }
.error-page .error-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.error-page .error-legal { margin: 2.5rem auto 0; font-size: .75rem; }
.error-page .error-legal a { color: var(--muted); }

/* ============================================================================
   Mise en page smartphone
   ----------------------------------------------------------------------------
   Le site est conçu en défilement horizontal sur ordinateur. Sur téléphone il
   redevient une page verticale classique : c'est ici que cette bascule est
   décrite, section par section.

   Unités : `svh` (small viewport height) est la hauteur de l'écran barre
   d'adresse DÉPLIÉE. C'est la seule qui ne bouge pas quand la barre se replie
   au défilement — `vh` provoquait des sauts de mise en page à chaque geste.
   Les encoches et la barre gestuelle sont gérées par `env(safe-area-inset-*)`.
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    /* Marge latérale unique : tout s'aligne dessus, y compris le pied de page. */
    --pad-x: clamp(1.15rem, 5.5vw, 2rem);
    /* Respiration verticale entre deux sections. */
    --sec-y: clamp(3.25rem, 11vw, 5rem);
    /* Hauteur de la barre d'action fixe en bas d'écran (bouton RÉSERVER).
       Sert à décaler tout ce qui ne doit pas passer dessous. */
    --bar-h: 4.15rem;
    --bar-total: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  }

  /* Curseur personnalisé et aperçu au survol : sans objet au doigt. */
  .has-custom-cursor, .has-custom-cursor * { cursor: auto; }
  .cursor, .cursor-follower, .portfolio-preview { display: none !important; }

  /* Le grain reste, mais discret : à 3 pixels physiques pour 1 point CSS il
     devient du bruit visuel et coûte cher à composer sur un écran de téléphone. */
  .film-grain { opacity: .055; }

  /* --- Structure : le rail horizontal redevient une page verticale --- */
  .scroll-container { width: 100%; height: auto; overflow: visible; }
  .scroll-content { display: block; height: auto; width: 100%; }
  .panel {
    width: 100%; height: auto; min-height: 0;
    padding: var(--sec-y) var(--pad-x);
    overflow: visible;
  }
  .gallery-panel, .station-panel, .prices-panel { width: 100%; }

  /* Démarcation entre deux sections : filet turquoise et halo descendant. */
  .panel:not(:first-child) {
    position: relative;
    border-top: 1px solid rgba(127, 227, 215, .14);
    background-image: radial-gradient(ellipse 80% 90px at 50% 0%, rgba(127, 227, 215, .05), transparent 75%);
  }

  /* --- 1. Hero : seul panneau qui occupe tout l'écran --- */
  .hero-panel {
    min-height: 100svh;
    /* Haut : sous le bouton menu. Bas : au-dessus de la barre d'action. */
    padding: calc(5.5rem + env(safe-area-inset-top, 0px)) var(--pad-x) calc(var(--bar-total) + 2rem);
    justify-content: center;
  }
  .hero-bg { top: -5%; left: 0; width: 100%; height: 112%; }
  .hero-brut-logo { width: 62px; margin-bottom: 1.5rem; }
  /* 21vw : « OYA FADE » tient sur une ligne de 320 px à 430 px de large. */
  .hero-title h1 { font-size: 21vw; }
  .hero-sub { font-size: .72rem; letter-spacing: .28em; margin-top: .7rem; }
  .hero-meta { margin-top: 1.5rem; gap: .5rem; }
  /* La note est un lien vers Planity : 44 px de haut, comme toute cible tactile. */
  .status-badge, .rating-badge { font-size: .74rem; padding: .5rem .95rem; min-height: 44px; }
  .rating-note { font-size: .72rem; margin-top: .9rem; max-width: 34ch; }
  .hero-cta { margin-top: 1.7rem; width: 100%; flex-direction: column; gap: .7rem; }
  .hero-cta .btn { width: 100%; }

  /* Repère de défilement. Calé en bas de l'écran, il venait buter contre les
     deux boutons d'appel à l'action : il est remis dans le flux, sous eux. */
  .scroll-indicator-horizontal {
    position: static; transform: none; display: block;
    margin-top: 2.25rem; font-size: .62rem; letter-spacing: .22em;
    transition: opacity .4s ease;
  }
  .scroll-indicator-horizontal::after {
    content: ''; display: block; width: 1px; height: 26px; margin: .55rem auto 0;
    background: linear-gradient(180deg, var(--teal), transparent);
  }
  .is-scrolled .scroll-indicator-horizontal { opacity: 0; }

  /* --- 2. Réalisations : bande d'images balayée au doigt --- */
  .gallery-panel { padding: var(--sec-y) 0; gap: 1.6rem; }
  .gallery-head { padding: 0 var(--pad-x); max-width: none; }
  .gallery-head h2 { font-size: 15vw; }
  .gallery-head p { margin-top: .6rem; }

  .ribbon {
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Le padding fait partie de la zone défilable : la première et la dernière
       image s'arrêtent alignées sur la marge du texte, pas collées au bord. */
    padding: 0 var(--pad-x);
  }
  .ribbon::-webkit-scrollbar { display: none; }
  .ribbon::after { display: none; }
  .ribbon-track { gap: .75rem; transform: none !important; }
  /* 38svh : la largeur qui en découle (~270 px) reste sous la définition des
     photos sources, donc pas de flou sur écran retina. */
  .ribbon-item { height: 38svh; max-height: 360px; scroll-snap-align: center; }
  .ribbon-item img { filter: none; }

  /* Indice de balayage, masqué au premier geste. */
  .ribbon-hint {
    display: flex; align-items: center; gap: .5rem;
    padding: 0 var(--pad-x); color: var(--muted);
    font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em;
    transition: opacity .35s ease;
  }
  .ribbon-hint::after {
    content: ''; flex: 1; height: 1px; max-width: 3.5rem;
    background: linear-gradient(90deg, var(--teal), transparent);
  }
  .ribbon-hint.is-hidden { opacity: 0; }

  /* --- 3. L'équipe : photo puis texte, même ordre pour les deux barbiers --- */
  .team-panel { flex-direction: column; gap: var(--sec-y); }
  .team-header {
    flex: auto; width: 100%; height: auto; margin: 0;
    border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 1.1rem;
    justify-content: flex-start;
  }
  .team-header h2 { writing-mode: horizontal-tb; transform: none; font-size: 15vw; }
  .team-members-wrapper { flex-direction: column; gap: var(--sec-y); width: 100%; }
  .team-member {
    flex-direction: column; align-items: center; text-align: center;
    padding: 0; gap: 1.5rem; height: auto; width: 100%;
  }
  /* Yanis a son texte avant sa photo dans le HTML (miroir du bureau) : sur
     téléphone les deux blocs suivent le même ordre photo → nom → rôle. */
  .left-member .team-photo { order: -1; }
  .left-member { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: var(--sec-y); }
  .team-photo {
    flex: none; width: min(74vw, 330px); height: auto; aspect-ratio: 3 / 4;
    border-color: rgba(127, 227, 215, .18);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
  }
  .team-photo img { filter: grayscale(0%) contrast(1.04); }
  .text-right, .text-left { text-align: center; }
  .team-desc h2 { font-size: 13vw; }
  .team-bio { margin-top: .7rem; max-width: 34ch; margin-inline: auto; }

  /* --- 4. Immersion : mosaïque plein cadre, titre posé au centre --- */
  .station-panel { padding: 0; }
  .station-gallery {
    position: relative; left: 0; width: 100%; height: auto;
    display: grid; grid-template-columns: repeat(2, 1fr);
    /* Les filets viennent de l'interstice, pas des images : ils restent justes
       quel que soit le nombre de colonnes. */
    gap: 1px; background: rgba(244, 244, 244, .08);
  }
  .gallery-img {
    flex: none; width: 100%; height: auto; aspect-ratio: 3 / 4;
    transform: none !important; will-change: auto;
    filter: grayscale(25%) brightness(.62) contrast(1.04);
    border: 0;
  }
  .station-overlay-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: calc(100% - 2 * var(--pad-x)); max-width: 26rem; z-index: 3;
    padding: 1.5rem 1.25rem;
  }
  .station-overlay-text h2 { font-size: 16vw; }
  .station-overlay-text p { margin-top: .6rem; }

  /* --- 5. Archives : liste de catégories, chacune ouvre la galerie --- */
  .portfolio-panel { flex-direction: column; gap: 1.8rem; }
  .portfolio-title-side { writing-mode: horizontal-tb; transform: none; }
  .portfolio-title-side h2 { font-size: 15vw; }
  .portfolio-title-side p { margin-top: .6rem; font-size: .72rem; letter-spacing: .12em; }
  .portfolio-list { width: 100%; }
  .portfolio-item {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .85rem .1rem; min-height: 56px;
    transition: background .2s, padding-left .2s, border-color .2s;
  }
  /* Chevron : indique que la ligne est tactile (le survol n'existe pas ici). */
  .portfolio-item::after {
    content: '›'; font-family: var(--font-main); font-size: 1.9rem; line-height: 1;
    color: var(--teal); opacity: .6; flex: none; padding-right: .2rem;
  }
  .portfolio-item:active { background: rgba(127, 227, 215, .08); padding-left: .6rem; border-color: var(--teal); }
  .portfolio-item:active::after { opacity: 1; }
  .portfolio-item h2 { font-size: 10.5vw; }

  /* --- Galerie modale : plein écran, une colonne --- */
  .video-modal {
    padding: calc(1rem + env(safe-area-inset-top, 0px)) var(--pad-x)
             calc(2rem + env(safe-area-inset-bottom, 0px));
  }
  .modal-close { min-height: 44px; padding: .4rem 1.5rem; }
  .modal-title-container { margin: 1rem 0 1.4rem; }
  .modal-video-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* --- 6. Services : liste dense plutôt que grille de cartes --- */
  .prices-panel { flex-direction: column; align-items: stretch; gap: 1.6rem; }
  .prices-header { flex: auto; }
  .prices-header h2 { writing-mode: horizontal-tb; transform: none; font-size: 15vw; }
  .prices-grid { grid-template-columns: 1fr; gap: 2rem; }
  .price-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.1rem; }
  .price-col > h3 { font-size: 1.85rem; margin-bottom: .5rem; color: var(--teal); }
  .price-list { gap: 0; }
  /* La carte bordée occupait deux fois la place nécessaire pour quinze lignes :
     sur téléphone c'est une liste, séparée par des filets. */
  .price-item {
    border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
    background: none; padding: .8rem .1rem;
  }
  .price-item:last-child { border-bottom: 0; }
  .price-item.is-featured {
    border: 1px solid var(--teal); border-radius: 8px;
    background: rgba(127, 227, 215, .06); padding: .8rem .8rem; margin: .4rem 0;
  }
  .price-item-top h4 { font-size: 1.32rem; }
  .price-item-top .price { font-size: 1.05rem; }
  .price-meta { font-size: .76rem; margin-top: .2rem; }
  .prices-note { font-size: .78rem; margin-top: 1rem; }

  /* --- 7. Réseaux --- */
  .reviews-panel { flex-direction: column; text-align: center; gap: 1.5rem; }
  .reviews-header { flex: auto; }
  .reviews-header h2 { writing-mode: horizontal-tb; transform: none; font-size: 15vw; }
  .reviews-grid { flex-direction: column; gap: .9rem; width: 100%; }
  .review-card {
    padding: 2rem 1.25rem; min-height: 11.5rem;
    border-color: rgba(127, 227, 215, .18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s;
  }
  .review-card:active { transform: scale(.98); border-color: var(--teal); }
  .review-card-bg { filter: grayscale(35%) brightness(.38); }
  .review-card h3 { font-size: 1.9rem; }
  .review-card p { font-size: .82rem; }

  /* --- 8. Réservation, informations et pied de page --- */
  .booking-panel {
    padding: var(--sec-y) var(--pad-x) calc(var(--bar-total) + 2rem);
    overflow: visible;
  }
  .booking-content h2 { font-size: 17vw; }
  .booking-cols { flex-direction: column; gap: 1.1rem; }
  .booking-main, .booking-side { flex: auto; width: 100%; max-width: none; }
  .booking-primary { font-size: 1.45rem; padding: .95rem 1.5rem; }
  /* Le module Planity a son propre défilement : trop haut, il piège le doigt
     et on ne peut plus sortir de la section. 62svh laisse toujours voir le
     bord du cadre, donc une prise pour continuer à faire défiler la page. */
  #booking-embed { height: 62svh; min-height: 26rem; max-height: 34rem; }
  .embed-frame.map-frame { height: 12rem; }
  /* Tant que le service n'est pas autorise, le cadre n'a aucune raison de
     reserver la hauteur du module : il se limite a son texte d'explication. */
  .embed-frame:not(.is-loaded) { height: auto; min-height: 0; max-height: none; }
  .embed-frame:not(.is-loaded) .embed-placeholder { position: static; }
  .embed-placeholder { padding: 1.25rem; font-size: .82rem; }
  .embed-consent-note { font-size: .74rem; max-width: none; }
  .info-card { padding: 1.15rem; }
  .info-card p, .info-card address { font-size: .9rem; }
  /* Téléphone et itinéraire : cibles tactiles d'au moins 44 px de haut. */
  .info-card a { display: inline-block; min-height: 44px; line-height: 44px; }
  #hours-list { font-size: .88rem; }
  #hours-list li { padding: .45rem 0; }

  .footer-brut {
    flex-direction: column; align-items: center; gap: .5rem;
    margin-top: var(--sec-y); text-align: center; font-size: .8rem;
  }
  .footer-col p { margin-bottom: 0; }
  .footer-brut a, .footer-brut .consent-link {
    display: inline-block; min-height: 44px; line-height: 44px; padding: 0 .35rem;
  }

  /* --- Barre d'action fixe : appeler, écrire, réserver --- */
  .sticky-booking-btn {
    top: auto; right: 0; bottom: 0; left: 0; border: 0; border-radius: 0;
    border-top: 1px solid var(--teal); text-align: center;
    font-size: 1.4rem; line-height: 1;
    /* Les 6,5 rem de chaque côté réservent la place des deux pastilles posées
       à gauche de la barre, et gardent le mot « Réserver » centré. */
    padding: 0 6.5rem env(safe-area-inset-bottom, 0px);
    height: var(--bar-total);
    display: flex; align-items: center; justify-content: center;
  }
  /* Appel et WhatsApp : dans la même barre, côté gauche, dans le pouce. */
  .contact-bar {
    right: auto; left: .45rem; bottom: 0; z-index: 9401;
    flex-direction: row; gap: .35rem; align-items: center;
    height: var(--bar-h); margin-bottom: env(safe-area-inset-bottom, 0px);
  }
  .contact-bar a {
    width: 44px; height: 44px;
    background: rgba(5, 5, 5, .82); border-color: rgba(5, 5, 5, .5);
  }
  .contact-bar svg { width: 20px; height: 20px; }

  .menu-btn {
    top: calc(.85rem + env(safe-area-inset-top, 0px)); right: .85rem;
    width: 48px; height: 48px;
  }

  /* --- Menu plein écran --- */
  .menu-overlay { overscroll-behavior: contain; }
  .menu-nav {
    gap: .2rem; width: 100%;
    padding: calc(5.5rem + env(safe-area-inset-top, 0px)) var(--pad-x)
             calc(2.5rem + env(safe-area-inset-bottom, 0px));
  }
  .menu-link { font-size: 8.5vw; padding: .32rem 0; min-height: 48px; }
  .menu-footer { margin-top: 1.5rem; font-size: .8rem; line-height: 2.1; }
  .menu-footer a, .menu-footer .consent-link { display: inline-block; min-height: 44px; line-height: 44px; }

  /* --- Bandeau de consentement ---
     Posé au-dessus de la barre d'action : les trois boutons doivent rester
     atteignables et visibles en entier (recommandation CNIL, parité stricte
     de présentation — aucun des trois n'est mis en avant). */
  .consent-banner {
    left: .6rem; right: .6rem;
    bottom: calc(var(--bar-total) + .6rem);
    max-height: calc(100svh - var(--bar-total) - 4.5rem);
    overflow-y: auto; overscroll-behavior: contain;
    padding: 1.1rem 1.15rem 0; gap: .7rem;
  }
  .consent-text { font-size: .8rem; }
  /* Sur un petit écran le texte dépasse la hauteur du bandeau. Les trois
     boutons restent alors collés en bas, toujours visibles et toujours
     ensemble : aucun des trois choix n'est plus accessible qu'un autre. */
  .consent-actions {
    flex-direction: column; gap: .5rem;
    position: sticky; bottom: 0; z-index: 1;
    background: var(--ink); padding: .55rem 0 1.1rem;
  }
  .consent-btn { flex: none; width: 100%; min-height: 48px; font-size: 1.1rem; }
  /* Idem dans la fenêtre « Personnaliser ». */
  .consent-dialog > .consent-actions { background: var(--ink); }
  .consent-dialog {
    max-height: calc(100svh - 1.5rem);
    padding: 1.15rem calc(1.15rem + env(safe-area-inset-right, 0px))
             calc(1.15rem + env(safe-area-inset-bottom, 0px))
             calc(1.15rem + env(safe-area-inset-left, 0px));
  }
  .consent-item { grid-template-columns: 1fr auto; padding: .9rem; }
  .consent-item p { font-size: .78rem; }

  /* --- Pages légales --- */
  .legal-page { padding: calc(6rem + env(safe-area-inset-top, 0px)) var(--pad-x) 6rem; }
  .legal-page p, .legal-page li, .legal-page dd, .legal-page dt { font-size: .92rem; }
  .legal-back { min-height: 44px; line-height: 44px; }
  .legal-foot a, .legal-foot .consent-link { display: inline-block; min-height: 44px; line-height: 44px; }

  /* --- Page 404 --- */
  .error-page { padding: calc(6rem + env(safe-area-inset-top, 0px)) var(--pad-x) 4rem; }
  .error-page .error-actions { width: 100%; flex-direction: column; }
  .error-page .error-actions .btn { width: 100%; }
}

/* Petits écrans (iPhone SE et assimilés, 320–360 px) : on resserre sans rien
   couper. Au-delà de 360 px — un iPhone standard fait 375 px — la mise en page
   normale a la place de respirer. */
@media (max-width: 360px) {
  .hero-brut-logo { width: 54px; margin-bottom: 1.1rem; }
  .hero-sub { letter-spacing: .2em; }
  .price-item-top h4 { font-size: 1.2rem; }
  .price-item-top { gap: .6rem; }
  .sticky-booking-btn { font-size: 1.25rem; padding-inline: 6rem; }
  .menu-link { font-size: 9.5vw; }
}

/* Téléphone tenu à l'horizontale : l'écran ne fait plus que ~380 px de haut,
   les hauteurs exprimées en `svh` deviennent trop basses. */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
  .panel { padding: 2.5rem var(--pad-x, 6vw); }
  .hero-panel { min-height: 0; padding: 4.5rem var(--pad-x, 6vw) calc(var(--bar-total, 4.15rem) + 1.5rem); }
  .hero-title h1 { font-size: 13vh; }
  .hero-brut-logo { width: 44px; margin-bottom: .8rem; }
  .hero-cta { flex-direction: row; }
  .hero-cta .btn { width: auto; }
  .scroll-indicator-horizontal { display: none; }
  .ribbon-item { height: 62svh; max-height: none; }
  .team-photo { width: min(42vw, 260px); }
  .station-gallery { grid-template-columns: repeat(3, 1fr); }
  .station-overlay-text { padding: 1rem; }
  .station-overlay-text h2 { font-size: 9vh; }
  #booking-embed { height: 90svh; min-height: 20rem; max-height: none; }
  .consent-banner { max-height: calc(100svh - var(--bar-total, 4.15rem) - 1.5rem); }
}
