/* ==========================================================================
   Landing épilation laser — Clinique Phenicia & Phenicia Medical Spa
   Direction : éditoriale, méditerranéenne, immersive
   ========================================================================== */

/* Police : déposer fonts/Manrope-Variable.woff2 pour l’héberger localement.
   Sans ce fichier, la page utilise les polices de repli. */
@font-face {
  font-family: "Manrope";
  src: local("Manrope"), url("fonts/Manrope-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --ivory: #FBF8F3;
  --sand: #F0E6DB;
  --card: #FFFDFA;
  --ink: #241E1B;
  --ink-soft: #5B4F48;
  --terracotta: #8C3F32;
  --terracotta-light: #E7A994;
  --line: rgba(36, 30, 27, .16);
  --error: #9B2C1F;

  --font: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --radius: 24px;
  --radius-sm: 16px;
  --gutter: 20px;
  --header-h: 64px;
  --bar-h: 72px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }

h1, h2, h3, p, ul, ol, address, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
fieldset { border: 0; min-width: 0; }
sup { font-size: .55em; line-height: 0; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--terracotta); color: #fff; }

.container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 12px;
}
.skip-link:focus { top: 16px; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

[hidden] { display: none !important; }

/* ----- Typographie ----- */
h1, h2 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(44px, 12vw, 64px); }
h2 { font-size: clamp(32px, 6vw, 56px); line-height: 1.05; }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }

.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 16px;
}

.section__lead { margin-top: 20px; color: var(--ink-soft); max-width: 52ch; }
.section__head { margin-bottom: 40px; }

/* ----- Apparitions au défilement (actives seulement avec JavaScript) ----- */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.media-reveal { overflow: hidden; border-radius: var(--radius); }
/* Le masque est porté par l’image : le conteneur reste détectable au défilement */
.js .media-reveal[data-reveal] { opacity: 1; transform: none; }
.js .media-reveal img {
  clip-path: inset(100% 0 0 0); transform: scale(1.18);
  transition: clip-path 1.2s var(--ease), transform 1.6s var(--ease); transition-delay: var(--d, 0s);
}
.js .media-reveal.is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }
.js .media-reveal.is-in:hover img { transform: scale(1.04); transition-duration: .8s; transition-delay: 0s; }

