@charset "UTF-8";
/* ==========================================================================
   Comtoise de Peinture — feuille de style unique
   Palette relevée sur le logo d'origine. Voir charte.md.
   Déclinaison B : sections alternées, aplats bleus pleine largeur.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Polices auto-hébergées — aucun appel externe
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-var.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Jetons
   -------------------------------------------------------------------------- */
:root {
  /* Marque */
  --bleu: #424496;
  --bleu-fonce: #31336F;
  --bleu-pale: #E7E7F2;
  --rouge: #E14530;
  --olive: #C8D101;

  /* Action */
  --action: #D6412E;
  --action-survol: #A13222;
  --lien: #C23C29;

  /* Texte */
  --encre: #25252B;
  --texte-2: #6E6B6E;
  --olive-texte: #6C7001;

  /* Fonds */
  --blanc: #FFFFFF;
  --creme: #F8F6F1;
  --creme-2: #F0EDE6;
  --anthracite: #2B2A31;
  --filet: #D8D2C7;

  /* États */
  --erreur: #A13222;
  --succes: #6C7001;
  --focus: #25252B;

  /* Rôles contextuels — redéfinis dans les sections colorées */
  --fond: var(--blanc);
  --texte: var(--encre);
  --texte-doux: var(--texte-2);
  --titre: var(--encre);
  --trait: var(--filet);

  /* Typographie */
  --police: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --police-titre: 'Bricolage Grotesque', 'Nunito', system-ui, sans-serif;

  --t-xs: clamp(0.8125rem, 0.7866rem + 0.1105vw, 0.875rem);
  --t-sm: clamp(0.875rem, 0.8491rem + 0.1105vw, 0.9375rem);
  --t-base: clamp(1rem, 0.9741rem + 0.1105vw, 1.062rem);
  --t-lg: clamp(1.125rem, 1.073rem + 0.221vw, 1.25rem);
  --t-xl: clamp(1.312rem, 1.209rem + 0.442vw, 1.562rem);
  --t-2xl: clamp(1.562rem, 1.381rem + 0.7735vw, 2rem);
  --t-3xl: clamp(1.875rem, 1.564rem + 1.326vw, 2.625rem);
  --t-4xl: clamp(2.25rem, 1.628rem + 2.652vw, 3.75rem);

  /* Rythme */
  --e-1: 0.25rem;
  --e-2: 0.5rem;
  --e-3: 0.75rem;
  --e-4: 1rem;
  --e-5: 1.5rem;
  --e-6: 2rem;
  --e-7: 3rem;
  --e-8: 4rem;
  --e-9: 5.5rem;

  --largeur: 74rem;
  --gouttiere: 1.25rem;
  --transition: 150ms ease-out;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--police);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--police-titre);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--titre);
  margin: 0 0 var(--e-4);
  text-wrap: balance;
}
h1 { font-size: var(--t-4xl); }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }

p, ul, ol, dl, table, figure { margin: 0 0 var(--e-4); }
p { max-width: 68ch; }

a { color: var(--lien); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--action-survol); }

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

strong, b { font-weight: 700; }

ul { padding-left: 1.15rem; }
li { margin-bottom: var(--e-2); }

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

/* Lien d'évitement */
.evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--encre);
  color: var(--blanc);
  padding: var(--e-3) var(--e-5);
  font-weight: 700;
}
.evitement:focus { left: 0; color: var(--blanc); }

.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. Ossature
   -------------------------------------------------------------------------- */
