/* DentalManager : page vitrine. Polices dans fonts.css. */
/* Mise en page : une page de produit sobre et claire, construite autour d'une « fiche de soin »
   (schéma dentaire FDI, cotation NGAP, facture en dirhams) qui sert d'image principale.
   Identité reprise de l'application : vert santé, neutres teintés de vert. */
:root {
  color-scheme: light;
  --paper: #f5f8f7;
  --surface: #ffffff;
  --surface-2: #eef3f2;
  --ink: #0f1f1e;
  --ink-2: #4a5e5c;
  --ink-3: #74878a;
  --line: #dfe7e6;
  --teal: #0f766e;
  --teal-strong: #0b5f58;
  --teal-soft: #dcf2ee;
  --on-teal: #ffffff;
  --alert: #b42318;
  --alert-soft: #fde7e4;
  --amber: #a35407;
  --amber-soft: #fdf0d8;
  --shadow: 0 1px 2px rgba(15, 31, 30, .06), 0 18px 48px rgba(15, 31, 30, .10);

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0b1312; --surface: #101b1a; --surface-2: #152221; --ink: #e4eeed; --ink-2: #a2b4b2; --ink-3: #7d918f;
    --line: #213230; --teal: #2dd4bf; --teal-strong: #5eead4; --teal-soft: #10342f; --on-teal: #042420;
    --alert: #f87171; --alert-soft: #3a1716; --amber: #fbbf24; --amber-soft: #33270d;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 48px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0b1312; --surface: #101b1a; --surface-2: #152221; --ink: #e4eeed; --ink-2: #a2b4b2; --ink-3: #7d918f;
  --line: #213230; --teal: #2dd4bf; --teal-strong: #5eead4; --teal-soft: #10342f; --on-teal: #042420;
  --alert: #f87171; --alert-soft: #3a1716; --amber: #fbbf24; --amber-soft: #33270d;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 48px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
[lang="ar"] body, html[lang="ar"] body { font-family: var(--arabic); }
a { color: inherit; }
.wrap {
  max-width: 1180px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: var(--arabic); letter-spacing: 0; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: .86em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ─── Barre du haut ─── */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px var(--display); text-decoration: none; }
html[lang="ar"] .brand { font-family: var(--display); }
.brand__mark { width: 32px; height: 32px; border-radius: 9px; background: var(--teal); color: var(--on-teal); display: grid; place-items: center; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; font-size: 14.5px; color: var(--ink-2); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; color: var(--ink-2); font: 600 13px var(--body); padding: 6px 12px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lang button:last-child { font-family: var(--arabic); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 12px 18px;
  font: 600 15px var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
html[lang="ar"] .btn { font-family: var(--arabic); }
.btn--primary { background: var(--teal); color: var(--on-teal); }
.btn--primary:hover { background: var(--teal-strong); }
.btn--ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-3); }
.btn--sm { padding: 8px 14px; font-size: 14px; }

/* ─── Ouverture ─── */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 72px 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: .08em; }
html[lang="ar"] .eyebrow { letter-spacing: 0; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); line-height: 1.02; font-weight: 800; margin-block: 18px 22px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 34em; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-block: 30px 22px; }
.proofs { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-2); list-style: none; padding: 0; margin: 0; }
.proofs li { display: flex; align-items: center; gap: 7px; }
.proofs svg { color: var(--teal); flex-shrink: 0; }

