/* =========================================================
   Landing page couvreur — feuille de style unique
   Palette sobre & pro : bleu ardoise + accent terracotta (toiture)
   Mobile-first, aucune dépendance externe.
   ========================================================= */

/* Masque le badge « Powered by Netlify » injecté par l'hébergeur (plan gratuit) */
#nl-badge-frame,
iframe[id^="nl-badge"] { display: none !important; }

:root {
  --navy: #12273d;
  --navy-2: #1c3c5c;
  --blue: #22557f;
  --accent: #e35c1b;         /* CTA — terracotta tuile */
  --accent-dark: #c44c11;
  --success: #1a8a4a;
  --star: #f6a609;
  --ink: #17222e;
  --muted: #5a6b7b;
  --line: #e4e9ee;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-navy: #12273d;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(18, 39, 61, .10);
  --shadow-lg: 0 18px 50px rgba(18, 39, 61, .18);
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, 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: 17px;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1rem; }

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

section { scroll-margin-top: 84px; }

.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 42px; }
.section__head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 10px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 1.02rem; line-height: 1;
  padding: 16px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
  text-align: center; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(227, 92, 27, .35); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--call { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--call:hover { border-color: var(--blue); color: var(--blue); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.22); }
.btn--lg { padding: 18px 32px; font-size: 1.08rem; }
.btn--block { width: 100%; }

.btn svg { width: 20px; height: 20px; flex: none; }

.reassure { font-size: .9rem; color: var(--muted); margin-top: 10px; text-align: center; }
.reassure svg { width: 15px; height: 15px; vertical-align: -2px; color: var(--success); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; }
.brand__name { font-weight: 800; color: var(--navy); font-size: 1.05rem; line-height: 1.05; }
.brand__name span { display: block; font-weight: 600; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.header__actions { display: flex; align-items: center; gap: 14px; }
/* Menu d'ancres — desktop uniquement (mobile = barre d'appel fixe) */
.mainnav { display: none; }
.mainnav a { font-weight: 600; font-size: .95rem; color: var(--navy); white-space: nowrap; }
.mainnav a:hover { color: var(--blue); }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy); font-size: 1.12rem;
}
.header__phone svg { width: 18px; height: 18px; color: var(--accent); }
.header__phone small { display: block; font-weight: 600; font-size: .68rem; color: var(--muted); letter-spacing: .03em; }
.header .btn { padding: 12px 20px; font-size: .95rem; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center;
  padding-top: 26px; padding-bottom: 44px;
}
.hero h1 { margin-bottom: 16px; }

/* Barre de confiance en tête de hero (lue AVANT la promesse) */
.trustbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.trustbar__note { display: inline-flex; align-items: baseline; gap: 3px; font-weight: 800; color: var(--navy); }
.trustbar__note b { font-size: 1.3rem; line-height: 1; }
.trustbar__note .stars { margin-left: 5px; font-size: .95rem; }
.trustbar__item { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--ink); }
.trustbar__item svg { width: 16px; height: 16px; color: var(--blue); flex: none; }
.trustbar__item + .trustbar__item::before,
.trustbar__note + .trustbar__item::before {
  content: ""; width: 1px; height: 14px; background: var(--line); margin-right: 8px;
}
.hero__lead { font-size: 1.14rem; color: var(--muted); max-width: 560px; margin-bottom: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__cta .btn { flex: 1 1 auto; min-width: 210px; }
.hero__reassure { margin-top: 12px; text-align: left; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%; border-radius: 18px; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3; object-fit: cover;
}
.hero__badge {
  position: absolute; left: 16px; bottom: 16px;
  background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem;
}
.hero__badge svg { width: 26px; height: 26px; color: var(--success); flex: none; }

/* Trust badges */
.trust {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line);
}
.trust__item { display: flex; align-items: center; gap: 12px; }
.trust__ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #eef4fa; color: var(--blue); }
.trust__ic svg { width: 22px; height: 22px; }
/* le conteneur texte doit être un bloc pour que titre et sous-titre s'empilent */
.trust__item > span:last-child { display: block; min-width: 0; }
.trust__t { display: block; font-weight: 800; color: var(--navy); font-size: .95rem; line-height: 1.25; letter-spacing: -.01em; }
.trust__s { display: block; font-size: .82rem; line-height: 1.3; color: var(--muted); margin-top: 2px; }
.trust__t .stars { margin-left: 2px; white-space: nowrap; }
.stars { color: var(--star); letter-spacing: 1px; }

