/* ==========================================================================
   Edragal Conseil — Système de design · Composants
   Dépend de `tokens.css` (jetons) et `fonts.css` (polices auto-hébergées).
   Créé le 11/10/2026 · HELABOWEB

   PRINCIPES
   1. Sobriété : aucune animation gratuite, aucun dégradé décoratif, aucune ombre lourde.
   2. Lisibilité avant tout : 17 px de base, interligne 1,65, largeur de lecture bornée.
   3. Tout l'état d'interaction est visible au clavier (:focus-visible) — exigence RGAA/AA.
   4. L'information ne repose jamais sur la seule couleur.
   ========================================================================== */

/* ==========================================================================
   1. Réinitialisation minimale
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal-encre); text-underline-offset: 3px; }
a:hover { color: var(--marine); }

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

/* ==========================================================================
   2. Base
   ========================================================================== */
body {
  font-family: var(--police-texte);
  font-size: var(--t-base);
  line-height: var(--interligne-texte);
  color: var(--texte);
  background: var(--fond);
  font-weight: var(--graisse-normale);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--police-titres);
  color: var(--encre);
  font-weight: var(--graisse-titre);
  line-height: var(--interligne-titre);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--t-hero); line-height: var(--interligne-serre); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-l); }
h4 { font-size: var(--t-m); font-family: var(--police-texte); font-weight: var(--graisse-forte); }

p { max-width: var(--conteneur-texte); }
p + p { margin-top: var(--e-4); }

strong { font-weight: var(--graisse-forte); color: var(--encre); }
/*
 * Sur fond marine, la règle ci-dessus rendait le texte INVISIBLE : `--encre`
 * (#0E2A45) est exactement la couleur du fond. Mesuré le 11/10/2026 : rapport
 * de contraste 1,00:1 sur « Auvergne-Rhône-Alpes » dans le chapeau de l'accueil
 * (WCAG 1.4.3, seuil 4,5:1). Sur les blocs sombres, <strong> reprend donc la
 * couleur du texte de son parent.
 */
.heros strong,
.section--marine strong,
.bande-photo strong,
.entete strong,
.pied strong { color: inherit; }

/* Lien de saut d'accessibilité (invisible tant qu'il n'a pas le focus) */
.lien-evitement {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--marine); color: var(--blanc);
  padding: var(--e-3) var(--e-5); border-radius: 0 0 var(--rayon) 0;
}
.lien-evitement:focus { left: 0; }

/* Focus visible unifié */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: var(--rayon-s);
}

/* ==========================================================================
   3. Mise en page
   ========================================================================== */