.contenu {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.section {
  padding-block: var(--e-8);
  background: var(--fond);
  color: var(--texte);
}
.section--creme { --fond: var(--creme); }
.section--creme-2 { --fond: var(--creme-2); }

/* Aplat bleu pleine largeur — jamais deux consécutifs (voir charte.md) */
.section--bleu {
  --fond: var(--bleu);
  --texte: var(--blanc);
  --texte-doux: var(--bleu-pale);
  --titre: var(--blanc);
  --trait: rgba(255, 255, 255, .28);
  --focus: var(--blanc);
}
.section--bleu a:not(.bouton) { color: var(--olive); }
.section--bleu a:not(.bouton):hover { color: var(--blanc); }

.section__intro { max-width: 60ch; }
.section > .contenu > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   5. Le motif du logo : plaque colorée + carré d'accent décalé
   -------------------------------------------------------------------------- */
.etiquette {
  display: inline-block;
  margin-bottom: var(--e-5);
  padding: 0.4em 0.85em;
  background: var(--bleu);
  color: var(--blanc);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.35;
}
/* Le carré d'accent est rendu par une ombre portée pleine, pas par un
   pseudo-élément : box-shadow peint nativement derrière le fond de
   l'élément, sans créer de contexte d'empilement à gérer. L'étalement
   de 6 px donne l'accent plus haut que la plaque, le décalage de -9 px
   le fait dépasser à gauche — la règle exacte du logo. */
/* La marge gauche compense le débord : le carré d'accent, élément le plus à
   gauche du motif comme dans le logo, s'aligne exactement sur la colonne. */
.etiquette { margin-left: 15px; box-shadow: -9px 0 0 6px var(--rouge); }
.etiquette--olive { background: var(--olive); color: var(--encre); box-shadow: -9px 0 0 6px var(--bleu); }
.section--bleu .etiquette { background: var(--olive); color: var(--encre); box-shadow: -9px 0 0 6px var(--rouge); }

/* Filet court sous les titres de section */
.filet {
  width: 64px;
  height: 5px;
  background: var(--olive);
  margin: calc(var(--e-4) * -0.5) 0 var(--e-5);
}
.section--bleu .filet { background: var(--olive); }

/* --------------------------------------------------------------------------
   6. Boutons
   -------------------------------------------------------------------------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--e-2);
  padding: 0.85em 1.5em;
  border: 2px solid transparent;
  background: var(--action);
  color: var(--blanc);
  font-family: var(--police);
  font-size: var(--t-base);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition);
}
.bouton:hover { background: var(--action-survol); color: var(--blanc); }

.bouton--fantome {
  background: transparent;
  color: var(--bleu);
  border-color: var(--bleu);
}
.bouton--fantome:hover { background: var(--bleu); color: var(--blanc); }
.section--bleu .bouton--fantome { color: var(--blanc); border-color: var(--blanc); }
.section--bleu .bouton--fantome:hover { background: var(--blanc); color: var(--bleu); }

.boutons { display: flex; flex-wrap: wrap; gap: var(--e-3); }

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  font-weight: 700;
  text-decoration: none;
}
.lien-fleche:hover { text-decoration: underline; }
.lien-fleche svg { width: 1.05em; height: 1.05em; flex: none; }

/* --------------------------------------------------------------------------
   7. En-tête
   -------------------------------------------------------------------------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--blanc);
  border-bottom: 1px solid var(--filet);
}
.entete__barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-4);
  min-height: 68px;
  padding-block: var(--e-2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  text-decoration: none;
  color: var(--encre);
}
.logo__marque { width: 34px; height: 34px; flex: none; }
.logo__mot {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--texte-2);
  white-space: nowrap;
}
.logo__mot span { display: block; }

.entete__tel {
  display: none;
  font-weight: 700;
  font-size: var(--t-base);
  color: var(--bleu);
  text-decoration: none;
  white-space: nowrap;
}
.entete__tel:hover { color: var(--bleu-fonce); }
.entete .bouton { display: none; }

/* Bascule du menu */
.bascule {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  padding: 0.5rem 0.7rem;
  border: 2px solid var(--bleu);
  background: transparent;
  color: var(--bleu);
  font-family: var(--police);
  font-size: var(--t-sm);
  font-weight: 700;
  cursor: pointer;
}
.bascule__traits { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.bascule__traits::before, .bascule__traits::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.bascule__traits::before { top: -6px; }
.bascule__traits::after { top: 6px; }

/* Navigation — masquée en CSS seulement, jamais retirée du DOM */
.nav { display: none; flex: 1 1 100%; }
/* Déplié, le menu peut dépasser la hauteur de l'écran : on le rend défilable
   plutôt que de laisser l'en-tête collant manger toute la fenêtre. */
.nav[data-ouvert="true"] {
  display: block;
  padding-bottom: var(--e-3);
  max-height: calc(100vh - 5.5rem);
  overflow-y: auto;
}
.nav__liste { list-style: none; margin: 0 0 var(--e-4); padding: 0; }
.nav__liste a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--filet);
  color: var(--encre);
  font-weight: 600;
  text-decoration: none;
}
.nav__liste a:hover, .nav__liste a[aria-current="page"] { color: var(--bleu); }
.nav__sous { list-style: none; margin: 0; padding: 0 0 0 var(--e-4); }
.nav__sous a { font-weight: 400; }

