/* ==========================================================================
   DR WEB — Design System
   Palette de la charte : navy #0D1B2A / bleu médical #1479FF / cyan #42D7FF
   ========================================================================== */

:root {
  --navy: #0d1b2a;
  --navy-2: #12263a;
  --charcoal: #2b2d42;
  --blue: #1479ff;
  --blue-dark: #0b5ed7;
  --blue-soft: #e8f1ff;
  --cyan: #42d7ff;
  --gray: #f2f5f7;
  --gray-2: #e5ebf1;
  --ink: #14202e;
  --muted: #5b7089;
  --white: #ffffff;

  --ok: #16a34a;
  --warn: #f59e0b;
  --bad: #ef4444;
  --wa: #25d366;

  --grad: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  --grad-navy: linear-gradient(160deg, #0d1b2a 0%, #16304a 100%);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --sh-sm: 0 2px 8px rgba(13, 27, 42, .06);
  --sh: 0 12px 32px rgba(13, 27, 42, .09);
  --sh-lg: 0 28px 70px rgba(13, 27, 42, .16);
  --sh-blue: 0 16px 40px rgba(20, 121, 255, .28);

  --nav-h: 88px;
  --maxw: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: "Cairo", "Segoe UI", system-ui, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body[data-lang="fr"] { font-family: "Manrope", "Segoe UI", system-ui, sans-serif; line-height: 1.65; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(56px, 8vw, 110px) 0; position: relative; }
.section--gray { background: var(--gray); }
.section--navy { background: var(--grad-navy); color: #eaf2fb; }
.section--navy h2, .section--navy h3 { color: #fff; }

.center { text-align: center; }

/* ---------- rythme et séparation des sections ----------
   Chaque section porte : un fond alterné, un filet de séparation,
   et un numéro dans son eyebrow. Impossible de les confondre. */
.section { border-top: 1px solid rgba(13, 27, 42, .06); }
.section--gray, .section--navy, .strip { border-top: none; }
.section--gray + .section--gray { border-top: 1px solid rgba(13, 27, 42, .07); }

/* coin arrondi à l'entrée des blocs sombres : la rupture devient nette */
.section--navy, .wizard {
  border-start-start-radius: 40px;
  border-start-end-radius: 40px;
  margin-top: -1px;
}
@media (max-width: 700px) {
  .section--navy, .wizard { border-start-start-radius: 24px; border-start-end-radius: 24px; }
}
.mt-0 { margin-top: 0; }
.hidden { display: none !important; }

/* ---------- icônes ---------- */
.ico { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.18em; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.btn [data-icon] .ico { width: 1.2em; height: 1.2em; }
[dir="rtl"] .btn [data-icon] .ico[data-flip],
[dir="rtl"] .work__cta .ico { transform: scaleX(-1); }

/* ---------- eyebrow / titres ---------- */
/* numéro de section dans l'eyebrow : « 01 · POURQUOI DR WEB » */
.eyebrow[data-num]::before {
  content: attr(data-num);
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: .72rem; font-weight: 900; letter-spacing: 0;
  margin-inline-end: 2px;
}
.section--navy .eyebrow[data-num]::before,
.wizard .eyebrow[data-num]::before { background: var(--cyan); color: var(--navy); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue);
  background: var(--blue-soft); border-radius: 999px;
  padding: 7px 16px; margin-bottom: 18px;
}
.section--navy .eyebrow { background: rgba(66, 215, 255, .12); color: var(--cyan); }
.lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted); max-width: 68ch; }
.section--navy .lead { color: #a9c2dc; }
.head-center { text-align: center; margin-bottom: clamp(34px, 5vw, 58px); }
.head-center .lead { margin-inline: auto; }
.head-center h2 { position: relative; padding-bottom: 18px; margin-bottom: 18px; }
.head-center h2::after {
  content: ""; position: absolute; inset-block-end: 0; inset-inline-start: 50%;
  transform: translateX(-50%); width: 64px; height: 4px; border-radius: 4px;
  background: var(--grad);
}
[dir="rtl"] .head-center h2::after { transform: translateX(50%); }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 800; font-size: 1rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--sh-blue); }
.btn--primary:hover { box-shadow: 0 20px 48px rgba(20, 121, 255, .38); }
.btn--ghost { border: 2px solid var(--gray-2); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.section--navy .btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .25); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 16px 40px rgba(37, 211, 102, .32); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--lg { padding: 19px 40px; font-size: 1.08rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- header ---------- */
.header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 90;
  height: var(--nav-h); display: flex; align-items: center;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: .25s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--gray-2); box-shadow: var(--sh-sm); }
.header .wrap { display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; margin-inline-end: auto; flex: none; }
/* flex: none + min-width: 0 interdit au navigateur d'écraser le logo
   quand la barre manque de place (il devenait 28px de large sur mobile) */
.brand img { height: 64px; width: auto; flex: none; max-width: none; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 700; font-size: .95rem; color: var(--charcoal); transition: color .2s; }
.nav a:hover { color: var(--blue); }
.nav a { position: relative; padding-block: 4px; }
.nav a.is-active { color: var(--blue); }
.nav a.is-active::after {
  content: ""; position: absolute; inset-block-end: -2px; inset-inline: 0;
  height: 2px; border-radius: 2px; background: var(--grad);
}
.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch { display: flex; background: var(--gray); border-radius: 999px; padding: 4px; }
.lang-switch button {
  padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 800;
  color: var(--muted); transition: .2s;
}
.lang-switch button.is-active { background: #fff; color: var(--blue); box-shadow: var(--sh-sm); }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--gray); }
.burger span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px auto; border-radius: 2px; transition: .25s; }