.conteneur {
  width: 100%;
  max-width: var(--conteneur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}
.conteneur--etroit { max-width: 820px; }

.section { padding-block: var(--section-y); }
.section--serree { padding-block: var(--section-y-serre); }
.section--blanche { background: var(--fond-alt); }
.section--marine { background: var(--fond-sombre); color: var(--papier); }
.section--marine h1, .section--marine h2, .section--marine h3 { color: var(--blanc); }
.section--marine p { color: #D7E1E8; }
.section--teal-pale { background: var(--teal-pale); }

.grille { display: grid; gap: var(--e-5); }
/* Correctif mesuré le 11/10/2026 : sur la page Contact en 390 px, la grille
   débordait de 21 px. Un élément de grille a une largeur minimale implicite égale
   à la largeur minimale de son contenu (ici un champ de formulaire) : sans
   `min-width: 0`, la colonne refuse de rétrécir et pousse la page au-delà du
   viewport. Règle générale, à conserver. */
.grille > * { min-width: 0; }

/* Reflow à 200 % de taille de texte (WCAG 1.4.4 / 1.4.10) — audit externe du
   11/10/2026 puis re-mesure : avec le titre corrigé, le débordement de 69 px venait
   de l'EN-TÊTE (logo + téléphone + bouton « Demander un devis »), trop large pour
   tenir sur une ligne. `flex-wrap` laisse le bloc d'actions passer à la ligne
   suivante : plus aucun défilement horizontal, l'en-tête grandit simplement. */
.entete__inner { flex-wrap: wrap; row-gap: var(--e-2); }

/* Reflow à 200 % de taille de texte (WCAG 1.4.4 / 1.4.10) — audit externe du
   11/10/2026 : à 200 %, « Accompagnement de projet » ne se coupait pas et faisait
   déborder sa carte de 44 px, créant un défilement horizontal sur l'accueil.
   `overflow-wrap: break-word` autorise la coupure d'un mot trop long, sans effet
   sur la typographie aux tailles normales. `hyphens: auto` améliore la césure. */
h1, h2, h3, h4, h5, h6, .carte__titre, .fiche-offre__titre {
  overflow-wrap: break-word;
  hyphens: auto;
}
/* Le titre d'une fiche repliée est un <h3> (hiérarchie h2 → h3 → h4 correcte)
   mais il doit garder la taille et la graisse du résumé. */
.fiche-offre__resume .fiche-offre__titre {
  font-family: inherit; font-size: inherit; line-height: inherit; font-weight: 600;
  margin: 0; color: inherit; letter-spacing: 0;
}
/* Les cibles d'ancrage (#offre-*, #gamme-*) ne doivent jamais passer sous l'en-tête
   collant après correction du reflow. */
:target, [id^="offre-"], [id^="gamme-"] { scroll-margin-top: 96px; }
/* `minmax(min(Xpx, 100%), 1fr)` et non `minmax(Xpx, 1fr)` : sur un écran plus
   étroit que la largeur minimale de colonne (320 px, dans une carte qui a déjà des
   marges internes), la piste débordait — mesuré 3 px sur la page Offres. Le `min()`
   plafonne la largeur minimale à celle du conteneur. */
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grille--3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grille--4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.grille--aside { grid-template-columns: 1fr; gap: var(--e-7); }
@media (min-width: 900px) { .grille--aside { grid-template-columns: 2fr 1fr; } }

.pile > * + * { margin-top: var(--e-4); }
.pile-l > * + * { margin-top: var(--e-6); }

/* En-tête de section (sur-titre + titre + chapeau) */
.section-tete { max-width: 760px; margin-bottom: var(--e-7); }
.section-tete--centre { margin-inline: auto; text-align: center; }
.section-tete--centre p { margin-inline: auto; }

.surtitre {
  display: block;
  font-family: var(--police-texte);
  font-size: var(--t-xs);
  font-weight: var(--graisse-forte);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-encre);
  margin-bottom: var(--e-3);
}
.section--marine .surtitre { color: #8FC3CE; }

.chapeau { font-size: var(--t-m); line-height: 1.55; color: var(--gris-texte); }
.section--marine .chapeau { color: #C6D5DE; }

.filet {
  width: 56px; height: 3px; background: var(--terracotta);
  border: 0; margin: var(--e-4) 0 var(--e-5);
}
.section-tete--centre .filet { margin-inline: auto; }

/* ==========================================================================
   4. Boutons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--e-2);
  font-family: var(--police-texte);
  font-size: var(--t-s);
  font-weight: var(--graisse-forte);
  line-height: 1;
  padding: 0.8125rem 1.375rem;
  min-height: 44px;                     /* cible tactile confortable */
  border: 1.5px solid transparent;
  border-radius: var(--rayon);
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition);
  text-align: center;
}
.btn--primaire { background: var(--terracotta-cta); color: var(--blanc); }
.btn--primaire:hover { background: #9E3F0F; color: var(--blanc); }
.btn--secondaire { background: transparent; color: var(--marine); border-color: var(--bordure-forte); }
.btn--secondaire:hover { background: var(--marine); color: var(--blanc); border-color: var(--marine); }
.btn--marine { background: var(--marine); color: var(--blanc); }
.btn--marine:hover { background: var(--marine-3); color: var(--blanc); }
.btn--clair { background: var(--blanc); color: var(--marine); border-color: var(--blanc); }
.btn--clair:hover { background: var(--teal-pale); border-color: var(--teal-pale); color: var(--marine); }
.btn--grand { padding: 1rem 1.75rem; font-size: var(--t-base); }

.btn--lien {
  min-height: 0; padding: 0; border: 0; background: none;
  color: var(--teal-encre); text-decoration: underline; font-weight: var(--graisse-forte);
}
.btn--lien:hover { color: var(--marine); }

.groupe-btn { display: flex; flex-wrap: wrap; gap: var(--e-3); align-items: center; }

/* ==========================================================================
   5. En-tête du site
   ========================================================================== */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: var(--blanc);
  border-bottom: 1px solid var(--bordure);
}
.entete__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--e-5);
  min-height: 72px;
  padding-block: var(--e-3);
}
.marque { display: flex; align-items: center; gap: var(--e-3); text-decoration: none; }
/* Logotype vectoriel (voir assets/identite/). Hauteur fixe, largeur automatique :
   le rapport d'aspect du fichier est conservé. */
