/* ==========================================================================
   LES PLOMBIERS DU GRIFFON — feuille de styles
   Saint-Brieuc · Plomberie · Chauffage · Électricité · Climatisation
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Jetons de design
   -------------------------------------------------------------------------- */
:root {
  /* Fonds */
  --creme:            #FAF6F0;
  --creme-2:          #F1EAE0;
  --creme-3:          #EFE8DC;
  --blanc:            #FFFFFF;
  --blanc-casse:      #FCFAF7;

  /* Marine */
  --marine:           #0A1A2E;
  --marine-fonce:     #07141F;
  --marine-bord:      #2A3F55;

  /* Accents */
  --orange:           #D64B0D;
  --orange-fonce:     #B8420A;
  --jaune:            #FFC117;
  --jaune-fonce:      #E0A000;
  --ocre:             #C99400;
  --bleu:             #1E88DA;
  --bleu-lien:        #0F62A8;

  /* Textes */
  --texte:            #26313C;
  --texte-2:          #3A4652;
  --texte-3:          #4A5662;
  --texte-4:          #56616E;
  --texte-5:          #646F7B;
  --label:            #5A6673;
  --label-mono:       #8A8272;
  --label-mono-2:     #6E6656;

  /* Textes sur fond sombre */
  --clair:            #C6D3DF;
  --clair-2:          #A9BBCE;
  --clair-3:          #8DA2B8;

  /* Bordures */
  --bord:             #E4DCCF;
  --bord-2:           #E7E0D4;
  --bord-3:           #E0D6C6;
  --bord-4:           #EFE8DC;
  --bord-5:           #F1EBE0;
  --bord-6:           #E0DACF;
  --bord-tiret:       #D9CFBE;
  --bord-tiret-2:     #C9BFAE;
  --bord-tiret-3:     #CFC3AF;
  --bord-tiret-4:     #B5A994;

  /* Typographie */
  --titre:            'Archivo', system-ui, -apple-system, sans-serif;
  --corps:            'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono:             'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Structure */
  --largeur:          1120px;
  --gouttiere:        clamp(16px, 4vw, 32px);
  --rayon:            14px;
  --rayon-lg:         18px;
  --pilule:           999px;

  /* Ombres */
  --ombre-carte:      0 18px 44px rgba(10, 26, 46, .10);
  --ombre-panneau:    0 14px 40px rgba(10, 26, 46, .07);
  --ombre-orange:     0 10px 26px rgba(214, 75, 13, .34);
  --ombre-orange-sm:  0 6px 18px rgba(214, 75, 13, .28);

  /* Mouvement — une seule courbe et deux durées pour tout le site.
     La durée d'apparition reste courte à dessein : une révélation que
     l'on attend est plus gênante qu'absente. */
  --sortie:           cubic-bezier(.22, .61, .36, 1);
  --duree:            .5s;
  --duree-courte:     .22s;
}

/* --------------------------------------------------------------------------
   2. Réinitialisation et base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* décalage pour l'en-tête collant lors des ancres */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--corps);
  color: var(--texte);
  background: var(--creme);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; }

a {
  color: var(--bleu-lien);
  text-decoration: none;
  transition: color .18s ease;
}
a:hover { color: var(--orange-fonce); }

h1, h2, h3, h4 {
  font-family: var(--titre);
  color: var(--marine);
  text-wrap: pretty;
  margin: 0;
}

p { text-wrap: pretty; }

input, select, textarea, button { font: inherit; }
input::placeholder,
textarea::placeholder { color: #9AA3AC; }

/* Accessibilité : focus visible cohérent partout */
:focus-visible {
  outline: 3px solid var(--bleu);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Lien d'évitement */
.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--jaune);
  color: var(--marine);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
}
.saut-contenu:focus {
  left: 0;
  color: var(--marine);
}

/* --------------------------------------------------------------------------
   3. Primitives de mise en page
   -------------------------------------------------------------------------- */
.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding-inline: var(--gouttiere);
}
.conteneur--etroit { max-width: 980px; }
.conteneur--form   { max-width: 760px; }

.grille-fond {
  background-image:
    repeating-linear-gradient(0deg,  rgba(10, 26, 46, .035) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(10, 26, 46, .035) 0 1px, transparent 1px 46px);
}

/* En-tête de section : filets + étiquette mono */
.chapeau {
  margin-inline: auto;
  text-align: center;
}
.chapeau__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-bottom: 16px;
}
.chapeau__eyebrow::before,
.chapeau__eyebrow::after {
  content: "";
  height: 1px;
  width: clamp(20px, 7vw, 80px);
  background: var(--bord-tiret);
}
.chapeau__eyebrow span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--orange-fonce);
  white-space: nowrap;
}
.chapeau__titre {
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.06;
  letter-spacing: -.025em;
}
.chapeau__texte {
  font-size: 16px;
  line-height: 1.65;
  color: var(--texte-3);
  margin: 16px 0 0;
}

/* Variantes sur fond sombre / crème foncé */
.chapeau--sombre .chapeau__eyebrow::before,
.chapeau--sombre .chapeau__eyebrow::after { background: var(--marine-bord); }
.chapeau--sombre .chapeau__eyebrow span   { color: var(--jaune); }
.chapeau--sombre .chapeau__titre          { color: var(--blanc); }
.chapeau--sombre .chapeau__texte          { color: var(--clair); }

.chapeau--sable .chapeau__eyebrow::before,
.chapeau--sable .chapeau__eyebrow::after { background: var(--bord-tiret-3); }

/* Étiquette seule, sans bloc chapeau autour (section devis) */
.chapeau__eyebrow--sombre::before,
.chapeau__eyebrow--sombre::after { background: var(--marine-bord); }
.chapeau__eyebrow--sombre span { color: var(--jaune); }

