/* ════════════════════════════════════════════════════════════════
   PÔLE DENTAIRE ALTITUDE — feuille de style
   Palette tirée de la déco réelle du cabinet (bois + blanc + noir),
   ambiance "montagne premium" claire et chaleureuse — jamais dark.
   ════════════════════════════════════════════════════════════════ */

:root {
  /* Fonds */
  --cream: #f7f5f1;
  --cream-soft: #efeae2;

  /* Bois (accents chaleureux) */
  --wood: #c8a98a;
  --wood-deep: #a67c52;

  /* Texte / logo */
  --ink: #1a1a1a;
  --ink-soft: #4a4a46;
  /* Noir quasi pur des photos services (rendu 3D sur fond noir) :
     plus profond que --ink, pour que la section se fonde avec les images */
  --ink-photo: #050505;

  /* Accent nature */
  --sage: #8a9a7b;

  /* Typo */
  --serif: "Cormorant Garamond", serif;
  --sans: "Inter", sans-serif;

  /* Easing signature (identique aux reveals Framer Motion) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset minimal ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: initial; /* Lenis gère le smooth scroll */ }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--wood); color: var(--cream); }

/* Lenis — recommandations officielles */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ── Utilitaires ───────────────────────────────────────────────── */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }

/* Petits labels majuscules espacés (signature typographique) */
.label-caps {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
}

.accent-wood { color: var(--wood-deep); }
.accent-wood-light { color: var(--wood); }
.accent-sage { color: var(--sage); }

.section { padding: 6rem 0; }
.section--soft { background: var(--cream-soft); }

.section__kicker { margin-bottom: 1rem; }
.section__head { margin-bottom: 3.5rem; }
.section__head--center { text-align: center; }

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.25rem;
  line-height: 1.15;
}
.section__title em { color: var(--wood-deep); }
.section__title--cream { color: var(--cream); }
.section__title--md { font-size: 2rem; }

.desktop-only { display: none; }

/* Boutons */
.btn {
  display: inline-block;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.25s var(--ease-out);
}
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(0.97); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--wood-deep); }
.btn--ghost { border: 1px solid rgba(26, 26, 26, 0.25); color: var(--ink); }
.btn--ghost:hover { border-color: var(--wood-deep); color: var(--wood-deep); }
.btn__arrow { display: inline-block; transition: transform 0.3s; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Flèches rondes (carrousel spécialistes) */
.arrow-btn {
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem;
  border: 1px solid rgba(26, 26, 26, 0.2);
  border-radius: 50%;
  background: var(--cream);
  transition: background 0.3s, color 0.3s;
}
.arrow-btn:hover { background: var(--ink); color: var(--cream); }

/* Reveals au scroll (fade + translate), pilotés par IntersectionObserver.
   --d = délai en cascade, défini inline dans le HTML. */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out) var(--d, 0s),
              transform 0.9s var(--ease-out) var(--d, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ════════════════════ HEADER ════════════════════ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.5s, box-shadow 0.5s;
}
.header.is-scrolled, .header.is-open {
  background: rgba(247, 245, 241, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 0 rgba(26, 26, 26, 0.06);
}

.header__inner {
  max-width: 80rem; margin: 0 auto;
  height: 72px; padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}

.header__brand { display: flex; align-items: center; gap: 0.75rem; }
.header__logo {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgba(247, 245, 241, 0.9);
  transition: background 0.5s;
}
.header__logo img { width: 26px; height: 26px; object-fit: contain; }
.header.is-scrolled .header__logo, .header.is-open .header__logo { background: transparent; }

/* Texte clair tant qu'on survole la photo du hero, puis encre */
.header__name { display: none; color: var(--cream); transition: color 0.5s; }
.header.is-scrolled .header__name, .header.is-open .header__name { color: var(--ink); }

.header__nav { display: none; align-items: center; gap: 2rem; }
.header__link {
  position: relative; color: var(--cream);
  transition: color 0.5s;
}
.header__link::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--wood-deep);
  transition: width 0.3s;
}
.header__link:hover::after { width: 100%; }
.header.is-scrolled .header__link { color: var(--ink); }
.header.is-scrolled .header__link:hover { color: var(--wood-deep); }

