/* ==========================================================================
   Pluquet Franck — Électricité Générale
   Feuille de style principale (le socle grille/utilitaires est dans socle.css)
   Charte : noir #0d0d0d · vert logo #86C117 · blanc
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Police d'affichage (Optima Bold, reprise du logo)
   -------------------------------------------------------------------------- */
/* Le nom du fichier porte l'empreinte de son contenu : toute régénération de la
   police change l'URL, donc aucun navigateur ne peut servir une version périmée.
   Script de régénération : utils/reparer-optima-fr.py */
@font-face {
  font-family: 'Optima Display';
  src: url('../fonts/optima-bold.cf228153.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Variables
   -------------------------------------------------------------------------- */
:root {
  --noir:        #0d0d0d;
  --noir-2:      #161616;
  --noir-3:      #202020;
  --vert:        #86c117;
  --vert-clair:  #9dd830;
  --vert-fonce:  #6d9d10;
  --vert-pale:   #f2f8e6;
  --blanc:       #ffffff;
  --gris-fond:   #f6f7f4;
  --gris-bord:   #e6e8e1;
  --gris-texte:  #5f6660;
  --texte:       #1b1d1a;

  --ombre-s:  0 2px 10px rgba(13, 13, 13, .06);
  --ombre-m:  0 12px 32px rgba(13, 13, 13, .09);
  --ombre-l:  0 26px 60px rgba(13, 13, 13, .16);
  --ombre-vert: 0 12px 30px rgba(134, 193, 23, .32);

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;

  --nav-h: 84px;
  --transition: .35s cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
* { -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  overflow-x: clip;                 /* garde-fou anti-scroll horizontal */
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--texte);
  background: var(--blanc);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display-optima {
  font-family: 'Optima Display', 'Optima', 'Palatino Linotype', Georgia, serif;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.12;
  color: var(--noir);
}

h4, h5, h6 { font-weight: 700; letter-spacing: -.005em; }

a { color: inherit; text-decoration: none; transition: color .2s ease; }
img { max-width: 100%; height: auto; }
::selection { background: var(--vert); color: var(--noir); }

.container { max-width: 1240px; }

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

.lien-evitement {
  position: absolute;
  left: 0;
  top: -120px;                      /* décalage vertical : pas de scroll horizontal */
  z-index: 2000;
  background: var(--vert);
  color: var(--noir);
  padding: .75rem 1.25rem;
  font-weight: 600;
  border-radius: 0 0 var(--r-s) 0;
}
.lien-evitement:focus { top: 0; }

/* --------------------------------------------------------------------------
   4. Éléments transverses
   -------------------------------------------------------------------------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--gris { background: var(--gris-fond); }
.section--noir { background: var(--noir); color: rgba(255, 255, 255, .8); }
.section--noir h2, .section--noir h3 { color: var(--blanc); }

.surtitre {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--vert-fonce);
  margin-bottom: 1rem;
}
.surtitre::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--vert);
  border-radius: 2px;
}
.section--noir .surtitre { color: var(--vert-clair); }

.titre-section { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1rem; }
.chapo { font-size: 1.06rem; color: var(--gris-texte); max-width: 62ch; }
.section--noir .chapo { color: rgba(255, 255, 255, .78); }

.vert { color: var(--vert-fonce); }
.section--noir .vert, .hero .vert { color: var(--vert); }

/* Boutons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-weight: 600;
  font-size: .97rem;
  letter-spacing: .01em;
  padding: .85rem 1.6rem;
  border-radius: 100px;
  border: 2px solid transparent;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.btn:active { transform: translateY(1px); }

.btn-vert { background: var(--vert); color: var(--noir); box-shadow: var(--ombre-vert); }
.btn-vert:hover, .btn-vert:focus-visible { background: var(--vert-clair); color: var(--noir); transform: translateY(-2px); }

.btn-noir { background: var(--noir); color: var(--blanc); }
.btn-noir:hover, .btn-noir:focus-visible { background: var(--noir-3); color: var(--blanc); transform: translateY(-2px); }

.btn-fantome { background: transparent; color: var(--blanc); border-color: rgba(255, 255, 255, .35); }
.btn-fantome:hover, .btn-fantome:focus-visible { background: rgba(255, 255, 255, .1); border-color: var(--blanc); color: var(--blanc); }

.btn-contour { background: transparent; color: var(--noir); border-color: var(--gris-bord); }
.btn-contour:hover, .btn-contour:focus-visible { border-color: var(--noir); color: var(--noir); }

.btn .ic { flex: none; }

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--vert-fonce);
}
.lien-fleche .ic { transition: transform .25s ease; }
.lien-fleche:hover { color: var(--noir); }
.lien-fleche:hover .ic { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   5. Barre de navigation
   -------------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gris-bord);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.site-nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
/* Deux versions du logo : sombre sur fond blanc, blanche sur hero sombre */
.site-nav__logo { position: relative; display: block; }
.site-nav__logo img { height: 44px; width: auto; transition: height .3s ease, opacity .3s ease; }
.site-nav__logo .logo--clair { position: absolute; inset: 0 auto auto 0; opacity: 0; pointer-events: none; }

.site-nav__liens { display: flex; align-items: center; gap: 2.1rem; }
.site-nav__liens a {
  position: relative;
  font-weight: 600;
  font-size: .96rem;
  padding: .35rem 0;
  color: var(--texte);
}
.site-nav__liens a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--vert);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.site-nav__liens a:hover::after, .site-nav__liens a.is-actif::after { transform: scaleX(1); }
.site-nav__liens a.is-actif { color: var(--vert-fonce); }

.site-nav__actions { display: flex; align-items: center; gap: .85rem; }

.btn-tel {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--noir);
  white-space: nowrap;
}
.btn-tel .ic { color: var(--vert-fonce); }
.btn-tel:hover { color: var(--vert-fonce); }

.site-nav__burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--gris-bord);
  border-radius: 12px;
  background: transparent;
  padding: 0;
  position: relative;
}
.site-nav__burger span {
  position: absolute;
  left: 13px;
  width: 20px; height: 2px;
  background: var(--noir);
  border-radius: 2px;
  transition: transform .3s ease, opacity .25s ease, background .3s ease;
}
.site-nav__burger span:nth-child(1) { top: 17px; }
.site-nav__burger span:nth-child(2) { top: 22px; }
.site-nav__burger span:nth-child(3) { top: 27px; }
.site-nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Variante transparente au-dessus d'un hero sombre */
.site-nav--transparente:not(.est-collee) {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.site-nav--transparente:not(.est-collee) .site-nav__logo .logo--sombre { opacity: 0; }
.site-nav--transparente:not(.est-collee) .site-nav__logo .logo--clair  { opacity: 1; }
.site-nav--transparente:not(.est-collee) .site-nav__liens a,
.site-nav--transparente:not(.est-collee) .btn-tel { color: var(--blanc); }
.site-nav--transparente:not(.est-collee) .site-nav__liens a.is-actif,
.site-nav--transparente:not(.est-collee) .btn-tel .ic { color: var(--vert); }
.site-nav--transparente:not(.est-collee) .site-nav__burger { border-color: rgba(255, 255, 255, .35); }
.site-nav--transparente:not(.est-collee) .site-nav__burger span { background: var(--blanc); }

/* Progression de lecture : un trait vert sous la barre de navigation,
   étiré au défilement par assets/js/anim.js. */
.site-nav__progression {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--vert-fonce), var(--vert));
  pointer-events: none;
}