/* --------------------------------------------------------------------------
   4. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-weight: 600;
  border-radius: var(--pilule);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.btn--primaire {
  background: var(--orange);
  color: var(--blanc);
  box-shadow: var(--ombre-orange-sm);
}
.btn--primaire:hover { background: var(--orange-fonce); color: var(--blanc); }

.btn--grand {
  font-size: 16.5px;
  padding: 15px 28px;
  box-shadow: var(--ombre-orange);
}
.btn--petit { font-size: 14.5px; padding: 11px 18px; }

.btn--fantome {
  border: 1.5px solid rgba(255, 255, 255, .34);
  color: var(--blanc);
  font-size: 16.5px;
  padding: 14px 26px;
  background: transparent;
}
.btn--fantome:hover { border-color: var(--jaune); color: var(--jaune); }

.btn--jaune {
  background: var(--jaune);
  color: var(--marine);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
}
.btn--jaune:hover { background: var(--blanc); color: var(--marine); }

.lien-fleche {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--bleu-lien);
}
.lien-fleche:hover { color: var(--orange-fonce); }

/* --------------------------------------------------------------------------
   5. Barre d'annonce + bandeau d'urgence
   -------------------------------------------------------------------------- */
.barre-info {
  background: var(--marine-fonce);
  color: var(--clair);
  font-size: 13px;
}
.barre-info .conteneur {
  padding-block: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.barre-info__mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
}
.barre-info__tel { color: var(--jaune); font-weight: 600; }
.barre-info__tel:hover { color: var(--blanc); }
.barre-info__badge {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--jaune);
}

.bandeau-urgence {
  background: var(--orange);
  color: var(--blanc);
  padding: 10px var(--gouttiere);
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}
.bandeau-urgence a { color: var(--blanc); text-decoration: underline; }
.bandeau-urgence[hidden] { display: none; }

/* --------------------------------------------------------------------------
   6. En-tête et navigation
   -------------------------------------------------------------------------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 240, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bord);
}
.entete .conteneur {
  padding-block: 12px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.marque {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--marine);
  flex-shrink: 0;
}
.marque:hover { color: var(--marine); }
.marque img { width: 38px; height: 38px; display: block; }
.marque__nom {
  font-family: var(--titre);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.marque__nom em { font-style: normal; color: var(--orange-fonce); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  align-items: center;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 500;
}
.nav a {
  color: var(--texte);
  position: relative;
  padding-block: 4px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav a:hover { color: var(--orange-fonce); }
.nav a:hover::after,
.nav a[aria-current="true"]::after { transform: scaleX(1); }

/* Bouton burger — masqué sur grand écran */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--bord);
  border-radius: 10px;
  background: var(--blanc);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--marine);
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. Héros
   -------------------------------------------------------------------------- */
/* La trame quadrillée est portée par « .heros__trame » (§ 19b) afin de
   pouvoir glisser indépendamment du contenu. */
.heros {
  background:
    radial-gradient(900px 460px at 50% -20%, rgba(242, 106, 27, .28), transparent 62%),
    var(--marine);
  color: var(--blanc);
}
.heros__corps {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(40px, 5.5vw, 64px) var(--gouttiere) clamp(30px, 3.5vw, 44px);
  text-align: center;
}
.heros__sceau {
  width: 60px;
  height: 60px;
  border-radius: var(--pilule);
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}
.heros__sceau img { width: 34px; height: 34px; display: block; }

.heros__etiquette {
  display: inline-block;
  background: var(--jaune);
  color: var(--marine);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  padding: 7px 13px;
  border-radius: 5px;
}
.heros__titre {
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--blanc);
  margin: 20px 0 0;
}
.heros__titre em { font-style: normal; color: var(--jaune); }
.heros__texte {
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.6;
  color: var(--clair);
  margin: 20px auto 0;
  max-width: 58ch;
}
.heros__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}
.heros__mention {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--clair-3);
  margin-top: 16px;
}

.heros__gages { border-top: 1px solid rgba(255, 255, 255, .12); }
.heros__gages .conteneur {
  padding-block: 14px clamp(58px, 7vw, 86px);
  display: flex;
  flex-wrap: wrap;
  gap: 9px 10px;
  align-items: center;
  justify-content: center;
}
.gage {
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--blanc);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 7px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.gage .etoiles { color: var(--jaune); }

/* --------------------------------------------------------------------------
   8. Bandeau de chiffres clés (chevauche le héros)
   -------------------------------------------------------------------------- */
.chiffres {
  position: relative;
  z-index: 5;
}
.chiffres__grille {
  margin-top: calc(-1 * clamp(40px, 5vw, 62px));
  background: var(--creme-3);
  border: 1px solid var(--bord-3);
  border-radius: var(--rayon);
  box-shadow: 0 22px 54px rgba(4, 12, 22, .22);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1px;
  overflow: hidden;
}
.chiffre {
  background: var(--blanc);
  padding: 22px clamp(16px, 1.8vw, 22px);
  text-align: center;
}
.chiffre__valeur {
  font-family: var(--titre);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 31px);
  color: var(--marine);
  letter-spacing: -.03em;
  line-height: 1;
}
.chiffre__valeur::after {
  content: "";
  display: block;
  height: 1px;
  width: 24px;
  background: var(--bord);
  margin: 12px auto 0;
}
.chiffre__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--orange-fonce);
  margin-top: 10px;
}
.chiffre__texte {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--texte-3);
  margin: 5px 0 0;
}

/* --------------------------------------------------------------------------
   9. Services
   -------------------------------------------------------------------------- */
.services { padding: clamp(44px, 5.5vw, 70px) 0 clamp(50px, 6vw, 78px); }
.services .chapeau { max-width: 660px; margin-bottom: clamp(26px, 3.2vw, 40px); }

.services__grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.service {
  background: var(--blanc);
  border: 1px solid var(--bord-2);
  border-radius: 16px;
  padding: clamp(22px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-carte);
}
.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  background: var(--accent, var(--bleu));
}
.service__entete {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.service__num {
  font-family: var(--titre);
  font-weight: 800;
  font-size: 13px;
  color: var(--num-couleur, var(--blanc));
  background: var(--accent, var(--bleu));
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service__categorie {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--label-mono);
}
.service h3 {
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.02em;
}
.service__texte {
  font-size: 15px;
  line-height: 1.6;
  color: var(--texte-3);
  margin: 0;
}
.service__liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  width: 100%;
}
.service__liste li {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--texte-2);
  padding: 10px 4px;
  border-top: 1px solid var(--bord-5);
}
.service .lien-fleche {
  margin-top: auto;
  padding-top: 16px;
}