/* ---------- Page de remerciement ---------- */
.merci { background: linear-gradient(180deg, #f4f8fc 0%, #fff 60%); }
.merci__inner { max-width: 860px; margin: 0 auto; text-align: center; }
.merci__badge {
  width: 84px; height: 84px; margin: 0 auto 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: #e6f7ee; color: var(--success);
  box-shadow: 0 0 0 10px rgba(22, 163, 74, .08);
}
.merci__badge svg { width: 42px; height: 42px; }
.merci h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); margin-bottom: 14px; }
.merci__lead { font-size: 1.12rem; color: var(--muted); max-width: 620px; margin: 0 auto 34px; }
.merci__lead strong { color: var(--navy); }

.merci__call {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 22px; box-shadow: var(--sh); margin-bottom: 44px;
}
.merci__call p { margin: 0 0 14px; color: var(--ink); }

.merci__next { margin-bottom: 40px; }
.merci__next h2 { font-size: 1.4rem; margin-bottom: 24px; }
.merci__next .step { text-align: left; }

.merci__trust { max-width: 640px; margin: 0 auto 30px; text-align: left; }
.merci__trust .trust { border-top: 0; padding-top: 0; margin-top: 0; }
.merci__back a { color: var(--blue); font-weight: 700; }

@media (min-width: 620px) {
  .merci__next .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .merci__next .steps { grid-template-columns: repeat(4, 1fr); }
  .merci__trust .trust { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Variante Google Ads : formulaire dans le hero ---------- */
/* Mobile : simple colonne — accroche, puis formulaire, puis arguments */
.hero--ads .hero__grid--form { display: flex; flex-direction: column; gap: 26px; align-items: stretch; }
.hero--ads .hero__head h1 { margin-bottom: 12px; }
.hero--ads .hero__head .hero__lead { margin-bottom: 0; }
.hero__formwrap { position: relative; }
.hero--ads .brand { cursor: default; }

/* Liste d'arguments à coches */
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 1rem; color: var(--ink); }
.ticks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--success); }

/* Footer sans navigation (pages Ads) */
.footer--ads { padding-bottom: 100px; text-align: center; }
.footer--ads .footer__phone { font-size: 1.6rem; margin: 0 0 6px; }
.footer--ads .footer__legal { justify-content: center; text-align: center; }

