/* ==========================================================================
   Débarras Moselle — feuille de style unique
   Ordre : polices > variables > base > composants > sections > responsive
   ========================================================================== */

/* ---------- Polices (auto-hébergées, sous-ensemble latin uniquement) ------ */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('fonts/bricolage-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ---------- Variables ----------------------------------------------------- */
:root {
  --ink: #0E1A14;
  --ink-2: #33443C;
  --muted: #5C6B63;          /* 5.6:1 sur blanc */
  --line: #E4EBE7;
  --bg: #fff;
  --bg-soft: #F3FAF6;
  --bg-warm: #F7F5F0;
  --dark: #0C2B1E;
  --dark-2: #123726;
  --accent: #34C77B;         /* fonds et pastilles uniquement */
  --accent-ink: #04140C;     /* texte sur --accent : 8.6:1 */
  --green: #0F7A45;          /* texte vert lisible : 5.4:1 sur blanc */
  --on-dark: #A8C2B5;        /* 8:1 sur --dark */
  --on-dark-dim: #8FAA9C;    /* 6:1 sur --dark */
  --title: 'Bricolage Grotesque', Georgia, serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --radius: 18px;
  --shadow: 0 6px 20px rgba(52, 199, 123, .34);
}

/* ---------- Base ---------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
/* <picture> est en ligne par défaut : sans ça, les photos ne remplissent plus leur cadre. */
picture { display: block; width: 100%; height: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
strong, b { font-weight: 700; }

h1, h2, h3, h4 { font-family: var(--title); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
h3, h4 { font-weight: 700; letter-spacing: -.01em; }

/* Un anneau de focus visible partout — obligation d'accessibilité. */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.lead { font-size: 1.06rem; color: var(--muted); }
.center { text-align: center; }
.muted { color: var(--muted); }
.green { color: var(--green); }
.nowrap { white-space: nowrap; }

/* Réservé aux lecteurs d'écran */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 1200;
  background: var(--dark); color: #fff; padding: 12px 18px;
  border-radius: 0 0 12px 12px; font-weight: 600; transition: top .15s;
}
.skip:focus { top: 0; color: #fff; }

/* ---------- Boutons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-size: 1rem; font-weight: 600;
  padding: 14px 24px; border-radius: 14px; border: 1.5px solid transparent;
  cursor: pointer; text-align: center; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--green); color: #fff; }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-2); color: #fff; }
.btn-block { width: 100%; }
.btn svg { flex-shrink: 0; }

.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--green);
  margin-bottom: 12px;
}

/* ---------- En-tête ------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header nav {
  max-width: var(--wrap); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 68px;
}
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px; background: var(--dark);
  display: grid; place-items: center; flex-shrink: 0;
}
.logo-mark svg { width: 21px; height: 21px; fill: var(--accent); }
.logo-text {
  font-family: var(--title); font-weight: 800; font-size: 1.15rem;
  letter-spacing: -.03em; line-height: 1;
}
.logo-text small {
  display: block; font-family: var(--body); font-size: .625rem; font-weight: 600;
  letter-spacing: .2em; color: var(--muted); margin-top: 3px;
}
.nav-menu { display: none; gap: 24px; list-style: none; font-size: .95rem; font-weight: 500; }
.nav-menu a { padding: 6px 0; }
.nav-right { display: flex; align-items: center; gap: 14px; }
/* Combiné + numéro sur deux lignes. Le bloc texte porte sa propre colonne :
   le parent, lui, aligne le combiné et le texte côte à côte. */
.nav-tel { display: none; align-items: center; gap: 9px; font-weight: 700; font-size: .97rem; }
.nav-tel .tel-txt { display: flex; flex-direction: column; line-height: 1.2; }
/* Les horaires sont un argument de vente, pas une mention légale : en vert de
   marque et en gras, pas en petit gris. */
.nav-tel small { font-size: .82rem; font-weight: 700; color: var(--green); letter-spacing: .01em; }
.tel-ico {
  width: 34px; height: 34px; border-radius: 11px; background: #E8F7EF;
  display: grid; place-items: center; color: var(--green); flex-shrink: 0;
}
.tel-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- Le téléphone sonne -------------------------------------------
   Une sonnerie brève toutes les trois secondes : assez pour attirer l'œil sur
   le numéro, assez espacée pour ne pas rendre la page pénible. L'animation
   s'arrête d'elle-même chez les visiteurs qui ont demandé moins d'animations
   dans leur système (règle prefers-reduced-motion en haut de fichier). */
.sonne { transform-origin: 50% 62%; animation: sonnerie 3s ease-in-out infinite; }
@keyframes sonnerie {
  0%, 24%, 100% { transform: rotate(0); filter: none; }
  3%  { transform: rotate(-17deg); filter: drop-shadow(0 0 5px rgba(52, 199, 123, .8)); }
  8%  { transform: rotate(15deg); }
  13% { transform: rotate(-10deg); filter: drop-shadow(0 0 5px rgba(52, 199, 123, .8)); }
  18% { transform: rotate(7deg); }
  21% { transform: rotate(-3deg); }
}
.nav-cta { display: none; }
/* Le bouton devis de l'en-tête respire, légèrement de travers pour qu'on le
   remarque. Il s'immobilise et se redresse dès qu'on le vise : on ne clique
   pas sur une cible mouvante. */
.nav-cta {
  transform: rotate(-2deg);
  animation: appel-devis 1.6s ease-in-out infinite;
}
.nav-cta:hover, .nav-cta:focus-visible {
  animation: none;
  transform: rotate(0) scale(1.05);
}
@keyframes appel-devis {
  0%, 100% { transform: rotate(-2deg) scale(1);    box-shadow: 0 4px 14px rgba(15, 122, 69, .3); }
  50%      { transform: rotate(-2deg) scale(1.06); box-shadow: 0 8px 26px rgba(15, 122, 69, .5); }
}

.burger {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg);
  cursor: pointer; flex-shrink: 0;
}
.burger svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; }

.mobile-menu {
  display: none; flex-direction: column; gap: 2px;
  border-top: 1px solid var(--line); background: var(--bg); padding: 12px 20px 18px;
}
.mobile-menu[data-open='true'] { display: flex; }
.mobile-menu a { padding: 13px 0; font-size: 1.02rem; font-weight: 600; border-bottom: 1px solid #F1F5F3; }
.mobile-menu .btn { margin-top: 12px; }

/* ---------- Hero ---------------------------------------------------------- */
.hero {
  background:
    radial-gradient(900px 460px at 8% 0%, rgba(52, 199, 123, .16), transparent 62%),
    radial-gradient(720px 420px at 96% 24%, rgba(52, 199, 123, .10), transparent 60%),
    var(--bg-soft);
  padding: 40px 0 48px;
}
/* Fil d'Ariane des pages ville */
.fil { font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.fil a { color: var(--green); font-weight: 600; }
.fil span[aria-hidden] { margin: 0 4px; }

.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 6.6vw, 3.25rem); margin-bottom: 16px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p.lead { font-size: 1.08rem; max-width: 540px; margin-bottom: 22px; }

.badge-top {
  display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px 7px 8px; font-size: .84rem; font-weight: 600; margin-bottom: 20px;
}
.badge-top i {
  background: var(--accent); color: var(--accent-ink); border-radius: 999px;
  padding: 3px 10px; font-style: normal; font-size: .75rem; font-weight: 700;
}

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-actions .btn { flex: 1 1 220px; }

.trust-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: .89rem; color: var(--muted); }
.trust-row span { display: flex; align-items: center; gap: 7px; }
.trust-row svg { width: 16px; height: 16px; stroke: var(--green); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.hero-photo {
  position: relative; border-radius: 24px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(12, 43, 30, .18);
}
.hero-photo img { width: 100%; height: 340px; object-fit: cover; }
.hero-caption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: rgba(12, 43, 30, .88); backdrop-filter: blur(8px); color: #fff;
  border-radius: 14px; padding: 13px 16px; display: flex; align-items: center; gap: 12px;
}
.hero-caption b { display: block; font-size: .95rem; }
.hero-caption span.sub { font-size: .82rem; color: var(--on-dark); }
.tag-after {
  background: var(--accent); color: var(--accent-ink); border-radius: 8px;
  padding: 4px 9px; font-size: .69rem; font-weight: 800; letter-spacing: .05em; flex-shrink: 0;
}

/* Étiquette sombre : AVANT, PENDANT, TRI. Le liseré clair la détache du
   dégradé, qui est lui aussi sombre. */
.tag-before {
  background: rgba(6, 22, 15, .72); color: #fff; border-radius: 8px;
  padding: 4px 9px; font-size: .69rem; font-weight: 800; letter-spacing: .05em; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32);
}

