/* ==========================================================================
   NBL ELEC — feuille de style principale
   Palette : vert profond (écologie) + cuivre (le fil électrique)
   Typo    : Archivo (titres) / IBM Plex Sans (texte) / IBM Plex Mono (données)
   ========================================================================== */

:root {
  --nuit:        #1A2026;
  --ardoise:     #353D47;
  --ardoise-clair:#454F5B;
  --vert:        #679C2B;
  --vert-fonce:  #4F7A1F;
  --vert-clair:  #8CC44F;
  --craie:       #F2F4F0;
  --papier:      #FBFCFA;
  --brume:       #97A3AB;
  --encre:       #1E262C;
  --ligne:       rgba(151, 163, 171, .28);
  --ligne-sombre:rgba(26, 32, 38, .12);

  --display: "Archivo", system-ui, sans-serif;
  --texte:   "IBM Plex Sans", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  --max: 1180px;
  --gouttiere: clamp(1.25rem, 4vw, 3rem);
  --rythme: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 1.65rem + 2.9vw, 3.85rem); }
h2 { font-size: clamp(1.85rem, 1.35rem + 2.1vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem); letter-spacing: -.015em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.section { padding-block: var(--rythme); }
.section--sombre { background: var(--nuit); color: var(--craie); }
.section--ardoise  { background: var(--ardoise); color: var(--craie); }
.section--craie  { background: var(--craie); }

/* --- Eyebrow : reprend le langage des repères d'un schéma électrique ------ */
.repere {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--vert);
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.4rem;
}
.repere::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--vert);
  flex: none;
}
.repere::after {
  content: "";
  height: 1px;
  flex: 1;
  background: currentColor;
  opacity: .3;
  max-width: 90px;
}

/* --- Boutons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--texte);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .005em;
  padding: .95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--vert { background: var(--vert-fonce); color: #FFF; }
.btn--vert:hover { background: var(--vert); }

.btn--sombre { background: var(--ardoise); color: var(--craie); }
.btn--sombre:hover { background: var(--ardoise-clair); }

.btn--fantome {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
  opacity: .85;
}
.btn--fantome:hover { opacity: 1; }

.btn--large { padding: 1.1rem 2rem; font-size: 1rem; }

/* --- En-tête ------------------------------------------------------------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 252, 250, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne-sombre);
}
.entete__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 100px;
}
.marque {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: .01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .1rem;
  margin-right: auto;
}
.marque__texte { display: inline-flex; align-items: baseline; }
.marque__logo { height: 36px; width: auto; }
.marque__eclair { color: var(--vert); }

/* Décalage sous l'en-tête collant quand on arrive par une ancre */
[id] { scroll-margin-top: 114px; }

.nav { display: flex; align-items: center; gap: 1.45rem; }
.nav a {
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  padding-block: .35rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--vert); }
.nav a[aria-current="page"] { border-bottom-color: var(--vert); }

.entete .btn { padding: .7rem 1.25rem; font-size: .9rem; }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--ligne-sombre);
  border-radius: 2px;
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--encre);
  position: relative;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 1.5px; background: var(--encre);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }

@media (max-width: 860px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    inset: 100px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--papier);
    border-bottom: 1px solid var(--ligne-sombre);
    padding: .5rem var(--gouttiere) 1.5rem;
    display: none;
  }
  .nav[data-ouvert="true"] { display: flex; }
  .nav a {
    padding: .95rem 0;
    border-bottom: 1px solid var(--ligne-sombre);
    font-size: 1rem;
  }
  .entete__cta { display: none; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  background: var(--nuit);
  color: var(--craie);
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 55% at 78% 18%, rgba(103,156,43,.18), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }

.hero__grille {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 940px) {
  .hero__grille { grid-template-columns: 1.05fr .95fr; }
}