.badge-neuf {
  display: inline-block;
  margin-left: var(--e-2);
  padding: 0.1em 0.5em;
  background: var(--olive);
  color: var(--encre);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 0.12em;
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: var(--e-8) var(--e-8); }
.hero h1 { margin-bottom: var(--e-4); }
.hero__chapo {
  font-size: var(--t-lg);
  line-height: 1.45;
  color: var(--texte-doux);
  max-width: 54ch;
  margin-bottom: var(--e-6);
}

.reperes {
  display: grid;
  gap: var(--e-5);
  margin: var(--e-8) 0 0;
  padding: var(--e-6) 0 0;
  border-top: 1px solid var(--trait);
  list-style: none;
}
.reperes li { margin: 0; }
.reperes__barre { display: block; width: 34px; height: 5px; margin-bottom: var(--e-3); }
.reperes__barre--olive { background: var(--olive); }
.reperes__barre--rouge { background: var(--rouge); }
.reperes__barre--blanc { background: var(--blanc); }
.reperes b { display: block; font-size: var(--t-lg); font-weight: 700; line-height: 1.25; }
.reperes span { color: var(--texte-doux); font-size: var(--t-sm); }

/* --------------------------------------------------------------------------
   9. Cartes métier
   -------------------------------------------------------------------------- */
.grille-metiers {
  display: grid;
  gap: var(--e-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.grille-metiers li { margin: 0; }

.carte {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--e-5);
  background: var(--blanc);
  border: 1px solid var(--filet);
  transition: border-color var(--transition), transform var(--transition);
}
.carte:hover { border-color: var(--bleu); }
.carte__picto {
  width: 52px;
  height: 52px;
  margin-bottom: var(--e-3);
  color: var(--bleu);
  /* Héritée jusque dans l'arbre fantôme de <use> — contrairement à une classe. */
  --picto-accent: var(--rouge);
}
.carte h3 { font-size: var(--t-lg); margin-bottom: var(--e-2); }
.carte h3 a { color: inherit; text-decoration: none; }
.carte h3 a::after { content: ""; position: absolute; inset: 0; }
.carte p { font-size: var(--t-sm); color: var(--texte-2); margin-bottom: 0; max-width: none; }
.carte--neuf { border-color: var(--olive); border-width: 2px; }

/* --------------------------------------------------------------------------
   10. Frise de chantier
   -------------------------------------------------------------------------- */
.frise { list-style: none; margin: var(--e-6) 0 0; padding: 0; counter-reset: etape; }
.frise li {
  position: relative;
  margin: 0 0 var(--e-5);
  padding-left: 3.25rem;
}
.frise li::before {
  counter-increment: etape;
  content: counter(etape);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  background: var(--olive);
  color: var(--encre);
  font-weight: 700;
  font-size: var(--t-sm);
}
.frise li::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 2.3rem;
  bottom: calc(var(--e-5) * -1 + 0.35rem);
  width: 2px;
  background: var(--trait);
}
.frise li:last-child { margin-bottom: 0; }
.frise li:last-child::after { display: none; }
.frise b { display: block; font-size: var(--t-lg); font-weight: 700; line-height: 1.3; }
.frise p { margin: var(--e-1) 0 0; color: var(--texte-doux); font-size: var(--t-sm); }

/* --------------------------------------------------------------------------
   11. Encadré
   -------------------------------------------------------------------------- */
.encadre {
  position: relative;
  padding: var(--e-5);
  background: var(--creme);
  border-left: 5px solid var(--olive);
}
.encadre > :last-child { margin-bottom: 0; }
.section--bleu .encadre { background: rgba(255, 255, 255, .1); border-left-color: var(--olive); }

/* --------------------------------------------------------------------------
   12. Chantiers
   -------------------------------------------------------------------------- */