.header__social { display: flex; align-items: center; color: var(--cream); transition: color 0.5s; }
.header__social:hover { color: var(--wood); }
.header.is-scrolled .header__social { color: var(--ink); }
.header.is-scrolled .header__social:hover { color: var(--wood-deep); }

.header__burger {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; width: 2.5rem; height: 2.5rem;
}
.header__burger span {
  width: 1.5rem; height: 1px; background: var(--cream);
  transition: transform 0.3s, background 0.5s;
}
.header.is-scrolled .header__burger span, .header.is-open .header__burger span { background: var(--ink); }
.header.is-open .header__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.header.is-open .header__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.header__mobile {
  display: none; flex-direction: column; gap: 0.25rem;
  padding: 0.75rem 1.25rem 1.5rem;
  background: var(--cream);
  border-top: 1px solid rgba(26, 26, 26, 0.1);
}
.header.is-open .header__mobile { display: flex; }
.header__mobile button, .header__mobile a { display: block; padding: 0.75rem 0; text-align: left; color: var(--ink); }
.header__mobile-social { display: flex !important; align-items: center; gap: 0.5rem; }
/* .btn--dark définit color:cream, mais la règle .header__mobile button ci-dessus
   (plus spécifique : classe + élément) l'écrasait en color:ink — texte noir sur
   fond noir, invisible. On la restaure explicitement ici. */
.header__mobile .btn { margin-top: 0.5rem; text-align: center; color: var(--cream); }

/* ════════════════════ HERO CINÉMATIQUE ════════════════════ */
/* ⚠️ Piège connu : ne JAMAIS donner de height fixe au PARENT de la
   section épinglée (pin) — ScrollTrigger gère lui-même l'espaceur. */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--ink);
}

.hero__layer { position: absolute; inset: 0; }

.hero__img-wrap { position: absolute; inset: 0; will-change: transform; }
.hero__img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.hero__veil { position: absolute; inset: 0; background: var(--ink); opacity: 0.3; }
.hero__veil--light { opacity: 0.2; }

/* Titre overlay — phase 1 */
.hero__title {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 1.5rem; text-align: center;
}
.hero__kicker { margin-bottom: 1.5rem; color: rgba(247, 245, 241, 0.85); }
.hero__title h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 1.05;
  color: var(--cream);
}
.hero__title em { font-weight: 500; }
.hero__subtitle {
  margin-top: 2rem; max-width: 28rem;
  font-size: 0.875rem; line-height: 1.7;
  color: rgba(247, 245, 241, 0.8);
}

/* Indice de scroll */
.hero__hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  color: rgba(247, 245, 241, 0.7);
}
.hero__hint-line {
  width: 1px; height: 2.5rem; background: rgba(247, 245, 241, 0.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Calque 2 — accueil */
.hero__layer--int { opacity: 0; }
/* Centrage par flex (pas par translate : GSAP anime le y de la légende
   et écraserait une translation CSS) */
.hero__caption-wrap {
  position: absolute; left: 0; right: 0; bottom: 4rem;
  display: flex; justify-content: center;
}
.hero__caption { color: var(--cream); opacity: 0; }

/* Calque 3 — split hero (état final).
   translateY(100%) = état initial anti-flash avant l'init GSAP ;
   la timeline le ramène à 0 (avec y: 0 explicite, voir main.js). */
.hero__split {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--cream);
  transform: translateY(100%);
}

.hero__split-photo { position: relative; height: 34%; width: 100%; }
.hero__split-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero__split-content {
  position: relative; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem 1.5rem;
  /* Même blanc que le fond de la vidéo "dent qui tourne" (#fdfdfd) :
     évite la démarcation de couleur entre la vidéo et le panneau. */
  background: #fdfdfd;
}

/* Écritures alignées à droite, par-dessus la vidéo */
.hero__split-text {
  position: relative; z-index: 10;
  margin-left: auto;
  text-align: right;
}
.hero__split-text .label-caps { margin-bottom: 1.25rem; }
.hero__split-text h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.08;
}
.hero__split-text h2 em { color: var(--wood-deep); }
.hero__split-desc {
  margin-top: 1.5rem; max-width: 28rem;
  margin-left: auto; /* colle le paragraphe à droite */
  font-size: 0.875rem; line-height: 1.7;
  color: var(--ink-soft);
}
.hero__split-ctas {
  margin-top: 2.25rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: flex-end; /* CTA alignés à droite aussi */
}