.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em {
  font-style: normal;
  color: var(--vert-clair);
}
.hero__chapo {
  font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  color: var(--brume);
  max-width: 46ch;
  margin-bottom: 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(147,167,158,.2);
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brume);
}

/* --- Schéma unifilaire animé (élément signature) ------------------------- */
.schema {
  width: 100%;
  height: auto;
}
.schema__fil {
  fill: none;
  stroke: rgba(147,167,158,.34);
  stroke-width: 1.4;
}
.schema__flux {
  fill: none;
  stroke: var(--vert-clair);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 26 300;
  animation: courant 5s linear infinite;
}
.schema__flux--b { animation-delay: 1.2s; }
.schema__flux--c { animation-delay: 2.4s; }

@keyframes courant {
  from { stroke-dashoffset: 326; }
  to   { stroke-dashoffset: 0; }
}

.schema__noeud { fill: var(--nuit); stroke: var(--brume); stroke-width: 1.4; }
.schema__noeud--actif { stroke: var(--vert); }
.schema__icone { fill: none; stroke: var(--craie); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.schema__label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  fill: var(--brume);
  text-transform: uppercase;
}
.schema__valeur {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--vert-clair);
}

@media (prefers-reduced-motion: reduce) {
  .schema__flux { animation: none; stroke-dasharray: none; opacity: .6; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* --- Bandeau de confiance ------------------------------------------------ */
.confiance {
  background: var(--ardoise);
  color: var(--craie);
  padding-block: 1.4rem;
}
.confiance__liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .9rem;
}
.confiance__liste li {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.confiance__liste li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--vert);
  flex: none;
  transform: rotate(45deg);
}

/* --- Rail : hairline + points de jonction -------------------------------- */
.rail { position: relative; }
@media (min-width: 1040px) {
  .rail::before {
    content: "";
    position: absolute;
    left: max(var(--gouttiere), calc(50% - var(--max) / 2 + .5rem));
    top: 0; bottom: 0;
    width: 1px;
    background: var(--ligne);
  }
}

/* --- Grilles de cartes --------------------------------------------------- */
.grille {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.grille--deux { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.carte {
  background: var(--papier);
  border: 1px solid var(--ligne-sombre);
  border-radius: 3px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  transition: border-color .2s ease, transform .2s ease;
}
.carte:hover { border-color: var(--vert); transform: translateY(-2px); }

.carte__num {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--vert);
}
.carte p { color: #48544F; font-size: .96rem; }
.carte__lien {
  margin-top: auto;
  padding-top: .5rem;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ardoise);
  display: inline-flex;
  gap: .4rem;
  align-items: center;
}
.carte__lien:hover { color: var(--vert); }

/* --- Réalisations -------------------------------------------------------- */
.chantier {
  border: 1px solid var(--ligne-sombre);
  border-radius: 3px;
  overflow: hidden;
  background: var(--papier);
  display: flex;
  flex-direction: column;
}
.chantier__visuel {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(
    45deg, #E4E9E4, #E4E9E4 12px, #DCE2DC 12px, #DCE2DC 24px);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: #8A968F;
  text-transform: uppercase;
}
.chantier__corps { padding: 1.35rem 1.5rem 1.6rem; }
.chantier__lieu {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vert);
  margin-bottom: .5rem;
}
.chantier h3 { margin-bottom: .5rem; }
.chantier p { font-size: .93rem; color: #48544F; }

/* --- Avis ---------------------------------------------------------------- */
.avis {
  border-left: 2px solid var(--vert);
  padding: .25rem 0 .25rem 1.5rem;
}
.avis__texte { font-size: 1.02rem; }
.avis__auteur {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brume);
}
.etoiles { color: var(--vert-clair); letter-spacing: .15em; font-size: .95rem; margin-bottom: .6rem; }

/* --- Étapes (déroulé d'un chantier) -------------------------------------- */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.etape {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(147,167,158,.22);
}
.etape:last-child { border-bottom: 1px solid rgba(147,167,158,.22); }
.etape__num {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--vert);
  padding-top: .3rem;
}
.etape h3 { margin-bottom: .35rem; }
.etape p { color: var(--brume); font-size: .96rem; }