.chantiers { display: grid; gap: var(--e-5); list-style: none; margin: 0; padding: 0; }
.chantiers li { margin: 0; }
.chantier { display: flex; flex-direction: column; height: 100%; }
.chantier img { width: 100%; height: auto; background: var(--creme-2); }
.chantier__corps { padding-top: var(--e-4); }
.chantier h3 { font-size: var(--t-lg); margin-bottom: var(--e-2); }
.chantier dl { margin: 0 0 var(--e-3); font-size: var(--t-sm); }
.chantier dt {
  font-weight: 700;
  font-size: var(--t-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--texte-2);
}
.chantier dd { margin: 0 0 var(--e-2); }

/* --------------------------------------------------------------------------
   13. FAQ — dépliable, toujours dans le DOM
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--trait); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--e-4);
  padding: var(--e-4) 0;
  font-family: var(--police-titre);
  font-size: var(--t-lg);
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 0.4em;
  border-right: 3px solid var(--bleu);
  border-bottom: 3px solid var(--bleu);
  transform: rotate(45deg);
  transition: transform var(--transition);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.section--bleu .faq summary::after { border-color: var(--olive); }
.faq__reponse { padding-bottom: var(--e-4); }
.faq__reponse > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   14. Bloc de conversion
   -------------------------------------------------------------------------- */
.conversion { background: var(--bleu); color: var(--blanc); --focus: var(--blanc); }
.conversion h2 { color: var(--blanc); }
.conversion p { color: var(--bleu-pale); }
.conversion__tel {
  display: inline-block;
  font-family: var(--police-titre);
  font-size: var(--t-3xl);
  font-weight: 700;
  color: var(--blanc);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.conversion__tel:hover { color: var(--olive); }
.conversion .bouton--fantome { color: var(--blanc); border-color: var(--blanc); }
.conversion .bouton--fantome:hover { background: var(--blanc); color: var(--bleu); }

/* --------------------------------------------------------------------------
   15. Pied de page
   -------------------------------------------------------------------------- */
.pied {
  background: var(--anthracite);
  color: #D5D3D8;
  --focus: var(--blanc);
  padding-block: var(--e-7) var(--e-5);
  font-size: var(--t-sm);
}
.pied a { color: #D5D3D8; text-decoration: none; }
.pied a:hover { color: var(--olive); text-decoration: underline; }
.pied h2, .pied h3 {
  font-family: var(--police);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blanc);
  margin-bottom: var(--e-3);
}
.pied__grille { display: grid; gap: var(--e-6); }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: var(--e-2); }
.pied__logo { width: 212px; height: auto; margin-bottom: var(--e-4); }
.pied__phrase { color: #B9B7BE; max-width: 42ch; }
.pied address { font-style: normal; }
.pied__bas {
  margin-top: var(--e-6);
  padding-top: var(--e-4);
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-2) var(--e-5);
  font-size: var(--t-xs);
  color: #A9A7AF;
}

/* --------------------------------------------------------------------------
   16. Bouton d'appel flottant — mobile uniquement
   -------------------------------------------------------------------------- */
.appel-flottant {
  position: fixed;
  right: var(--gouttiere);
  bottom: var(--gouttiere);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  padding: 0.9rem 1.3rem;
  background: var(--action);
  color: var(--blanc);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .28);
}
.appel-flottant:hover { background: var(--action-survol); color: var(--blanc); }
/* Le bouton flottant ne doit jamais masquer la fin du pied de page. */
.pied { padding-bottom: 6rem; }
.appel-flottant svg { width: 1.1em; height: 1.1em; flex: none; }

/* --------------------------------------------------------------------------
   17. Tableaux
   -------------------------------------------------------------------------- */
.tableau-enveloppe { overflow-x: auto; margin-bottom: var(--e-5); }
table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: var(--e-3);
  color: var(--texte-doux);
}
th, td { padding: var(--e-3); text-align: left; border-bottom: 1px solid var(--trait); vertical-align: top; }
thead th { background: var(--bleu); color: var(--blanc); font-weight: 700; }
tbody th { font-weight: 700; }

/* --------------------------------------------------------------------------
   18. Bloc « L'essentiel » et date de mise à jour
   -------------------------------------------------------------------------- */