.marque__logo { display: block; width: auto; height: 54px; }
.pied__logo { display: block; width: auto; height: 78px; margin-bottom: var(--e-4); }
.marque__monogramme {
  width: 38px; height: 38px; flex: none;
  border-radius: var(--rayon); background: var(--marine);
  display: grid; place-items: center;
  font-family: var(--police-titres); font-weight: var(--graisse-forte);
  font-size: 1.0625rem; color: var(--blanc); letter-spacing: 0.02em;
}
.marque__nom {
  font-family: var(--police-titres); font-weight: var(--graisse-forte);
  font-size: 1.1875rem; color: var(--encre); line-height: 1.1;
}
.marque__accroche {
  display: block; font-family: var(--police-texte); font-size: var(--t-xs);
  font-weight: var(--graisse-normale); color: var(--gris-texte); letter-spacing: 0;
}

.nav { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; align-items: center; gap: var(--e-5); }
}
.nav__liste { display: flex; gap: var(--e-5); list-style: none; margin: 0; padding: 0; }
.nav__lien {
  font-size: var(--t-s); font-weight: var(--graisse-medium);
  color: var(--texte); text-decoration: none;
  padding-block: var(--e-2); border-bottom: 2px solid transparent;
}
.nav__lien:hover { color: var(--marine); border-bottom-color: var(--teal); }
.nav__lien--actif { color: var(--marine); font-weight: var(--graisse-forte); border-bottom-color: var(--terracotta); }

.entete__actions { display: flex; align-items: center; gap: var(--e-3); margin-left: auto; flex-wrap: wrap; }

/* Téléphone dans l'en-tête : proposé seulement à partir de 1100 px, pour ne pas
   encombrer les petits écrans (audit externe du 11/10/2026 : le numéro n'était
   accessible que dans le pied de page, alors que beaucoup d'acheteurs publics
   décident par téléphone). */
.entete__tel {
  display: none;
  align-items: center; gap: var(--e-2);
  font-size: var(--t-s); font-weight: var(--graisse-medium);
  color: var(--marine); text-decoration: none; white-space: nowrap;
}
.entete__tel:hover { color: var(--teal-encre); text-decoration: underline; }
@media (min-width: 1100px) { .entete__tel { display: inline-flex; } }

/* Repli mobile : menu natif <details>, sans JavaScript */
.menu-mobile { position: relative; }
@media (min-width: 960px) { .menu-mobile { display: none; } }
.menu-mobile__bouton {
  list-style: none; display: inline-flex; align-items: center; gap: var(--e-2);
  padding: 0.625rem 0.875rem; border: 1.5px solid var(--bordure-forte);
  border-radius: var(--rayon); font-size: var(--t-s); font-weight: var(--graisse-forte);
  color: var(--marine); min-height: 44px;
}
.menu-mobile__bouton::-webkit-details-marker { display: none; }
.menu-mobile__panneau {
  position: absolute; right: 0; top: calc(100% + var(--e-2));
  min-width: 260px; background: var(--blanc);
  border: 1px solid var(--bordure); border-radius: var(--rayon-l);
  box-shadow: var(--ombre-2); padding: var(--e-3);
}
.menu-mobile__panneau ul { list-style: none; margin: 0; padding: 0; }
.menu-mobile__panneau a {
  display: block; padding: var(--e-3); border-radius: var(--rayon);
  text-decoration: none; color: var(--texte); font-weight: var(--graisse-medium);
}
.menu-mobile__panneau a:hover { background: var(--teal-pale); color: var(--marine); }

/* En-tête sur très petits écrans : bouton « Demander un devis » compact.
   Mesuré le 11/10/2026 à 390 px : l'en-tête débordait de 3 px (scrollbar
   horizontale parasite) à cause du couple bouton de menu + bouton d'action. */
