/* =========================================================
   Clinique Dentaire La Prairie — feuille de style principale
   Tokens issus du Figma (maquette 1920 px).
   Les tailles sont fluides : valeur Figma à 1920 px, ~80 % à 1280 px,
   puis paliers dédiés pour tablette et mobile.
   ========================================================= */

/* Polices auto-hébergées (latin) */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Couleurs */
  --c-primary: #003458;
  --c-secondary: #396b30;
  --c-black: #00171f;
  --c-white: #ffffff;
  --c-bg: #f6efe6;
  --c-text: #474747;
  --c-accent: #82c2d8;

  /* Typographie fluide (min · préféré · max = valeur Figma) */
  --fs-body: clamp(15px, 0.234vw + 12.5px, 17px);
  --fs-small: clamp(13px, 0.156vw + 11px, 14px);
  --fs-h1: clamp(34px, 2.5vw + 16px, 64px);
  --fs-h2: clamp(26px, 1.25vw + 16px, 40px);
  --fs-h3: clamp(19px, 0.625vw + 12px, 24px);
  --fs-sub: clamp(17px, 0.3125vw + 14px, 20px);
  --fs-eyebrow: clamp(12.5px, 0.156vw + 11px, 14px);

  /* Espacements fluides */
  --sp-xs: 8px;
  --sp-sm: clamp(12px, 0.3125vw + 10px, 16px);
  --sp-md: clamp(18px, 0.625vw + 12px, 24px);
  --sp-ml: clamp(26px, 1.25vw + 16px, 40px);
  --sp-lg: clamp(32px, 1.25vw + 24px, 48px);
  --sp-xl: clamp(36px, 1.875vw + 24px, 60px);
  --sp-xxl: clamp(52px, 2.5vw + 32px, 80px);

  /* Mise en page */
  --gutter: max(20px, 9vw);
  --wrap: min(1420px, 100vw - 2 * var(--gutter));
  --side: calc((100vw - var(--wrap)) / 2);
  --text-w: clamp(560px, 42vw, 720px);
  --radius-pill: 40px;
  --strip-off: clamp(80px, 2.65vw + 46px, 97px);
  --header-h: 120px;

  /* Ombres */
  --shadow-small: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-card: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-big: 0 8px 16px rgba(0, 0, 0, 0.15);

  --f-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;

  /* Animation (prototype : Dissolve 300 ms ease-out) */
  --t: 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, h4, ul { margin: 0; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }
.anchor, [id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.container { width: var(--wrap); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sr-only--focusable:focus {
  position: fixed; top: 8px; left: 8px; z-index: 200; width: auto; height: auto; clip: auto; margin: 0;
  padding: 10px 16px; background: var(--c-white); color: var(--c-primary); border-radius: 8px; box-shadow: var(--shadow-small);
}

/* ---------- Typographie ---------- */
.h1 { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-h1); line-height: 1.1; letter-spacing: -1px; color: var(--c-primary); }
.h2 { font-family: var(--f-head); font-weight: 600; font-size: var(--fs-h2); line-height: 1.15; color: var(--c-black); }
.h3 { font-family: var(--f-head); font-weight: 600; font-size: var(--fs-h3); line-height: 1.25; color: var(--c-primary); }
.eyebrow { font-family: var(--f-head); font-weight: 600; font-size: var(--fs-eyebrow); line-height: 1.4; letter-spacing: 1.2px; text-transform: uppercase; color: var(--c-primary); }
.subtitle { font-weight: 500; font-size: var(--fs-sub); line-height: 1.6; color: var(--c-black); }
.subtitle--primary { color: var(--c-primary); }
.lead { font-weight: 500; font-size: var(--fs-sub); line-height: 1.6; color: var(--c-text); }
.green { color: var(--c-secondary); }
.body > * + * { margin-top: 1.1em; }
.body h2, .body h3 { margin-top: 1.6em; }
.body ul { padding-left: 1.5em; }
.body li + li { margin-top: 6px; }
.text-link { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--c-secondary); }

