/* Clinique Dentaire MachAllah — feuille de style unique.
   Direction « le panneau et le message » : l'enseigne de la clinique (bleu, bandeau turquoise, capitales)
   et la prise de rendez-vous en un message WhatsApp.
   Couleurs sobres, sans gris : bleu nuit, bleu de l'enseigne, blanc, écume (menthe très claire), turquoise ;
   le jaune de l'autocollant du cabinet n'apparaît qu'en touches. Mobile d'abord, bascule à 1000px. */

/* Polices hébergées avec le site. Licence SIL Open Font. */
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 800 900; font-display: swap; src: url("../fonts/big-shoulders-display-latin.woff2?v=698f996092") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 800 900; font-display: swap; src: url("../fonts/big-shoulders-display-latin-ext.woff2?v=2239cea544") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/instrument-sans-latin.woff2?v=2ee17598a9") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/instrument-sans-latin-ext.woff2?v=c4fcfea41f") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #0f2142;
  --blue: #1d5bab;
  --blue-d: #17498a;
  --white: #ffffff;
  --foam: #eaf6f3;
  --foam-2: #d3ede6;
  --teal: #137267;
  --teal-l: #1f9c8f;
  --sun: #ffd23f;
  --logo: #0a78c2; /* bleu du logo (contour de la dent) */
  --text-2: #33476b;
  --on-dark: #cfdcf0;
  --gutter: clamp(18px, 4.5vw, 64px);
  --section: clamp(64px, 8vw, 96px);
  --sign: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* Transitions entre les pages (navigateurs récents). */
@view-transition { navigation: auto; }

/* ── Base ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--white); color: var(--night); font: 17px/1.6 var(--sans); padding-bottom: 78px; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 16px; border-radius: 999px; background: var(--night); color: var(--white); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.sign { font-family: var(--sign); font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: .005em; }
.title { font-size: clamp(42px, 7vw, 94px); }
.section { padding: var(--section) 0; }
.lead { color: var(--text-2); font-size: 18px; max-width: 42ch; }
.link { font-weight: 700; color: var(--teal); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 24px;
  border-radius: 999px; border: 0; font: 700 17px/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--night { background: var(--night); color: var(--white); }
.btn--night:hover { background: var(--blue); }
.btn--white { background: var(--white); color: var(--night); }
.btn--white:hover { background: var(--foam); }
.btn--line { background: transparent; color: var(--night); box-shadow: inset 0 0 0 2px var(--night); }
.btn--line:hover { background: var(--night); color: var(--white); }

/* ── En-tête et menu ─────────────────────────────────────────────────── */

.top { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--foam-2); }
.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { margin-right: auto; display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1; padding: 6px 0; }
/* Le logo (cercle blanc) se détache de la barre blanche par un liseré et une ombre douce dans son propre bleu. */
.brand img { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--white);
  box-shadow: 0 0 0 1px rgba(10,120,194,.16), 0 2px 4px rgba(10,120,194,.18), 0 6px 16px rgba(10,120,194,.24); }