/* --- Zone d'intervention ------------------------------------------------- */
.communes {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.communes li {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .06em;
  border: 1px solid var(--ligne);
  border-radius: 2px;
  padding: .45rem .8rem;
}

/* --- Formulaire ---------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.champ { display: grid; gap: .45rem; }
.champ label {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #5B6862;
}
.champ input, .champ select, .champ textarea {
  font-family: var(--texte);
  font-size: 1rem;
  color: var(--encre);
  background: #FFF;
  border: 1px solid var(--ligne-sombre);
  border-radius: 2px;
  padding: .85rem 1rem;
  width: 100%;
}
.champ textarea { min-height: 150px; resize: vertical; }
.champ input:focus-visible,
.champ select:focus-visible,
.champ textarea:focus-visible {
  outline: 2px solid var(--vert);
  outline-offset: 1px;
  border-color: transparent;
}
.champ--double { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .champ--double { grid-template-columns: 1fr 1fr; } }

.form__mention { font-size: .84rem; color: #5B6862; }

/* --- Bloc contact direct ------------------------------------------------- */
.direct {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.direct__item {
  border: 1px solid rgba(147,167,158,.25);
  border-radius: 3px;
  padding: 1.5rem;
}
.direct__label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--vert);
  margin-bottom: .6rem;
}
.direct__valeur {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  letter-spacing: -.01em;
}
.direct__valeur:hover { color: var(--vert-clair); }

/* --- Bandeau final ------------------------------------------------------- */
.appel {
  background: var(--vert-fonce);
  color: #FFF;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.appel h2 { margin-bottom: 1rem; }
.appel p { max-width: 52ch; opacity: .92; margin-bottom: 2rem; }
.appel .btn--sombre { background: var(--nuit); }
.appel .btn--sombre:hover { background: var(--ardoise); }

/* --- Pied de page -------------------------------------------------------- */
.pied {
  background: var(--nuit);
  color: var(--brume);
  padding-block: 3.5rem 2rem;
  font-size: .9rem;
}
.pied__grille {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(147,167,158,.18);
}
.pied h4 {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--craie);
  margin: 0 0 1rem;
  font-weight: 500;
}
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--vert-clair); }
.pied__bas {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .06em;
}

/* --- Page intérieure : titre --------------------------------------------- */
.chapeau {
  background: var(--nuit);
  color: var(--craie);
  padding-block: clamp(3rem, 7vw, 4.5rem);
}
.chapeau p { color: var(--brume); max-width: 58ch; margin-top: 1.25rem; }

/* --- Contenu légal ------------------------------------------------------- */
.legal { max-width: 74ch; }
.legal h2 { font-size: 1.5rem; margin: 2.5rem 0 .85rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }

/* --- Accessibilité ------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--vert); outline-offset: 3px; }

.saut {
  position: absolute;
  left: -9999px;
  background: var(--vert);
  color: #FFF;
  padding: .75rem 1.25rem;
  z-index: 100;
}
.saut:focus { left: 1rem; top: 1rem; }

.tag {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(103,156,43,.14);
  color: var(--vert);
  padding: .25rem .55rem;
  border-radius: 2px;
}

/* ==========================================================================
   Compléments — logo, photos, WhatsApp, avant/après
   ========================================================================== */

/* Logo dans l'en-tête */
.marque { gap: 0; }
.marque__logo { height: 76px; width: auto; display: block; }
@media (max-width: 520px) { .marque__logo { height: 58px; } }

.pied .marque__logo { height: 104px; }

/* Photos de chantier */
img.chantier__visuel {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #E4E9E4;
}
.chantier__visuel--haut { aspect-ratio: 3 / 4; }

