/* Booking Taxi Maroc — nouvelle version
   Bleu nuit institutionnel, or discret, une seule famille sans empattement. */

:root {
  --encre: #0f172a;
  --encre-2: #334155;
  --muted: #64748b;
  --ligne: #e5e7eb;
  --fond: #ffffff;
  --fond-2: #f8fafc;
  --or: #c89b3c;
  --or-fonce: #a57c22;
  --wa: #25d366;
  --wa-fonce: #1da851;
  --succes: #047857;
  --alerte: #b45309;
  --rayon: 12px;
  --ombre: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--encre-2);
  background: var(--fond);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { color: var(--encre); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 650; margin-top: 1.8em; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--encre); text-decoration: none; }
a:hover { color: var(--or-fonce); }
ul { margin: 0 0 1em; padding-left: 1.1em; }

.conteneur { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.conteneur--etroit { max-width: 760px; }
.centre { text-align: center; }

/* ---------- bandeau + entête ---------- */
.bandeau { background: var(--encre); color: #e2e8f0; font-size: .82rem; }
.bandeau__in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.bandeau__tel { color: #fff; font-weight: 600; white-space: nowrap; }

.entete { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ligne); }
.entete__in { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.marque { display: flex; flex-direction: column; line-height: 1.1; }
.marque__nom { font-weight: 700; color: var(--encre); font-size: 1.05rem; letter-spacing: -.02em; }
.marque__sous { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.nav { display: flex; gap: 18px; margin-left: auto; font-size: .9rem; }
.nav a { color: var(--encre-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.actif { color: var(--encre); border-bottom-color: var(--or); }
.entete__cta { margin-left: 8px; }
.burger { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s, background .12s, box-shadow .12s;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn--primaire { background: var(--encre); color: #fff; }
.btn--primaire:hover { background: #1e293b; color: #fff; box-shadow: var(--ombre); }
.btn--wa { background: var(--wa); color: #06301a; }
.btn--wa:hover { background: var(--wa-fonce); color: #fff; }
.btn--large { width: 100%; padding: 14px 22px; }
.btn--petit { padding: 7px 12px; font-size: .82rem; border-radius: 8px; background: var(--fond-2); border-color: var(--ligne); color: var(--encre); }
.btn--petit:hover { background: #eef2f7; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------- héro ---------- */
.hero { background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); border-bottom: 1px solid var(--ligne); padding: 42px 0 48px; }
.hero__grille { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.surtitre { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--or-fonce); font-weight: 700; margin-bottom: 12px; }
.hero__promesse { font-size: 1.02rem; color: var(--encre-2); max-width: 46ch; }
.points { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 8px; }
.points li { position: relative; padding-left: 26px; font-size: .93rem; }
.points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--succes); font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- calculateur ---------- */
.carte-calculateur { background: #fff; border: 1px solid var(--ligne); border-radius: 16px; box-shadow: var(--ombre); padding: 22px; }
.carte-calculateur__titre { font-weight: 700; color: var(--encre); font-size: 1.05rem; margin-bottom: 14px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 5px; font-size: .82rem; font-weight: 600; color: var(--encre); }
.form input, .form select, .form textarea {
  font: inherit; font-size: .95rem; padding: 11px 12px; border: 1px solid #d5dae1; border-radius: 10px;
  background: #fff; color: var(--encre); width: 100%; min-height: 44px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--or); outline-offset: 1px; border-color: var(--or); }
.form__ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.resultat { background: var(--fond-2); border: 1px solid var(--ligne); border-radius: 12px; padding: 14px; display: grid; gap: 2px; }
.resultat__label { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.resultat__prix { font-size: 1.9rem; font-weight: 700; color: var(--encre); letter-spacing: -.02em; }
.resultat__note { font-size: .8rem; color: var(--muted); }
.mentions { font-size: .78rem; color: var(--muted); margin: 4px 0 0; }

/* ---------- sections ---------- */
.section { padding: 52px 0; }
.section--gris { background: var(--fond-2); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.section--sombre { background: var(--encre); color: #cbd5e1; }
.section--sombre h2 { color: #fff; }
.section__tete { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section__tete h2 { margin: 0; }
.lien { color: var(--or-fonce); font-weight: 600; font-size: .9rem; }
.chapeau { font-size: 1.02rem; color: var(--encre-2); max-width: 62ch; }

.grille { display: grid; gap: 16px; }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--4 { grid-template-columns: repeat(4, 1fr); }
.grille--5 { grid-template-columns: repeat(5, 1fr); }

.carte { display: block; background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 16px; transition: box-shadow .15s, transform .15s; }
a.carte:hover { box-shadow: var(--ombre); transform: translateY(-2px); color: inherit; }
.carte__haut { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.carte__titre { font-weight: 650; color: var(--encre); font-size: .97rem; }
.carte__prix { font-weight: 700; color: var(--or-fonce); white-space: nowrap; }
.carte__meta { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.carte__chiffres { display: flex; gap: 14px; margin-top: 10px; font-size: .84rem; color: var(--encre-2); }
.carte--vehicule .carte__chiffres span { background: var(--fond-2); border-radius: 8px; padding: 4px 9px; }
.equipements { list-style: none; padding: 0; margin: 12px 0 0; font-size: .82rem; color: var(--muted); display: grid; gap: 4px; }
.avantages > div { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--rayon); padding: 16px; }
.avantages strong { color: #fff; display: block; margin-bottom: 6px; font-size: .95rem; }
.avantages p { font-size: .86rem; margin: 0; color: #cbd5e1; }

/* ---------- tableaux ---------- */
.tableau-enveloppe { overflow-x: auto; border: 1px solid var(--ligne); border-radius: var(--rayon); background: #fff; }
.tableau { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.tableau th, .tableau td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #f1f3f6; }
.tableau th { background: var(--fond-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.tableau tr:last-child td { border-bottom: 0; }
.droite { text-align: right; }
.prix-cell { font-weight: 700; color: var(--encre); white-space: nowrap; }
.discret { color: var(--muted); font-size: .8rem; }
.titre-groupe { margin-top: 1.6em; font-size: 1.05rem; }

/* ---------- page trajet ---------- */
.ariane { font-size: .8rem; color: var(--muted); padding: 16px 20px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.ariane a { color: var(--muted); }
.page-trajet { padding: 20px 0 52px; }
.page-trajet__tete { max-width: 74ch; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.badge { background: var(--fond-2); border: 1px solid var(--ligne); border-radius: 999px; padding: 5px 12px; font-size: .78rem; color: var(--encre-2); font-weight: 600; }
.badge--or { background: #fdf6e7; border-color: #f0dcb0; color: var(--or-fonce); }
.deux-colonnes { display: grid; grid-template-columns: 1.55fr .85fr; gap: 34px; align-items: start; margin-top: 22px; }
.colonne-laterale { position: sticky; top: 88px; }
.carte-devis { background: #fff; border: 1px solid var(--ligne); border-radius: 16px; box-shadow: var(--ombre); padding: 20px; display: grid; gap: 12px; }
.carte-devis__titre { font-weight: 700; color: var(--encre); }
.carte-devis__prix { font-size: 1.5rem; font-weight: 700; color: var(--or-fonce); margin: 0; }
.liste-inclus, .liste-exclus { list-style: none; padding: 0; display: grid; gap: 7px; font-size: .92rem; }
.liste-inclus li::before { content: "✓ "; color: var(--succes); font-weight: 700; }
.liste-exclus li::before { content: "— "; color: var(--muted); }
.etapes { display: grid; gap: 12px; margin: 8px 0 4px; }
.etape { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.etape span { width: 34px; height: 34px; border-radius: 50%; background: var(--encre); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.etape p { margin: 2px 0 0; font-size: .88rem; color: var(--muted); }
.programme { padding-left: 1.2em; display: grid; gap: 6px; font-size: .93rem; }

/* ---------- accordéon ---------- */
.accordeon { border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; background: #fff; }
.accordeon details { border-bottom: 1px solid #f1f3f6; }
.accordeon details:last-child { border-bottom: 0; }
.accordeon summary { cursor: pointer; padding: 14px 16px; font-weight: 600; color: var(--encre); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.accordeon summary::-webkit-details-marker { display: none; }
.accordeon summary::after { content: "+"; color: var(--or-fonce); font-weight: 700; }
.accordeon details[open] summary::after { content: "−"; }
.accordeon p { padding: 0 16px 14px; margin: 0; font-size: .92rem; color: var(--encre-2); }

/* ---------- confirmation ---------- */
.pastille-ok { display: inline-block; background: #d1fae5; color: var(--succes); font-weight: 700; font-size: .78rem; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.prix-rappel { font-weight: 700; color: var(--encre); font-size: 1.1rem; }

/* ---------- pied ---------- */
.pied { background: var(--encre); color: #94a3b8; padding: 44px 0 20px; font-size: .88rem; }
.pied a { color: #cbd5e1; }
.pied a:hover { color: #fff; }
.pied__grille { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 26px; }
.pied__marque { color: #fff; font-weight: 700; margin-bottom: 8px; }
.pied__titre { color: #fff; font-weight: 650; margin-bottom: 8px; font-size: .9rem; }
.pied__liste { list-style: none; padding: 0; display: grid; gap: 5px; }
.pied__bas { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 26px; padding-top: 16px; font-size: .8rem; }

/* ---------- mobile ---------- */
@media (max-width: 980px) {
  .hero__grille, .deux-colonnes { grid-template-columns: 1fr; }
  .colonne-laterale { position: static; }
  .grille--4, .grille--5 { grid-template-columns: repeat(2, 1fr); }
  .pied__grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--ligne); flex-direction: column; padding: 12px 20px; gap: 10px; box-shadow: var(--ombre); }
  .nav.ouvert { display: flex; }
  .burger { display: block; margin-left: auto; }
  .entete__cta { display: none; }
  .grille--3, .grille--4, .grille--5 { grid-template-columns: 1fr; }
  .pied__grille { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
  .bandeau__in span { font-size: .74rem; }
}