/* Le trait sous le nom est sorti du flux : seul le nom compte pour le centrage vertical à côté du logo. */
.brand-name { position: relative; display: flex; flex-direction: column; }
.brand-name svg { position: absolute; left: 0; top: 100%; }
.brand b { font: 900 26px/1 var(--sign); text-transform: uppercase; letter-spacing: .01em; }
.brand svg { width: 86px; height: 10px; margin-top: 2px; }
.brand path { fill: none; stroke: var(--logo); stroke-width: 3; stroke-linecap: round; }
.nav { display: none; gap: 26px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 4px) / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% 2px; }
.nav a[aria-current="page"] { color: var(--blue); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.status i { position: relative; width: 9px; height: 9px; flex: none; border-radius: 50%; background: #8fa3a0; }
.status.is-open i { background: var(--teal-l); }
.top .status { display: none; }
.top .tel { display: none; font-weight: 700; text-decoration: none; padding: 10px 0; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 0; background: var(--night); color: var(--white); font: 700 15px/1 var(--sans); cursor: pointer;
}
.menu-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.menu-panel {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - 64px); overflow-y: auto; padding: 8px var(--gutter) 24px;
  background: var(--white); border-bottom: 1px solid var(--foam-2); box-shadow: 0 18px 30px rgba(15,33,66,.12);
}
.menu-open .menu-panel { display: block; }
.menu-link { display: block; padding: 14px 0; border-bottom: 1px solid var(--foam-2); font: 900 28px/1 var(--sign); text-transform: uppercase; text-decoration: none; }
.menu-link[aria-current="page"] { color: var(--blue); }
.menu-panel .status { margin-top: 18px; }
.menu-panel .btn { width: 100%; margin-top: 16px; }

/* ── Bandeau bleu : accueil et têtes de page ─────────────────────────── */

.hero, .page-head { background: var(--blue); color: var(--white); }
.hero-where { font-size: 15px; color: var(--on-dark); }
.hero-where, .page-head .crumb { opacity: 1; }
/* Marge au-dessus de chaque ligne : les accents des capitales (É, È) ne sont pas coupés par le masque. */
.split .row { display: block; overflow: hidden; padding: .16em 0 .02em; margin-top: -.16em; white-space: nowrap; }
.split .ch { display: inline-block; }
.band { background: var(--teal); color: var(--white); }
.band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 12px; padding-bottom: 12px; font: 800 clamp(18px, 2.5vw, 26px)/1.15 var(--sign); text-transform: uppercase; letter-spacing: .02em; }
.band a { text-decoration: none; }

/* Accueil : défilement avant / après + message */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-show { padding: 28px var(--gutter) 22px; }
.hero h1 { font-size: clamp(32px, 8.7vw, 66px); }
/* Sous-titre du h1 : même phrase, en texte courant plus petit sous le nom. */
.hero-sub { display: block; margin-top: 10px; font: 600 clamp(17px, 2vw, 21px)/1.3 var(--sans); text-transform: none; letter-spacing: 0; color: var(--on-dark); }