/* ---------- Bandeau sombre ------------------------------------------------ */
.band { background: var(--dark); color: #fff; }
.band .wrap { padding-top: 36px; padding-bottom: 36px; }
.band-title {
  text-align: center; font-size: .75rem; font-weight: 700; letter-spacing: .18em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 22px;
}
.steps { display: grid; gap: 18px; }
.step { display: flex; gap: 13px; align-items: flex-start; }
.step-num {
  font-family: var(--title); font-size: .95rem; font-weight: 800;
  color: var(--accent); flex-shrink: 0; padding-top: 2px;
}
.step b { display: block; font-size: 1.03rem; margin-bottom: 2px; }
.step span { font-size: .89rem; color: var(--on-dark); }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .13);
}
.stats b {
  font-family: var(--title); font-size: 2rem; font-weight: 800;
  letter-spacing: -.04em; color: #fff; display: block;
}
.stats b i { font-style: normal; color: var(--accent); }
.stats span { display: block; font-size: .87rem; color: var(--on-dark); }

/* ---------- Titres de section --------------------------------------------- */
.section-head { max-width: 660px; margin: 0 auto 32px; }
.section-head.center { text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 5.6vw, 2.75rem); margin-bottom: 12px; }
.section-head p { font-size: 1.04rem; color: var(--muted); }