.encart-question {
  margin-top: clamp(16px, 2vw, 22px);
  border: 1px dashed var(--bord-tiret);
  border-radius: var(--rayon);
  padding: 18px clamp(18px, 2.2vw, 26px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.encart-question p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--texte-2);
  margin: 0;
}
.encart-question a {
  font-weight: 600;
  font-size: 15px;
  color: var(--orange-fonce);
  white-space: nowrap;
}

/* Ruban rayé de séparation */
.ruban {
  height: 10px;
  background: repeating-linear-gradient(135deg, var(--jaune) 0 11px, var(--marine) 11px 22px);
}

/* --------------------------------------------------------------------------
   10. Réalisations
   -------------------------------------------------------------------------- */
.realisations {
  background: var(--creme-2);
  padding: clamp(50px, 6.5vw, 84px) 0;
}
.realisations .chapeau { max-width: 620px; margin-bottom: clamp(24px, 3vw, 34px); }

.panneau {
  background: var(--blanc);
  border: 1px solid var(--bord-3);
  border-radius: var(--rayon-lg);
  overflow: hidden;
  box-shadow: var(--ombre-panneau);
}
.panneau__entete {
  border-bottom: 1px solid var(--bord-4);
  padding: 16px clamp(14px, 1.8vw, 20px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}
.panneau__mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--label-mono-2);
}
.panneau__corps { padding: clamp(14px, 1.8vw, 20px); }
.panneau__pied {
  border-top: 1px solid var(--bord-4);
  background: var(--blanc-casse);
  padding: 14px clamp(14px, 1.8vw, 20px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.panneau__pied span { font-size: 14px; color: var(--texte-3); }
.panneau__pied a {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--orange-fonce);
  white-space: nowrap;
}

/* Onglets de catégorie */
.onglets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
}
.onglet {
  font: 600 14px/1 var(--corps);
  padding: 10px 16px;
  border-radius: var(--pilule);
  cursor: pointer;
  border: 1.5px solid var(--bord-3);
  background: transparent;
  color: var(--texte-2);
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.onglet:hover { border-color: var(--marine); }
.onglet[aria-selected="true"] {
  border-color: var(--marine);
  background: var(--marine);
  color: var(--blanc);
}

.panneau-onglet[hidden] { display: none; }

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(14px, 1.8vw, 20px);
}

.realisation {
  margin: 0;
  border: 1px solid var(--bord-4);
  border-radius: 12px;
  overflow: hidden;
  background: var(--blanc-casse);
}
.realisation img {
  width: 100%;
  height: clamp(250px, 30vw, 340px);
  object-fit: cover;
  display: block;
}
.realisation--basse img { height: clamp(230px, 26vw, 300px); }
.realisation figcaption {
  padding: 16px 17px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--texte-2);
  border-top: 1px solid var(--bord-4);
  text-align: center;
}
.realisation__tag {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--label-mono-2);
}
.realisation__tag::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--orange);
}

/* Comparateur avant / après */
.comparateur {
  border: 1px solid var(--bord-4);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  background: var(--blanc-casse);
  margin-bottom: clamp(14px, 1.8vw, 20px);
}
.comparateur__visuel {
  position: relative;
  min-height: 320px;
  background: var(--marine);
  min-width: 0;
}
.comparateur__visuel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.comparateur__avant {
  position: absolute;
  inset: 0;
  /* mis à jour par le JS ; valeur initiale = position par défaut du curseur */
  clip-path: inset(0 48% 0 0);
}
.comparateur__poignee {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 52%;
  width: 3px;
  margin-left: -1.5px;
  background: var(--jaune);
  box-shadow: 0 0 0 1px rgba(7, 20, 31, .35);
  pointer-events: none;
}
.comparateur__poignee::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: var(--pilule);
  background: var(--jaune);
  box-shadow: 0 2px 10px rgba(7, 20, 31, .45);
}
.comparateur__curseur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.comparateur__curseur:focus-visible { opacity: .001; outline: 3px solid var(--jaune); outline-offset: -3px; }

.comparateur__etiquette {
  position: absolute;
  bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  padding: 6px 10px;
  border-radius: 5px;
  pointer-events: none;
}
.comparateur__etiquette--avant {
  left: 14px;
  background: rgba(7, 20, 31, .82);
  color: var(--blanc);
}
.comparateur__etiquette--apres {
  right: 14px;
  background: var(--jaune);
  color: var(--marine);
  font-weight: 500;
}

.comparateur__texte {
  padding: clamp(20px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 13px;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.comparateur__badge {
  background: var(--marine);
  color: var(--jaune);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  padding: 6px 11px;
  border-radius: 5px;
}
.comparateur__texte h3 {
  font-weight: 700;
  font-size: clamp(20px, 2.3vw, 26px);
  letter-spacing: -.02em;
}
.comparateur__texte p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--texte-3);
  margin: 0;
}
.comparateur__meta {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--texte-4);
  padding-top: 13px;
  border-top: 1px solid var(--bord-4);
  width: 100%;
}
.comparateur__meta::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--orange);
}
.comparateur__aide {
  font-size: 13px;
  color: var(--label-mono-2);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   11. Méthode
   -------------------------------------------------------------------------- */
.methode { padding: clamp(48px, 6vw, 78px) 0; }
.methode .chapeau { max-width: 600px; margin-bottom: clamp(34px, 4vw, 50px); }

.methode__grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
  gap: clamp(22px, 2.4vw, 30px);
  text-align: center;
}
.etape {
  border-top: 1px dashed var(--bord-tiret-2);
  padding-top: 30px;
}
.etape__num {
  width: 52px;
  height: 52px;
  margin: -56px auto 0;
  border-radius: var(--pilule);
  background: var(--creme);
  border: 1px solid var(--bord-tiret);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--titre);
  font-weight: 800;
  font-size: 17px;
  color: var(--accent, var(--marine));
  letter-spacing: -.02em;
}
.etape h3 {
  font-weight: 700;
  font-size: 18px;
  margin: 18px 0 8px;
  letter-spacing: -.015em;
}
.etape p {
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--texte-3);
  margin: 0;
}