.titles { display: flex; flex-direction: column; gap: var(--sp-sm); }
.titles--tight { gap: var(--sp-xs); }
.titles--center { align-items: center; text-align: center; }
.titles--narrow { max-width: var(--text-w); margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: clamp(12px, 0.3125vw + 10px, 16px) var(--sp-md);
  border-radius: var(--radius-pill);
  font-family: var(--f-head); font-weight: 600; font-size: var(--fs-body); line-height: 1.25;
  color: var(--c-white); background: var(--c-primary);
  white-space: nowrap;
  transition: background-color var(--t), transform var(--t), opacity var(--t);
}
.btn:hover { background: var(--c-black); }
.btn--secondary { background: var(--c-secondary); }
.btn--secondary:hover { background: var(--c-black); }
.btn .ico-arrow { width: 16px; height: 14px; display: grid; place-items: center; flex-shrink: 0; }
.btn .ico-arrow img { width: 14px; height: 16px; transform: rotate(90deg); }
.btn--prev .ico-arrow img { transform: rotate(-90deg); }
.btn--prev .ico-arrow { order: -1; }
.btn .ico { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.btn .ico--dl { width: 12px; height: 18px; }
.btn .ico--mail { height: 13px; }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btn-row { display: flex; gap: var(--sp-sm); flex-wrap: wrap; }
.btn-row--tight { gap: var(--sp-xs); }

/* ---------- Top bar (seule partie collante) ---------- */
.topbar { position: relative; z-index: 60; background: var(--c-primary); color: var(--c-white); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md); min-height: 52px; }
.topbar__group { display: flex; align-items: center; gap: var(--sp-md); }
.topbar a, .topbar .lang__btn { font-family: var(--f-body); font-weight: 700; font-size: clamp(14px, 0.156vw + 12px, 15.5px); line-height: 1.35; transition: color var(--t); }
/* Éléments de droite : même hauteur, même typo, centrés sur la même ligne */
.topbar__group > a, .topbar .lang, .topbar .lang__btn { display: inline-flex; align-items: center; height: 32px; }
.topbar .phone { display: inline-flex; align-items: center; gap: var(--sp-xs); }
.topbar .phone .swap { width: 15px; height: 15px; }
.topbar .phone .swap img { width: 15px; height: 15px; }
.topbar .phone:hover { color: var(--c-accent); }
.topbar .urgence:hover, .topbar .lang:hover .lang__btn, .topbar .lang.is-open .lang__btn { color: var(--c-accent); }
.topbar .fb .swap, .topbar .fb img { width: 9px; height: 16px; }
.topbar .fb img { transform: scaleY(-1); }

/* Sélecteur de langue */
.lang { position: relative; }
.lang__btn { gap: 4px; color: var(--c-white); }
.lang__chev { width: 13px; height: 13px; flex-shrink: 0; background-color: currentColor; -webkit-mask: url(../icons/chevron-white.svg) center / contain no-repeat; mask: url(../icons/chevron-white.svg) center / contain no-repeat; transition: transform var(--t), background-color var(--t); }
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 130px; z-index: 5;
  background: var(--c-white); border-radius: var(--sp-xs); box-shadow: var(--shadow-small); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--t), transform var(--t), visibility 0s linear 0.3s;
}
.lang__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.lang:hover .lang__menu, .lang:focus-within .lang__menu, .lang.is-open .lang__menu {
  opacity: 1; visibility: visible; transform: none; transition: opacity var(--t), transform var(--t), visibility 0s;
}
.lang:hover .lang__chev, .lang.is-open .lang__chev { transform: rotate(180deg); }
.lang__menu a { display: block; padding: 10px 14px; color: var(--c-black) !important; font-weight: 600; transition: background-color var(--t), color var(--t); }
.lang__menu a:hover { background: var(--c-primary); color: var(--c-white) !important; }

/* Images interchangeables au survol (variantes Figma) */
.swap { position: relative; display: inline-block; }
.swap img { transition: opacity var(--t); }
.swap img + img { position: absolute; inset: 0; opacity: 0; }
a:hover > .swap img:first-child, .swap:hover img:first-child { opacity: 0; }
a:hover > .swap img + img, .swap:hover img + img { opacity: 1; }