/* ---------- fond animé ---------- */
.fx {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  z-index: 0; border-radius: inherit;
}
.fx__orb {
  position: absolute; border-radius: 50%; filter: blur(70px);
  will-change: transform;
}
.fx__orb--a {
  width: 460px; height: 460px; inset-block-start: -120px; inset-inline-end: -80px;
  background: radial-gradient(circle, rgba(20, 121, 255, .30), transparent 70%);
  animation: orbA 26s ease-in-out infinite;
}
.fx__orb--b {
  width: 380px; height: 380px; inset-block-end: -140px; inset-inline-start: 6%;
  background: radial-gradient(circle, rgba(66, 215, 255, .28), transparent 70%);
  animation: orbB 32s ease-in-out infinite;
}
.fx__orb--c {
  width: 300px; height: 300px; inset-block-start: 32%; inset-inline-start: 42%;
  background: radial-gradient(circle, rgba(20, 121, 255, .16), transparent 70%);
  animation: orbC 38s ease-in-out infinite;
}
@keyframes orbA { 0%,100% { transform: none; } 50% { transform: translate3d(-70px, 60px, 0) scale(1.12); } }
@keyframes orbB { 0%,100% { transform: none; } 50% { transform: translate3d(60px, -50px, 0) scale(1.08); } }
@keyframes orbC { 0%,100% { transform: none; } 50% { transform: translate3d(40px, 40px, 0) scale(.9); } }