/* ----- Barre de progression de lecture ----- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 40;
  background: var(--terracotta); transform-origin: 0 50%;
  transform: scaleX(var(--sp, 0)); pointer-events: none;
}

/* ----- Boutons ----- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 12px 28px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: scale(.98); }
/* Fond encre + texte blanc : réservé à Doctolib (et au bouton d’envoi du formulaire) */
.btn--primary, .btn--ink { background: var(--ink); color: #fff; }
.btn--primary:hover, .btn--ink:hover { background: var(--terracotta); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--large { min-height: 68px; padding: 12px 14px 12px 32px; font-size: 17px; }
.btn--small { min-height: 44px; padding: 8px 20px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--arrow { justify-content: space-between; padding-right: 12px; text-align: left; }
.btn__text { display: flex; flex-direction: column; gap: 2px; }
.btn__meta { font-size: 12.5px; font-weight: 500; opacity: .8; letter-spacing: .01em; }
.btn__icon {
  width: 44px; height: 44px; padding: 12px; border-radius: 50%;
  background: var(--ivory); color: var(--ink);
  transition: transform .4s var(--ease);
}
.btn--arrow:hover .btn__icon { transform: translateX(4px) rotate(-45deg); }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-icon, .link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; font-size: 16px;
  text-decoration: underline; text-decoration-color: var(--line);
  transition: text-decoration-color .2s ease;
}
.link-icon:hover, .link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow { color: var(--terracotta); margin-top: 28px; }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ----- Note de prévisualisation ----- */
.preview-note {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--bar-h) + 84px); z-index: 35;
  max-width: 380px; padding: 12px 16px; border-radius: 14px;
  background: #2B2522; color: #F3E9DE; font-size: 13px; line-height: 1.45;
  box-shadow: 0 8px 30px rgba(36, 30, 27, .25);
}
.preview-note strong { color: #fff; }
.preview-note button {
  font: inherit; color: inherit; background: none; border: 0;
  text-decoration: underline; cursor: pointer; padding: 4px;
}

/* ----- En-tête ----- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(251, 248, 243, .9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; margin-right: auto; padding-block: 8px; }
.brand__name { font-weight: 800; font-size: 20px; letter-spacing: .14em; text-transform: uppercase; }
.brand__place { font-size: 11.5px; color: var(--ink-soft); letter-spacing: .04em; margin-top: 3px; }
.site-nav { display: none; gap: 32px; }
.site-nav a { position: relative; font-size: 15px; font-weight: 600; text-decoration: none; padding-block: 12px; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .4s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.site-header__cta { display: none; }

/* ----- Hero (mobile d’abord : texte puis photo) ----- */
.hero { position: relative; background: var(--ivory); overflow: hidden; }
.hero__content { padding-block: calc(var(--header-h) + 28px) 28px; }
.hero__eyebrow { font-size: 11px; letter-spacing: .1em; margin-bottom: 12px; }

h1 .line { display: block; overflow: hidden; padding-block: .1em .08em; margin-block: -.1em -.08em; }
h1 .line > span { display: block; animation: rise 1.1s var(--ease) both; }
h1 .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(115%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.hero__eyebrow { animation: fade-up .9s var(--ease) both; }
.hero__lead { margin-top: 18px; font-size: 18px; max-width: 36ch; animation: fade-up .9s var(--ease) .35s both; }
.hero__actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; animation: fade-up .9s var(--ease) .5s both; }
.hero__actions .btn--large { width: 100%; }
.hero__secondary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.hero__secondary .btn--outline { flex: 1 1 auto; }

.hero__media { position: relative; overflow: hidden; }
.hero__media img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 60% 18%;
  animation: settle 2.4s var(--ease) both;
}
@keyframes settle { from { transform: scale(1.14); } to { transform: scale(1); } }


/* ----- Réassurance ----- */
.marks { background: var(--ivory); }
.marks__list { display: grid; gap: 4px; padding-block: 20px; }
.marks__list li { display: flex; align-items: center; gap: 12px; padding-block: 8px; font-weight: 600; font-size: 16px; }
.marks__list .icon { color: var(--terracotta); width: 22px; height: 22px; }

/* ----- Bandeau défilant ----- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 12px; }
.marquee__track {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); width: max-content;
  animation: marquee 60s linear infinite;
  font-size: clamp(13px, 2vw, 24px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2;
  white-space: nowrap; text-transform: uppercase;
  padding-right: clamp(14px, 2vw, 28px);
}
.marquee__track .is-outline { color: var(--terracotta); }
.marquee__track i { font-style: normal; font-size: .6em; color: var(--terracotta); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----- Sections ----- */
.section { padding-block: 72px; }
.section--sand { background: var(--sand); }

.split { display: grid; gap: 36px; align-items: center; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ----- Tarifs ----- */
.prices { margin-top: 32px; border-top: 1px solid var(--line); counter-reset: zone; }
.prices__row {
  position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  min-height: 68px; padding: 18px 0; border-bottom: 1px solid var(--line);
  counter-increment: zone; isolation: isolate;
  transition: padding .45s var(--ease), color .3s ease;
}
.prices__row::before {
  content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1; background: var(--ink);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--ease);
}
.prices__zone { font-weight: 700; font-size: clamp(20px, 2.6vw, 28px); letter-spacing: -0.02em; }
.prices__zone::before {
  content: "0" counter(zone); display: inline-block; width: 2.6em;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--terracotta);
  vertical-align: .5em; transition: color .3s ease;
}
.prices__value { text-align: right; font-size: 15px; color: var(--ink-soft); }
.prices__value a { font-weight: 600; color: inherit; }
.prices__value a::after { content: ""; position: absolute; inset: 0; } /* toute la ligne est cliquable */
.prices__amount { display: block; font-size: 20px; font-weight: 700; color: var(--ink); }
.prices__unit { display: block; font-size: 13.5px; }
@media (hover: hover) {
  .prices__row:hover { color: var(--ivory); padding-inline: 8px; }
  .prices__row:hover::before { transform: scaleY(1); transform-origin: 50% 0; }
  .prices__row:hover .prices__zone::before { color: var(--terracotta-light); }
  .prices__row:hover .prices__value, .prices__row:hover .prices__amount { color: var(--ivory); }
}