.site-nav.est-collee { box-shadow: var(--ombre-s); }
.site-nav.est-collee .site-nav__logo img { height: 38px; }

/* Menu mobile ------------------------------------------------------------ */
.menu-mobile {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 999;
  background: var(--noir);
  padding: 2rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}
.menu-mobile[hidden] { display: none; }
.menu-mobile nav { display: flex; flex-direction: column; }
.menu-mobile nav a {
  font-family: 'Optima Display', Georgia, serif;
  font-size: 1.9rem;
  color: var(--blanc);
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.menu-mobile nav a.is-actif { color: var(--vert); }
.menu-mobile__pied { display: flex; flex-direction: column; gap: .75rem; margin-top: 2.5rem; }
body.menu-ouvert { overflow: hidden; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 3rem;
  background: var(--noir);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 8, 8, .94) 0%, rgba(8, 8, 8, .82) 38%, rgba(8, 8, 8, .35) 72%, rgba(8, 8, 8, .5) 100%),
    linear-gradient(to top, rgba(8, 8, 8, .85), transparent 45%);
}
.hero .container { position: relative; z-index: 2; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 1rem .5rem .6rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  color: var(--blanc);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  backdrop-filter: blur(6px);
  margin-bottom: 1.6rem;
}
.hero__badge .puce {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--vert);
  color: var(--noir);
}

.hero h1 {
  color: var(--blanc);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  margin-bottom: 1.35rem;
  text-wrap: balance;
}
.hero__texte {
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 56ch;
  margin-bottom: 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 3rem; }

.hero__points { display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; }
.hero__points li {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255, 255, 255, .88);
  font-size: .95rem;
  font-weight: 500;
}
.hero__points .ic { color: var(--vert); flex: none; }

.hero__defiler {
  /* Centré par les marges et non par `transform` : la transformation est
     réservée aux animations d'apparition, qui l'écraseraient. */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.75rem;
  width: max-content;
  margin-inline: auto;
  z-index: 2;
  color: rgba(255, 255, 255, .72);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}
.hero__defiler::after {
  content: '';
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--vert), transparent);
  animation: defiler 2.2s ease-in-out infinite;
}
@keyframes defiler {
  0%, 100% { opacity: .25; transform: scaleY(.55); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

/* Hero interne (pages secondaires) --------------------------------------- */
.hero-page {
  position: relative;
  background: var(--noir);
  padding: calc(var(--nav-h) + 4.5rem) 0 4.5rem;
  overflow: hidden;
}
.hero-page__media { position: absolute; inset: 0; opacity: .38; }
.hero-page__media img { width: 100%; height: 100%; object-fit: cover; }
.hero-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, .95), rgba(10, 10, 10, .55));
}
.hero-page .container { position: relative; z-index: 2; }

/* Variante sans photo : pages légales, plan du site, erreur 404 */
.hero-page--sobre { padding: calc(var(--nav-h) + 3.5rem) 0 3.5rem; background: var(--noir-2); }
.hero-page--sobre::after { background: linear-gradient(90deg, rgba(10, 10, 10, .9), rgba(10, 10, 10, .35)); }
.hero-page h1 { color: var(--blanc); font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.hero-page p { color: rgba(255, 255, 255, .82); max-width: 62ch; margin: 0; }

.fil-ariane { margin-bottom: 1.2rem; font-size: .85rem; color: rgba(255, 255, 255, .72); }
.fil-ariane ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.fil-ariane li { display: flex; align-items: center; gap: .5rem; }
.fil-ariane li + li::before { content: '›'; color: rgba(255, 255, 255, .45); }
.fil-ariane a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.fil-ariane a:hover { color: var(--vert); }
.fil-ariane [aria-current] { color: var(--vert); }

/* Variante sur fond clair (pages légales, plan du site) */
.fil-ariane--clair { color: var(--gris-texte); }
.fil-ariane--clair li + li::before { color: var(--gris-bord); }
.fil-ariane--clair a { text-decoration-color: var(--gris-bord); }
.fil-ariane--clair a:hover,
.fil-ariane--clair [aria-current] { color: var(--vert-fonce); }

/* --------------------------------------------------------------------------
   7. Bandeau atouts
   -------------------------------------------------------------------------- */
.atouts { background: var(--noir); padding: 0; }
.atouts__grille {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .1);
  border-radius: var(--r-m);
  overflow: hidden;
  margin-top: -3.5rem;
  position: relative;
  z-index: 5;
  box-shadow: var(--ombre-l);
}
.atout {
  background: var(--noir-2);
  padding: 2rem 1.6rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: background .3s ease;
}
.atout:hover { background: var(--noir-3); }
.atout__ic {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(134, 193, 23, .14);
  color: var(--vert);
}
.atout h2, .atout h3 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; color: var(--blanc); margin: 0 0 .3rem; letter-spacing: -.005em; }
.atout p { font-size: .88rem; color: rgba(255, 255, 255, .72); margin: 0; line-height: 1.5; }