/* ---------- Cartes prestations -------------------------------------------- */
.cards { display: grid; gap: 16px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); }
.card-icon {
  width: 40px; height: 40px; border-radius: 11px; background: #E8F7EF;
  display: grid; place-items: center; margin-bottom: 13px;
}
.card-icon svg { width: 21px; height: 21px; stroke: var(--green); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.13rem; margin-bottom: 6px; }
.card p { font-size: .94rem; color: var(--muted); }

.fleet { display: grid; gap: 16px; margin-top: 34px; }
.fleet-item {
  display: flex; gap: 18px; align-items: center;
  background: var(--bg-soft); border-radius: var(--radius); padding: 20px;
}
.fleet-item svg { width: 104px; flex-shrink: 0; }
.fleet-item h3 { font-size: 1.06rem; }
.fleet-item p { font-size: .94rem; color: var(--muted); }

.note { margin-top: 18px; text-align: center; font-size: .94rem; color: var(--muted); }

/* ---------- Galerie chantiers --------------------------------------------- */
.gallery { display: grid; gap: 16px; max-width: 780px; margin-inline: auto; }
/* Sur téléphone, neuf photos empilées feraient une section interminable :
   on les fait défiler du doigt, à la manière d'une pellicule. Les vignettes
   débordent volontairement des marges de la page pour montrer qu'il y a une
   suite à droite. Le conteneur est focusable au clavier (tabindex dans le
   HTML), sinon il serait impossible de le faire défiler sans souris. */
