/* ═══════════════════════════════════════════════════
   DGF 38 — feuille de style unique
   Palette : noir / rouge / blanc (reprise du flyer et du véhicule)
   ═══════════════════════════════════════════════════ */

:root {
  --red: #d92b2b;
  --red-dark: #ab1e1e;
  --red-light: #ff4d4d;
  --amber: #e9a92c;
  --green: #8cc63f; /* vert du logo Certibiocide */

  --ink: #121212;
  --ink-soft: #1d1d1d;
  --paper: #ffffff;
  --soft: #f5f3f1;
  --line: #e3ded9;
  --muted: #6d6862;
  --muted-dark: #a8a29b;

  --wrap: 1180px;
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgb(0 0 0 / 45%);

  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ── Typographie ────────────────────────────────── */

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 800;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.17rem; letter-spacing: -0.01em; }

.eyebrow {
  margin: 0 0 .7em;
  font-size: 1.0rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}

.lede, .section-lede {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 62ch;
}
.lede { color: #d8d3cd; }

.note {
  margin-top: 34px;
  padding: 16px 20px;
  background: var(--soft);
  border-left: 4px solid var(--amber);
  border-radius: 0 8px 8px 0;
  font-size: .98rem;
  color: var(--muted);
}
.note strong { color: var(--ink); }

/* ── Boutons ────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.btn-call {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgb(217 43 43 / 90%);
}
.btn-call:hover { background: var(--red-light); transform: translateY(-2px); }
.btn-call:active { transform: translateY(0); }

.btn-lg { padding: 16px 30px; font-size: 1.32rem; letter-spacing: .01em; }
.btn-xl { padding: 19px 38px; font-size: 1.55rem; }

.btn-lg small, .btn-xl small {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: .85;
  line-height: 1.5;
}

.ico-phone {
  flex: none;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--phone-mask) center / contain no-repeat;
  mask: var(--phone-mask) center / contain no-repeat;
  --phone-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.2.4 2.4.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.4 0 .8-.2 1l-2.3 2.2z"/></svg>');
}
.btn-xl .ico-phone, .btn-lg .ico-phone { width: 26px; height: 26px; }

/* ── En-tête ────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(18 18 18 / 92%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff;
  margin-right: auto;
}
.brand img { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-size: 1.45rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.01em;
}
.brand-text small {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--red-light);
}

.nav { display: flex; gap: 26px; }
.nav a {
  color: #cfc9c2;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: #fff; border-bottom-color: var(--red); }

.header-call { font-size: 1.02rem; padding: 11px 20px; }

/* ── Hero ───────────────────────────────────────── */

.hero {
  background:
    radial-gradient(90% 120% at 85% 0%, #2c2724 0%, transparent 55%),
    linear-gradient(180deg, #191817 0%, #101010 100%);
  color: #fff;
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy h1 { color: #fff; text-wrap: balance; }
.hero-copy h1::after {
  content: "";
  display: block;
  width: 82px;
  height: 5px;
  background: var(--red);
  border-radius: 3px;
  margin-top: 22px;
}

.hero-actions { margin-top: 34px; }

.price-hint {
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  font-size: .95rem;
  color: var(--muted-dark);
}
.price-hint strong {
  font-size: 1.22rem;
  color: var(--amber);
  letter-spacing: -0.01em;
}
.price-hint a { color: #fff; text-underline-offset: 3px; }

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 32%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgb(255 255 255 / 10%);
}

/* ── Bandeau confiance ──────────────────────────── */

.trust { background: var(--red); color: #fff; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.trust-item {
  padding: 22px 18px;
  text-align: center;
  position: relative;
}
.trust-item + .trust-item::before {
  content: "";
  position: absolute;
  left: -1px; top: 24%;
  height: 52%;
  border-left: 1px solid rgb(255 255 255 / 28%);
}
.trust-k {
  display: block;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.trust-v {
  display: block;
  font-size: .87rem;
  color: rgb(255 255 255 / 82%);
  line-height: 1.4;
}
.trust-v a {
  color: #fff;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ── Sections ───────────────────────────────────── */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .section-lede { color: var(--muted-dark); }
.section-dark h2 { color: #fff; }

/* ── Tarifs ─────────────────────────────────────── */

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  margin-top: 44px;
}

.pricing-block {
  background: #1c1b1a;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: var(--radius);
  padding: 28px 28px 12px;
}
.pricing-block h3 { color: #fff; }
.pricing-block h3 small {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--muted-dark);
  margin-top: 4px;
}

.price-list { list-style: none; margin: 18px 0 0; padding: 0; }
.price-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid rgb(255 255 255 / 9%);
}
.pl-label { color: #d8d3cd; font-size: .98rem; }
.pl-price {
  flex: none;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--amber);
}

/* Franchise en base de TVA : le prix affiché est le prix final.
   La mention légale elle-même reste en retrait, l'info utile passe devant. */
.pricing-tax {
  margin: 22px 0 0;
  font-size: .95rem;
  color: #d8d3cd;
}
.pricing-tax strong { color: #fff; }
.pricing-tax span {
  display: block;
  margin-top: 4px;
  font-size: .82rem;
  color: var(--muted-dark);
}

.pricing-cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px 30px;
  background: rgb(255 255 255 / 5%);
  border-radius: var(--radius);
}
.pricing-cta p { margin: 0; color: #d8d3cd; max-width: 46ch; }

/* ── Étapes ─────────────────────────────────────── */

.steps {
  list-style: none;
  margin: 46px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 34px;
}

.step { position: relative; padding-top: 8px; }
.step-n {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
}
.step p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ── Split (pourquoi nous) ──────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 66px);
  align-items: center;
}

.checks { list-style: none; margin: 30px 0 0; padding: 0; }
.checks li {
  position: relative;
  padding: 0 0 18px 34px;
  color: var(--muted);
  font-size: .99rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--red)
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9.6 16.6 5 12l1.4-1.4 3.2 3.2 8-8L19 7.2z"/></svg>')
    center / 13px no-repeat;
}
.checks strong { color: var(--ink); }

.split-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── Certification Certibiocide ─────────────────── */

/* Section blanche : elle suit la section sombre des tarifs, le contraste
   est donc déjà net. Le logo Certibiocide repose sur du blanc pur. */
.section-certif { background: var(--paper); }

.certif-card {
  display: grid;
  grid-template-columns: minmax(220px, 290px) 1fr;
  gap: clamp(30px, 4.5vw, 62px);
  align-items: center;
}

.certif-logo { text-align: center; }
.certif-logo img { width: 100%; height: auto; }

.certif-num {
  margin: 16px auto 0;
  max-width: 82%;
  padding-top: 14px;
  border-top: 2px solid var(--green);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}

.certif-copy h2 { text-wrap: balance; }
.certif-copy p { color: var(--muted); }
.certif-copy p strong { color: var(--ink); }
.certif-copy sup { font-size: .68em; }

.checks-green { margin-top: 22px; }
.checks-green li::before { background-color: var(--green); }
.checks-green li { padding-bottom: 14px; }

/* ── Galerie ────────────────────────────────────── */

.gallery-shell {
  position: relative;
  margin-top: 44px;
}
/* Trois photos par écran plutôt qu'une largeur pile : la quatrième dépasse
   d'une lame visible, c'est ce qui donne envie de faire glisser. */
.gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 99px;
}
.gallery figure {
  flex: 0 0 30%;
  margin: 0;
  scroll-snap-align: start;
}
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery figcaption {
  margin-top: 11px;
  font-size: .88rem;
  color: var(--muted);
}

/* Les flèches sont posées sur les bords des photos. Le décalage de 22 px
   remonte leur centre au milieu de l'image, la légende ne comptant pas. */
.gallery-arrow {
  position: absolute;
  top: calc(50% - 22px);
  transform: translateY(-50%);
  display: flex;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 8px 22px -6px rgb(0 0 0 / 45%);
  color: var(--ink);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, opacity .18s ease;
}
.gallery-arrow[hidden] { display: none; }
.gallery-arrow::before {
  content: "";
  margin: auto;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--chevron) center / contain no-repeat;
  mask: var(--chevron) center / contain no-repeat;
  --chevron: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.3 4.3 8 5.6l6.4 6.4L8 18.4l1.3 1.3 7.7-7.7z"/></svg>');
}
.gallery-arrow-prev { left: 12px; }
.gallery-arrow-prev::before { transform: rotate(180deg); }
.gallery-arrow-next { right: 12px; }
.gallery-arrow:hover {
  background: var(--red);
  color: #fff;
}
/* En bout de course, la flèche s'efface au lieu de disparaître : la bande ne
   se met pas à sauter d'un côté à l'autre. */
.gallery-arrow[disabled] {
  opacity: 0;
  pointer-events: none;
}

/* ── Vidéo d'intervention ───────────────────────── */

.video-feature {
  display: grid;
  grid-template-columns: minmax(0, 300px) 1fr;
  gap: 38px;
  align-items: center;
  margin-top: 44px;
}
/* Le format 9/20 est celui du téléphone qui a filmé : le lecteur remplit
   exactement le cadre, sans bandes noires. */
.video-frame {
  aspect-ratio: 576 / 1280;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--ink);
}
.video-frame > * {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-embed {
  position: relative;
  cursor: pointer;
}
.video-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 12px 30px -8px rgb(0 0 0 / 60%);
  transition: transform .18s ease, background .18s ease;
}
.video-play::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-left: 22px solid #fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  transform: translateX(4px);
}
.video-embed:hover .video-play,
.video-embed:focus-visible .video-play {
  background: var(--red-light);
  transform: scale(1.08);
}
.video-copy h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}
.video-copy p {
  margin: 0 0 12px;
  color: var(--muted);
}
/* Mention discrète : on l'estompe par la taille et la graisse plutôt que par
   la couleur, qui reste au-dessus du seuil de contraste AA (4,76:1). */