/* --------------------------------------------------------------------------
   8. Services
   -------------------------------------------------------------------------- */
.carte-service {
  height: 100%;
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-radius: var(--r-m);
  padding: 2rem 1.85rem 1.85rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.carte-service::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--vert);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.carte-service:hover { transform: translateY(-6px); box-shadow: var(--ombre-m); border-color: transparent; }
.carte-service:hover::before { transform: scaleX(1); }

.carte-service__ic {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--vert-pale);
  color: var(--vert-fonce);
  margin-bottom: 1.4rem;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.carte-service:hover .carte-service__ic { background: var(--vert); color: var(--noir); transform: rotate(-6deg); }
.carte-service h3 { font-size: 1.25rem; margin-bottom: .7rem; }
.carte-service p { color: var(--gris-texte); font-size: .95rem; margin-bottom: 1.15rem; }

.carte-service ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.carte-service li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .89rem;
  font-weight: 500;
  color: var(--texte);
}
.carte-service li .ic { color: var(--vert); flex: none; }

/* --------------------------------------------------------------------------
   9. À propos
   -------------------------------------------------------------------------- */
.apropos__media { position: relative; }
.apropos__media img {
  width: 100%;
  border-radius: var(--r-l);
  box-shadow: var(--ombre-m);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.apropos__carte {
  position: absolute;
  right: -8px;
  bottom: -28px;
  background: var(--noir);
  color: var(--blanc);
  padding: 1.4rem 1.7rem;
  border-radius: var(--r-m);
  box-shadow: var(--ombre-l);
  max-width: 260px;
}
.apropos__carte strong { display: block; font-size: 2.2rem; line-height: 1; color: var(--vert); font-family: 'Optima Display', Georgia, serif; }
.apropos__carte span { font-size: .85rem; color: rgba(255, 255, 255, .78); }

.liste-atouts { list-style: none; padding: 0; margin: 1.8rem 0 2.2rem; display: grid; gap: 1rem; }
.liste-atouts li { display: flex; gap: .9rem; align-items: flex-start; }
.liste-atouts .puce {
  flex: none;
  width: 26px; height: 26px;
  margin-top: 2px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--vert);
  color: var(--noir);
}
.liste-atouts strong { display: block; font-size: 1rem; }
.liste-atouts p { margin: 0; font-size: .92rem; color: var(--gris-texte); }

.encart-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding: 1.4rem 1.6rem;
  background: var(--gris-fond);
  border-left: 3px solid var(--vert);
  border-radius: 0 var(--r-s) var(--r-s) 0;
}
.encart-info div span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gris-texte); }
.encart-info div strong { font-size: 1rem; }

/* --------------------------------------------------------------------------
   9 bis. Spécialité IRVE + qualifications
   -------------------------------------------------------------------------- */
.irve__media { position: relative; }
.irve__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-l);
  box-shadow: var(--ombre-l);
}
.irve__sceau {
  position: absolute;
  left: -10px;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.35rem;
  border-radius: var(--r-m);
  background: var(--vert);
  color: var(--noir);
  box-shadow: var(--ombre-l);
}
.irve__sceau-ic {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(13, 13, 13, .1);
}
.irve__sceau strong { display: block; font-size: 1.02rem; line-height: 1.2; }
.irve__sceau span { font-size: .84rem; font-weight: 600; color: rgba(13, 13, 13, .72); }

/* Liste d'arguments posée sur un fond sombre */
.liste-atouts--clair strong { color: var(--blanc); }
.liste-atouts--clair p { color: rgba(255, 255, 255, .74); }

/* Bandeau des qualifications ---------------------------------------------- */
.bande-qualif {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.qualif {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 100%;
  padding: 1.15rem 1.3rem;
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-radius: var(--r-m);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.qualif:hover { transform: translateY(-4px); box-shadow: var(--ombre-m); border-color: transparent; }
.qualif__ic {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--vert-pale);
  color: var(--vert-fonce);
}
/* Logo officiel déposé dans img/logos/ : cadré sans déformation */
.qualif__logo {
  flex: none;
  width: 58px;
  max-height: 48px;
  object-fit: contain;
  object-position: center;
}
.qualif__txt strong { display: block; font-size: .97rem; line-height: 1.25; }
.qualif__txt span { display: block; font-size: .82rem; color: var(--gris-texte); line-height: 1.4; }

.note-qualif {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: 1.75rem 0 0;
  font-size: .87rem;
  color: var(--gris-texte);
}
.note-qualif .ic { flex: none; color: var(--vert-fonce); margin-top: 3px; }

/* --------------------------------------------------------------------------
   10. Galerie / réalisations
   -------------------------------------------------------------------------- */
.filtres { display: flex; flex-wrap: wrap; gap: .6rem; }
.filtre {
  border: 1px solid var(--gris-bord);
  background: var(--blanc);
  border-radius: 100px;
  min-height: 44px;
  padding: .6rem 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gris-texte);
  transition: all .25s ease;
}
.filtre:hover { border-color: var(--noir); color: var(--noir); }
.filtre.is-actif { background: var(--noir); border-color: var(--noir); color: var(--blanc); }

.carte-real {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--noir);
  border-radius: var(--r-m);
  overflow: hidden;
  text-align: left;
  aspect-ratio: 4 / 3;
  box-shadow: var(--ombre-s);
}
.carte-real img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.22, .61, .36, 1), opacity .4s ease;
}
.carte-real:hover img { transform: scale(1.07); opacity: .78; }

.carte-real__voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 8, .9) 0%, rgba(8, 8, 8, .35) 45%, transparent 72%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  color: var(--blanc);
}
.carte-real__cat {
  align-self: flex-start;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--vert);
  color: var(--noir);
  padding: .28rem .65rem;
  border-radius: 100px;
  margin-bottom: .7rem;
}
.carte-real__voile h3 { color: var(--blanc); font-size: 1.15rem; margin: 0 0 .25rem; }
.carte-real__lieu { display: flex; align-items: center; gap: .35rem; font-size: .85rem; color: rgba(255, 255, 255, .82); }
.carte-real__loupe {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  color: var(--blanc);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s ease, transform .3s ease;
}
.carte-real:hover .carte-real__loupe, .carte-real:focus-visible .carte-real__loupe { opacity: 1; transform: scale(1); }

