/* ============================================================
   Dégâts des eaux Express — feuille de style principale
   Mobile-first, sans framework.
   ============================================================ */

:root {
  --navy: #0a2e52;
  --navy-dark: #071f38;
  --blue: #1273c4;
  --blue-light: #e8f2fb;
  --cta: #ff6b2c;
  --cta-dark: #e5581b;
  --green: #1e9e5a;
  --green-light: #e6f6ee;
  --red: #d43f3f;
  --red-light: #fdecec;
  --ink: #1c2733;
  --ink-soft: #4d5d6e;
  --bg: #ffffff;
  --bg-soft: #f4f8fc;
  --border: #dde6ef;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(10, 46, 82, .10);
  --shadow-lg: 0 12px 40px rgba(10, 46, 82, .18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 5.5vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 4vw, 2rem); font-weight: 800; }
h3 { font-size: clamp(1.1rem, 3vw, 1.35rem); font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.section-alt { background: var(--bg-soft); }
.section-title { text-align: center; max-width: 720px; margin-inline: auto; }
.section-title .kicker { color: var(--cta); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; display: block; margin-bottom: .4rem; }
.section-title p { color: var(--ink-soft); }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-dark); color: #fff; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: .35rem 0; gap: 1rem; }
.topbar-item { white-space: nowrap; }
.topbar-phone { color: #fff; font-weight: 700; text-decoration: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 12px rgba(10,46,82,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .55rem 0; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); }
.brand-text { font-size: .95rem; line-height: 1.15; font-weight: 600; }
.brand-text strong { color: var(--cta); font-weight: 800; }
.main-nav { display: none; }
.main-nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .4rem .1rem; }
.main-nav a:hover { color: var(--blue); }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { width: 24px; height: 3px; background: var(--navy); border-radius: 2px; transition: .2s; }

