/* ==========================================================
   Dr Omar Mouni, chirurgie viscérale, Meknès
   Direction : clinique lumineuse, bleu pétrole + or du logo
   ========================================================== */

:root {
  --cream: #F7F3EC;
  --paper: #FFFDF9;
  --sand: #EFE7D9;
  --ink: #0B2B35;
  --petrol: #0F4C5C;
  --petrol-2: #16687A;
  --deep: #082731;
  --gold: #C9A24A;
  --gold-2: #E3C77E;
  --gold-soft: #F3E8CC;
  --muted: #56717A;
  --line: rgba(15, 76, 92, .14);
  --shadow: 0 24px 60px -28px rgba(8, 39, 49, .35);
  --r: 22px;
  --r-lg: 34px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ar: "Tajawal", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[lang="ar"] { font-family: var(--ar); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }

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

.wrap { width: min(1220px, 100% - 40px); margin-inline: auto; }

/* ---------- Typo ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--petrol-2);
}
.eyebrow__line { width: 34px; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow--light { color: var(--gold-2); }

.h2 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 800;
  color: var(--petrol);
}
.h2--light { color: #fff; }
.hl { position: relative; white-space: nowrap; color: var(--petrol-2); }
.hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: .06em; height: .32em;
  background: var(--gold-soft); z-index: -1; border-radius: 4px;
  transform-origin: left; animation: hl 1s .5s var(--ease) both;
}
.hl--gold { color: var(--gold-2); }
.hl--gold::after { background: rgba(201, 162, 74, .22); }
@keyframes hl { from { transform: scaleX(0); } }

.head { max-width: 720px; margin-bottom: 56px; }
.head__lead { margin: 20px 0 0; color: var(--muted); font-size: 18px; max-width: 560px; }
.head--split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.head--split .head__lead { margin: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 17px 28px; font-size: 16px; }
.btn--petrol { background: var(--petrol); color: #fff; box-shadow: 0 14px 30px -14px rgba(15, 76, 92, .8); }
.btn--petrol:hover { background: var(--petrol-2); }
.btn--gold { background: var(--gold); color: var(--deep); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { border-color: var(--line); color: var(--petrol); background: rgba(255, 255, 255, .6); }
.btn--ghost:hover { border-color: var(--petrol); }

/* ---------- Topbar ---------- */
.topbar { background: var(--petrol); color: #DCE9EC; font-size: 13.5px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; }
.topbar p { margin: 0; }
.topbar__tel { color: #fff; font-weight: 700; text-decoration: none; }
.status { display: inline-flex; align-items: center; gap: 9px; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #9FB4BA; }
.status.is-open .status__dot { background: #4ADE80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: ping 2s infinite; }
.status.is-open b { color: #fff; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(247, 243, 236, .82); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(8, 39, 49, .5); }
.nav__in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 40px; height: auto; mix-blend-mode: multiply; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__txt strong { font-size: 18px; font-weight: 800; color: var(--petrol); letter-spacing: -.01em; }
.brand__txt small { font-size: 12.5px; color: var(--gold); font-weight: 600; letter-spacing: .02em; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { position: relative; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink); opacity: .8; transition: opacity .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--paper); border-radius: 12px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--petrol); border-radius: 2px; transition: transform .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(201, 162, 74, .14), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(22, 104, 122, .08), transparent 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero__title {
  margin: 0;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 800;
  color: var(--petrol);
}
.hero__ar { margin: 22px 0 0; font-size: 20px; color: var(--gold); font-weight: 500; text-align: left; }
.hero__lead { margin: 18px 0 0; max-width: 540px; font-size: 18.5px; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.rating { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; padding: 10px 18px 10px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; transition: box-shadow .3s; }
.rating:hover { box-shadow: var(--shadow); }
.rating__score { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--petrol); color: #fff; font-weight: 800; font-size: 14px; }
.rating__stars { color: var(--gold); letter-spacing: 2px; }
.rating__txt { font-size: 14px; font-weight: 600; color: var(--muted); }

.hero__visual { position: relative; justify-self: center; width: min(470px, 100%); }
.halo { position: absolute; inset: -6% -10% 6% -10%; border-radius: 50%; }
.halo::before, .halo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
/* Croissant doré du logo */
.halo::before { background: linear-gradient(140deg, var(--gold-2), var(--gold) 55%, #A67C2B); clip-path: inset(0 50% 0 0); opacity: .9; animation: halo 1.4s var(--ease) both; }
.halo::after { border: 2.5px solid var(--petrol); clip-path: inset(0 0 0 50%); opacity: .5; animation: halo 1.4s .15s var(--ease) both; }
@keyframes halo { from { transform: rotate(-30deg) scale(.9); opacity: 0; } }
.hero__portrait { position: relative; margin: 0; border-radius: 240px 240px var(--r-lg) var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; background: var(--sand); }
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: zoom 1.6s var(--ease) both; }
@keyframes zoom { from { transform: scale(1.08); } }
.chip { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; background: rgba(255, 253, 249, .94); backdrop-filter: blur(8px); border-radius: 18px; box-shadow: var(--shadow); font-size: 14px; line-height: 1.25; animation: float 6s ease-in-out infinite; }
.chip strong { display: block; color: var(--petrol); }
.chip small { color: var(--muted); font-size: 12.5px; }
.chip__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--gold-soft); flex: none; }
.chip__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--petrol); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip--a { left: -46px; top: 30%; }
.chip--b { right: -34px; bottom: 9%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }

.creds { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.creds li { padding: 22px 20px 0 0; display: flex; flex-direction: column; gap: 4px; }
.creds li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.creds__k { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--gold); }
.creds__v { font-weight: 700; color: var(--petrol); font-size: 15.5px; line-height: 1.35; }

/* ---------- Spécialités ---------- */
.spe { padding: 120px 0; background: var(--paper); }
.spe__grid { display: grid; grid-template-columns: 300px 1fr 1.15fr; gap: 36px; align-items: start; }
.spe__tabs { display: flex; flex-direction: column; gap: 8px; }
.tab {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px;
  background: transparent; text-align: left; cursor: pointer;
  font-weight: 700; font-size: 15.5px; color: var(--ink);
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.tab:hover { border-color: var(--petrol-2); transform: translateX(4px); }
.tab__n { font-size: 12px; font-weight: 800; color: var(--gold); width: 22px; }
.tab__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--cream); flex: none; transition: background .25s; }
.tab__ico svg { width: 20px; height: 20px; fill: none; stroke: var(--petrol); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab[aria-selected="true"] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.tab[aria-selected="true"] .tab__ico { background: rgba(255, 255, 255, .12); }
.tab[aria-selected="true"] .tab__ico svg { stroke: var(--gold-2); }

.body-map { position: sticky; top: 110px; background: radial-gradient(70% 60% at 50% 40%, #fff, var(--cream)); border-radius: var(--r-lg); padding: 24px 18px 18px; border: 1px solid var(--line); }
.body { width: 100%; max-height: 560px; margin-inline: auto; overflow: visible; }
.body__shape { fill: #fff; stroke: rgba(15, 76, 92, .3); stroke-width: 2; stroke-linejoin: round; }
.body__navel { fill: none; stroke: rgba(15, 76, 92, .35); stroke-width: 2; stroke-linecap: round; }
.organ path, .organ ellipse, .organ circle { fill: rgba(15, 76, 92, .06); stroke: rgba(15, 76, 92, .38); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; transition: fill .5s var(--ease), stroke .5s, opacity .5s; }
.organ--tube path { fill: none; stroke-width: 14; stroke: rgba(15, 76, 92, .12); }
.organ--thin path { stroke-width: 8; }
.organ--tube circle { fill: none; stroke-width: 4; }
.organ--spot circle { fill: none; stroke-dasharray: 3 4; opacity: .5; }
.organ--trocar path { stroke: transparent; stroke-width: 4; }
.organ.is-on path, .organ.is-on ellipse, .organ.is-on circle { fill: url(#gGold); stroke: var(--petrol); }
.organ--tube.is-on path { fill: none; stroke: var(--gold); }
.organ--tube.is-on circle { fill: none; stroke: var(--petrol); }
.organ--spot.is-on circle { fill: rgba(201, 162, 74, .35); stroke: var(--petrol); stroke-dasharray: none; opacity: 1; transform-box: fill-box; transform-origin: center; animation: pulse 1.8s ease-in-out infinite; }
.organ--trocar.is-on path { stroke: var(--petrol); }
.body.is-trocar .organ:not(.organ--trocar) path, .body.is-trocar .organ:not(.organ--trocar) ellipse, .body.is-trocar .organ:not(.organ--trocar) circle { opacity: .6; }
@keyframes pulse { 50% { transform: scale(1.25); } }
.body-map__legend { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.body-map__legend span { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(140deg, var(--gold-2), var(--gold)); border: 1.5px solid var(--petrol); }

.spe__panel { padding: 8px 0 0; }
.spe__panel > * { animation: rise .6s var(--ease) both; }
.spe__panel.is-swap > * { animation: none; }
.spe__num { margin: 0; font-size: 64px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--gold); letter-spacing: -.04em; }
.spe__title { margin: 14px 0 0; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -.025em; color: var(--petrol); font-weight: 800; }
.spe__ar { margin: 8px 0 0; font-size: 19px; color: var(--gold); text-align: left; }
.spe__desc { margin: 18px 0 0; color: var(--ink); font-size: 17px; }
.spe__label { margin: 28px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--petrol-2); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--petrol); }
.spe__when { margin: 0; color: var(--muted); font-size: 16px; padding-left: 16px; border-left: 3px solid var(--gold); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.spe__panel > :nth-child(2) { animation-delay: .04s; } .spe__panel > :nth-child(3) { animation-delay: .08s; }
.spe__panel > :nth-child(4) { animation-delay: .12s; } .spe__panel > :nth-child(6) { animation-delay: .16s; }
.spe__panel > :nth-child(8) { animation-delay: .2s; }

/* ---------- Cœlioscopie ---------- */
.coelio { position: relative; padding: 120px 0; background: var(--deep); color: #CFE0E4; overflow: hidden; isolation: isolate; }
.coelio::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../assets/img/ai-bloc.webp") center / cover; opacity: .14; filter: saturate(.6); }
.coelio::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--deep) 35%, rgba(8, 39, 49, .7)); }
.coelio__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.coelio__lead { margin: 24px 0 0; font-size: 18px; max-width: 560px; }
.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 34px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.switch button { position: relative; z-index: 1; padding: 11px 22px; border: 0; background: none; cursor: pointer; font-weight: 700; font-size: 15px; color: #CFE0E4; transition: color .3s; }
.switch button.is-on { color: var(--deep); }
.switch__pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--gold); transition: transform .45s var(--ease); }
.switch.is-open .switch__pill { transform: translateX(100%); }
.bens { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bens li { padding: 18px 18px 16px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background .4s, border-color .4s; }
.bens strong { display: block; color: #fff; font-size: 16px; line-height: 1.3; }
.bens span { display: block; margin-top: 4px; font-size: 14px; color: #9DB8BF; }
.coelio.is-open .bens li { background: rgba(255, 255, 255, .02); border-color: rgba(255, 255, 255, .06); }
.coelio.is-open .bens strong { color: #9DB8BF; }
.note { margin: 22px 0 0; font-size: 13.5px; color: #86A3AA; max-width: 560px; }

.coelio__visual { display: grid; gap: 22px; }
.belly { position: relative; border-radius: var(--r-lg); background: radial-gradient(70% 70% at 50% 40%, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .1); padding: 26px 26px 18px; }
.belly svg { width: min(270px, 70%); margin-inline: auto; }
.belly__skin { fill: url(#gSkin); stroke: none; }
.belly__rib { fill: none; stroke: rgba(120, 90, 60, .16); stroke-width: 2; stroke-linecap: round; }
.belly__navel { fill: rgba(15, 76, 92, .3); }
.cuts path { fill: none; stroke: #A9472F; stroke-width: 4.5; stroke-linecap: round; transition: stroke-dashoffset .9s var(--ease), opacity .5s; }
.cuts--open path { stroke-dasharray: 240; stroke-dashoffset: 240; opacity: 0; }
.cuts--open .stitch { stroke-width: 2; stroke: rgba(181, 82, 59, .7); }
.cuts--coelio path { stroke-dasharray: 14; stroke-dashoffset: 0; }
.cam circle { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 4 5; transform-box: fill-box; transform-origin: center; animation: spin 10s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.belly.is-open .cuts--open path { stroke-dashoffset: 0; opacity: 1; }
.belly.is-open .cuts--coelio { opacity: 0; }
.cuts--coelio { transition: opacity .5s; }
.belly__cap { margin: 10px 0 0; text-align: center; font-weight: 700; color: var(--gold-2); }
.coelio__photo { margin: 0; border-radius: var(--r); overflow: hidden; position: relative; }
.coelio__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 45%; }
.coelio__photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 12px; font-size: 13.5px; color: #fff; background: linear-gradient(transparent, rgba(8, 39, 49, .85)); }

/* ---------- Cabinet ---------- */
.cab { padding: 120px 0; }
.cab__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 16px; }
.tile { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--sand); cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; flex-direction: column; padding: 10px 14px; border-radius: 14px; background: rgba(255, 253, 249, .92); backdrop-filter: blur(6px); font-size: 13px; color: var(--muted); line-height: 1.3; transform: translateY(6px); opacity: .96; transition: transform .4s var(--ease); width: max-content; max-width: calc(100% - 24px); }
.tile figcaption b { color: var(--petrol); font-size: 14.5px; }
.tile:hover figcaption { transform: none; }
.tile--wide { grid-column: span 2; }
.tile--video { grid-row: span 2; background: var(--petrol); cursor: default; display: grid; place-items: center; padding: 18px; background: linear-gradient(160deg, var(--petrol), var(--deep)); }
.phone { position: relative; width: min(230px, 100%); aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden; border: 6px solid #0A1E25; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); background: #000; }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.phone__badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px; font-weight: 700; backdrop-filter: blur(4px); }
.rec { width: 7px; height: 7px; border-radius: 50%; background: #F87171; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- Docteur ---------- */
.doc { padding: 120px 0; background: var(--paper); }
.doc__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.doc__media { position: relative; }
.doc__portrait { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.doc__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.doc__video { position: absolute; right: -36px; bottom: -40px; width: 180px; aspect-ratio: 9 / 14; padding: 0; border: 5px solid var(--paper); border-radius: 22px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow); background: var(--deep); transition: transform .35s var(--ease); }
.doc__video:hover { transform: translateY(-6px) rotate(-1.5deg); }
.doc__video img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.play { position: absolute; top: 38%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(201, 162, 74, .6); animation: ring 2.2s infinite; }
.play svg { width: 22px; fill: var(--deep); margin-left: 3px; }
@keyframes ring { 70% { box-shadow: 0 0 0 16px rgba(201, 162, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 162, 74, 0); } }
.doc__video-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 12px; background: linear-gradient(transparent, rgba(8, 39, 49, .92)); color: #fff; font-weight: 700; font-size: 13.5px; text-align: left; line-height: 1.25; }
.doc__video-cap small { display: block; font-weight: 500; color: var(--gold-2); font-size: 12px; }
.doc__lead { margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.timeline { list-style: none; margin: 40px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--line)); }
.timeline li { position: relative; padding: 0 0 26px 40px; display: flex; flex-direction: column; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--gold); }
.timeline li.is-now::before { background: var(--petrol); border-color: var(--petrol); box-shadow: 0 0 0 5px rgba(15, 76, 92, .15); }
.timeline__k { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.timeline strong { color: var(--petrol); font-size: 17px; line-height: 1.35; }
.timeline [lang="ar"], .timeline li > span:last-child { color: var(--muted); font-size: 15px; }
.timeline [lang="ar"] { text-align: left; }

/* ---------- Parcours ---------- */
.steps { padding: 120px 0; }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 28px 24px 26px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 50px; right: -18px; width: 18px; height: 2px; background: var(--gold); }
.step__n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--petrol); color: var(--gold-2); font-weight: 800; font-size: 18px; }
.step h3 { margin: 20px 0 8px; font-size: 20px; color: var(--petrol); letter-spacing: -.01em; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }
.steps__band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-top: 18px; }
.steps__band figure { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; height: 300px; }
.steps__band img { width: 100%; height: 100%; object-fit: cover; }
.steps__band figcaption { position: absolute; right: 12px; bottom: 10px; font-size: 11px; color: rgba(255, 255, 255, .8); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Avis ---------- */
.avis { padding: 110px 0; background: var(--petrol); color: #fff; overflow: hidden; }
.avis__grid { display: grid; grid-template-columns: 320px 1fr; gap: 60px; align-items: center; }
.big { margin: 0; font-size: 110px; font-weight: 800; line-height: .9; letter-spacing: -.05em; color: #fff; }
.big span { font-size: 36px; color: var(--gold-2); letter-spacing: 0; }
.avis__stars { margin: 14px 0 0; color: var(--gold-2); font-size: 24px; letter-spacing: 4px; }
.avis__count { margin: 6px 0 26px; color: #B9D0D5; }
.avis__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.quote { flex: 0 0 min(380px, 82%); scroll-snap-align: start; margin: 0; padding: 30px 28px; border-radius: var(--r); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.quote p { margin: 0; font-size: 17px; line-height: 1.55; color: #EAF2F4; }
.quote p::before { content: "★★★★★"; display: block; margin-bottom: 14px; color: var(--gold-2); letter-spacing: 3px; font-size: 14px; }
.quote footer { font-size: 14px; font-weight: 700; color: var(--gold-2); }

/* ---------- FAQ ---------- */
.faq { padding: 120px 0; background: var(--paper); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.faq .head { position: sticky; top: 120px; margin: 0; }
.faq .head .btn { margin-top: 28px; }
.faq__list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; font-weight: 700; font-size: 18px; color: var(--petrol); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C5C' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .35s var(--ease), background-color .3s; }
details[open] summary::after { transform: rotate(45deg); background-color: var(--gold-soft); }
details p { margin: -6px 0 24px; color: var(--muted); max-width: 640px; }
details a { color: var(--petrol); font-weight: 700; }

/* ---------- Contact ---------- */
.contact { padding: 120px 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: stretch; }
.contact__card { padding: 44px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
address { margin: 26px 0 0; font-style: normal; line-height: 1.6; }
address strong { display: block; color: var(--petrol); font-size: 18px; margin-bottom: 4px; }
.contact__ar { display: block; margin-top: 10px; font-size: 16px; color: var(--muted); }
.hours { width: 100%; margin-top: 28px; border-collapse: collapse; font-size: 15.5px; }
.hours th, .hours td { padding: 9px 12px; text-align: left; border-bottom: 1px dashed var(--line); }
.hours th { font-weight: 600; color: var(--ink); }
.hours td { text-align: right; color: var(--muted); }
.hours tr.is-today { background: var(--gold-soft); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--petrol); font-weight: 800; border-color: transparent; }
.hours tr.is-today th::after { content: "Aujourd'hui"; margin-left: 10px; padding: 2px 8px; border-radius: 999px; background: var(--petrol); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 2px; }
.contact__actions { display: grid; gap: 10px; margin-top: 28px; }
.cta-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 16px; background: var(--cream); text-decoration: none; transition: background .25s, transform .25s var(--ease); }
.cta-line span { font-size: 14px; color: var(--muted); font-weight: 600; }
.cta-line b { color: var(--petrol); font-size: 16px; word-break: break-all; text-align: right; }
.cta-line:hover { background: var(--gold-soft); transform: translateX(4px); }
.contact__map { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 520px; background: var(--sand); }
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85) contrast(1.02); }
.contact__go { position: absolute; left: 20px; bottom: 20px; }

/* ---------- Footer ---------- */
.foot { background: var(--sand); padding: 70px 0 110px; }
.foot__in { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 50px; align-items: center; }
.foot__logo { width: 200px; mix-blend-mode: multiply; }
.foot__t { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.foot__col p:not(.foot__t) { margin: 0; color: var(--petrol); font-weight: 600; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(15, 76, 92, .22); text-decoration: none; font-weight: 700; font-size: 14px; color: var(--petrol); transition: background .25s, color .25s; }
.socials a:hover { background: var(--petrol); color: #fff; }
.foot__legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(15, 76, 92, .15); display: flex; justify-content: space-between; gap: 30px; font-size: 13px; color: var(--muted); }
.foot__legal p { margin: 0; }

/* ---------- Dock mobile ---------- */
.dock { display: none; }

/* ---------- Lightbox ---------- */
.lb { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--r); background: #000; overflow: visible; }
.lb::backdrop { background: rgba(8, 39, 49, .85); backdrop-filter: blur(6px); }
.lb__body img, .lb__body video { width: 100%; max-height: 88vh; object-fit: contain; border-radius: var(--r); }
.lb--video { width: min(420px, 92vw); }
.lb__close { position: absolute; top: -18px; right: -18px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gold); color: var(--deep); font-size: 26px; line-height: 1; cursor: pointer; }

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1120px) {
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 14px; }
  .spe__grid { grid-template-columns: 1fr 1fr; }
  .spe__tabs { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .tab { width: auto; flex: 1 1 calc(33.333% - 8px); }
  .tab:hover { transform: translateY(-2px); }
  .chip--a { left: -20px; }
  .chip--b { right: -10px; }
}

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .nav.is-open .nav__links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 20px 20px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(8, 39, 49, .35); }
  .nav.is-open .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav.is-open .nav__links a::after { display: none; }
  .topbar__addr { display: none; }

  .hero { padding-top: 36px; }
  .hero__grid { grid-template-columns: 1fr; gap: 50px; }
  .hero__visual { width: min(400px, 86%); }
  .creds { grid-template-columns: 1fr 1fr; gap: 0; }
  .creds li:nth-child(3) { padding-left: 0; border-left: 0; }
  .creds li { padding-bottom: 20px; }

  .head--split { grid-template-columns: 1fr; gap: 0; }
  .head--split .head__lead { margin-top: 20px; }
  .coelio__grid, .doc__grid, .faq__grid, .contact__grid, .avis__grid { grid-template-columns: 1fr; gap: 50px; }
  .faq .head { position: static; }
  .doc__media { max-width: 460px; }
  .doc__video { right: -10px; }
  .cab__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .tile--video { grid-row: span 2; }
  .steps__list { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .foot__in { grid-template-columns: 1fr; gap: 30px; }
  .foot__legal { flex-direction: column; gap: 10px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .topbar__in { justify-content: space-between; font-size: 12.5px; }
  .nav__in { min-height: 66px; }
  .brand__mark { width: 34px; }
  .brand__txt strong { font-size: 16px; }
  .hero__title { font-size: clamp(36px, 10.5vw, 48px); }
  .hero__ar { font-size: 17px; }
  .hero__lead { font-size: 17px; }
  .hero__ctas .btn { width: 100%; }
  .chip { padding: 9px 12px 9px 9px; font-size: 13px; }
  .chip__icon { width: 32px; height: 32px; }
  .chip--a { left: -14px; top: 16%; }
  .chip--b { right: -14px; bottom: 6%; }
  .creds { grid-template-columns: 1fr; margin-top: 44px; }
  .creds li, .creds li + li { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); flex-direction: row; justify-content: space-between; gap: 16px; }
  .creds__v { text-align: right; }

  .spe, .coelio, .cab, .doc, .steps, .faq, .contact { padding: 80px 0; }
  .avis { padding: 80px 0; }
  .head { margin-bottom: 36px; }
  .spe__grid { grid-template-columns: 1fr; gap: 24px; }
  .spe__tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .spe__tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; scroll-snap-align: start; padding: 11px 14px; font-size: 14.5px; }
  .tab__n { display: none; }
  .body-map { position: relative; top: 0; padding: 14px; display: grid; grid-template-columns: 1fr; }
  .body { max-height: 330px; }
  .spe__num { font-size: 46px; }

  .bens { grid-template-columns: 1fr; }
  .switch { display: grid; width: 100%; }
  .switch button { padding: 11px 10px; }
  .belly { padding: 18px 16px 14px; }

  .cab__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 10px; }
  .tile--video { grid-column: 1 / -1; grid-row: span 3; }
  .tile figcaption { left: 8px; bottom: 8px; padding: 7px 10px; font-size: 11.5px; max-width: calc(100% - 16px); }
  .tile figcaption b { font-size: 13px; }

  .doc__video { width: 130px; right: -6px; bottom: -30px; }
  .steps__list { grid-template-columns: 1fr; }
  .steps__band { grid-template-columns: 1fr; }
  .steps__band figure { height: 220px; }
  .big { font-size: 86px; }
  .contact__card { padding: 28px 22px; }
  .contact__map { min-height: 380px; }
  .hours th, .hours td { padding: 9px 6px; }

  .dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 6px; padding: 6px; border-radius: 20px; background: rgba(8, 39, 49, .92); backdrop-filter: blur(10px); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .5); transform: translateY(140%); transition: transform .45s var(--ease); }
  .dock.is-shown { transform: none; }
  .dock a { display: grid; place-items: center; min-height: 48px; border-radius: 15px; text-decoration: none; color: #fff; font-weight: 700; font-size: 14.5px; }
  .dock .dock__main { background: var(--gold); color: var(--deep); }
}

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

/* ---------- Sélecteur de langue ---------- */
.topbar__end { display: flex; align-items: center; gap: 14px; }
.lang { padding: 2px 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; color: #fff; font-weight: 700; text-decoration: none; transition: background .25s, color .25s; }
.lang:hover { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.lang[lang="ar"] { font-family: var(--ar); font-size: 14.5px; }
.lang[lang="fr"] { font-family: var(--font); }

/* ==========================================================
   Version arabe (droite à gauche)
   ========================================================== */
[dir="rtl"] body { font-family: var(--ar); line-height: 1.8; }
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; }
[dir="rtl"] [lang="fr"] { font-family: var(--font); }
[dir="rtl"] .hero__title { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.28; }
[dir="rtl"] .h2 { line-height: 1.32; }
[dir="rtl"] .spe__title { line-height: 1.4; }
[dir="rtl"] .eyebrow { font-size: 15px; text-transform: none; }
[dir="rtl"] .spe__label, [dir="rtl"] .timeline__k, [dir="rtl"] .creds__k, [dir="rtl"] .foot__t { font-size: 14px; text-transform: none; }
[dir="rtl"] .brand__txt small { font-size: 13.5px; }
[dir="rtl"] .hl::after { transform-origin: right; bottom: .14em; }
[dir="rtl"] .brand { margin-right: 0; margin-left: auto; }
[dir="rtl"] .hero__ar, [dir="rtl"] .spe__ar, [dir="rtl"] .timeline [lang] { text-align: right; }
[dir="rtl"] .creds li { padding: 22px 0 0 20px; }
[dir="rtl"] .creds li + li { padding-left: 20px; padding-right: 20px; border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .tab { text-align: right; }
[dir="rtl"] .tab:hover { transform: translateX(-4px); }
[dir="rtl"] .spe__when { padding-left: 0; padding-right: 16px; border-left: 0; border-right: 3px solid var(--gold); }
[dir="rtl"] .switch__pill { left: auto; right: 5px; }
[dir="rtl"] .switch.is-open .switch__pill { transform: translateX(-100%); }
[dir="rtl"] .coelio::after { background: linear-gradient(260deg, var(--deep) 35%, rgba(8, 39, 49, .7)); }
[dir="rtl"] .phone__badge { left: auto; right: 10px; }
[dir="rtl"] .doc__video { right: auto; left: -36px; }
[dir="rtl"] .doc__video:hover { transform: translateY(-6px) rotate(1.5deg); }
[dir="rtl"] .doc__video-cap { text-align: right; }
[dir="rtl"] .timeline::before { left: auto; right: 7px; }
[dir="rtl"] .timeline li { padding: 0 40px 26px 0; }
[dir="rtl"] .timeline li::before { left: auto; right: 0; }
[dir="rtl"] .step:not(:last-child)::after { right: auto; left: -18px; }
[dir="rtl"] .steps__band figcaption { right: auto; left: 12px; }
[dir="rtl"] .avis__track { mask-image: linear-gradient(270deg, #000 85%, transparent); }
[dir="rtl"] .quote p { text-align: left; }
[dir="rtl"] .hours th { text-align: right; }
[dir="rtl"] .hours td { text-align: left; }
[dir="rtl"] .hours tr.is-today th::after { content: "اليوم"; margin-left: 0; margin-right: 10px; }
[dir="rtl"] .cta-line b { text-align: left; }
[dir="rtl"] .cta-line:hover { transform: translateX(-4px); }
[dir="rtl"] .contact__go { left: auto; right: 20px; }
[dir="rtl"] .contact__fr { display: block; margin-top: 10px; font-size: 14.5px; color: var(--muted); }

@media (max-width: 1120px) {
  [dir="rtl"] .tab:hover { transform: translateY(-2px); }
}
@media (max-width: 960px) {
  [dir="rtl"] .creds li:nth-child(3) { padding-right: 0; border-right: 0; }
  [dir="rtl"] .doc__video { left: -10px; }
}
@media (max-width: 640px) {
  [dir="rtl"] .hero__title { font-size: clamp(34px, 10vw, 46px); }
  [dir="rtl"] .creds li, [dir="rtl"] .creds li + li { padding: 16px 0; border-right: 0; }
  [dir="rtl"] .creds__v { text-align: left; }
  [dir="rtl"] .doc__video { left: -6px; }
}
.topbar__tel, .lang { white-space: nowrap; }
@media (max-width: 640px) {
  .topbar__tel { display: none; }
}

/* ==========================================================
   Voyage digestif : animation pilotée par le défilement
   ========================================================== */
.voyage { position: relative; height: 480vh; background: var(--deep); color: #CFE0E4; }
.voyage__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; align-items: center; padding-top: 70px;
  background:
    radial-gradient(45% 55% at 72% 50%, rgba(22, 104, 122, .45), transparent 70%),
    radial-gradient(35% 40% at 20% 85%, rgba(201, 162, 74, .1), transparent 70%);
}
.voyage__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; width: min(1220px, 100% - 40px); }
.voyage__copy .h2 { font-size: clamp(30px, 3.3vw, 44px); }
.voyage__lead { margin: 20px 0 0; font-size: 17.5px; max-width: 480px; color: #A9C3C9; }
.voyage__steps { position: relative; min-height: 250px; margin-top: 34px; max-width: 520px; }
.vstep { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); pointer-events: none; }
.vstep.is-on { opacity: 1; transform: none; pointer-events: auto; }
.vstep__n { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--gold-2); }
.vstep__organ { display: block; margin-top: 8px; font-size: 14px; font-weight: 700; color: #86A3AA; text-transform: uppercase; letter-spacing: .12em; }
.vstep h3 { margin: 6px 0 10px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; color: #fff; letter-spacing: -.02em; }
.vstep p { margin: 0; font-size: 16.5px; color: #CFE0E4; }
.vstep__tag { display: inline-flex; margin-top: 16px; padding: 7px 14px; border-radius: 999px; background: rgba(201, 162, 74, .14); border: 1px solid rgba(201, 162, 74, .35); color: var(--gold-2); font-size: 13.5px; font-weight: 700; }
.voyage__hud { display: flex; align-items: center; gap: 14px; margin-top: 18px; max-width: 520px; font-size: 14px; color: #86A3AA; font-variant-numeric: tabular-nums; }
.voyage__meters b { color: #fff; font-size: 22px; font-weight: 800; }
.voyage__bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.voyage__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transform: scaleX(0); transform-origin: left; }
.voyage__skip { display: inline-block; margin-top: 22px; font-size: 13.5px; color: #86A3AA; }
.voyage__skip:hover { color: #fff; }

.voyage__visual { display: grid; place-items: center; }
.tract { height: min(80vh, 660px); width: auto; overflow: visible; direction: ltr; }
.ctx { fill: rgba(255, 255, 255, .03); stroke: rgba(160, 205, 215, .22); stroke-width: 1.5; transition: fill .6s var(--ease), stroke .6s; }
.ctx--line { fill: none; stroke-width: 5; stroke-linecap: round; }
.ctx.is-lit { fill: rgba(201, 162, 74, .22); stroke: var(--gold-2); }
.ctx--line.is-lit { fill: none; }
.tract__base, .tract__line, .tract__flow, .tract__trail, .tract__glow { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tract__base { stroke: rgba(255, 255, 255, .06); stroke-width: 20; }
.tract__line { stroke: rgba(160, 205, 215, .4); stroke-width: 2.5; }
.tract__flow { stroke: rgba(227, 199, 126, .45); stroke-width: 2.5; stroke-dasharray: 1.5 16; animation: vflow 1.4s linear infinite; }
@keyframes vflow { to { stroke-dashoffset: -17.5; } }
.tract__trail { stroke: var(--gold-2); stroke-width: 6; }
.tract__glow { stroke: rgba(227, 199, 126, .2); stroke-width: 18; }
.voyage:not(.is-live) .tract__flow, .voyage:not(.is-live) .bolus__halo { animation-play-state: paused; }
.bolus__halo { fill: rgba(227, 199, 126, .22); animation: vpulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bolus__core { fill: #fff; }
@keyframes vpulse { 50% { transform: scale(1.45); opacity: .5; } }
.vpin circle { fill: var(--deep); stroke: rgba(160, 205, 215, .4); stroke-width: 2; transition: fill .4s, stroke .4s; }
.vpin text { fill: #86A3AA; font: 700 13px var(--font); opacity: .55; transition: opacity .4s, fill .4s; }
[lang="ar"] .vpin text { font-family: var(--ar); font-size: 15px; }
.vpin line { stroke: rgba(160, 205, 215, .25); stroke-width: 1; }
.vpin.is-on circle { fill: var(--gold); stroke: var(--gold-2); }
.vpin.is-on text { fill: #fff; opacity: 1; }

[dir="rtl"] .voyage__bar i { transform-origin: right; }

@media (max-width: 960px) {
  .voyage { height: 520vh; }
  .voyage__stage { align-items: stretch; padding: 76px 0 92px; }
  .voyage__grid { grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 6px; align-content: space-between; height: 100%; }
  .voyage__visual { order: -1; }
  .tract { height: 40svh; }
  .voyage__copy .eyebrow, .voyage__lead, .voyage__skip { display: none; }
  .voyage__copy .h2 { font-size: 24px; }
  .voyage__steps { margin-top: 12px; min-height: 236px; }
  .vstep h3 { font-size: 22px; margin-bottom: 6px; }
  .vstep p { font-size: 15px; }
  .vstep__tag { margin-top: 10px; }
  .voyage__hud { margin-top: 4px; }
}
@media (max-width: 640px) {
  .tract { height: 36svh; }
  .voyage__stage { padding-top: 70px; }
  .voyage__copy .h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .tract__flow, .bolus__halo { animation: none; }
}

/* ---------- Mobile : effets allégés pour rester fluide ---------- */
@media (hover: hover) and (min-width: 961px) {
  .tract__trail, .bolus__core { filter: url(#vGlow); }
}
@media (max-width: 960px) {
  .nav { background: rgba(247, 243, 236, .97); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .chip, .tile figcaption, .phone__badge, .dock { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tile figcaption { background: rgba(255, 253, 249, .97); }
  .dock { background: rgba(8, 39, 49, .97); }
  .bolus { will-change: transform; }
}

/* ==========================================================
   Chargement : logo qui se dessine
   ========================================================== */
.loader { position: fixed; inset: 0; z-index: 300; display: grid; place-content: center; justify-items: center; background: var(--cream); transition: opacity .6s var(--ease), visibility .6s; animation: loaderOut .5s 4.5s forwards; }
.loader.is-done { opacity: 0; visibility: hidden; }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }
.loader__mark { width: 96px; height: auto; overflow: visible; }
.loader__line { fill: none; stroke: var(--petrol); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: ldraw 1.1s .1s var(--ease) forwards; }
.loader__line--in { stroke-width: 4; stroke-dasharray: 60; stroke-dashoffset: 60; animation-delay: .6s; }
.loader__ring { fill: none; stroke: var(--petrol); stroke-width: 3; opacity: 0; animation: lfade .4s .95s forwards; }
.loader__leaf { fill: var(--gold); opacity: 0; transform: scale(.55); transform-box: fill-box; transform-origin: 50% 85%; animation: lleaf .8s .45s var(--ease) forwards; }
.loader__name { margin: 20px 0 0; font-size: 24px; font-weight: 600; color: var(--petrol); opacity: 0; transform: translateY(8px); animation: lup .6s .9s var(--ease) forwards; }
.loader__name b { font-weight: 800; }
.loader__spe { margin: 2px 0 0; font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); opacity: 0; animation: lup .6s 1.05s var(--ease) forwards; }
.loader__bar { display: block; width: 120px; height: 2px; margin-top: 18px; border-radius: 2px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; animation: lbar 1.4s .1s var(--ease) forwards; }
[dir="rtl"] .loader__bar i { transform-origin: right; }
[dir="rtl"] .loader__spe { font-size: 15px; text-transform: none; }
[dir="rtl"] .loader__name { font-size: 26px; }
@keyframes ldraw { to { stroke-dashoffset: 0; } }
@keyframes lfade { to { opacity: 1; } }
@keyframes lleaf { to { opacity: 1; transform: none; } }
@keyframes lup { to { opacity: 1; transform: none; } }
@keyframes lbar { to { transform: none; } }
/* Le hero démarre juste après le chargement */
.hero__portrait img { animation-delay: 1.3s; }
.halo::before { animation-delay: 1.3s; }
.halo::after { animation-delay: 1.45s; }
.hl::after { animation-delay: 1.8s; }
@media (prefers-reduced-motion: reduce) {
  .loader__line { stroke-dashoffset: 0; }
  .loader__leaf, .loader__ring, .loader__name, .loader__spe { opacity: 1; transform: none; }
  .loader__bar i { transform: none; }
}

/* ==========================================================
   Mobile : la photo du docteur d'abord, visage dégagé
   ========================================================== */
@media (max-width: 960px) {
  .hero { padding-top: 22px; }
  .hero__grid { gap: 30px; }
  .hero__visual { order: -1; width: min(340px, 80%); }
  .chip--a { left: -12px; top: auto; bottom: 24%; }
  .chip--b { right: -12px; bottom: 5%; }
}
@media (max-width: 640px) {
  .chip--a { left: -10px; top: auto; bottom: 23%; }
  .chip--b { right: -10px; bottom: 4%; }
}

/* ==========================================================
   Mobile : voyage digestif plein écran, caméra qui suit la bille
   ========================================================== */
@media (max-width: 960px) {
  .voyage { height: 600vh; }
  .voyage__stage { padding: 66px 0 14px; align-items: stretch; }
  .voyage__grid { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; height: 100%; }
  .voyage__visual { order: 0; flex: 1 1 auto; min-height: 0; width: 100%; display: block; position: relative; }
  .tract { position: absolute; inset: 0; width: 100%; height: 100%; }
  .voyage__copy { order: 1; flex: none; margin: 0 16px; padding: 14px 16px 12px; border-radius: 20px; background: rgba(8, 39, 49, .85); border: 1px solid rgba(255, 255, 255, .1); }
  .voyage__copy .eyebrow { display: inline-flex; margin: 0 0 6px; font-size: 11.5px; }
  .voyage__copy .h2, .voyage__lead, .voyage__skip { display: none; }
  .voyage__steps { margin-top: 0; min-height: 0; height: 200px; max-width: none; }
  .vstep__n { font-size: 12px; }
  .vstep__organ { margin-top: 2px; font-size: 12px; }
  .vstep h3 { margin: 2px 0 6px; font-size: 21px; }
  .vstep p { font-size: 14.5px; line-height: 1.5; }
  .vstep__tag { margin-top: 8px; padding: 5px 11px; font-size: 12.5px; }
  .voyage__hud { margin-top: 8px; max-width: none; }
  .voyage__meters b { font-size: 20px; }
  .vpin text { font-size: 14px; }
  [lang="ar"] .vpin text { font-size: 16px; }
  [dir="rtl"] .voyage__steps { height: 222px; }
  [dir="rtl"] .vstep p { line-height: 1.65; }
}
@media (max-width: 960px) {
  .voyage__visual, .tract { overflow: hidden; }
}
/* Petits écrans (iPhone SE, Android compacts) : carte plus compacte */
@media (max-width: 960px) and (max-height: 720px) {
  .voyage__copy { padding: 10px 14px 10px; }
  .voyage__copy .eyebrow { display: none; }
  .voyage__steps { height: 172px; }
  [dir="rtl"] .voyage__steps { height: 190px; }
  .vstep h3 { font-size: 19px; }
  .vstep p { font-size: 13.5px; line-height: 1.45; }
  .vstep__tag { margin-top: 6px; }
  .voyage__hud { margin-top: 4px; }
}