.grille-real > [data-cat] { transition: opacity .3s ease; }
.grille-real > [data-cat].est-masque { display: none; }

/* Pastille « n photos » sur une vignette de chantier */
.carte-real__nb {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .7rem;
  border-radius: 100px;
  background: rgba(8, 8, 8, .62);
  backdrop-filter: blur(6px);
  color: var(--blanc);
  font-size: .78rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   10 bis. Page d'un chantier
   -------------------------------------------------------------------------- */
.hero-page--fiche .hero-page__media { opacity: .45; }

.fiche__cat {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .3rem .8rem;
  border-radius: 100px;
  background: var(--vert);
  color: var(--noir);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fiche__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, .85);
  font-size: .92rem;
}
.fiche__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.fiche__meta .ic { color: var(--vert); }

.fiche__resume {
  font-size: 1.15rem;
  color: var(--texte);
  border-left: 3px solid var(--vert);
  padding-left: 1.1rem;
  margin-bottom: 2rem;
  max-width: none;
}
.fiche__texte p { color: var(--gris-texte); font-size: 1.02rem; margin-bottom: 1.1rem; }
.fiche__texte p:last-child { margin-bottom: 0; }

.fiche__encart {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  background: var(--gris-fond);
  border: 1px solid var(--gris-bord);
  border-radius: var(--r-m);
  padding: 1.6rem;
}
.fiche__encart h2 { font-size: 1.25rem; margin-bottom: .6rem; }
.fiche__encart p { font-size: .92rem; color: var(--gris-texte); margin-bottom: 1.2rem; }

.fiche__infos { margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.fiche__infos div { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px dashed var(--gris-bord); padding-top: .8rem; }
.fiche__infos dt { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gris-texte); }
.fiche__infos dd { margin: 0; font-weight: 600; font-size: .92rem; text-align: right; }

/* Galerie du chantier ----------------------------------------------------- */
.galerie-fiche {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.galerie-fiche__vue {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: var(--noir);
  border-radius: var(--r-m);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  box-shadow: var(--ombre-s);
}
.galerie-fiche__vue img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1), opacity .3s ease;
}
.galerie-fiche__vue:hover img { transform: scale(1.06); opacity: .8; }
.galerie-fiche__loupe {
  position: absolute;
  inset: auto .7rem .7rem auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
  color: var(--blanc);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s ease, transform .3s ease;
}
.galerie-fiche__vue:hover .galerie-fiche__loupe,
.galerie-fiche__vue:focus-visible .galerie-fiche__loupe { opacity: 1; transform: scale(1); }

/* Navigation entre chantiers ---------------------------------------------- */
.fiche__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gris-bord);
}
.fiche__nav-lien { display: block; max-width: 32ch; }
.fiche__nav-lien span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gris-texte); }
.fiche__nav-lien strong { font-size: 1rem; }
.fiche__nav-lien:hover strong { color: var(--vert-fonce); }
.fiche__nav-lien--droite { text-align: right; margin-left: auto; }

/* Visionneuse (maison : plus de dépendance à Bootstrap) ------------------- */
.visionneuse {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  transition: opacity .25s ease;
}
.visionneuse.est-ouverte { opacity: 1; }
.visionneuse[hidden] { display: none; }
.visionneuse__fond { position: absolute; inset: 0; background: rgba(6, 6, 6, .88); }

.visionneuse__cadre {
  position: relative;
  z-index: 2;
  margin: 0;
  width: min(1100px, 100%);
  max-height: 100%;
  background: var(--noir-2);
  border-radius: var(--r-m);
  overflow: hidden;
  box-shadow: var(--ombre-l);
  transform: scale(.97);
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.visionneuse.est-ouverte .visionneuse__cadre { transform: scale(1); }
.visionneuse__cadre img {
  display: block;
  width: 100%;
  max-height: calc(100svh - 12rem);
  object-fit: contain;
  background: #000;
}

.visionneuse__corps { padding: 1.15rem 1.5rem 1.4rem; color: rgba(255, 255, 255, .72); }
.visionneuse__corps p { margin: 0; font-size: .95rem; }
.visionneuse__compteur { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--vert); margin-bottom: .35rem; }

.visionneuse__nav,
.visionneuse__fermer {
  position: absolute;
  z-index: 3;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: var(--blanc);
  transition: background .25s ease, color .25s ease;
}
.visionneuse__nav:hover,
.visionneuse__fermer:hover { background: var(--vert); color: var(--noir); }
.visionneuse__nav { top: 50%; transform: translateY(-50%); }
.visionneuse__nav--prec { left: .9rem; }
.visionneuse__nav--prec .ic { transform: rotate(180deg); }
.visionneuse__nav--suiv { right: .9rem; }
.visionneuse__nav[hidden] { display: none; }
.visionneuse__fermer { top: .9rem; right: .9rem; }

body.visionneuse-ouverte { overflow: hidden; }

/* --------------------------------------------------------------------------
   11. Zone d'intervention
   -------------------------------------------------------------------------- */
/* Pastilles des communes desservies.
   Réglées pour un fond clair, comme le reste du site, puis renversées à
   l'intérieur d'une section sombre : c'est la même mécanique que .chapo ou
   .surtitre. Avant, elles n'existaient qu'en version claire sur fond noir et
   devenaient invisibles dès qu'on les sortait d'une section --noir. */
.communes { display: flex; flex-wrap: wrap; gap: .55rem; }
.communes span, .communes a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border-radius: 100px;
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  font-size: .88rem;
  color: var(--texte);
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.communes span:hover, .communes a:hover { border-color: var(--vert); color: var(--vert-fonce); }
.communes .ic { color: var(--vert-fonce); }