/* ── Vidéo cinématique "dent qui tourne" (fond du panneau droit) ──
   object-fit: contain (jamais cover) : la vidéo garde son ratio d'origine
   et reste entièrement visible, quel que soit le ratio du panneau. */
.hero__split-video { position: absolute; inset: 0; overflow: hidden; }
.hero__split-video video {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 55%; height: 55%;
  object-fit: contain;
}

/* Sur mobile le panneau est plus bas (34% de hauteur seulement au-dessus),
   donc la vidéo doit rester compacte pour ne pas dominer visuellement. */
@media (min-width: 768px) {
  .hero__split-video video { width: 80%; height: 80%; }
}
/* Voile blanc dégradé depuis la droite (même blanc que le fond de la
   vidéo, #fdfdfd) : garde le texte lisible sans masquer la vidéo au
   centre, et sans démarcation de teinte avec le panneau. */
.hero__split-video-veil {
  position: absolute; inset: 0;
  background: linear-gradient(270deg,
    rgba(253, 253, 253, 0.85) 0%,
    rgba(253, 253, 253, 0.45) 45%,
    rgba(253, 253, 253, 0.1) 100%);
}

/* ════════════════════ SPÉCIALISTES — portrait plein écran ════════════════════
   Mobile-first : tout en flux normal (colonne), rien en position:absolute,
   min-height (pas height) — ça ne peut donc jamais recréer le bug de portrait
   plus grand que l'écran. La composition "à la Ivory" (carte en haut à droite,
   avatar au centre, fiche en bas à gauche) n'arrive qu'à partir de 1024px, où
   il y a réellement la place pour ce genre de mise en page en calque. */
.specialists {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  /* Fond clair (même teinte que .section--soft) : casse l'enchaînement de
     sections noires avec Spécialités juste après. */
  background: var(--cream-soft);
  color: var(--ink);
  display: flex; flex-direction: column;
  gap: 2rem;
  padding: 6.5rem 1.5rem 3rem;
}

.specialists__intro { position: relative; z-index: 3; max-width: 30rem; }
.specialists__intro-kicker { color: var(--wood); }
.specialists__title {
  margin-top: 0.5rem;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
  color: var(--ink);
}
.specialists__title em { color: var(--wood-deep); }
.specialists__hint { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: rgba(26, 26, 26, 0.6); }

/* Avatar sombre, façon "rendu 3D" — cf. js/main.js pour pourquoi ce n'est
   pas doc.photo ici. */
.specialists__portrait {
  position: relative; z-index: 2;
  flex: 1 1 18rem; min-height: 14rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  perspective: 1200px;
}
.specialists__portrait:focus-visible { outline: 2px solid var(--wood-deep); outline-offset: 3px; }

.specialists__mono {
  position: relative;
  width: min(78vw, 20rem); aspect-ratio: 3 / 4; max-height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #ffffff, #e5ded2);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 1.5rem;
  box-shadow: 0 40px 70px -24px rgba(26, 26, 26, 0.25);
  animation: specFloat 6s ease-in-out infinite;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transform-style: preserve-3d;
}
/* Effet "roue qui tourne" : la sortie/entrée pivote sur l'axe Y au lieu d'un simple glissement ;
   --dir (1 = suivant, -1 = précédent) inverse le sens de rotation, posé par js/main.js */