@media (max-width: 699px) {
  .gallery {
    grid-auto-flow: column; grid-auto-columns: 76%;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    margin-inline: -20px; padding: 2px 20px 12px;
  }
  .gallery .shot { scroll-snap-align: center; }
}
.shot {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #EDF1EF; aspect-ratio: 4 / 5; margin: 0; cursor: zoom-in;
  border: 0; padding: 0; width: 100%; display: block; font: inherit; text-align: left;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption, .shot .cap {
  position: absolute; inset: auto 0 0 0; padding: 52px 20px 18px; color: #fff;
  background: linear-gradient(to top, rgba(6, 22, 15, .93), rgba(6, 22, 15, .55) 45%, transparent);
}
.shot .tag-after,
.shot .tag-before { display: inline-block; margin-bottom: 7px; }
.shot b { display: block; font-size: 1.05rem; font-family: var(--title); }
.shot .sub { font-size: .84rem; color: #C3D9CD; }

/* ---------- Avant / après : comparateur à curseur --------------------------
   Une seule image : la photo « après » en fond, la photo « avant » posée
   par-dessus et rognée à la position du trait (--pos). Le trait se déplace
   avec un <input type="range"> transparent : on garde ainsi le glisser à la
   souris, au doigt, et les flèches du clavier sans une ligne de code en plus.
   Sans JavaScript, le curseur reste à 50 % : on voit encore les deux moitiés. */
.ba { margin: 0 0 26px; }
.ba-cadre {
  position: relative; width: 100%; aspect-ratio: 4 / 5;
  border-radius: 14px; overflow: hidden; background: #EDF1EF;
  touch-action: pan-y; /* le glisser horizontal pilote le curseur, le vertical scrolle */
}
.ba-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.ba-volet {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba-tag {
  position: absolute; top: 10px; z-index: 3;
  border-radius: 8px; padding: 4px 10px;
  font-size: .7rem; font-weight: 800; letter-spacing: .06em;
  background: rgba(12, 43, 30, .88); color: #fff;
  pointer-events: none;
}
.ba-tag.apres { background: var(--accent); color: var(--accent-ink); }
.ba-gauche { left: 10px; }
.ba-droite { right: 10px; }

.ba-ligne {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; margin-left: -1.5px; z-index: 4;
  background: #fff; box-shadow: 0 0 0 1px rgba(6, 22, 15, .25);
  pointer-events: none;
}
.ba-poignee {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--ink);
  box-shadow: 0 4px 14px rgba(6, 22, 15, .35);
}
.ba-poignee svg {
  width: 22px; height: 22px; fill: none;
  stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Le curseur natif couvre toute l'image : invisible, mais c'est bien lui
   qu'on manipule (souris, doigt, clavier, lecteur d'écran). */
.ba-curseur {
  position: absolute; inset: 0; z-index: 5;
  width: 100%; height: 100%; margin: 0; padding: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent; border: 0; opacity: 0;
  cursor: ew-resize;
}
.ba-curseur::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff;
}
.ba-curseur::-moz-range-thumb {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff;
}
.ba-curseur::-moz-range-track { background: transparent; border: 0; }
/* Le curseur étant transparent, on remonte le focus clavier sur la poignée. */
.ba-curseur:focus-visible ~ .ba-ligne .ba-poignee {
  outline: 3px solid var(--green); outline-offset: 3px;
}

.ba figcaption {
  margin-top: 12px; text-align: center;
  font-size: .94rem; color: var(--muted);
}
.ba figcaption b { display: block; font-family: var(--title); font-size: 1.1rem; color: var(--ink); }
/* Consigne de glissement : n'a de sens que si le script a pris la main. */
.ba-aide { display: none; }
.ba.pret .ba-aide { display: inline; }

dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
}
dialog.lightbox::backdrop { background: rgba(6, 22, 15, .92); }
dialog.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 14px; }
.lightbox-close {
  position: fixed; top: 16px; right: 16px; width: 46px; height: 46px;
  border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .3); }

/* ---------- Pourquoi nous ------------------------------------------------- */
.why { display: grid; gap: 16px; margin-bottom: 34px; }
.why-item { background: var(--bg-soft); border-radius: 20px; padding: 24px; }
/* La rubrique Prix est déjà sur fond vert pâle : les cartes passent en blanc
   pour rester visibles. */
#prix .why-item { background: var(--bg); }
.why-num { font-family: var(--title); font-size: .87rem; font-weight: 800; color: var(--green); margin-bottom: 8px; }
.why-item h3 { font-size: 1.2rem; margin-bottom: 7px; }
.why-item p { font-size: .97rem; color: var(--muted); }