.section--noir .communes span,
.section--noir .communes a {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .88);
}
.section--noir .communes span:hover,
.section--noir .communes a:hover { border-color: var(--vert); color: var(--blanc); }
.section--noir .communes .ic { color: inherit; }

.rayon {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(134, 193, 23, .12), rgba(134, 193, 23, .03) 55%, transparent 72%);
  text-align: center;
  padding: 2rem;
  max-width: 340px;
  margin-inline: auto;
}
/* Le liseré pointillé vit dans son propre élément : GSAP le fait tourner
   lentement sans emporter le texte avec lui. */
.rayon__cercle {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(134, 193, 23, .45);
  border-radius: 50%;
  pointer-events: none;
}
.rayon > div { position: relative; }
.rayon strong {
  display: block;
  font-family: 'Optima Display', Georgia, serif;
  font-size: 3.6rem;
  color: var(--vert);
  line-height: 1;
  margin-bottom: .5rem;
}
.rayon strong span { font-size: inherit; color: inherit; }        /* compteur GSAP */
.rayon .rayon__legende { color: rgba(255, 255, 255, .82); font-size: .95rem; }

/* Le cercle est pensé pour une section sombre : son chiffre vert et sa légende
   blanche ont besoin d'un fond noir. Ce modificateur le lui donne, ce qui
   permet de le poser sur une section claire, comme un médaillon. */
.rayon--noir {
  background-color: var(--noir);
  box-shadow: var(--ombre-l);
}

/* --------------------------------------------------------------------------
   12. Appel à l'action
   -------------------------------------------------------------------------- */
.cta { position: relative; padding: clamp(4rem, 8vw, 6.5rem) 0; background: var(--noir); overflow: hidden; }
.cta__media { position: absolute; inset: 0; opacity: .3; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 10, .92), rgba(10, 10, 10, .6)); }
.cta .container { position: relative; z-index: 2; }
.cta h2 { color: var(--blanc); font-size: clamp(1.9rem, 4vw, 2.9rem); }
.cta p { color: rgba(255, 255, 255, .82); }

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */
.carte-contact {
  height: 100%;
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-radius: var(--r-m);
  padding: 1.9rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.carte-contact:hover { transform: translateY(-4px); box-shadow: var(--ombre-m); }
.carte-contact__ic {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--vert-pale);
  color: var(--vert-fonce);
  margin-bottom: 1.1rem;
}
.carte-contact h2, .carte-contact h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.carte-contact p, .carte-contact a { color: var(--gris-texte); font-size: .95rem; margin: 0; }
.carte-contact a.fort { color: var(--noir); font-weight: 700; font-size: 1.12rem; }
.carte-contact a.fort:hover { color: var(--vert-fonce); }

.formulaire {
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-radius: var(--r-l);
  padding: clamp(1.6rem, 4vw, 2.75rem);
  box-shadow: var(--ombre-s);
}
.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.form-control, .form-select {
  border: 1px solid var(--gris-bord);
  border-radius: var(--r-s);
  padding: .8rem 1rem;
  font-size: .97rem;
  background: var(--gris-fond);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--vert);
  background: var(--blanc);
  box-shadow: 0 0 0 4px rgba(134, 193, 23, .18);
}
.form-control::placeholder { color: #a0a6a0; }
.champ-piege {                       /* piège à robots : masqué sans décalage négatif */
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.alerte {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: 1.1rem 1.3rem;
  border-radius: var(--r-s);
  margin-bottom: 1.75rem;
  font-size: .95rem;
}
.alerte--ok  { background: var(--vert-pale); border: 1px solid rgba(134, 193, 23, .45); color: #3d5c06; }
.alerte--ko  { background: #fdecec; border: 1px solid #f3c2c2; color: #8c2020; }
.alerte .ic { flex: none; margin-top: 2px; }

.horaires { list-style: none; padding: 0; margin: 0; }
.horaires li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px dashed var(--gris-bord);
  font-size: .94rem;
}
.horaires li:last-child { border-bottom: 0; }
.horaires li.est-ferme { color: #b23b3b; }
.horaires li strong { font-weight: 600; }

.cadre-carte {
  position: relative;
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--gris-fond) repeating-linear-gradient(45deg, rgba(134, 193, 23, .05) 0 12px, transparent 12px 24px);
  border: 1px solid var(--gris-bord);
}
.carte-osm {
  border: 0;
  display: block;
  width: 100%;
  height: 420px;
  filter: grayscale(.35) contrast(1.05);
}

/* --------------------------------------------------------------------------
   14. Pied de page
   -------------------------------------------------------------------------- */
.pied { background: var(--noir); color: rgba(255, 255, 255, .74); padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem; }
.pied__logo { height: 52px; width: auto;   margin-bottom: 1.25rem; }
.pied__texte { font-size: .92rem; max-width: 42ch; }
.pied__tel { display: inline-flex; align-items: center; gap: .55rem; color: var(--blanc); font-weight: 700; font-size: 1.15rem; margin-top: .75rem; }
.pied__tel .ic { color: var(--vert); }
.pied__tel:hover { color: var(--vert); }

.pied__titre { font-family: 'Inter', sans-serif; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blanc); margin-bottom: 1.1rem; }
.pied__liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .15rem; font-size: .92rem; }
.pied__liste a { display: inline-block; padding: .4rem 0; }
.pied__liste a:hover { color: var(--vert); }
.pied__liste--coord li { display: flex; gap: .6rem; align-items: flex-start; }
.pied__liste--coord .ic { flex: none; color: var(--vert); margin-top: 3px; }

.pied__bas {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  font-size: .82rem;
}
.pied__bas p { margin: 0; }
.pied__legal { color: rgba(255, 255, 255, .62); }

.pied__conception { color: rgba(255, 255, 255, .62); margin: 0; }
.pied__conception a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); font-weight: 600; }
.pied__conception a:hover { color: var(--vert); }

/* Bouton d'appel flottant (mobile) --------------------------------------- */
.tel-flottant {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.35rem;
  border-radius: 100px;
  background: var(--vert);
  color: var(--noir);
  font-weight: 700;
  box-shadow: var(--ombre-vert);
}
.tel-flottant:hover { color: var(--noir); }
body.menu-ouvert .tel-flottant { display: none !important; }

