/* Débouch'Services — page d'atterrissage Google Ads « intervention » (débouchage).
   Déclinaison de la page d'atterrissage Dépann'Auto, palette bleu foncé. Mobile first. */

:root {
  --bg: #f4f7fc;
  --bg-alt: #e9eff9;
  --card: #ffffff;
  --ink: #0b1630;
  --ink-soft: #243255;
  --muted: #4d5a78;
  --line: #d6dfef;
  --navy: #0a2a66;
  --navy-deep: #061a42;
  --blue: #1458d6;
  --sky: #38b6ff;
  --sky-deep: #1d9bee;
  --blue-soft: #dbe7fb;
  --ok: #1f9d55;
  --white: #ffffff;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px -24px rgba(6, 26, 66, .45);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --max: 1360px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
p, li, blockquote, figcaption, dd, summary { text-wrap: pretty; }
p { margin: 0; }
.ico { width: 20px; height: 20px; flex: none; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; font-size: 16px; text-decoration: none; white-space: nowrap; line-height: 1;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.btn-accent { background: var(--sky); color: var(--navy-deep); box-shadow: 0 10px 24px -12px rgba(29, 155, 238, .8); }
.btn-accent:hover { background: #5cc6ff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--blue-soft); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }

/* ---------- En-tête ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 46px; width: 46px; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.03em; color: var(--navy); white-space: nowrap; }
.brand-name b { color: var(--blue); font-weight: 800; }
.nav { display: none; margin-left: auto; gap: 26px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--blue); }
.header-actions { display: flex; gap: 10px; margin-left: auto; }
.phone-pill { display: none; min-height: 46px; padding: 0 20px; }
.cta-head { min-height: 46px; padding: 0 18px; }
.cta-long { display: none; }

/* ---------- Héros : image de fond sur toute la largeur, formulaire à droite ---------- */
.hero { position: relative; color: #fff; background: var(--navy-deep); padding: 250px 0 84px; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; left: 0; right: 0; top: 0; height: 330px; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 62%; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 26, 66, 0) 0%, rgba(6, 26, 66, 0) 40%, rgba(6, 26, 66, .6) 62%, rgba(6, 26, 66, 1) 78%);
}
/* bas du héros en courbe */
.hero::after {
  content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 46px; z-index: 1;
  background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; position: relative; z-index: 2; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); font-size: 13px; font-weight: 600;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #3be07d; }
.dot.live { box-shadow: 0 0 0 0 rgba(59, 224, 125, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(59, 224, 125, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 224, 125, 0); } }
h1 { font-size: clamp(29px, 8.2vw, 40px); margin: 16px 0 14px; letter-spacing: -0.035em; }
h1 .l { display: inline; }
.hl { color: var(--sky); position: relative; }
.lead { text-wrap: balance; font-size: 17px; color: #e4ecfb; max-width: 560px; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; max-width: 560px; }
.chip { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22); font-size: 12.5px; line-height: 1.25; font-weight: 600; }
.chip .ico { width: 22px; height: 22px; color: var(--sky); }
.chip strong { font-weight: 800; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.ctas .btn { flex: 1 1 200px; }
.locate-note { margin-top: 14px; font-size: 13.5px; color: #cfdcf5; }

/* Carte du formulaire */
.card {
  background: var(--card); color: var(--ink); border-radius: var(--radius-lg); padding: 22px 20px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7);
}
.card-title { font-size: 26px; }
.card-sub { margin: 6px 0 14px; color: var(--muted); font-size: 14.5px; }
.f-grid { display: grid; gap: 11px; margin-bottom: 14px; }
.f-row label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 4px; }
.f-row input, .f-row select {
  width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; font: inherit; font-size: 16px; color: var(--ink);
}
.f-row input:focus, .f-row select:focus { border-color: var(--blue); }
.f-row.err input, .f-row.err select { border-color: #d63a3a; }
.rappel .btn { width: 100%; }
.f-note { margin-top: 10px; font-size: 12px; color: var(--muted); }
.f-note a { color: var(--blue); }
.f-msg { margin-top: 10px; font-size: 14.5px; font-weight: 700; }
.f-msg:empty { display: none; }
.f-msg.ok { color: var(--ok); }
.f-msg.ko { color: #c22; }
.f-msg a { color: var(--blue); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.section h2 { font-size: clamp(26px, 6.6vw, 40px); margin-bottom: 12px; }
.intro { color: var(--muted); font-size: 17px; max-width: 640px; }

.services { display: grid; gap: 14px; margin-top: 28px; }
.svc { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue); }
.svc-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-soft); color: var(--navy); margin-bottom: 14px; }
.svc h3 { font-size: 20px; margin-bottom: 6px; }
.svc p { color: var(--muted); font-size: 15px; }
.svc .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 800; font-size: 14.5px; color: var(--blue); }
.svc .more .ico { width: 16px; height: 16px; }

.steps { display: grid; gap: 14px; margin-top: 28px; }
.step { background: var(--card); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

.zones-note { margin-top: 18px; color: var(--muted); }

.stars { display: inline-flex; gap: 2px; color: #f5b301; vertical-align: -3px; }
.stars .ico { width: 18px; height: 18px; }
.avis-piste { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 22px 0 10px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: thin; }
.avis { flex: 0 0 min(86%, 380px); scroll-snap-align: start; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.avis blockquote { text-wrap: balance; margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.avis figcaption { font-size: 14px; color: var(--muted); }
.avis figcaption strong { color: var(--ink); }
.avis-note { margin-top: 10px; font-size: 14px; }
.avis-note a { color: var(--blue); font-weight: 700; }

.faq { margin-top: 24px; display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { text-wrap: balance; cursor: pointer; padding: 16px 0; font-weight: 800; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 0 16px; color: var(--muted); }

.rappel-wrap { display: grid; gap: 22px; }
.rappel-wrap .rappel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 20px; max-width: 560px; width: 100%; }

.final { text-align: center; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: 56px var(--gutter); }
.final h2 { font-size: clamp(23px, 6.2vw, 42px); margin-bottom: 10px; }
.final p { color: #d6e2fa; max-width: 560px; margin: 0 auto 22px; }
.tel-big { display: block; margin: 18px 0 6px; font-size: clamp(30px, 8vw, 44px); font-weight: 800; text-decoration: none; letter-spacing: -0.02em; }
.final-rappel a { color: var(--sky); font-weight: 700; }

.footer { background: var(--navy-deep); color: #c3d0ea; padding: 36px 0 110px; font-size: 14.5px; }
.footer .wrap { display: grid; gap: 14px; }
.footer .brand img { height: 42px; width: 42px; }
.footer .brand-name { color: #fff; }
.footer .brand-name b { color: var(--sky); }
.footer a { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.linkish { background: none; border: 0; padding: 0; text-decoration: underline; color: #fff; font-size: inherit; }

/* Barre d'appel mobile */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); }
.callbar .btn { width: 100%; }

/* ---------- Tablette et ordinateur ---------- */
@media (min-width: 700px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cta-long { display: inline; }
  .cta-short { display: none; }
  .chips { grid-template-columns: repeat(3, auto); justify-content: start; }
  .avis { flex-basis: 360px; }
  .rappel-wrap { grid-template-columns: 1fr 1fr; align-items: center; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; --header-h: 76px; }
  .nav { display: flex; }
  .header-actions { margin-left: 0; }
  .phone-pill { display: inline-flex; }
  .brand img { height: 52px; width: 52px; }
  .brand-name { font-size: 24px; }
  .callbar { display: none; }
  .footer { padding-bottom: 36px; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .avis-piste { margin: 0; padding-left: 0; padding-right: 0; }
  .hero { padding: 40px 0 92px; }
  /* le fourgon (et son flocage) se place entre le texte et le formulaire */
  .hero-bg { bottom: 0; height: auto; }
  .hero-bg img { position: absolute; left: 22%; width: 42%; height: 100%; object-fit: cover; object-position: 88% 60%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 85%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 85%, transparent 100%); }
  .hero::before { background: linear-gradient(90deg, rgba(6, 26, 66, .92) 0%, rgba(6, 26, 66, .78) 36%, rgba(6, 26, 66, .3) 54%, rgba(6, 26, 66, .0) 68%); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 420px; align-items: center; gap: 56px; }
  h1 { font-size: clamp(34px, 3.3vw, 52px); margin: 18px 0 16px; }
  h1 .l { display: block; white-space: nowrap; }
  .lead { font-size: 18px; }
  .ctas .btn { flex: 0 0 auto; }
  .card { padding: 26px 26px 22px; }
}
/* Hauteur d'écran réduite (1366×768) : le formulaire reste entièrement au-dessus de la ligne de flottaison */
@media (min-width: 1024px) and (max-height: 820px) {
  .hero { padding: 24px 0 70px; }
  .card { padding: 20px 22px 16px; }
  .card-sub { display: none; }
  .card-title { margin-bottom: 10px; }
  .f-grid { gap: 8px; margin-bottom: 10px; }
  .f-row input, .f-row select { height: 44px; }
  .chips { margin: 14px 0; }
  .lead { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.f-dep select { font-size: 15px; }

/* ---------- Carte de PACA ---------- */
.zones-grid { display: grid; gap: 22px; margin-top: 26px; align-items: start; }
.paca-map { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow); }
.paca-svg { width: 100%; height: auto; max-height: 560px; }
.dep path { fill: #2a58b4; stroke: #061a42; stroke-width: 1.4; stroke-linejoin: round; cursor: pointer; transition: fill .15s; }
.dep:hover path, .dep:focus path { fill: #3f78e0; outline: none; }
.dep.is-on path { fill: var(--sky); }
.dep:focus-visible path { stroke: #fff; stroke-width: 2.5; }
.dep-num { fill: #fff; font: 800 26px var(--font); pointer-events: none; paint-order: stroke; stroke: rgba(6, 26, 66, .55); stroke-width: 3px; }
.dep-num.is-on { fill: var(--navy-deep); stroke: none; }
.dep-legend { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.dep-btn { display: flex; align-items: center; gap: 8px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 13.5px; line-height: 1.2; color: var(--navy); }
.dep-btn b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--navy); color: #fff; font-size: 13px; }
.dep-btn.is-on { border-color: var(--blue); background: var(--blue-soft); }
.dep-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.dep-panel h3 { font-size: 24px; margin-bottom: 4px; }
.dep-panel .dep-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.dep-villes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.dep-villes li { padding: 7px 13px; border-radius: 999px; background: var(--bg-alt); font-weight: 700; font-size: 14px; color: var(--navy); }
.dep-actions { display: grid; gap: 10px; }
.dep-hint { color: var(--muted); }
.zones-note { margin-top: 18px; color: var(--muted); }
@media (min-width: 560px) { .dep-legend { grid-template-columns: 1fr 1fr; } }
@media (min-width: 700px) { .dep-legend { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .zones-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px 36px; }
  .paca-map { grid-column: 1; grid-row: 1 / span 2; }
  .dep-legend { grid-column: 2; grid-row: 1; margin-top: 0; grid-template-columns: 1fr 1fr; }
  .dep-panel { grid-column: 2; grid-row: 2; }
  .dep-num { font-size: 22px; }
}

.f-pair { display: grid; gap: 11px; }
@media (min-width: 420px) { .f-pair { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) and (max-height: 820px) { .f-pair { gap: 8px; } }
