/* =================================================================
   styles.css — Calculateur de devis Voyages Degrève
   -----------------------------------------------------------------
   Charte : orange #f46c24, brun #2c2721, neutres chauds.
   Titres Yanone Kaffeesatz, corps Source Sans 3, accent Pacifico.
   Mobile-first, coins arrondis généreux, ombres douces.
   Aucune dépendance, aucun build. Reproduit fidèlement la maquette
   de référence (design_handoff). Icônes : SVG inline dans le HTML/JS.
   ================================================================= */

:root {
  /* Marque */
  --orange: #f46c24;
  --orange-hover: #df5d18;
  --orange-light: #f48042;
  --sun: #f4b13d;
  --sun-soft: #ffd86b;

  /* Encre / brun */
  --ink: #2c2721;
  --ink-soft: #6f655a;
  /* Ces deux gris etaient a 3,9:1 et 2,6:1 sur blanc, sous le seuil lisible de
     4,5:1. Public age, telephone en plein soleil : on remonte au seuil en
     restant dans la famille brun chaud. */
  --ink-mute: #7f7568;
  --ink-faint: #7f7568;
  --sand: #ded9d3;
  --taupe: #c8c0b6;

  /* Neutres chauds */
  --cream: #faf7f3;
  --white: #fff;
  --border: #ece5db;
  --border-warm: #f1eadf;

  /* Vert validation */
  --green: #2e9e5b;
  --green-light: #34b46a;
  --green-bg: #eef8f1;
  --green-bg2: #f6f9f4;
  --green-border: #c9e7d3;
  --green-border2: #d8ecde;

  /* Rouge erreur */
  --red: #e0571a;
  --red-halo: rgba(224, 87, 26, .13);

  /* Dégradés */
  --grad-sunset: linear-gradient(90deg, #f4b13d 0%, #f46c24 55%, #a8472a 100%);
  --grad-cta: linear-gradient(90deg, #f4b13d 0%, #f46c24 58%, #df5d18 100%);
  --grad-hero: linear-gradient(180deg, #ffe2ad, #ffc879 40%, #f9a657 74%, #f08a4a);
  --road: linear-gradient(180deg, #6e4225, #4a2913);

  /* Easing */
  --ease: cubic-bezier(.5, 0, .5, 1);
  --bounce: cubic-bezier(.3, 1.3, .5, 1);

  --maxw: 920px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: #faf7f3;
  color: var(--ink);
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Filet de securite : un nom de fichier ou une adresse sans espace ne doit
     jamais pouvoir faire defiler la page horizontalement. */
  overflow-wrap: break-word;
}

/* Texte reserve aux lecteurs d'ecran (annonces d'etape, nombre de suggestions). */
.dg-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* Zone de contact de 44px minimum sans changer le visuel du bouton. */
.dg-hit44 { position: relative; }
.dg-hit44::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%);
}

/* ---------- Page & header ---------- */
.dg-page {
  min-height: 100vh;
  min-height: 100svh;   /* mobile : hauteur reelle, barre d'URL deployee */
  background: radial-gradient(120% 80% at 50% -10%, #fff6ec 0%, #faf7f3 46%, #f5efe7 100%);
  padding: clamp(14px, 3.5vw, 26px) clamp(12px, 4vw, 20px) 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dg-header {
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.dg-brand { display: flex; align-items: center; gap: 14px; }
.dg-logo { height: clamp(42px, 11vw, 54px); width: auto; max-width: 100%; display: block; }
.dg-brand-fallback {
  display: none;
  font-family: 'Pacifico', cursive;
  font-size: 26px;
  color: var(--orange);
}
.dg-header-meta { text-align: right; line-height: 1.2; }
.dg-header-title {
  font-family: 'Yanone Kaffeesatz', sans-serif;
  font-weight: 600; font-size: 20px; color: var(--ink);
}
.dg-header-sub { font-size: 13px; color: var(--ink-soft); }

.dg-root { width: 100%; display: flex; flex-direction: column; align-items: center; }
.dg-wrap { width: 100%; max-width: var(--maxw); }
.dg-wrap-narrow {
  width: 100%; max-width: 800px;
  display: flex; flex-direction: column; gap: 18px;
  animation: dgRise .5s var(--ease);
}

/* ---------- Bandeau de confiance ---------- */
.dgv-trust {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px 30px; margin: 0 2px 14px; padding: 13px 20px;
  background: var(--white); border: 1px solid var(--border-warm);
  border-radius: 16px; box-shadow: 0 8px 22px rgba(44, 39, 33, .05);
}
.dg-trust-item { display: flex; align-items: center; gap: 9px; }
.dg-trust-item .dg-trust-ico {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; background: #fff3e8; flex: none;
}
.dg-trust-strong { font-weight: 700; color: var(--ink); font-size: 14px; }
.dg-trust-strong.lg { font-weight: 800; font-size: 14.5px; }
.dg-trust-mute { color: var(--ink-mute); font-size: 13.5px; }

/* ---------- Barre de progression route + bus ---------- */
.dgv-progress {
  position: sticky; top: 0; z-index: 20;
  padding: 16px 4px 10px; margin-bottom: 6px;
  background: #faf7f3;
  box-shadow: 0 10px 18px -10px rgba(44, 39, 33, .16);
}
.dg-progress-inner { position: relative; height: 118px; }
.dg-road {
  position: absolute; left: 14px; right: 14px; top: 56px; height: 20px;
  border-radius: 11px; background: var(--road);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .35), 0 4px 10px rgba(44, 39, 33, .18);
  overflow: hidden;
}
.dg-road-dashes {
  position: absolute; left: 0; right: 0; top: 9px; height: 3px;
  background: repeating-linear-gradient(90deg, #f3ddc0 0 22px, transparent 22px 48px);
  opacity: .7;
}
.dg-road-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--grad-sunset); opacity: .92;
  transition: width .6s var(--ease);
  box-shadow: 0 0 14px rgba(244, 108, 36, .5);
}
.dg-stop {
  position: absolute; top: 46px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.dg-stop-marker {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Yanone Kaffeesatz', sans-serif; font-weight: 600; font-size: 19px;
  transition: all .3s; border: 2.5px solid var(--sand);
  background: var(--white); color: var(--taupe);
  box-shadow: 0 2px 5px rgba(44, 39, 33, .08);
}
.dg-stop.is-done .dg-stop-marker {
  border-color: var(--sun); color: var(--sun); cursor: pointer;
}
.dg-stop.is-current .dg-stop-marker {
  border-color: var(--orange); background: var(--orange); color: #fff;
  box-shadow: 0 7px 16px rgba(244, 108, 36, .38); cursor: pointer;
}
.dg-stop-label {
  margin-top: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .2px;
  color: var(--taupe); white-space: nowrap; transition: color .3s;
}
.dg-stop.is-done .dg-stop-label { color: var(--ink-soft); }
.dg-stop.is-current .dg-stop-label { font-weight: 700; color: var(--ink); }
.dg-bus-onroad {
  position: absolute; bottom: 48px; transform: translateX(-50%);
  transition: left .6s var(--ease); z-index: 5;
  filter: drop-shadow(0 5px 5px rgba(44, 39, 33, .28));
}
.dg-bus-onroad .dg-bus-scale { zoom: .215; }

/* ---------- Carte d'étape ---------- */
.dg-card {
  background: var(--white); border-radius: 22px;
  box-shadow: 0 20px 54px rgba(44, 39, 33, .10), 0 2px 6px rgba(44, 39, 33, .05);
  padding: clamp(20px, 5vw, 38px) clamp(18px, 5vw, 40px) clamp(20px, 5vw, 34px);
  border: 1px solid var(--border-warm);
}
.dg-step { animation: dgStepIn .42s cubic-bezier(.22, .9, .3, 1); }
.dg-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 6px;
}
.dg-h2 {
  font-family: 'Yanone Kaffeesatz', sans-serif; font-weight: 600;
  font-size: clamp(27px, 6.5vw, 38px); line-height: 1.02; margin: 0 0 6px; color: var(--ink);
}
.dg-lead { margin: 0 0 26px; font-size: 16px; color: var(--ink-soft); }

/* ---------- Bandeau d'erreur ---------- */
.dg-errbanner {
  display: flex; align-items: flex-start; gap: 11px;
  background: #fdeee6; border: 1.5px solid #f4c4a6; border-radius: 14px;
  padding: 13px 16px; margin-bottom: 22px; animation: dgPop .3s ease;
}
.dg-errbanner svg { flex: none; margin-top: 1px; }
.dg-errbanner span { font-size: 14.5px; font-weight: 600; color: #a8431a; line-height: 1.45; }

/* ---------- Champs ---------- */
.dg-field { position: relative; margin-bottom: 22px; }
.dg-label {
  display: block; font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px;
}
.dg-label .opt { font-weight: 400; color: var(--ink-faint); }
.dg-input, .dg-textarea {
  width: 100%; min-width: 0; max-width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--border); border-radius: 12px;
  padding: 14px 16px; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
/* Champs date/heure : sur iOS (Safari), l'input natif NE respecte PAS width:100%
   et deborde a droite, surtout une fois rempli. On normalise l'apparence pour qu'il
   se comporte comme une boite normale, et on garantit qu'il ne depasse jamais. */
.dg-input[type="date"], .dg-input[type="time"] {
  -webkit-appearance: none; appearance: none;
  min-height: 52px;                 /* evite l'ecrasement vertical quand l'apparence est reset */
}
.dg-input[type="date"]::-webkit-date-and-time-value { text-align: left; }
/* 16px OBLIGATOIRE : en dessous, Safari iOS zoome sur le champ a la mise au point
   et ne dezoome jamais. Ne pas redescendre a 15.5px pour gagner une ligne. */
.dg-textarea { font-size: 16px; line-height: 1.5; resize: vertical; }
.dg-input.has-icon { padding-left: 44px; }
.dg-input:focus, .dg-textarea:focus {
  border-color: var(--orange-light); box-shadow: 0 0 0 4px rgba(244, 108, 36, .14);
}
.dg-input.is-error, .dg-textarea.is-error {
  border-color: var(--red); box-shadow: 0 0 0 4px var(--red-halo);
}
.dg-field-icon { position: absolute; left: 15px; top: 41px; pointer-events: none; }
.dg-fielderr {
  display: flex; align-items: center; gap: 6px; margin-top: 7px;
  font-size: 13px; font-weight: 600; color: var(--red);
}
.dg-fielderr.center { justify-content: center; }

/* Autocomplete dropdown */
.dg-suggest {
  position: absolute; left: 0; right: 0; top: 78px; z-index: 30;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 16px 34px rgba(44, 39, 33, .16); overflow: hidden;
}
.dg-suggest-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px;
  cursor: pointer; font-size: 15px; color: var(--ink); border-bottom: 1px solid #f4efe7;
  transition: background .12s;
}
.dg-suggest-item:last-child { border-bottom: none; }
.dg-suggest-item:hover, .dg-suggest-item.is-active { background: #fff7f0; }
.dg-suggest-loading {
  padding: 12px 16px; font-size: 14px; color: var(--ink-faint);
  display: flex; align-items: center; gap: 9px;
}

/* ---------- Onglets / toggles ---------- */
.dg-tabs { display: flex; gap: 12px; margin-bottom: 22px; }
.dg-tab {
  flex: 1; font: inherit; font-weight: 600; font-size: 15.5px;
  color: var(--ink-soft); background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 14px; cursor: pointer; transition: all .18s;
}
.dg-tab svg { vertical-align: -4px; margin-right: 8px; }
.dg-tab.is-on {
  color: #fff; background: linear-gradient(90deg, #f48042, #f46c24);
  border-color: var(--orange); box-shadow: 0 8px 18px rgba(244, 108, 36, .26);
}
.dg-bigtog { display: flex; gap: 12px; margin-bottom: 26px; }
.dg-bigtog .dg-tab { font-size: 16px; border-radius: 14px; padding: 18px; }

/* Choix discret AU-DESSUS d'un champ heure : « ce que je connais, c'est... ».
   Il tient la place d'un label (même hauteur), et ne crie pas : ce n'est pas
   une décision de parcours, juste la façon de dire son horaire. */
.dg-seg {
  display: inline-flex; gap: 2px; margin-bottom: 7px; padding: 2px;
  background: #f4efe8; border-radius: 9px; max-width: 100%;
}
.dg-seg-btn {
  font: inherit; font-size: 12px; font-weight: 600; line-height: 1.2;
  color: var(--ink-faint); background: transparent; border: none;
  border-radius: 7px; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
  /* 5px de padding donnaient un bouton de 24px de haut, trop petit pour un
     pouce. On monte a ~34px sans grossir le texte : le controle garde son
     format compact, qui est voulu (il vit a la place d'un label).
     PAS de zone de contact invisible de 44px ici : centree sur un bouton de
     cette taille, elle mordrait sur le champ heure juste en dessous et lui
     volerait ses taps, ce qui serait pire que le probleme. */
  padding: 10px 11px;
}
.dg-seg-btn.is-on { color: var(--orange-dark, #bf4d0e); background: #fff; box-shadow: 0 1px 2px rgba(44,39,33,.10); }
.dg-seg-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }

/* ---------- Lignes de date/heure ---------- */
/* Les champs d'une même ligne s'alignent PAR LE BAS : au-dessus de l'un il y a
   un label, au-dessus de l'autre un petit choix (« Je pars à / J'y suis à »),
   et ces deux-là n'ont pas la même hauteur. Sans ça, les deux cases étaient
   décalées de 7 px, ce qui se voit tout de suite. */
.dg-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dg-row.tight { margin-bottom: 14px; }
.dg-col { flex: 1; min-width: 180px; }
.dg-col.sm { min-width: 130px; }
.dg-input.compact { padding: 13px 16px; }
/* PIÈGE : en display:flex, CHAQUE morceau du texte devient une colonne. Une
   phrase contenant un <strong> ou un <a> se cassait en trois blocs côte à côte
   (« Indiquez l'heure à laquelle | être sur place | , comme vous la diriez »).
   L'icône est donc posée en absolu et le texte coule normalement. */
.dg-hint {
  position: relative; padding-left: 23px; font-size: 13.5px; line-height: 1.5;
  color: var(--ink-faint);
}
.dg-hint > svg:first-child { position: absolute; left: 0; top: 2px; }

.dg-note-soft {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff7f0; border: 1px solid #f6e3cf; border-radius: 14px;
  padding: 14px 16px; margin-bottom: 18px;
}
.dg-note-soft svg { flex: none; margin-top: 1px; }
.dg-note-soft span { font-size: 15px; color: var(--ink-soft); }
.dg-note-multi {
  display: flex; align-items: flex-start; gap: 11px;
  background: #fff7f0; border: 1px solid #f6e3cf; border-radius: 14px;
  padding: 13px 16px; margin-top: 16px;
}
.dg-note-multi svg { flex: none; margin-top: 1px; }
.dg-note-multi span { font-size: 14.5px; color: var(--ink-soft); }
.dg-note-multi strong { color: var(--ink); }

/* ---------- Compteur de personnes ---------- */
.dg-counter { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 14px; }
.dg-counter-btn {
  width: 54px; height: 54px; border-radius: 16px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--orange); font-size: 26px; line-height: 1;
  cursor: pointer; transition: all .15s; flex: none;
}
.dg-counter-btn:hover { border-color: var(--orange-light); background: #fff7f0; }
.dg-counter-btn:active { transform: scale(.94); }
.dg-counter-center { min-width: 168px; max-width: 100%; text-align: center; }
.dg-counter-input {
  width: 168px; max-width: 100%; text-align: center; font-family: 'Yanone Kaffeesatz', sans-serif;
  font-weight: 600; font-size: 50px; line-height: 1; color: var(--ink);
  border: 1.5px solid var(--border); background: var(--white); outline: none;
  border-radius: 16px; padding: 8px 10px; transition: border-color .15s, box-shadow .15s;
}
.dg-counter-input::placeholder { color: #d8cfc2; font-weight: 600; }
.dg-counter-input:focus { color: var(--orange); border-color: var(--orange-light); box-shadow: 0 0 0 4px rgba(244,108,36,.10); }
.dg-counter-input.is-error { border-color: #c0563a; background: #fdf4f1; }
/* Petits ecrans : le compteur (2 boutons de 54px + grand champ) tient sans deborder. */
@media (max-width: 400px) {
  .dg-counter { gap: 12px; }
  .dg-counter-center { min-width: 0; }
  .dg-counter-input { width: 132px; font-size: 42px; }
}
.dg-counter-sub { font-size: 13px; color: var(--ink-faint); letter-spacing: .3px; margin-top: 8px; }

.dg-reassure {
  display: flex; align-items: center; gap: 9px;
  background: var(--green-bg2); border: 1px solid var(--green-border2); border-radius: 12px;
  padding: 11px 14px; margin-bottom: 28px;
}
.dg-reassure svg { flex: none; }
.dg-reassure span { font-size: 14.5px; color: #4f7a5c; }

/* ---------- Chips besoins particuliers ---------- */
.dg-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.dg-chip {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-soft);
  background: var(--white); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 14px 16px; cursor: pointer; transition: all .16s;
}
.dg-chip.is-on {
  color: var(--ink); background: #fff7f0; border-color: var(--orange-light);
  box-shadow: 0 6px 16px rgba(244, 108, 36, .13);
}
.dg-chip-check {
  margin-left: auto; display: inline-flex; width: 22px; height: 22px;
  align-items: center; justify-content: center;
}
.dg-chip-check .on {
  width: 22px; height: 22px; border-radius: 50%; background: var(--orange);
  display: inline-flex; align-items: center; justify-content: center;
}
.dg-sublead { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-faint); }

/* ---------- Drop file factice ---------- */
.dg-drop {
  display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600;
  color: var(--ink-soft); background: var(--cream); border: 1.5px dashed #d8cfc2;
  border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: all .16s;
  width: 100%; text-align: left; font-family: inherit; min-width: 0;
}
/* Un nom de fichier long est une chaine insecable : sans ces deux regles il
   sort de la carte et fait defiler la page. */
.dg-drop > span { min-width: 0; overflow-wrap: anywhere; }
.dg-drop.has-file { color: var(--ink); background: #fff7f0; border-color: var(--orange-light); }

/* ---------- Navigation ---------- */
.dg-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px;
}
.dg-prev {
  font: inherit; font-weight: 600; font-size: 16px; color: var(--ink-soft);
  background: transparent; border: none; cursor: pointer; padding: 14px 18px;
  border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; transition: background .15s;
}
.dg-prev:hover { background: var(--border-warm); }
.dg-next {
  font: inherit; font-weight: 700; font-size: 16.5px; color: #fff;
  background: var(--grad-cta); border: none; cursor: pointer;
  padding: 15px 30px; border-radius: 14px; display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 22px rgba(244, 108, 36, .32); transition: transform .12s, box-shadow .2s;
}
.dg-next:hover { box-shadow: 0 14px 28px rgba(244, 108, 36, .42); }
.dg-next:active { transform: scale(.97); }
.dg-next[disabled] { opacity: .7; cursor: progress; }
.dg-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.4px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: dgSpin .7s linear infinite;
}
.dg-spinner.ink {
  width: 14px; height: 14px; flex: none; margin-top: 1px;
  border-color: rgba(44, 39, 33, .18); border-top-color: var(--ink-faint);
}

/* Statut de la verification du numero de TVA (VIES) */
.dg-vatmsg {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 13.5px; font-weight: 600; line-height: 1.45;
  margin: -12px 0 22px;
}
.dg-vatmsg svg { flex: none; margin-top: 1px; }
.dg-vatmsg.ok { color: #2e9e5b; }
.dg-vatmsg.err { color: var(--red); }
.dg-vatmsg.warn, .dg-vatmsg.checking { color: var(--ink-faint); font-weight: 500; }

/* ================================================================
   ÉCRAN DE CHARGEMENT
   ================================================================ */
.dgv-loading-scene {
  position: relative; height: clamp(354px, 84vw, 372px);
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 22px 54px rgba(240, 138, 74, .3);
  background: linear-gradient(180deg, #ffe7b6 0%, #ffcf86 42%, #fcad60 74%, #f59147 100%);
}
.dg-load-sun {
  position: absolute; right: 40px; top: 30px; width: 88px; height: 88px; border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, #fff6cf, #ffd86b 55%, #f9b94e);
  box-shadow: 0 0 44px rgba(255, 214, 105, .75); animation: dgSun 4s ease-in-out infinite;
}
.dg-cloud { position: absolute; left: 0; border-radius: 999px; filter: blur(1px); }
.dg-cloud.c1 { top: 54px; width: 90px; height: 26px; background: rgba(255,255,255,.85); animation: dgRun 5.5s linear infinite; }
.dg-cloud.c2 { top: 96px; width: 64px; height: 20px; background: rgba(255,255,255,.7); animation: dgRun 4s linear infinite; animation-delay: -2s; }
.dg-cloud.c3 { top: 30px; width: 52px; height: 17px; background: rgba(255,255,255,.6); animation: dgRun 7s linear infinite; animation-delay: -3s; }
.dg-load-head {
  position: absolute; top: 30px; left: 0; right: 0; text-align: center; z-index: 4;
  font-family: 'Yanone Kaffeesatz', sans-serif; font-weight: 600;
  font-size: clamp(21px, 5.5vw, 30px); color: #fff; text-shadow: 0 2px 12px rgba(150, 60, 15, .4);
}
.dg-load-card {
  position: absolute; top: 92px; left: 50%; transform: translateX(-50%); z-index: 4;
  background: rgba(255, 255, 255, .96); border-radius: 18px;
  box-shadow: 0 14px 30px rgba(150, 70, 20, .26); padding: 14px 30px 16px;
  text-align: center; min-width: min(250px, 82vw);
}
.dg-load-pill {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 2px;
}
.dg-load-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); animation: dgSun 1s ease-in-out infinite;
}
.dg-load-price {
  font-family: 'Yanone Kaffeesatz', sans-serif; font-weight: 700;
  font-size: clamp(40px, 11vw, 58px); line-height: 1;
  background: linear-gradient(90deg, #f4b13d, #f46c24 60%, #e0571a);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.dg-load-price.multi { font-size: clamp(26px, 7vw, 38px); line-height: 1.05; color: #e0571a; -webkit-text-fill-color: #e0571a; background: none; }
.dgv-ticker {
  position: absolute; top: 218px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; z-index: 4; flex-wrap: wrap; padding: 0 16px;
}
.dg-tpill {
  display: inline-flex; align-items: center; font-size: 13px; font-weight: 700;
  border-radius: 999px; padding: 7px 14px; transition: all .3s; white-space: nowrap;
}
.dg-tpill svg { margin-right: 5px; vertical-align: -1px; }
.dg-tpill.pending { background: rgba(255,255,255,.42); color: #b97a45; }
.dg-tpill.active { background: #fff; color: var(--orange); box-shadow: 0 6px 14px rgba(244,108,36,.24); }
.dg-tpill.done { background: var(--green-bg); color: var(--green); box-shadow: 0 4px 10px rgba(46,158,91,.16); }
.dg-load-road { position: absolute; left: 0; right: 0; bottom: 0; height: 78px; background: var(--road); box-shadow: inset 0 3px 6px rgba(0,0,0,.3); }
.dg-load-dashes {
  position: absolute; left: 0; bottom: 34px; height: 5px; width: 300%;
  background: repeating-linear-gradient(90deg, #f3ddc0 0 34px, transparent 34px 70px);
  animation: dgDash .28s linear infinite; opacity: .85;
}
.dg-load-palm { position: absolute; bottom: 60px; left: 0; opacity: .4; animation: dgRun 3.2s linear infinite; }
.dg-whoosh-wrap { position: absolute; left: 50%; bottom: 74px; margin-left: -150px; z-index: 5; }
.dg-whoosh { position: absolute; height: 5px; border-radius: 3px; animation: dgWhoosh .5s linear infinite; }
.dg-whoosh.w1 { width: 70px; top: -44px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.95)); }
.dg-whoosh.w2 { width: 48px; top: -26px; background: linear-gradient(90deg, transparent, rgba(255,247,230,.85)); animation-delay: -.18s; }
.dg-whoosh.w3 { width: 84px; top: -8px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.9)); animation-delay: -.34s; }
.dg-load-bus {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 6;
  filter: drop-shadow(0 5px 5px rgba(80, 40, 15, .32)); animation: dgShake .22s linear infinite;
}
.dg-load-bus .dg-bus-scale { zoom: .44; }

/* ================================================================
   ÉCRAN ESTIMATION / DEVIS EMAIL
   ================================================================ */
.dg-hero {
  position: relative; overflow: hidden; border-radius: 22px;
  box-shadow: 0 18px 44px rgba(240, 138, 74, .28); background: var(--grad-hero);
  padding: clamp(20px, 5vw, 28px) clamp(18px, 5vw, 32px) 0;
}
.dg-hero-sun {
  position: absolute; right: 30px; top: 24px; width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, #fff4c8, #ffd86b 55%, #f9b94e);
  box-shadow: 0 0 38px rgba(255, 214, 105, .7); animation: dgSun 4s ease-in-out infinite;
}
.dg-hero-palm { position: absolute; left: -8px; bottom: 46px; opacity: .2; }
.dg-hero-content { position: relative; z-index: 2; }
.dg-hero-eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: #fff; margin-bottom: 7px; text-shadow: 0 1px 5px rgba(150, 60, 15, .32);
}
.dg-hero-title {
  font-family: 'Yanone Kaffeesatz', sans-serif; font-weight: 600;
  font-size: clamp(30px, 7.5vw, 46px); line-height: 1; margin: 0 0 16px;
  color: #fff; text-shadow: 0 2px 12px rgba(150, 60, 15, .34);
}
.dg-hero-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.dg-hero-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .94); border-radius: 999px; padding: 7px 14px;
  font-size: 13.5px; font-weight: 600; color: #a8521f; box-shadow: 0 5px 12px rgba(150, 60, 15, .14);
}
.dg-hero-road { position: relative; z-index: 2; margin: 16px -32px 0; height: 58px; }
.dg-hero-road .road { position: absolute; left: 0; right: 0; bottom: 0; height: 32px; background: var(--road); }
.dg-hero-road .dashes {
  position: absolute; left: 0; right: 0; bottom: 14px; height: 3px;
  background: repeating-linear-gradient(90deg, #f3ddc0 0 26px, transparent 26px 52px); opacity: .65;
}
.dg-hero-road .bus {
  position: absolute; bottom: 18px; left: -16%; animation: dgDrive 17s linear infinite;
  filter: drop-shadow(0 4px 4px rgba(80, 40, 15, .3));
}
.dg-hero-road .bus .dg-bus-scale { zoom: .3; }

/* Pitch IA */
.dg-pitch {
  background: linear-gradient(135deg, #fff7ee 0%, #fdeede 100%); border-radius: 20px;
  border: 1px solid #f6e3cf; padding: clamp(18px, 4.5vw, 26px) clamp(18px, 5vw, 30px);
  box-shadow: 0 12px 30px rgba(244, 108, 36, .08);
}
.dg-pitch-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.dg-pitch-head span {
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--orange-hover);
}
.dg-pitch p { margin: 0; font-size: clamp(16px, 4vw, 18px); line-height: 1.55; color: #5a3a22; font-weight: 500; }

/* Inclus à bord */
.dg-incl {
  background: var(--white); border-radius: 20px; box-shadow: 0 18px 44px rgba(44, 39, 33, .10);
  padding: clamp(20px, 5vw, 26px) clamp(18px, 5vw, 30px); border: 1px solid var(--border-warm);
}
.dg-incl-eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--green); margin-bottom: 4px;
}
.dg-incl-sub { margin: 0 0 18px; font-size: 14px; color: var(--ink-faint); }
.dg-incl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px 16px; }
.dg-incl-item { display: flex; align-items: center; gap: 11px; }
.dg-incl-ico {
  width: 40px; height: 40px; border-radius: 11px; background: #fbf2e9;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.dg-incl-item span:last-child { font-size: 14.5px; font-weight: 600; color: var(--ink); }

/* Bloc PRIX */
.dg-price {
  position: relative; overflow: hidden; background: var(--white);
  border-radius: 20px 20px 0 0; padding: clamp(22px, 5vw, 30px) clamp(18px, 5vw, 32px) 24px;
  text-align: center; box-shadow: 0 16px 40px rgba(244, 140, 60, .14);
  border: 1px solid #f4e7d6; border-bottom: none;
}
.dg-price-bar { position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, #ffd86b, #f4b13d 50%, #f46c24); }
.dg-price-lead { font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }
.dg-price-row { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.dg-price-big {
  font-family: 'Yanone Kaffeesatz', sans-serif; font-weight: 700;
  font-size: clamp(52px, 13vw, 78px); line-height: .9;
  background: linear-gradient(90deg, #f4b13d, #f46c24 60%, #e0571a);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.dg-price-pp {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--green-bg); border: 1px solid var(--green-border); border-radius: 13px; padding: 7px 16px;
}
.dg-price-pp .amount {
  font-family: 'Yanone Kaffeesatz', sans-serif; font-weight: 600; font-size: 25px;
  color: var(--green); line-height: 1.05; white-space: nowrap;
}
.dg-price-pp .cap { font-size: 11px; color: #4f7a5c; font-weight: 700; letter-spacing: .3px; white-space: nowrap; }
.dg-price-note { font-size: 13px; color: var(--ink-faint); margin-top: 10px; }

/* Bloc DÉCISION (collé au prix) */
.dg-decide {
  background: var(--white); border-radius: 0 0 20px 20px; box-shadow: 0 18px 44px rgba(44, 39, 33, .12);
  padding: 22px clamp(18px, 5vw, 30px) 26px; border: 1px solid var(--border-warm);
  border-top: none; margin-top: -18px; position: relative;
}
.dg-decide-title {
  text-align: center; font-family: 'Yanone Kaffeesatz', sans-serif; font-weight: 600;
  font-size: clamp(21px, 5vw, 25px); color: var(--ink); margin-bottom: 2px;
}
.dg-decide-sub { text-align: center; font-size: 13.5px; color: var(--ink-faint); margin-bottom: 16px; }
.dg-decide-actions { display: flex; flex-direction: column; gap: 11px; }
.dg-btn-yes {
  font: inherit; font-weight: 700; font-size: 16.5px; color: #fff;
  background: linear-gradient(90deg, #34b46a, #2e9e5b); border: none; cursor: pointer;
  padding: 16px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 22px rgba(46, 158, 91, .3); transition: transform .12s;
}
.dg-btn-yes:active { transform: scale(.98); }
.dg-decide-secondary { display: flex; gap: 11px; flex-wrap: wrap; }
.dg-btn-ghost {
  flex: 1; min-width: 180px; font: inherit; font-weight: 600; font-size: 15px;
  color: var(--ink-soft); background: var(--white); border: 1.5px solid var(--border);
  cursor: pointer; padding: 14px; border-radius: 14px; transition: all .15s;
}
.dg-btn-ghost:hover { border-color: var(--taupe); background: var(--cream); }
.dg-reass-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px 20px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-warm);
}
.dg-reass-foot span {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-mute);
}

/* Sous-formulaires objection */
.dg-obj {
  animation: dgPop .35s var(--bounce); background: #fff7f0; border: 1.5px solid #f6e3cf;
  border-radius: 16px; padding: clamp(16px, 4.5vw, 20px) clamp(16px, 4.5vw, 22px);
}
.dg-obj-head { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; }
.dg-obj-ico {
  width: 40px; height: 40px; border-radius: 12px; background: #fff;
  display: flex; align-items: center; justify-content: center; flex: none;
  box-shadow: 0 4px 10px rgba(244, 108, 36, .16);
}
.dg-obj-title { font-family: 'Yanone Kaffeesatz', sans-serif; font-weight: 600; font-size: 23px; color: var(--ink); line-height: 1; }
.dg-obj p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.dg-obj-label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 9px; }
/* flex-wrap OBLIGATOIRE : 3 pastilles a 84px minimum = 270px, alors que la carte
   n'offre que 221px a 320px de large. Sans le retour a la ligne, la page defile
   horizontalement au moment le plus sensible du parcours. */
.dg-budget-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 12px; }
.dg-budget-chip {
  flex: 1 1 84px; min-width: 0; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  padding: 11px 8px; border-radius: 11px; transition: all .15s;
  background: #fff; border: 1.5px solid var(--border); color: var(--ink-soft);
}
.dg-budget-chip.is-on {
  background: #fff3e8; border-color: var(--orange-light); color: var(--red);
  box-shadow: 0 5px 12px rgba(244, 108, 36, .16);
}
.dg-money { position: relative; margin-bottom: 16px; }
.dg-money .dg-input { font-weight: 700; padding-right: 40px; }
.dg-money .euro { position: absolute; right: 16px; top: 14px; font-size: 17px; font-weight: 700; color: var(--ink-faint); }
.dg-obj-send {
  width: 100%; font: inherit; font-weight: 700; font-size: 16px; color: #fff;
  background: linear-gradient(90deg, #f48042, #f46c24 60%, #df5d18); border: none; cursor: pointer;
  padding: 15px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 9px;
  box-shadow: 0 10px 22px rgba(244, 108, 36, .3); transition: transform .12s;
}
.dg-obj-send:active { transform: scale(.98); }
.dg-obj-foot { text-align: center; font-size: 12.5px; color: var(--ink-faint); margin-top: 10px; }

/* Confirmation festive */
.dg-confirm { position: relative; text-align: center; animation: dgPop .4s var(--bounce); }
.dg-confetti-zone { position: absolute; top: -10px; left: 0; right: 0; height: 300px; pointer-events: none; z-index: 0; overflow: hidden; }
.dg-confetti { position: absolute; top: 0; }
.dg-confirm-inner { position: relative; z-index: 1; }
.dg-confirm-bus { display: flex; justify-content: center; margin-bottom: 12px; animation: dgHonk 1.1s ease-in-out; }
.dg-confirm-bus .dg-bus-scale { zoom: .46; }
.dg-badge-ok {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  background: var(--green-bg); border: 1px solid var(--green-border); border-radius: 999px;
  padding: 8px 18px; margin-bottom: 12px; animation: dgCheerPop .5s var(--bounce) both;
}
.dg-badge-ok span { font-weight: 700; color: var(--green); font-size: 15px; }
.dg-confirm-title {
  font-family: 'Yanone Kaffeesatz', sans-serif; font-weight: 700; font-size: clamp(26px, 7vw, 38px);
  line-height: 1; color: var(--ink); margin-bottom: 8px; animation: dgCheerPop .5s var(--bounce) .08s both;
}
.dg-confirm p { margin: 0 auto; max-width: 470px; font-size: 17px; line-height: 1.5; color: var(--ink-soft); }

.dg-obj-thanks { text-align: center; animation: dgPop .4s var(--bounce); }
.dg-obj-thanks p { margin: 0 auto; max-width: 480px; font-size: 16.5px; line-height: 1.5; color: var(--ink); }

/* Devis email : capture */
.dg-emailcard {
  background: var(--white); border-radius: 20px; border: 1px solid var(--border-warm);
  box-shadow: 0 12px 30px rgba(44, 39, 33, .07); padding: clamp(22px, 5vw, 30px) clamp(18px, 5vw, 32px);
}
.dg-emailcard-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 22px; }
.dg-emailcard-ico {
  flex: none; width: 44px; height: 44px; border-radius: 13px; background: #fff3e8;
  display: flex; align-items: center; justify-content: center;
}
.dg-emailcard-title {
  font-family: 'Yanone Kaffeesatz', sans-serif; font-weight: 600; font-size: clamp(21px, 5vw, 26px);
  color: var(--ink); line-height: 1.08; margin-bottom: 6px;
}
.dg-emailcard-head p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.dg-emailcard-head strong { color: var(--ink); }
.dg-email-target {
  display: flex; align-items: center; gap: 11px; background: #fff7f0; border: 1px solid #f6e3cf;
  border-radius: 13px; padding: 14px 16px; margin-bottom: 18px;
}
.dg-email-target svg { flex: none; }
.dg-email-target span { font-size: 15px; color: var(--ink-soft); }
.dg-email-target strong { color: var(--ink); }
.dg-btn-email {
  width: 100%; font: inherit; font-weight: 700; font-size: 16px; color: #fff;
  background: var(--grad-cta); border: none; cursor: pointer; padding: 16px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  box-shadow: 0 10px 22px rgba(244, 108, 36, .32); transition: transform .12s;
}
.dg-btn-email:active { transform: scale(.98); }
.dg-email-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 16px; }
.dg-email-foot span {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-mute);
}

.dg-restart { text-align: center; margin-top: 20px; }
.dg-restart button { font: inherit; font-size: 14px; color: var(--ink-faint); background: transparent; border: none; cursor: pointer; }

/* Repli erreur réseau */
.dg-error-card {
  background: var(--white); border: 1px solid #f4c4a6; border-radius: 20px;
  box-shadow: 0 18px 44px rgba(44, 39, 33, .10); padding: clamp(22px, 5vw, 32px); text-align: center;
}
.dg-error-card h3 { font-family: 'Yanone Kaffeesatz', sans-serif; font-weight: 600; font-size: 26px; color: var(--ink); margin: 0 0 8px; }
.dg-error-card p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15.5px; }