@media (max-width: 560px) {
  .entete__inner { gap: var(--e-2); min-height: 64px; }
  .entete__actions { gap: var(--e-2); }
  .entete__actions .btn {
    padding: 0.6875rem 0.8125rem;
    font-size: var(--t-xs);
  }
  .menu-mobile__bouton { padding: 0.5rem 0.625rem; font-size: var(--t-xs); }
  /* Sur mobile, l'en-tête affiche le monogramme seul (voir header.php) : il faut
     qu'il reste compact pour cohabiter avec le bouton d'action et le menu. */
  .marque__logo { height: 44px; }
  .pied__logo { height: 64px; }
  .marque__monogramme { width: 34px; height: 34px; }
  .marque__nom { font-size: 1.0625rem; }
  .marque__accroche { font-size: 0.75rem; }
}

/* ==========================================================================
   6. Héros
   ========================================================================== */
.heros {
  background: var(--marine);
  color: var(--papier);
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.heros::after {                     /* motif discret : rappel de la « passerelle » */
  content: ""; position: absolute; inset-inline-end: -80px; inset-block-end: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,125,140,.38), transparent 70%);
  pointer-events: none;
}
.heros > .conteneur { position: relative; z-index: 1; }
.heros h1 { color: var(--blanc); max-width: 20ch; }
.heros .filet { margin-top: var(--e-5); }
.heros__texte { font-size: var(--t-m); color: #C6D5DE; max-width: 58ch; margin-top: var(--e-4); }
.heros__actions { margin-top: var(--e-6); }
/* Engagement de délai affiché sous les boutons du héros (audit externe du 11/10/2026 :
   un acheteur public veut savoir ce qui se passe APRÈS le clic). */
.heros__reassurance {
  display: flex; align-items: flex-start; gap: var(--e-2);
  margin-top: var(--e-4); font-size: var(--t-s); color: #BFD0DA; max-width: 62ch;
}
.heros__reassurance .icone { margin-top: 0.15em; }
.heros__note {
  margin-top: var(--e-6); padding-top: var(--e-4);
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: var(--t-s); color: #9FB4C2;
}

/* ==========================================================================
   7. Cartes
   ========================================================================== */
.carte {
  background: var(--fond-alt);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-l);
  padding: var(--e-5);
  transition: box-shadow var(--transition-lente), border-color var(--transition-lente), transform var(--transition-lente);
}
.carte--liee:hover { box-shadow: var(--ombre-2); border-color: var(--bordure-forte); transform: translateY(-2px); }
.carte--a-plat { background: transparent; border: 0; padding: 0; }
.carte__titre { font-size: var(--t-l); margin-bottom: var(--e-3); }
.carte__titre a { color: inherit; text-decoration: none; }
.carte__titre a:hover { color: var(--teal-encre); text-decoration: underline; }
.carte__texte { font-size: var(--t-s); color: var(--gris-texte); }
/* Liste des offres d'une gamme (cartes de l'accueil) : liens sobres, cibles tactiles ≥ 44 px. */
.liste-offres-gamme { list-style: none; margin: var(--e-4) 0 0; padding: 0; font-size: var(--t-s); }
.liste-offres-gamme li { border-top: 1px solid var(--bordure); }
.liste-offres-gamme li:last-child { border-bottom: 1px solid var(--bordure); }
.liste-offres-gamme a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--e-2);
  min-height: 44px; padding: var(--e-2) 0; color: var(--marine); text-decoration: none;
}
.liste-offres-gamme a::after { content: "→"; color: var(--teal); flex: none; transition: transform .15s ease; }
.liste-offres-gamme a:hover, .liste-offres-gamme a:focus-visible { color: var(--teal); text-decoration: underline; text-underline-offset: .2em; }
.liste-offres-gamme a:hover::after { transform: translateX(3px); }
.carte__pied { margin-top: var(--e-5); padding-top: var(--e-4); border-top: 1px solid var(--bordure); }
.carte__numero {
  font-family: var(--police-titres); font-size: 2.5rem; line-height: 1;
  color: var(--teal); opacity: .35; display: block; margin-bottom: var(--e-3);
}

