/* MSIT One Pharmacie — version arabe (RTL), design dynamique */
:root {
  --navy: #0b1f33;
  --navy-2: #12304d;
  --ink: #0f2a44;
  --ink-2: #354a5f;
  --muted: #687a8c;
  --line: #e6e8ec;
  --line-2: #d7dbe1;
  --soft: #f5f7f9;
  --white: #fff;
  --green: #17944e;
  --green-d: #0f7a3f;
  --mint: #6fe0a0;
  --green-soft: #e5f5ec;
  --orange: #f0952f;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 31, 51, .06), 0 18px 40px -18px rgba(11, 31, 51, .25);
  --font: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
  --latin: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16.5px/1.85 var(--font); color: var(--ink-2); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-d); }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.35; }
h2 { font-size: clamp(28px, 3.3vw, 42px); }
h3 { font-size: 20px; }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; top: -100px; inset-inline-start: 16px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 16px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: 700 15.5px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 10px 24px -10px rgba(23, 148, 78, .7); }
.btn-green:hover { background: var(--green-d); box-shadow: 0 16px 30px -12px rgba(23, 148, 78, .8); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .1); }
.btn-ghost svg { color: #25d366; }

/* ---------- En-tête ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.top.is-scrolled { background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 104px; }
.brand-dark { display: none; }
.top.is-scrolled .brand-dark { display: block; }
.top.is-scrolled .brand-light { display: none; }
.brand-sub { font: 600 15px var(--latin); color: rgba(255, 255, 255, .7); padding-inline-start: 12px; border-inline-start: 1px solid rgba(255, 255, 255, .25); }
.brand-sub b { color: #fff; font-weight: 800; }
.top.is-scrolled .brand-sub { color: var(--muted); border-color: var(--line-2); }
.top.is-scrolled .brand-sub b { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 600; font-size: 15px; position: relative; }
.nav a:not(.btn):not(.nav-lang)::after { content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 2px; background: var(--mint); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.top.is-scrolled .nav a:not(.btn) { color: var(--ink-2); }
.nav .nav-lang { font: 800 13px var(--latin); padding: 3px 9px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 7px; }
.top.is-scrolled .nav .nav-lang { border-color: var(--line-2); }
.burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; position: relative; cursor: pointer; }
.burger span { position: absolute; inset-inline: 12px; height: 2px; background: #fff; transition: transform .25s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.top.is-scrolled .burger { border-color: var(--line-2); }
.top.is-scrolled .burger span { background: var(--ink); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Fond animé ---------- */
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.g1 { width: 560px; height: 560px; background: #1a8a52; top: -180px; inset-inline-end: -120px; animation: drift1 18s ease-in-out infinite alternate; }
.g2 { width: 460px; height: 460px; background: #1d4f80; bottom: -200px; inset-inline-start: -100px; animation: drift2 22s ease-in-out infinite alternate; }
.grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
@keyframes drift1 { to { transform: translate(-120px, 80px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(140px, -60px) scale(1.1); } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: #c6d3e0; padding: 140px 0 0; overflow: hidden; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding-bottom: 72px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 8px; border-radius: 99px;
  background: rgba(111, 224, 160, .12); border: 1px solid rgba(111, 224, 160, .35);
  color: #d9fbe8; font-weight: 600; font-size: 14.5px;
}
.badge-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: var(--mint); }
.badge-ico svg path:first-child { fill: var(--mint); }
.hero h1 { color: #fff; font-size: clamp(36px, 5vw, 64px); line-height: 1.3; margin-top: 22px; }
.rotator { position: relative; display: inline-grid; color: var(--mint); }
.rotator span { grid-area: 1 / 1; opacity: 0; transform: translateY(60%); transition: opacity .5s var(--ease), transform .5s var(--ease); white-space: nowrap; }
.rotator span.is-on { opacity: 1; transform: none; }
.rotator span.is-out { opacity: 0; transform: translateY(-60%); }
.hero-lead { margin-top: 22px; font-size: 18px; line-height: 1.9; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; }
.hero-proof li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: #e3ecf4; }
.hero-proof li::before { content: ""; width: 9px; height: 5px; border-inline-start: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg) translateY(-2px); }

.hero-visual { position: relative; perspective: 1400px; }
.tilt { position: relative; transform-style: preserve-3d; transition: transform .3s ease-out; padding: 24px 0 56px 56px; }
.shot { margin: 0; background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-2); }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #f3f5f7; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6dbe0; }
.shot-bar i:nth-child(1) { background: #f27a6c; }
.shot-bar i:nth-child(2) { background: #f5c04f; }
.shot-bar i:nth-child(3) { background: #5cc87a; }
.shot-bar span { margin-left: 12px; font: 500 12px var(--mono); color: var(--muted); }
.shot-main { border-color: rgba(255, 255, 255, .15); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .6); transform: translateZ(0); }

.float {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px; padding: 12px 16px;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .45);
  transform: translateZ(60px);
}
.float small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.float b { display: block; color: var(--ink); font-size: 15px; line-height: 1.4; }
.f-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex: none; }
.f-ico-green { background: var(--green-soft); color: var(--green); }
.f-ico-orange { background: #fff1e2; color: var(--orange); }
.f-sale { top: 0; inset-inline-end: -18px; animation: bob 6s ease-in-out infinite; }
.f-sale b { font: 800 20px var(--latin); color: var(--green); }
.f-alert { bottom: 18px; inset-inline-end: 22%; animation: bob 7s ease-in-out -2s infinite, slideIn 1s var(--ease) 1.4s both; }
.f-phone { inset-inline-start: 0; bottom: 0; width: 23%; padding: 0; border-radius: 22px; border: 6px solid #0f2034; overflow: hidden; background: #0f2034; animation: bob 8s ease-in-out -4s infinite; }
.f-phone img { border-radius: 16px; }
@keyframes bob { 50% { translate: 0 -10px; } }
@keyframes slideIn { from { opacity: 0; translate: 40px 0; } }

/* Ticker */
.ticker { position: relative; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .18); overflow: hidden; padding: 16px 0; }
.ticker-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.ticker span { font: 500 13px var(--mono); color: #8ea4ba; padding: 0 28px; white-space: nowrap; border-left: 1px solid rgba(255, 255, 255, .1); }
.ticker b { color: var(--mint); font-weight: 500; margin-left: 8px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Entrée du hero */
.rise { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * .12s + .1s); }
@keyframes rise { to { opacity: 1; transform: none; } }

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

/* ---------- Sections ---------- */
.sec { position: relative; padding: 112px 0; }
.sec-soft { background: var(--soft); }
.sec-dark { background: var(--navy); color: #c6d3e0; overflow: hidden; }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.head { max-width: 760px; margin-bottom: 56px; }
.head h2 { margin-top: 12px; }
.head .lead { margin-top: 16px; }
.head-split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; }
.head-split .lead { margin: 0; }
.lead { font-size: 17.5px; color: var(--muted); }
.sec-dark .lead { color: #a9bccd; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 700; color: var(--green); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: var(--mint); }
.note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 28px; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat b { display: block; font: 800 52px/1 var(--latin); color: var(--ink); letter-spacing: -.03em; }
.stat > span { display: block; margin-top: 12px; font-size: 15px; color: var(--muted); line-height: 1.7; }

/* ---------- Bande photo ---------- */
.band { position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden; background: var(--navy); }
.band-img { position: absolute; inset: 0; }
.band-img img { width: 100%; height: 120%; object-fit: cover; object-position: 30% 30%; transform: translateY(var(--py, 0)); will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(11, 31, 51, .94) 0%, rgba(11, 31, 51, .75) 38%, rgba(11, 31, 51, 0) 72%); }
.band-in { position: relative; z-index: 1; padding: 96px 0; }
.band-card { max-width: 520px; color: #c6d3e0; }
.band-card h2 { color: #fff; margin: 12px 0 16px; font-size: clamp(30px, 3.6vw, 46px); }
.band-card p:not(.eyebrow) { font-size: 17.5px; margin-bottom: 28px; }
.band-note { position: absolute; z-index: 1; bottom: 14px; inset-inline-end: 16px; font-size: 12px; color: rgba(255, 255, 255, .7); }

/* ---------- Docteur ---------- */
.doc-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: center; }
.doc h2 { margin-top: 12px; }
.hl { color: var(--green); background: linear-gradient(transparent 62%, rgba(111, 224, 160, .35) 62%); background-size: 0 100%; background-repeat: no-repeat; background-position: right; transition: background-size 1.2s var(--ease) .4s; }
.is-in .hl { background-size: 100% 100%; }
.doc .lead { margin-top: 20px; }
.doc-points { list-style: none; margin: 32px 0 0; padding: 0; }
.doc-points li { display: grid; grid-template-columns: 52px 1fr; padding: 18px 0; border-top: 1px solid var(--line); }
.doc-points li:last-child { border-bottom: 1px solid var(--line); }
.dp-n { font: 500 14px/1.9 var(--mono); color: var(--orange); }
.doc-points b { color: var(--ink); font-size: 17px; }
.doc-points p { color: var(--muted); font-size: 15px; margin-top: 2px; }

.rx {
  position: relative; background: #fff; border: 1px solid var(--line-2); border-radius: 18px;
  padding: 32px; box-shadow: var(--shadow);
  background-image: repeating-linear-gradient(transparent 0 43px, #eef1f4 43px 44px);
  background-position: 0 118px;
}
.rx::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 6px; border-radius: 18px 0 0 18px; background: var(--green); }
[dir="rtl"] .rx::before { border-radius: 0 18px 18px 0; }
.rx-head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.rx-logo { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--ink); color: #fff; font: 800 22px var(--latin); font-style: italic; }
.rx-head b { display: block; color: var(--ink); font-size: 18px; }
.rx-head small { font: 600 13px var(--latin); color: var(--muted); }
.rx-list { list-style: none; counter-reset: rx; margin: 6px 0 0; padding: 0; }
.rx-list li { counter-increment: rx; display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 44px; font-weight: 600; color: var(--ink); }
.rx-list li span::before { content: counter(rx) ". "; font-family: var(--mono); color: var(--green); }
.rx-list em { font-style: normal; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.rx-list li { opacity: 0; transform: translateX(-16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.rx.is-in .rx-list li { opacity: 1; transform: none; }
.rx.is-in .rx-list li:nth-child(1) { transition-delay: .3s; }
.rx.is-in .rx-list li:nth-child(2) { transition-delay: .45s; }
.rx.is-in .rx-list li:nth-child(3) { transition-delay: .6s; }
.rx.is-in .rx-list li:nth-child(4) { transition-delay: .75s; }
.rx.is-in .rx-list li:nth-child(5) { transition-delay: .9s; }
.rx-sign { position: relative; display: flex; align-items: center; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.rx-sig { width: 120px; color: var(--navy-2); flex: none; }
.rx-sig path { stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 1.8s ease 1s; }
.rx.is-in .rx-sig path { stroke-dashoffset: 0; }
.rx-sign b { display: block; color: var(--ink); }
.rx-sign small { color: var(--muted); font-size: 13px; }
.rx-stamp {
  position: absolute; inset-inline-end: 0; top: -6px;
  display: grid; place-items: center; text-align: center; width: 92px; height: 92px; border-radius: 50%;
  border: 3px double var(--green); color: var(--green); font-weight: 700; font-size: 13px; line-height: 1.4;
  transform: rotate(-14deg) scale(1.6); opacity: 0; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1) 2.4s, opacity .2s 2.4s;
}
.rx.is-in .rx-stamp { transform: rotate(-14deg) scale(1); opacity: .9; }

/* ---------- Caisse annotée ---------- */
.annotated { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.pins { position: relative; }
.pin {
  position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid #fff; background: var(--orange); color: #fff; font: 700 13px/1 var(--mono); cursor: pointer;
  box-shadow: 0 4px 12px rgba(11, 31, 51, .35);
}
.pin::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--orange); animation: ping 2.2s ease-out infinite; }
.pin.is-on { background: var(--navy); }
.pin.is-on::before { border-color: var(--navy); }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
.notes { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.notes li { counter-increment: n; position: relative; padding: 18px 0; padding-inline-start: 46px; border-top: 1px solid var(--line-2); transition: opacity .2s; }
.notes li:last-child { border-bottom: 1px solid var(--line-2); }
.notes li::before { content: counter(n); position: absolute; inset-inline-start: 0; top: 20px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--mono); color: var(--orange); border: 1.5px solid var(--orange); transition: background .2s, color .2s; }
.notes li.is-on::before { background: var(--navy); border-color: var(--navy); color: #fff; }
.notes.has-focus li:not(.is-on) { opacity: .4; }
.notes b { display: block; color: var(--ink); }
.notes span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }

/* ---------- Story (scroll) ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; }
.story-stage { order: 2; }
.story-sticky { position: sticky; top: 110px; }
.story-progress { height: 3px; background: var(--line); border-radius: 3px; margin-bottom: 18px; overflow: hidden; }
.story-progress span { display: block; height: 100%; width: 20%; background: var(--green); border-radius: 3px; transition: width .5s var(--ease); margin-inline-start: 0; }
.story-imgs { position: relative; aspect-ratio: 16 / 10.4; background: #f3f5f7; }
.story-imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: top center; opacity: 0; transform: scale(.97); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.story-imgs img.is-on { opacity: 1; transform: none; }
.story-steps { padding: 4vh 0 10vh; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .5s; }
.step.is-on { opacity: 1; }
.step h2 { font-size: clamp(26px, 2.6vw, 36px); margin: 12px 0 14px; }
.step > p { font-size: 17px; }
.step-img { display: none; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; }
.ticks li { position: relative; padding: 9px 0; padding-inline-start: 30px; border-top: 1px dashed var(--line-2); font-weight: 600; color: var(--ink); font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 17px; width: 10px; height: 6px; border-inline-start: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.mini-figs { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 32px; margin: 26px 0 0; }
.mini-figs dt { font-size: 13.5px; color: var(--muted); }
.mini-figs dd { margin: 2px 0 0; font: 800 28px var(--latin); color: var(--ink); white-space: nowrap; }
.mini-figs small { font-size: .55em; color: var(--green); }

/* ---------- Rôles ---------- */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.role { margin: 0; }
.role-img { position: relative; aspect-ratio: 7 / 8.4; border-radius: var(--radius); overflow: hidden; background: #e9edf1; }
.role-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.role:hover .role-img img { transform: scale(1.06); }
.role-tag { position: absolute; top: 14px; inset-inline-start: 14px; background: rgba(255, 255, 255, .92); color: var(--ink); font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 99px; backdrop-filter: blur(6px); }
.role figcaption { padding-top: 16px; }
.role b { display: block; color: var(--ink); font-size: 18px; }
.role figcaption > span { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }

/* ---------- Modules ---------- */
.mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mod { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.mod::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.mod:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.mod:hover::after { transform: scaleX(1); }
.mod-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--green-soft); color: var(--green); margin-bottom: 18px; transition: background .3s, color .3s, transform .4s var(--ease); }
.mod-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mod:hover .mod-ico { background: var(--green); color: #fff; transform: rotate(-8deg) scale(1.06); }
.mod h3 { font-size: 18px; }
.mod p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ---------- Journée ---------- */
.day-sec .head { margin-bottom: 64px; }
.day { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; --p: 0; }
.day::before, .day::after { content: ""; position: absolute; inset-inline: 0; top: 11px; height: 2px; background: rgba(255, 255, 255, .12); }
.day::after { background: linear-gradient(to left, var(--mint), var(--green)); transform: scaleX(var(--p)); transform-origin: right; transition: transform .2s linear; }
.day li { position: relative; z-index: 1; padding-top: 44px; padding-inline-end: 20px; }
.day li::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); border: 2px solid var(--mint); box-shadow: 0 0 0 6px rgba(111, 224, 160, .12); }
.day time { font: 500 14px var(--mono); color: var(--mint); }
.day b { display: block; margin-top: 8px; color: #fff; font-size: 17px; }
.day span { display: block; margin-top: 4px; font-size: 14.5px; color: #9fb3c6; }

/* ---------- Confiance ---------- */
.trust { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.trust h2 { margin-top: 12px; }
.trust-photos { position: relative; padding-bottom: 80px; }
.tp { margin: 0; border-radius: 18px; overflow: hidden; background: #e9edf1; }
.tp img { width: 100%; height: 100%; object-fit: cover; }
.tp-big { width: 82%; aspect-ratio: 6 / 7; }
.tp-small { position: absolute; inset-inline-end: 0; bottom: 0; width: 52%; aspect-ratio: 15 / 11; border: 6px solid #fff; box-shadow: var(--shadow); }
.tp-card { position: absolute; top: 28px; inset-inline-end: 4%; background: var(--navy); color: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); animation: bob 7s ease-in-out infinite; }
.tp-card b { display: block; font: 800 20px var(--latin); }
.tp-card span { font-size: 13px; color: #a9bccd; }
.trust-list { list-style: none; margin: 28px 0 0; padding: 0; }
.trust-list li { position: relative; padding: 16px 0; padding-inline-start: 38px; border-top: 1px solid var(--line); }
.trust-list li:last-child { border-bottom: 1px solid var(--line); }
.trust-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 22px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%2317944e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.trust-list li:first-child::before { background-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.trust-list b { display: block; color: var(--ink); font-size: 17px; }
.trust-list span { display: block; color: var(--muted); font-size: 15px; }

/* ---------- Étapes + plan ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.st-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font: 800 18px var(--latin); margin-bottom: 18px; }
.steps b { display: block; color: var(--ink); font-size: 19px; }
.steps p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.plan { margin-top: 28px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; background: var(--navy); color: #a9bccd; border-radius: 20px; padding: 40px 44px; position: relative; overflow: hidden; }
.plan::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: #1a8a52; filter: blur(90px); opacity: .45; inset-inline-start: -120px; top: -160px; }
.plan > * { position: relative; z-index: 1; }
.plan h3 { color: #fff; font-size: 24px; margin: 10px 0 8px; }
.plan .eyebrow { color: var(--mint); }
.plan-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.plan-tel { color: #a9bccd; text-decoration: none; font-size: 14px; }
.plan-tel:hover { color: #fff; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 72px; }
.faq-grid h2 { margin-top: 12px; }
.faq-grid .lead { margin-top: 14px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 20px 0; padding-inline-end: 44px; color: var(--ink); font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; inset-inline-end: 8px; top: 50%; width: 14px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details > div { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq details[open] > div { grid-template-rows: 1fr; }
.faq details > div > p { overflow: hidden; color: var(--muted); padding-inline-end: 44px; }
.faq details[open] > div > p { padding-bottom: 20px; }

/* ---------- Démo ---------- */
.demo-sec { padding: 120px 0; }
.demo { position: relative; display: grid; grid-template-columns: 1fr 460px; gap: 80px; align-items: start; }
.demo h2 { margin: 12px 0 16px; }
.contact { list-style: none; margin: 36px 0 0; padding: 0; }
.contact li { display: grid; grid-template-columns: 110px 1fr; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .12); color: #fff; font-weight: 600; }
.contact li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.contact span { color: #8ea4ba; font-weight: 500; font-size: 14px; }
.contact a { color: #fff; text-decoration: none; }
.contact a:hover { color: var(--mint); }
.form { background: #fff; border-radius: 20px; padding: 34px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.field input, .field select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 11px; background: #fff; font: 500 15.5px var(--font); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(23, 148, 78, .15); }
.field input.is-invalid { border-color: #c2412d; animation: shake .35s; }
@keyframes shake { 25% { translate: 5px 0; } 75% { translate: -5px 0; } }
.form .btn { margin-top: 8px; }
.form-note { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ---------- WhatsApp flottant ---------- */
.wa-float { position: fixed; left: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 28px -6px rgba(10, 80, 40, .55); transition: transform .2s; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: ping 2.4s ease-out infinite; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Pied ---------- */
.foot { padding: 56px 0 28px; border-top: 1px solid var(--line); }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.foot-brand img { width: 110px; }
.foot-brand p { margin-top: 14px; max-width: 360px; font-size: 14.5px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: flex-start; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.foot-links a:hover { color: var(--green); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .rise, .reveal, .rx-list li { opacity: 1 !important; transform: none !important; }
  .rx-sig path { stroke-dashoffset: 0; }
  .rx-stamp { opacity: .9; transform: rotate(-14deg); }
  .hl { background-size: 100% 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .annotated { grid-template-columns: 1fr; }
  .notes { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .notes li:nth-last-child(2) { border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 920px) {
  .burger { display: block; }
  .nav { position: absolute; inset: 76px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: #fff; box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .3); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { color: var(--ink-2) !important; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .nav-lang { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; }
  .nav .btn { margin-top: 16px; height: 48px; }
  .hero { padding-top: 112px; }
  .hero-grid, .doc-grid, .head-split, .trust, .faq-grid, .demo, .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid { padding-bottom: 56px; }
  .tilt { padding: 20px 0 48px 40px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 20px; }
  .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .story-stage { display: none; }
  .story-steps { padding: 0; }
  .step { min-height: 0; opacity: 1; padding: 0 0 64px; }
  .step-img { display: block; margin-top: 24px; border-radius: 12px; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
  .mods { grid-template-columns: 1fr 1fr; }
  .day { grid-template-columns: 1fr; }
  .day::before, .day::after { inset-inline: auto; inset-inline-start: 7px; top: 0; bottom: 0; width: 2px; height: auto; }
  .day::after { transform: scaleY(var(--p)); transform-origin: top; background: linear-gradient(var(--mint), var(--green)); }
  .day li { padding: 0 0 32px; padding-inline-start: 40px; }
  .day li::before { top: 6px; }
  .day b { margin-top: 4px; }
  .steps { grid-template-columns: 1fr; }
  .plan { grid-template-columns: 1fr; padding: 32px 28px; }
  .plan-cta { align-items: flex-start; }
  .sec { padding: 80px 0; }
  .trust-photos { max-width: 560px; }
  .band { min-height: 0; align-items: flex-end; }
  .band-img img { object-position: 25% 20%; }
  .band::after { background: linear-gradient(to top, rgba(11, 31, 51, .96) 0%, rgba(11, 31, 51, .8) 45%, rgba(11, 31, 51, .1) 85%); }
  .band-in { padding: 280px 0 64px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand img { width: 88px; }
  .brand-sub { font-size: 13.5px; padding-inline-start: 10px; }
  .hero-lead { font-size: 16.5px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .tilt { padding: 16px 0 40px 16px; }
  .f-phone { display: none; }
  .f-sale { inset-inline-end: -6px; padding: 9px 12px; }
  .f-sale b { font-size: 17px; }
  .f-alert { inset-inline-end: 4%; bottom: 4px; padding: 9px 12px; }
  .f-alert b { font-size: 13.5px; }
  .f-ico { width: 32px; height: 32px; }
  .shot-bar { height: 26px; }
  .shot-bar span { display: none; }
  .stat b { font-size: 40px; }
  .rx { padding: 24px 20px; }
  .rx-stamp { width: 74px; height: 74px; font-size: 11.5px; }
  .rx-sig { width: 90px; }
  .pin { width: 24px; height: 24px; font-size: 11px; }
  .notes { grid-template-columns: 1fr; }
  .notes li:nth-last-child(2) { border-bottom: 0; }
  .roles { grid-template-columns: 1fr; gap: 28px; }
  .role-img { aspect-ratio: 4 / 3; }
  .mods { grid-template-columns: 1fr; }
  .mini-figs { grid-template-columns: 1fr 1fr; gap: 16px; }
  .mini-figs dd { font-size: 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form { padding: 24px 20px; }
  .contact li { grid-template-columns: 1fr; }
  .wa-float { width: 54px; height: 54px; left: 14px; bottom: 14px; }
}

/* ---------- Formulaire : message et confirmation ---------- */
.form-msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fdecec; color: #8f1d1d; font-size: 14px; font-weight: 600; line-height: 1.5; }
.form .btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.form.is-sent > *:not(.form-done) { display: none; }
.form-done { text-align: center; padding: 28px 8px; outline: none; animation: doneIn .5s ease both; }
.form-done-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e5f5ec; color: #17944e; margin-bottom: 16px; }
.form-done h3 { font-size: 21px; margin-bottom: 8px; }
.form-done p { color: #687a8c; margin-bottom: 22px; }
.form-done .btn-line { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid #d7dbe1; background: #fff; color: #0f2a44; font-weight: 700; cursor: pointer; font-family: inherit; }
@keyframes doneIn { from { opacity: 0; transform: translateY(10px); } }