/* Tarifs dépliables au clic */
.seg {
  display: inline-flex; gap: 4px; padding: 4px; margin-top: 28px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
}
.seg button {
  min-height: 44px; padding: 0 24px; border: 0; border-radius: 999px; background: transparent;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg + .prices { margin-top: 20px; }

.price-group { border-bottom: 1px solid var(--line); }
.price-group summary {
  display: flex; align-items: center; gap: 12px; min-height: 76px; padding-block: 16px;
  cursor: pointer; list-style: none; transition: color .2s ease;
}
.price-group summary::-webkit-details-marker { display: none; }
.price-group summary:hover { color: var(--terracotta); }
.price-group__num { width: 2.2em; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--terracotta); }
.price-group__name { flex: 1; font-weight: 700; font-size: clamp(20px, 2.6vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }
.price-group__from { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.price-group summary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform .4s var(--ease), background-size .4s var(--ease), border-color .2s ease, background-color .3s ease, color .3s ease;
}
.price-group details[open] summary { color: var(--ink); }
.price-group details[open] summary::after {
  transform: rotate(180deg); background-size: 12px 1.5px, 1.5px 0;
  background-color: var(--ink); border-color: var(--ink); color: var(--ivory);
}
.price-list { padding: 4px 0 20px; }
.price-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 12px 16px; border-radius: 14px;
}
.price-list li:nth-child(odd) { background: var(--sand); }
.price-list__zone { font-weight: 600; font-size: 16px; }
.price-list small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.price-list__value { text-align: right; white-space: nowrap; }
.price-list__value strong { font-size: 19px; letter-spacing: -0.01em; }
.price-group details[open] .price-list li { animation: fade-up .5s var(--ease) both; }
.price-group details[open] .price-list li:nth-child(2) { animation-delay: .04s; }
.price-group details[open] .price-list li:nth-child(3) { animation-delay: .08s; }
.price-group details[open] .price-list li:nth-child(4) { animation-delay: .12s; }
.price-group details[open] .price-list li:nth-child(n+5) { animation-delay: .16s; }
.prices__cta { margin-top: 28px; }
.prices__note { margin-top: 20px; font-size: 14px; color: var(--ink-soft); max-width: 56ch; }

.offer {
  margin-top: 40px; padding: 24px; border: 1px solid var(--terracotta);
  border-radius: var(--radius); background: var(--card);
}
.offer__title { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.offer__text { margin-top: 8px; }
.offer__terms { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }

/* ----- Encadré technologie ----- */
.tech {
  margin-top: 56px; padding: 28px 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  display: grid; gap: 28px;
}
.tech__title { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1.08; }
.tech__lead { margin-top: 16px; color: var(--ink-soft); max-width: 52ch; }
.tech__list { display: grid; gap: 12px; }
.tech__list li { padding: 20px; border-radius: var(--radius-sm); background: var(--sand); }
.tech__name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.tech__spec { margin-top: 2px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--terracotta); }
.tech__list li p:last-child { margin-top: 10px; font-size: 15.5px; color: var(--ink-soft); }