@property --pos { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.show { margin-top: 20px; }
.show-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 22px; overscroll-behavior-x: contain; }
.show-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.wipe { --pos: 50%; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-d); }
.wipe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wipe .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.wipe-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--sun); }
.tag { position: absolute; top: 12px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; pointer-events: none; }
.tag--before { left: 12px; background: var(--night); color: var(--white); }
.tag--after { right: 12px; background: var(--white); color: var(--night); }
.slide figcaption { position: absolute; left: 12px; bottom: 12px; padding: 7px 14px; border-radius: 999px; background: var(--night); color: var(--white); font-size: 14px; font-weight: 600; }
.show-ui { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.ctl { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); background: none; color: var(--white); cursor: pointer; }
.ctl:hover { background: var(--white); color: var(--night); }
.ctl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.ctl .i-play { display: none; fill: currentColor; stroke: none; }
.ctl[aria-pressed="true"] .i-play { display: block; }
.ctl[aria-pressed="true"] .i-pause { display: none; }
.dots { display: flex; gap: 6px; flex: 1; justify-content: center; }
.dot { position: relative; width: 34px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.dot span { position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.dot[aria-current] span { background: rgba(255,255,255,.55); }
.dot span::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
.dot[aria-current] span::after { transform: scaleX(1); }

/* Têtes des autres pages */
.page-head .wrap { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(28px, 4vw, 48px); }
.page-head h1 { margin-top: 12px; font-size: clamp(44px, 10vw, 116px); }
.page-head .lead { margin-top: 18px; color: var(--on-dark); }

/* ── Message de rendez-vous ──────────────────────────────────────────── */

.composer-zone { background: var(--foam); color: var(--night); padding: 32px var(--gutter) 44px; }
.composer h2 { font-size: clamp(32px, 4.7vw, 50px); }
.composer .lead { margin-top: 10px; font-size: 17px; max-width: 38ch; }
.composer fieldset { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.composer legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 10px 15px; border-radius: 999px; background: var(--white); color: var(--night);
  font-size: 15px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--foam-2); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.chips label:hover span { box-shadow: inset 0 0 0 1.5px var(--blue); }
.chips input:checked + span { background: var(--night); color: var(--white); box-shadow: none; }
.chips input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.thread { margin-top: 20px; }
.thread-to { font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.bubble { position: relative; max-width: 440px; min-height: 52px; margin-left: auto; padding: 13px 16px 24px; border-radius: 20px 20px 4px 20px; background: var(--white); box-shadow: 0 1px 0 var(--foam-2); }
.bubble .meta { position: absolute; right: 12px; bottom: 5px; display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--text-2); }
.ticks { width: 18px; height: 12px; }
.ticks path { fill: none; stroke: var(--text-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; }
.bubble.is-sent .ticks path { stroke: var(--teal-l); stroke-dashoffset: 0; transition: stroke-dashoffset .3s var(--ease); }
.bubble.is-sent .ticks path + path { transition-delay: .15s; }
.typing { display: none; gap: 5px; padding: 6px 0; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); opacity: .4; }
.bubble.is-typing .typing { display: flex; }
.bubble.is-typing [data-text] { display: none; }
.composer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.composer-actions .tel { font-weight: 700; }

/* ── Le docteur, cadre en forme de sourire ───────────────────────────── */

.doctor .wrap { display: grid; gap: 34px; align-items: center; }
.smile-frame { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 28px 28px 50% 50% / 28px 28px 34% 34%; background: var(--foam); max-width: 520px; }
.smile-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.doctor h2 { font-size: clamp(40px, 6.6vw, 86px); color: var(--blue); }
.doctor p { margin-top: 18px; max-width: 38ch; font-size: 19px; color: var(--text-2); }
.doctor .btn { margin-top: 26px; }

/* ── Soins : icônes qui se dessinent ─────────────────────────────────── */

.care { background: var(--foam); }
.care-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; }
.care-list { display: grid; margin-top: 34px; border-top: 2px solid var(--night); }
.care-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-content: start; gap: 6px 18px; padding: 24px 0; border-bottom: 1px solid var(--foam-2); }
.care-item > svg { grid-row: span 4; width: 56px; height: 56px; padding: 12px; border-radius: 16px; background: var(--white); color: var(--blue); }
.care-item > svg * { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.care-item h2, .care-item h3 { font: 900 clamp(25px, 2.7vw, 31px)/.95 var(--sign); text-transform: uppercase; }
.care-item p { color: var(--text-2); font-size: 16px; max-width: 48ch; }
.care-item .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 6px; }
.care-item .actions a:not(.btn) { font-weight: 700; color: var(--teal); }
.care-item .btn { min-height: 46px; padding: 10px 20px; font-size: 16px; }
.care-item .compare { margin: 10px 0 4px; max-width: 520px; }
.care--page { background: var(--white); }
.care--page .care-item { border-bottom-color: var(--foam-2); }


/* Page Soins : tout commence par une consultation */
.consult { padding-top: clamp(32px, 5vw, 56px); }
.consult-box { display: grid; gap: 14px; justify-items: start; padding: clamp(22px, 3vw, 36px); border-radius: 26px; background: var(--foam); border-left: 6px solid var(--teal); }
.consult-box h2 { font-size: clamp(30px, 4vw, 46px); color: var(--blue); }
.consult-box p { font-size: 19px; color: var(--text-2); max-width: 46ch; }

/* ── Comparateur avant / après ───────────────────────────────────────── */