/* --------------------------------------------------------------------------
   12. Aides et financement
   -------------------------------------------------------------------------- */
.aides {
  background: var(--marine);
  color: var(--blanc);
  padding: clamp(52px, 6.5vw, 84px) 0 clamp(48px, 6vw, 76px);
  position: relative;
}
.aides__sceau {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--jaune);
  color: var(--marine);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  padding: 8px 16px;
  border-radius: var(--pilule);
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(4, 12, 22, .3);
}
.aides .chapeau { max-width: 640px; margin-bottom: clamp(26px, 3vw, 38px); }

.aides__grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}
.aide {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 13px;
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.aide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent, var(--jaune));
}
.aide h3 {
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -.015em;
  color: var(--blanc);
}
.aide p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--clair);
  margin: 0;
}

.aides__note {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 11px;
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.aides__note dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--jaune);
  white-space: nowrap;
  margin: 0;
}
.aides__note dd {
  font-size: 13px;
  line-height: 1.55;
  color: var(--clair-2);
  max-width: 72ch;
  margin: 0;
}

/* --------------------------------------------------------------------------
   13. Avis clients
   -------------------------------------------------------------------------- */
.avis { padding: clamp(48px, 6vw, 78px) 0; }
.avis .chapeau { max-width: 560px; margin-bottom: clamp(26px, 3vw, 38px); }

.avis__note {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  background: var(--blanc);
  border: 1px solid var(--bord-2);
  border-radius: 12px;
  padding: 12px 18px;
}
.avis__note .etoiles {
  color: var(--jaune-fonce);
  font-size: 19px;
  letter-spacing: .08em;
}
.avis__note-sep {
  width: 1px;
  height: 30px;
  background: var(--bord-4);
}
.avis__note-texte { text-align: left; }
.avis__note-texte strong {
  display: block;
  font-size: 13.5px;
  color: var(--marine);
  font-weight: 600;
}
.avis__note-texte a {
  display: block;
  font-size: 12.5px;
  color: var(--bleu-lien);
  margin-top: 2px;
}

.avis__grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 2vw, 22px);
  align-items: start;
}
.temoignage {
  margin: 0;
  background: var(--blanc);
  border: 1px solid var(--bord-2);
  border-radius: var(--rayon);
  padding: clamp(20px, 2.2vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  height: 100%;
}
.temoignage--decale { margin-top: clamp(0px, 1.4vw, 18px); }
.temoignage__entete {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.temoignage__entete .etoiles {
  color: var(--jaune-fonce);
  font-size: 15px;
  letter-spacing: .06em;
}
.temoignage__date {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--label-mono);
}
.temoignage p {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--texte-2);
  margin: 0;
}
.temoignage footer {
  font-size: 13.5px;
  color: var(--texte-4);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--bord-4);
}
.temoignage footer strong { color: var(--marine); }

/* --------------------------------------------------------------------------
   14. Zone d'intervention
   -------------------------------------------------------------------------- */
.zone {
  background: var(--creme-2);
  padding: clamp(48px, 6vw, 78px) 0 clamp(60px, 7vw, 96px);
  border-top: 1px solid var(--bord);
  text-align: center;
}
.zone .chapeau__texte { max-width: 56ch; margin-inline: auto; }

.zone__panneau {
  margin-top: clamp(26px, 3vw, 38px);
  border: 1px solid var(--bord-3);
  border-radius: var(--rayon-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1px;
  background-color: var(--bord-4);
}

.zone__carte {
  background: var(--blanc);
  padding: clamp(22px, 2.6vw, 30px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.radar {
  position: relative;
  width: min(100%, 260px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.radar__cercle {
  position: absolute;
  border-radius: var(--pilule);
  border: 1px dashed var(--bord-tiret-2);
  background: rgba(30, 136, 218, .04);
  width: 100%;
  height: 100%;
}
.radar__cercle--interne {
  width: 64%;
  height: 64%;
  border-color: var(--bord-tiret-4);
  background: rgba(30, 136, 218, .07);
}
.radar__centre {
  position: absolute;
  width: 38%;
  height: 38%;
  border-radius: var(--pilule);
  background: var(--marine);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--blanc);
  padding: 8px;
}
.radar__ville {
  font-family: var(--titre);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -.015em;
  line-height: 1.15;
}
.radar__base {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--jaune);
  margin-top: 4px;
}
.radar__graduation {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--texte-4);
  background: var(--blanc);
  padding: 2px 7px;
}
.radar__graduation--30 { top: 2%; }
.radar__graduation--15 { top: 20%; }

.zone__listes {
  background: var(--blanc);
  padding: clamp(22px, 2.6vw, 30px);
  display: grid;
  gap: 22px;
  text-align: center;
}
.zone__bloc + .zone__bloc {
  border-top: 1px solid var(--bord-4);
  padding-top: 18px;
}
.zone__label {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--marine);
  margin-bottom: 10px;
}
.zone__label::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--accent, var(--bleu));
}
.zone__communes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.zone__communes li {
  background: var(--blanc-casse);
  border: 1px solid var(--bord);
  border-radius: 7px;
  padding: 6px 11px;
  font-size: 13.5px;
  color: var(--texte-2);
}
.zone__bloc p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--texte-3);
  margin: 0;
}

/* --------------------------------------------------------------------------
   15. Demande de devis
   -------------------------------------------------------------------------- */