.essentiel { background: var(--creme-2); padding: var(--e-5); border-top: 5px solid var(--bleu); }
.essentiel h2 { font-size: var(--t-xl); }
.essentiel ul { margin-bottom: 0; }
.maj { font-size: var(--t-xs); color: var(--texte-2); }


/* --------------------------------------------------------------------------
   19. Composants des pages service
   -------------------------------------------------------------------------- */

/* Fil d'Ariane */
.ariane { margin-bottom: var(--e-5); font-size: var(--t-sm); }
.ariane ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--e-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.ariane li { margin: 0; }
.ariane li + li::before { content: "›"; margin-right: var(--e-2); opacity: .6; }
.ariane a { text-decoration: none; }
.ariane a:hover { text-decoration: underline; }
.ariane [aria-current="page"] { opacity: .78; }

/* Encart « Nouveauté » — sobre : l'activité est neuve, l'entreprise ne l'est pas */
.nouveaute {
  margin: 0 0 var(--e-6) 15px;
  padding: var(--e-5);
  background: var(--creme);
  box-shadow: -9px 0 0 6px var(--olive);
}
.nouveaute > :last-child { margin-bottom: 0; }
.nouveaute__titre {
  display: block;
  margin-bottom: var(--e-2);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--olive-texte);
}

/* Liste des prestations : une sous-section par métier */
.prestations { list-style: none; margin: var(--e-6) 0 0; padding: 0; display: grid; gap: var(--e-6); }
.prestations > li { margin: 0; }
.prestation { padding-top: var(--e-4); border-top: 3px solid var(--bleu); }
.prestation h3 { font-size: var(--t-lg); margin-bottom: var(--e-3); }
.prestation p { margin-bottom: 0; font-size: var(--t-sm); }
.prestation p + p { margin-top: var(--e-3); }

/* Maillage interne contextualisé */
.maillage { margin-top: var(--e-7); padding-top: var(--e-5); border-top: 1px solid var(--trait); }
.maillage h2 { font-size: var(--t-xl); }
.maillage ul { display: grid; gap: var(--e-5); list-style: none; margin: 0; padding: 0; }
.maillage li { margin: 0; }
.maillage a { display: block; text-decoration: none; color: inherit; }
.maillage b {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: var(--t-base);
  color: var(--lien);
}
.maillage a:hover b { color: var(--action-survol); text-decoration: underline; }
.maillage b svg { width: 1em; height: 1em; flex: none; }
.maillage span { display: block; color: var(--texte-doux); font-size: var(--t-sm); }

.maj { margin-top: var(--e-6); }

/* Filtre par métier — CSS pur, aucun JavaScript.
   Chaque bouton radio est suivi de son libellé, ce qui permet de styler l'état
   coché ; :has() sur le conteneur masque les fiches non concernées. Tout le
   contenu reste dans le DOM et reste indexable : le filtre n'agit qu'en
   affichage. */
.filtre input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.filtre {
  position: relative; /* ancre les boutons radio masqués, sinon ils partent
                         dans le bloc conteneur initial et le focus clavier
                         provoque un saut de défilement */
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-2);
  margin-bottom: var(--e-6);
}
.filtre label {
  display: inline-block;
  padding: 0.45em 0.95em;
  border: 2px solid var(--bleu);
  color: var(--bleu);
  font-size: var(--t-sm);
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}
.filtre label:hover { background: var(--bleu-pale); }

.filtre input:checked + label,
.filtre input:checked + label:hover { background: var(--bleu); color: var(--blanc); }
.filtre input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