/* ---------- Bandeau réassurance ---------- */
.strip { background: var(--bg-navy); color: #fff; }
.strip__row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 22px; padding: 20px 0;
}
.strip__item { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .96rem; }
.strip__item svg { width: 20px; height: 20px; color: #66d19a; flex: none; }

/* ---------- Services ---------- */
.grid-services { display: grid; grid-template-columns: 1fr; gap: 20px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cddbe8; }
.service__ic { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.service__ic svg { width: 28px; height: 28px; }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- Galerie avant/après ---------- */
.gallery-feature {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.gallery-feature__media { position: relative; }
.gallery-feature__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/12; }
.tag-ba {
  position: absolute; top: 14px; left: 14px; background: var(--navy); color: #fff;
  font-weight: 700; font-size: .8rem; padding: 7px 12px; border-radius: 999px; letter-spacing: .03em;
}
.gallery-feature__body { padding: 8px 26px 30px; }
.gallery-feature__body h3 { font-size: 1.5rem; }

.grid-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.shot { position: relative; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); background: #eef2f6; }
.shot img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .4s ease; }
.shot:hover img { transform: scale(1.06); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; color: #fff; font-size: .82rem; font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(10,20,30,.82));
}

/* ---------- Pourquoi nous ---------- */
.why { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; }
.why__media img { border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.why__list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.why__item { display: flex; gap: 14px; align-items: flex-start; }
.why__ic { width: 42px; height: 42px; flex: none; border-radius: 10px; background: #eaf6ef; color: var(--success); display: grid; place-items: center; }
.why__ic svg { width: 22px; height: 22px; }
.why__item h3 { margin: 2px 0 3px; font-size: 1.08rem; }
.why__item p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Avis ---------- */
.rating-top { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 34px; }
.rating-top .big { font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1; }
.rating-top .stars { font-size: 1.5rem; }
.rating-top small { color: var(--muted); }
.grid-reviews { display: grid; grid-template-columns: 1fr; gap: 18px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.review .stars { font-size: 1.05rem; }
.review p { font-size: .98rem; margin: 10px 0 14px; }
.review__who { display: flex; align-items: center; gap: 12px; }
.review__av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; display: grid; place-items: center; font-weight: 700; }
.review__who b { display: block; font-size: .95rem; color: var(--navy); }
.review__who small { color: var(--muted); font-size: .82rem; }
.gverified { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); margin-left: auto; }
.gverified svg { width: 16px; height: 16px; }

/* ---------- Zone ---------- */
.zone { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
.zone__ring { display: inline-flex; align-items: center; gap: 10px; background: #eef4fa; color: var(--blue); font-weight: 700; padding: 10px 16px; border-radius: 999px; margin-bottom: 16px; }
.zone__ring svg { width: 20px; height: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; font-size: .92rem; font-weight: 600; color: var(--navy); }
.chip svg { width: 13px; height: 13px; color: var(--accent); vertical-align: -1px; margin-right: 4px; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 20px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; }
.step__n { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; font-size: 1.1rem; }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; color: var(--navy); position: relative; font-size: 1.03rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 20px 18px; color: var(--muted); font-size: .98rem; }

/* ---------- Contact / formulaire ---------- */
.contact { background: var(--bg-navy); color: #fff; }
.contact .section__head h2 { color: #fff; }
.contact .section__head p { color: #c6d3df; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: start; }
.contact__info h3 { color: #fff; }
.contact__info ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.contact__info li { display: flex; gap: 12px; align-items: flex-start; }
.contact__info svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.contact__info a { font-weight: 700; }
.contact__info small { display: block; color: #9fb2c2; font-weight: 400; }

.form { background: #fff; color: var(--ink); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-lg); }
.form h3 { margin-bottom: 4px; }
.form__sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 15px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(34,85,127,.15);
}
.form .btn { margin-top: 6px; }

/* ---------- Footer ---------- */
.footer { background: #0d1c2c; color: #b7c5d2; padding: 46px 0 100px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.footer .brand__name { color: #fff; }
.footer img { height: 44px; filter: brightness(0) invert(1); opacity: .95; }
.footer h4 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__phone { font-size: 1.3rem; font-weight: 800; color: #fff; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; color: #8397a8; font-size: .85rem; }
.footer__legal a { text-decoration: underline; }

/* ---------- Barre mobile sticky ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.98); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(18,39,61,.12);
}
.mobile-bar .btn { padding: 14px 10px; font-size: 1rem; }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 620px) {
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .grid-reviews { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .strip__row { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  /* auto-fit : 3 badges de front quand il y a la place, 2 sinon — jamais écrasés */
  .trust { grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 18px 14px; }
}

@media (min-width: 900px) {
  .mainnav { display: flex; gap: 24px; margin: 0 auto; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; padding-top: 44px; padding-bottom: 60px; }
  /* Ads : 2 colonnes — accroche + arguments à gauche, formulaire à droite sur toute la hauteur */
  .hero--ads .hero__grid--form {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    grid-template-areas: "head form" "rest form";
    grid-template-rows: auto 1fr;
    column-gap: 40px; row-gap: 22px;
    align-items: start;
  }
  .hero--ads .hero__head { grid-area: head; }
  .hero--ads .hero__rest { grid-area: rest; }
  .hero--ads .hero__formwrap { grid-area: form; }
  .hero__cta .btn { flex: 0 1 auto; }
  /* colonne hero plus étroite : on récupère de la largeur pour le texte des badges */
  .trust { gap: 18px 10px; }
  .trust__item { gap: 9px; }
  .trust__ic { width: 36px; height: 36px; border-radius: 9px; }
  .trust__ic svg { width: 19px; height: 19px; }
  .grid-services { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .gallery-feature { grid-template-columns: 1.05fr .95fr; }
  .gallery-feature__body { padding: 8px 40px; }
  .grid-gallery { grid-template-columns: repeat(4, 1fr); }
  .why { grid-template-columns: .95fr 1.05fr; }
  .zone { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: .9fr 1.1fr; }
}

/* Barre mobile visible < 768px */
@media (max-width: 767px) {
  .mobile-bar { display: grid; }
  .header .btn--primary { display: none; }        /* le CTA vit dans la barre mobile */
  .header__phone small { display: none; }
  section { scroll-margin-top: 74px; }
  /* Hero « sans scroll » : contenu (titre + CTA) d'abord, image ensuite et plus courte */
  .hero__grid { padding-top: 16px; padding-bottom: 28px; gap: 20px; }
  .hero__media img { aspect-ratio: 16 / 10; }
  .hero h1 { margin-bottom: 12px; }
  .hero__lead { margin-bottom: 18px; font-size: 1.06rem; }
}

/* Cible d'ancre : le bouton « devis » amène directement sur les champs du formulaire */
[id^="devis-form"] { scroll-margin-top: 86px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =========================================================
   Bandeau d'urgence (LP à intention chaude)
   Placé sous le header : un numéro à composer avant tout scroll.
   ========================================================= */
.alert-band { background: var(--accent); color: #fff; }
.alert-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 18px; padding: 11px 20px; text-align: center;
}
.alert-band__txt {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .97rem; line-height: 1.35;
}
.alert-band__txt svg { width: 19px; height: 19px; flex: none; }
.alert-band__tel {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--accent-dark); font-weight: 800; font-size: 1.02rem;
  padding: 8px 18px; border-radius: 999px; white-space: nowrap;
}
.alert-band__tel svg { width: 17px; height: 17px; }
.alert-band__tel:hover { background: #fff5ef; }

/* Bouton d'appel dans la section « zone » : même respiration que les autres CTA */
.zone .btn { margin-top: 6px; }

/* =========================================================
   Hero à formulaire (LP Ads + LP locales)
   Objectif : formulaire entier (bouton compris) visible sans scroll,
   sur ordinateur (cible 1536 × 700 utiles, 1080p zoomé à 125 %) comme sur mobile.
   ========================================================= */

/* ---------- Carte formulaire du hero (.form--hero) ---------- */
.form--hero { padding: 0; overflow: hidden; border: 1px solid var(--line); }
.form--hero .form__head {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 16px 20px 14px;
}
.form--hero .form__head h3 { color: #fff; font-size: 1.25rem; margin: 0 0 9px; letter-spacing: -.01em; }
.form__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.form__badges span {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .76rem; font-weight: 700; line-height: 1; white-space: nowrap;
  padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.13); color: #fff;
}
.form__badges .stars { color: var(--star); font-size: .9rem; letter-spacing: 0; }
.form--hero .form__body { padding: 16px 20px 14px; }

/* champs à icône, libellé masqué visuellement (lu par les lecteurs d'écran) */
.field--ic { position: relative; margin-bottom: 10px; }
.field--ic label {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: 0;
}
.field--ic > svg {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; color: var(--blue); pointer-events: none;
}
.form--hero .field--ic input,
.form--hero .field--ic select {
  height: 52px; padding: 0 14px 0 46px; font-size: 1rem; /* 16px : pas de zoom auto sur iPhone */
  background: #f5f8fb; border: 1.5px solid #dde4eb; border-radius: 12px; color: var(--ink);
}
.form--hero .field--ic input::placeholder { color: #7d8b98; }
/* besoin pas encore choisi : même gris que les placeholders */
.form--hero .field--ic select:invalid { color: #7d8b98; font-weight: 400; }
.form--hero .field--ic select option { color: var(--ink); font-weight: 400; }
.form--hero .field--ic input:focus,
.form--hero .field--ic select:focus { background: #fff; }
.form--hero .field--ic select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322557f' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.form--hero .btn {
  margin-top: 4px; min-height: 56px; font-size: 1.08rem; gap: 10px;
  box-shadow: 0 10px 24px rgba(227, 92, 27, .35);
}
.form--hero .btn svg { width: 20px; height: 20px; transition: transform .15s ease; }
.form--hero .btn:hover svg { transform: translateX(3px); }
.form__secure {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 10px 0 0; font-size: .8rem; color: var(--muted); text-align: center;
}
.form__secure svg { width: 14px; height: 14px; flex: none; color: var(--success); }

/* ---------- Ordinateur ---------- */
@media (min-width: 900px) {
  .alert-band__inner { padding: 7px 20px; }
  .alert-band__tel { padding: 5px 16px; }
  .hero--ads .hero__grid--form { padding-top: 18px; padding-bottom: 26px; column-gap: 48px; row-gap: 14px; }
  .hero--ads .trustbar { margin-bottom: 12px; padding-bottom: 10px; }
  .hero--ads .eyebrow { margin-bottom: 6px; }
  .hero--ads .hero__head h1 { font-size: clamp(1.9rem, 2.5vw, 2.45rem); margin-bottom: 10px; }
  .hero--ads .hero__lead { font-size: 1.04rem; line-height: 1.55; }
  .hero--ads .ticks { gap: 6px; margin-bottom: 16px; }
  .hero--ads .ticks li { font-size: .95rem; }
  /* doublons de la barre de confiance et du bandeau : retirés du hero sur grand écran */
  .hero--ads .hero__rest .trust,
  .hero--ads .hero__reassure { display: none; }
  .form--hero .form__head { padding: 20px 24px 16px; }
  .form--hero .form__head h3 { font-size: 1.4rem; }
  .form--hero .form__body { padding: 20px 24px 16px; }
  .form--hero .field--ic { margin-bottom: 12px; }
}
/* Petits portables (≈ 1366 × 640 utiles) : on resserre un peu */
@media (min-width: 900px) and (max-height: 680px) {
  .hero--ads .hero__grid--form { padding-top: 12px; padding-bottom: 18px; }
  .hero--ads .trustbar { margin-bottom: 8px; padding-bottom: 8px; }
  .hero--ads .hero__head h1 { font-size: clamp(1.8rem, 2.3vw, 2.2rem); }
  .hero--ads .hero__lead { font-size: 1rem; line-height: 1.5; }
}

/* ---------- Téléphone / tablette : titre → formulaire tout de suite, le reste après ----------
   .hero__head « s'ouvre » (display: contents) pour que ses enfants se réordonnent
   dans la colonne flex : l'accroche et la barre de confiance passent sous le formulaire. */
@media (max-width: 899px) {
  .hero--ads .hero__grid--form { padding-top: 14px; padding-bottom: 28px; gap: 0; }
  .hero--ads .hero__head { display: contents; }
  .hero--ads .hero__head .eyebrow { order: 1; margin-bottom: 5px; font-size: .7rem; letter-spacing: .05em; }
  .hero--ads .hero__head h1 { order: 1; font-size: clamp(1.45rem, 6.4vw, 1.9rem); line-height: 1.12; margin-bottom: 14px; }
  .hero--ads .hero__formwrap { order: 2; margin-bottom: 22px; }
  .hero--ads .hero__head .hero__lead { order: 3; margin-bottom: 16px; }
  .hero--ads .trustbar { order: 3; margin-bottom: 16px; }
  .hero--ads .hero__rest { order: 4; }
  .form--hero { border-radius: 16px; }
  .hero--ads .hero__head h1 { font-size: clamp(1.32rem, 5.7vw, 1.85rem); margin-bottom: 12px; }
  .form--hero .form__head { padding: 12px 16px 11px; }
  .form--hero .form__head h3 { font-size: 1.15rem; margin-bottom: 7px; }
  .form__badges { gap: 5px; }
  .form__badges span { font-size: .7rem; padding: 5px 8px; }
  .form--hero .form__body { padding: 12px 16px 10px; }
  .field--ic { margin-bottom: 8px; }
  .form--hero .field--ic input,
  .form--hero .field--ic select { height: 48px; }
  .form--hero .btn { padding: 12px 16px; min-height: 52px; font-size: 1.04rem; white-space: nowrap; margin-top: 2px; }
  .form__secure { margin-top: 8px; font-size: .76rem; }
}
/* Petits téléphones peu hauts (iPhone SE, Android compacts) */
@media (max-width: 899px) and (max-height: 620px) {
  .hero--ads .hero__head .eyebrow { display: none; }
  .hero--ads .hero__head h1 { font-size: 1.28rem; margin-bottom: 10px; }
  .hero--ads .hero__grid--form { padding-top: 9px; }
  .form--hero .form__head { padding: 10px 16px 9px; }
  .form--hero .form__body { padding-top: 10px; }
  .form--hero .field--ic input,
  .form--hero .field--ic select { height: 46px; }
}
@media (max-width: 767px) {
  /* Header : nom + numéro sur une seule ligne chacun */
  .header__inner { height: 60px; gap: 10px; }
  .brand { gap: 8px; min-width: 0; }
  .brand img { height: 36px; }
  .brand__name { font-size: 1rem; white-space: nowrap; }
  .brand__name span { display: none; }          /* la ville est déjà dans le titre */
  .header__phone { font-size: 1.02rem; white-space: nowrap; gap: 7px; }
  .header__phone svg { width: 17px; height: 17px; }
  section { scroll-margin-top: 66px; }
  /* le numéro est déjà dans le header et la barre d'appel du bas : bandeau compact */
  .alert-band__inner { padding: 7px 14px; }
  .alert-band__txt { font-size: .8rem; }
  .alert-band__tel { display: none; }
}
/* Petits écrans : un libellé de bouton long passe à la ligne au lieu d'élargir la page */
@media (max-width: 479px) {
  .btn { white-space: normal; line-height: 1.25; max-width: 100%; }
}