.specialists__mono.is-leaving { opacity: 0; transform: rotateY(calc(var(--dir, 1) * -35deg)) scale(0.9); }
.specialists__mono.is-entering { opacity: 0; transform: rotateY(calc(var(--dir, 1) * 35deg)) scale(0.9); transition: none; }
.specialists__initials {
  font-family: var(--serif); font-style: italic;
  font-size: 4.5rem; line-height: 1; color: var(--wood);
}
.specialists__divider { margin-top: 1rem; width: 3rem; height: 1px; background: rgba(166, 124, 82, 0.5); }
.specialists__photo { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.specialists__info {
  position: relative; z-index: 3; max-width: 30rem;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.specialists__info.is-switching { opacity: 0; transform: translateY(16px); transition: none; }
.specialists__info > .label-caps { color: var(--wood); }
.specialists__info h3 { margin-top: 0.5rem; font-family: var(--serif); font-weight: 500; font-size: clamp(1.75rem, 5vw, 2.25rem); color: var(--ink); }
.specialists__bio { margin-top: 1rem; line-height: 1.65; color: rgba(26, 26, 26, 0.68); }

/* Badges factuels (équipements, méthodes, adhésions professionnelles) —
   remplacent d'anciennes jauges chiffrées invérifiables. */
.specialists__stats { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.specialist-badge {
  padding: 0.45rem 0.9rem; border-radius: 999px;
  border: 1px solid rgba(26, 26, 26, 0.14);
  font-size: 0.8125rem; color: rgba(26, 26, 26, 0.72);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.specialist-badge.is-visible { opacity: 1; transform: translateY(0); }

/* Miniatures : sélection directe d'un spécialiste */
.specialists__thumbs { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.specialists__thumb {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26, 26, 26, 0.04); border: 1px solid rgba(26, 26, 26, 0.16);
  font-family: var(--serif); font-style: italic; font-size: 0.85rem; color: rgba(26, 26, 26, 0.65);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}
.specialists__thumb:hover { border-color: var(--wood); color: var(--ink); }
.specialists__thumb.is-active { background: var(--wood-deep); border-color: var(--wood-deep); color: var(--cream); transform: scale(1.1); }
.specialists__thumb:focus-visible { outline: 2px solid var(--wood-deep); outline-offset: 2px; }

.specialists__more {
  display: inline-block; margin-top: 1.5rem;
  font-size: 0.75rem; letter-spacing: 0.05em;
  color: var(--wood-deep);
  transition: color 0.3s, transform 0.3s;
}
.specialists__more:hover { color: var(--ink); transform: translateX(4px); }

.specialists__arrows { position: relative; z-index: 3; display: flex; align-items: center; gap: 0.75rem; }
.specialists__counter { margin-right: 0.25rem; color: rgba(26, 26, 26, 0.5); }

/* ════════════════════ SPÉCIALITÉS — scrollytelling plein écran ════════════════════
   ⚠️ Même piège que le hero : jamais de height fixe sur le PARENT de la
   section épinglée — ScrollTrigger gère lui-même l'espaceur (voir js/main.js). */
.specialties-cinema {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  display: flex; flex-direction: column;
}

/* Le chrome est maintenant au fil normal (plus en position:absolute) : le
   stage prend automatiquement le reste de la hauteur via flex:1, quelle que
   soit la hauteur réelle du titre — plus besoin de deviner un padding-top
   à la main (source des chevauchements précédents). */
.specialties-cinema__chrome {
  position: relative; z-index: 2;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.5rem;
  padding: 6.5rem 1.5rem 1.5rem;
}
.specialties-cinema__kicker { color: var(--wood); }
.specialties-cinema__title {
  margin-top: 0.5rem;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.15;
  max-width: 26rem;
  color: var(--cream);
}
.specialties-cinema__title em { color: var(--wood-deep); }
.specialties-cinema__counter { flex-shrink: 0; color: rgba(247, 245, 241, 0.5); }

.specialties-cinema__stage {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column;
  padding: 0 1.5rem 3.5rem;
}

/* Panneau de texte : un par service, en fondu (comme le carrousel spécialistes).
   ⚠️ .specialties-cinema__panel est en position:absolute (inset:0) à l'intérieur de
   .specialties-cinema__text — ce parent doit donc avoir une hauteur EXPLICITE
   (jamais "flex:1" seul, dont la base à 0 peut s'effondrer sur une fenêtre basse et
   faire déborder le contenu par-dessus le bandeau du haut, ou pousser l'image trop
   bas sur une fenêtre haute). Le clamp() la fait varier en douceur avec la hauteur
   d'écran, sans jamais retomber à 0 ni exploser sur un grand téléphone. */
.specialties-cinema__text { position: relative; height: clamp(9.5rem, 26vh, 14rem); }
.specialties-cinema__panel {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(28px);
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.specialties-cinema__panel.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.specialties-cinema__num { color: var(--wood); }
.specialties-cinema__panel h3 {
  margin-top: 1rem;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  color: var(--cream);
}
.specialties-cinema__panel p {
  margin-top: 1.25rem; max-width: 30rem;
  line-height: 1.75; color: rgba(247, 245, 241, 0.72);
}

/* Visuel flottant : pas de carte/cadre — les photos sont transparentes,
   posées à même le fond de la section, pour qu'on ne voie aucune limite
   entre les deux. Seul le sujet flotte, avec un léger bobbing continu
   façon "3D". */
/* Même logique de hauteur explicite que .specialties-cinema__text ci-dessus. */
.specialties-cinema__visual { position: relative; height: clamp(14rem, 44vh, 30rem); margin-top: 1rem; }
.specialties-cinema__float {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.85);
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.specialties-cinema__float.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.specialties-cinema__float-inner {
  position: relative;
  width: min(92vw, 34rem);
  max-height: 68vh;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  animation: specFloat 6s ease-in-out infinite;
}
/* max-width/max-height (pas width/height 100%) : les visuels ne sont pas tous
   au même format (paysage ou portrait selon la photo) — chacun garde ses
   proportions et se limite à la boîte plutôt que de la forcer. */
.specialties-cinema__float-inner img {
  max-width: 100%; max-height: 68vh;
  width: auto; height: auto;
  display: block; object-fit: contain;
}
@keyframes specFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-18px) rotate(1.5deg); }
}

/* Indice discret : l'image est cliquable pour l'agrandir dans la fenêtre détail */
.specialties-cinema__zoom {
  position: absolute; right: 0.5rem; bottom: 0.5rem; z-index: 1;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(247, 245, 241, 0.1);
  border: 1px solid rgba(247, 245, 241, 0.3);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  color: var(--cream);
  opacity: 0.6;
  transition: opacity 0.3s, background 0.3s, border-color 0.3s;
}
.specialties-cinema__float-inner:hover .specialties-cinema__zoom,
.specialties-cinema__float-inner:focus-visible .specialties-cinema__zoom {
  opacity: 1; background: var(--wood-deep); border-color: var(--wood-deep);
}
.specialties-cinema__float-inner:focus-visible { outline: 2px solid var(--wood); outline-offset: 4px; }

.specialties-cinema__progress {
  position: absolute; left: 1.5rem; bottom: 1.25rem; z-index: 2;
  display: flex; gap: 0.5rem;
}
.specialties-cinema__tick {
  width: 1.5rem; height: 2px; padding: 0;
  background: rgba(247, 245, 241, 0.25); border: none;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}
.specialties-cinema__tick:hover { background: rgba(247, 245, 241, 0.5); }
.specialties-cinema__tick.is-active { background: var(--wood); width: 2.5rem; }

/* ════════════════════ ÉQUIPE — rangée de portraits ════════════════════ */
.team__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.team__arrows { display: flex; gap: 0.75rem; flex-shrink: 0; }

.team__row {
  margin-top: 3rem;
  display: flex; gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;
}
.team__row::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.member { flex: 0 0 14rem; scroll-snap-align: start; }

.member__portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--cream-soft);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.member:hover .member__portrait { transform: translateY(-6px); box-shadow: 0 20px 32px -14px rgba(26, 26, 26, 0.2); }

/* Monogramme placeholder — remplacer par une photo via TEAM[i].photo dans js/main.js */
.member__mono {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 2.5rem; /* laisse la place à la légende en bas */
  font-family: var(--serif); font-style: italic; font-size: 3rem;
  color: var(--wood-deep);
}
.member__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.member:hover .member__photo { transform: scale(1.06); }

.member__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0) 55%, rgba(26, 20, 14, 0.68) 100%);
}
.member__info { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; z-index: 1; }
.member__info h3 { font-family: var(--serif); font-weight: 500; font-size: 1.0625rem; color: var(--cream); }
.member__info .label-caps { margin-top: 0.25rem; color: rgba(247, 245, 241, 0.75); }