/* Carte d'offre (gamme) */
.offre-meta {
  display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-4);
  margin-top: var(--e-4); font-size: var(--t-xs); color: var(--gris-texte);
}
.offre-meta span { display: inline-flex; align-items: center; gap: var(--e-1); }

/* Variante « fiche d'offre » (page dédiée) : repères clés en tête, lisibles d'un coup d'œil. */
.offre-meta--grande {
  margin-top: var(--e-6); padding: var(--e-4) var(--e-5);
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon);
  font-size: var(--t-s); color: var(--marine);
  gap: var(--e-3) var(--e-6);
}
.offre-meta--grande span { gap: var(--e-2); }
.offre-meta--grande strong {
  font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--teal);
}
/* Carte « étape suivante » : filet teal pour la distinguer des voisines de même gamme. */
.carte--accent { border-top: 4px solid var(--teal); }
/* Pictogramme dans le h1 d'une fiche : même ligne que le titre, taille maîtrisée. */
.page-offre .titre-page .icone { display: inline-flex; vertical-align: -0.12em; margin-right: var(--e-2); }
.page-offre .titre-page .icone > svg { width: .9em; height: .9em; }

/* ==========================================================================
   7bis. Fiches d'offre repliables
   Audit externe du 11/10/2026 : la page Offres atteignait 22 667 px de haut et
   ~4 800 mots avec les 12 fiches dépliées — « un mur » pour un acheteur pressé.
   Chaque fiche est désormais un <details> replié, avec la première ouverte.
   Élément natif : il fonctionne au clavier et sans JavaScript.
   ========================================================================== */
.fiche-offre {
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-l);
  background: var(--fond-alt);
  overflow: hidden;
}
.fiche-offre + .fiche-offre { margin-top: var(--e-4); }
.fiche-offre__resume {
  display: flex; align-items: center; gap: var(--e-3);
  padding: var(--e-5); cursor: pointer; list-style: none;
}
.fiche-offre__resume::-webkit-details-marker { display: none; }
.fiche-offre__resume:hover { background: var(--teal-pale); }
.fiche-offre__resume:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.fiche-offre__titre {
  flex: 1 1 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-3);
  font-family: var(--police-titres); font-weight: var(--graisse-titre);
  font-size: var(--t-l); line-height: 1.25; color: var(--encre);
}
.fiche-offre__indice {
  flex: 0 0 auto; font-size: var(--t-xs); font-weight: var(--graisse-forte);
  color: var(--teal-encre); white-space: nowrap;
}
.fiche-offre__indice::after { content: " ▾"; }
.fiche-offre[open] .fiche-offre__indice::after { content: " ▴"; }
.fiche-offre[open] .fiche-offre__indice { color: var(--gris-texte); }
.fiche-offre__corps { padding: 0 var(--e-5) var(--e-5); border-top: 1px solid var(--bordure); }
.fiche-offre__corps > :first-child { margin-top: var(--e-5); }
.fiche-offre__pst { margin: var(--e-5) 0 0; }

/* ==========================================================================
   7ter. Photographies (assets/photos/)
   Sources : donation Unsplash hébergée par Wikimedia Commons, TOUTES en CC0 —
   aucune attribution obligatoire, aucune contrainte sur les versions recadrées.

   Traitement de marque : un léger déssaturation (`saturate(.62)`) unifie des photos
   d'origines différentes et évite le rendu « banque d'images » qui décrédibilise un
   site de conseil. Les bandeaux reçoivent un voile marine : le texte doit rester
   lisible par-dessus la photo, quel que soit le cliché.
   ========================================================================== */
