/* ===== Allo Taxi Santé — Design system ===== */
:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --ink: #0f2233;
  --ink-soft: #41566a;
  --muted: #6c8093;
  --line: #e4ebf1;

  --brand: #0a8e7f;       /* vert-soin, confiance médicale */
  --brand-dark: #076e62;
  --brand-soft: #e7f4f2;
  --accent: #ff8a3d;      /* orange chaleureux pour les CTA secondaires */
  --navy: #0f2a45;        /* sections sombres */

  --ok: #1aa260;
  --no: #d8453a;
  --warn: #c98a00;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(15, 42, 69, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 42, 69, 0.28);
  --maxw: 1160px;
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
/* L'attribut HTML [hidden] doit toujours primer sur les display: des classes */
[hidden] { display: none !important; }
em { font-style: normal; color: var(--brand); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ===== Buttons ===== */
.btn {
  --pad-y: 12px; --pad-x: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 16px; line-height: 1;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s;
  white-space: nowrap; font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(10,142,127,.6); }
.btn--primary:hover { background: var(--brand-dark); box-shadow: 0 12px 26px -8px rgba(10,142,127,.65); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #f0f4f8; }
.btn--lg { --pad-y: 16px; --pad-x: 30px; font-size: 17px; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -6px rgba(10,142,127,.7);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; font-size: 19px; color: var(--ink); }
.brand__text small { font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a { padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--ink-soft); transition: background .15s, color .15s; }
.nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.nav__cta { background: var(--brand); color: #fff !important; }
.nav__cta:hover { background: var(--brand-dark) !important; }
.header__phone { font-weight: 800; color: var(--brand-dark); font-size: 16px; white-space: nowrap; }

/* Bouton hamburger (mobile) */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; margin-left: 6px; background: none; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2.5px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { padding: 64px 0 56px; background:
  radial-gradient(1200px 500px at 85% -10%, var(--brand-soft), transparent 60%),
  linear-gradient(180deg, #fff, var(--bg)); }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.01em;
  color: var(--ink); margin-bottom: 20px;
}
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 560px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; color: var(--ink-soft); font-size: 15px; }

.hero__card { display: flex; justify-content: center; }
.quickcard {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 380px;
}
.quickcard h3 { font-size: 1.4rem; margin-bottom: 8px; }
.quickcard p { color: var(--muted); margin-bottom: 20px; }
.quickcard__trust { display: flex; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.quickcard__trust div { display: flex; flex-direction: column; }
.quickcard__trust strong { font-size: 1.3rem; color: var(--brand-dark); font-family: var(--display); }
.quickcard__trust span { font-size: 13px; color: var(--muted); }

/* ===== Strip ===== */
.strip { background: var(--navy); color: #cfe0ee; }
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; padding: 16px 24px; font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.strip__inner span:nth-child(even) { color: var(--brand); }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.eyebrow { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow--light { color: #8fe6da; }
.section__head h2, .split__content h2, .book__intro h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.12; letter-spacing: -.01em; margin-bottom: 14px;
}
.section__head p { color: var(--ink-soft); font-size: 1.1rem; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.section--alt .card { background: var(--bg); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe6e2; }
.card__icon { width: 56px; height: 56px; display: grid; place-items: center; background: var(--brand-soft); border-radius: 14px; margin-bottom: 18px; color: var(--brand-dark); }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 16px; }
.card__tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); padding: 5px 11px; border-radius: 999px; }

/* ===== Split ===== */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.figure {
  background: linear-gradient(160deg, var(--brand), var(--brand-dark));
  color: #fff; border-radius: 22px; padding: 44px 38px; box-shadow: var(--shadow-lg);
}
.figure__big { font-family: var(--display); font-size: 5rem; font-weight: 600; line-height: 1; }
.figure > p { font-size: 1.15rem; opacity: .92; margin: 10px 0 28px; max-width: 280px; }
.figure__row { display: flex; gap: 30px; border-top: 1px solid rgba(255,255,255,.25); padding-top: 22px; }
.figure__row div { display: flex; flex-direction: column; }
.figure__row strong { font-size: 1.5rem; font-family: var(--display); }
.figure__row span { font-size: 13.5px; opacity: .85; }

.feature-list { list-style: none; display: grid; gap: 18px; margin: 26px 0 30px; }
.feature-list li { position: relative; padding-left: 36px; color: var(--ink-soft); }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.feature-list strong { color: var(--ink); }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; text-align: center; }
.section--alt .step { background: var(--bg); }
.step__num {
  display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 16px;
  background: var(--brand); color: #fff; border-radius: 50%; font-weight: 800; font-size: 1.3rem; font-family: var(--display);
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* ===== Réservation ===== */
.section--book { background: linear-gradient(160deg, var(--navy), #0a1f35); color: #eaf2f9; }
.book { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.book__intro h2 { color: #fff; }
.book__intro p { color: #b9cde0; font-size: 1.08rem; margin-bottom: 22px; }
.book__intro strong { color: #fff; }
.book__reassure { list-style: none; display: grid; gap: 10px; font-weight: 600; color: #d6e6f3; margin-bottom: 26px; }
.book__call { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: 16px 18px; color: #b9cde0; }
.book__call a { color: #8fe6da; font-weight: 800; font-size: 1.1rem; }

.book__form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 700; font-size: 14px; margin-bottom: 7px; color: var(--ink); }
.field label span { color: var(--no); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); transition: border-color .15s, box-shadow .15s, background .15s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.field input.invalid, .field select.invalid { border-color: var(--no); box-shadow: 0 0 0 4px rgba(216,69,58,.12); }
.field textarea { resize: vertical; }
.book__legal { font-size: 13px; color: var(--muted); text-align: center; margin-top: 14px; }

.slot-hint { font-size: 14px; font-weight: 600; border-radius: var(--radius-sm); padding: 12px 14px; margin: -4px 0 16px; }
.slot-hint--warn { background: #fdf3df; color: #9a6b00; border: 1px solid #f3e0b0; }

/* Honeypot anti-bot : hors écran, jamais visible ni focusable visuellement */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn--sm { --pad-y: 9px; --pad-x: 16px; font-size: 14px; }
.field label .opt { font-weight: 500; color: var(--muted); font-size: 12.5px; }

/* Options aller-retour / récurrent */
.opt-toggle { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-weight: 600; color: var(--ink); cursor: pointer; font-size: 15px; }
.opt-toggle input { width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.opt-panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 14px; }
.opt-panel__hint { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.weekdays { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.weekdays label { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 14px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.weekdays input { accent-color: var(--brand); }

/* Consentement RGPD */
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--brand); }
.consent input.invalid { outline: 2px solid var(--no); outline-offset: 2px; border-radius: 3px; }
.consent a { color: var(--brand-dark); font-weight: 700; text-decoration: underline; }
.consent .req { color: var(--no); }

/* Référence dans le message de succès */
.ref-badge { display: inline-block; background: var(--brand-soft); color: var(--brand-dark); padding: 4px 12px; border-radius: 8px; font-size: 1.05rem; letter-spacing: .02em; }
.ref-note { font-size: 13.5px; color: var(--muted); }

/* Suivre ma demande */
.track { max-width: 720px; margin: 0 auto; }
.track__intro { text-align: center; margin-bottom: 28px; }
.track__intro p { color: var(--ink-soft); }
.track__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.track__result { margin-top: 18px; padding: 18px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); }
.track__status { font-weight: 800; font-size: 1.05rem; margin-bottom: 6px; }
.track__status--accepted { color: var(--ok); }
.track__status--pending { color: var(--warn); }
.track__status--refused, .track__status--cancelled { color: var(--no); }
.track__meta { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 12px; }
.track__err { color: var(--no); font-weight: 600; }

/* Bannière cookies */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 720px; margin: 0 auto;
  background: var(--navy); color: #e4eefa; border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cookie p { font-size: 14px; flex: 1; min-width: 220px; }
.cookie a { color: #8fe6da; font-weight: 700; text-decoration: underline; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 22px; }
.section--alt .faq__item { background: var(--surface); }
.faq__item summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; color: var(--ink); padding: 16px 0; list-style: none; position: relative; padding-right: 30px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--brand); font-weight: 400; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--ink-soft); padding: 0 0 18px; margin: 0; }

/* Page mentions légales */
.legal { padding: 50px 0 80px; background: var(--bg); min-height: 70vh; }
.legal__inner { max-width: 820px; margin: 0 auto; }
.legal h1 { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 6px; }
.legal__updated { color: var(--muted); margin-bottom: 30px; }
.legal h2 { font-size: 1.25rem; margin: 28px 0 10px; color: var(--ink); }
.legal p { color: var(--ink-soft); margin-bottom: 12px; }
.legal a { color: var(--brand-dark); font-weight: 600; }
.legal__list { list-style: none; display: grid; gap: 10px; margin: 14px 0 18px; }
.legal__list li { padding-left: 22px; position: relative; color: var(--ink-soft); }
.legal__list li::before { content: "•"; position: absolute; left: 4px; color: var(--brand); font-weight: 800; }
.legal__todo { background: #fdf3df; border: 1px solid #f3e0b0; color: #9a6b00; font-size: 13.5px; padding: 10px 14px; border-radius: var(--radius-sm); }
.legal__back { margin-top: 32px; }

.book__success { text-align: center; padding: 20px 10px; }
.book__success-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 2rem; font-weight: 800;
}
.book__success h3 { font-size: 1.5rem; margin-bottom: 8px; }
.book__success p { color: var(--ink-soft); margin-bottom: 20px; }

/* ===== Zones ===== */
.zones { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.zones span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-weight: 600; color: var(--ink-soft); }
.section--alt .zones span { background: var(--bg); }

/* ===== Avis ===== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.review__stars { color: #f5a623; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 14px; }
.review p { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 16px; }
.review footer { font-weight: 700; color: var(--ink); }

/* ===== CTA ===== */
.cta { background: linear-gradient(150deg, var(--brand), var(--brand-dark)); color: #fff; padding: 76px 0; }
.cta__inner { text-align: center; max-width: 720px; }
.cta h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 12px; }
.cta p { font-size: 1.15rem; opacity: .92; margin-bottom: 28px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.footer { background: var(--navy); color: #aebfd0; padding: 60px 0 26px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer__brand .brand__text { color: #fff; font-size: 21px; margin-bottom: 12px; }
.footer__brand .brand__text small { color: #8fe6da; }
.footer__brand p { font-size: 14.5px; max-width: 300px; }
.footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: .03em; }
.footer__col a, .footer__col span { display: block; color: #aebfd0; font-size: 14.5px; margin-bottom: 9px; transition: color .15s; }
.footer__col a:hover { color: #8fe6da; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: #7e93a8; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__card { justify-content: flex-start; }
  .quickcard { max-width: 100%; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .steps, .reviews { grid-template-columns: 1fr; }
  .book { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header__phone { margin-left: auto; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 10px 16px 16px;
  }
  .header.nav-open .nav { display: flex; }
  .nav a { padding: 13px 14px; font-size: 16px; border-radius: 10px; }
  .nav__cta { text-align: center; margin-top: 4px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}
@media (max-width: 420px) {
  .header__phone { display: none; } /* le bouton Appeler reste dans le hero */
  .brand__text { font-size: 17px; }
}