/* ---------- En-tête (défile avec la page) ---------- */
/* En-tête principal : collant en haut de l'écran */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-white); box-shadow: 0 1px 0 rgba(0, 23, 31, 0.06); transition: box-shadow var(--t); }
.site-header.is-stuck { box-shadow: var(--shadow-small); }
.menu__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md); padding-block: clamp(14px, 0.9375vw + 2px, 20px); }
.logo { display: block; flex-shrink: 0; }
.logo .swap, .logo img { width: clamp(72px, 4.06vw + 32px, 110px); aspect-ratio: 163 / 130; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.5vw - 8px, 40px); }
.nav__link {
  display: inline-flex; align-items: center; gap: var(--sp-xs); padding-block: var(--sp-sm);
  font-weight: 500; font-size: var(--fs-body); line-height: 1.2; color: var(--c-black);
  transition: color var(--t);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--c-secondary); }
.nav__link .chev { width: 13px; height: 13px; transition: transform var(--t); }
.nav__mobile-extra, .burger { display: none; }
.nav__langs { display: flex; gap: var(--sp-md); }
.nav__langs .nav__link { width: auto; }

/* Sous-menu « Nos services » */
.has-sub { position: relative; }
.submenu {
  position: absolute; top: calc(100% - 6px); left: -16px; z-index: 10; width: clamp(260px, 7.5vw + 163px, 307px);
  border: 1px solid var(--c-primary); border-radius: var(--sp-xs); overflow: hidden; background: var(--c-white);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--t), transform var(--t), visibility 0s linear 0.3s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.is-open .submenu {
  opacity: 1; visibility: visible; transform: none; transition: opacity var(--t), transform var(--t), visibility 0s;
}
.has-sub:hover .chev, .has-sub.is-open .chev { transform: rotate(180deg); }
.submenu a {
  display: block; padding: 11px var(--sp-xs) 11px 12px; border-bottom: 1px solid var(--c-primary);
  font-size: var(--fs-small); line-height: 1.35; color: var(--c-black); background: var(--c-white);
  transition: background-color var(--t), color var(--t);
}
.submenu a:last-child { border-bottom: 0; }
.submenu a:hover, .submenu a:focus-visible, .submenu a[aria-current="page"] { background: var(--c-primary); color: var(--c-white); }

/* ---------- Héros ---------- */
.page-hero { padding: var(--sp-xxl) 0; background: var(--c-white); }
.page-hero .titles { max-width: var(--text-w); margin-inline: auto; }
.page-hero--wide .titles { max-width: clamp(640px, 61vw, 1180px); }

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(520px, calc(100svh - 170px), 860px);
  display: flex; align-items: flex-end; padding-block: var(--sp-ml);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.1); }
.hero__box {
  width: min(clamp(720px, 30vw + 380px, 939px), 100%);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--sp-md); padding: var(--sp-xl);
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.15);
  display: flex; flex-direction: column; gap: var(--sp-ml);
}
/* Boutons à gauche, note Google à droite sur la même ligne (maquette) */
/* Paragraphe du héros masqué (retirer cette ligne pour le réafficher) */
.hero__box .lead { display: none; }
.hero__ctas { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-sm); flex-wrap: nowrap; }
.hero__ctas .btn-row { flex-wrap: nowrap; }
.rating { font-weight: 500; font-size: var(--fs-sub); line-height: 1.6; color: var(--c-primary); white-space: nowrap; }

/* ---------- Sections ---------- */
.section { padding-block: var(--sp-xxl); }
.section--bg { background: var(--c-bg); }
.section--before-footer { padding-bottom: calc(var(--strip-off) + var(--sp-xxl)); }
.section .titles--center { margin-bottom: var(--sp-ml); }
.section--clip { overflow: hidden; }