.bande-photo {
  position: relative; overflow: hidden; background: var(--marine);
  display: grid; align-items: center; padding-block: var(--e-9);
}
.bande-photo__image { position: absolute; inset: 0; }
.bande-photo__image picture { display: block; width: 100%; height: 100%; }
.bande-photo__image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.62) contrast(1.03);
}
.bande-photo__voile {
  position: absolute; inset: 0;
  /* Le voile garantit un fond assez sombre QUEL QUE SOIT le cliché. Calcul du pire
     cas (une photo entièrement blanche sous le voile le plus léger, opacité 0,80) :
     fond composé ≈ (62, 85, 106), soit un contraste de 7,8:1 avec le texte blanc,
     5,2:1 avec l'étiquette, 6,2:1 avec la note — tous au-dessus du seuil AA de 4,5:1.
     Avec un voile plus léger (0,62), la note tombait à 2,8:1 : non conforme. */
  background: linear-gradient(180deg, rgba(14,42,69,.88) 0%, rgba(14,42,69,.80) 50%, rgba(14,42,69,.88) 100%);
}
.bande-photo > .conteneur { position: relative; z-index: 1; }
.bande-photo__accroche {
  font-family: var(--police-titres); font-weight: var(--graisse-titre);
  font-size: var(--t-2xl); line-height: 1.2; color: var(--blanc);
  max-width: 34ch; margin: var(--e-4) 0 0;
}
.bande-photo__note {
  font-size: var(--t-s); color: #DCE7EE; max-width: 56ch; margin: var(--e-4) 0 0;
}
.surtitre--clair { color: #C3D6E0; }

/* Photographie en tête de carte : pleine largeur, coins épousant la carte */
.carte__photo {
  margin: calc(var(--e-5) * -1) calc(var(--e-5) * -1) var(--e-5);
  overflow: hidden;
  border-radius: calc(var(--rayon-l) - 1px) calc(var(--rayon-l) - 1px) 0 0;
}
.carte__photo img {
  display: block; width: 100%; height: 176px; object-fit: cover;
  filter: saturate(.62) contrast(1.03);
}
@media (min-width: 900px) { .carte__photo img { height: 200px; } }

/* ==========================================================================
   8. Badges et étiquettes
   ========================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: var(--e-1);
  font-size: var(--t-xs); font-weight: var(--graisse-forte);
  padding: 0.25rem 0.625rem; border-radius: var(--rayon-pilule);
  line-height: 1.4;
}
.badge--gamme { background: var(--marine); color: var(--blanc); letter-spacing: .04em; text-transform: uppercase; }
.badge--pst   { background: var(--teal-pale); color: var(--teal-encre); }
.badge--cofin { background: var(--terracotta-pale); color: #8A3710; }
.badge--neutre{ background: var(--gris-clair); color: var(--marine-2); }

/* ==========================================================================
   8bis. Pictogrammes (assets/icons/)
   Les SVG sont dessinés en `stroke="currentColor"` : ils prennent donc
   automatiquement la couleur du texte ou du bloc dans lequel ils sont posés.
   ========================================================================== */
.icone {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; color: var(--teal-encre);
}
.icone > svg { width: 1.4em; height: 1.4em; display: block; }
.icone--m > svg { width: 24px; height: 24px; }
.icone--l > svg { width: 32px; height: 32px; }
.icone--marine { color: var(--marine); }
.icone--clair { color: var(--papier); }
.icone--pastille {
  width: 46px; height: 46px;
  border-radius: var(--rayon);
  background: var(--teal-pale);
  color: var(--teal-encre);
  margin-bottom: var(--e-4);
}
.icone--pastille-terracotta { background: var(--terracotta-pale); color: #8A3710; }
/* Pastille teal : équilibre la palette (le terracotta était sur-représenté, le teal sous-utilisé
   — constat de l'audit d'identité du 11/10/2026). */
.icone--pastille-teal { background: var(--teal-pale); color: var(--teal-encre); }
/* Pictogramme d'accompagnement d'un titre ou d'une ligne de liste */
.avec-icone { display: flex; align-items: flex-start; gap: var(--e-3); }
.avec-icone > .icone { margin-top: 0.15em; }

/* ==========================================================================
   9. Encarts
   ========================================================================== */
.encart {
  border-left: 3px solid var(--teal);
  background: var(--teal-pale);
  padding: var(--e-5);
  border-radius: 0 var(--rayon) var(--rayon) 0;
}
.encart--cofin { border-left-color: var(--terracotta); background: var(--terracotta-pale); }
.encart--attention { border-left-color: var(--alerte); background: var(--alerte-pale); }
.encart__titre { font-family: var(--police-texte); font-weight: var(--graisse-forte); color: var(--encre); margin-bottom: var(--e-2); }
.encart p:last-child { margin-bottom: 0; }

/* ==========================================================================
   10. Listes
   ========================================================================== */
.liste-propres { list-style: none; margin: 0; padding: 0; }
.liste-propres li { position: relative; padding-left: 1.75rem; margin-bottom: var(--e-3); }
.liste-propres li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal);
}
.liste-numerotee { list-style: none; counter-reset: etape; margin: 0; padding: 0; }
.liste-numerotee li { counter-increment: etape; position: relative; padding-left: 3rem; margin-bottom: var(--e-5); }
.liste-numerotee li::before {
  content: counter(etape); position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--marine); color: var(--blanc);
  display: grid; place-items: center;
  font-size: var(--t-s); font-weight: var(--graisse-forte);
}