.devis {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(30, 136, 218, .24), transparent 62%),
    var(--marine-fonce);
  color: var(--blanc);
  padding: clamp(48px, 6vw, 78px) 0 clamp(52px, 6.5vw, 84px);
  border-radius: clamp(20px, 3vw, 34px) clamp(20px, 3vw, 34px) 0 0;
  margin-top: calc(-1 * clamp(18px, 2.4vw, 32px));
  position: relative;
  z-index: 6;
  text-align: center;
}
.devis__titre {
  font-weight: 800;
  font-size: clamp(29px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--blanc);
  margin: 0;
}
.devis__intro {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--clair);
  margin: 18px auto 0;
  max-width: 52ch;
}

.carte-form {
  background: var(--blanc);
  border-radius: 16px;
  overflow: hidden;
  color: var(--texte);
  box-shadow: 0 30px 70px rgba(2, 8, 14, .5);
  margin-top: clamp(24px, 3vw, 34px);
  text-align: center;
}
.carte-form__entete {
  background: var(--jaune);
  color: var(--marine);
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  justify-content: center;
}
.carte-form__corps { padding: clamp(20px, 2.6vw, 32px); }

.form-devis {
  display: grid;
  gap: 15px;
}
.form-devis[hidden] { display: none; }

.champ-groupe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 12px;
}
.champ {
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--label);
  text-align: center;
}
.champ input,
.champ textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--bord-6);
  border-radius: 9px;
  font-size: 15px;
  background: var(--blanc-casse);
  color: var(--texte);
  font-weight: 400;
  text-align: center;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.champ textarea {
  resize: vertical;
  font-family: inherit;
  text-align: left;
  min-height: 108px;
}
.champ input:focus,
.champ textarea:focus {
  border-color: var(--bleu);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 136, 218, .16);
}
.champ input:user-invalid,
.champ textarea:user-invalid { border-color: var(--orange); }

.form-legende {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--label);
  margin-bottom: 9px;
}
.form-sep {
  height: 1px;
  background: var(--bord-4);
  border: 0;
  margin: 0;
}

/* Pastilles « nature du projet » */
.pastilles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  border: 0;
  margin: 0;
  padding: 0;
}
.pastille {
  font: 500 14px/1 var(--corps);
  padding: 10px 14px;
  border-radius: var(--pilule);
  cursor: pointer;
  transition: all .18s ease;
  border: 1.5px solid var(--bord-6);
  background: var(--blanc-casse);
  color: var(--texte-2);
}
.pastille:hover { border-color: var(--bord-tiret-2); }
.pastille[aria-pressed="true"] {
  border-color: var(--marine);
  background: var(--marine);
  color: var(--blanc);
}

.form-devis button[type="submit"] {
  background: var(--orange);
  color: var(--blanc);
  font-weight: 600;
  font-size: 16.5px;
  padding: 15px 22px;
  border: none;
  border-radius: var(--pilule);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(214, 75, 13, .3);
  transition: background .18s ease;
}
.form-devis button[type="submit"]:hover { background: var(--orange-fonce); }
.form-devis button[type="submit"][disabled] {
  opacity: .65;
  cursor: progress;
}

.form-mention {
  font-size: 12.5px;
  color: var(--texte-5);
  line-height: 1.5;
  text-align: center;
  margin: 0;
}

.form-erreur {
  background: #FDF0EA;
  border: 1px solid #F3C4AE;
  color: #8A2E05;
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.form-erreur[hidden] { display: none; }

/* Panneau de confirmation */
.form-succes {
  padding: 14px 0;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}
.form-succes[hidden] { display: none; }
.form-succes__coche {
  width: 44px;
  height: 44px;
  border-radius: var(--pilule);
  background: var(--jaune);
  color: var(--marine);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}
.form-succes__titre {
  font-family: var(--titre);
  font-weight: 800;
  font-size: 24px;
  color: var(--marine);
  letter-spacing: -.02em;
}
.form-succes p {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--texte-3);
  margin: 0;
  max-width: 46ch;
}

/* Encart téléphone */
.encart-tel {
  margin-top: 24px;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 13px;
  padding: 16px 26px;
}
.encart-tel__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--clair-3);
}
.encart-tel__num {
  font-family: var(--titre);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--jaune);
  letter-spacing: -.02em;
}
.encart-tel__num:hover { color: var(--blanc); }
.encart-tel__horaires { font-size: 13.5px; color: var(--clair); }

/* --------------------------------------------------------------------------
   16. Pied de page
   -------------------------------------------------------------------------- */