/* trame technique qui défile lentement */
.fx__grid {
  position: absolute; inset: -60px;
  background-image:
    linear-gradient(rgba(13, 27, 42, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 27, 42, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  animation: gridMove 40s linear infinite;
}
@keyframes gridMove { to { transform: translate3d(46px, 46px, 0); } }

/* ligne ECG : elle se dessine puis repart, comme un moniteur */
.fx__ecg {
  position: absolute; inset-block-end: 8%; inset-inline: 0;
  width: 100%; height: 110px; opacity: .5;
}
.fx__ecg path {
  fill: none; stroke: var(--blue); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1600; stroke-dashoffset: 1600;
  animation: ecg 7s cubic-bezier(.4, 0, .5, 1) infinite;
}
@keyframes ecg {
  0%   { stroke-dashoffset: 1600; opacity: 0; }
  10%  { opacity: 1; }
  70%  { stroke-dashoffset: 0; opacity: 1; }
  92%  { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 1600; opacity: 0; }
}

/* variante sombre : lueurs plus vives, trame plus discrète, balayage */
.fx--dark .fx__orb--a { background: radial-gradient(circle, rgba(66, 215, 255, .26), transparent 70%); }
.fx--dark .fx__orb--b { background: radial-gradient(circle, rgba(20, 121, 255, .34), transparent 70%); }
.fx--dark .fx__grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
}
.fx__scan {
  position: absolute; inset-inline: 0; height: 220px; inset-block-start: -220px;
  background: linear-gradient(180deg, transparent, rgba(66, 215, 255, .07), transparent);
  animation: scan 9s ease-in-out infinite;
}
@keyframes scan {
  0%   { transform: translateY(0); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(1400px); opacity: 0; }
}

/* le contenu passe toujours au-dessus de la couche animée */
.hero .wrap, .wizard .wrap, .section--navy .wrap { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .fx__orb, .fx__grid, .fx__ecg path, .fx__scan { animation: none !important; }
  .fx__ecg path { stroke-dashoffset: 0; }
  .fx__scan { display: none; }
}
/* sur mobile on allège : moins de flou, moins de calques animés */
@media (max-width: 700px) {
  .fx__orb { filter: blur(46px); }
  .fx__orb--c, .fx__ecg, .fx__scan { display: none; }
  .fx__grid { animation: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; padding-block: calc(var(--nav-h) + 56px) 80px;
  background: radial-gradient(1100px 620px at 80% -10%, #eaf3ff 0%, #fff 62%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset-inline-end: -180px; inset-block-start: -160px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 215, 255, .18), transparent 65%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; z-index: 2; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-block: 30px 16px; }
.hero-note { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note .ico { width: 15px; height: 15px; color: var(--blue); stroke-width: 3; }

/* le médecin se tient À CÔTÉ de la carte, il ne la recouvre plus */
.hero-visual { position: relative; display: flex; align-items: flex-end; }
.hero-doctor {
  aspect-ratio: 3 / 4;
  position: relative; z-index: 2; flex: none;
  width: 34%; max-width: 200px;
  margin-inline-end: -26px; margin-block-end: -12px;
  filter: drop-shadow(0 22px 36px rgba(13, 27, 42, .2));
  animation: float 6s ease-in-out infinite;
}
.hero-visual .score-card { flex: 1; min-width: 0; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* carte score du hero */
.score-card {
  position: relative; z-index: 1;
  background: #fff; border-radius: var(--r-xl); padding: 28px; box-shadow: var(--sh-lg);
  border: 1px solid var(--gray-2); position: relative; z-index: 2;
}
.score-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.score-card__head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(66, 215, 255, .18); }
.score-card__head strong { font-size: .95rem; }
.score-card__head small { color: var(--muted); font-size: .8rem; margin-inline-start: auto; }

.bar-row { margin-bottom: 15px; }
.bar-row__top { display: flex; justify-content: space-between; font-size: .86rem; font-weight: 700; margin-bottom: 6px; }
.bar-row__top span:last-child { color: var(--blue); }
.bar { height: 9px; border-radius: 99px; background: var(--gray-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); width: 0; transition: width 1.2s var(--ease); }

.score-total {
  margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--gray-2);
  display: flex; align-items: center; justify-content: space-between;
}
.score-total b { font-size: 2rem; color: var(--navy); }
.score-total b em { font-style: normal; font-size: .95rem; color: var(--muted); font-weight: 700; }

/* ---------- bandeau confiance ---------- */
.strip { background: var(--navy); color: #cfe0f2; padding: 18px 0; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; font-size: .92rem; font-weight: 700; }
.strip span { display: inline-flex; align-items: center; gap: 8px; }
.strip .ico { width: 19px; height: 19px; color: var(--cyan); }
.strip span > span:first-child { margin-inline-end: 8px; }

/* ---------- grilles / cartes ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--gray-2); border-radius: var(--r-lg);
  padding: 30px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: #d5e3f5; }
.card__icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 18px;
}
.card__icon .ico { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- assistant de diagnostic ---------- */
.wizard { background: var(--grad-navy); color: #e9f2fb; }
.wizard-shell {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-xl); padding: clamp(22px, 4vw, 44px); backdrop-filter: blur(6px);
}
.wizard-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.wizard-bar__track { flex: 1; height: 6px; background: rgba(255, 255, 255, .14); border-radius: 99px; overflow: hidden; }
.wizard-bar__track i { display: block; height: 100%; background: var(--grad); width: 0; transition: width .45s var(--ease); }
.wizard-bar__label { font-size: .85rem; font-weight: 800; color: var(--cyan); white-space: nowrap; }

.q-title { font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 800; color: #fff; margin-bottom: 6px; }
.q-hint { color: #9fbcd8; font-size: .95rem; margin-bottom: 26px; }

.opts { display: grid; gap: 14px; }
.opts--3 { grid-template-columns: repeat(3, 1fr); }
.opts--2 { grid-template-columns: repeat(2, 1fr); }

.opt {
  display: flex; align-items: center; gap: 14px; text-align: start;
  background: rgba(255, 255, 255, .05); border: 2px solid rgba(255, 255, 255, .12);
  border-radius: var(--r); padding: 18px 20px; color: #eaf3fb;
  transition: .2s var(--ease); width: 100%;
}
.opt:hover { border-color: var(--cyan); background: rgba(66, 215, 255, .08); transform: translateY(-2px); }
.opt.is-on { border-color: var(--cyan); background: rgba(66, 215, 255, .14); box-shadow: 0 0 0 4px rgba(66, 215, 255, .12); }
.opt__ico {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  display: grid; place-items: center; color: var(--cyan);
  background: rgba(66, 215, 255, .1); transition: .2s var(--ease);
}
.opt__ico .ico { width: 22px; height: 22px; }
.opt.is-on .opt__ico { background: var(--cyan); color: var(--navy); }
.opt__txt { display: flex; flex-direction: column; gap: 2px; }
.opt__txt b { font-weight: 800; font-size: 1rem; }
.opt__txt small { color: #9fbcd8; font-size: .85rem; line-height: 1.5; }
.opt__check {
  margin-inline-start: auto; width: 24px; height: 24px; border-radius: 8px; flex: none;
  border: 2px solid rgba(255, 255, 255, .25); display: grid; place-items: center;
  color: var(--navy); font-size: .8rem; font-weight: 900;
}
.opt.is-on .opt__check { background: var(--cyan); border-color: var(--cyan); }
.opt__check .ico { width: 14px; height: 14px; stroke-width: 3.4; opacity: 0; transition: .15s; }
.opt.is-on .opt__check .ico { opacity: 1; }

.wizard-url { margin-top: 16px; }
.wizard-nav { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.wizard-nav .btn--ghost { color: #cfe0f2; }
.wizard-nav .spacer { margin-inline-start: auto; }

.wizard-step { animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* écran d'analyse */
.scanner { text-align: center; padding: 30px 0 10px; }
.scanner__ring {
  width: 150px; height: 150px; margin: 0 auto 26px; border-radius: 50%;
  border: 3px solid rgba(66, 215, 255, .18); border-top-color: var(--cyan);
  animation: spin 1s linear infinite; display: grid; place-items: center; position: relative;
}
.scanner__ring b { font-size: 1.8rem; color: #fff; animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-list { list-style: none; margin: 0 auto; padding: 0; max-width: 420px; text-align: start; }
.scan-list li {
  display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: .95rem;
  color: #7f9cba; opacity: .45; transition: .3s;
}
.scan-list li.is-done { opacity: 1; color: #eaf3fb; }
.scan-list li i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-size: .7rem; font-style: normal; flex: none; }
.scan-list li.is-done i { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.scan-list li i .ico { width: 12px; height: 12px; stroke-width: 3.4; }

/* ---------- diagnostic : écran plein ---------- */
.wiz-screen {
  position: fixed; inset: 0; z-index: 100; display: none;
  flex-direction: column; background: var(--grad-navy); color: #e9f2fb;
}
/* pas d'animation d'entrée ici : si le navigateur gèle les animations
   (onglet en arrière-plan, mode économie d'énergie), l'écran resterait
   figé à opacity:0 et le visiteur ne verrait rien. L'ouverture immédiate
   donne d'ailleurs bien la sensation d'une page dédiée. */
.wiz-screen.is-open { display: flex; }

.wiz-screen__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, .1);
  flex: none;
}
.wiz-screen__logo {
  height: 40px; width: auto; flex: none;
  background: #fff; border-radius: 11px; padding: 5px 10px;
}
.wiz-screen__step { font-size: .88rem; font-weight: 800; color: var(--cyan); }
.wiz-screen__x {
  margin-inline-start: auto; width: 42px; height: 42px; border-radius: 13px; flex: none;
  background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center;
  transition: .18s var(--ease);
}
.wiz-screen__x:hover { background: rgba(255, 255, 255, .16); }
.wiz-screen__x .ico { width: 20px; height: 20px; }

.wiz-screen__prog { height: 4px; background: rgba(255, 255, 255, .12); flex: none; }
.wiz-screen__prog i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .45s var(--ease); }

.wiz-screen__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 30px 18px 44px; }
.wiz-screen__inner { max-width: 760px; margin-inline: auto; }

/* le bouton flottant gênerait par-dessus l'écran plein */
body.wiz-open .wa-float { display: none; }
body.wiz-open { overflow: hidden; }

/* ---------- résultat ---------- */
.result-hero { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; }
.gauge { position: relative; width: 280px; height: 280px; margin-inline: auto; }
.gauge svg { transform: rotate(-90deg); }
.gauge__val {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.gauge__val b { font-size: 3.4rem; font-weight: 900; color: var(--navy); line-height: 1; }
.gauge__val span { font-size: .85rem; color: var(--muted); font-weight: 700; }
.gauge circle { transition: stroke-dashoffset 1.4s var(--ease); }

.axes { display: grid; gap: 12px; margin-top: 28px; }
.axis {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--gray-2);
  border-radius: var(--r); padding: 14px 18px;
}
.axis__name { font-weight: 700; font-size: .95rem; }
.axis__bar { flex: 1; height: 8px; border-radius: 99px; background: var(--gray-2); overflow: hidden; }
.axis__bar i { display: block; height: 100%; border-radius: 99px; transition: width 1s var(--ease); width: 0; }
.axis__tag { font-size: .8rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.tag-bad { background: #fee2e2; color: #b91c1c; }
.tag-warn { background: #fef3c7; color: #b45309; }
.tag-ok { background: #dcfce7; color: #15803d; }
.axis__bar i.lv-bad { background: var(--bad); }
.axis__bar i.lv-warn { background: var(--warn); }
.axis__bar i.lv-ok { background: var(--ok); }

.verdict {
  margin-top: 34px; background: var(--blue-soft); border: 1px solid #cfe2ff;
  border-inline-start: 5px solid var(--blue); border-radius: var(--r);
  padding: 24px 28px; font-size: 1.05rem; font-weight: 700; color: var(--navy);
}

/* ---------- ROI : ce que la gestion manuelle coûte ---------- */
.roi {
  margin-top: 28px; background: var(--grad-navy); color: #e9f2fb;
  border-radius: var(--r-lg); padding: clamp(24px, 4vw, 38px); box-shadow: var(--sh-lg);
}
.roi:empty { display: none; }
.roi__head h3 { color: #fff; margin: 0 0 .3em; }
.roi__head p { color: #a9c2dc; font-size: .95rem; margin: 0 0 24px; max-width: 62ch; }
.roi__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.roi__cell {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r); padding: 22px; text-align: center;
}
.roi__cell b { display: block; font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 900; color: #fff; line-height: 1.1; }
.roi__cell span { font-size: .88rem; color: #9fbcd8; font-weight: 700; }
.roi__cell--main { background: rgba(66, 215, 255, .14); border-color: rgba(66, 215, 255, .3); }
.roi__cell--main b { color: var(--cyan); }
.roi__cell--muted { grid-column: span 2; display: grid; place-items: center; }
.roi__payback {
  margin-top: 18px; background: rgba(66, 215, 255, .1); border-inline-start: 4px solid var(--cyan);
  border-radius: var(--r); padding: 18px 22px; font-size: 1rem;
}
.roi__payback-t {
  display: block; font-size: .78rem; font-weight: 800; color: var(--cyan);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px;
}
.roi__payback b { color: #fff; }
.roi__note { margin: 16px 0 0; font-size: .82rem; color: #8fa9c4; }

/* ---------- comparaison avec la spécialité ---------- */
.bench {
  margin-top: 24px; background: #fff; border: 1px solid var(--gray-2);
  border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px);
}
.bench:empty { display: none; }
.bench h3 { font-size: 1.15rem; margin-bottom: 20px; }
.bench__row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.bench__name { width: 160px; font-size: .92rem; font-weight: 700; flex: none; }
.bench__bar { flex: 1; height: 14px; border-radius: 99px; background: var(--gray-2); overflow: hidden; }
.bench__bar i { display: block; height: 100%; border-radius: 99px; width: 0; background: #9db4cb; transition: width 1s var(--ease); }
.bench__bar i.is-me { background: var(--grad); }
.bench__row b { width: 42px; text-align: end; font-weight: 900; }
.bench__note { margin: 8px 0 0; font-size: .88rem; color: var(--muted); }

/* ---------- aperçu en direct ---------- */
.prev-field {
  display: flex; align-items: center; gap: 12px; max-width: 460px; margin: 0 auto 34px;
  background: #fff; border: 2px solid var(--gray-2); border-radius: 999px; padding: 6px 8px 6px 20px;
  transition: .2s;
}
[dir="rtl"] .prev-field { padding: 6px 20px 6px 8px; }
.prev-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20, 121, 255, .12); }
.prev-field [data-icon] { color: var(--blue); }
.prev-field input { flex: 1; border: none; background: none; padding: 12px 0; outline: none; font-weight: 700; }

.mock {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg);
  border: 1px solid var(--gray-2); background: #fff; max-width: 980px; margin-inline: auto;
}
.mock__bar {
  background: #e9eff6; padding: 12px 16px; display: flex; align-items: center; gap: 7px;
  border-bottom: 1px solid var(--gray-2);
}
.mock__bar i { width: 11px; height: 11px; border-radius: 50%; background: #cbd7e4; }
.mock__url {
  margin-inline-start: 14px; background: #fff; border-radius: 999px; padding: 5px 18px;
  font-size: .78rem; color: var(--muted); font-weight: 700; direction: ltr;
}
.mock__site { background: linear-gradient(180deg, #f7fbff 0%, #fff 60%); }
.mock__nav {
  display: flex; align-items: center; gap: 18px; padding: 16px 26px;
  border-bottom: 1px solid var(--gray-2); background: #fff;
}
.mock__nav > b { font-weight: 900; font-size: 1.05rem; color: var(--navy); }
.mock__nav nav { display: flex; gap: 18px; margin-inline-start: auto; font-size: .84rem; color: var(--muted); font-weight: 700; }
.mock__navcta {
  background: var(--grad); color: #fff; font-size: .8rem; font-weight: 800;
  padding: 9px 18px; border-radius: 999px;
}
.mock__hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; padding: 34px 26px 40px; align-items: center; }
.mock__badge {
  display: inline-flex; align-items: center; gap: 7px; background: #dcfce7; color: #15803d;
  font-size: .74rem; font-weight: 800; padding: 5px 13px; border-radius: 999px; margin-bottom: 12px;
}
.mock__badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mock__txt h3 { font-size: clamp(1.2rem, 2.4vw, 1.7rem); margin-bottom: .3em; }
.mock__txt p { color: var(--muted); font-size: .92rem; }
.mock__btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.mock__b1, .mock__b2 { font-size: .84rem; font-weight: 800; padding: 11px 22px; border-radius: 999px; }
.mock__b1 { background: var(--grad); color: #fff; }
.mock__b2 { border: 2px solid var(--gray-2); color: var(--ink); }
.mock__card {
  background: #fff; border: 1px solid var(--gray-2); border-radius: var(--r);
  padding: 20px; box-shadow: var(--sh);
}
.mock__card b { display: block; font-size: .98rem; }
.mock__card small { color: var(--muted); font-size: .8rem; }
.mock__chips { display: flex; gap: 7px; flex-wrap: wrap; margin: 14px 0; }
.mock__chips span {
  font-size: .74rem; font-weight: 700; padding: 6px 13px; border-radius: 999px;
  background: var(--gray); color: var(--muted);
}
.mock__chips span.is-on { background: var(--blue-soft); color: var(--blue); }
.mock__days { display: flex; gap: 6px; margin-bottom: 16px; }
.mock__days span {
  flex: 1; text-align: center; border: 1px solid var(--gray-2); border-radius: 10px; padding: 8px 2px;
}
.mock__days span.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.mock__days b { display: block; font-size: .92rem; font-weight: 800; }
.mock__days em { font-style: normal; font-size: .66rem; opacity: .65; }
.mock__submit {
  display: block; text-align: center; background: var(--grad); color: #fff;
  font-size: .84rem; font-weight: 800; padding: 12px; border-radius: 12px;
}

/* ---------- reprise du diagnostic ---------- */
.resume {
  margin: 28px auto 0; max-width: 620px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(66, 215, 255, .3); border-radius: var(--r-lg);
  padding: 22px 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  text-align: start;
}
.resume b { display: block; color: #fff; margin-bottom: 3px; }
.resume span { color: #9fbcd8; font-size: .9rem; }
.resume__btns { display: flex; gap: 10px; margin-inline-start: auto; flex-wrap: wrap; }
.resume .btn { padding: 11px 20px; font-size: .88rem; }

/* ---------- créneaux d'appel ---------- */
.modal__box--wide { width: min(560px, 100%); max-height: 92vh; overflow-y: auto; }
.mini-label { display: block; font-weight: 800; font-size: .85rem; margin: 16px 0 9px; }
.slots { display: flex; gap: 8px; flex-wrap: wrap; }
.slot {
  border: 2px solid var(--gray-2); border-radius: 12px; padding: 9px 14px; min-width: 62px;
  text-align: center; font-weight: 700; font-size: .85rem; transition: .18s var(--ease);
}
.slot:hover { border-color: #bcd7ff; }
.slot.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.slot b { display: block; font-size: .82rem; }
.slot em { font-style: normal; font-size: .72rem; opacity: .7; }
.slot--h { min-width: 74px; }

/* ordonnance */
.rx {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden;
  border: 1px solid var(--gray-2); max-width: 640px; margin-inline: auto; position: relative;
}
.rx::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 6px; background: var(--grad); }
.rx__head { padding: 26px 30px 18px; border-bottom: 2px dashed var(--gray-2); display: flex; align-items: center; gap: 14px; }
.rx__head img { height: 42px; width: auto; }
.rx__head .rx__t { margin-inline-start: auto; text-align: end; }
.rx__head .rx__t b { display: block; font-size: .95rem; }
.rx__head .rx__t small { color: var(--muted); font-size: .78rem; }
.rx__body { padding: 26px 30px 30px; }
.rx__meta { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.rx__meta b { color: var(--ink); }
.rx__list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.rx__list li { display: flex; align-items: flex-start; gap: 10px; font-size: .96rem; }
.rx__list li .ico { color: var(--ok); width: 16px; height: 16px; stroke-width: 3; margin-block-start: 5px; }
.rx__foot {
  background: var(--gray); border-radius: var(--r); padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  /* on reserve la place du medecin pour que le prix ne passe jamais dessous */
  padding-inline-end: 150px;
}
.rx__foot small { color: var(--muted); font-size: .82rem; display: block; }
.rx__foot b { font-size: 1.15rem; color: var(--blue); }
.rx__doctor {
  aspect-ratio: 7 / 9;
  position: absolute; inset-block-end: 0; inset-inline-end: 10px;
  width: 118px; opacity: .96; pointer-events: none;
  filter: drop-shadow(0 12px 24px rgba(13, 27, 42, .18));
}
/* trop etroit pour cohabiter : on retire le medecin et on rend la place au texte */
@media (max-width: 820px) {
  .rx__doctor { display: none; }
  .rx__foot { padding-inline-end: 22px; }
}

/* ---------- tarifs ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  background: #fff; border: 2px solid var(--gray-2); border-radius: var(--r-lg);
  padding: 32px 28px; display: flex; flex-direction: column; position: relative;
  transition: .28s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.plan.is-reco { border-color: var(--blue); box-shadow: var(--sh-blue); transform: scale(1.02); }
.plan.is-reco:hover { transform: scale(1.02) translateY(-6px); }
.plan__badge {
  position: absolute; inset-block-start: -14px; inset-inline-start: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: .78rem; font-weight: 800;
  padding: 6px 18px; border-radius: 999px; white-space: nowrap; box-shadow: var(--sh-blue);
}
[dir="rtl"] .plan__badge { transform: translateX(50%); }
.plan__name { font-size: 1.35rem; font-weight: 900; margin-bottom: 4px; }
.plan__tag { color: var(--muted); font-size: .92rem; min-height: 48px; }
.plan__price { margin: 18px 0 6px; font-size: 1.9rem; font-weight: 900; color: var(--navy); }
.plan__price small { font-size: .85rem; color: var(--muted); font-weight: 700; display: block; }
.plan__extra { font-size: .85rem; color: var(--muted); border-block: 1px solid var(--gray-2); padding: 14px 0; margin-bottom: 18px; display: grid; gap: 5px; }
.plan__feats { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; font-size: .94rem; }
.plan__feats li { display: flex; gap: 10px; align-items: flex-start; }
.plan__feats .ico { color: var(--blue); width: 15px; height: 15px; stroke-width: 3; margin-block-start: 6px; }
.plan .btn { margin-block-start: auto; }

/* ---------- estimateur ---------- */
.estimator { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.addons { display: grid; gap: 12px; }
.addon {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 2px solid var(--gray-2);
  border-radius: var(--r); padding: 16px 20px; cursor: pointer; transition: .2s var(--ease);
}
.addon:hover { border-color: #bcd7ff; }
.addon.is-on { border-color: var(--blue); background: var(--blue-soft); }
.addon__box {
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--gray-2); flex: none;
  display: grid; place-items: center; color: #fff; font-size: .75rem; font-weight: 900;
}
.addon.is-on .addon__box { background: var(--blue); border-color: var(--blue); }
.addon__box .ico { width: 13px; height: 13px; stroke-width: 3.4; opacity: 0; transition: .15s; }
.addon.is-on .addon__box .ico { opacity: 1; }
.addon__txt b { display: block; font-size: .97rem; }
.addon__txt small { color: var(--muted); font-size: .84rem; }
.addon__price { margin-inline-start: auto; font-weight: 800; color: var(--blue); white-space: nowrap; font-size: .92rem; }

.quote {
  position: sticky; inset-block-start: calc(var(--nav-h) + 20px);
  background: var(--grad-navy); color: #eaf3fb; border-radius: var(--r-lg); padding: 30px;
  box-shadow: var(--sh-lg);
}
.quote__pack { font-size: .85rem; color: var(--cyan); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.quote__val { font-size: 2.1rem; font-weight: 900; color: #fff; margin: 8px 0 2px; line-height: 1.2; }
.quote__lines { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 9px; font-size: .9rem; color: #a9c2dc; }
.quote__lines li { display: flex; justify-content: space-between; gap: 12px; }
.quote__lines li b { color: #fff; font-weight: 700; }
.quote__note { font-size: .8rem; color: #8fa9c4; border-top: 1px dashed rgba(255, 255, 255, .18); padding-top: 14px; margin-bottom: 18px; }

/* ---------- réalisations ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.filters button {
  padding: 10px 20px; border-radius: 999px; border: 2px solid var(--gray-2); background: #fff;
  font-weight: 700; font-size: .9rem; color: var(--muted); transition: .2s;
}
.filters button:hover { border-color: #bcd7ff; color: var(--blue); }
.filters button.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

.work { background: #fff; border: 1px solid var(--gray-2); border-radius: var(--r-lg); overflow: hidden; transition: .25s var(--ease); }
.work:hover { transform: translateY(-5px); box-shadow: var(--sh); }
/* barre de navigateur factice au-dessus de chaque capture :
   les visuels viennent de sources différentes, ce cadre commun les unifie */
.work__chrome {
  height: 30px; background: #e9eff6; border-bottom: 1px solid var(--gray-2);
  display: flex; align-items: center; gap: 6px; padding-inline: 14px;
}
.work__chrome i { width: 9px; height: 9px; border-radius: 50%; background: #cbd7e4; flex: none; }
.work__chrome span {
  margin-inline-start: 10px; flex: 1; height: 14px; border-radius: 99px;
  background: #fff; max-width: 200px;
}

.work__img { position: relative; background: var(--gray); aspect-ratio: 3/2; overflow: hidden; }
.work__img > img { width: 100%; height: 100%; object-fit: cover; }
/* la maquette téléphone est une vignette, pas l'image principale :
   on la sur-spécifie pour qu'elle ne soit jamais étirée */
.work__img img.work__phone {
  position: absolute; inset-block-end: 14px; inset-inline-end: 14px;
  width: 58px; height: auto; aspect-ratio: 1 / 2; object-fit: contain;
  border-radius: 10px; filter: drop-shadow(0 8px 18px rgba(13, 27, 42, .3));
}
.work__body { padding: 22px 24px 26px; }
.work__body h3 { margin-bottom: .2em; font-size: 1.15rem; }
.work__cat { color: var(--muted); font-size: .88rem; margin-bottom: 14px; }
.work__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.work__tags span { font-size: .76rem; font-weight: 700; background: var(--blue-soft); color: var(--blue); padding: 4px 11px; border-radius: 999px; }
.work__flag {
  position: absolute; inset-block-start: 12px; inset-inline-start: 12px;
  background: rgba(13, 27, 42, .82); color: #cfe0f2; backdrop-filter: blur(6px);
  font-size: .72rem; font-weight: 800; padding: 5px 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.work__flag.is-live { background: rgba(22, 163, 74, .92); color: #fff; }
.work__flag.is-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.work__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.work__link {
  font-weight: 800; font-size: .9rem; display: inline-flex; align-items: center; gap: 7px;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px;
  transition: .2s var(--ease);
}
.work__link:hover { background: var(--blue); transform: translateY(-2px); }
.work__link .ico { width: 15px; height: 15px; }
.work__cta {
  font-weight: 800; color: var(--blue); font-size: .88rem;
  display: inline-flex; align-items: center; gap: 5px; padding: 10px 4px;
}
.work__cta:hover { text-decoration: underline; }
.work__cta .ico { width: 15px; height: 15px; }

/* ---------- avant / après ---------- */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 26px; align-items: center; }
.ba__col { background: #fff; border-radius: var(--r-lg); padding: 30px; border: 1px solid var(--gray-2); }
.ba__col--after { background: var(--grad-navy); color: #eaf3fb; border-color: transparent; box-shadow: var(--sh-lg); }
.ba__col h3 { font-size: 1.1rem; margin-bottom: 20px; }
.ba__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ba__col li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; }
.ba__col li em {
  font-style: normal; flex: none; width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center; margin-block-start: 1px;
}
.ba__col li em .ico { width: 14px; height: 14px; stroke-width: 3.2; }
.ba-x { background: #fee2e2; color: #dc2626; }
.ba-v { background: rgba(66, 215, 255, .16); color: var(--cyan); }
.ba__col--after .ba-v { background: rgba(66, 215, 255, .18); }
.ba__arrow {
  width: 62px; height: 62px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; box-shadow: var(--sh-blue); flex: none;
}
.ba__arrow .ico { width: 26px; height: 26px; stroke-width: 2.4; }
[dir="rtl"] .ba__arrow .ico { transform: scaleX(-1); }

/* médecin analyste pendant le scan */
.scanner { position: relative; }
.scanner__doc {
  aspect-ratio: 7 / 9;
  position: absolute; inset-block-end: -10px; inset-inline-end: 0;
  width: 150px; opacity: .9; pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35));
  animation: fadeUp .6s var(--ease) both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: .9; transform: none; } }
@media (max-width: 900px) { .scanner__doc { display: none; } }

/* capture d'écran dans la colonne « après » */
.ba__shot {
  aspect-ratio: 14 / 9; object-fit: contain;
  width: 100%; margin-top: 22px; border-radius: 12px;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .35));
}

/* encart investissement + maquette du tableau de bord */
.invest {
  margin-top: 40px; background: var(--blue-soft); border-color: #cfe2ff;
  display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: center;
}
.invest h3 { margin-bottom: .4em; }
.invest p { margin: 0; color: var(--charcoal); }
.invest__shot { width: 100%; aspect-ratio: 14 / 9; object-fit: contain; border-radius: 12px; filter: drop-shadow(0 16px 30px rgba(13, 27, 42, .22)); }
@media (max-width: 860px) { .invest { grid-template-columns: 1fr; } .invest__shot { max-width: 340px; margin-inline: auto; } }

/* portrait dans l'appel à l'action final */
.cta-doc {
  width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 20px;
  background: rgba(66, 215, 255, .12); padding: 4px;
  border: 2px solid rgba(66, 215, 255, .35); object-fit: cover;
}

/* ---------- process ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-block-start: 18px; }
.step__n { font-size: 3rem; font-weight: 900; color: var(--gray-2); line-height: 1; margin-bottom: 6px; }
.step h3 { font-size: 1.15rem; margin-bottom: .3em; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }
.step::after {
  content: ""; position: absolute; inset-block-start: 34px; inset-inline-start: 100%;
  width: 24px; height: 2px; background: var(--gray-2);
}
.step:last-child::after { display: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--gray-2); border-radius: var(--r); overflow: hidden;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--blue); box-shadow: var(--sh-sm); }
.faq summary {
  padding: 20px 24px; font-weight: 800; cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 14px; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-inline-start: auto; font-size: 1.5rem; font-weight: 400; color: var(--blue);
  transition: transform .25s var(--ease); line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 24px 22px; color: var(--muted); font-size: .96rem; }

/* ---------- formulaire ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.form-card { background: #fff; border-radius: var(--r-lg); padding: 34px; box-shadow: var(--sh-lg); border: 1px solid var(--gray-2); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; }
.field label i { color: var(--bad); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 2px solid var(--gray-2); border-radius: var(--r-sm);
  background: #fff; transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20, 121, 255, .12);
}
.field.is-err input, .field.is-err select { border-color: var(--bad); }
.field__err { color: var(--bad); font-size: .82rem; margin-top: 5px; display: none; }
.field.is-err .field__err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; margin-block: 6px 18px; cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; accent-color: var(--blue); margin-block-start: 2px; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 14px; }

.success { text-align: center; padding: 20px 0; }
.success__ico {
  width: 84px; height: 84px; border-radius: 50%; background: #dcfce7; color: var(--ok);
  display: grid; place-items: center; margin: 0 auto 20px; animation: pop .5s var(--ease);
}
.success__ico .ico { width: 40px; height: 40px; stroke-width: 3; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ref-code {
  display: inline-block; background: var(--navy); color: var(--cyan); font-weight: 800;
  padding: 8px 20px; border-radius: 999px; letter-spacing: .08em; margin-bottom: 20px;
}

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #9fb6cd; padding-block: 60px 26px; }
.footer a:hover { color: var(--cyan); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .93rem; }
.footer ul a { display: inline-flex; align-items: center; min-height: 34px; }
/* le lettrage du logo est navy : sur fond sombre il lui faut une pastille claire */
.footer img.f-logo {
  height: 60px; width: auto; margin-bottom: 16px;
  background: #fff; border-radius: 14px; padding: 8px 14px;
}
.footer__soc { display: flex; gap: 10px; margin-top: 16px; }
.footer__soc a {
  width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .07);
  display: grid; place-items: center; transition: .2s;
}
.footer__soc a:hover { background: var(--blue); color: #fff; }
.footer__soc .ico { width: 19px; height: 19px; }
.footer ul li { display: flex; align-items: center; gap: 9px; }
.footer ul li .ico { width: 16px; height: 16px; color: var(--cyan); }
.footer__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .85rem;
}

/* ---------- accessibilité ---------- */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.section--navy :focus-visible, .wizard :focus-visible { outline-color: var(--cyan); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- WhatsApp flottant ---------- */
.wa-float {
  position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 80;
  display: flex; align-items: center; gap: 10px; background: var(--wa); color: #fff;
  padding: 13px 20px; border-radius: 999px; font-weight: 800; font-size: .93rem;
  box-shadow: 0 14px 36px rgba(37, 211, 102, .4); transition: .25s var(--ease);
  max-width: min(320px, calc(100vw - 44px));
}
.wa-float:hover { transform: translateY(-3px) scale(1.02); }
.wa-float .ico { width: 22px; height: 22px; }
.wa-float__txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- modale ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: none; place-items: center; padding: 20px; }
.modal.is-open { display: grid; }
.modal__bg { position: absolute; inset: 0; background: rgba(13, 27, 42, .6); backdrop-filter: blur(4px); }
.modal__box {
  position: relative; background: #fff; border-radius: var(--r-lg); padding: 32px;
  width: min(460px, 100%); box-shadow: var(--sh-lg); animation: pop .3s var(--ease);
}
.modal__x { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--gray); font-size: 1.1rem; }

/* ---------- apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  /* le médecin passe au-dessus de la carte, il ne la comprime plus */
  .hero-visual { flex-direction: column; align-items: center; }
  .hero-doctor { width: 168px; max-width: 168px; margin: 0 0 -16px; }
  .hero-visual .score-card { width: 100%; }
  .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .estimator { grid-template-columns: 1fr; }
  .quote { position: static; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .plan.is-reco { transform: none; }
  .result-hero { grid-template-columns: 1fr; text-align: center; }
  .form-wrap { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset-block-start: var(--nav-h); inset-inline: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px;
    border-bottom: 1px solid var(--gray-2); box-shadow: var(--sh); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--gray); }
  .burger { display: block; }

  /* la barre est trop étroite pour 4 éléments : le bouton principal
     descend dans le menu, le logo garde ses proportions */
  .header .btn { display: none; }
  .nav .btn { display: flex; width: 100%; margin-top: 14px; }
  .brand img { height: 46px; }
  .lang-switch button { padding: 6px 11px; }
  :root { --nav-h: 72px; }
  .grid--3, .grid--2, .opts--3, .opts--2 { grid-template-columns: 1fr; }
  .ba { grid-template-columns: 1fr; }
  .ba__arrow { transform: rotate(90deg); margin-inline: auto; }
  [dir="rtl"] .ba__arrow { transform: rotate(90deg); }
}

@media (max-width: 560px) {
  .axis { flex-wrap: wrap; gap: 8px 12px; }
  .axis__name { width: 100%; }
  .grid--4, .steps, .footer__grid, .field-row { grid-template-columns: 1fr; }
  .card, .form-card, .ba__col { padding: 24px 20px; }
  .btn { width: 100%; }
  /* ...sauf ceux qui vivent dans une barre horizontale */
  .header .btn, .filters button, .slots .slot, .work__actions .btn,
  .lang-switch button, .resume .btn { width: auto; }
  .header .btn { padding: 11px 16px; font-size: .88rem; }
  .header .btn [data-icon] { display: none; }
  .hero-cta { flex-direction: column; }
  .wa-float__txt { display: none; }
  .wa-float { padding: 15px; }
  .gauge { width: 220px; height: 220px; }
}

/* ---------- rapport imprimable / PDF ---------- */
#printReport { display: none; }

@media print {
  body > *:not(#printReport) { display: none !important; }
  body { background: #fff; }
  #printReport { display: block !important; }

  .rep { padding: 0; color: #14202e; font-size: 12pt; line-height: 1.6; }
  .rep__head {
    display: flex; justify-content: space-between; align-items: flex-start;
    border-bottom: 3px solid #1479ff; padding-bottom: 12px; margin-bottom: 22px;
  }
  .rep__brand { font-size: 22pt; font-weight: 900; color: #0d1b2a; letter-spacing: .02em; }
  .rep__sub { font-size: 11pt; color: #1479ff; font-weight: 700; }
  .rep__meta { font-size: 9.5pt; color: #5b7089; text-align: end; }

  .rep__score {
    background: #eaf3ff; border-radius: 10px; padding: 16px 20px; margin-bottom: 20px;
    display: flex; align-items: baseline; gap: 10px;
  }
  .rep__score b { font-size: 30pt; font-weight: 900; color: #0d1b2a; line-height: 1; }
  .rep__score span { font-size: 10pt; color: #5b7089; font-weight: 700; }

  .rep h4 {
    font-size: 12pt; margin: 20px 0 8px; padding-bottom: 5px;
    border-bottom: 1px solid #e5ebf1; color: #0d1b2a;
  }
  .rep__p { margin: 0 0 8px; }
  .rep__t { width: 100%; border-collapse: collapse; font-size: 10.5pt; }
  .rep__t td { padding: 7px 10px; border-bottom: 1px solid #e5ebf1; }
  .rep__t td:first-child { font-weight: 700; width: 45%; }
  .rep__ul { margin: 0; padding-inline-start: 20px; font-size: 10.5pt; }
  .rep__ul li { margin-bottom: 4px; }
  .rep__foot {
    margin-top: 26px; padding-top: 12px; border-top: 1px solid #e5ebf1;
    font-size: 9pt; color: #5b7089;
  }
  @page { margin: 16mm; }
}

@media (max-width: 860px) {
  .roi__grid { grid-template-columns: 1fr; }
  .roi__cell--muted { grid-column: auto; }
  .mock__hero { grid-template-columns: 1fr; }
  .mock__nav nav { display: none; }
  .bench__name { width: 108px; font-size: .84rem; }
  .resume__btns { margin-inline-start: 0; width: 100%; }
  .resume .btn { flex: 1; }
}