.filtrable:has(#f-peinture:checked)    .fiche:not([data-metier~="peinture"]),
.filtrable:has(#f-platrerie:checked)   .fiche:not([data-metier~="platrerie"]),
.filtrable:has(#f-facade:checked)      .fiche:not([data-metier~="facade"]),
.filtrable:has(#f-isolation:checked)   .fiche:not([data-metier~="isolation"]),
.filtrable:has(#f-electricite:checked) .fiche:not([data-metier~="electricite"]),
.filtrable:has(#f-renovation:checked)  .fiche:not([data-metier~="renovation"]) { display: none; }

/* Sans :has(), le filtre ne pourrait pas agir : on le retire plutôt que de
   laisser des boutons inertes. Toutes les fiches restent affichées. */
@supports not selector(:has(*)) {
  .filtre { display: none; }
}

/* Fiche de chantier — décrite par le texte, ancrée par un pictogramme métier */
.fiches { display: grid; gap: var(--e-5); list-style: none; margin: 0; padding: 0; }
.fiches > li { margin: 0; }
.fiche {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--e-5);
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-top: 5px solid var(--bleu);
}
.fiche__picto {
  width: 40px;
  height: 40px;
  margin-bottom: var(--e-3);
  color: var(--bleu);
  --picto-accent: var(--rouge);
}
.fiche h3 { font-size: var(--t-lg); margin-bottom: var(--e-2); }
.fiche__meta {
  margin-bottom: var(--e-4);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--texte-2);
}
.fiche dl { margin: 0; font-size: var(--t-sm); }
.fiche dt {
  font-weight: 700;
  font-size: var(--t-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--bleu);
}
.fiche dd { margin: 0 0 var(--e-3); }
.fiche dd:last-child { margin-bottom: 0; }

@media (min-width: 40em) {
  .prestations { grid-template-columns: repeat(2, 1fr); }
  .maillage ul { grid-template-columns: repeat(3, 1fr); }
  .fiches { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 62em) {
  .prestations { grid-template-columns: repeat(3, 1fr); }
  .fiches { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   20. Points d'arrêt — mobile-first, le 375 px d'abord
   -------------------------------------------------------------------------- */
@media (min-width: 40em) {
  :root { --gouttiere: 2rem; }
  .reperes { grid-template-columns: repeat(3, 1fr); gap: var(--e-4); }
  .grille-metiers { grid-template-columns: repeat(2, 1fr); }
  .chantiers { grid-template-columns: repeat(2, 1fr); }
  .pied__grille { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: var(--e-9); }
}

@media (min-width: 62em) {
  .bascule { display: none; }
  .entete__tel { display: inline-block; }
  .entete .bouton { display: inline-flex; }
  .entete__barre { min-height: 84px; gap: var(--e-5); }
  .logo__marque { width: 40px; height: 40px; }
  .logo__mot { font-size: 1.28rem; }

  /* Sur grand écran la navigation est toujours déployée, quel que soit
     l'état laissé par la bascule mobile. */
  .nav, .nav[data-ouvert="false"], .nav[data-ouvert="true"] {
    display: block; flex: 0 1 auto; padding-bottom: 0; max-height: none; overflow: visible;
  }
  .nav__liste { display: flex; gap: var(--e-5); margin: 0; }
  .nav__liste > li { position: relative; margin: 0; }
  .nav__liste a { border: 0; padding: 0.4rem 0; font-size: var(--t-sm); }

  .nav__groupe > a::after {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    margin-left: 0.4em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }
  .nav__sous {
    position: absolute;
    top: 100%;
    left: -1rem;
    min-width: 17rem;
    padding: var(--e-2) 0;
    background: var(--blanc);
    border: 1px solid var(--filet);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
  }
  .nav__groupe:hover .nav__sous,
  .nav__groupe:focus-within .nav__sous { opacity: 1; visibility: visible; }
  .nav__sous a { padding: 0.5rem 1rem; }
  .nav__sous a:hover { background: var(--creme); }

  .grille-metiers { grid-template-columns: repeat(3, 1fr); }
  .chantiers { grid-template-columns: repeat(3, 1fr); }
  .pied__grille { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; }
  .appel-flottant { display: none; }

  .hero { padding-block: var(--e-9); }

  /* Colonnes déduites du nombre d'étapes : 5 sur l'accueil, 4 sur les pages service. */
  .frise { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--e-4); }
  .frise li { padding-left: 0; padding-top: 3.1rem; margin-bottom: 0; }
  .frise li::after { left: 2.3rem; top: 1.15rem; bottom: auto; right: calc(var(--e-4) * -1); width: auto; height: 2px; }
  .frise li:last-child::after { display: none; }

  .deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e-8); align-items: start; }
  .conversion__grille { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e-6); }
}

/* --------------------------------------------------------------------------
   21. Formulaire de devis
   -------------------------------------------------------------------------- */
.formulaire { display: grid; gap: var(--e-4); max-width: 44rem; }
.formulaire__paire { display: grid; gap: var(--e-4); }

.champ { display: flex; flex-direction: column; gap: var(--e-2); }
.champ > label { font-size: var(--t-sm); font-weight: 700; line-height: 1.3; }
.champ--requis > label::after { content: "\00a0*"; color: var(--lien); }

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  padding: 0.7em 0.8em;
  border: 2px solid var(--filet);
  border-radius: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--police);
  font-size: var(--t-base);
  line-height: 1.4;
}
.champ textarea { min-height: 9rem; resize: vertical; }
.champ input:hover,
.champ select:hover,
.champ textarea:hover { border-color: var(--texte-2); }
.champ input:focus,
.champ select:focus,
.champ textarea:focus { border-color: var(--bleu); }
.champ__aide { font-size: var(--t-xs); color: var(--texte-2); }

.champ select {
  appearance: none;
  padding-right: 2.4em;
  /* Chevron dessiné en fond : aucun glyphe de police n'est sollicité. */
  background-image: linear-gradient(45deg, transparent 50%, var(--bleu) 50%),
                    linear-gradient(135deg, var(--bleu) 50%, transparent 50%);
  background-position: calc(100% - 1.15em) center, calc(100% - 0.8em) center;
  background-size: 0.4em 0.4em, 0.4em 0.4em;
  background-repeat: no-repeat;
}

.consentement {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--e-3);
  align-items: start;
  padding: var(--e-4);
  background: var(--creme-2);
  border-left: 5px solid var(--olive);
}
.consentement input { width: 1.2rem; height: 1.2rem; margin: 0.2rem 0 0; accent-color: var(--bleu); }
.consentement label { font-size: var(--t-sm); }