.compare { --pos: 50%; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 26px; background: var(--blue-d); touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--sun); pointer-events: none; }
.compare-line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2142' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 24px no-repeat; }
.compare .tag { top: 14px; padding: 5px 13px; font-size: 14px; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare.has-focus { outline: 3px solid var(--sun); outline-offset: 3px; }

/* Accueil : avant / après */
.result { background: var(--night); color: var(--white); }
.result .wrap { display: grid; gap: 34px; align-items: center; }
.result p { margin-top: 14px; max-width: 38ch; color: var(--on-dark); }
.result .btn { margin-top: 24px; }

/* Page avant / après : les six cas */
.cases { display: grid; gap: clamp(28px, 4vw, 48px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.case figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 14px; }
.case figcaption strong { font: 900 24px/1 var(--sign); text-transform: uppercase; }
.case figcaption span { color: var(--text-2); }
.case .pill { padding: 2px 10px; border-radius: 999px; background: var(--foam); color: var(--teal); font-size: 13px; font-weight: 700; }

/* ── Avis ────────────────────────────────────────────────────────────── */

.review .label { font-weight: 700; color: var(--teal); }
.review blockquote { margin-top: 16px; max-width: 26ch; font: 800 clamp(30px, 4.6vw, 56px)/1.08 var(--sign); white-space: pre-line; letter-spacing: .005em; }
.review .by { margin-top: 20px; color: var(--text-2); }
.review .btn { margin-top: 26px; }

/* ── La visite : défilement horizontal ───────────────────────────────── */

.tour { padding: var(--section) 0 40px; }
.tour-head p { margin-top: 12px; max-width: 46ch; color: var(--text-2); }
.tour-track { display: flex; gap: 18px; margin: 30px 0 0; padding: 0 var(--gutter) 16px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); }
.stop { flex: 0 0 min(78vw, 380px); scroll-snap-align: start; }
.stop figure { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 22px; background: var(--foam); }
.stop img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.stop:hover img { transform: scale(1.05); }
.stop-n { display: block; margin-top: 14px; font: 900 38px/1 var(--sign); color: var(--blue); }
.stop h3 { font: 700 21px/1.25 var(--sans); }
.stop p { color: var(--text-2); font-size: 16px; }

/* ── Horaires, façon affiche ─────────────────────────────────────────── */

.hours { background: var(--foam); }
.hours-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 24px; }
.hours-head .status { font-size: 16px; padding: 8px 14px; border-radius: 999px; background: var(--white); }
.hours-list { margin-top: 28px; border-top: 3px solid var(--night); }
.hours-row { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--foam-2); }
.hours-row dt { font: 900 clamp(26px, 3.9vw, 46px)/1 var(--sign); text-transform: uppercase; }
.hours-row dd { font: 800 clamp(20px, 2.8vw, 34px)/1 var(--sign); color: var(--blue); }
.hours-row::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 3px; width: 0; background: var(--teal-l); }
.hours-row.is-today::after { width: 100%; }
.today-tag { display: none; margin-left: 12px; padding: 3px 10px; border-radius: 999px; background: var(--teal); color: var(--white); font: 700 13px/1.4 var(--sans); text-transform: none; vertical-align: middle; }
.is-today .today-tag { display: inline-block; }
.access { display: grid; gap: 22px; margin-top: 36px; }
.access h3 { font: 900 22px/1 var(--sign); text-transform: uppercase; margin-bottom: 6px; }
.access .big { font: 900 32px/1 var(--sign); text-decoration: none; }