/* ==========================================================================
   11. Tableaux
   ========================================================================== */
.tableau { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.tableau caption {
  text-align: left; font-size: var(--t-xs); color: var(--gris-texte);
  padding-bottom: var(--e-3);
}
.tableau th, .tableau td {
  text-align: left; padding: var(--e-3) var(--e-4);
  border-bottom: 1px solid var(--bordure); vertical-align: top;
}
.tableau thead th {
  background: var(--marine); color: var(--blanc);
  font-family: var(--police-texte); font-weight: var(--graisse-forte);
  font-size: var(--t-xs); letter-spacing: .03em; text-transform: uppercase;
  border-bottom: 0;
}
.tableau tbody tr:nth-child(even) { background: rgba(220, 228, 230, .22); }
.tableau--defilant { overflow-x: auto; }

/* ==========================================================================
   12. Formulaires
   ========================================================================== */
.champ { margin-bottom: var(--e-5); }
.champ label { display: block; font-weight: var(--graisse-forte); font-size: var(--t-s); margin-bottom: var(--e-2); color: var(--encre); }
.champ .aide { display: block; font-size: var(--t-xs); color: var(--gris-texte); margin-bottom: var(--e-2); }
.champ input, .champ textarea, .champ select {
  width: 100%; padding: 0.75rem 0.875rem;
  background: var(--blanc);
  border: 1.5px solid var(--bordure-forte);
  border-radius: var(--rayon);
  font-size: var(--t-base);
}
.champ input:focus, .champ textarea:focus, .champ select:focus { border-color: var(--teal); }
.champ .obligatoire { color: var(--alerte); }

/* ==========================================================================
   12bis. Formulaire de contact (Contact Form 7)
   Les champs générés par Contact Form 7 portent un attribut `size="40"`, qui leur
   donne une largeur intrinsèque d'environ 393 px INDÉPENDANTE de leur conteneur :
   sans la règle `width: 100%` ci-dessous, le formulaire débordait de 21 px en
   390 px et de 91 px en 320 px (mesuré le 11/10/2026).
   ========================================================================== */
.wpcf7-form-control-wrap { display: block; }
.wpcf7 label {
  display: block; font-weight: var(--graisse-forte); font-size: var(--t-s);
  color: var(--encre); margin-bottom: var(--e-2);
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%; max-width: 100%;
  padding: 0.75rem 0.875rem;
  background: var(--blanc);
  /* Contraste de bordure corrigé le 11/10/2026 après audit externe : avec
     `--bordure-forte`, la bordure du champ sur fond blanc mesurait 1,59:1, très en
     dessous du seuil WCAG 1.4.11 (3:1). Le champ étant blanc sur fond blanc, seule
     la bordure délimite le contrôle : une personne malvoyante ne le distinguait pas.
     `--gris-texte` donne 6,92:1 sur blanc. */
  border: 1.5px solid var(--gris-texte);
  border-radius: var(--rayon);
  font-family: var(--police-texte);
  font-size: var(--t-base);
  line-height: 1.4;
}
/* Même correction pour les champs des maquettes hors Contact Form 7 */
.champ input, .champ textarea, .champ select { border-color: var(--gris-texte); }
.wpcf7 textarea { min-height: 9rem; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { border-color: var(--teal); }
.wpcf7 p { max-width: none; margin-bottom: var(--e-4); }

/* Bouton d'envoi : même apparence que les boutons du site */
.wpcf7 input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.8125rem 1.375rem;
  background: var(--terracotta-cta); color: var(--blanc);
  border: 1.5px solid transparent; border-radius: var(--rayon);
  font-family: var(--police-texte); font-size: var(--t-s); font-weight: var(--graisse-forte);
  cursor: pointer; transition: background var(--transition);
}
.wpcf7 input[type="submit"]:hover { background: #9E3F0F; }

/* Retour d'erreur lisible et non fondé sur la seule couleur */
.wpcf7-not-valid-tip { display: block; margin-top: var(--e-2); font-size: var(--t-xs); color: var(--alerte); font-weight: var(--graisse-forte); }
.wpcf7-not-valid { border-color: var(--alerte) !important; }
.wpcf7-response-output {
  margin-top: var(--e-4); padding: var(--e-4);
  border-radius: var(--rayon); border: 1.5px solid var(--bordure-forte);
  font-size: var(--t-s);
}
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--succes); background: #EAF3EE; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: var(--alerte); background: var(--alerte-pale); }
.wpcf7-spinner { margin-left: var(--e-3); }
/* Piège à robots de Contact Form 7 : ne pas laisser un champ masqué casser la mise en page */
.wpcf7 .hidden-fields-container { display: none; }

/* ==========================================================================
   13. Pied de page
   ========================================================================== */
.pied { background: var(--marine); color: #C6D5DE; padding-block: var(--e-8) var(--e-5); }
.pied a { color: #C6D5DE; text-decoration: none; }
.pied a:hover { color: var(--blanc); text-decoration: underline; }
.pied__grille { display: grid; gap: var(--e-6); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pied__titre {
  font-family: var(--police-texte); font-size: var(--t-xs);
  font-weight: var(--graisse-forte); letter-spacing: .08em; text-transform: uppercase;
  color: var(--blanc); margin-bottom: var(--e-4);
}
.pied__liste { list-style: none; margin: 0; padding: 0; font-size: var(--t-s); }
.pied__liste li { margin-bottom: var(--e-2); }
.pied__marque { font-family: var(--police-titres); font-size: var(--t-l); color: var(--blanc); }
.pied__accroche { font-size: var(--t-s); margin-top: var(--e-3); max-width: 32ch; }
.pied__bas {
  margin-top: var(--e-7); padding-top: var(--e-4);
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: var(--e-3) var(--e-5);
  justify-content: space-between; align-items: center;
  font-size: var(--t-xs);
}
.pied__legal { display: flex; flex-wrap: wrap; gap: var(--e-4); list-style: none; margin: 0; padding: 0; }

/* ==========================================================================
   14. Utilitaires
   ========================================================================== */
.texte-centre { text-align: center; }
.texte-doux { color: var(--gris-texte); }
.texte-petit { font-size: var(--t-s); }
.texte-tres-petit { font-size: var(--t-xs); }
.mt-0 { margin-top: 0; } .mt-4 { margin-top: var(--e-4); } .mt-6 { margin-top: var(--e-6); } .mt-7 { margin-top: var(--e-7); }
.mb-4 { margin-bottom: var(--e-4); } .mb-5 { margin-bottom: var(--e-5); } .mb-6 { margin-bottom: var(--e-6); }
.visuellement-cache {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pas-de-lecture { max-width: none; }

/* ==========================================================================
   15bis. Illustrations (assets/illustrations/)
   Dessins larges, affichés en <img> : ils se mettent en cache et se chargent
   à la demande. Ils n'ont pas de cadre propre : c'est le bloc qui les porte.
   ========================================================================== */
.illustration { display: block; width: 100%; height: auto; max-width: 100%; }
.illustration-figure { margin: 0; }
/* Dans une carte d'offre, l'illustration sert de repère visuel en tête de bloc */
.carte__illustration { margin: 0 0 var(--e-4); }
.carte__illustration .illustration { max-width: 190px; }
/* Bandeau de raison d'être : l'illustration ne doit pas écraser le texte */
.bloc-raison .illustration { max-width: 420px; margin-inline: auto; }

/* ==========================================================================
   16. Impression (fiches d'offre remises au client)
   ========================================================================== */
@media print {
  .entete, .menu-mobile, .heros__actions, .pied__bas { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .heros, .pied, .section--marine { background: #fff !important; color: #000 !important; }
  .section--marine h1, .section--marine h2, .section--marine p { color: #000 !important; }
  .carte { border: 1px solid #999; break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
}