/* Visuel d'illustration dans les blocs prestation */
.illustration {
  width: 100%;
  height: auto;
  border-radius: 3px;
  border: 1px solid var(--ligne-sombre);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Avant / après */
.avant-apres {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.avant-apres figure { margin: 0; }
.avant-apres img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 3px;
}
.avant-apres figcaption {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brume);
  margin-top: .5rem;
}

/* Bouton WhatsApp aux couleurs officielles */
.btn--whatsapp { background: #25D366; color: #0B2B18; }
.btn--whatsapp:hover { background: #1FBF5A; }
.btn--whatsapp svg { width: 19px; height: 19px; flex: none; }

/* Bandeau de repère "contenu provisoire" — à supprimer avant livraison */
.provisoire {
  background: #FFF4D6;
  border-top: 1px solid #E8D28C;
  border-bottom: 1px solid #E8D28C;
  color: #6B5313;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .04em;
  padding: .7rem 0;
  text-align: center;
}

/* ==========================================================================
   Révisions — avis, formulaire, WhatsApp, cadrage des photos
   ========================================================================== */

/* --- Cadrage : privilégier le haut sur les photos de toiture --- */
.illustration, img.chantier__visuel { object-position: center 32%; }
.cadre--haut  { object-position: center 18% !important; }
.cadre--bas   { object-position: center 62% !important; }

/* --- Bloc note globale Google --- */
.note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.75rem;
  align-items: center;
  background: var(--papier);
  border: 1px solid var(--ligne-sombre);
  border-left: 4px solid var(--vert);
  border-radius: 3px;
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
}
.note__chiffre {
  font-family: var(--display);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--ardoise);
}
.note__etoiles { color: var(--vert); letter-spacing: .2em; font-size: 1.05rem; }
.note__source {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6B7780;
  margin-top: .45rem;
}
@media (max-width: 560px) {
  .note { grid-template-columns: 1fr; gap: .75rem; padding: 1.5rem; }
}