/* Cartes services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: var(--sp-md); }
.service-card {
  --icon: clamp(52px, 1.875vw + 28px, 64px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-xs);
  min-height: clamp(180px, 4.84vw + 138px, 231px); padding: var(--sp-md);
  background: var(--c-white); border-radius: var(--sp-xs); box-shadow: var(--shadow-card); text-align: center;
  transition: background-color var(--t);
}
.service-card .h3, .service-card .more, .service-card__icon img { transition: color var(--t), filter var(--t); }
.service-card:hover { background: var(--c-secondary); }
.service-card:hover .h3, .service-card:hover .more { color: var(--c-white); }
.service-card:hover .service-card__icon img { filter: brightness(0) invert(1); }
.service-card__icon { height: calc(var(--icon) * 1.31); display: flex; align-items: flex-end; justify-content: center; }
.service-card__icon img { height: var(--icon); width: auto; }
.service-card__icon img.wide { height: calc(var(--icon) * 0.94); }
.service-card__icon img.tall { height: calc(var(--icon) * 1.31); }
.service-card .h3 { color: var(--c-black); }
.service-card .more { color: var(--c-secondary); }
.service-card--all { background: var(--c-primary); }
.service-card--all .h3, .service-card--all .more { color: var(--c-white); }
.service-card--all:hover { background: var(--c-secondary); }

/* Moitié image / moitié contenu (pleine largeur) */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split__media { position: relative; min-height: 320px; overflow: hidden; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__content {
  display: flex; flex-direction: column; justify-content: center; gap: var(--sp-ml);
  padding: var(--sp-xxl) var(--side) var(--sp-xxl) var(--sp-ml);
}
.split--reverse .split__content { order: -1; padding: var(--sp-xxl) var(--sp-ml) var(--sp-xxl) var(--side); }
.split__content .btn { align-self: flex-start; }
/* À propos : les deux sections « Nos dentistes » ont la même hauteur */
@media (min-width: 1101px) { .split-pair { display: grid; grid-auto-rows: 1fr; } }

/* Prise de rendez-vous */
.rdv { position: relative; isolation: isolate; overflow: hidden; background: var(--c-bg); padding: var(--sp-xxl) 0 calc(var(--strip-off) + var(--sp-xxl)); }
.rdv__img { position: absolute; z-index: -2; top: -8.5%; right: -1.9%; width: 40.2%; height: 117%; object-fit: cover; }
.rdv::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--c-bg) 0%, var(--c-bg) 63%, rgba(246, 239, 230, 0) 100%); }
.rdv__inner { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-ml); }
.rdv .titles, .rdv p { max-width: var(--text-w); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--c-primary); color: var(--c-white); padding: calc(var(--strip-off) + var(--sp-xxl)) 0 var(--sp-ml); }
.contact-strip {
  position: absolute; left: 50%; top: calc(-1 * var(--strip-off)); transform: translateX(-50%);
  width: var(--wrap); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md);
  padding: var(--sp-ml) var(--sp-md); background: var(--c-secondary); border-radius: var(--sp-sm); box-shadow: var(--shadow-big);
}
.contact-strip a { display: flex; flex-direction: column; align-items: center; gap: var(--sp-xs); text-align: center; min-width: 0; }
.contact-strip img { height: clamp(40px, 1.875vw + 16px, 52px); width: auto; margin-bottom: 4px; }
.contact-strip strong { font-weight: 700; overflow-wrap: anywhere; }
.footer__top { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-ml); }
.footer__brand { display: flex; flex-direction: column; gap: var(--sp-md); align-items: flex-start; }
.footer__brand p { max-width: 560px; }
.footer__logo .swap, .footer__logo img { width: clamp(80px, 2.65vw + 50px, 101px); aspect-ratio: 101 / 80; height: auto; }
.footer__fb .swap, .footer__fb img { width: 28px; height: 28px; }
.footer__fb img { transform: scaleY(-1); }
.footer__links h2 { font-family: var(--f-body); font-size: var(--fs-body); font-weight: 700; margin-bottom: var(--sp-ml); }
.footer__cols { display: flex; justify-content: space-between; gap: var(--sp-md); }
.footer__cols ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-md); }
.site-footer a.link { transition: color var(--t); }
.site-footer a.link:hover { color: var(--c-accent); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-sm); margin-top: var(--sp-ml); font-size: var(--fs-small); flex-wrap: wrap; }
.footer__legal { display: flex; align-items: center; gap: var(--sp-sm); flex-wrap: wrap; }
.footer__credit { text-decoration: none; }

/* ---------- À propos / Carrières ---------- */
.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-ml); align-items: center; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 219 / 173; }
.gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 690 / 281; border-radius: var(--sp-sm) var(--sp-sm) 0 0; object-position: 50% 16.6%; }
.gallery img:nth-child(2) { border-bottom-left-radius: var(--sp-sm); }
.gallery img:nth-child(3) { object-position: 50% 55%; }
.gallery img:nth-child(4) { border-bottom-right-radius: var(--sp-sm); object-position: 50% 32%; }
.content-col { display: flex; flex-direction: column; gap: var(--sp-ml); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-md); margin-top: var(--sp-lg); }
.value { display: flex; flex-direction: column; align-items: center; gap: var(--sp-md); padding-inline: var(--sp-sm); text-align: center; color: var(--c-primary); }
.value img { height: clamp(48px, 1.875vw + 24px, 60px); width: auto; }
.value__text { display: flex; flex-direction: column; gap: var(--sp-xs); }