.pied {
  background: var(--marine);
  color: var(--clair);
  padding: clamp(36px, 4.5vw, 56px) 0 26px;
}
.pied__grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.pied__colonne {
  min-width: 0;
  text-align: center;
}
.pied__marque {
  display: flex;
  gap: 11px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--blanc);
}
.pied__marque img { width: 34px; height: 34px; display: block; }
.pied__marque span {
  font-family: var(--titre);
  font-weight: 800;
  font-size: 16px;
  color: var(--blanc);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.pied__marque em { font-style: normal; color: var(--jaune); }
.pied__colonne p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.pied__titre {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--blanc);
  margin-bottom: 12px;
}
.pied__liens {
  display: grid;
  gap: 7px;
  font-size: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pied__liens a { color: var(--clair); }
.pied__liens a:hover { color: var(--jaune); }
.pied__tel {
  color: var(--jaune) !important;
  font-weight: 600;
  font-size: 16px;
}
.pied__cta { color: var(--blanc) !important; font-weight: 600; margin-top: 4px; }

.pied__bas {
  margin-top: clamp(26px, 3vw, 40px);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  text-align: center;
  font-size: 12.5px;
  color: var(--clair-3);
}
.pied__bas a { color: var(--clair-3); }
.pied__bas a:hover { color: var(--jaune); }

/* --------------------------------------------------------------------------
   17. Barre d'appel à l'action flottante
   -------------------------------------------------------------------------- */
.cta-flottant {
  position: sticky;
  bottom: 0;
  z-index: 35;
  background: rgba(10, 26, 46, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.cta-flottant .conteneur {
  padding-block: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: center;
}
.cta-flottant__texte {
  color: var(--blanc);
  font-size: 14.5px;
  font-weight: 500;
}
.cta-flottant__actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.cta-flottant__tel {
  border: 1.5px solid rgba(255, 255, 255, .3);
  color: var(--blanc);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: var(--pilule);
  white-space: nowrap;
}
.cta-flottant__tel:hover { border-color: var(--jaune); color: var(--jaune); }

/* --------------------------------------------------------------------------
   18. Pages secondaires (mentions légales, confidentialité)
   -------------------------------------------------------------------------- */
.page-texte {
  padding: clamp(40px, 5vw, 72px) 0 clamp(50px, 6vw, 80px);
}
.page-texte .conteneur { max-width: 760px; }
.page-texte h1 {
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.06;
  letter-spacing: -.025em;
  margin-bottom: 8px;
}
.page-texte__maj {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--orange-fonce);
  margin: 0 0 32px;
}
.page-texte h2 {
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 23px);
  letter-spacing: -.02em;
  margin: 36px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--bord);
}
.page-texte h2:first-of-type { border-top: 0; padding-top: 0; }
.page-texte h3 {
  font-weight: 700;
  font-size: 16.5px;
  margin: 22px 0 8px;
}
.page-texte p,
.page-texte li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--texte-3);
}
.page-texte ul { padding-left: 20px; }
.page-texte li { margin-bottom: 8px; }
.page-texte dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1px;
  background: var(--bord);
  border: 1px solid var(--bord);
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;
}
.page-texte dl > div {
  background: var(--blanc);
  padding: 16px 18px;
}
.page-texte dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--label-mono-2);
  margin-bottom: 6px;
}
.page-texte dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--texte);
}
.retour {
  display: inline-block;
  margin-bottom: 26px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--orange-fonce);
}

/* ==========================================================================
   19. MOUVEMENT
   --------------------------------------------------------------------------
   Principe : le mouvement sert à orienter le regard, jamais à décorer.
   Trois familles seulement —
     a) apparition au défilement : annonce qu'un bloc entre en scène ;
     b) réaction au survol : confirme qu'un élément est actionnable ;
     c) profondeur liée au curseur / au défilement : donne du relief au héros.
   Tout est neutralisé par « prefers-reduced-motion » (§ 21).
   La classe « js » est posée par un script en <head> : sans JavaScript,
   aucun contenu n'est masqué.
   ========================================================================== */

/* --------------------------------------------------------------------------
   19a. Apparition au défilement
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity   var(--duree) var(--sortie),
    transform var(--duree) var(--sortie);
  transition-delay: var(--reveal-delai, 0ms);
}
.js [data-reveal="discret"] { transform: none; }

.js [data-reveal].est-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   19b. Profondeur du héros : trame en parallaxe + halo suivant le curseur
   -------------------------------------------------------------------------- */
.heros {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* La trame quadrillée, détachée du fond pour pouvoir glisser au défilement */
.heros__trame {
  position: absolute;
  inset: -12% 0 -12%;
  z-index: -2;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg,  rgba(255, 255, 255, .05) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 52px);
  transform: translate3d(0, var(--parallaxe, 0px), 0);
}

/* Halo discret qui suit le curseur — uniquement souris/trackpad */
.heros__halo {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s ease;
  background: radial-gradient(
    420px circle at var(--souris-x, 50%) var(--souris-y, 30%),
    rgba(255, 193, 23, .11),
    transparent 68%
  );
}
.heros.a-le-curseur .heros__halo { opacity: 1; }

.heros__corps,
.heros__gages { position: relative; }

/* --------------------------------------------------------------------------
   19c. Réactions au survol
   -------------------------------------------------------------------------- */

/* Boutons : un appui léger, pas un rebond */
.btn--primaire,
.btn--jaune,
.form-devis button[type="submit"] {
  transition:
    background   var(--duree-courte) ease,
    box-shadow   var(--duree-courte) ease,
    transform    var(--duree-courte) var(--sortie);
}
.btn--primaire:hover,
.btn--jaune:hover,
.form-devis button[type="submit"]:hover { transform: translateY(-2px); }
.btn--primaire:active,
.btn--jaune:active,
.form-devis button[type="submit"]:active { transform: translateY(0); }
.btn--grand:hover { box-shadow: 0 14px 32px rgba(214, 75, 13, .42); }

/* Liens fléchés : le lien avance dans le sens de la flèche */
.lien-fleche,
.panneau__pied a,
.encart-question a,
.section-suite a {
  display: inline-block;
  transition: transform var(--duree-courte) var(--sortie), color var(--duree-courte) ease;
}
.lien-fleche:hover,
.panneau__pied a:hover,
.encart-question a:hover,
.section-suite a:hover { transform: translateX(4px); }

/* Cartes de service : le filet d'accent s'étend, un halo suit le curseur */
.service::before {
  z-index: 2;
  transition: width var(--duree) var(--sortie);
}
.service:hover::before { width: 100%; }

.service::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  background: radial-gradient(
    260px circle at var(--souris-x, 50%) var(--souris-y, 50%),
    color-mix(in srgb, var(--accent, #1E88DA) 9%, transparent),
    transparent 62%
  );
}
.service:hover::after { opacity: 1; }
.service > * { position: relative; z-index: 1; }

/* Cartes d'aides : même halo, adapté au fond sombre */
.aide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  background: radial-gradient(
    240px circle at var(--souris-x, 50%) var(--souris-y, 50%),
    rgba(255, 255, 255, .07),
    transparent 62%
  );
}
.aide:hover::after { opacity: 1; }
.aide > * { position: relative; z-index: 1; }
.aide {
  transition: border-color var(--duree-courte) ease, transform var(--duree-courte) var(--sortie);
}
.aide:hover {
  border-color: rgba(255, 255, 255, .28);
  transform: translateY(-3px);
}