/* ════════════════════ TECHNOLOGIE ════════════════════ */
.tech { position: relative; overflow: hidden; }
.tech__bg { position: absolute; inset: 0; }
.tech__bg img { width: 100%; height: 100%; object-fit: cover; }
.tech__bg::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(26, 26, 26, 0.8);
}
.tech__content { position: relative; }

.tech__cards { display: grid; gap: 2.5rem; }
.tech__card {
  border-radius: 1rem;
  overflow: hidden; /* clippe les coins de la photo sur ceux, arrondis, de la carte */
  border: 1px solid rgba(247, 245, 241, 0.15);
  background: rgba(247, 245, 241, 0.04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  transition: border-color 0.5s, transform 0.5s var(--ease-out);
}
.tech__card:hover, .tech__card:focus-visible { border-color: rgba(200, 169, 138, 0.5); transform: translateY(-6px); }
.tech__card:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; }

.tech__card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.tech__card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
/* Le visuel MCI (All-on-6) est en portrait avec beaucoup de vide en bas :
   recadré 16/10 par défaut, le centrage habituel coupe l'arcade du haut —
   on remonte le cadrage vers la zone utile de l'image. */
.tech__card-media img[src*="MCI"] { object-position: center 25%; }
.tech__card:hover .tech__card-media img { transform: scale(1.06); }
/* Voile bas, pour raccorder en douceur la photo (fond quasi noir) au panneau vitré */
.tech__card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0) 72%, rgba(10, 8, 6, 0.55) 100%);
}