/* Postes ouverts */
.jobs { display: grid; gap: var(--sp-md); max-width: 980px; margin-inline: auto; }
.job { background: var(--c-white); border-radius: var(--sp-sm); padding: var(--sp-md); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: var(--sp-sm); }
.job__head { display: flex; flex-direction: column; }
.job .btn { align-self: flex-start; margin-top: var(--sp-xs); }
.job__meta { color: var(--c-secondary); font-weight: 700; margin-top: 4px; }

/* ---------- Image arrondie + contenu (services / articles) ---------- */
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-ml); align-items: center; }
.media-row__img { width: 100%; height: 100%; min-height: clamp(260px, 16.5vw, 316px); object-fit: cover; border-radius: var(--sp-md); box-shadow: var(--shadow-big); }
.media-row--tall .media-row__img { min-height: 0; height: clamp(400px, 29.4vw, 565px); }
.media-row--article { align-items: start; }
.media-row--article .media-row__img { position: sticky; top: calc(var(--header-h) + var(--sp-md)); height: auto; aspect-ratio: 690 / 460; }
.media-row .content-col { padding-block: 9px; }
.pager { display: flex; justify-content: space-between; gap: var(--sp-sm); margin-top: var(--sp-ml); flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-ml); align-items: stretch; }
.faq__left { display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-ml); }
.card { background: var(--c-white); border-radius: var(--sp-sm); padding: var(--sp-md); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: var(--sp-ml); align-self: flex-start; }
.accordions { display: flex; flex-direction: column; gap: var(--sp-sm); }
.accordion { background: var(--c-white); border-radius: var(--sp-sm); box-shadow: var(--shadow-card); overflow: hidden; }
.accordion__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-xl); padding: var(--sp-sm); text-align: left; }
.accordion__btn img { width: 16px; height: 8px; flex-shrink: 0; transition: transform var(--t); }
.accordion.is-open .accordion__btn img { transform: rotate(180deg); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t); cursor: pointer; }
.accordion.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p { padding: 0 var(--sp-sm) var(--sp-sm); }

/* ---------- Carrousel ---------- */
.carousel { position: relative; }
.carousel__track { display: flex; gap: var(--sp-ml); transition: transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1); }
.article-card { flex: 0 0 calc((100% - var(--sp-ml)) / 2); display: flex; flex-direction: column; border-radius: var(--sp-sm); background: var(--c-white); box-shadow: 0 8px 8px rgba(0, 0, 0, 0.15); transition: opacity 0.5s ease; }
.article-card.is-off { opacity: 0.1; pointer-events: none; }
.article-card__img img { width: 100%; aspect-ratio: 690 / 300; object-fit: cover; border-radius: var(--sp-sm) var(--sp-sm) 0 0; }
.article-card__body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-ml); padding: var(--sp-md); }
.article-card .btn { align-self: flex-start; }
.carousel__nav { position: absolute; top: 45%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; transition: opacity var(--t), transform var(--t); }
.carousel__nav:disabled { opacity: 0.5; cursor: default; transform: translateY(-50%); }
.carousel__nav--prev { left: calc(-1 * min(80px, var(--side) - 8px)); }
.carousel__nav--prev img { transform: scaleX(-1); }
.carousel__nav--next { right: calc(-1 * min(80px, var(--side) - 8px)); }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--sp-ml); }
.carousel__dots button { width: 14px; height: 14px; border-radius: 50%; background: var(--c-primary); opacity: 0.5; transition: opacity var(--t); }
.carousel__dots button[aria-current="true"] { opacity: 1; }

/* ---------- RCSD ---------- */
.rcsd { position: relative; isolation: isolate; padding-block: var(--sp-xxl); overflow: hidden; }
.rcsd__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.rcsd__box { margin-left: auto; width: min(clamp(520px, 36vw, 690px), 100%); background: var(--c-white); border-radius: var(--sp-sm); padding: var(--sp-ml); box-shadow: 0 8px 8px rgba(0, 0, 0, 0.15); display: flex; flex-direction: column; gap: var(--sp-ml); align-items: flex-start; }