/* --------------------------------------------------------------------------
   Bandeau de consentement aux cookies
   Invisible par défaut : il n'apparaît que si le script de inc/header.php a
   posé « demande-consentement » sur <html>, c'est-à-dire tant que le visiteur
   n'a pas répondu. Écrit ainsi, plutôt qu'en JavaScript, il est peint avec le
   reste de la page et ne surgit pas trois secondes après.
   -------------------------------------------------------------------------- */
.bandeau-cookies { display: none; }

.demande-consentement .bandeau-cookies {
  display: block;
  position: fixed;
  z-index: 950;                 /* au-dessus du bouton d'appel (900) */
  left: 1rem;
  bottom: 1rem;
  width: min(25rem, calc(100vw - 2rem));
  padding: 1.15rem 1.25rem 1.25rem;
  border-radius: 14px;
  background: var(--noir);
  color: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 45px -18px rgba(0, 0, 0, .65);
}

.bandeau-cookies__texte {
  margin: 0 0 1rem;
  font-size: .88rem;
  line-height: 1.55;
}
.bandeau-cookies__texte a { color: var(--vert-clair); text-decoration: underline; }
.bandeau-cookies__texte a:hover { color: var(--blanc); }

.bandeau-cookies__actions { display: flex; flex-wrap: wrap; gap: .55rem; }

/* Boutons resserrés : à taille normale, « Continuer sans accepter » passerait
   à la ligne sur un téléphone et déséquilibrerait les deux choix. */
.bandeau-cookies .btn {
  flex: 1 1 auto;
  padding: .6rem 1.05rem;
  font-size: .85rem;
}

/* Sur téléphone, le bandeau occupe le bas de l'écran, exactement là où se
   trouve le bouton d'appel flottant. Il est masqué le temps de la réponse :
   c'est une seule frappe, et le numéro reste dans l'en-tête. */
@media (max-width: 991.98px) {
  .demande-consentement .tel-flottant { display: none; }
}

/* --------------------------------------------------------------------------
   15. Animations d'apparition
   État initial posé en CSS (uniquement si JavaScript est actif, d'où le « .js »),
   puis :
     — GSAP (assets/js/anim.js) prend la main dès qu'il est chargé, et la classe
       `gsap-actif` coupe les transitions ci-dessous pour éviter que les deux
       moteurs n'animent la même propriété en même temps ;
     — sinon, main.js ajoute la classe `est-visible` et ce sont les transitions
       CSS qui font le travail.
   -------------------------------------------------------------------------- */
.js .anim,
.js .anim-hero,
.js [data-anim-groupe] > * {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s cubic-bezier(.22, .61, .36, 1),
              transform .8s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}

.js .est-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* GSAP est aux commandes : plus aucune transition sur ces propriétés. */
.gsap-actif .anim,
.gsap-actif .anim-hero,
.gsap-actif [data-anim-groupe] > * { transition: none; }

/* Titres animés mot à mot : chaque mot monte derrière un cache.
   Le petit débord bas/haut laisse passer les jambages (g, j, p, y) et les
   accents des majuscules. */
.mot-masque {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: .12em .02em .14em;
  margin: -.12em -.02em -.14em;
}
.mot { display: inline-block; will-change: transform; }

/* Repli : pas de JavaScript, ou animations désactivées → tout est visible. */
body.anim-prete .anim:not(.est-visible),
body.anim-prete .anim-hero:not(.est-visible),
body.anim-prete [data-anim-groupe] > *:not(.est-visible) { transition-delay: 0s; }

/* Réapparition d'une vignette après un changement de filtre */
@keyframes reapparait {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.reapparait { animation: reapparait .45s cubic-bezier(.22, .61, .36, 1) both; }

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .atouts__grille { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991.98px) {
  :root { --nav-h: 72px; }
  .site-nav__liens { display: none; }
  .site-nav__burger { display: block; }
  .site-nav__logo img { height: 38px; }
  .btn-tel span { display: none; }
  .btn-tel {
    width: 46px; height: 46px;
    justify-content: center;
    border: 1px solid var(--gris-bord);
    border-radius: 12px;
  }
  .site-nav--transparente:not(.est-collee) .btn-tel { border-color: rgba(255, 255, 255, .35); }
  .apropos__media { margin-bottom: 3rem; }
  .apropos__carte { right: 1rem; bottom: -20px; }
  .irve__media { margin-bottom: 2.5rem; }
  .irve__sceau { left: 1rem; bottom: -20px; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 5rem); padding-bottom: 5rem; }
  .hero__defiler { display: none; }
  .pied { padding-bottom: 6rem; }
}

@media (max-width: 575.98px) {
  .atouts__grille { grid-template-columns: 1fr; margin-top: -2rem; }
  .hero__actions .btn { width: 100%; }
  .hero__points { gap: .9rem 1.5rem; }
  .encart-info { gap: 1rem; }
  .irve__sceau { left: .75rem; padding: .8rem 1rem; gap: .65rem; }
  .irve__sceau-ic { width: 36px; height: 36px; }
  .visionneuse__corps { padding: 1.15rem 1.25rem 1.4rem; }
}

/* --------------------------------------------------------------------------
   17. Confort de lecture / impression
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .anim,
  .js .anim-hero,
  .js [data-anim-groupe] > * { opacity: 1 !important; transform: none !important; }
}

/* Filet de sécurité : si le script ne se charge pas, rien ne doit rester
   invisible (voir le petit script de secours dans inc/header.php). */
.anim-secours .anim,
.anim-secours .anim-hero,
.anim-secours [data-anim-groupe] > *,
.anim-secours .mot { opacity: 1 !important; transform: none !important; }

@media print {
  .site-nav, .menu-mobile, .tel-flottant, .hero__defiler { display: none !important; }
  body { color: #000; }
  .section { padding: 1.5rem 0; }
}

/* --------------------------------------------------------------------------
   18. Pages de prestation, questions fréquentes et pages de texte
   -------------------------------------------------------------------------- */

/* Carte de prestation cliquable (accueil et liste des prestations) --------- */
a.carte-service { display: block; color: inherit; }
a.carte-service:hover h3 { color: var(--vert-fonce); }
.carte-service__lien {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.15rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--vert-fonce);
}
.carte-service__lien .ic { transition: transform .25s ease; }
a.carte-service:hover .carte-service__lien .ic { transform: translateX(5px); }