/* Tableau comparatif : vrai <table>, lisible par les lecteurs d'écran */
.compare-wrap { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-bottom: 34px; }
.compare { width: 100%; border-collapse: collapse; font-size: .93rem; }
.compare thead th {
  background: var(--dark); color: #fff; font-weight: 700; text-align: left;
  padding: 13px 16px; font-size: .87rem;
}
.compare thead th.classic { color: var(--on-dark); }
.compare thead th.us { color: var(--accent); }
.compare td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.compare th[scope='row'] { padding: 12px 16px; border-top: 1px solid var(--line); text-align: left; font-weight: 600; }
.compare td.classic { color: var(--muted); }
.compare td.us { font-weight: 600; color: var(--green); }

.timeline { display: grid; gap: 16px; }
.timeline div { border-top: 2px solid var(--accent); padding-top: 14px; }
.timeline .lbl { font-size: .7rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); margin-bottom: 5px; }
.timeline h3 { font-size: 1.05rem; margin-bottom: 3px; }
.timeline p { font-size: .9rem; color: var(--muted); }

/* ---------- Zone & FAQ ---------------------------------------------------- */
.zone-faq { display: grid; gap: 40px; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: .88rem; color: var(--ink-2);
}
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
/* Un lien au milieu d'un texte doit rester repérable sans distinguer les
   couleurs : la couleur seule ne suffit pas (WCAG 1.4.1). */
p a.green, .why-item p a, .note a { text-decoration: underline; text-underline-offset: 2px; }

/* Une commune soulignée mène à sa page dédiée. */
.chip a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.chip a:hover { color: inherit; text-decoration-thickness: 2px; }
/* Un lien se repère au soulignement, pas à la couleur : la liste des
   communes reste d'un seul bloc visuel. */