/* ---------- Formulaires ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-ml); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: var(--sp-xl); }
.hours { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-xs); font-family: var(--f-head); font-weight: 500; font-size: var(--fs-sub); line-height: 1.35; color: var(--c-secondary); }
.hours .closed { color: var(--c-text); }
.form { background: var(--c-white); border-radius: var(--sp-ml); padding: var(--sp-ml) var(--sp-md); display: flex; flex-direction: column; gap: var(--sp-md); }
.form__note { font-weight: 700; color: var(--c-secondary); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: var(--sp-xs); min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend, .check { font-family: var(--f-head); font-weight: 600; font-size: var(--fs-body); color: var(--c-primary); padding: 0; }
.field legend { margin-bottom: var(--sp-sm); }
.req { color: var(--c-secondary); }
.input {
  width: 100%; padding: var(--sp-sm); border: 1px solid transparent; border-radius: var(--sp-sm);
  background: var(--c-bg); color: var(--c-primary); font-family: var(--f-head); font-weight: 600; font-size: var(--fs-body);
  transition: border-color var(--t), box-shadow var(--t); appearance: none;
}
.input::placeholder { color: rgba(0, 52, 88, 0.5); }
.input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(130, 194, 216, 0.35); }
.input[type="file"] { font-weight: 500; font-size: var(--fs-small); cursor: pointer; }
.input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: var(--radius-pill); background: var(--c-primary); color: var(--c-white); font: 600 var(--fs-small) var(--f-head); cursor: pointer; }
textarea.input { min-height: 117px; resize: vertical; }
select.input {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23003458' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
select.input:invalid { color: rgba(0, 52, 88, 0.5); }
.field.is-invalid .input { border-color: #b3261e; }
.field__error { font-size: var(--fs-small); color: #b3261e; display: none; }
.field.is-invalid .field__error { display: block; }
.radios { display: flex; gap: var(--sp-ml); flex-wrap: wrap; row-gap: var(--sp-xs); }
.radio, .check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.radio { align-items: center; font-family: var(--f-head); font-weight: 600; color: var(--c-primary); }
.radio input, .check input { appearance: none; flex-shrink: 0; width: 12px; height: 12px; margin: 0; border: 1px solid var(--c-primary); background: var(--c-white); cursor: pointer; transition: background-color var(--t), box-shadow var(--t); }
.radio input { border-radius: 50%; }
.radio input:checked { background: var(--c-primary); box-shadow: inset 0 0 0 2px var(--c-white); }
.check input { border-radius: 2px; margin-top: 5px; }
.check input:checked { background: var(--c-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' fill='none'%3E%3Cpath d='M1 3l2 2 4-4' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/8px no-repeat; }
.form .btn { align-self: flex-start; }
.form__success { display: none; padding: var(--sp-sm); border-radius: var(--sp-sm); background: rgba(57, 107, 48, 0.1); color: var(--c-secondary); font-weight: 700; }
.form.is-sent .form__success { display: block; }
.form__fail { display: none; padding: var(--sp-sm); border-radius: var(--sp-sm); background: rgba(180, 40, 40, 0.08); color: #a12a2a; }
.form.is-fail .form__fail { display: block; }

/* ---------- Pages légales ---------- */
.legal { max-width: 860px; margin-inline: auto; background: var(--c-white); border-radius: var(--sp-md); padding: var(--sp-xl); box-shadow: var(--shadow-card); }
.legal h2:first-child { margin-top: 0; }
.legal h3:first-of-type { margin-top: var(--sp-md); }
.legal > .h2 { margin-top: 0; }
/* Mentions légales : sommaire collant + deux sections */
.legal-wrap { display: grid; grid-template-columns: 240px minmax(0, 860px); justify-content: center; gap: var(--sp-ml); align-items: start; }
.legal-wrap .legal { grid-column: 2; margin: 0; max-width: none; }
.legal-toc { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-h) + var(--sp-md)); gap: var(--sp-sm); align-self: start; }
.legal-toc__date { font-size: var(--fs-small); margin-top: var(--sp-xs); }
/* Politique d'annulation */
.cancel-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.cancel-grid .legal { max-width: none; margin: 0; }
.cancel-card { position: sticky; top: calc(var(--header-h) + var(--sp-md)); gap: var(--sp-md); align-self: start; }
.cancel-card .hours { font-size: var(--fs-body); }