.video-note {
  margin-top: 18px;
  font-size: .8rem;
  line-height: 1.5;
  color: #78726a;
}

/* ── Zone d'intervention ────────────────────────── */

.towns {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
}
.towns li {
  padding: 9px 17px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 600;
}

/* ── CTA finale ─────────────────────────────────── */

.section-cta {
  background:
    radial-gradient(80% 130% at 50% 0%, #2a2522 0%, transparent 60%),
    var(--ink);
  color: #fff;
  text-align: center;
}
.cta-inner { max-width: 720px; }
.section-cta h2 { color: #fff; text-wrap: balance; }
.section-cta > .wrap > p { color: var(--muted-dark); }
.section-cta .btn { margin-top: 26px; }
.cta-mail { margin-top: 26px; font-size: .95rem; color: var(--muted-dark); }
.cta-mail a { color: #fff; }

/* ── Pied de page ───────────────────────────────── */

.site-footer {
  background: #0c0c0c;
  color: var(--muted-dark);
  padding: 56px 0 28px;
  font-size: .94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* colonnes égales : indispensable pour que le centrage soit d'aplomb */
  gap: 36px;
  text-align: center;
}
.site-footer h3 {
  color: #fff;
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: .9em;
}
.site-footer p { margin: 0; line-height: 1.85; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.brand-footer { display: block; width: 152px; margin: 0 auto 18px; }
.brand-footer img { width: 100%; height: auto; }
.footer-tagline { max-width: 34ch; margin-inline: auto; }

.legal {
  margin-top: 44px;
  padding-top: 22px;
  text-align: center;
  border-top: 1px solid rgb(255 255 255 / 9%);
  font-size: .82rem;
  color: #77716b;
}
.legal p { margin: 0 0 6px; }

/* Repère visuel des informations manquantes — à retirer en production */
.todo {
  background: #4a3a00;
  color: #ffd469;
  padding: 0 6px;
  border-radius: 4px;
}

/* ── Page mentions légales ──────────────────────── */

.legal-page { padding: clamp(40px, 6vw, 76px) 0 clamp(56px, 8vw, 92px); }
.legal-page .wrap { max-width: 820px; }
.legal-page h1 { margin-bottom: .25em; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal-page .updated { margin: 0 0 46px; color: var(--muted); font-size: .92rem; }

.legal-block { margin-bottom: 44px; }
.legal-block h2 {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  font-size: 1.22rem;
}
.legal-block p { margin: 0 0 12px; color: var(--muted); }
.legal-block p strong { color: var(--ink); }

.legal-dl { margin: 0; }
.legal-dl dt {
  margin-top: 18px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-dl dd { margin: 3px 0 0; color: var(--ink); }

.legal-hint {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--soft);
  font-size: .92rem;
}

.legal-back { margin-top: 52px; font-weight: 700; }

/* ── Barre d'appel mobile ───────────────────────── */

.callbar {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 120;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 15px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px -10px rgb(0 0 0 / 60%);
}

/* ── Adaptations ────────────────────────────────── */

@media (max-width: 980px) {
  .nav { display: none; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { aspect-ratio: 16 / 11; object-position: center 28%; }
  .split-photo img { aspect-ratio: 16 / 11; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .certif-card { grid-template-columns: 1fr; }
  .certif-logo { max-width: 300px; margin-inline: auto; }
  .gallery figure { flex-basis: 46%; }
}

@media (max-width: 760px) {
  .video-feature {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
  }
  .video-frame { width: min(100%, 300px); }
  .video-copy { text-align: center; }
  .video-note { text-align: left; }
  /* Sur écran tactile, le doigt suffit : les flèches ne feraient qu'encombrer. */
  .gallery-arrow { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; padding-bottom: 82px; }
  .header-call { font-size: 0; gap: 0; padding: 12px; }
  .header-call .ico-phone { width: 20px; height: 20px; }
  .callbar { display: flex; }
  .btn-lg, .btn-xl { width: 100%; justify-content: center; font-size: 1.24rem; }
  .pricing-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .pl-price { font-size: 1.45rem; }
  .gallery figure { flex-basis: 82%; }
}

@media (prefers-reduced-motion: reduce) {
  html, .gallery { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