/* La fiche de soin */
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.sheet__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.patient strong { display: block; font-size: 16px; }
.patient span { font-size: 13px; color: var(--ink-3); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.chip--alert { background: var(--alert-soft); color: var(--alert); }
.chip--ok { background: var(--teal-soft); color: var(--teal); }
.arch { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 4px; direction: ltr; }
.tooth { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tooth__crown { width: 100%; aspect-ratio: 3 / 4; border: 1.5px solid var(--line); border-radius: 7px 7px 10px 10px; background: var(--surface-2); position: relative; transition: transform .2s; }
.tooth__num { font: 500 10.5px var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tooth.is-caries .tooth__crown { border-color: var(--alert); background: var(--alert-soft); }
.tooth.is-caries .tooth__crown::after { content: ""; position: absolute; inset: 30% 18% auto auto; width: 34%; height: 30%; border-radius: 40%; background: var(--alert); }
.tooth.is-filled .tooth__crown { border-color: var(--teal); background: var(--teal-soft); }
.tooth.is-crown .tooth__crown { border-color: var(--amber); background: var(--amber-soft); }
.tooth.is-missing .tooth__crown { border-style: dashed; background: transparent; }
.tooth.is-selected .tooth__crown { outline: 2.5px solid var(--teal); outline-offset: 2px; transform: translateY(-2px); }
.midline { grid-column: span 16; height: 1px; background: var(--line); margin-block: 2px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 5px; vertical-align: -1px; border: 1.5px solid; }
.acts { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; font-size: 14px; }
.act { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: baseline; }
.act__tooth { font: 600 12px var(--mono); background: var(--teal-soft); color: var(--teal); padding: 2px 7px; border-radius: 6px; }
.act__code { font: 500 12px var(--mono); color: var(--ink-3); margin-inline-start: 6px; }
.act__fee { font-variant-numeric: tabular-nums; font-weight: 600; direction: ltr; }
.invoice { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.invoice__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-2); }
.invoice__row strong { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; direction: ltr; }
.invoice__words { font-size: 12.5px; color: var(--ink-3); font-style: italic; }
.stamp { position: absolute; inset-block-start: -14px; inset-inline-end: 22px; background: var(--ink); color: var(--paper); font: 500 11.5px var(--mono); padding: 6px 10px; border-radius: 8px; box-shadow: var(--shadow); }

/* ─── Sections ─── */
section { padding-block: 84px; }
.section-head { display: grid; gap: 14px; max-width: 46em; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; font-weight: 700; }
.section-head p { font-size: 18px; color: var(--ink-2); }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* Une journée au cabinet : un vrai déroulé, d'où la numérotation */
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.journey li { padding: 0 22px 0 0; display: grid; gap: 10px; align-content: start; position: relative; }
html[dir="rtl"] .journey li { padding: 0 0 0 22px; }
.journey li::before {
  counter-increment: step; content: counter(step); width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font: 700 15px var(--display); background: var(--teal); color: var(--on-teal);
}
.journey li::after { content: ""; position: absolute; top: 18px; inset-inline-start: 46px; inset-inline-end: 12px; height: 2px; background: var(--line); }
.journey li:last-child::after { display: none; }
.journey h3 { font-size: 19px; font-weight: 700; }
.journey p { color: var(--ink-2); font-size: 15px; }
.journey .tag { font: 500 12px var(--mono); color: var(--teal); }

/* Fonctionnalités */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.feature { background: var(--surface); padding: 28px; display: grid; gap: 12px; align-content: start; }
.feature__icon { width: 42px; height: 42px; border-radius: 11px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; }
.feature h3 { font-size: 20px; font-weight: 700; }
.feature p { color: var(--ink-2); font-size: 15px; }
.feature ul { margin: 0; padding-inline-start: 18px; color: var(--ink-2); font-size: 14.5px; display: grid; gap: 4px; }

/* Rôles */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.role { border: 1px solid var(--line); border-radius: 16px; padding: 26px; background: var(--surface); display: grid; gap: 12px; align-content: start; }
.role__who { font: 600 13px var(--body); color: var(--teal); text-transform: uppercase; letter-spacing: .07em; }
html[lang="ar"] .role__who { letter-spacing: 0; font-family: var(--arabic); }
.role h3 { font-size: 22px; font-weight: 700; }
.role p { color: var(--ink-2); font-size: 15px; }
.roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.role--photo { padding: 0; overflow: hidden; gap: 0; }
.role__photo { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.role__body { padding: 24px 26px 28px; display: grid; gap: 10px; }
.role--wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: baseline; column-gap: 32px; }
.role--wide .role__who { grid-row: span 2; }
.photo-credit { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }

/* Sécurité */
.security { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.checks { display: grid; gap: 0; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.checks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.checks svg { color: var(--teal); margin-top: 3px; }
.checks strong { display: block; font-size: 16.5px; }
.checks span { color: var(--ink-2); font-size: 15px; }

/* Aperçu : vraies captures de l'application dans un cadre de navigateur */
.shots { display: grid; gap: 56px; }
.shot { margin: 0; display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.shot:nth-child(even) .shot__frame { order: 2; }
.shot figcaption strong { font-size: 24px !important; }
.shot__frame { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.shot__bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); direction: ltr; }
.shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot__bar span { margin-left: 10px; font: 500 12px var(--mono); color: var(--ink-3); }
.shot img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 1200 / 830; }
.shot figcaption { display: grid; gap: 4px; }
.shot figcaption strong { font: 700 19px var(--display); }
html[lang="ar"] .shot figcaption strong { font-family: var(--arabic); }
.shot figcaption span { color: var(--ink-2); font-size: 16.5px; }

/* Tarifs */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan--featured { border: 2px solid var(--teal); box-shadow: var(--shadow); }
.plan__badge { position: absolute; top: -13px; inset-inline-start: 26px; background: var(--teal); color: var(--on-teal); font: 600 12.5px var(--body); padding: 4px 12px; border-radius: 999px; }
html[lang="ar"] .plan__badge { font-family: var(--arabic); }
.plan__name { font: 700 22px var(--display); }
html[lang="ar"] .plan__name { font-family: var(--arabic); }
.plan__for { color: var(--ink-2); font-size: 15px; min-height: 3.2em; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.price strong { font: 800 48px/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--ink-2); font-size: 15px; }
.plan__plus { font-weight: 600; font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan li { position: relative; padding-inline-start: 26px; }
.plan li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .42em; width: 10px; height: 5px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.plan li strong { color: var(--ink); font-weight: 600; }
.plan .btn { margin-top: auto; }
.soon { display: inline-block; margin-inline-start: 4px; padding: 1px 8px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); font-size: 12px; font-weight: 600; vertical-align: 1px; }
.plans__note { margin-top: 22px; color: var(--ink-3); font-size: 14px; }

/* Application patients (formule Premium) : maquette de téléphone, couleurs fixes de l'illustration */
.mobile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 64px; align-items: center; }
.mobile__points { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.mobile__points li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
.mobile__points svg { color: var(--teal); margin-top: 3px; }
.mobile__points strong { display: block; }
.mobile__points span { color: var(--ink-2); font-size: 15px; }
.phone-fig { margin: 0; display: grid; gap: 12px; justify-items: center; }
.phone { width: 300px; max-width: 100%; aspect-ratio: 300 / 600; border-radius: 46px; background: #10201f; padding: 11px; box-shadow: var(--shadow); position: relative; direction: ltr; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 999px; background: #10201f; z-index: 1; }
.phone__screen { height: 100%; border-radius: 36px; background: #f7f8fc; color: #151a2d; overflow: hidden; display: flex; flex-direction: column; gap: 13px; padding: 50px 16px 16px; font: 13px/1.4 var(--body); }
.phone__clinic { display: flex; align-items: center; gap: 10px; }
.phone__logo { width: 34px; height: 34px; border-radius: 10px; background: #3a4fd8; color: #ffffff; display: grid; place-items: center; font: 700 13px var(--display); }
.phone__clinic strong { display: block; font-size: 14px; color: #151a2d; }
.phone__clinic div span { font-size: 11.5px; color: #66708a; }
.phone h4 { margin: 2px 0 0; font: 700 18px var(--display); color: #151a2d; }
.phone__label { font-size: 11px; font-weight: 600; color: #66708a; text-transform: uppercase; letter-spacing: .06em; }
.phone__row { display: flex; gap: 6px; flex-wrap: wrap; }
.phone__chip { border: 1px solid #dde1ee; background: #ffffff; color: #151a2d; border-radius: 999px; padding: 5px 10px; font-size: 12px; }
.phone__chip.on { background: #3a4fd8; border-color: #3a4fd8; color: #ffffff; }
.phone__days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.phone__day { border: 1px solid #dde1ee; background: #ffffff; border-radius: 12px; padding: 6px 0; text-align: center; font-size: 11px; color: #66708a; }
.phone__day b { display: block; font: 700 16px var(--display); color: #151a2d; }
.phone__day.on { background: #3a4fd8; border-color: #3a4fd8; color: #dfe4ff; }
.phone__day.on b { color: #ffffff; }
.phone__day.off { opacity: .45; text-decoration: line-through; }
.phone__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.phone__slot { border: 1px solid #dde1ee; background: #ffffff; border-radius: 9px; padding: 7px 0; text-align: center; font: 500 12.5px var(--mono); color: #151a2d; }
.phone__slot.on { border: 2px solid #3a4fd8; color: #3a4fd8; font-weight: 700; }
.phone__cta { margin-top: auto; background: #3a4fd8; color: #ffffff; border-radius: 12px; padding: 12px; text-align: center; font-weight: 600; }
.phone-fig figcaption { font-size: 13px; color: var(--ink-3); }

/* Questions */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding-block: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 20px var(--display); color: var(--teal); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); padding-bottom: 16px; max-width: 64ch; }

/* Démo */
.demo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field select {
  font: 15px var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%;
}
html[lang="ar"] .field input, html[lang="ar"] .field select { font-family: var(--arabic); }
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.form .btn { grid-column: 1 / -1; }
.form__note { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); }
.form__done { grid-column: 1 / -1; background: var(--teal-soft); color: var(--teal); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; font-weight: 500; }

footer { border-top: 1px solid var(--line); padding-block: 36px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Apparition de la fiche (depuis un état visible) */
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
.sheet { animation: rise .7s ease-out both; }
.tooth.is-selected .tooth__crown { animation: pulse 2.4s ease-in-out 1s infinite; }
@keyframes pulse { 0%, 100% { outline-color: var(--teal); } 50% { outline-color: transparent; } }

@media (max-width: 980px) {
  .hero .wrap, .security, .demo { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .features, .roles { grid-template-columns: minmax(0, 1fr); }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 0; }
  .journey li:nth-child(2)::after { display: none; }
  .shot, .plans, .mobile { grid-template-columns: minmax(0, 1fr); }
  .shot { gap: 18px; }
  .shot:nth-child(even) .shot__frame { order: 0; }
  .plans { gap: 28px; }
  .plan__for { min-height: 0; }
  .role--wide { grid-template-columns: minmax(0, 1fr); }
  .role--wide .role__who { grid-row: auto; }
  .mobile { gap: 40px; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  section { padding-block: 60px; }
  .hero .wrap { padding-block: 44px 40px; }
  .journey { grid-template-columns: minmax(0, 1fr); }
  .journey li::after { display: none; }
  .form { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .plan { padding: 26px 22px; }
  .sheet { padding: 16px; }
  .arch { gap: 2px; }
  .top__demo, .hide-sm { display: none; }
}

/* Éléments de base et classes remplaçant les styles en ligne */
img { max-width: 100%; }
[hidden] { display: none !important; }
.hero { padding-block: 0; }
.sheet { margin: 0; }
.legend .sw--caries { border-color: var(--alert); background: var(--alert-soft); }
.legend .sw--filled { border-color: var(--teal); background: var(--teal-soft); }
.legend .sw--crown { border-color: var(--amber); background: var(--amber-soft); }
.legend .sw--missing { border-color: var(--ink-3); border-style: dashed; }
.role__photo--dentist { object-position: 50% 78%; }
.role__photo--secretary { object-position: 50% 40%; }
.section-head--flush { margin-bottom: 0; }
.mobile__text { display: grid; gap: 28px; }
.btn--start { justify-self: start; }
.footer__brand { color: var(--ink); }
.footer__links { display: flex; gap: 20px; align-items: center; }
.footer__links a { color: var(--teal); font-weight: 600; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }

/* Barre du haut : rien ne passe à la ligne ; les éléments secondaires disparaissent quand la place manque */
.nav a { white-space: nowrap; }
.brand, .lang, .top .btn { flex-shrink: 0; }
@media (max-width: 1200px) { .top .hide-sm { display: none; } }
@media (max-width: 1100px) { .nav { display: none; } .lang { margin-inline-start: auto; } }
@media (max-width: 560px) {
  .top .wrap { gap: 10px; }
  .brand { font-size: 0; gap: 0; }
  .lang button { padding: 6px 10px; }
}

/* Formulaire de démo : consentement, champ piège, messages */
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--teal); }
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__error { grid-column: 1 / -1; background: var(--alert-soft); color: var(--alert); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; font-weight: 500; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