/* ================================================================
   LE CAR (CSS/SVG pur)
   ================================================================ */
.dg-bus { position: relative; width: 320px; height: 172px; font-family: 'Pacifico', cursive; }
.dg-bus-shadow {
  position: absolute; left: 30px; bottom: 4px; width: 268px; height: 18px;
  background: radial-gradient(ellipse at center, rgba(20,10,5,.34) 0%, rgba(20,10,5,0) 70%); border-radius: 50%;
}
.dg-bus-wheel {
  position: absolute; bottom: 6px; width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #9aa0a8 0 16%, #3c3d44 18% 33%, #141419 36% 100%);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.4);
}
.dg-bus-body {
  position: absolute; left: 8px; top: 16px; width: 304px; height: 118px;
  border-radius: 24px 42px 20px 20px / 30px 50px 20px 20px;
  background: linear-gradient(180deg, #a25c34 0%, #8a4a28 38%, #6a3619 78%, #5a2d14 100%);
  box-shadow: inset 0 5px 10px rgba(255,200,150,.18), inset 0 -10px 16px rgba(0,0,0,.28), 0 8px 14px rgba(40,20,10,.25);
}
.dg-bus-glass {
  position: absolute; left: 22px; top: 28px; width: 262px; height: 58px;
  border-radius: 11px 30px 10px 10px;
  background: linear-gradient(160deg, #2f3142 0%, #181a26 55%, #0c0d15 100%);
  overflow: hidden; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25);
}
.dg-bus-deck { position: absolute; left: 6px; right: 6px; top: 27px; height: 1px; background: rgba(255,255,255,.10); }
.dg-bus-mullion { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.06); }
.dg-bus-sheen {
  position: absolute; left: -40px; top: -20px; width: 60px; height: 120px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.12) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-18deg);
}
.dg-bus-swoosh {
  position: absolute; left: 16px; top: 86px; width: 288px; height: 7px;
  background: linear-gradient(90deg, #efe3d2, #fbf3e6); border-radius: 6px;
  transform: rotate(-1.4deg); box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.dg-bus-swoosh-tip { position: absolute; left: 278px; top: 78px; width: 26px; height: 7px; background: #fbf3e6; border-radius: 6px; transform: rotate(-34deg); }
.dg-bus-logo {
  position: absolute; left: 104px; top: 95px; transform: rotate(-3deg);
  font-size: 16px; color: #f1953a; text-shadow: 0 1px 1px rgba(0,0,0,.25);
  white-space: nowrap; letter-spacing: .3px;
}
.dg-bus-sun {
  position: absolute; left: 34px; top: 92px; width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, #ffd86b 0%, #f4b13d 45%, #e8842f 100%);
  box-shadow: 0 0 6px rgba(244,177,61,.5);
}
.dg-bus-palm { position: absolute; left: 24px; top: 84px; width: 54px; height: 44px; overflow: visible; }
.dg-bus-waves { position: absolute; left: 24px; top: 120px; width: 200px; height: 12px; }
.dg-bus-headlight {
  position: absolute; left: 296px; top: 100px; width: 11px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle, #fff2c0, #ffcf6a); box-shadow: 0 0 8px rgba(255,210,120,.8);
}
.dg-bus-mirror { position: absolute; left: 306px; top: 40px; width: 8px; height: 3px; border-radius: 2px; background: #3a1f10; transform: rotate(18deg); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes dgStepIn { 0% { transform: translateX(24px) } 100% { transform: translateX(0) } }
@keyframes dgRise { 0% { transform: translateY(16px) } 100% { transform: translateY(0) } }
@keyframes dgDash { from { background-position: 0 0 } to { background-position: -48px 0 } }
@keyframes dgHonk { 0%,100% { transform: scale(1) rotate(0) } 30% { transform: scale(1.05) rotate(-2deg) } 60% { transform: scale(.99) rotate(1deg) } }
@keyframes dgPop { 0% { transform: scale(.85) } 100% { transform: scale(1) } }
@keyframes dgConfetti { 0% { transform: translateY(-16px) rotate(0); opacity: 0 } 10% { opacity: 1 } 100% { transform: translateY(280px) rotate(620deg); opacity: 0 } }
@keyframes dgConfettiR { 0% { transform: translateY(-16px) rotate(0); opacity: 0 } 10% { opacity: 1 } 100% { transform: translateY(280px) rotate(-540deg); opacity: 0 } }
@keyframes dgCheerPop { 0% { transform: scale(.6) } 60% { transform: scale(1.12) } 100% { transform: scale(1) } }
@keyframes dgSpin { to { transform: rotate(360deg) } }
@keyframes dgDrive { 0% { left: -16% } 100% { left: 104% } }
@keyframes dgRun { 0% { transform: translateX(120%) } 100% { transform: translateX(-160%) } }
@keyframes dgShake { 0%,100% { transform: translateY(0) rotate(0) } 25% { transform: translateY(-2.5px) rotate(-.5deg) } 75% { transform: translateY(1.5px) rotate(.4deg) } }
@keyframes dgWhoosh { 0% { opacity: 0; transform: translateX(14px) scaleX(.6) } 40% { opacity: .9 } 100% { opacity: 0; transform: translateX(-30px) scaleX(1.3) } }
@keyframes dgSun { 0%,100% { transform: scale(1) } 50% { transform: scale(1.07) } }

@media (prefers-reduced-motion: reduce) {
  /* animation-iteration-count est indispensable : 6 animations du fichier sont
     "infinite". Reduites a .001ms elles bouclaient a pleine vitesse, invisibles
     mais consommant du processeur et de la batterie. */
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ================================================================
   RESPONSIVE — breakpoint 640px
   ================================================================ */
@media (max-width: 640px) {
  .dgv-bus-logo { display: none !important; }
  .dgv-loading-scene { height: 392px !important; }
  .dgv-ticker { flex-wrap: nowrap !important; gap: 5px !important; }
  .dgv-ticker > .dg-tpill { font-size: 11px !important; padding: 6px 9px !important; }
  .dgv-trust { flex-direction: column !important; flex-wrap: nowrap !important; align-items: flex-start !important; gap: 11px !important; padding: 16px 18px !important; }
}

/* Select du mois approximatif (dates flexibles) */
select.dg-select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'><path d='M6 9l6 6 6-6' stroke='%238a7f72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px;
}

/* ============================================================
   TRAJETS RÉGULIERS (contrats)
   Handoff design_handoff_trajets_reguliers. Bloc autonome :
   supprimer ce pavé retire toute la fonctionnalité côté styles.
   ============================================================ */

/* Point d'entrée : « Ce trajet, c'est... » (bifurcation ponctuel / régulier).
   Volontairement PETIT : le cas régulier est rare, il ne doit pas peser autant
   que le type de trajet ou les dates. Libellé et pilule sur la même ligne. */
.dg-rec-choice-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.dg-rec-choice-label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.dg-rec-choice {
  display: inline-flex; gap: 3px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 999px; padding: 3px;
}
.dg-rec-choice .dg-seg {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-soft);
  background: transparent; border: none; border-radius: 999px;
  padding: 12px 14px; cursor: pointer; transition: all .15s; white-space: nowrap;
  min-height: 44px;   /* zone tactile : etait a 34px de haut */
}
.dg-rec-choice .dg-seg svg { vertical-align: -3px; margin-right: 6px; }
.dg-rec-choice .dg-seg.is-on {
  background: #fff1e8; color: var(--orange-hover);
  box-shadow: inset 0 0 0 1.5px #f6d9c2;
}

/* Panneau déplié */
.dg-rec-head {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff6ec; border: 1px solid #f6e3cf; border-radius: 13px;
  padding: 12px 14px; margin-bottom: 16px;
}
.dg-rec-head svg { flex: none; margin-top: 1px; }
.dg-rec-head-txt { flex: 1; min-width: 0; }
.dg-rec-head-t { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.dg-rec-head-s { font-size: 12.5px; color: var(--ink-mute); line-height: 1.45; margin-top: 1px; }
.dg-rec-close {
  background: transparent; border: none; cursor: pointer; color: var(--ink-faint);
  font-size: 17px; line-height: 1; padding: 0 2px; font-family: inherit; flex: none;
}

/* Intertitres du panneau */
.dg-rec-t { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.dg-rec-t.spaced { margin-top: 18px; margin-bottom: 3px; }
.dg-rec-sublead { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 8px; }
.dg-rec-sub { font-size: 12px; font-weight: 600; color: #8a7f72; margin-bottom: 5px; }
.dg-rec-sub.spaced { margin: 10px 0 5px; }

/* Fréquence : lignes pleine largeur (libellés trop longs pour des pastilles) */
.dg-rec-freq { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.dg-rec-freq-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  font: inherit; font-size: 14px; font-weight: 400; cursor: pointer;
  padding: 12px 13px; border-radius: 11px; transition: all .15s;
  border: 1.5px solid var(--border); background: #fff; color: var(--ink-soft);
}
.dg-rec-freq-item.is-on { border-color: var(--orange); background: #fff1e8; color: var(--ink); font-weight: 600; }
.dg-rec-radio {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #d8cfc2; background: #fff; transition: all .15s;
}
.dg-rec-freq-item.is-on .dg-rec-radio { border-color: var(--orange); background: var(--orange); }
.dg-rec-freq-item.is-on .dg-rec-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

/* Jours : 7 pastilles au pouce, 44 px de haut */
.dg-rec-days { display: flex; gap: 6px; margin-bottom: 18px; }
.dg-rec-day {
  flex: 1; height: 44px; min-width: 0; font: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; border-radius: 11px; transition: all .15s;
  border: 1.5px solid var(--border); background: #fff; color: #8a7f72;
}
.dg-rec-day.is-on { border-color: var(--orange); background: var(--orange); color: #fff; }

/* Période : la case année scolaire d'abord (le cas le plus courant) */
.dg-rec-school {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  font: inherit; font-size: 14px; font-weight: 400; cursor: pointer;
  padding: 12px 13px; border-radius: 11px; transition: all .15s;
  border: 1.5px solid var(--border); background: #fff; color: var(--ink-soft);
}
.dg-rec-school.is-on { border-color: var(--orange); background: #fff1e8; color: var(--ink); font-weight: 600; }
.dg-rec-box {
  width: 20px; height: 20px; border-radius: 6px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #d8cfc2; background: #fff; transition: all .15s;
}
.dg-rec-school.is-on .dg-rec-box { border-color: var(--orange); background: var(--orange); }
.dg-rec-period { display: flex; gap: 9px; margin: 9px 0 6px; }
.dg-rec-period > div { flex: 1; min-width: 0; }

/* Réassurance : l'absence de prix présentée comme un bénéfice */
.dg-rec-note {
  display: flex; align-items: flex-start; gap: 9px;
  background: #eef8f1; border: 1px solid #c9e7d3; border-radius: 13px;
  padding: 13px 14px; margin-top: 18px;
  font-size: 13px; color: #3f6b4f; line-height: 1.5;
}
.dg-rec-note svg { flex: none; margin-top: 1px; }

/* Nombre de trajets calculé automatiquement (corrigeable) */
.dg-rec-trips {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; margin-top: 14px;
  font-size: 14.5px; color: var(--ink);
}
.dg-rec-trips strong { font-weight: 700; }
.dg-rec-correct {
  background: none; border: none; padding: 0; margin-left: auto;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--orange-hover);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.dg-rec-correct.block { display: block; margin: 8px 0 0; }
/* Menus de mois : la fleche native des selects reste, on aere juste le texte */
select.dg-input { min-height: 52px; }

/* Paliers de durée (dates inconnues) : grille de pilules, 2 rangées en mobile. */
.dg-days-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.dg-days-grid .dg-day {
  font: inherit; font-size: 14px; font-weight: 600; color: #6f655a;
  background: #fff; border: 1.5px solid #ece5db; border-radius: 11px;
  padding: 10px 14px; cursor: pointer; flex: 1 1 auto; min-width: 92px;
}
.dg-days-grid .dg-day.is-on { color: #df5d18; border-color: #f46c24; background: #fff6ec; font-weight: 700; }
.dg-days-grid.is-error .dg-day { border-color: #eccfc6; }
/* Le groupe « car sur place » refusé par Continuer : même langage d'erreur que
   les grilles de jours, un liseré sur chaque option tant que rien n'est choisi. */
.dg-caronsite.is-error .dg-tab { border-color: #c0563a; background: #fdf4f1; }

/* ================================================================
   PIED DE PAGE PERMANENT
   Le telephone doit rester joignable depuis n'importe quel ecran, et la
   mention sur les donnees doit accompagner la collecte (RGPD).
   ================================================================ */
.dg-footer {
  width: 100%; max-width: var(--maxw); margin: 28px auto 0;
  padding: 18px 4px 0; border-top: 1px solid var(--border);
  text-align: center;
}
.dg-footer-contact {
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 10px;
}
.dg-footer-contact a {
  display: inline-block; margin-top: 4px; padding: 10px 4px;
  color: var(--orange-hover); font-weight: 700; text-decoration: none;
  border-bottom: 2px solid rgba(244, 108, 36, .3);
}
.dg-footer-legal {
  margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-faint);
  max-width: 62ch; margin-inline: auto;
}

/* ================================================================
   RESPONSIVE — petit mobile (<= 480px)
   La barre de progression collante mangeait 144px du haut de l'ecran sur
   TOUTES les etapes, soit pres d'un tiers d'un iPhone SE.
   ================================================================ */
@media (max-width: 480px) {
  .dgv-progress      { padding: 10px 4px 8px; }
  .dg-progress-inner { height: 96px; }
  .dg-stop-label     { margin-top: 6px; font-size: 11.5px; }
}

@media (max-width: 400px) {
  /* Les libelles d'etape en nowrap se touchaient et mordaient le bord gauche. */
  .dg-stop-label { white-space: normal; max-width: 68px; line-height: 1.15; }
}

/* Le bandeau des etapes de calcul etait en nowrap force : les deux pastilles
   des extremites etaient rognees. Il y a la place pour deux rangees. */
@media (max-width: 640px) {
  .dgv-ticker { flex-wrap: wrap; }
}

/* ================================================================
   CONFORT DE LECTURE — grand ecran
   La carte fait 920px : sans limite, les paragraphes atteignaient 105
   caracteres par ligne, bien au-dela de la plage confortable (45 a 75).
   ================================================================ */
@media (min-width: 760px) {
  .dg-lead, .dg-pitch p, .dg-incl-sub, .dg-sublead,
  .dg-rec-sublead, .dg-decide-sub { max-width: 62ch; }
  .dg-lead, .dg-sublead { margin-inline: auto; }
}

/* Le titre d'etape recoit le focus au changement d'etape (annonce aux lecteurs
   d'ecran) : pas de halo visible, le deplacement suffit. */
.dg-h2:focus { outline: none; }

/* Suggestion surlignee au clavier (fleches haut/bas). */
.dg-suggest-item.is-active { background: #fff3e8; }

/* Zones tactiles restantes sous 44px. */
.dg-budget-chip { min-height: 44px; }
.dg-restart button { padding: 12px 6px; margin: -12px -6px; }

/* Le bandeau de confiance occupait 142px sur TOUTES les etapes : cumule a
   l'en-tete et a la barre de progression, la premiere question tombait sous la
   ligne de flottaison d'un iPhone SE. On le compacte sans rien retirer. */
@media (max-width: 480px) {
  .dgv-trust { gap: 8px !important; padding: 11px 14px !important; margin-bottom: 10px; }
  .dg-trust-item .dg-trust-ico { width: 24px; height: 24px; }
  .dg-trust-strong, .dg-trust-strong.lg { font-size: 13px; }
  .dg-trust-mute { font-size: 12.5px; }
}

/* ============================================================
   INDICATIF TÉLÉPHONIQUE — drapeau dessiné + préfixe
   ------------------------------------------------------------
   Le bouton d'indicatif et le champ ne forment qu'une seule boîte :
   visuellement c'est un champ normal, avec un côté gauche cliquable.
   Les drapeaux sont des SVG (sous Windows, un emoji drapeau s'affiche
   « BE » en noir et blanc, et la règle du projet est SVG partout).
   ============================================================ */
.dg-tel {
  display: flex; align-items: stretch; width: 100%; min-width: 0;
  background: var(--white); border: 1.5px solid var(--border); border-radius: 12px;
  transition: border-color .18s, box-shadow .18s;
}
.dg-tel:focus-within { border-color: var(--orange-light); box-shadow: 0 0 0 4px rgba(244, 108, 36, .14); }
.dg-tel.is-error { border-color: #c4392d; }

.dg-tel-btn {
  display: flex; align-items: center; gap: 7px; flex: none;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--cream); border: none; border-right: 1.5px solid var(--border);
  border-radius: 10.5px 0 0 10.5px; padding: 0 12px; cursor: pointer;
  transition: background .15s;
}
.dg-tel-btn:hover { background: #f4efe7; }
.dg-tel-btn svg:last-child { color: var(--ink-faint); flex: none; }
.dg-tel-pref { font-weight: 700; letter-spacing: .2px; white-space: nowrap; }

/* 16px OBLIGATOIRE : en dessous, Safari iOS zoome à la mise au point. */
.dg-tel-input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: none; outline: none; padding: 14px 16px;
}

.dg-flag { display: block; flex: none; border-radius: 2.5px; }

/* Le panneau de choix. Position absolue DANS .dg-field (qui est en relative). */
.dg-tel-pop {
  position: absolute; z-index: 40; left: 0; right: 0; margin-top: 6px;
  background: var(--white); border: 1.5px solid var(--border); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(44, 39, 33, .16); overflow: hidden;
}
.dg-tel-search {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--cream); border: none; border-bottom: 1.5px solid var(--border);
  padding: 13px 16px; outline: none;
}
.dg-tel-list { max-height: 264px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.dg-tel-opt {
  display: flex; align-items: center; gap: 11px; width: 100%;
  font: inherit; font-size: 15px; color: var(--ink); text-align: left;
  background: none; border: none; border-bottom: 1px solid #f4efe7;
  padding: 11px 16px; cursor: pointer;
}
.dg-tel-opt:last-child { border-bottom: none; }
.dg-tel-opt:hover { background: var(--cream); }
.dg-tel-opt.is-on { background: #fff3ea; font-weight: 700; }
.dg-tel-nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-tel-ind { color: var(--ink-faint); font-variant-numeric: tabular-nums; flex: none; }
.dg-tel-opt.is-on .dg-tel-ind { color: var(--orange-hover); }
.dg-tel-vide { padding: 16px; font-size: 14.5px; color: var(--ink-faint); text-align: center; }

/* Le numéro tel qu'il partira à l'équipe : le client voit ce qu'on enregistre. */
.dg-tel-apercu { margin-top: 8px; font-size: 13.5px; color: var(--ink-faint); }
.dg-tel-apercu strong { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