.tech__card-body { padding: 1.75rem 2rem 2rem; }
.tech__num { font-family: var(--serif); font-style: italic; font-size: 2.25rem; color: rgba(200, 169, 138, 0.7); }
.tech__card h3 { margin-top: 0.75rem; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--cream); }
.tech__card p { margin-top: 1rem; font-size: 0.875rem; color: rgba(247, 245, 241, 0.7); }
.tech__more {
  display: inline-block; margin-top: 1.25rem;
  font-size: 0.75rem; letter-spacing: 0.05em;
  color: var(--wood); opacity: 0; transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.3s;
}
.tech__card:hover .tech__more, .tech__card:focus-visible .tech__more { opacity: 1; transform: translateX(0); }

/* ════════════════════ FENÊTRE DÉTAIL (partagée) ════════════════════ */
.detail-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}
.detail-modal.is-open { opacity: 1; pointer-events: auto; }

.detail-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.detail-modal__panel {
  position: relative;
  width: 100%; max-width: 64rem; max-height: 88vh;
  display: flex; flex-direction: column;
  background: var(--ink-photo);
  border: 1px solid rgba(247, 245, 241, 0.1);
  border-radius: 1.25rem;
  overflow: hidden;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.4s var(--ease-out);
}
.detail-modal.is-open .detail-modal__panel { transform: scale(1) translateY(0); }

.detail-modal__close {
  position: absolute; top: 1.25rem; right: 1.25rem; z-index: 2;
  width: 2.5rem; height: 2.5rem; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 5, 5, 0.55);
  border: 1px solid rgba(247, 245, 241, 0.25);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.detail-modal__close:hover { background: var(--wood-deep); border-color: var(--wood-deep); }