details.faq {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px; margin-bottom: 10px;
}
details.faq summary {
  display: flex; justify-content: space-between; gap: 16px; cursor: pointer;
  font-family: var(--title); font-size: 1.05rem; font-weight: 700; list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .chev { color: var(--green); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
details.faq[open] summary .chev { transform: rotate(45deg); }
details.faq p { font-size: .97rem; color: var(--muted); margin-top: 10px; }

/* ---------- Contact ------------------------------------------------------- */
.contact-grid { display: grid; gap: 32px; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; gap: 13px; align-items: center; }
.contact-ico {
  width: 42px; height: 42px; border-radius: 12px; background: #E8F7EF;
  display: grid; place-items: center; flex-shrink: 0;
}
.contact-ico svg { width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* Le libellé se place au-dessus de la valeur, pas à côté. */
.contact-item .k { display: block; font-size: .78rem; color: var(--muted); }
.contact-item .v { display: block; font-size: 1rem; font-weight: 600; }

.form-card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 22px; padding: 24px;
}
.form-card h2 { font-size: 1.35rem; margin-bottom: 4px; }
.form-card > p { font-size: .95rem; color: var(--muted); margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--body); font-size: 1rem; background: var(--bg); color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field-2 { display: grid; gap: 12px; }

.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .85rem; color: var(--muted); margin-bottom: 16px; cursor: pointer;
}
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.consent a { color: var(--green); text-decoration: underline; }

/* Piège à robots : invisible pour l'humain, rempli par les bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 14px; padding: 13px 16px; border-radius: 12px; font-size: .95rem; font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #E8F7EF; color: var(--green); }
.form-status.ko { background: #FDECEC; color: #B3261E; }
.form-alt { margin-top: 12px; text-align: center; font-size: .87rem; color: var(--muted); }
.form-alt a { color: var(--green); font-weight: 600; }

/* ---------- Pied de page -------------------------------------------------- */
.footer { background: var(--dark); color: var(--on-dark); padding: 44px 0 24px; }
.footer-grid { display: grid; gap: 30px; padding-bottom: 28px; }
.footer .logo-mark { background: var(--dark-2); }
.footer .logo-text { color: #fff; }
.footer .logo-text small { color: var(--on-dark-dim); }
.footer p { max-width: 340px; font-size: .91rem; }
.footer h2 { font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: #fff; margin-bottom: 11px; font-family: var(--body); font-weight: 700; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: .91rem; }
.footer a:hover { color: var(--accent); }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  font-size: .84rem; color: var(--on-dark-dim);
}

/* ---------- Barre d'action mobile ----------------------------------------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
  display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.actionbar .btn { flex: 1; padding: 13px 12px; font-size: .95rem; }
.actionbar .btn-wa { background: #25D366; color: #04140C; border-color: #25D366; flex: 0 0 52px; }
.actionbar .btn-wa:hover { background: #1EBE5B; color: #04140C; }
.actionbar .btn-wa svg { width: 24px; height: 24px; fill: currentColor; }
body { padding-bottom: 76px; }

/* ---------- Boutons flottants (ordinateur) --------------------------------
   Sur téléphone c'est la barre du bas qui joue ce rôle : les deux ne
   s'affichent jamais en même temps. */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 800;
  display: none; flex-direction: column; align-items: flex-end; gap: 12px;
}
.fab a {
  display: flex; align-items: center; gap: 0;
  height: 56px; padding: 0; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(12, 43, 30, .28);
  overflow: hidden; transition: gap .2s, padding .2s, background .15s;
}
.fab svg { width: 26px; height: 26px; fill: currentColor; flex-shrink: 0; margin: 0 15px; }
/* Le bouton flottant est le seul numéro visible sur téléphone : c'est lui
   qui sonne, puisque l'en-tête n'affiche pas le numéro à cette taille. */
.fab .tel svg { transform-origin: 50% 62%; animation: sonnerie 3s ease-in-out infinite; }
.fab .lbl {
  max-width: 0; opacity: 0; white-space: nowrap; font-weight: 700; font-size: .95rem;
  transition: max-width .25s, opacity .2s, margin .25s; margin-right: 0;
}
/* Le libellé se déplie au survol et à la tabulation clavier. */
.fab a:hover .lbl, .fab a:focus-visible .lbl { max-width: 200px; opacity: 1; margin-right: 20px; }
.fab .wa { background: #25D366; color: #04140C; }
.fab .wa:hover { background: #1EBE5B; color: #04140C; }
/* Liseré blanc : sans lui, le bouton sombre se fond dans le bandeau vert foncé. */
.fab .tel {
  background: var(--dark); color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 10px 26px rgba(12, 43, 30, .28);
}
.fab .tel:hover { background: var(--dark-2); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .fab a, .fab .lbl { transition: none; }
}

/* ---------- Pages légales ------------------------------------------------- */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; }
.legal h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin-bottom: 8px; }
.legal .maj { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.25rem; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
/* :not(.btn) — sinon la règle écrase la couleur des boutons, qui
   devenaient vert foncé sur vert et soulignés (merci.html, 404.html). */
.legal a:not(.btn) { color: var(--green); text-decoration: underline; }
.legal .back { display: inline-block; margin-bottom: 24px; font-weight: 600; color: var(--green); }
.legal .todo {
  background: #FFF8E1; border: 1px solid #F0D98B; border-radius: 12px;
  padding: 14px 16px; font-size: .92rem; color: #5F4A00; margin-bottom: 18px;
}

/* ==========================================================================
   Tablette (≥ 700px)
   ========================================================================== */
@media (min-width: 700px) {
  body { font-size: 17px; padding-bottom: 0; }
  .wrap { padding: 0 24px; }
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-photo img { height: 460px; }
  .hero-actions .btn { flex: 0 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .fleet { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .ba { max-width: 560px; margin-inline: auto; margin-bottom: 36px; }
  .why { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .field-2 { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .actionbar { display: none; }
  .fab { display: flex; }
}

/* ==========================================================================
   Ordinateur (≥ 1000px)
   ========================================================================== */
@media (min-width: 1000px) {
  .section { padding: 84px 0; }
  .nav-menu, .nav-tel, .nav-cta { display: flex; }
  .burger { display: none; }
  .mobile-menu { display: none !important; }
  .header nav { height: 72px; }

  .hero-grid { grid-template-columns: 1fr 1.12fr; gap: 44px; }
  .hero-photo img { height: 560px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  /* Neuf photos : trois par ligne, sinon la section n'en finit plus. */
  .gallery { grid-template-columns: repeat(3, 1fr); max-width: 1080px; }
  .timeline { grid-template-columns: repeat(4, 1fr); }
  .zone-faq { grid-template-columns: .85fr 1.15fr; gap: 52px; }
  .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 40px; }
  .section-head { margin-bottom: 44px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