/* --- Avis en cartes --- */
.avis {
  background: var(--papier);
  border: 1px solid var(--ligne-sombre);
  border-left: 3px solid var(--vert);
  border-radius: 3px;
  padding: 1.75rem 1.75rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: border-color .2s ease, transform .2s ease;
}
.avis:hover { transform: translateY(-2px); border-color: var(--ligne); border-left-color: var(--vert); }
.avis__texte { flex: 1; color: #38434A; }
.avis__auteur { margin-top: .75rem; padding-top: .85rem; border-top: 1px solid var(--ligne-sombre); }
.etoiles { color: var(--vert); }

/* --- Formulaire dans une carte --- */
.section--formulaire { background: var(--craie); }

.carte-form {
  background: #FFF;
  border: 1px solid var(--ligne-sombre);
  border-radius: 4px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: 0 1px 2px rgba(26,32,38,.04), 0 12px 32px -18px rgba(26,32,38,.28);
}
.carte-form__titre {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.015em;
  margin: 0 0 .4rem;
}
.carte-form__sous {
  font-size: .93rem;
  color: #5B6862;
  margin-bottom: 1.75rem;
}
.champ input, .champ select, .champ textarea {
  background: #FCFDFB;
  border: 1px solid #DDE3DC;
  transition: border-color .15s ease, background .15s ease;
}
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: #C3CCC1; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  background: #FFF;
  border-color: var(--vert);
}
.champ label { color: #5B6862; }

/* --- Encadrés de contact --- */
.direct__item {
  background: #FFF;
  border: 1px solid var(--ligne-sombre);
  transition: border-color .2s ease, transform .2s ease;
}
.direct__item:hover { border-color: var(--vert); transform: translateY(-2px); }
.direct__icone {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--vert);
  display: grid; place-items: center;
  margin-bottom: .9rem;
}
.direct__icone svg { width: 17px; height: 17px; fill: #FFF; }

/* --- Boutons : rendre le caractère cliquable évident --- */
.btn { position: relative; }
.btn--vert {
  box-shadow: 0 1px 2px rgba(26,32,38,.12);
}
.btn--vert:hover {
  background: var(--vert);
  box-shadow: 0 6px 18px -8px rgba(103,156,43,.75);
}
.btn--fantome {
  border-color: rgba(255,255,255,.4);
  opacity: 1;
}
.btn--fantome:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--vert-clair);
  color: var(--vert-clair);
}
.appel .btn--fantome:hover { background: rgba(0,0,0,.12); border-color: #FFF; color: #FFF; }
.btn--sombre:hover { box-shadow: 0 6px 18px -8px rgba(26,32,38,.6); }

/* --- WhatsApp --- */
.btn--whatsapp {
  background: #FFF;
  color: #0F2E1A;
  border: 1px solid rgba(0,0,0,.08);
}
.btn--whatsapp:hover { background: #EAFBF0; border-color: #25D366; }
.btn--whatsapp svg { width: 21px; height: 21px; fill: #25D366; flex: none; }

/* --- Survol des cartes de réalisation --- */
.chantier {
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.chantier:hover {
  border-color: var(--vert);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px -16px rgba(26,32,38,.4);
}
.chantier__visuel { transition: transform .45s ease; }
.chantier { overflow: hidden; }
.chantier:hover img.chantier__visuel { transform: scale(1.04); }

/* --- Survol des blocs avant/après --- */
.avant-apres figure { overflow: hidden; border-radius: 3px; }
.avant-apres img { transition: transform .45s ease; }
.avant-apres figure:hover img { transform: scale(1.04); }


/* ==========================================================================
   Encadré « Laisser un avis Google »
   Reprend le langage du site : carte claire, liseré vert, filet de séparation.
   ========================================================================== */

.invite {
  background: var(--papier);
  border: 1px solid var(--ligne-sombre);
  border-left: 3px solid var(--vert);
  border-radius: 3px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding: clamp(1.6rem, 3.4vw, 2.25rem) clamp(1.6rem, 3.4vw, 2.5rem);
  align-items: center;
}

@media (min-width: 820px) {
  .invite {
    grid-template-columns: 1fr 1px auto;
    gap: 2.75rem;
  }
  .invite__filet {
    width: 1px;
    align-self: stretch;
    background: var(--ligne-sombre);
  }
}
.invite__filet { display: none; }
@media (min-width: 820px) { .invite__filet { display: block; } }

.invite__source {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .9rem;
}
.invite__source svg { width: 20px; height: 20px; flex: none; }
.invite__nom {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6B7780;
  margin: 0;
}
.invite__etoiles {
  color: #F5A623;
  letter-spacing: .22em;
  font-size: .95rem;
  margin: 0 0 .1rem;
}

.invite__titre {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.05rem + .5vw, 1.45rem);
  letter-spacing: -.015em;
  line-height: 1.2;
  margin: 0 0 .5rem;
  color: var(--encre);
}
.invite__texte {
  margin: 0;
  max-width: 46ch;
  color: #55626A;
  font-size: .97rem;
  line-height: 1.6;
}

.btn--google {
  background: var(--vert-fonce);
  color: #FFF;
  padding: 1rem 1.6rem;
  font-size: .93rem;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(26,32,38,.14);
}
.btn--google:hover {
  background: var(--vert);
  box-shadow: 0 8px 20px -10px rgba(103,156,43,.85);
}
.btn--google .g {
  width: 17px; height: 17px; flex: none;
  background: #FFF; border-radius: 50%;
  padding: 3px; box-sizing: content-box;
}
.btn--google .fleche { width: 14px; height: 14px; flex: none; fill: currentColor; opacity: .8; }

/* ==========================================================================
   Formulaire — validation, alerte et confirmation
   ========================================================================== */

.champ__erreur {
  margin: 0;
  font-size: .84rem;
  line-height: 1.4;
  color: #B23B2E;
  display: none;
}
.champ__erreur[data-visible="true"] { display: block; }
.champ__erreur button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--vert-fonce);
  text-decoration: underline;
  cursor: pointer;
}

.champ input[aria-invalid="true"],
.champ select[aria-invalid="true"],
.champ textarea[aria-invalid="true"] {
  border-color: #D4756A;
  background: #FEF8F7;
}
.champ input[data-valide="true"],
.champ select[data-valide="true"] { border-color: #B9D5A2; }

/* Alerte générale (échec d'envoi) */
.alerte {
  background: #FDF3F1;
  border: 1px solid #F0CFC9;
  border-left: 3px solid #B23B2E;
  border-radius: 3px;
  padding: .95rem 1.1rem;
  font-size: .92rem;
  line-height: 1.55;
  color: #8A2E23;
  margin-bottom: 1.25rem;
}
.alerte a { color: #8A2E23; font-weight: 600; }

/* Confirmation d'envoi */
.succes { text-align: center; padding: 1rem 0 .5rem; }
.succes__coche {
  width: 64px; height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: #EDF5E4;
  display: grid;
  place-items: center;
  animation: coche-apparait .45s cubic-bezier(.2,.9,.3,1.3);
}
.succes__coche svg { width: 32px; height: 32px; fill: var(--vert-fonce); }

@keyframes coche-apparait {
  from { transform: scale(.5); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

.succes__titre {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.35rem, 1.2rem + .7vw, 1.7rem);
  letter-spacing: -.02em;
  margin: 0 0 .75rem;
  color: var(--encre);
}
.succes__texte {
  max-width: 40ch;
  margin: 0 auto 1rem;
  color: #55626A;
  font-size: 1rem;
  line-height: 1.6;
}
.succes__texte--petit { font-size: .92rem; margin-bottom: 1.75rem; }
.succes__texte a { color: var(--vert-fonce); font-weight: 600; }

.btn--fantome-sombre {
  background: transparent;
  color: var(--ardoise);
  border-color: #D8DFD7;
}
.btn--fantome-sombre:hover { border-color: var(--vert); color: var(--vert-fonce); }

@media (prefers-reduced-motion: reduce) {
  .succes__coche { animation: none; }
}

/* L'attribut hidden doit primer sur display:grid / flex */
[hidden] { display: none !important; }

/* ==========================================================================
   Agrandissement des photos
   ========================================================================== */

.zoomable { position: relative; overflow: hidden; }

.zoom-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 3px;
  background: rgba(26, 32, 38, .55);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: .62;
  transition: opacity .2s ease, background .2s ease, transform .2s ease;
  padding: 0;
  z-index: 2;
}
.zoom-btn svg { width: 15px; height: 15px; fill: #FFF; }
.zoom-btn:hover { background: rgba(26, 32, 38, .85); transform: scale(1.06); }

.zoomable:hover .zoom-btn,
.zoom-btn:focus-visible { opacity: 1; }

/* --- Visionneuse --- */
.visionneuse {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 16, 19, .93);
  backdrop-filter: blur(6px);
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.visionneuse[data-ouvert="true"] { opacity: 1; pointer-events: auto; }

.visionneuse img {
  max-width: 100%;
  max-height: calc(100vh - 11rem);
  width: auto;
  height: auto;
  border-radius: 4px;
  object-fit: contain;
  transform: scale(.97);
  transition: transform .22s ease;
}
.visionneuse[data-ouvert="true"] img { transform: scale(1); }

.visionneuse__legende {
  margin-top: 1.25rem;
  margin-bottom: 2.25rem;
  text-align: center;
  color: #C8D2D8;
  font-size: .95rem;
  line-height: 1.5;
  max-width: 60ch;
}
.visionneuse__legende strong { color: #FFF; display: block; font-weight: 600; margin-bottom: .2rem; }

.visionneuse__fermer {
  position: fixed;
  top: clamp(.75rem, 2vw, 1.5rem);
  right: clamp(.75rem, 2vw, 1.5rem);
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 3px;
  background: rgba(255,255,255,.07);
  color: #FFF;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .18s ease, border-color .18s ease;
}
.visionneuse__fermer:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }
.visionneuse__fermer svg { width: 17px; height: 17px; fill: currentColor; }

.visionneuse__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  color: #FFF;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .18s ease;
}
.visionneuse__nav:hover { background: rgba(255,255,255,.18); }
.visionneuse__nav svg { width: 18px; height: 18px; fill: currentColor; }
.visionneuse__nav--prec { left: clamp(.5rem, 2vw, 1.5rem); }
.visionneuse__nav--suiv { right: clamp(.5rem, 2vw, 1.5rem); }

.visionneuse__compteur {
  position: fixed;
  bottom: clamp(.75rem, 2vw, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .14em;
  color: rgba(255,255,255,.55);
}

@media (max-width: 640px) {
  .visionneuse__nav { width: 40px; height: 40px; }
  .visionneuse img { max-height: calc(100vh - 12rem); }
}

@media (prefers-reduced-motion: reduce) {
  .visionneuse, .visionneuse img, .zoom-btn { transition: none; }
}

body.fige { overflow: hidden; }

/* ==========================================================================
   Agrandissement des photos
   ========================================================================== */

.zoomable { position: relative; overflow: hidden; }

.zoom-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 3px;
  background: rgba(26, 32, 38, .55);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
  z-index: 2;
  padding: 0;
}
.zoom-btn svg { width: 16px; height: 16px; fill: #FFF; display: block; }
.zoom-btn:hover { background: rgba(26, 32, 38, .85); }

.zoomable:hover .zoom-btn,
.zoom-btn:focus-visible { opacity: 1; transform: translateY(0); }

/* Sur écran tactile, le survol n'existe pas : bouton toujours visible mais discret */
@media (hover: none) {
  .zoom-btn { opacity: .75; transform: none; }
}

/* --- Visionneuse --- */
.loupe {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 17, .93);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  transition: opacity .22s ease;
}
.loupe[data-ouvert="true"] { opacity: 1; }

.loupe__image {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
  transform: scale(.97);
  transition: transform .22s ease;
}
.loupe[data-ouvert="true"] .loupe__image { transform: scale(1); }

.loupe__legende {
  margin-top: 1.1rem;
  text-align: center;
  color: #C9D2D7;
  font-size: .95rem;
  line-height: 1.5;
  max-width: 60ch;
}

.loupe__fermer {
  position: absolute;
  top: clamp(.75rem, 2.5vw, 1.5rem);
  right: clamp(.75rem, 2.5vw, 1.5rem);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 3px;
  background: rgba(255, 255, 255, .06);
  color: #FFF;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.loupe__fermer:hover { background: rgba(255, 255, 255, .16); }
.loupe__fermer svg { width: 18px; height: 18px; fill: currentColor; }

@media (prefers-reduced-motion: reduce) {
  .loupe, .loupe__image { transition: none; }
}

/* L'enveloppe doit se comporter comme l'image qu'elle entoure */
span.zoomable { display: block; line-height: 0; }
span.zoomable > img { display: block; }
.avant-apres span.zoomable { border-radius: 3px; overflow: hidden; }

/* Vignettes supplémentaires sous une carte de chantier */
.chantier__galerie {
  display: flex;
  gap: 2px;
  background: var(--ligne-sombre);
  border-top: 2px solid var(--papier);
}
.chantier__galerie span.zoomable { flex: 1 1 0; min-width: 0; }
.chantier__vignette {
  width: 100%;
  height: 78px;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.chantier__galerie .zoom-btn { width: 26px; height: 26px; right: 6px; bottom: 6px; }
.chantier__galerie .zoom-btn svg { width: 13px; height: 13px; }