/* Corps d'une page de prestation ------------------------------------------ */
.presta__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-l);
  box-shadow: var(--ombre-m);
}
.presta__corps h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.6rem 0 1rem; }
.presta__corps h2:first-child { margin-top: 0; }
.presta__corps p { color: var(--gris-texte); font-size: 1.02rem; margin-bottom: 1.1rem; max-width: 68ch; }

.presta__inclus {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.presta__inclus li {
  background: var(--gris-fond);
  border: 1px solid var(--gris-bord);
  border-left: 3px solid var(--vert);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  padding: 1.1rem 1.25rem;
}
.presta__inclus strong { display: block; margin-bottom: .25rem; font-size: 1rem; }
.presta__inclus span { font-size: .9rem; color: var(--gris-texte); }

.presta__autres { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.presta__autres a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px dashed var(--gris-bord);
  font-size: .93rem;
  font-weight: 600;
}
.presta__autres a:hover { color: var(--vert-fonce); }
.presta__autres .ic { flex: none; color: var(--vert); }

/* Questions fréquentes ----------------------------------------------------- */
.faq { display: grid; gap: .75rem; max-width: 76ch; }
.faq details {
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-radius: var(--r-m);
  padding: 0 1.35rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq details[open] { border-color: transparent; box-shadow: var(--ombre-m); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 11px; height: 11px;
  border-right: 2px solid var(--vert-fonce);
  border-bottom: 2px solid var(--vert-fonce);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .3s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq p { margin: 0 0 1.15rem; color: var(--gris-texte); font-size: .97rem; }
.section--gris .faq details { background: var(--blanc); }

/* Pages de texte : mentions légales, données personnelles, plan du site ---- */
.page-texte { max-width: 74ch; }
.page-texte h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 2.75rem 0 .9rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--gris-bord);
}
.page-texte h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.page-texte h3 { font-family: 'Inter', sans-serif; font-size: 1.05rem; margin: 1.6rem 0 .5rem; }
.page-texte p,
.page-texte li { color: var(--gris-texte); }
.page-texte p { margin-bottom: 1rem; }
.page-texte ul { padding-left: 1.15rem; margin-bottom: 1.25rem; }
.page-texte li { margin-bottom: .45rem; }
.page-texte a { color: var(--vert-fonce); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.page-texte a:hover { color: var(--noir); }
.page-texte strong { color: var(--texte); }

.fiche-legale {
  display: grid;
  gap: .1rem;
  margin: 0 0 1.5rem;
  border: 1px solid var(--gris-bord);
  border-radius: var(--r-m);
  overflow: hidden;
}
.fiche-legale > div {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  padding: .85rem 1.15rem;
  background: var(--gris-fond);
  border-bottom: 1px solid var(--gris-bord);
}
.fiche-legale > div:last-child { border-bottom: 0; }
.fiche-legale dt { flex: 0 0 210px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gris-texte); }
.fiche-legale dd { flex: 1 1 260px; margin: 0; font-weight: 600; color: var(--texte); }
.a-completer {
  display: inline-block;
  background: #fff4d6;
  border: 1px dashed #d8a600;
  border-radius: 6px;
  padding: .05rem .5rem;
  font-weight: 600;
  color: #7a5c00;
  font-size: .92em;
}

/* Plan du site ------------------------------------------------------------- */
.plan-colonnes { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plan-colonnes h2 { font-size: 1.2rem; margin-bottom: .75rem; }
.plan-colonnes ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.plan-colonnes a { display: inline-block; padding: .45rem 0; font-weight: 600; }
.plan-colonnes a:hover { color: var(--vert-fonce); }

/* Pied de page : réseaux et liens légaux ---------------------------------- */
.pied__reseaux { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.pied__reseaux a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .9rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
}
.pied__reseaux a:hover { border-color: var(--vert); color: var(--vert); }

.pied__legal-liens { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.pied__legal-liens a { padding: .25rem 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .25); }
.pied__legal-liens a:hover { color: var(--vert); }

/* Vignettes masquées par un filtre ---------------------------------------- */
[data-cat].est-masque { display: none; }

@media (max-width: 767.98px) {
  .fiche-legale dt { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   Blog : liste des conseils et page d'un article
   -------------------------------------------------------------------------- */

/* --- Carte d'un article dans la liste ------------------------------------- */
.carte-article { height: 100%; }
.carte-article__lien {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--gris-bord);
  border-radius: 16px;
  background: var(--blanc);
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.carte-article__lien:hover,
.carte-article__lien:focus-visible {
  transform: translateY(-4px);
  border-color: var(--vert);
  box-shadow: 0 22px 45px -30px rgba(13, 13, 13, .45);
  color: inherit;
}

.carte-article__media { display: block; overflow: hidden; background: var(--gris-fond); }
.carte-article__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  transition: transform .4s ease;
}
.carte-article__lien:hover .carte-article__media img { transform: scale(1.04); }

.carte-article__corps {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
  padding: 1.35rem 1.4rem 1.5rem;
}
.carte-article__date {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vert-fonce);
}
.carte-article__titre { font-size: 1.16rem; line-height: 1.32; margin: 0; }
.carte-article__chapo { font-size: .92rem; line-height: 1.6; color: var(--gris-texte); }
.carte-article__lire {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: auto;
  padding-top: .6rem;
  font-weight: 700;
  font-size: .9rem;
  color: var(--vert-fonce);
}
.carte-article__lien:hover .carte-article__lire { gap: .7rem; }

/* --- Page d'un article ----------------------------------------------------- */
.article__meta { font-size: .9rem; }

/* Une colonne de texte étroite : au-delà de 70 caractères par ligne, l'œil
   perd la ligne suivante. C'est la seule mesure qui compte pour un article. */
.article-corps { max-width: 46rem; }

/* --- Deux colonnes : l'article et « Lire aussi » --------------------------- */
.article-grille { display: grid; gap: clamp(2rem, 4vw, 3.5rem); justify-content: center; }

/* Sans colonne latérale (un seul article publié), l'article reste centré. */
.article-grille--seule .article-corps { margin-inline: auto; }

@media (min-width: 1000px) {
  .article-grille { grid-template-columns: minmax(0, 46rem) 19rem; align-items: start; }
  .article-grille--seule { grid-template-columns: minmax(0, 46rem); }
}

.article-cote { display: grid; gap: 1.25rem; align-content: start; }

/* Elle suit la lecture : un article se lit long, et la colonne disparaîtrait
   dès le deuxième écran. Collante seulement sur les écrans assez hauts pour
   la contenir en entier, sinon son bas deviendrait inaccessible. */
@media (min-width: 1000px) and (min-height: 720px) {
  .article-cote { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
}

.article-cote__bloc {
  padding: 1.25rem 1.35rem 1.4rem;
  border: 1px solid var(--gris-bord);
  border-radius: 16px;
  background: var(--blanc);
}

.article-cote__titre {
  margin: 0 0 .9rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--vert-fonce);
}

.article-cote__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }

.article-cote__liste a {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .6rem;
  margin: 0 -.6rem;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.article-cote__liste a:hover,
.article-cote__liste a:focus-visible { background: var(--vert-pale); color: var(--noir); }

.article-cote__vignette { flex: none; width: 60px; }
.article-cote__vignette img {
  display: block;
  width: 60px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
}

.article-cote__texte { font-size: .88rem; font-weight: 600; line-height: 1.35; }

.article-cote__tous {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  font-size: .86rem;
}

/* Bloc devis : le même appel à l'action que le bas de l'article, mais toujours
   visible pendant la lecture. */
.article-cote__bloc--devis { background: var(--noir); border-color: var(--noir); color: rgba(255, 255, 255, .8); }
.article-cote__bloc--devis .article-cote__titre { color: var(--vert); font-size: 1rem; letter-spacing: 0; text-transform: none; }
.article-cote__bloc--devis p { margin: 0 0 1rem; font-size: .88rem; line-height: 1.55; }
.article-cote__bloc--devis .btn { width: 100%; justify-content: center; }

.article-cote__tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: .7rem;
  color: var(--blanc);
  font-weight: 700;
  text-decoration: none;
}
.article-cote__tel:hover { color: var(--vert-clair); }

.article-corps__illustration { margin: 0 0 2.5rem; }
.article-corps__illustration img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border-radius: 16px;
}