@media (max-width: 899px) {
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 1rem 1.25rem 1.25rem; box-shadow: var(--shadow-lg); gap: .35rem;
  }
  .main-nav.open a { padding: .55rem 0; border-bottom: 1px solid var(--border); }
  .main-nav.open .nav-cta { border: 0; margin-top: .5rem; text-align: center; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex; align-items: center; gap: 1.3rem; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; font-family: inherit;
  transition: transform .12s, box-shadow .12s, background .12s; text-align: center;
}
.btn:active { transform: scale(.97); }
.btn-cta { background: var(--cta); color: #fff; box-shadow: 0 4px 16px rgba(255,107,44,.4); }
.btn-cta:hover { background: var(--cta-dark); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-ghost-light:hover { border-color: #fff; }
.btn-lg { padding: 1rem 2rem; font-size: 1.08rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(115deg, var(--navy-dark) 0%, var(--navy) 55%, var(--blue) 130%);
  overflow: hidden;
}
.hero-inner { display: grid; gap: 2rem; padding: clamp(2.5rem, 7vw, 5rem) 0; position: relative; z-index: 2; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: #ffb38a; }
.hero-sub { font-size: clamp(1rem, 2.5vw, 1.2rem); color: #dbe7f3; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; padding: 0; margin: 1.2rem 0 0; list-style: none; font-size: .92rem; }
.hero-badges li { display: flex; align-items: center; gap: .4rem; color: #eaf2fa; }
.hero-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-media img { width: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; align-items: center; }
}

/* ---------- Bandeau chiffres / réassurance ---------- */
.trust-strip { background: #fff; border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 1.4rem 0; }
.trust-item { text-align: center; }
.trust-item .big { display: block; font-size: clamp(1.3rem, 4vw, 1.9rem); font-weight: 800; color: var(--navy); }
.trust-item .small { font-size: .85rem; color: var(--ink-soft); }
@media (min-width: 700px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cartes ---------- */
.cards-grid { display: grid; gap: 1.3rem; margin-top: 2rem; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } .cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.card-link { font-weight: 700; text-decoration: none; }
.card-link::after { content: " →"; }

/* ---------- Étapes "comment ça marche" ---------- */
.steps { display: grid; gap: 1.5rem; margin-top: 2.2rem; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 1.4rem 1.2rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--cta); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; margin-bottom: .8rem;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ---------- Encadré engagement prix ---------- */
.pledge {
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 130%);
  color: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid; gap: 1.2rem; box-shadow: var(--shadow-lg);
}
.pledge h2 { color: #fff; margin: 0; }
.pledge p { color: #dbe7f3; margin: 0; }
.pledge-badge { font-size: 2.6rem; line-height: 1; }
@media (min-width: 800px) { .pledge { grid-template-columns: auto 1fr auto; align-items: center; } }

/* ---------- Exemples d'interventions ---------- */
.examples-grid { display: grid; gap: 1.2rem; margin-top: 2rem; }
@media (min-width: 800px) { .examples-grid { grid-template-columns: repeat(3, 1fr); } }
.example {
  background: #fff; border-left: 4px solid var(--cta); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.3rem; box-shadow: var(--shadow);
}
.example .where { font-weight: 700; color: var(--navy); }
.example .what { color: var(--ink-soft); font-size: .93rem; margin: .4rem 0; }
.example .price { font-weight: 800; color: var(--green); font-size: 1.05rem; }

/* ---------- FAQ accordéon ---------- */
.faq-list { max-width: 780px; margin: 2rem auto 0; }
.faq-list details {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: .8rem; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; color: var(--cta); flex-shrink: 0; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list .faq-answer { padding: 0 1.2rem 1.2rem; color: var(--ink-soft); }

/* ---------- Alertes / encadrés éditoriaux ---------- */
.alert { border-radius: 12px; padding: 1.1rem 1.3rem; margin: 1.5rem 0; }
.alert-urgent { background: var(--red-light); border-left: 4px solid var(--red); }
.alert-info { background: var(--blue-light); border-left: 4px solid var(--blue); }
.alert-success { background: var(--green-light); border-left: 4px solid var(--green); }
.alert p:last-child { margin-bottom: 0; }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb { font-size: .85rem; color: var(--ink-soft); padding: 1rem 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: .3rem; }
.breadcrumb a { color: var(--ink-soft); }

/* ---------- Pages contenu (blog, services) ---------- */
.page-hero { background: var(--bg-soft); padding: clamp(1.8rem, 5vw, 3rem) 0; }
.page-hero h1 { max-width: 800px; }
.page-hero .lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 760px; }
.article-layout { display: grid; gap: 2.5rem; padding: 2.5rem 0 3.5rem; }
@media (min-width: 980px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.article-content { max-width: 760px; }
.article-content h2 { margin-top: 2em; }
.article-content h3 { margin-top: 1.6em; }
.article-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.article-content ul, .article-content ol { padding-left: 1.3rem; color: var(--ink); }
.article-content li { margin-bottom: .45em; }
.article-meta { color: var(--ink-soft); font-size: .88rem; margin-bottom: 1.5rem; }
table.data { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .93rem; }
table.data th, table.data td { border: 1px solid var(--border); padding: .6rem .8rem; text-align: left; }
table.data th { background: var(--bg-soft); color: var(--navy); }
.table-scroll { overflow-x: auto; }

/* ---------- Sidebar sticky de conversion ---------- */
.side-cta { position: sticky; top: 90px; display: grid; gap: 1.2rem; }
.side-cta-box {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 1.5rem; text-align: center; box-shadow: var(--shadow-lg);
}
.side-cta-box h3 { color: #fff; }
.side-cta-box p { color: #dbe7f3; font-size: .92rem; }
.side-cta-box .btn { margin-top: .4rem; }
.side-cta-phone { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; text-align: center; }
.side-cta-phone a { font-weight: 800; font-size: 1.2rem; text-decoration: none; color: var(--navy); }

/* ---------- Wizard de devis ---------- */
.wizard-wrap { max-width: 720px; margin: 0 auto; padding: 1.5rem 0 4rem; }
.wizard-progress { display: flex; gap: .4rem; margin: 1.5rem 0 2rem; }
.wizard-progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--border); transition: background .3s; }
.wizard-progress span.done { background: var(--cta); }
.wizard-step { display: none; animation: fadein .25s ease; }
.wizard-step.active { display: block; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wizard-step h2 { margin-bottom: .3rem; }
.wizard-step .step-help { color: var(--ink-soft); margin-bottom: 1.4rem; }
.options-grid { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .options-grid { grid-template-columns: repeat(3, 1fr); } }
.option-card { position: relative; }
.option-card input { position: absolute; opacity: 0; }
.option-card label {
  display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center;
  padding: 1.1rem .8rem; border: 2px solid var(--border); border-radius: 12px; cursor: pointer;
  font-weight: 600; font-size: .92rem; color: var(--navy); background: #fff; height: 100%;
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.option-card label .emoji { font-size: 1.7rem; }
.option-card input:checked + label { border-color: var(--cta); background: #fff7f2; box-shadow: 0 0 0 3px rgba(255,107,44,.15); }
.option-card input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.wizard-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.wizard-nav .btn-back { background: none; border: 0; color: var(--ink-soft); cursor: pointer; font-size: .95rem; padding: .8rem 0; }
.field { margin-bottom: 1.1rem; }
.field label, #callback-form label { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--navy); font-size: .95rem; }
.field input, .field select, .field textarea, #callback-form input {
  width: 100%; padding: .85rem 1rem; border: 2px solid var(--border); border-radius: 10px;
  font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus, #callback-form input:focus { outline: none; border-color: var(--blue); }
.field .error-msg { color: var(--red); font-size: .85rem; display: none; margin-top: .3rem; }
.field.invalid input { border-color: var(--red); }
.field.invalid .error-msg { display: block; }
.form-note { font-size: .8rem; color: var(--ink-soft); margin-top: .8rem; }
.range-wrap { display: flex; align-items: center; gap: 1rem; }
.range-wrap input[type=range] { flex: 1; accent-color: var(--cta); }
.range-value { font-weight: 800; font-size: 1.3rem; color: var(--navy); min-width: 4.5rem; text-align: right; }

/* Résultat devis */
.quote-result {
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 140%);
  border-radius: var(--radius); color: #fff; padding: 2rem 1.6rem; text-align: center; box-shadow: var(--shadow-lg);
}
.quote-result .label { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: #a9c6e2; }
.quote-amount { font-size: clamp(2.3rem, 8vw, 3.4rem); font-weight: 800; margin: .2rem 0; }
.quote-guarantee { display: inline-block; background: var(--green); border-radius: 999px; padding: .35rem 1rem; font-weight: 700; font-size: .88rem; margin-top: .5rem; }
.quote-details { text-align: left; margin: 1.5rem 0 0; background: rgba(255,255,255,.08); border-radius: 10px; padding: 1rem 1.2rem; font-size: .92rem; }
.quote-details li { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; }
.quote-details ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Pré-footer CTA ---------- */
.prefooter-cta { background: linear-gradient(115deg, var(--cta) 0%, #ff8f5c 120%); color: #fff; padding: clamp(2rem, 5vw, 3rem) 0; }
.prefooter-inner { display: grid; gap: 1.4rem; align-items: center; }
.prefooter-title { color: #fff; margin: 0 0 .3rem; }
.prefooter-sub { margin: 0; color: #fff3ec; }
.prefooter-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.prefooter-cta .btn-cta { background: var(--navy); box-shadow: none; }
.prefooter-cta .btn-cta:hover { background: var(--navy-dark); }
@media (min-width: 900px) { .prefooter-inner { grid-template-columns: 1fr auto; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b9c9da; font-size: .92rem; padding: 3rem 0 5.5rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } .site-footer { padding-bottom: 2rem; } }
.footer-brand { font-size: 1.1rem; color: #fff; }
.footer-brand strong { color: var(--cta); }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: #b9c9da; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; font-size: .82rem; }

/* ---------- Barre CTA mobile sticky ---------- */
.mobile-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: flex; box-shadow: 0 -4px 20px rgba(10,46,82,.25);
}
.mobile-cta-bar a { flex: 1; text-align: center; padding: .95rem .5rem; font-weight: 800; text-decoration: none; font-size: .98rem; }
.mobile-cta-call { background: var(--navy); color: #fff; }
.mobile-cta-devis { background: var(--cta); color: #fff; }
@media (min-width: 900px) { .mobile-cta-bar { display: none; } }

/* ---------- Bouton flottant rappel ---------- */
.callback-fab {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  background: var(--navy); color: #fff; border: 0; border-radius: 999px;
  padding: .85rem 1.4rem; font-weight: 700; font-size: .95rem; cursor: pointer;
  box-shadow: var(--shadow-lg); display: none; font-family: inherit;
}
.callback-fab:hover { background: var(--blue); }
@media (min-width: 900px) { .callback-fab { display: block; } }

/* ---------- Modale ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 150; background: rgba(7,31,56,.65);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: #fff; border-radius: var(--radius); max-width: 440px; width: 100%;
  padding: 2rem 1.8rem; position: relative; box-shadow: var(--shadow-lg);
  max-height: 90vh; overflow-y: auto;
}
.modal-close { position: absolute; top: .8rem; right: .9rem; background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--ink-soft); padding: .3rem; }
.modal-kicker { color: var(--cta); font-weight: 800; text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; margin: 0 0 .3rem; }
.modal-box h2 { font-size: 1.4rem; }
.modal-sub { color: var(--ink-soft); font-size: .95rem; }
.modal-success-icon { font-size: 3rem; text-align: center; margin: 0; }
#callback-form input { margin-bottom: .9rem; }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }

/* ---------- Zones ---------- */
.zones-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-top: 2rem; }
@media (min-width: 800px) { .zones-grid { grid-template-columns: repeat(4, 1fr); } }
.zone-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.2rem;
  text-decoration: none; transition: box-shadow .15s, transform .15s;
}
.zone-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.zone-card .dept { font-weight: 800; color: var(--navy); font-size: 1.05rem; display: block; }
.zone-card .cities { font-size: .82rem; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; padding: 0; list-style: none; }
.chips li { background: var(--blue-light); color: var(--navy); border-radius: 999px; padding: .3rem .9rem; font-size: .85rem; font-weight: 600; }

/* ---------- Divers ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.8rem; position: relative; margin-bottom: .6em; }
.checklist li::before { content: "✔"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