/* Photos de chantier : léger rapprochement, le cadre ne bouge pas */
.realisation img,
.comparateur__visuel > img:first-of-type {
  transition: transform .55s var(--sortie);
}
.realisation:hover img { transform: scale(1.035); }

.realisation {
  transition: border-color var(--duree-courte) ease, box-shadow var(--duree-courte) ease;
}
.realisation:hover {
  border-color: var(--bord-tiret);
  box-shadow: 0 12px 30px rgba(10, 26, 46, .09);
}

/* Témoignages */
.temoignage {
  transition: transform var(--duree-courte) var(--sortie), box-shadow var(--duree-courte) ease;
}
.temoignage:hover {
  transform: translateY(-3px);
  box-shadow: var(--ombre-carte);
}

/* Étiquettes de communes */
.zone__communes li {
  transition: background var(--duree-courte) ease, border-color var(--duree-courte) ease, color var(--duree-courte) ease;
}
.zone__communes li:hover {
  background: var(--blanc);
  border-color: var(--accent, var(--bleu));
  color: var(--marine);
}

/* Pastilles du formulaire */
.pastille { transition: all var(--duree-courte) var(--sortie); }
.pastille:active { transform: scale(.96); }

/* Étapes de la méthode : la pastille numérotée prend la couleur de l'étape */
.etape__num {
  transition: background var(--duree-courte) ease, border-color var(--duree-courte) ease,
              color var(--duree-courte) ease, transform var(--duree-courte) var(--sortie);
}
.etape:hover .etape__num {
  transform: translateY(-3px);
  border-color: var(--accent, var(--marine));
}

/* --------------------------------------------------------------------------
   19d. En-tête qui se resserre au défilement
   -------------------------------------------------------------------------- */
.entete {
  transition: box-shadow var(--duree-courte) ease, background var(--duree-courte) ease;
}
.entete .conteneur { transition: padding-block var(--duree-courte) var(--sortie); }
.entete--compacte {
  box-shadow: 0 6px 22px rgba(10, 26, 46, .07);
  background: rgba(250, 246, 240, .97);
}
.entete--compacte .conteneur { padding-block: 7px; }
.entete--compacte .marque img {
  width: 32px;
  height: 32px;
  transition: width var(--duree-courte) var(--sortie), height var(--duree-courte) var(--sortie);
}

/* Lien de la section courante */
.nav a[aria-current="page"] {
  color: var(--orange-fonce);
  font-weight: 600;
}
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   20. Blocs communs aux pages internes
   -------------------------------------------------------------------------- */

/* Bandeau de titre des pages internes */
.entete-page {
  background:
    radial-gradient(760px 380px at 50% -30%, rgba(242, 106, 27, .26), transparent 64%),
    var(--marine);
  color: var(--blanc);
  padding: clamp(38px, 5vw, 62px) 0 clamp(42px, 5.5vw, 66px);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.entete-page__trame {
  position: absolute;
  inset: -12% 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg,  rgba(255, 255, 255, .05) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 52px);
  transform: translate3d(0, var(--parallaxe, 0px), 0);
}
.entete-page__titre {
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--blanc);
  margin: 18px 0 0;
}
.entete-page__titre em { font-style: normal; color: var(--jaune); }
.entete-page__texte {
  font-size: clamp(15.5px, 1.5vw, 17.5px);
  line-height: 1.62;
  color: var(--clair);
  margin: 18px auto 0;
  max-width: 58ch;
}
.entete-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}

/* Fil d'Ariane */
.ariane {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--clair-3);
  margin: 0;
}
.ariane a { color: var(--clair-3); }
.ariane a:hover { color: var(--jaune); }
.ariane span[aria-current] { color: var(--jaune); }

/* Section de contenu standard */
.bloc { padding: clamp(44px, 5.5vw, 74px) 0; }
.bloc--sable { background: var(--creme-2); }
.bloc--blanc { background: var(--blanc); }
.bloc--sombre { background: var(--marine); color: var(--blanc); }
.bloc--serre { padding: clamp(34px, 4vw, 52px) 0; }

/* Prestation détaillée : texte + liste, en deux colonnes */
.prestation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(22px, 3vw, 44px);
  align-items: start;
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-top: 1px solid var(--bord);
}
.prestation:first-of-type { border-top: 0; padding-top: 0; }
.prestation__entete { text-align: center; }
.prestation__num {
  font-family: var(--titre);
  font-weight: 800;
  font-size: 13px;
  color: var(--num-couleur, var(--blanc));
  background: var(--accent, var(--bleu));
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.prestation h2 {
  font-weight: 800;
  font-size: clamp(23px, 2.8vw, 31px);
  letter-spacing: -.025em;
  margin: 14px 0 0;
}
.prestation__chapo {
  font-size: 16px;
  line-height: 1.65;
  color: var(--texte-3);
  margin: 14px 0 0;
}
.prestation__detail { display: grid; gap: 14px; }

/* Carte de détail réutilisable */
.fiche {
  background: var(--blanc);
  border: 1px solid var(--bord-2);
  border-radius: var(--rayon);
  padding: clamp(18px, 2.2vw, 24px);
  transition: border-color var(--duree-courte) ease, box-shadow var(--duree-courte) ease,
              transform var(--duree-courte) var(--sortie);
}
.fiche:hover {
  border-color: var(--bord-tiret);
  box-shadow: var(--ombre-panneau);
  transform: translateY(-2px);
}
.fiche h3 {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.015em;
  margin: 0 0 8px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.fiche h3::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent, var(--bleu));
  transform: translateY(-1px);
}
.fiche p {
  font-size: 14.8px;
  line-height: 1.6;
  color: var(--texte-3);
  margin: 0;
}
.fiche ul {
  margin: 10px 0 0;
  padding-left: 18px;
}
.fiche li {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--texte-2);
  margin-bottom: 5px;
}

/* Grille de fiches */
.grille-fiches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(14px, 1.8vw, 20px);
}