/* ----- Étapes (la ligne se remplit au défilement) ----- */
.steps { position: relative; counter-reset: step; margin-block: 32px 36px; }
.steps::before, .steps::after {
  content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 1.5px; background: var(--line);
}
.steps::after { background: var(--terracotta); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
.steps > li { counter-increment: step; position: relative; padding: 0 0 32px 64px; }
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--terracotta); background: var(--sand); color: var(--terracotta);
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.steps > li.is-active::before { background: var(--terracotta); color: #fff; transform: scale(1.08); }
.steps h3 { font-size: 20px; padding-top: 7px; }
.steps p { margin-top: 6px; color: var(--ink-soft); font-size: 16px; }
.js .steps > li h3, .js .steps > li p { opacity: .6; transition: opacity .4s ease; }
.js .steps > li.is-active h3, .js .steps > li.is-active p { opacity: 1; }

/* Ce que couvre la consultation offerte */
.checks { margin-top: 12px; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 30px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--terracotta);
}
.checks li::after {
  content: ""; position: absolute; left: 6.5px; top: 6.5px; width: 7px; height: 4px;
  border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg);
}
.js .steps > li .checks { opacity: .6; transition: opacity .4s ease; }
.js .steps > li.is-active .checks { opacity: 1; }

/* ----- Séance offerte ----- */
.gift {
  margin-bottom: 32px; padding: 28px 24px; border-radius: var(--radius);
  background: var(--ink); color: var(--ivory);
}
.gift .eyebrow { color: var(--terracotta-light); margin-bottom: 12px; }
.gift__title { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.gift__details { margin-top: 12px; }
.gift__details summary {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 600; color: var(--terracotta-light);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(231, 169, 148, .5);
}
.gift__details summary::-webkit-details-marker { display: none; }
.gift__details summary::after {
  content: ""; width: 8px; height: 8px; margin-top: -4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .4s var(--ease), margin .4s var(--ease);
}
.gift__details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.gift__terms { margin-top: 8px; font-size: 14.5px; color: rgba(251, 248, 243, .78); }
.gift__note { margin-top: 12px; font-size: 11px; line-height: 1.4; color: rgba(251, 248, 243, .7); }
.gift__zones { margin-top: 12px; padding-bottom: 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.gift__details[open] .gift__zones li { animation: fade-up .5s var(--ease) both; }
.gift__details[open] .gift__zones li:nth-child(2) { animation-delay: .05s; }
.gift__details[open] .gift__zones li:nth-child(3) { animation-delay: .1s; }
.gift__details[open] .gift__zones li:nth-child(4) { animation-delay: .15s; }
.gift__zones li {
  padding: 8px 16px; border: 1.5px solid rgba(251, 248, 243, .35); border-radius: 999px;
  font-size: 15px; font-weight: 600;
}

/* ----- Centres ----- */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mosaic__main { grid-column: 1 / -1; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__main img { aspect-ratio: 16 / 10; }
.mosaic__a img, .mosaic__b img { aspect-ratio: 1; }

.centres { display: grid; gap: 16px; margin-top: 16px; }
.centre-card {
  padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  transition: border-color .3s ease, transform .5s var(--ease), box-shadow .5s var(--ease), opacity .9s var(--ease);
}
.centre-card:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(36, 30, 27, .35); }
.centre-card__tag { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); }
.centre-card h3 { margin-top: 10px; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.03em; line-height: 1.1; }
.centre-card address { margin-top: 12px; color: var(--ink-soft); font-size: 17px; }
.centre-card__actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }

/* ----- FAQ ----- */
.faq { display: grid; gap: 28px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; padding-block: 18px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: clamp(18px, 2vw, 21px); letter-spacing: -0.015em; line-height: 1.3;
  transition: color .2s ease;
}
.faq summary:hover { color: var(--terracotta); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform .4s var(--ease), background-size .4s var(--ease), border-color .2s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); background-size: 12px 1.5px, 1.5px 0; border-color: currentColor; }
.faq details p { padding-bottom: 22px; color: var(--ink-soft); max-width: 62ch; }
.faq details a { color: var(--ink); font-weight: 600; }
/* Ouverture animée là où le navigateur le permet */
@supports (interpolate-size: allow-keywords) {
  .faq details, .price-group details, .gift__details { interpolate-size: allow-keywords; }
  .gift__details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
  .gift__details[open]::details-content { block-size: auto; }
  .faq details::details-content, .price-group details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
  .faq details[open]::details-content, .price-group details[open]::details-content { block-size: auto; }
}