/* Carte */
.map { height: clamp(320px, 45vw, 520px); background: var(--foam); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ── Équipe ──────────────────────────────────────────────────────────── */

.team { display: grid; gap: 28px; margin-top: 34px; align-items: start; }
.team figure img { width: 100%; height: 100%; object-fit: cover; }
.team .smile-frame { max-width: none; }
.team-group { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 26px; background: var(--foam); }
.team figcaption { margin-top: 14px; }
.team figcaption b { display: block; font: 900 25px/1 var(--sign); text-transform: uppercase; }

/* ── Galerie et visionneuse ──────────────────────────────────────────── */

.gallery { display: grid; gap: 16px; margin-top: 34px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.zoom { display: block; width: 100%; padding: 0; border: 0; border-radius: 22px; background: var(--foam); overflow: hidden; cursor: zoom-in; }
.zoom .ph { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.zoom:hover img { transform: scale(1.05); }
.gallery figcaption { margin-top: 10px; font-size: 15px; color: var(--text-2); }
.lightbox {
  position: fixed; inset: 0; z-index: 60; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border: 0; background: rgba(15,33,66,.92); color: var(--white); cursor: zoom-out;
}
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(1200px, 100%); max-height: 80vh; object-fit: contain; border-radius: 14px; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; width: min(1200px, 100%); }
.lightbox-close { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--white); color: var(--night); font: 700 15px/1 var(--sans); cursor: pointer; }

/* ── Mentions légales ────────────────────────────────────────────────── */

.legal-body { display: grid; gap: 0 clamp(32px, 4vw, 64px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.legal-block { padding: 22px 0 30px; border-top: 3px solid var(--night); }
.legal-block h2 { margin-bottom: 12px; font: 900 clamp(24px, 2.7vw, 31px)/1 var(--sign); text-transform: uppercase; }
.legal-block p { max-width: 60ch; color: var(--text-2); }
.legal-block p + p { margin-top: 12px; }

/* ── Fin de page : le numéro ─────────────────────────────────────────── */

.call { background: var(--blue); color: var(--white); text-align: center; }
.call p { font-size: 19px; }
.call .num { display: inline-block; margin: 12px 0 26px; font-size: clamp(46px, 11vw, 156px); text-decoration: none; }
.call .num .ch { display: inline-block; }

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

.site-footer { background: var(--night); color: var(--on-dark); font-size: 15px; }
.site-footer .wrap { padding-top: 44px; padding-bottom: 28px; }
.footer-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-grid h2 { margin-bottom: 8px; font: 900 19px/1 var(--sign); text-transform: uppercase; color: var(--white); }
.site-footer a { color: var(--white); text-decoration: none; display: inline-block; padding: 3px 0; }
.site-footer a:hover { text-decoration: underline; }
.footer-nav { display: flex; flex-direction: column; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(207,220,240,.25); font-size: 14px; }
.footer-bottom a { text-decoration: underline; }

/* ── Barre WhatsApp fixe (téléphone) ─────────────────────────────────── */

.sticky { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: flex; gap: 8px; }
.sticky .btn { flex: 1; box-shadow: 0 8px 22px rgba(15,33,66,.3); }
.sticky .btn--white { flex: 0 0 auto; }

/* ── Animations (désactivées si l'appareil demande moins de mouvement) ─ */

@media (prefers-reduced-motion: no-preference) {
  .status.is-open i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--teal-l); animation: ping 2s ease-out infinite; }
  @keyframes ping { to { transform: scale(2.6); opacity: 0; } }
  .menu-open .menu-panel { animation: drop .3s var(--ease); }
  @keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

  /* Titres en lettres d'enseigne : chaque lettre monte */
  .js .split .ch { transform: translateY(105%); }
  .js .hero-sub { opacity: 0; }
  .js .is-on .hero-sub { opacity: 1; transition: opacity .8s var(--ease) .5s; }
  .js .is-on .split .ch { transform: none; transition: transform .7s var(--ease) calc(var(--i) * 26ms); }
  .js .brand path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1s var(--ease) .3s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  /* Bandeau turquoise : glisse depuis la gauche */
  .js .band .wrap > * { opacity: 0; transform: translateX(-24px); }
  .js .is-on .band .wrap > * { opacity: 1; transform: none; transition: opacity .6s .45s, transform .8s var(--ease) .45s; }
  .js .is-on .band .wrap > * + * { transition-delay: .58s; }

  /* Défilement avant / après : le rideau « avant » s'ouvre sur « après », barre de progression */
  .show.is-auto .wipe { --pos: 100%; }
  .show.is-auto .slide.is-active .wipe { --pos: 0%; transition: --pos 1.8s var(--ease) .6s; }
  .show.is-playing .dot[aria-current] span::after { animation: progress var(--slide-ms, 5200ms) linear; }
  @keyframes progress { from { transform: scaleX(0); } }

  /* Message : « en train d'écrire », puis le texte */
  .chips input:checked + span { animation: chip .35s var(--ease); }
  @keyframes chip { 40% { transform: scale(1.08); } }
  .typing i { animation: dot 1s infinite; }
  .typing i:nth-child(2) { animation-delay: .15s; }
  .typing i:nth-child(3) { animation-delay: .3s; }
  @keyframes dot { 30% { transform: translateY(-4px); opacity: 1; } }
  .bubble.is-new [data-text] { animation: msg .45s var(--ease); }
  @keyframes msg { from { opacity: 0; transform: translateY(6px); } }

  /* Photo : le cadre s'ouvre en sourire */
  .js .smile-frame { clip-path: inset(0 0 100% 0 round 28px); }
  .js .smile-frame.in-view { clip-path: inset(0 0 0 0 round 28px); transition: clip-path 1.2s var(--ease); }
  .js .smile-frame img { transform: scale(1.12); }
  .js .smile-frame.in-view img { transform: none; transition: transform 1.6s var(--ease); }

  /* Icônes des soins dessinées à l'apparition, redessinées au survol */
  .js .care-item > svg * { stroke-dasharray: 80; stroke-dashoffset: 80; }
  .js .care-item.in-view > svg * { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease); }
  .care-item:hover > svg * { animation: redraw 1s var(--ease); }
  @keyframes redraw { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }

  /* Horaires : la ligne du jour se souligne */
  .hours-row::after { transition: width 1s var(--ease) .3s; }

  /* Numéro de fin de page, chiffre par chiffre */
  .js .call .num .ch { transform: translateY(40%); opacity: 0; }
  .js .call .num.in-view .ch { transform: none; opacity: 1; transition: transform .6s var(--ease) calc(var(--i) * 45ms), opacity .4s calc(var(--i) * 45ms); }

  /* La visite défile de côté pendant qu'on fait défiler la page (ordinateur, navigateurs récents) */
  @supports (animation-timeline: view()) {
    @media (min-width: 1000px) {
      .tour { height: 260vh; padding: 0; view-timeline-name: --tour; }
      .tour-pin { position: sticky; top: 64px; height: calc(100vh - 64px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
      .tour-track { overflow: visible; width: max-content; animation: tour linear both; animation-timeline: --tour; animation-range: contain 0% contain 100%; }
      .stop { flex-basis: 30vw; max-width: 440px; }
      .stop figure { aspect-ratio: 4 / 3.4; }
      @keyframes tour { to { transform: translateX(calc(-100% + 100vw)); } }
    }
  }
}

/* ── Tablette et ordinateur ──────────────────────────────────────────── */

@media (min-width: 720px) {
  .care-list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .access { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
}
@media (min-width: 1000px) {
  body { padding-bottom: 0; }
  .sticky, .menu-btn, .menu-open .menu-panel { display: none; }
  .nav, .top .status, .top .tel { display: flex; }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: stretch; max-width: 1440px; margin: 0 auto; }
  .hero-show { padding: 48px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: center; }
  .hero h1 { font-size: clamp(44px, 4.1vw, 66px); }
  .composer-zone { margin: 32px var(--gutter) 32px 0; border-radius: 28px; padding: 32px; align-self: center; }
  .composer-zone--page { margin: 0; }
  .doctor .wrap { grid-template-columns: 1fr 1.1fr; }
  .result .wrap { grid-template-columns: 1.25fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .page-head h1 { font-size: clamp(70px, 7vw, 116px); }
}