.detail-modal__media { position: relative; flex: 0 0 16rem; background: var(--ink-photo); }
.detail-modal__media img { width: 100%; height: 100%; object-fit: cover; }
/* Fallback si aucune photo n'est fournie (voir openDetailModal) */
.detail-modal__mono {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.detail-modal__mono span {
  font-family: var(--serif); font-style: italic;
  font-size: 4rem; color: var(--wood);
}

/* flex:1 + min-height:0 (pas juste overflow-y:auto) : sans ça, un enfant flex se
   dimensionne sur son contenu et déborde silencieusement du panneau (overflow:hidden)
   au lieu de devenir scrollable — c'est ce qui empêchait de lire la suite sur mobile. */
.detail-modal__body { flex: 1; min-height: 0; padding: 2rem 1.75rem 2.25rem; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.detail-modal__body h3 {
  margin-top: 0.5rem;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--cream);
}
.detail-modal__lead { margin-top: 1.25rem; line-height: 1.75; color: rgba(247, 245, 241, 0.75); }

.detail-modal__benefits { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.detail-modal__benefits li {
  position: relative; padding-left: 1.5rem;
  font-size: 0.9375rem; line-height: 1.6; color: rgba(247, 245, 241, 0.85);
}
.detail-modal__benefits li::before {
  content: ""; position: absolute; left: 0; top: 0.6rem;
  width: 0.5rem; height: 1px; background: var(--wood);
}

.detail-modal__cta { margin-top: 2rem; }

/* ════════════════════ PARCOURS ════════════════════ */
.journey__steps { position: relative; display: grid; gap: 3rem; }
.journey__line {
  display: none;
  position: absolute; left: 0; right: 0; top: 1.75rem;
  height: 1px; background: rgba(200, 169, 138, 0.4);
}
.journey__num {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  border: 1px solid var(--wood-deep);
  background: var(--cream);
  font-family: var(--serif); font-style: italic; font-size: 1.125rem;
  color: var(--wood-deep);
}
.journey__step h3 { margin-top: 1.5rem; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
.journey__step p { margin-top: 0.75rem; max-width: 20rem; font-size: 0.875rem; color: var(--ink-soft); }

/* ════════════════════ COMPTEURS ════════════════════ */
.counters {
  padding: 4rem 0;
  background: var(--cream-soft);
  border-top: 1px solid rgba(26, 26, 26, 0.1);
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}
.counters__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.counters__item { text-align: center; }
.counters__value {
  font-family: var(--serif); font-style: italic;
  font-size: 3rem; color: var(--wood-deep);
}
.counters__item .label-caps { margin-top: 1rem; color: var(--ink-soft); }

/* ════════════════════ RÉSULTATS (avant / après) ════════════════════ */
.results__grid { display: grid; gap: 3rem; }

.ba {
  --pos: 50%; /* position de la poignée, pilotée en JS */
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden; border-radius: 1rem;
  cursor: ew-resize;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
}
.ba__before, .ba__after {
  position: absolute; inset: 0;
  overflow: hidden;
}
.ba__before img, .ba__after img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba__before { background: var(--cream-soft); }
.ba__after { background: rgba(200, 169, 138, 0.3); clip-path: inset(0 0 0 var(--pos)); }

.ba__tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 1;
  padding: 0.35rem 0.9rem; border-radius: 999px;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  font-family: var(--serif); font-style: italic; font-size: 0.875rem;
  color: var(--cream);
}
.ba__tag--after { left: auto; right: 1rem; background: rgba(166, 124, 82, 0.85); }

.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); }
.ba__handle-line { position: absolute; top: 0; bottom: 0; transform: translateX(-50%); border-left: 1px solid var(--cream); }
.ba__handle-grip {
  position: absolute; top: 50%;
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink); font-size: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.results__label { margin-top: 1.25rem; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
.results__label + .label-caps { margin-top: 0.25rem; }

/* ════════════════════ TÉMOIGNAGES ════════════════════ */
.testimonials__grid { display: grid; gap: 2rem; }
.testimonial {
  display: flex; flex-direction: column; height: 100%;
  padding: 2rem; border-radius: 1rem;
  background: var(--cream);
  box-shadow: 0 2px 20px rgba(26, 26, 26, 0.04);
}
.testimonial__quote { font-family: var(--serif); font-size: 3.75rem; line-height: 1; color: var(--wood); }
.testimonial blockquote { margin-top: 0.5rem; flex: 1; color: var(--ink-soft); }
.testimonial figcaption { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(26, 26, 26, 0.1); }
.testimonial__author { font-family: var(--serif); font-style: italic; font-size: 1.125rem; }
.testimonial figcaption .label-caps { margin-top: 0.25rem; }

/* ════════════════════ PRENDRE RENDEZ-VOUS (contact) ════════════════════ */
.contact__intro {
  max-width: 34rem; margin: 1.5rem auto 0;
  color: var(--ink-soft); line-height: 1.7;
}

.contact__grid { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
.contact__card {
  padding: 2rem;
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: 1.25rem;
  background: var(--cream-soft);
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}
.contact__card:hover { border-color: rgba(200, 169, 138, 0.5); transform: translateY(-4px); }
.contact__card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
.contact__card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--ink-soft); }

.contact__links { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.contact__links a {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif); font-size: 1.125rem; color: var(--ink);
  transition: color 0.3s;
}
.contact__links a:hover { color: var(--wood-deep); }
.contact__icon { color: var(--wood-deep); font-size: 0.9em; }

.contact__hours {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.contact__hours span {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.8125rem; color: var(--ink-soft);
}
.contact__hours b { font-weight: 500; color: var(--ink); }

.contact__social { margin-top: 2.5rem; text-align: center; color: var(--ink-soft); }
.contact__social a { color: var(--wood-deep); transition: color 0.3s; }
.contact__social a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ════════════════════ FOOTER ════════════════════ */
.footer { padding: 5rem 0 2.5rem; background: var(--ink); color: var(--cream); }
.footer__grid { display: grid; gap: 3rem; }

.footer__brand { display: flex; align-items: center; gap: 0.9rem; }
.footer__logo {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--cream);
}
.footer__logo img { width: 28px; height: 28px; object-fit: contain; }
.footer__name { font-family: var(--serif); font-size: 1.5rem; }
.footer__desc { margin-top: 1.25rem; max-width: 20rem; font-size: 0.875rem; color: rgba(247, 245, 241, 0.6); }

