:root {
  --ink: #172019;
  --muted: #667065;
  --paper: #f6f0e6;
  --chalk: #fffaf1;
  --acid: #d8ff3e;
  --terracotta: #c95f37;
  --blueprint: #183a4a;
  --line: rgba(23, 32, 25, .14);
  --shadow: 0 26px 70px rgba(24, 58, 74, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(246, 240, 230, .88); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 950; letter-spacing: -.03em; text-decoration: none; }
.brand small { color: var(--muted); font-weight: 700; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 16px; color: var(--acid); background: var(--ink); transform: rotate(-7deg); box-shadow: 5px 5px 0 var(--terracotta); }
.nav-link { font-weight: 750; color: var(--muted); }
.nav-link.active, .nav-link:hover { color: var(--ink); }
.fw-black { font-weight: 950; letter-spacing: -.075em; line-height: .9; }
.display-1, h1 { letter-spacing: -.065em; font-weight: 950; }
.eyebrow, .section-kicker { color: var(--terracotta); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 950; }
.py-lg-6 { padding-top: 6rem; padding-bottom: 6rem; }
.hero-split { background: radial-gradient(circle at 85% 20%, rgba(216, 255, 62, .55), transparent 30%), linear-gradient(135deg, var(--paper), #efe2cd); overflow: hidden; }
.hero-split .lead, .page-hero .lead { font-size: 1.2rem; line-height: 1.75; }
.btn { font-weight: 850; }
.btn-acid { color: var(--ink); background: var(--acid); border: 1px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.proof-strip { display: flex; gap: .7rem; flex-wrap: wrap; }
.proof-strip span { border: 1px solid var(--line); border-radius: 999px; padding: .5rem .8rem; background: rgba(255,255,255,.45); font-weight: 800; }
.mini-quote-card, .plain-card, .service-tile, .notice-card, .map-card, .wizard, .result { background: var(--chalk); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); }
.mini-quote-card { padding: 2rem; transform: rotate(2deg); position: relative; }
.mini-quote-card:before { content: ''; position: absolute; inset: 16px -14px -14px 16px; border: 2px dashed var(--terracotta); border-radius: 30px; z-index: -1; }
.service-tile { display: block; padding: 1.4rem; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.service-tile:hover { transform: translateY(-5px) rotate(-.5deg); box-shadow: 0 32px 90px rgba(24, 58, 74, .22); }
.service-tile img { width: 100%; max-height: 150px; object-fit: contain; margin-bottom: 1rem; filter: drop-shadow(8px 8px 0 rgba(201,95,55,.18)); }
.service-tile p, .plain-card p, .step-card p { color: var(--muted); line-height: 1.65; }
.angled-band { background: var(--blueprint); color: var(--chalk); clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%); }
.angled-band p { color: rgba(255,250,241,.75); }
.step-card { min-height: 170px; background: rgba(255,250,241,.08); border: 1px solid rgba(255,250,241,.18); border-radius: 24px; padding: 1.25rem; }
.step-card span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); background: var(--acid); font-weight: 950; margin-bottom: 1rem; }
.zone-cloud { display: flex; flex-wrap: wrap; gap: .8rem; }
.zone-cloud a { padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--chalk); font-weight: 850; text-decoration: none; }
.page-hero { background: linear-gradient(145deg, #f9f2e7, #eadbc3); }
.hero-illustration { width: 100%; max-height: 390px; object-fit: contain; filter: drop-shadow(12px 16px 0 rgba(24,58,74,.12)); }
.diday-main-visual, .route-visual, .trust-visual { width: 100%; border-radius: 30px; background: var(--chalk); box-shadow: var(--shadow); }
.diday-main-visual { max-height: none; filter: none; }
.route-visual { max-height: 260px; object-fit: cover; object-position: center; opacity: .96; }
.trust-visual { display: block; max-height: 340px; object-fit: contain; }
.plain-card { padding: 1.35rem; height: 100%; }
.cta-ribbon { margin: 3rem 0; padding: 3rem 0; background: var(--ink); color: var(--chalk); }
.wizard { padding: 1.5rem; }
.progress { height: 10px; background: rgba(23,32,25,.12); border-radius: 999px; overflow: hidden; margin-bottom: 1.5rem; }
.progress span { display: block; height: 100%; width: 33%; background: var(--terracotta); transition: width .2s ease; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 1.45rem; font-weight: 950; margin-bottom: 1rem; }
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.choice { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; border: 1px solid var(--line); border-radius: 20px; padding: 1rem; min-height: 100%; cursor: pointer; }
.choice input { margin-top: .25rem; }
.choice small { display: block; color: var(--muted); font-weight: 600; margin-top: .2rem; }
.wizard-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hidden { display: none !important; }
.result { display: none; margin-top: 1rem; padding: 1.25rem; }
.result.show { display: block; }
.result.success { border-color: rgba(37, 128, 81, .35); }
.result.error { border-color: rgba(180, 42, 42, .35); }
.quote-summary { display: grid; gap: .2rem; padding: 1rem; border-radius: 18px; background: rgba(216,255,62,.28); margin: 1rem 0; }
.map-card { min-height: 300px; padding: 2rem; display: grid; align-content: center; background: repeating-linear-gradient(45deg, var(--chalk), var(--chalk) 16px, #f2e6d6 16px, #f2e6d6 32px); }
.map-card span { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 950; letter-spacing: -.07em; }
.placeholder-legal { border-left: 8px solid var(--terracotta); background: var(--chalk); border-radius: 22px; padding: 1.5rem; margin: 1.5rem 0; }
.legal-page { max-width: 900px; }
.footer-shell { background: #151c17; color: var(--chalk); }
.footer-shell a { color: var(--chalk); }
.footer-shell .text-muted { color: rgba(255,250,241,.65) !important; }
.footer-brand .brand-mark { background: var(--chalk); color: var(--ink); }
.accordion-button { font-weight: 850; }
code { color: var(--terracotta); background: rgba(201,95,55,.1); padding: .1rem .35rem; border-radius: .4rem; }
@media (max-width: 991px) { .mini-quote-card { transform: none; } .fw-black { letter-spacing: -.055em; } }
@media (max-width: 560px) { .display-1 { font-size: 3rem; } h1 { font-size: 2.5rem; } .wizard { padding: 1rem; } .py-lg-6 { padding-top: 3rem; padding-bottom: 3rem; } }

/* Diday original SVG integration: keeps the MVP layout polished even without external image generation. */
body { margin: 0; }
code { color: var(--terracotta); background: rgba(201,95,55,.1); padding: .1rem .35rem; border-radius: .4rem; }
.nav { max-width: 1160px; margin: auto; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.nav-links { display: flex; gap: 1rem; color: var(--muted); font-weight: 750; }
.hero, .steps-section, .quote-section, .api-section { max-width: 1160px; margin: auto; padding: 4.5rem 1.25rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr); gap: 2rem; align-items: center; }
.hero-actions, .wizard-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.button { border: 0; border-radius: 999px; padding: .9rem 1.25rem; font-weight: 900; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.button.primary { color: var(--ink); background: var(--acid); border: 1px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.button.ghost { color: var(--ink); background: var(--chalk); border: 1px solid var(--line); }
.trust-list { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .75rem 1rem; color: var(--muted); font-weight: 800; }
.hero-visual { position: relative; min-height: 470px; }
.hero-visual > img { display: block; width: min(100%, 520px); margin-left: auto; border-radius: 34px; box-shadow: var(--shadow); background: var(--chalk); }
.quote-card { position: absolute; left: 0; bottom: 0; max-width: 320px; background: var(--chalk); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); padding: 1.6rem; transform: rotate(-2deg); }
.quote-card strong { display: block; font-size: 2rem; color: var(--blueprint); margin: 1rem 0 .35rem; }
.badge { display: inline-block; padding: .35rem .65rem; border-radius: 999px; color: #4f2618; background: #f5d2bd; font-weight: 900; }
.section-intro { margin-bottom: 1.25rem; }
.visual-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(260px, .55fr); gap: 1.5rem; align-items: center; }
.section-asset { width: 100%; border-radius: 30px; box-shadow: var(--shadow); background: var(--chalk); }
.trust-asset { margin-top: 1.5rem; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.steps-grid article, .wizard, .result, .api-section pre { background: var(--chalk); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); }
.steps-grid article { padding: 1.25rem; box-shadow: none; }
.steps-grid span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--chalk); background: var(--terracotta); font-weight: 950; margin-bottom: 1rem; }
.steps-grid p, .section-heading p, .api-section p, .lead { color: var(--muted); line-height: 1.65; }
.quote-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: start; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: grid; gap: .4rem; margin-bottom: 1rem; font-weight: 750; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1rem; font: inherit; background: var(--chalk); }
footer { text-align: center; color: var(--muted); padding: 2rem 1rem 3rem; }
@media (max-width: 850px) {
  .nav { align-items: flex-start; }
  .nav-links { display: none; }
  .hero, .quote-section, .visual-intro { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-visual { min-height: auto; }
  .hero-visual > img { margin: 0 auto; }
  .quote-card { position: relative; margin: -3rem auto 0; left: auto; bottom: auto; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps-grid, .two-cols { grid-template-columns: 1fr; }
  .quote-card { transform: none; }
}

/* Diday V2 quote tunnel: local map/route preview and mock follow-up evidence. */
.route-preview { display: none; margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,250,241,.72); }
.route-preview.show { display: grid; gap: .8rem; }
.route-preview.error { border-color: rgba(180,42,42,.35); color: #8a1f1f; }
.mock-map { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); background: var(--chalk); }
.mock-map svg { display: block; width: 100%; min-height: 220px; }
.route-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.route-facts span, .followup-list li { border: 1px solid var(--line); border-radius: 16px; padding: .75rem; background: rgba(216,255,62,.18); }
.route-facts strong { display: block; font-size: 1.15rem; }
.followup-list { display: grid; gap: .5rem; padding: 0; list-style: none; }
.wizard small.form-hint { display: block; color: var(--muted); font-weight: 600; margin-top: -.5rem; margin-bottom: .8rem; }
@media (max-width: 560px) { .route-facts { grid-template-columns: 1fr; } }

/* Suggestions d'adresse (Base Adresse Nationale) — reprend les jetons du site :
   meme papier, meme trait, meme rayon que les cartes, pour ne pas ressembler
   a une liste native collee par-dessus la maquette. */
.form-label { position: relative; display: block; }
.adresse-suggestions {
  list-style: none;
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  margin: .25rem 0 0;
  padding: .3rem;
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  max-height: 17rem;
  overflow-y: auto;
}
.adresse-suggestions li {
  padding: .55rem .75rem;
  border-radius: 12px;
  cursor: pointer;
  line-height: 1.3;
}
.adresse-suggestions li:hover,
.adresse-suggestions li.actif { background: var(--acid); }
.adresse-label { display: block; font-weight: 600; color: var(--ink); }
.adresse-contexte { display: block; font-size: .82rem; color: var(--muted); }

/* Étape Volume — reprend les jetons du site (papier, trait, rayon des cartes). */
.volume-modes { display: flex; gap: .5rem; margin: 1rem 0; flex-wrap: wrap; }
.volume-mode {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: .5rem 1.1rem; cursor: pointer; font-weight: 600;
}
.volume-mode.actif { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.volume-panneau.hidden { display: none; }

.choice-compact span small { display: block; font-weight: 400; color: var(--muted); }

.inv-piece { border: 1px solid var(--line); border-radius: 18px; margin-bottom: .6rem; background: var(--chalk); }
.inv-piece summary {
  cursor: pointer; padding: .8rem 1rem; font-weight: 700; list-style: none;
  display: flex; align-items: center; gap: .6rem;
}
.inv-piece summary::-webkit-details-marker { display: none; }
.inv-piece summary::before { content: '＋'; color: var(--muted); font-weight: 400; }
.inv-piece[open] summary::before { content: '−'; }
.inv-badge {
  margin-left: auto; background: var(--acid); color: var(--ink);
  border-radius: 999px; padding: .1rem .6rem; font-size: .85rem;
}
.inv-grille {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .4rem; padding: 0 1rem 1rem;
}
.inv-item {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  border: 1px solid var(--line); border-radius: 12px; padding: .45rem .7rem;
}
.inv-item.actif { border-color: var(--ink); background: rgba(216, 255, 62, .18); }
.inv-nom { font-size: .92rem; line-height: 1.25; }
.inv-nom small { display: block; color: var(--muted); font-size: .78rem; }
.inv-compteur { display: flex; align-items: center; gap: .35rem; flex-shrink: 0; }
.inv-compteur button {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; font-size: 1rem; line-height: 1;
}
.inv-compteur button:hover { background: var(--acid); border-color: var(--ink); }
.inv-compteur output { min-width: 1.6rem; text-align: center; font-weight: 700; }

.volume-total {
  margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 16px;
  background: var(--blueprint); color: var(--chalk); font-size: 1.05rem;
}
.volume-total strong { font-size: 1.3rem; }

@media (max-width: 560px) { .inv-grille { grid-template-columns: 1fr; } }

/* Carte du trajet — contour issu des données ouvertes, rendu inline sans bibliothèque. */
.carte-trajet {
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: .5rem;
  margin-bottom: 1rem;
}
.carte-trajet svg { display: block; width: 100%; height: auto; max-height: 420px; }
.carte-trajet text { fill: var(--ink); paint-order: stroke; stroke: var(--chalk); stroke-width: 6px; }