/* ---------- Pop-ups ---------- */
.popup { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0, 52, 88, 0.6); opacity: 0; visibility: hidden; transition: opacity var(--t), visibility 0s linear 0.3s; }
.popup.is-open { opacity: 1; visibility: visible; transition: opacity var(--t), visibility 0s; }
.popup__box {
  position: relative; width: min(clamp(560px, 44vw, 850px), 100%);
  background: var(--c-white); border-radius: var(--sp-md); padding: var(--sp-xxl) var(--sp-xl);
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.15);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-ml); text-align: center;
  transform: translateY(16px) scale(0.98); transition: transform var(--t);
  max-height: calc(100vh - 40px); overflow: auto;
}
.popup--wide .popup__box { width: min(clamp(640px, 66vw, 1341px), 100%); }
.popup.is-open .popup__box { transform: none; }
.popup__close { position: absolute; top: var(--sp-ml); right: var(--sp-ml); width: 22px; height: 22px; transition: transform var(--t); }
.popup__close img { width: 22px; height: 22px; }
body.no-scroll { overflow: hidden; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.215, 0.61, 0.355, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1199px) {
  .menu__inner > .btn { display: none; }
}

@media (max-width: 1100px) {
  :root { --gutter: 32px; --text-w: 640px; }
  /* Menu mobile : le burger vit dans la top bar (seule partie collante) */
  .burger { display: block; position: relative; flex-shrink: 0; width: 44px; height: 44px; margin-right: -10px; }
  .burger span, .burger::before, .burger::after {
    content: ""; position: absolute; left: 9px; width: 22px; height: 2px; border-radius: 2px;
    background: var(--c-primary); transition: transform var(--t), opacity var(--t);
  }
  .burger::before { top: 15px; } .burger span { top: 21px; } .burger::after { top: 27px; }
  .nav-open .burger::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .burger span { opacity: 0; }
  .nav-open .burger::after { transform: translateY(-6px) rotate(-45deg); }
  .topbar .lang { display: none; }

  .nav {
    position: fixed; top: var(--nav-top, var(--header-h)); left: 0; right: 0; bottom: 0; z-index: 55;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--sp-sm) var(--gutter) var(--sp-ml);
    background: var(--c-white); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--t), transform var(--t), visibility 0s linear 0.3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t), transform var(--t), visibility 0s; }
  .nav > * { border-bottom: 1px solid rgba(0, 52, 88, 0.12); }
  .nav__link { width: 100%; justify-content: space-between; font-size: 19px; padding-block: 16px; }
  .submenu { position: static; width: auto; border: 0; border-radius: 0; opacity: 1; visibility: visible; transform: none; display: none; padding-bottom: var(--sp-sm); }
  .has-sub.is-open .submenu { display: block; }
  .has-sub:hover .chev { transform: none; }
  .has-sub.is-open .chev { transform: rotate(180deg); }
  .submenu a { border: 0; border-left: 2px solid var(--c-bg); padding: 10px var(--sp-sm); font-size: 16px; }
  .submenu a[aria-current="page"] { background: var(--c-bg); color: var(--c-secondary); }
  /* Menu ouvert : « Prendre un rendez-vous » collé au bas du menu */
  .nav { padding-bottom: calc(var(--sp-ml) + env(safe-area-inset-bottom)); }
  .nav__mobile-extra { flex: 1 0 auto; display: flex; flex-direction: column; gap: var(--sp-sm); border: 0 !important; padding-top: var(--sp-xs); }
  .nav__mobile-extra .btn { width: 100%; margin-top: auto; }

  .split, .about-row, .media-row, .faq, .contact-grid { grid-template-columns: 1fr; }
  .legal-wrap, .cancel-grid { grid-template-columns: 1fr; }
  .legal-wrap .legal, .legal-toc { grid-column: auto; grid-row: auto; }
  .legal-toc, .cancel-card { position: static; }
  .split--reverse .split__content, .split__content { order: 0; padding: var(--sp-xxl) var(--gutter); }
  /* Images de contenu : hauteur limitée pour ne pas occuper tout l'écran */
  .split__media { min-height: 0; aspect-ratio: auto; height: clamp(220px, 42vw, 360px); }
  .media-row__img, .media-row--tall .media-row__img, .media-row--article .media-row__img { min-height: 0; aspect-ratio: auto; height: clamp(220px, 42vw, 360px); }
  .media-row--article .media-row__img { position: static; }
  .values { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-ml); }
  .footer__top { grid-template-columns: 1fr; }
  .rdv__img { width: 55%; opacity: 0.6; }
  .hero__box { width: min(640px, 100%); }
  .hero__ctas, .hero__ctas .btn-row { flex-wrap: wrap; }
  .rcsd__box, .popup__box, .popup--wide .popup__box { width: min(640px, 100%); }
  .carousel__nav, .carousel__nav:disabled { top: auto; bottom: 0; transform: none; }
  .carousel__nav--prev { left: 0; }
  .carousel__nav--next { right: 0; }
  .carousel__dots { min-height: 40px; align-items: center; padding-inline: 56px; }
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .article-card { flex-basis: 100%; }
  .contact-strip {
    position: relative; left: auto; top: auto; transform: none;
    grid-template-columns: 1fr; gap: var(--sp-md); padding: var(--sp-md);
    margin: calc(-1 * var(--strip-off)) auto var(--sp-xxl);
  }
  :root { --strip-off: 150px; }
  .site-footer { padding-top: 0; display: flow-root; }
  .hero { display: block; min-height: 0; padding: 0 0 var(--sp-ml); }
  .hero__media { position: relative; inset: auto; z-index: 0; height: clamp(260px, 62vw, 520px); }
  .hero__box { position: relative; z-index: 1; width: 100%; margin-top: -64px; gap: var(--sp-md); }
  .rcsd { padding: 0 0 var(--sp-xxl); background: var(--c-bg); }
  .rcsd__bg { position: relative; inset: auto; z-index: 0; height: clamp(260px, 62vw, 520px); object-position: 42% 35%; }
  .rcsd__box { position: relative; z-index: 1; margin: -64px auto 0; width: 100%; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .topbar__inner { min-height: 44px; }
  .topbar .fb { display: none; }
  .topbar__group { gap: 14px; }
  .services-grid, .values, .form__row { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding-block: var(--sp-ml); }
  .services-grid { grid-auto-rows: 1fr; }
  .footer__cols { display: grid; grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .btn { white-space: normal; text-align: left; }
  .rdv { padding-bottom: calc(var(--strip-off) + 290px); }
  .rdv__img { top: auto; bottom: var(--strip-off); right: 0; width: 100%; height: 320px; opacity: 1; object-position: 78% 62%; }
  .rdv::before { background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg) calc(100% - var(--strip-off) - 320px), rgba(246, 239, 230, 0) calc(100% - var(--strip-off) - 200px)); }
  .popup__box { padding: var(--sp-xxl) var(--sp-md) var(--sp-ml); }
  .popup__close { top: 18px; right: 18px; }
  .rcsd__box, .legal { padding: var(--sp-md); }
  .accordion__btn { gap: var(--sp-sm); }
  .job .btn { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .topbar .phone__num { font-size: 13px; }
  .urgence { font-size: 13px !important; }
}

