/* =====================================================================
   Centre médical Dr Asmae Rhellab · Médecine générale · Salé  (v2)
   Direction (méthode unslop) :
   - Produit   : site local de médecine générale, objectif rendez-vous WhatsApp
   - Caractère : rassurant, précis, chaleureux, un médecin de famille
   - Monde     : le cabinet : mur au logo AR prune, papier à en-tête, carnet de suivi
   - Moments   : l'entrée réelle du cabinet en pleine largeur ; l'ordonnance-formulaire
   - Signature : le papier d'ordonnance (lignes, en-tête, cachet) et la frise des 9 mois
   Méthode unslop par Damir Sokolovsky (@heydamir), CC BY 4.0.
   ===================================================================== */

:root {
  --bg: #faf7f3;
  --card: #fffdfa;
  --raised: #f3ede6;
  --tint: #f6eef4;
  --text: #241a23;
  --text-2: #5c505b;
  --muted: #776b76;
  --line: rgba(36, 26, 35, .09);
  --line-2: rgba(36, 26, 35, .16);

  --accent: #813079;
  --accent-hover: #6c2866;
  --logo: #a05898;
  --accent-soft: #f1e3ef;
  --deep: #2b1729;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-float: 0 8px 24px rgba(36, 26, 35, .08);

  --wrap: 1180px;
  --header-h: 72px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[lang="ar"] { font-family: "Tajawal", var(--sans); }
.ic { width: 18px; height: 18px; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--deep); color: #fff; padding: 8px 12px; border-radius: var(--r-sm); }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 243, .95);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 58px; height: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt strong { font-family: var(--serif); font-weight: 500; font-size: 19px; }
.brand-txt small { font-size: 13px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  white-space: nowrap; display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; color: var(--text-2); text-decoration: none;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav a:hover { color: var(--text); background: var(--raised); }
.nav a.active { color: var(--accent); }
.nav .nav-ext .ic { width: 14px; height: 14px; }
.nav .nav-call { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }

/* ---------- Accueil : photo pleine largeur ---------- */
.hero { position: relative; min-height: min(640px, calc(100svh - var(--header-h) - 40px)); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--deep); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 12%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(43, 23, 41, .94) 0%, rgba(43, 23, 41, .86) 34%, rgba(43, 23, 41, .25) 62%, rgba(43, 23, 41, 0) 80%);
}
.hero-in { position: relative; padding-top: 64px; padding-bottom: 112px; }
.hero-text { max-width: 540px; }
.hero-place { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 15px; color: rgba(255, 255, 255, .78); margin-bottom: 20px; }
.hero-place [lang="ar"] { color: #e8bfe2; font-size: 16px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: 62px; line-height: 1.04; letter-spacing: -.03em;
  font-variation-settings: "opsz" 144;
}
.lead { margin-top: 24px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .84); max-width: 32rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn-primary { background: #fff; color: var(--deep); }
.hero .btn-primary:hover { background: var(--accent-soft); }
.hero .btn-primary .ic { color: var(--accent); }

/* barre d'infos qui chevauche la photo */
.infobar {
  position: relative; z-index: 2; margin-top: -56px;
  display: grid; grid-template-columns: 1fr 1.4fr 1fr;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
}
.info { display: flex; align-items: center; gap: 14px; padding: 22px 24px; text-decoration: none; min-width: 0; }
.info + .info { border-left: 1px solid var(--line); }
.info > .ic { width: 22px; height: 22px; color: var(--accent); }
.info div { display: flex; flex-direction: column; min-width: 0; }
.info-k { font-size: 13px; color: var(--muted); }
.info-v { font-weight: 600; font-size: 15px; }
.info-v .open { color: #16803c; }
.info-v .shut { color: #b42318; }
.info-link:hover .info-v { color: var(--accent); }
.stars { display: inline-flex; gap: 1px; color: #c98a1b; flex: none; }
.stars .ic { width: 15px; height: 15px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.sec-head-row p { max-width: 380px; margin-top: 0; }
.section h2, .chronic h2 {
  font-family: var(--serif); font-weight: 400; font-size: 42px; line-height: 1.1; letter-spacing: -.02em;
  font-variation-settings: "opsz" 96;
}
.sec-head p { margin-top: 16px; font-size: 17px; color: var(--text-2); }
.sec-head-row p { font-size: 16px; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }

/* ---------- Consultations : onglets ---------- */
.tabs { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.tablist { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
.tablist [role="tab"] {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 4px; background: none; border: 0; border-bottom: 1px solid var(--line);
  text-align: left; font-size: 17px; font-weight: 500; color: var(--text-2); cursor: pointer;
  transition: color .15s var(--ease), padding .18s var(--ease);
}
.tablist [role="tab"]:hover { color: var(--text); }
.tn { font-family: var(--serif); font-size: 14px; color: var(--muted); width: 22px; }
.tablist [aria-selected="true"] { color: var(--accent); padding-left: 12px; box-shadow: inset 2px 0 0 var(--accent); }
.tablist [aria-selected="true"] .tn { color: var(--accent); }
.panels { position: relative; }
.panel {
  padding: 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  animation: panel-in .3s var(--ease);
}
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel-ic { width: 52px; height: 52px; padding: 12px; color: var(--accent); background: var(--accent-soft); border-radius: 14px; }
.panel h3 { margin-top: 24px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; letter-spacing: -.01em; max-width: 22ch; }
.panel p { margin-top: 16px; font-size: 17px; color: var(--text-2); max-width: 38rem; }
.panel-bring {
  display: flex; flex-direction: column; gap: 2px; margin: 28px 0 32px; padding: 16px 20px;
  background: var(--raised); border-radius: var(--r); font-size: 15px;
}
.panel-bring span { font-size: 13px; font-weight: 600; color: var(--accent); }

/* ---------- Grossesse : frise ---------- */
.journey { position: relative; }
.journey-track { position: absolute; left: 0; right: 0; top: 47px; height: 2px; background: rgba(129, 48, 121, .18); border-radius: 2px; }
.journey-fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; transition: width 1.6s var(--ease); }
.journey.drawn .journey-fill { width: 100%; }
.journey-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.journey-steps li { display: flex; flex-direction: column; }
.j-when { font-size: 13px; font-weight: 600; color: var(--accent); height: 24px; }
.j-dot {
  display: grid; place-items: center; width: 16px; height: 16px; margin: 15px 0 24px;
  background: var(--tint); border: 2px solid var(--accent); border-radius: 50%;
}
.j-echo .j-dot { width: 40px; height: 40px; margin: 3px 0 12px; background: var(--accent); color: #fff; border: 4px solid var(--tint); }
.j-echo .j-dot .ic { width: 18px; height: 18px; }
.journey-steps h3 { font-size: 17px; }
.journey-steps p { margin-top: 8px; font-size: 15px; color: var(--text-2); }
.journey-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(129, 48, 121, .18);
}
.journey-foot p { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.journey-foot .ic { color: var(--accent); }

/* ---------- Maladies chroniques ---------- */
.chronic { background: var(--deep); color: #fff; padding: 96px 0; }
.chronic h2 { max-width: 20ch; }
.chronic-list { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, .16); }
.chronic-list li { padding: 28px 28px 0 0; }
.chronic-list li + li { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .12); }
.c-name { font-family: var(--serif); font-size: 30px; line-height: 1.1; letter-spacing: -.01em; color: #f0d4ec; }
.chronic-list p { margin-top: 12px; font-size: 15px; color: rgba(255, 255, 255, .74); }
.chronic-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 48px;
  font-weight: 600; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); padding-bottom: 4px;
}
.chronic-link:hover { border-color: #fff; }
.chronic-link .ic { transition: transform .15s var(--ease); }
.chronic-link:hover .ic { transform: translateX(3px); }

/* ---------- Visite du cabinet : bande ---------- */
.strip-nav { display: flex; gap: 8px; }
.strip-btn {
  display: grid; place-items: center; width: 44px; height: 44px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 50%; cursor: pointer;
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.strip-btn:hover { border-color: var(--accent); color: var(--accent); }
.strip {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
  scroll-padding: 0 max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
}
.strip::-webkit-scrollbar { display: none; }
.shot { flex: none; margin: 0; scroll-snap-align: start; }
.g-item { display: block; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; border-radius: var(--r-lg); background: var(--raised); height: 400px; }
.shot-v .g-item { width: 260px; }
.shot-h .g-item { width: 600px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.g-item:hover img { transform: scale(1.03); }
figcaption { display: flex; gap: 12px; margin-top: 12px; font-size: 15px; font-weight: 500; }
figcaption span { font-family: var(--serif); color: var(--accent); }

/* ---------- Rendez-vous : l'ordonnance ---------- */
.section-rdv { background: var(--raised); }
.rdv-in { display: grid; grid-template-columns: 1fr 600px; gap: 80px; align-items: center; }
.rdv-steps { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.rdv-steps li { display: flex; align-items: center; gap: 16px; font-size: 17px; }
.rdv-steps span {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-family: var(--serif);
}
.rdv-alt { margin-top: 32px; color: var(--text-2); }
.rdv-alt a { color: var(--accent); font-weight: 600; text-decoration: none; }

.rx {
  position: relative; padding: 36px 40px 32px;
  background: #fffefb; border-radius: 6px;
  box-shadow: 0 1px 2px rgba(36, 26, 35, .06), 0 16px 40px rgba(36, 26, 35, .10);
  transform: rotate(-.6deg);
}
.rx::before { /* bord gauche de carnet */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--accent); border-radius: 6px 0 0 6px;
}
.rx-head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; padding-bottom: 20px; border-bottom: 2px solid var(--accent); }
.rx-head img { width: 54px; margin-top: 4px; }
.rx-doc { display: flex; flex-direction: column; line-height: 1.25; }
.rx-doc strong { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.rx-doc span { font-size: 14px; color: var(--accent); }
.rx-addr { font-size: 12px; line-height: 1.5; color: var(--muted); text-align: right; }
.rx-date { margin-top: 20px; text-align: right; font-size: 14px; color: var(--text-2); font-style: italic; font-family: var(--serif); }
.rx-title { margin: 8px 0 12px; font-family: var(--serif); font-size: 24px; letter-spacing: -.01em; }
.rx-line { display: flex; align-items: baseline; gap: 12px; padding-top: 14px; border-bottom: 1px dashed var(--line-2); }
.rx-line:focus-within { border-bottom-color: var(--accent); border-bottom-style: solid; }
.rx-line label { flex: none; font-size: 14px; color: var(--muted); }
.rx-line input, .rx-line select {
  flex: 1; min-width: 0; height: 40px; padding: 0 4px; border: 0; background: transparent; font-size: 17px; font-weight: 500;
  font-family: var(--sans);
}
.rx-line input:focus, .rx-line select:focus { outline: none; }
.rx-line select { cursor: pointer; appearance: none; -webkit-appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23776b76' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center;
  padding-right: 24px; }
.rx-line .invalid { box-shadow: inset 0 -2px 0 #b42318; }
.rx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.opt { color: var(--muted); }
.rx-motifs { border: 0; margin: 0; padding: 18px 0 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.rx-motifs legend { float: left; width: 100%; margin-bottom: 10px; font-size: 14px; color: var(--muted); padding: 0; }
.rx-motifs label { position: relative; cursor: pointer; }
.rx-motifs input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rx-motifs span {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.rx-motifs label:hover span { border-color: var(--accent); }
.rx-motifs input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.rx-motifs input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-error { margin-top: 12px; color: #b42318; font-size: 14px; }
.rx-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.rx-sign {
  display: grid; place-items: center; width: 120px; height: 64px; flex: none;
  border: 1.5px dashed rgba(129, 48, 121, .35); border-radius: 50%;
  font-size: 11px; letter-spacing: .04em; color: rgba(129, 48, 121, .6); transform: rotate(-8deg); text-transform: uppercase;
}

/* ---------- Accès ---------- */
.access { display: grid; grid-template-columns: 420px 1fr; gap: 64px; align-items: stretch; }
.hours { width: 100%; margin-top: 28px; border-collapse: collapse; font-size: 15px; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.hours th { font-weight: 500; }
.hours td { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { color: var(--accent); font-weight: 600; }
address { font-style: normal; display: flex; flex-direction: column; gap: 12px; margin: 28px 0; }
address p { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
address .ic { margin-top: 3px; color: var(--accent); }
address a { color: var(--text); font-weight: 500; text-decoration: none; }
.map { min-height: 440px; border-radius: var(--r-xl); overflow: hidden; background: var(--raised); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }

/* ---------- FAQ ---------- */
.faq-in { display: grid; grid-template-columns: 360px 1fr; gap: 64px; }
.faq-side { margin-top: 16px; color: var(--text-2); }
.faq-side a, .faq a { color: var(--accent); font-weight: 600; }
.faq details { border-bottom: 1px solid rgba(129, 48, 121, .16); }
.faq details:first-child { border-top: 1px solid rgba(129, 48, 121, .16); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex: none; color: var(--accent);
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform .18s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 32px 20px 0; color: var(--text-2); }

/* ---------- Esthétique ---------- */
.aesth { border-top: 1px solid var(--line); }
.aesth-in { display: flex; align-items: center; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.aesth-in > .ic { color: var(--logo); width: 22px; height: 22px; }
.aesth p { color: var(--text-2); font-size: 15px; }
.aesth strong { color: var(--text); }
.aesth a { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex: none; font-weight: 600; color: var(--accent); text-decoration: none; }
.aesth a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pied de page ---------- */
.footer { background: var(--deep); color: rgba(255, 255, 255, .72); font-size: 15px; padding-top: 64px; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.f-brand img { width: 150px; background: #fff; padding: 12px 16px; border-radius: var(--r); }
.f-brand p { margin-top: 16px; max-width: 18rem; }
.footer h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer p + p { margin-top: 8px; }
.footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 20px; padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px;
}

.mobile-bar { display: none; }

/* ---------- Visionneuse ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 90vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 10, 19, .82); }
.lightbox img { max-height: 86vh; width: auto; border-radius: var(--r-lg); }
.lb-close {
  position: absolute; top: -48px; right: 0; width: 40px; height: 40px;
  display: grid; place-items: center; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
}

/* ---------- Une seule entrée au chargement ---------- */
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-text > * { animation: enter .48s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: 50ms; }
.hero-text > :nth-child(3) { animation-delay: 100ms; }
.hero-text > :nth-child(4) { animation-delay: 150ms; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .journey-fill { width: 100%; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1120px) {
  .hero h1 { font-size: 54px; }
  .tabs { grid-template-columns: 280px 1fr; gap: 32px; }
  .rdv-in { grid-template-columns: 1fr 1.3fr; gap: 48px; }
  .nav a { padding: 8px 9px; font-size: 14px; }
  .brand-txt small { display: none; }
  .journey-steps { gap: 16px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .wrap { padding: 0 16px; }
  .header-in { gap: 12px; }
  .brand img { width: 48px; }
  .brand-txt strong { font-size: 17px; }
  .brand-txt small { display: block; font-size: 12px; }
  .header-actions { margin-left: auto; }
  .header-rdv { width: 40px; padding: 0; }
  .header-rdv span { display: none; }
  .menu-btn {
    display: grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); cursor: pointer;
  }
  .menu-btn .ic-close { display: none; }
  .menu-btn[aria-expanded="true"] .ic-open { display: none; }
  .menu-btn[aria-expanded="true"] .ic-close { display: block; }
  .nav {
    position: absolute; top: calc(var(--header-h) - 4px); right: 16px;
    flex-direction: column; align-items: stretch; gap: 2px;
    width: 260px; padding: 8px; margin: 0;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-float);
    opacity: 0; transform: translateY(-6px); visibility: hidden;
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav a { padding: 10px 12px; font-size: 15px; }
  .nav .nav-call {
    display: flex; gap: 8px; margin-top: 6px; padding-top: 12px;
    border-top: 1px solid var(--line); border-radius: 0 0 var(--r-sm) var(--r-sm); color: var(--accent); font-weight: 600;
  }

  /* accueil : photo en haut, texte dessous sur fond prune */
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; height: 260px; }
  .hero-media img { object-position: 64% 30%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(43, 23, 41, 0) 55%, rgba(43, 23, 41, 1) 100%); }
  .hero-in { padding-top: 8px; padding-bottom: 88px; }
  .hero h1 { font-size: 40px; line-height: 1.06; }
  .lead { font-size: 16px; margin-top: 16px; }
  .hero-cta { margin-top: 24px; }
  .hero-cta .btn { flex: 1 1 220px; }
  .infobar { grid-template-columns: 1fr; margin-top: -56px; }
  .info { padding: 14px 18px; }
  .info + .info { border-left: 0; border-top: 1px solid var(--line); }

  .section, .chronic { padding: 64px 0; }
  .section h2, .chronic h2 { font-size: 32px; }
  .sec-head { margin-bottom: 32px; }
  .sec-head-row { flex-direction: column; align-items: flex-start; gap: 12px; }

  .tabs { grid-template-columns: 1fr; gap: 16px; }
  .tablist {
    flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none; border-top: 0;
    margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x proximity;
  }
  .tablist::-webkit-scrollbar { display: none; }
  .tablist [role="tab"] {
    flex: none; scroll-snap-align: start; gap: 8px; padding: 0 14px; height: 40px;
    border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; white-space: nowrap;
  }
  .tablist [aria-selected="true"] { padding-left: 14px; box-shadow: none; background: var(--accent); border-color: var(--accent); color: #fff; }
  .tablist [aria-selected="true"] .tn { color: rgba(255, 255, 255, .7); }
  .tn { width: auto; }
  .panel { padding: 24px 20px; }
  .panel h3 { font-size: 24px; margin-top: 18px; }
  .panel p { font-size: 16px; }
  .panel .btn { width: 100%; }

  .journey-track { left: 19px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .journey-fill { width: 100%; height: 0; transition: height 1.6s var(--ease); }
  .journey.drawn .journey-fill { height: 100%; }
  .journey-steps { grid-template-columns: 1fr; gap: 0; }
  .journey-steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; padding-bottom: 28px; }
  .j-when { grid-column: 2; grid-row: 1; height: auto; }
  .j-dot { grid-column: 1; grid-row: 1 / span 3; justify-self: center; margin: 4px 0 0; }
  .j-echo .j-dot { margin: 0; }
  .journey-steps h3, .journey-steps p { grid-column: 2; }
  .journey-foot { margin-top: 16px; }
  .journey-foot .btn { width: 100%; }

  .chronic-list { grid-template-columns: 1fr 1fr; margin-top: 32px; }
  .chronic-list li, .chronic-list li + li { padding: 20px 16px 20px 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .chronic-list li:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .12); }
  .c-name { font-size: 24px; }
  .chronic-link { margin-top: 32px; }

  .strip { gap: 12px; padding: 0 16px; scroll-padding: 0 16px; }
  .g-item { height: 300px; }
  .shot-v .g-item { width: 200px; }
  .shot-h .g-item { width: 82vw; }

  .rdv-in { grid-template-columns: 1fr; gap: 32px; }
  .rx { padding: 24px 20px 24px 24px; transform: none; }
  .rx-head { grid-template-columns: auto 1fr; }
  .rx-addr { grid-column: 1 / -1; text-align: left; }
  .rx-row { grid-template-columns: 1fr; gap: 0; }
  .rx-foot { flex-direction: column; align-items: stretch; }
  .rx-foot .btn { width: 100%; }
  .rx-sign { display: none; }

  .access { grid-template-columns: 1fr; gap: 32px; }
  .map, .map iframe { min-height: 320px; }
  .faq-in { grid-template-columns: 1fr; gap: 24px; }
  .aesth-in { flex-wrap: wrap; }
  .aesth a { margin-left: 38px; }

  .footer { padding-top: 48px; padding-bottom: 72px; }
  .footer-in { grid-template-columns: 1fr 1fr; gap: 32px; }
  .f-brand { grid-column: 1 / -1; }

  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 250, .96); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transform: translateY(110%); transition: transform .26s var(--ease);
  }
  .mobile-bar.show { transform: none; }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none;
  }
  .mb-call { border: 1px solid var(--line-2); background: var(--card); }
  .mb-wa { background: var(--accent); color: #fff; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 36px; }
  .footer-in { grid-template-columns: 1fr; }
  .brand-txt small { display: none; }
}