/* Encart de rappel en fin d'article : c'est lui qui transforme un lecteur
   venu de Google en demande de devis. */
.article-encart {
  margin-top: 3rem;
  padding: 1.6rem 1.7rem 1.75rem;
  border: 1px solid var(--gris-bord);
  border-left: 4px solid var(--vert);
  border-radius: 0 16px 16px 0;
  background: var(--vert-pale);
}
.article-encart p { margin: 0 0 1.1rem; }

/* --- Article précédent / suivant ------------------------------------------- */
.article-nav { display: grid; gap: 1rem; }
@media (min-width: 720px) { .article-nav { grid-template-columns: 1fr 1fr; } }

.article-nav__lien {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--gris-bord);
  border-radius: 14px;
  background: var(--blanc);
  color: inherit;
  text-decoration: none;
  transition: border-color .25s ease, transform .25s ease;
}
.article-nav__lien:hover, .article-nav__lien:focus-visible {
  border-color: var(--vert);
  transform: translateY(-2px);
  color: inherit;
}
/* Le lien « suivant » se cale à droite, même quand il est seul. */
.article-nav__lien--suiv { text-align: right; grid-column: 2; }
@media (max-width: 719.98px) { .article-nav__lien--suiv { grid-column: auto; text-align: left; } }

.article-nav__sens {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gris-texte);
}
.article-nav__titre { font-weight: 700; line-height: 1.35; }

/* --------------------------------------------------------------------------
   Pages par commune (« Électricien à <ville> ») et zone d'intervention
   -------------------------------------------------------------------------- */
.villes-grille {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.carte-ville {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--noir);
  box-shadow: var(--ombre-s);
  color: var(--blanc);
}
.carte-ville img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.22, .61, .36, 1), opacity .4s ease;
}
.carte-ville:hover img { transform: scale(1.07); opacity: .8; }
.carte-ville__voile {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(8, 8, 8, .9) 0%, rgba(8, 8, 8, .35) 50%, transparent 78%);
}
.carte-ville__cp {
  align-self: flex-start;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  background: var(--vert);
  color: var(--noir);
  padding: .25rem .6rem;
  border-radius: 100px;
  margin-bottom: .6rem;
}
.carte-ville h3 { color: var(--blanc); font-size: 1.1rem; margin: 0 0 .3rem; }
.carte-ville__lien {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .82rem; font-weight: 600; color: var(--vert-clair);
  transition: gap .25s ease;
}
.carte-ville:hover .carte-ville__lien { gap: .6rem; }
.carte-ville--sans-page { background: var(--noir-2); }
.carte-ville--sans-page .carte-ville__voile { background: none; }

.ville__quartiers {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: flex; flex-wrap: wrap; gap: .55rem;
}
.ville__quartiers li {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem 1rem;
  border-radius: 100px;
  background: var(--gris-clair, #f3f4f2);
  border: 1px solid rgba(0, 0, 0, .06);
  font-size: .9rem;
  color: var(--noir);
}
.ville__quartiers .ic { color: var(--vert-fonce); }

.section--noir .liste-atouts strong { color: var(--blanc); }
.section--noir .liste-atouts p { color: rgba(255, 255, 255, .72); }

/* Photo de la commune en tête d'article (page « Électricien à <ville> ») */
.ville__photo {
  margin: 0 0 2.2rem;
  border-radius: var(--r-m);
  overflow: hidden;
  box-shadow: var(--ombre-s);
  background: var(--noir);
}
.ville__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.ville__photo figcaption {
  padding: .6rem 1rem;
  font-size: .82rem;
  color: rgba(255, 255, 255, .75);
  background: var(--noir);
}