/* ----- Bloc final sombre : rappel + pied de page ----- */
.final {
  background: var(--ink); color: var(--ivory);
  border-radius: 32px 32px 0 0; margin-top: -32px; position: relative;
  padding-top: 72px; scroll-margin-top: 0;
}
.final .eyebrow { color: var(--terracotta-light); }
.final .section__lead { color: rgba(251, 248, 243, .78); }
.final .btn--primary { background: var(--ivory); color: var(--ink); }
.final .btn--primary:hover { background: var(--terracotta-light); }
.final .btn__icon { background: var(--ink); color: var(--ivory); }
.final .link-icon { text-decoration-color: rgba(251, 248, 243, .4); }
.final :focus-visible { outline-color: var(--terracotta-light); }

.callback { display: grid; gap: 36px; padding-bottom: 72px; }
.callback__alt { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.form {
  background: var(--ivory); color: var(--ink); border-radius: 28px;
  padding: 24px; display: grid; gap: 22px; scroll-margin-top: 88px;
}
.form :focus-visible { outline-color: var(--terracotta); }

.field label, .field legend { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.field__hint { font-weight: 500; color: var(--ink-soft); }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; min-height: 54px; padding: 12px 16px;
  font: inherit; font-size: 17px; color: var(--ink);
  background: #fff; border: 1.5px solid rgba(36, 30, 27, .4); border-radius: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: #8A7E77; }
.field input[type="text"]:focus, .field input[type="tel"]:focus {
  outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(140, 63, 50, .18);
}
.field input[aria-invalid="true"] { border-color: var(--error); }
.field__error { margin-top: 8px; color: var(--error); font-size: 14.5px; font-weight: 600; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; margin: 0 !important; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px;
  border: 1.5px solid rgba(36, 30, 27, .4); border-radius: 999px;
  font-weight: 600; font-size: 15px; background: #fff;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.choice input:hover + span { border-color: var(--ink); }
.choice input:checked + span { border-color: var(--terracotta); background: var(--terracotta); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--terracotta); outline-offset: 3px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status:empty { display: none; }
.form__status {
  padding: 16px; border-radius: 14px; font-size: 15.5px; line-height: 1.45;
  background: var(--sand); border: 1px solid var(--line); animation: fade-up .5s var(--ease) both;
}
.form__status[data-state="success"] { background: #EAF2EA; border-color: #B9D1BC; color: #1F3D27; font-weight: 600; }
.form__status[data-state="error"], .form__status[data-state="unavailable"] { background: #FBEDEA; border-color: #E3B9B0; color: #5E1C13; }
.form__status a, .form__status button {
  font: inherit; font-weight: 700; color: inherit; background: none; border: 0; padding: 0;
  text-decoration: underline; cursor: pointer;
}
.form__status ul { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.form__status li > * { display: inline-flex; align-items: center; min-height: 44px; }

.form__legal { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

/* ----- Pied de page ----- */
.site-footer { border-top: 1px solid rgba(251, 248, 243, .16); padding-block: 32px; font-size: 14.5px; color: rgba(251, 248, 243, .72); }
.site-footer strong { color: var(--ivory); }
.site-footer__inner { display: grid; gap: 16px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* ----- Barre mobile ----- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(251, 248, 243, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s linear .45s;
}
.mobile-bar.is-visible { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.mobile-bar .btn { min-height: 48px; padding: 8px 12px; font-size: 15px; }
.final { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }

/* ----- Bulle WhatsApp (en bas à gauche) ----- */
.wa-bubble {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 31;
  display: inline-flex; align-items: center; height: 56px; min-width: 56px; border-radius: 28px;
  background: #1FA855; color: #fff; text-decoration: none;
  box-shadow: 0 10px 28px rgba(36, 30, 27, .22), 0 2px 6px rgba(36, 30, 27, .12);
  transition: bottom .45s var(--ease), transform .3s var(--ease), opacity .3s ease, visibility 0s;
  animation: wa-in .6s var(--ease) .8s both;
}
.wa-bubble[hidden] { display: none; }
.wa-bubble svg { width: 56px; height: 56px; padding: 13px; flex: none; }
.wa-bubble__shape { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.wa-bubble__phone { fill: currentColor; }
.wa-bubble__label {
  max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: 15px;
  transition: max-width .35s var(--ease), padding .35s var(--ease);
}
.wa-bubble:hover { transform: translateY(-2px); }
.wa-bubble:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
/* Barre mobile affichée : la bulle remonte au-dessus */
.bar-on .wa-bubble { bottom: calc(var(--bar-h) + 14px + env(safe-area-inset-bottom, 0px)); }
/* Saisie dans le formulaire : la bulle s’efface pour ne pas gêner le clavier */
.form-focus .wa-bubble { opacity: 0; visibility: hidden; transform: scale(.8); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
@keyframes wa-in { from { opacity: 0; transform: translateY(16px) scale(.8); } }

/* ----- Pop-up Doctolib (feuille basse sur mobile) ----- */
.dialog {
  width: 100%; max-width: none; margin: auto 0 0; padding: 32px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  border: 0; border-radius: 28px 28px 0 0; background: var(--ivory); color: var(--ink);
}
.dialog[open] { animation: sheet .5s var(--ease) both; }
.dialog::backdrop { background: rgba(36, 30, 27, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .4s ease both; }
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.dialog h2 { font-size: clamp(28px, 5vw, 38px); padding-right: 44px; }
.dialog__lead { margin-top: 10px; color: var(--ink-soft); font-size: 15.5px; }
.dialog__close { position: absolute; top: 14px; right: 14px; }
.dialog__close button {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--sand); color: var(--ink); cursor: pointer;
  transition: transform .4s var(--ease), background-color .2s ease;
}
.dialog__close button:hover { transform: rotate(90deg); background: var(--ink); color: var(--ivory); }
.dialog__list { margin-top: 24px; display: grid; gap: 12px; }
.dialog__list a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px;
  padding: 20px; min-height: 96px;
  border: 1.5px solid var(--line); border-radius: 20px; background: var(--card);
  text-decoration: none;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.dialog__list em { grid-column: 1; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); transition: color .35s ease; }
.dialog__list strong { grid-column: 1; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.dialog__list span { grid-column: 1; font-size: 14.5px; color: var(--ink-soft); transition: color .35s ease; }
.dialog__list .icon {
  grid-column: 2; grid-row: 1 / span 3; width: 44px; height: 44px; padding: 12px; border-radius: 50%;
  background: var(--sand); transition: transform .4s var(--ease), background-color .35s ease, color .35s ease;
}
.dialog__list a:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.dialog__list a:hover em { color: var(--terracotta-light); }
.dialog__list a:hover span { color: rgba(251, 248, 243, .75); }
.dialog__list a:hover .icon { background: var(--ivory); color: var(--ink); transform: rotate(-45deg); }

/* ==========================================================================
   Tablette
   ========================================================================== */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
  .hero__actions .btn--large { width: auto; }
  .hero__secondary .btn--outline { flex: none; }
  .hero__media img { aspect-ratio: 16 / 9; object-position: 50% 22%; }
  .marks__list { grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .form { padding: 36px; }
  .centres { grid-template-columns: 1fr 1fr; }
  .centre-card { padding: 36px 32px; }
  .site-footer__inner { grid-template-columns: 1fr 1fr auto; align-items: start; }
  .callback__alt { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

  .dialog { width: min(520px, calc(100vw - 48px)); margin: auto; padding: 36px 32px 32px; border-radius: 28px; }
  .dialog[open] { animation-name: pop; }
}

@media (min-width: 760px) {
  :root { --header-h: 76px; }
  .site-header__cta { display: inline-flex; }
  .mobile-bar { display: none; }
  .final { padding-bottom: 0; }
  .preview-note { bottom: 16px; left: 96px; right: auto; }
  .wa-bubble { left: 24px; bottom: 24px; }
  .bar-on .wa-bubble { bottom: 24px; }
  .wa-bubble:hover .wa-bubble__label, .wa-bubble:focus-visible .wa-bubble__label { max-width: 120px; padding-right: 20px; }
}

/* ==========================================================================
   Ordinateur
   ========================================================================== */
@media (min-width: 900px) {
  .tech { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 48px; margin-top: 88px; }
  .tech__list { grid-template-columns: 1fr 1fr; }
  .tech__wide { grid-column: 1 / -1; }
  body { font-size: 18px; }
  .site-nav { display: flex; }
  .section { padding-block: 128px; }
  .section__head { margin-bottom: 56px; }
  .split { grid-template-columns: 1fr 1fr; gap: 88px; }
  .split--reverse .split__media { order: -1; }
  .split__media { position: sticky; top: 112px; align-self: start; }
  .split__media img { aspect-ratio: 4 / 4.6; }
  .mosaic { grid-template-columns: 1.7fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
  .mosaic__main { grid-column: 1; grid-row: 1 / span 2; }
  .mosaic__main img { aspect-ratio: auto; }
  .mosaic__a img, .mosaic__b img { aspect-ratio: 3 / 2; }
  .faq { grid-template-columns: 1fr 1.6fr; gap: 88px; align-items: start; }
  .faq__head { position: sticky; top: 112px; }
  .final { border-radius: 48px 48px 0 0; margin-top: -48px; padding-top: 128px; }
  .callback { grid-template-columns: 1fr 1fr; gap: 88px; align-items: start; padding-bottom: 128px; }
  .callback__intro { position: sticky; top: 112px; }
}

/* Hero plein cadre : texte à gauche sur le mur sable, portrait à droite */
@media (min-width: 1000px) {
  h1 { font-size: clamp(60px, 6.6vw, 96px); max-width: none !important; }
  h1 .line { white-space: nowrap; }
  .site-nav {
    gap: 28px; padding-inline: 24px; border-radius: 999px;
    background: rgba(251, 248, 243, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transition: background-color .4s var(--ease);
  }
  .site-header.is-scrolled .site-nav { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero { display: grid; min-height: clamp(600px, 100svh, 920px); align-items: center; background: #D9B994; }
  .hero__media { position: absolute; inset: 0; }
  .hero__media picture { position: absolute; inset: -6% 0; transform: translate3d(0, calc(var(--sy, 0) * 0.16px), 0); will-change: transform; }
  .hero__media img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 100% 30%; }
  .hero__content { position: relative; z-index: 1; padding-block: calc(var(--header-h) + 40px) 64px; }
  .hero__content > * { max-width: 600px; }
  .hero__eyebrow { color: #6E2E23; font-size: 12.5px; letter-spacing: .14em; margin-bottom: 20px; }
  .hero__lead { font-size: 20px; max-width: 32ch; margin-top: 28px; }
  .hero__actions { margin-top: 40px; flex-direction: column; align-items: flex-start; }
  .site-header:not(.is-scrolled) .brand__place { color: #4A3B32; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important; transition-delay: 0s !important;
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
  }
  .marquee__track { animation: none; }
  .hero__media picture { transform: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .media-reveal img { transform: none; clip-path: none; }
  .js .steps > li h3, .js .steps > li p, .js .steps > li .checks { opacity: 1; }
}
