/* Ambulances Lyvia — styles du site (v2)
   Idée : un site de service de santé moderne et rassurant. Accueil en deux colonnes
   (promesse + réservation à gauche, illustration « du domicile au lieu de soins »
   à droite), barre de confiance, blocs aérés, barre d'appel fixe sur mobile. */

:root {
  --ink: #0f2a4a;          /* texte, bleu marine */
  --muted: #4d6380;        /* texte secondaire */
  --bg: #f2f6fb;           /* fond général */
  --surface: #ffffff;      /* cartes */
  --brand: #1f5fd6;        /* bleu Lyvia */
  --brand-deep: #123f99;   /* survol, aplats foncés */
  --brand-soft: #e3ecfb;   /* aplats clairs */
  --care: #0f9d86;         /* vert soin : validations, rassurance */
  --care-soft: #dcf3ee;
  --alert: #d22b2b;        /* urgence vitale uniquement */
  --line: #d6e0ee;
  --todo: #fff0a8;
  --shadow: 0 1px 2px rgba(15, 42, 74, 0.06), 0 8px 24px rgba(15, 42, 74, 0.08);
  --font-display: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", Verdana, sans-serif;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e7eef8; --muted: #a9bad0; --bg: #0b1626; --surface: #13233a;
    --brand: #6f9bff; --brand-deep: #9bbaff; --brand-soft: #1a3158;
    --care: #4fd1b8; --care-soft: #123c38; --alert: #ff7b7b; --line: #24395a; --todo: #5c4b0f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e7eef8; --muted: #a9bad0; --bg: #0b1626; --surface: #13233a;
  --brand: #6f9bff; --brand-deep: #9bbaff; --brand-soft: #1a3158;
  --care: #4fd1b8; --care-soft: #123c38; --alert: #ff7b7b; --line: #24395a; --todo: #5c4b0f;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0; max-width: 64ch; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.todo { background: var(--todo); border-radius: 4px; padding: 0 .3em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 700 1rem/1.2 var(--font-display);
  padding: .95rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { flex: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
:root[data-theme="dark"] .btn-primary { color: #0b1626; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #0b1626; } }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* Barre du haut */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); font-size: .92rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; padding-block: .45rem; }
.topbar .urgent { color: var(--alert); font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; }
.topbar .meta { color: var(--muted); display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 15; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font: 800 1.35rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand small { display: block; font: 400 .8rem/1.2 var(--font-body); color: var(--muted); letter-spacing: 0; margin-top: .2rem; }
.nav { display: flex; gap: 1.5rem; align-items: center; font-size: .98rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; }
.nav a:not(.btn):hover { color: var(--brand); }
.nav .btn { padding: .65rem 1.05rem; }
@media (max-width: 920px) { .nav a:not(.btn) { display: none; } }

/* Accueil */
.hero { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero-copy { display: grid; gap: 1.4rem; }
.pill { justify-self: start; display: inline-flex; align-items: center; gap: .5rem; background: var(--care-soft); color: var(--ink); font-weight: 700; font-size: .92rem; padding: .4rem .85rem .4rem .5rem; border-radius: 999px; }
.pill .dot { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--care); display: grid; place-items: center; color: #fff; }
.lead { font-size: 1.2rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.actions .btn-primary { font-size: 1.1rem; padding: 1.05rem 1.5rem; }
.reassure { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; margin: 0; padding: 0; font-size: .95rem; color: var(--muted); }
.reassure li { display: inline-flex; align-items: center; gap: .4rem; }
.reassure svg { color: var(--care); }

.hero-visual { position: relative; }
.visual-card { background: var(--brand-soft); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1 / 0.86; position: relative; }
.visual-card svg.scene { width: 100%; height: 100%; display: block; }
.float {
  position: absolute; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow);
  padding: .75rem 1rem; display: flex; gap: .7rem; align-items: center; font-size: .92rem; max-width: 260px;
}
.float strong { display: block; font-family: var(--font-display); font-size: .98rem; }
.float span { color: var(--muted); }
.float .ico { flex: none; width: 2.3rem; height: 2.3rem; border-radius: 12px; display: grid; place-items: center; background: var(--care-soft); color: var(--care); }
.float-a { top: 3%; right: -3%; }
.float-b { bottom: 8%; right: -3%; }
.float-b .ico { background: var(--brand-soft); color: var(--brand); }
@media (max-width: 560px) { .float { position: static; margin-top: .75rem; max-width: none; } .float-a { margin-top: -1.5rem; position: relative; margin-inline: 1rem; } .float-b { margin-inline: 1rem; } }

/* Barre de confiance */
.trust { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.trust ul { list-style: none; margin: 0; padding: 1.25rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow); }
@media (max-width: 920px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust ul { grid-template-columns: 1fr; } }
.trust li { display: flex; gap: .8rem; align-items: center; padding: .4rem .5rem; }
.trust .ico { flex: none; width: 2.8rem; height: 2.8rem; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.trust strong { display: block; font-family: var(--font-display); line-height: 1.25; }
.trust span { font-size: .9rem; color: var(--muted); line-height: 1.35; display: block; }

/* Sections */
.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section-head { display: grid; gap: .75rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker { color: var(--brand); font-family: var(--font-display); font-weight: 800; font-size: .95rem; }
.on-surface { background: var(--surface); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 920px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: var(--r-md); padding: 1.6rem; display: grid; gap: .8rem; align-content: start; border: 1px solid var(--line); }
.on-surface .card { background: var(--bg); border-color: transparent; }
.card .ico { width: 3.2rem; height: 3.2rem; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.card li { display: flex; gap: .5rem; align-items: baseline; }
.card li::before { content: ""; flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: var(--care); transform: translateY(-.1rem); }
.card p { color: var(--muted); }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; position: relative; }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--surface); border-radius: var(--r-md); padding: 1.4rem; display: grid; gap: .5rem; align-content: start; border: 1px solid var(--line); }
.steps .num { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand); color: #fff; font: 800 1.05rem/1 var(--font-display); display: grid; place-items: center; }
.steps p { color: var(--muted); font-size: .98rem; }

/* Remboursement */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }
.split-copy { display: grid; gap: 1rem; }
.split-copy p { color: var(--muted); }
.checkcard { background: var(--surface); border-radius: var(--r-md); padding: 1.6rem; box-shadow: var(--shadow); display: grid; gap: 1rem; }
.checkcard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.checkcard li { display: flex; gap: .7rem; align-items: center; padding: .7rem .8rem; background: var(--bg); border-radius: var(--r-sm); }
.checkcard li svg { flex: none; color: var(--care); }

/* Bandeau établissements */
.band { background: var(--ink); color: var(--bg); border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 920px) { .band { grid-template-columns: 1fr; } }
.band p { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.band .btn-primary { justify-self: start; }
.band-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.band-list li { display: flex; gap: .6rem; align-items: center; }
.band-list svg { color: var(--care); flex: none; }

/* Zone */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 920px) { .zone { grid-template-columns: 1fr; } }
.chips-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.city { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; font-weight: 700; font-size: .95rem; }
.city.main { background: var(--brand); border-color: var(--brand); color: #fff; }
.zone-map { background: var(--brand-soft); border-radius: var(--r-lg); aspect-ratio: 16 / 10; overflow: hidden; }
.zone-map svg { width: 100%; height: 100%; display: block; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-items: start; }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }
.faq details { background: var(--surface); border-radius: var(--r-sm); border: 1px solid var(--line); }
.faq details[open] { border-color: var(--brand); }
.faq summary { cursor: pointer; padding: 1rem 1.15rem; font-family: var(--font-display); font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.1rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.15rem 1rem; color: var(--muted); }
.faq details p + p { margin-top: -.4rem; }

/* Recrutement */
.recruit { background: var(--care-soft); border-radius: var(--r-lg); padding: clamp(1.75rem, 4vw, 2.75rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem; }
.recruit div { display: grid; gap: .5rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 920px) { .contact { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 1.25rem; }
.callcard { background: var(--brand); color: #fff; border-radius: var(--r-md); padding: 1.5rem; display: grid; gap: .35rem; text-decoration: none; }
.callcard span { opacity: .85; }
.callcard strong { font: 800 2rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.callcard .todo { color: var(--ink); }
:root[data-theme="dark"] .callcard { color: #0b1626; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .callcard { color: #0b1626; } }
.address { font-style: normal; display: grid; gap: .3rem; color: var(--muted); }
.address strong { color: var(--ink); }

form.panel { background: var(--surface); border-radius: var(--r-md); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); display: grid; gap: 1rem; }
form.panel h3 { font-size: 1.35rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
label { font-weight: 700; font-size: .95rem; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: .8rem .9rem; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px var(--brand-soft); }
textarea { min-height: 6rem; resize: vertical; }
.warn { font-size: .9rem; color: var(--alert); font-weight: 700; display: flex; gap: .4rem; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .95rem; }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex: none; }
.form-status { padding: .9rem 1rem; border-radius: var(--r-sm); background: var(--brand-soft); }
.form-status[hidden] { display: none; }

/* Pied de page */
.site-footer { background: var(--ink); color: color-mix(in srgb, var(--bg) 80%, transparent); margin-top: clamp(3rem, 6vw, 5rem); font-size: .95rem; padding-bottom: 4.5rem; }
.site-footer .wrap { padding-block: 2.5rem 1.5rem; display: grid; gap: 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer strong { color: var(--bg); font-family: var(--font-display); }
.site-footer a { color: var(--bg); }
.site-footer ul { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .35rem; }
.footer-legal { border-top: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); padding-top: 1.25rem; font-size: .88rem; }

/* Pages légales */
.legal { padding-block: 2.5rem 1rem; }
.legal .wrap { display: grid; gap: 1.1rem; max-width: 780px; background: var(--surface); border-radius: var(--r-md); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow); }
.legal h2 { font-size: 1.35rem; margin-top: .75rem; }
.legal p { color: var(--muted); }

/* Barre d'appel mobile */
.mobilebar { display: none; }
@media (max-width: 720px) {
  .mobilebar { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15,42,74,.08); }
  .mobilebar .btn { padding: .85rem .5rem; }
  .assistant-toggle { display: none !important; }
}

/* Assistant */
.assistant-toggle {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 20;
  display: inline-flex; align-items: center; gap: .55rem;
  font: 700 1rem/1 var(--font-display);
  background: var(--ink); color: var(--bg);
  border: 0; border-radius: 999px; padding: .95rem 1.25rem; cursor: pointer; box-shadow: var(--shadow);
}
.assistant {
  position: fixed; right: 1.25rem; bottom: 5.2rem; z-index: 31;
  width: min(390px, calc(100% - 1.5rem)); max-height: min(580px, calc(100% - 7rem));
  display: flex; flex-direction: column; background: var(--surface);
  border-radius: 20px; box-shadow: 0 20px 50px rgba(15,42,74,.28); overflow: hidden; border: 1px solid var(--line);
}
@media (max-width: 720px) { .assistant { right: .75rem; bottom: 5.2rem; } }
.assistant[hidden] { display: none; }
.assistant-head { padding: 1rem 1.1rem; background: var(--brand); color: #fff; display: flex; gap: .75rem; align-items: center; }
.assistant-head .avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.assistant-head div { flex: 1; }
.assistant-head strong { font-family: var(--font-display); font-size: 1.05rem; display: block; }
.assistant-head small { font-size: .82rem; opacity: .9; }
.assistant-close { background: none; border: 0; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: .1rem .3rem; }
.assistant-log { padding: 1rem; overflow-y: auto; display: grid; gap: .65rem; align-content: start; flex: 1; font-size: .98rem; background: var(--bg); }
.msg { padding: .7rem .9rem; border-radius: 16px; max-width: 90%; }
.msg p { max-width: none; }
.msg p + p { margin-top: .4rem; }
.msg.bot { background: var(--surface); justify-self: start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--brand); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.msg.alert { background: var(--alert); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.chip { font: inherit; font-size: .88rem; border: 1.5px solid var(--brand); color: var(--brand); background: transparent; border-radius: 999px; padding: .3rem .7rem; cursor: pointer; text-align: left; }
.chip:hover { background: var(--brand-soft); }
.assistant-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--line); background: var(--surface); }
.assistant-form input { flex: 1; }
.assistant-form button { font: 700 .95rem/1 var(--font-display); background: var(--brand); color: #fff; border: 0; border-radius: var(--r-sm); padding: 0 1rem; cursor: pointer; }
.assistant-note { font-size: .78rem; color: var(--muted); padding: 0 .9rem .7rem; background: var(--surface); margin: 0; max-width: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn-primary .todo { color: var(--ink); }
@media (max-width: 720px) {
  .topbar .meta { display: none; }
  .brand small { display: none; }
}

/* ===== v3 : accueil orienté réservation ===== */
:root { --navy: #0c2246; --navy-2: #133063; --go: #0b8a5f; --go-hover: #08734f; --signal: #e5332a; }
.btn-go { background: var(--go); color: #fff; }
.btn-go:hover { background: var(--go-hover); }
.btn-lg { font-size: 1.12rem; padding: 1.1rem 1.6rem; }

/* bande de signalisation rouge et blanche, comme sur les ambulances */
.signal-band { height: 14px; background: repeating-linear-gradient(90deg, var(--signal) 0 14px, #fff 14px 28px); }

.hero-dark { background: radial-gradient(1200px 500px at 85% -10%, var(--navy-2), transparent 60%), var(--navy); color: #fff; padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero-dark .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 960px) { .hero-dark .wrap { grid-template-columns: 1fr; } }
.hero-dark h1 { color: #fff; }
.hero-dark h1 .soft { color: #8fb4ff; }
.hero-dark .lead { color: #c9d6ea; }
.hero-dark .pill { background: rgba(255,255,255,.1); color: #fff; }
.hero-dark .pill .dot { background: var(--go); }
.hero-dark .reassure { color: #c9d6ea; }
.hero-dark .reassure svg { color: #5fd3a6; }
.hero-dark .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.hero-dark .btn-ghost:hover { border-color: #fff; color: #fff; }
.services-line { display: flex; flex-wrap: wrap; gap: .5rem; }
.services-line span { display: inline-flex; gap: .45rem; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: .35rem .8rem; border-radius: 999px; font-weight: 700; font-size: .95rem; }

.book-card { background: var(--surface); color: var(--ink); border-radius: 22px; padding: clamp(1.25rem, 3vw, 1.9rem); box-shadow: 0 24px 60px rgba(0,0,0,.35); display: grid; gap: 1.1rem; }
.book-card header { display: grid; gap: .25rem; }
.book-card header h2 { font-size: 1.5rem; }
.book-card header p { color: var(--muted); font-size: .95rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; border: 0; padding: 0; margin: 0; }
.seg.two { grid-template-columns: repeat(2, 1fr); }
.seg legend { font-weight: 700; font-size: .95rem; margin-bottom: .45rem; padding: 0; }
.seg label { position: relative; display: grid; gap: .2rem; justify-items: center; text-align: center; padding: .8rem .4rem; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 700; font-size: .95rem; background: var(--bg); }
.seg label small { font-weight: 400; color: var(--muted); font-size: .8rem; line-height: 1.25; }
.seg label svg { color: var(--brand); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span, .seg label:has(input:checked) { }
.seg label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-soft); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.book-card .row2 { gap: .75rem; }
.book-note { font-size: .85rem; color: var(--muted); display: flex; gap: .4rem; align-items: center; justify-content: center; text-align: center; }

/* Fenêtre de réservation */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(8, 20, 40, .6); display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.wizard { background: var(--surface); color: var(--ink); width: min(640px, 100%); max-height: calc(100% - 1rem); overflow-y: auto; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.4); display: grid; }
@media (max-width: 560px) { .modal { padding: 0; } .wizard { border-radius: 0; height: 100%; max-height: none; align-content: start; } }
.wizard-head { position: sticky; top: 0; background: var(--surface); padding: 1.1rem 1.4rem .9rem; border-bottom: 1px solid var(--line); display: grid; gap: .7rem; z-index: 1; }
.wizard-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.wizard-title strong { font: 800 1.2rem/1.2 var(--font-display); }
.wizard-close { background: var(--bg); border: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); }
.progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; }
.progress span { height: 6px; border-radius: 99px; background: var(--line); }
.progress span.done { background: var(--brand); }
.step-label { font-size: .9rem; color: var(--muted); }
.wizard-body { padding: 1.4rem; display: grid; gap: 1.15rem; }
.wizard-body h3 { font-size: 1.35rem; }
.wizard-step[hidden] { display: none; }
.wizard-step { display: grid; gap: 1.1rem; }
.wizard-foot { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: .9rem 1.4rem; display: flex; justify-content: space-between; gap: .75rem; }
.wizard-foot .btn { flex: 0 0 auto; }
.err { color: var(--alert); font-weight: 700; font-size: .92rem; }
.err:empty { display: none; }
.toggle { display: flex; gap: .6rem; align-items: center; font-weight: 700; }
.toggle input { width: 1.2rem; height: 1.2rem; }
.summary { display: grid; gap: .1rem; background: var(--bg); border-radius: 14px; padding: .6rem 1rem; margin: 0; }
.summary div { display: grid; grid-template-columns: 9.5rem 1fr; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.summary div:last-child { border-bottom: 0; }
.summary dt { color: var(--muted); font-size: .92rem; }
.summary dd { margin: 0; font-weight: 700; }
@media (max-width: 480px) { .summary div { grid-template-columns: 1fr; gap: .1rem; } }
.done-box { display: grid; gap: .9rem; justify-items: start; }
.done-box .big-ico { width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--care-soft); color: var(--care); }
.done-box.wait .big-ico { background: var(--brand-soft); color: var(--brand); }
.info-box { display: flex; gap: .6rem; padding: .85rem 1rem; border-radius: 12px; background: var(--brand-soft); font-size: .95rem; }
.info-box svg { flex: none; color: var(--brand); margin-top: .15rem; }

/* Cartes transport avec bouton */
.card .btn { justify-self: start; margin-top: .25rem; padding: .7rem 1.1rem; font-size: .95rem; }

/* Bandeau final */
.final { background: var(--navy); color: #fff; border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; }
@media (max-width: 860px) { .final { grid-template-columns: 1fr; } }
.final .txt { padding: clamp(2rem, 5vw, 3.25rem); display: grid; gap: 1rem; justify-items: start; }
.final p { color: #c9d6ea; }
.final svg.scene { width: 100%; height: auto; display: block; }

/* Hôpitaux et cliniques du secteur */
.hosp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
@media (max-width: 980px) { .hosp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .hosp-grid { grid-template-columns: 1fr; } }
.hosp-grid li { display: flex; gap: .8rem; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; }
.hosp-grid .ico { flex: none; width: 2.8rem; height: 2.8rem; border-radius: 14px; background: var(--care-soft); color: var(--care); display: grid; place-items: center; }
.hosp-grid strong { display: block; font-family: var(--font-display); line-height: 1.25; font-size: 1rem; }
.hosp-grid span { color: var(--muted); font-size: .9rem; }
.hosp-more { margin-top: 1.25rem; color: var(--muted); max-width: none; }
.linkbtn { font: inherit; font-weight: 700; color: var(--brand); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* ===== v4 : ligne défilante + mosaïque ===== */
.btn-sm { padding: .6rem 1rem; font-size: .92rem; }
.section-head.compact { margin-bottom: 1.25rem; }

.ticker { background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: stretch; overflow: hidden; }
.ticker-label { flex: none; display: flex; align-items: center; padding: 0 1.25rem; background: var(--brand); color: #fff; font: 800 .92rem/1.2 var(--font-display); position: relative; z-index: 1; }
:root[data-theme="dark"] .ticker-label { color: #0b1626; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ticker-label { color: #0b1626; } }
@media (max-width: 560px) { .ticker-label { display: none; } }
.ticker-viewport { display: flex; overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { list-style: none; margin: 0; padding: 0; display: flex; flex: none; gap: 0; animation: ticker 42s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track li { display: flex; align-items: center; gap: .5rem; padding: 1rem 1.6rem; white-space: nowrap; border-right: 1px solid var(--line); font-size: .95rem; }
.ticker-track svg { color: var(--care); flex: none; }
.ticker-track strong { font-family: var(--font-display); }
.ticker-track span { color: var(--muted); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-viewport { mask-image: none; -webkit-mask-image: none; }
  .ticker-track { animation: none; flex-wrap: wrap; flex: 1; }
  .ticker-track[aria-hidden="true"] { display: none; }
}

.bento { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "amb vsl reg hours"
    "remb remb prep hours"
    "zone zone etab etab"
    "steps steps steps job"; }
@media (max-width: 1020px) {
  .bento { grid-template-columns: repeat(2, 1fr);
    grid-template-areas: "hours hours" "amb vsl" "reg prep" "remb remb" "zone zone" "etab etab" "steps steps" "job job"; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr;
    grid-template-areas: "hours" "amb" "vsl" "reg" "remb" "prep" "zone" "etab" "steps" "job"; }
}
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.4rem; display: grid; gap: .65rem; align-content: start; position: relative; overflow: hidden; }
.tile h3 { font-size: 1.2rem; }
.tile p { color: var(--muted); font-size: .98rem; }
.tile .btn { justify-self: start; margin-top: .25rem; }
.tile .ico { width: 2.9rem; height: 2.9rem; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.t-amb { grid-area: amb; } .t-vsl { grid-area: vsl; } .t-reg { grid-area: reg; }
.t-remb { grid-area: remb; } .t-prep { grid-area: prep; } .t-zone { grid-area: zone; }
.t-etab { grid-area: etab; } .t-steps { grid-area: steps; } .t-job { grid-area: job; }
.tile .fine { font-size: .9rem; }
.tile-tag { justify-self: start; font: 800 .8rem/1 var(--font-display); padding: .4rem .65rem; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; }

.t-hours { grid-area: hours; background: var(--navy); color: #fff; border-color: var(--navy); align-content: space-between; gap: 1rem;
  background-image: radial-gradient(260px 200px at 100% 0%, var(--navy-2), transparent 70%); }
.tile .hours-big { font: 800 clamp(2.4rem, 4vw, 3.1rem)/1.02 var(--font-display); color: #fff !important; letter-spacing: -.03em; }
.hours-phone { display: inline-flex; gap: .55rem; align-items: center; color: #fff; text-decoration: none; font: 800 1.45rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.hours-phone svg { color: #5fd3a6; }
.t-hours address { font-style: normal; color: #c9d6ea; font-size: .95rem; }
.t-hours .btn { justify-self: stretch; }

.t-remb { background: var(--care-soft); border-color: transparent; }
.t-remb .ico { background: var(--surface); color: var(--care); }
.t-remb p { color: var(--ink); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ticks li { display: flex; gap: .55rem; align-items: flex-start; font-size: .96rem; }
.ticks svg { flex: none; color: var(--care); margin-top: .2rem; }

.t-zone { grid-template-columns: 1fr 200px; align-items: center; gap: 1rem; }
.t-zone > div { display: grid; gap: .75rem; }
.t-zone .city { font-size: .85rem; padding: .3rem .7rem; }
.mini-map { width: 100%; height: auto; }
@media (max-width: 600px) { .t-zone { grid-template-columns: 1fr; } .mini-map { max-width: 220px; } }

.t-etab { background: var(--brand); border-color: var(--brand); color: #fff;
  background-image: radial-gradient(300px 200px at 100% 100%, rgba(255,255,255,.16), transparent 70%); }
.t-etab h3 { color: #fff; font-size: 1.4rem; }
.t-etab p { color: rgba(255,255,255,.86); }
.tile-tag.light { background: rgba(255,255,255,.18); }
:root[data-theme="dark"] .t-etab { background-color: #1b4fb3; border-color: #1b4fb3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .t-etab { background-color: #1b4fb3; border-color: #1b4fb3; } }

.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 760px) { .mini-steps { grid-template-columns: 1fr 1fr; } }
.mini-steps li { display: grid; gap: .2rem; align-content: start; position: relative; }
.mini-steps .num { width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 800 .95rem/1 var(--font-display); margin-bottom: .35rem; }
.mini-steps strong { font-family: var(--font-display); }
.mini-steps span:last-child { color: var(--muted); font-size: .92rem; }

.t-job { background: var(--bg); }

/* correctif : le libellé de la ligne défilante ne doit jamais être rogné */
.ticker-viewport { min-width: 0; }
.ticker-label { flex-shrink: 0; white-space: nowrap; }

/* ===== v5 : couleurs adoucies + WhatsApp ===== */
/* bande de marquage : bleu ambulance et bleu clair, au lieu du rouge et blanc */
.signal-band { height: 8px; background: repeating-linear-gradient(135deg, var(--brand) 0 16px, #9cc0ff 16px 32px); }
/* bandeau urgence : texte sombre, simple pastille rouge */
.topbar .urgent { color: var(--ink); }
.topbar .urgent::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--alert); flex: none; }
.hours-wa { display: inline-flex; gap: .5rem; align-items: center; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.hours-wa svg { color: #5fd3a6; }
.wacard { display: flex; gap: .8rem; align-items: center; padding: 1rem 1.2rem; border-radius: var(--r-md); border: 1.5px solid var(--care); color: var(--ink); text-decoration: none; background: var(--care-soft); }
.wacard svg { color: var(--care); flex: none; }
.wacard strong { display: block; font-family: var(--font-display); }
.wacard small { color: var(--muted); font-size: .88rem; }
[hidden] { display: none !important; }

.warn { color: var(--muted); }

/* correctifs iPhone : le champ date ne déborde plus */
input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; display: block; min-height: 3.1rem; text-align: left; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; }
.field { min-width: 0; }
/* barre mobile : Réserver, Une question, WhatsApp */
@media (max-width: 720px) {
  .mobilebar { grid-template-columns: 1fr 1fr auto; }
  .mobilebar .btn-wa { width: 3.3rem; padding: 0; }
}
.btn-wa { background: var(--care-soft); color: var(--care); border-color: var(--care); }
@media (max-width: 720px) {
  .mobilebar .btn { white-space: nowrap; font-size: .95rem; gap: .35rem; }
  .mobilebar .btn-wa { align-self: stretch; }
}