/* Questions fréquentes */
.faq { display: grid; gap: 10px; max-width: 760px; margin-inline: auto; }
.faq details {
  background: var(--blanc);
  border: 1px solid var(--bord-2);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--duree-courte) ease;
}
.faq details[open] { border-color: var(--bord-tiret); }
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--marine);
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  transition: background var(--duree-courte) ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--blanc-casse); }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 19px;
  line-height: 1;
  color: var(--orange-fonce);
  transition: transform var(--duree-courte) var(--sortie);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p,
.faq details > ul {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--texte-3);
}
.faq details > ul { padding-left: 40px; }

/* Bande d'appel final, présente au bas de chaque page interne */
.rappel {
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(30, 136, 218, .2), transparent 64%),
    var(--marine-fonce);
  color: var(--blanc);
  padding: clamp(42px, 5vw, 66px) 0;
  text-align: center;
}
.rappel h2 {
  font-weight: 800;
  font-size: clamp(25px, 3.2vw, 38px);
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--blanc);
  margin: 0;
}
.rappel p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--clair);
  margin: 16px auto 0;
  max-width: 52ch;
}
.rappel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}

/* Lien « voir la page » en bas des sections de l'accueil */
.section-suite {
  text-align: center;
  margin: clamp(20px, 2.4vw, 28px) 0 0;
}
.section-suite a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  font-weight: 500;
  color: var(--orange-fonce);
  border-bottom: 1px solid var(--bord-tiret);
  padding-bottom: 4px;
}
.section-suite a:hover { border-color: var(--orange); }
.section-suite--clair a {
  color: var(--jaune);
  border-color: var(--marine-bord);
}
.section-suite--clair a:hover { border-color: var(--jaune); }

/* Navigation entre pages internes */
.pages-liees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
}
.page-liee {
  background: var(--blanc);
  border: 1px solid var(--bord-2);
  border-radius: 12px;
  padding: 18px 20px;
  display: block;
  color: var(--texte);
  transition: border-color var(--duree-courte) ease, transform var(--duree-courte) var(--sortie),
              box-shadow var(--duree-courte) ease;
}
.page-liee:hover {
  color: var(--texte);
  border-color: var(--bord-tiret);
  transform: translateY(-3px);
  box-shadow: var(--ombre-panneau);
}
.page-liee__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--orange-fonce);
}
.page-liee strong {
  display: block;
  font-family: var(--titre);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.015em;
  color: var(--marine);
  margin-top: 6px;
}
.page-liee span {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--texte-3);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   21. Adaptations écrans intermédiaires et mobiles
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .entete .conteneur { gap: 12px; }
  .nav { gap: 4px 16px; font-size: 14px; }
}

/* Passage au menu déroulant */
@media (max-width: 860px) {
  .burger { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--creme);
    border-bottom: 1px solid var(--bord);
    box-shadow: 0 18px 40px rgba(10, 26, 46, .14);
    padding: 6px var(--gouttiere) 14px;
    font-size: 16px;
  }
  .nav[hidden] { display: none; }

  /* Le menu reste replié tant que le burger n'est pas activé — y compris
     avant l'exécution du JS, ce qui évite un affichage fugace au chargement. */
  .entete:not(:has(.burger[aria-expanded="true"])) .nav { display: none; }

  .nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--bord);
  }
  .nav a::after { display: none; }
  .nav a:last-child { border-bottom: 0; }

  .entete .conteneur { position: relative; }
  .entete__cta { display: none; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }

  .barre-info__badge { display: none; }
  .marque img { width: 34px; height: 34px; }
  .marque__nom { font-size: 15.5px; }

  .heros__gages .conteneur { padding-bottom: clamp(48px, 12vw, 70px); }
  .gage { font-size: 12.5px; padding: 7px 12px; }

  .heros__actions .btn { width: 100%; }

  .chiffres__grille { grid-template-columns: 1fr 1fr; }

  .comparateur__visuel { min-height: 260px; }
  .realisation img { height: 230px; }
  .realisation--basse img { height: 210px; }

  .champ textarea { text-align: left; }

  .cta-flottant__texte { display: none; }
  .cta-flottant .conteneur { padding-block: 9px; }
  .cta-flottant__actions { width: 100%; }
  .cta-flottant__actions > * { flex: 1; text-align: center; }

  .pied__grille { gap: 28px; }
}

@media (max-width: 420px) {
  .chiffres__grille { grid-template-columns: 1fr; }
  .onglet { font-size: 13px; padding: 9px 13px; }
}

/* --------------------------------------------------------------------------
   22. Préférences utilisateur et impression
   -------------------------------------------------------------------------- */

/* Mouvement réduit : tout le contenu reste présent, plus rien ne bouge. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  /* Les blocs à révéler s'affichent d'emblée, sans décalage */
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Plus aucun déplacement au survol ni parallaxe */
  .service:hover,
  .aide:hover,
  .temoignage:hover,
  .fiche:hover,
  .page-liee:hover,
  .btn--primaire:hover,
  .btn--jaune:hover,
  .etape:hover .etape__num,
  .form-devis button[type="submit"]:hover { transform: none; }

  .lien-fleche:hover,
  .panneau__pied a:hover,
  .encart-question a:hover,
  .section-suite a:hover { transform: none; }

  .realisation:hover img { transform: none; }
  .service:hover::before { width: 56px; }

  .heros__trame,
  .entete-page__trame { transform: none !important; }
  .heros__halo,
  .service::after,
  .aide::after { display: none; }
}

/* Écrans tactiles : ni halo de curseur, ni effets de survol persistants */
@media (hover: none) {
  .heros__halo,
  .service::after,
  .aide::after { display: none; }
}

@media print {
  .entete,
  .cta-flottant,
  .barre-info,
  .bandeau-urgence,
  .carte-form,
  .burger { display: none !important; }

  body { background: #fff; color: #000; }
  .heros,
  .aides,
  .devis,
  .pied {
    background: #fff !important;
    color: #000 !important;
  }
  .heros__titre,
  .devis__titre,
  .chapeau--sombre .chapeau__titre { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; }
}