/* Pot de miel — hors écran, jamais display:none : un robot suivrait la règle. */
.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.message { padding: var(--e-4); border-left: 5px solid; margin-bottom: var(--e-5); }
.message > :last-child { margin-bottom: 0; }
.message--erreur { border-color: var(--erreur); background: #FCEAE6; color: var(--erreur); }
.message--succes { border-color: var(--succes); background: #F4F6D6; color: var(--succes); }

.obligatoire-note { font-size: var(--t-xs); color: var(--texte-2); }

/* --------------------------------------------------------------------------
   22. Coordonnées et accès
   -------------------------------------------------------------------------- */
.coordonnees { display: grid; gap: var(--e-5); }
.coordonnees__bloc { padding-left: var(--e-4); border-left: 5px solid var(--bleu); }
.coordonnees__bloc h3 {
  font-family: var(--police);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--texte-2);
  margin-bottom: var(--e-2);
}
.coordonnees__bloc p { margin-bottom: 0; }
.coordonnees address { font-style: normal; }
.coordonnees__gros {
  font-family: var(--police-titre);
  font-size: var(--t-xl);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.situation { margin: 0; background: var(--creme-2); padding: var(--e-5); }
.situation svg { width: 100%; height: auto; }
.situation figcaption { margin-top: var(--e-3); font-size: var(--t-xs); color: var(--texte-2); }

/* --------------------------------------------------------------------------
   23. Communes
   -------------------------------------------------------------------------- */
.communes { display: grid; gap: var(--e-6); list-style: none; margin: 0; padding: 0; }
.communes > li { margin: 0; }
.commune { padding-top: var(--e-4); border-top: 3px solid var(--bleu); }
.commune h3 { font-size: var(--t-xl); margin-bottom: var(--e-1); }
.commune__meta {
  margin-bottom: var(--e-3);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--texte-2);
}
.commune p:last-child { margin-bottom: 0; }

@media (min-width: 40em) {
  .formulaire__paire { grid-template-columns: 1fr 1fr; }
  .coordonnees { grid-template-columns: repeat(2, 1fr); }
  .communes { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 62em) {
  .contact__grille { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--e-8); align-items: start; }
  .communes { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   24. Mouvement réduit
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------------------
   25. Impression
   -------------------------------------------------------------------------- */
@media print {
  .entete, .appel-flottant, .conversion, .bascule { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .section { padding-block: 1rem; background: #fff !important; color: #000 !important; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