.footer__heading { margin-bottom: 1.5rem; color: var(--wood); }
.footer__text { font-size: 0.875rem; line-height: 2; color: rgba(247, 245, 241, 0.75); }
.footer__text a:hover, .footer__links a:hover { color: var(--wood); }
.footer__links { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; color: rgba(247, 245, 241, 0.75); }

.footer__bottom {
  margin-top: 4rem; padding-top: 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  border-top: 1px solid rgba(247, 245, 241, 0.1);
  font-size: 0.75rem; color: rgba(247, 245, 241, 0.4);
}

/* ════════════════════ RESPONSIVE ════════════════════ */
@media (min-width: 640px) {
  .header__name { display: block; }
  .member { flex-basis: 16rem; }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .desktop-only { display: inline; }
  .container { padding: 0 2.5rem; }
  .section { padding: 9rem 0; }
  .section__head { margin-bottom: 5rem; }
  .section__title { font-size: 3.75rem; }
  .section__title--md { font-size: 3rem; }

  .header__nav { display: flex; }
  .header__burger, .header__mobile { display: none !important; }

  /* Hero split : colonne → deux moitiés */
  .hero__split { flex-direction: row; }
  .hero__split-photo { height: 100%; width: 50%; }
  .hero__split-content { width: 50%; padding: 2rem 3.5rem; }

  /* Spécialités cinéma : texte à gauche, visuel flottant à droite.
     Pas d'align-items:center sur la scène : les deux colonnes s'étirent
     (stretch, par défaut) sur toute la hauteur de la section pinnée — d'où
     le height:auto ci-dessous, qui remplace le clamp() pensé pour le mobile
     (colonne empilée) par cette hauteur pleine et fiable. */
  .specialties-cinema__chrome { padding: 6.5rem 3rem 1.5rem; }
  .specialties-cinema__stage { flex-direction: row; gap: 4rem; padding: 0 3rem 3rem; }
  .specialties-cinema__text { height: auto; flex: 1.1; }
  .specialties-cinema__visual { height: auto; flex: 1; margin-top: 0; }
  .specialties-cinema__float-inner { width: min(48vw, 40rem); max-height: 76vh; }
  .specialties-cinema__float-inner img { max-height: 76vh; }

  .member { flex-basis: 18rem; }

  .tech__cards { grid-template-columns: repeat(3, 1fr); gap: 2rem; }

  .detail-modal__panel { flex-direction: row; max-height: 80vh; }
  .detail-modal__media { flex: 0 0 42%; }
  .detail-modal__body { padding: 3rem 3rem 3rem 2.75rem; }

  .journey__steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .journey__line { display: block; }

  .counters { padding: 6rem 0; }
  .counters__grid { grid-template-columns: repeat(4, 1fr); }
  .counters__value { font-size: 4.5rem; }

  .results__grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .testimonials__grid { grid-template-columns: repeat(3, 1fr); }

  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1024px) {
  .hero__split-content { padding: 2rem 5rem; }

  /* Spécialistes : bascule du flux empilé vers la composition en calques
     (carte en haut à droite, avatar au centre, fiche en bas à gauche) —
     chaque élément passe en position:absolute avec assez d'espace autour
     pour ne jamais se chevaucher. */
  .specialists { height: 100vh; min-height: auto; display: block; padding: 0; gap: 0; }
  .specialists__intro {
    position: absolute; top: 6.5rem; right: 3rem; z-index: 3;
    max-width: 19rem;
    padding: 1.5rem 1.75rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .specialists__title { font-size: 1.625rem; }
  .specialists__portrait { position: absolute; inset: 0; padding: 8rem 3rem 3rem; flex: none; min-height: 0; }
  .specialists__mono { width: min(30vw, 23rem); max-height: 74vh; }
  .specialists__info { position: absolute; left: 3rem; bottom: 3rem; }
  .specialists__arrows { position: absolute; right: 3rem; bottom: 3rem; }
}