/* Piège à robots des formulaires (invisible) */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form.is-sending button[type="submit"] { opacity: 0.6; pointer-events: none; }

/* Section « Prise de rendez-vous » sur fond blanc (après une section beige) */
.rdv--white { background: var(--c-white); }
.rdv--white::before { background: linear-gradient(90deg, #fff 0%, #fff 63%, rgba(255, 255, 255, 0) 100%); }
@media (max-width: 640px) {
  .rdv--white::before { background: linear-gradient(180deg, #fff 0%, #fff calc(100% - var(--strip-off) - 320px), rgba(255, 255, 255, 0) calc(100% - var(--strip-off) - 200px)); }
}

/* Assurance RCSD : rappel */
.rcsd__note { color: var(--c-secondary); font-weight: 500; }

/* Pages service en construction */
.construction { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-md); background: var(--c-white); border-radius: var(--sp-sm); padding: var(--sp-xl) var(--sp-ml); box-shadow: 0 8px 8px rgba(0, 0, 0, 0.06); }
.construction .titles--center { margin-bottom: 0; }
.construction__icon { height: 72px; width: auto; }
.btn-row--center { justify-content: center; }

/* Parallaxe des images (comme ScrollSmoother data-speed 0.8) */
[data-parallax] { will-change: transform; }
