/* ==========================================================================
   SP BAT — feuille de style unique (v2 de la direction artistique)
   Palette : bleu azulejo (faïence portugaise, clin d'œil aux origines des
   dirigeants et au carrelage), chaux, terre cuite en couleur d'action.
   Une seule famille, Inter : textes en 400/500, titres en 800 avec un complément en 300
   (classe .h1-leger). Choix du 22/09/2026 après essais d'Archivo, Barlow Condensed,
   Rajdhani et Black Han Sans : le plus simple tient le mieux.
   ========================================================================== */

:root {
  /* fonds */
  --chaux:         #F5F2EC;
  --chaux-2:       #EAE4D9;
  --blanc:         #FFFFFF;

  /* bleu azulejo */
  --azulejo:       #1B4A73;
  --azulejo-2:     #2C6491;
  --azulejo-nuit:  #12304A;
  --azulejo-pale:  #E7EFF6;

  /* textes */
  --encre:         #14181C;
  --gris:          #47505A;
  --gris-clair:    #7A838D;

  /* action */
  --terre:         #B04A2F;
  --terre-vif:     #C1573A;
  --terre-pale:    #F6E5DE;

  --bordure:       #DED6C7;
  --bordure-bleue: rgba(255, 255, 255, .18);

  --titre: "Inter", "Helvetica Neue", Arial, sans-serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --r-s: 2px;
  --r-m: 4px;
  --e: cubic-bezier(.22, .61, .36, 1);

  --pas: clamp(4.5rem, 9vw, 8rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gris);
  background: var(--chaux);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--azulejo); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--terre); }

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

h1, h2, h3 {
  font-family: var(--titre);
  color: var(--encre);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.025em;
  margin: 0 0 .55em;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em; background: var(--azulejo-pale);
  padding: .1em .35em; border-radius: var(--r-s);
}

.saut-contenu {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--azulejo); color: #fff;
  padding: .9rem 1.4rem; font-weight: 600;
}
.saut-contenu:focus { left: .5rem; top: .5rem; }

/* --------------------------------------------------------------------------
   Structure — conteneur large, sections respirantes
   -------------------------------------------------------------------------- */
.contenant { width: min(100% - 3rem, 1440px); margin-inline: auto; }
.contenant--etroit { width: min(100% - 3rem, 780px); }

.section { padding-block: var(--pas); }
.section--haut { padding-top: clamp(3rem, 6vw, 5rem); }
.fond-clair { background: var(--chaux-2); }
.fond-sombre { background: var(--azulejo-nuit); color: #C3D3E0; }
.fond-sombre h1, .fond-sombre h2, .fond-sombre h3 { color: #fff; }
.fond-sombre .surtitre { color: #8FB6D4; }
.fond-sombre .intro { color: #C3D3E0; }

.centre { text-align: center; }
.plus { margin-top: 2.4rem; display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Titres de section
   -------------------------------------------------------------------------- */
.surtitre {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans);
  font-size: .715rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--azulejo);
  margin: 0 0 1rem;
}
.surtitre::before {
  content: ""; width: 26px; height: 2px; background: var(--terre); flex: none;
}
.surtitre--clair { color: #fff; }
.surtitre--clair::before { background: #fff; opacity: .8; }
.surtitre--centre { display: flex; justify-content: center; text-align: center; }

.titre-section {
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  max-width: 24ch; margin-inline: auto;
}
.centre .titre-section { text-align: center; }
.titre-section--gauche { margin-inline: 0; text-align: left; }

.entete-section { margin-bottom: clamp(2.5rem, 4vw, 3.8rem); }
.entete-section.centre .titre-section { margin-inline: auto; }

.intro { font-size: 1.08rem; max-width: 64ch; margin-inline: auto; color: var(--gris); }
.centre .intro { text-align: center; }

.chapo-txt { font-size: 1.15rem; color: var(--encre); font-weight: 450; }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  --fond: var(--azulejo);
  --txt: #fff;
  --bord: var(--azulejo);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px;
  padding: .75rem 1.5rem;
  font-family: var(--sans);
  font-size: .92rem; font-weight: 600; line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--bord);
  border-radius: var(--r-s);
  background: var(--fond);
  color: var(--txt);
  cursor: pointer;
  transition: background .2s var(--e), color .2s var(--e), border-color .2s var(--e), transform .2s var(--e);
}
.btn:hover { transform: translateY(-2px); color: var(--txt); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--plein:hover { --fond: var(--azulejo-2); --bord: var(--azulejo-2); }
.btn--accent { --fond: var(--terre); --bord: var(--terre); }
.btn--accent:hover { --fond: #963D26; --bord: #963D26; }
.btn--contour { --fond: transparent; --txt: var(--encre); --bord: var(--bordure); }
.btn--contour:hover { --fond: var(--azulejo); --txt: #fff; --bord: var(--azulejo); }
.btn--fantome { --fond: rgba(255, 255, 255, .1); --txt: #fff; --bord: rgba(255, 255, 255, .55); }
.btn--fantome:hover { --fond: #fff; --txt: var(--encre); --bord: #fff; }
.fond-clair .btn--fantome, .section > .contenant .btn--fantome {
  --fond: transparent; --txt: var(--encre); --bord: var(--bordure);
}
.fond-clair .btn--fantome:hover, .section > .contenant .btn--fantome:hover {
  --fond: var(--azulejo); --txt: #fff; --bord: var(--azulejo);
}
.rappel .btn--fantome, .fond-sombre .btn--fantome, .hero .btn--fantome {
  --fond: rgba(255, 255, 255, .1); --txt: #fff; --bord: rgba(255, 255, 255, .55);
}
.rappel .btn--fantome:hover, .fond-sombre .btn--fantome:hover, .hero .btn--fantome:hover {
  --fond: #fff; --txt: var(--encre); --bord: #fff;
}
.btn--lg { min-height: 56px; padding: 1rem 2rem; font-size: 1rem; }
.btn--bloc { width: 100%; }

/* --------------------------------------------------------------------------
   En-tete
   -------------------------------------------------------------------------- */
.entete {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245, 242, 236, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bordure);
}
.entete__int { display: flex; align-items: center; gap: 1.4rem; min-height: 78px; }

.logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.logo__marque {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--azulejo); color: #fff;
  font-family: var(--titre); font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em;
  border-radius: var(--r-s); flex: none;
}
.logo__txt { display: flex; flex-direction: column; line-height: 1.1; }
.logo__nom {
  font-family: var(--titre); font-size: 1.4rem; font-weight: 800;
  color: var(--encre); letter-spacing: -.01em;
}
.logo__sous {
  font-size: .645rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gris-clair); white-space: nowrap;
}
.logo__img {
  height: 48px; width: auto; flex: none;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(31, 41, 51, .18);
}
.logo--img .logo__sous { max-width: 9rem; white-space: normal; line-height: 1.25; }
.logo--clair .logo__nom { color: #fff; }
.logo--clair .logo__marque { background: #fff; color: var(--azulejo); }
.logo--clair .logo__sous { color: rgba(255, 255, 255, .6); }

.nav__liste { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__lien {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .75rem;
  font-size: .875rem; font-weight: 500;
  color: var(--gris); text-decoration: none;
  border: 0; background: none; font-family: var(--sans);
  border-radius: var(--r-s); cursor: pointer;
  transition: color .2s var(--e), background .2s var(--e);
}
.nav__lien:hover { color: var(--azulejo); background: var(--azulejo-pale); }
.nav__lien[aria-current] { color: var(--azulejo); font-weight: 700; }
.nav__lien svg { width: 14px; height: 14px; transition: transform .22s var(--e); }
.nav__parent { position: relative; }
.nav__parent:hover .nav__lien svg, .nav__declencheur[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__sous {
  position: absolute; top: calc(100% + .35rem); left: 0;
  min-width: 285px; list-style: none; margin: 0; padding: .45rem;
  background: var(--blanc);
  border: 1px solid var(--bordure); border-top: 3px solid var(--azulejo);
  border-radius: var(--r-m);
  box-shadow: 0 18px 44px rgba(20, 24, 28, .16);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--e), transform .2s var(--e), visibility .2s;
}
.nav__parent:hover .nav__sous, .nav__parent:focus-within .nav__sous {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__sous a {
  display: block; padding: .62rem .8rem;
  font-size: .88rem; color: var(--gris); text-decoration: none; border-radius: var(--r-s);
}
.nav__sous a:hover { background: var(--azulejo-pale); color: var(--azulejo); }
.nav__sous a[aria-current] { color: var(--terre); font-weight: 600; }

.entete__cta { display: flex; align-items: center; gap: .55rem; }
.btn--tel { padding-inline: 1rem; }
.btn--devis { white-space: nowrap; }

.burger {
  display: none; width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: none; border: 2px solid var(--bordure); border-radius: var(--r-s); cursor: pointer;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--encre);
  transition: transform .25s var(--e), opacity .2s;
}
.burger span { position: relative; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.voile { position: fixed; inset: 0; z-index: 70; background: rgba(18, 48, 74, .6); backdrop-filter: blur(2px); }
.tiroir {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
  width: min(88vw, 350px);
  padding: 5rem 1.5rem 2rem;
  background: var(--blanc); border-left: 1px solid var(--bordure);
  overflow-y: auto; transform: translateX(100%);
  transition: transform .3s var(--e);
  display: flex; flex-direction: column; gap: .1rem;
}
.tiroir.est-ouvert { transform: translateX(0); }
.tiroir__fermer {
  position: absolute; top: 1.1rem; right: 1.1rem;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 2px solid var(--bordure); border-radius: var(--r-s);
  cursor: pointer; color: var(--encre);
}
.tiroir__fermer svg { width: 20px; height: 20px; }
.tiroir__lien {
  display: block; padding: .85rem .2rem;
  font-family: var(--titre); font-size: 1.05rem; font-weight: 600;
  color: var(--encre); text-decoration: none; border-bottom: 1px solid var(--bordure);
}
.tiroir__lien--sous { padding-left: 1rem; font-size: .95rem; color: var(--gris); font-weight: 400; font-family: var(--sans); }
.tiroir__lien[aria-current] { color: var(--terre); }
.tiroir__groupe {
  display: block; padding: 1.4rem .2rem .5rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--azulejo);
}
.tiroir__pied { margin-top: auto; padding-top: 1.8rem; display: grid; gap: .6rem; }

/* --------------------------------------------------------------------------
   Heros
   -------------------------------------------------------------------------- */
.hero, .hero-p { position: relative; isolation: isolate; color: #fff; }
.hero__media, .hero-p__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media img, .hero-p__media img { width: 100%; height: 100%; object-fit: cover; }

/* --- diaporama automatique du hero --- */
.hero__diapo {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.5s var(--e);
  will-change: opacity;
}
.hero__diapo.est-active { opacity: 1; }
/* Pas de zoom sur les photos : le diaporama ne fait que du fondu enchaine.
   Le travelling avant a ete retire le 10/09/2026, rendu trop irregulier. */

.hero__puces {
  position: absolute; z-index: 3;
  left: 50%; bottom: 1.1rem; transform: translateX(-50%);
  display: flex; gap: .35rem;
}
.hero__puce {
  width: 46px; height: 44px;
  display: grid; place-items: center;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.hero__puce::before {
  content: ""; display: block;
  width: 34px; height: 4px; border-radius: 2px;
  background: rgba(255, 255, 255, .38);
  transition: background .3s var(--e), width .3s var(--e);
}
.hero__puce:hover::before { background: rgba(255, 255, 255, .75); }
.hero__puce.est-active::before { background: var(--terre-vif); width: 44px; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  /* Volontairement leger : les photos doivent garder leurs couleurs. La
     lisibilite du texte est assuree par le degrade lateral + une ombre portee
     sur le titre, pas par un aplat sombre sur toute l'image. */
  background:
    linear-gradient(96deg, rgba(16, 42, 66, .58) 0%, rgba(16, 42, 66, .28) 32%, rgba(16, 42, 66, .04) 58%, rgba(16, 42, 66, 0) 78%),
    linear-gradient(180deg, rgba(10, 18, 26, .04) 0%, rgba(10, 18, 26, .2) 100%);
}
.hero-p__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(18, 48, 74, .8) 0%, rgba(18, 48, 74, .48) 48%, rgba(18, 48, 74, .08) 82%, rgba(18, 48, 74, 0) 100%),
    linear-gradient(180deg, rgba(12, 20, 28, .14) 0%, rgba(12, 20, 28, .4) 100%);
}

.hero__int { padding-block: clamp(6rem, 15vw, 11.5rem); max-width: 48rem; }
.hero__titre {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  color: #fff; line-height: 1.02; margin-bottom: .32em;
  letter-spacing: -.035em;
  text-shadow: 0 1px 2px rgba(8, 18, 28, .4), 0 3px 34px rgba(8, 18, 28, .6);
}
/* Jeu de graisses dans les H1 : l'essentiel en 800, le complement en 300 sur sa ligne */
.h1-leger { display: block; font-weight: 300; letter-spacing: -.02em; font-size: .88em; margin-top: .08em; }
.hero__titre .h1-leger { color: rgba(255, 255, 255, .92); }
.hero__txt {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem); color: #fff; max-width: 42ch;
  text-shadow: 0 1px 2px rgba(8, 18, 28, .45), 0 2px 20px rgba(8, 18, 28, .65);
}
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2.4rem; }
.hero__reperes {
  display: flex; gap: 1.7rem; flex-wrap: wrap;
  list-style: none; margin: 3rem 0 0; padding: 1.6rem 0 0;
  border-top: 2px solid rgba(255, 255, 255, .28);
}
.hero__reperes li {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; font-weight: 600; color: #fff;
  /* le voile etant tres transparent, ces reperes peuvent tomber sur une zone
     claire de la photo : l'ombre porte seule la lisibilite */
  text-shadow: 0 1px 2px rgba(8, 18, 28, .5), 0 2px 16px rgba(8, 18, 28, .6);
}
.hero__reperes svg { width: 18px; height: 18px; color: var(--terre-vif); flex: none; }

.hero-p__int { padding-block: clamp(4.5rem, 10vw, 7.5rem); max-width: 46rem; }
.hero-p__titre {
  font-size: clamp(2.1rem, 4.8vw, 3.6rem); color: #fff; margin-bottom: .28em;
  letter-spacing: -.03em;
}
.hero-p__txt { font-size: clamp(1rem, 1.7vw, 1.16rem); color: rgba(255, 255, 255, .94); max-width: 46ch; }
.hero-p__chips {
  display: flex; gap: .55rem; flex-wrap: wrap; list-style: none; margin: 1.9rem 0 0; padding: 0;
}
.hero-p__chips li {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .9rem;
  font-size: .8rem; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 100px;
}
.hero-p__chips svg { width: 14px; height: 14px; color: var(--terre-vif); }

/* --------------------------------------------------------------------------
   Fil d'Ariane
   -------------------------------------------------------------------------- */
.fil { border-bottom: 1px solid var(--bordure); background: var(--chaux); }
.fil__liste {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  list-style: none; margin: 0; padding: .9rem 0;
  font-size: .8rem; color: var(--gris-clair);
}
.fil__liste li + li::before { content: "/"; margin-right: .5rem; color: var(--bordure); }
.fil__liste a { color: var(--gris); text-decoration: none; }
.fil__liste a:hover { color: var(--terre); text-decoration: underline; }
.fil__liste [aria-current] { color: var(--encre); font-weight: 600; }

/* --------------------------------------------------------------------------
   Duo texte / image
   -------------------------------------------------------------------------- */
.duo { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr 1fr; align-items: center; }
.duo--inverse .duo__media { order: -1; }
.duo--contact { align-items: start; }
/* etapes a gauche, photo a droite : la photo suit le defilement pour rester
   en vis-a-vis de l'etape lue */
.duo--etapes { align-items: start; grid-template-columns: 1.15fr .85fr; }
.duo__media--collant { position: sticky; top: 104px; }
.duo__media img { border-radius: var(--r-m); width: 100%; }
.duo__leg {
  margin-top: .85rem; padding-left: .9rem;
  border-left: 3px solid var(--terre);
  font-size: .84rem; color: var(--gris-clair);
}
.duo__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }

/* --------------------------------------------------------------------------
   Bande photo pleine largeur
   -------------------------------------------------------------------------- */
.bande { position: relative; margin: 0; }
.bande img { width: 100%; height: clamp(280px, 46vh, 520px); object-fit: cover; }
.bande__leg {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3.5rem clamp(1.5rem, 5vw, 4rem) 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(12, 20, 28, .8));
  color: #fff; font-size: .9rem; font-weight: 500;
}

/* --------------------------------------------------------------------------
   Grille des metiers — 3 par ligne, puis cartes larges
   -------------------------------------------------------------------------- */
.grille-metiers { display: grid; gap: 1.6rem; grid-template-columns: repeat(6, 1fr); }
.metier { grid-column: span 2; }
.metier--large { grid-column: span 3; }

/* Aucun bloc seul en fin de ligne : la grille s'adapte au nombre de cartes.
   4 cartes -> 2 x 2 (et non 3 + 1), 2 cartes -> 2 de front. */
.grille-metiers--4 .metier,
.grille-metiers--4 .metier--large { grid-column: span 3; }
.grille-metiers--4 .metier__media { aspect-ratio: 16 / 9; }
.grille-metiers--2 .metier,
.grille-metiers--2 .metier--large { grid-column: span 3; }
.grille-metiers--1 .metier { grid-column: span 6; }

.metier {
  display: flex; flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--r-m);
  overflow: hidden; text-decoration: none;
  transition: transform .28s var(--e), box-shadow .28s var(--e), border-color .28s var(--e);
}
.metier:hover {
  transform: translateY(-5px);
  border-color: var(--azulejo);
  box-shadow: 0 22px 50px rgba(20, 24, 28, .16);
}
.metier__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--chaux-2); }
.metier--large .metier__media { aspect-ratio: 16 / 9; }
.metier__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--e); }
.metier:hover .metier__media img { transform: scale(1.05); }
.metier__corps { display: flex; flex-direction: column; padding: 1.8rem 1.7rem 1.9rem; flex: 1; }
.metier__ico {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 1.1rem;
  color: #fff; background: var(--azulejo); border-radius: var(--r-s);
}
.metier__ico svg { width: 23px; height: 23px; }
.metier:hover .metier__ico { background: var(--terre); }
.metier__titre {
  font-family: var(--titre); font-size: 1.35rem; font-weight: 700;
  color: var(--encre); line-height: 1.15; letter-spacing: -.02em; margin-bottom: .55rem;
}
.metier__txt { font-size: .95rem; color: var(--gris); flex: 1; }
.metier__lien {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: 1.4rem;
  font-size: .85rem; font-weight: 700; color: var(--terre);
  text-transform: uppercase; letter-spacing: .06em;
}
.metier__lien svg { width: 16px; height: 16px; transition: transform .25s var(--e); }
.metier:hover .metier__lien svg { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   Galerie — la premiere photo en grand
   -------------------------------------------------------------------------- */
.galerie { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* Le nombre de colonnes suit le nombre de photos, pour ne jamais couper une
   serie en 4 + 2 et pour afficher les images le plus grand possible. */
@media (min-width: 900px) {
  .galerie--n3, .galerie--n5, .galerie--n6, .galerie--n9 { grid-template-columns: repeat(3, 1fr); }
  .galerie--n2, .galerie--n4 { grid-template-columns: repeat(2, 1fr); }
  .galerie--n7, .galerie--n8 { grid-template-columns: repeat(4, 1fr); }
}
.vue { margin: 0; position: relative; }
.vue img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-m); background: var(--chaux-2);
  transition: transform .4s var(--e);
}
.vue:hover img { transform: scale(1.015); }
.vue__leg {
  margin-top: .7rem; padding-left: .85rem;
  border-left: 3px solid var(--azulejo);
  font-size: .84rem; color: var(--gris);
}

/* --------------------------------------------------------------------------
   Carrousel de realisations — defilement horizontal avec accroche
   -------------------------------------------------------------------------- */
.carrousel { position: relative; }
.carrousel__piste {
  display: grid; grid-auto-flow: column;
  /* dans une piste qui deborde, c'est le minimum qui s'applique : c'est donc
     lui qui fixe la taille reelle des vignettes */
  grid-auto-columns: minmax(430px, 40%);
  gap: 1.2rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}
.carrousel__piste:focus-visible { outline: 3px solid var(--terre); outline-offset: 4px; }
.diapo { margin: 0; scroll-snap-align: start; }
.diapo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-m); background: var(--chaux-2);
}
.diapo__leg {
  margin-top: .65rem; padding-left: .85rem;
  border-left: 3px solid var(--azulejo);
  font-size: .84rem; color: var(--gris);
}
.carrousel__cmd { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .4rem; }
.carrousel__btn {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--blanc); color: var(--azulejo);
  border: 2px solid var(--bordure); border-radius: var(--r-s);
  cursor: pointer;
  transition: background .2s var(--e), color .2s var(--e), border-color .2s var(--e);
}
.carrousel__btn:hover { background: var(--azulejo); color: #fff; border-color: var(--azulejo); }
.carrousel__btn[disabled] { opacity: .35; cursor: default; }
.carrousel__btn[disabled]:hover { background: var(--blanc); color: var(--azulejo); border-color: var(--bordure); }
.carrousel__btn:first-child svg { transform: rotate(180deg); }
.carrousel__btn svg { width: 20px; height: 20px; }

/* glisser a la souris sur les carrousels */
.carrousel__piste { cursor: grab; }
.carrousel__piste.est-glisse {
  cursor: grabbing;
  scroll-snap-type: none;   /* sinon l'accroche lutte contre le glissement */
  user-select: none;
}
.carrousel__piste img { -webkit-user-drag: none; user-select: none; }

/* --------------------------------------------------------------------------
   Frise : un chantier dans l'ordre
   -------------------------------------------------------------------------- */
.frise {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
  counter-reset: jalon;
}
.jalon { position: relative; display: flex; flex-direction: column; }
.jalon__media { display: block; }
.jalon__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-m); background: var(--chaux-2);
}
.jalon__num {
  position: absolute; top: -.4rem; left: -.4rem; z-index: 2;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  background: var(--terre); color: #fff;
  font-family: var(--titre); font-size: 1.05rem; font-weight: 800;
  border-radius: var(--r-s);
  box-shadow: 0 6px 18px rgba(20, 24, 28, .22);
}
.jalon__txt {
  margin-top: .8rem; padding-left: .85rem;
  border-left: 3px solid var(--azulejo);
  font-size: .88rem; color: var(--gris);
}

@media (max-width: 960px) {
  .frise { grid-template-columns: repeat(2, 1fr); }
  .carrousel__piste { grid-auto-columns: minmax(300px, 62%); }
}
@media (max-width: 560px) {
  .frise { grid-template-columns: 1fr; }
  .carrousel__piste { grid-auto-columns: minmax(240px, 84%); }
  .carrousel__cmd { display: none; }
}

/* --------------------------------------------------------------------------
   Listes de prestations
   -------------------------------------------------------------------------- */
.prestations { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem 3rem; }
.prestations--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
/* 4 prestations : 2 x 2 plutot que 3 + 1 */
.prestations--2.prestations--n4 { grid-template-columns: repeat(2, 1fr); }
.prestations--1 { grid-template-columns: 1fr; margin-top: 1.8rem; }
.presta { display: flex; gap: .9rem; align-items: flex-start; }
.presta__ico {
  display: grid; place-items: center;
  width: 28px; height: 28px; flex: none; margin-top: .15rem;
  color: #fff; background: var(--azulejo); border-radius: 50%;
}
.presta__ico svg { width: 16px; height: 16px; }
.presta__titre {
  display: block; font-family: var(--titre); color: var(--encre);
  font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: .2rem;
}
.presta__txt { display: block; font-size: .93rem; color: var(--gris); }

/* --------------------------------------------------------------------------
   Points cles — ouverture d'une page metier
   -------------------------------------------------------------------------- */
.grille-cles { display: grid; gap: 1.6rem; grid-template-columns: repeat(3, 1fr); }
.cle {
  padding: 1.7rem 1.6rem 1.8rem;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-top: 3px solid var(--azulejo);
  border-radius: var(--r-m);
}
.cle__ico {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 1rem;
  color: #fff; background: var(--azulejo); border-radius: var(--r-s);
}
.cle__ico svg { width: 22px; height: 22px; }
.cle__titre {
  font-size: 1.22rem; margin-bottom: .45rem; letter-spacing: -.02em;
}
.cle__txt { font-size: .93rem; margin: 0; color: var(--gris); }

@media (max-width: 900px) { .grille-cles { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Etapes
   -------------------------------------------------------------------------- */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.etape { position: relative; padding: 1.8rem 0 1.8rem 5rem; border-bottom: 1px solid var(--bordure); }
.etape:last-child { border-bottom: 0; }
.etape__num {
  position: absolute; left: 0; top: 1.6rem;
  font-family: var(--titre); font-size: 1.9rem; font-weight: 800;
  color: var(--azulejo); opacity: .3; letter-spacing: -.04em;
}
.etape__titre { font-size: 1.35rem; margin-bottom: .3rem; }
.etape__txt { font-size: .96rem; margin: 0; }

/* --------------------------------------------------------------------------
   Reperes
   -------------------------------------------------------------------------- */
.grille-reperes { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.repere {
  padding: 2rem 1.7rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--bordure-bleue);
  border-top: 3px solid var(--terre);
  border-radius: var(--r-m);
}
.repere__ico { display: block; color: var(--terre-vif); margin-bottom: 1.1rem; }
.repere__ico svg { width: 28px; height: 28px; }
.repere__titre { font-size: 1.3rem; color: #fff; margin-bottom: .45rem; }
.repere__txt { font-size: .91rem; color: #B9C9D8; margin: 0; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--bordure); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 0;
  font-family: var(--titre); font-size: 1.24rem; font-weight: 600;
  letter-spacing: -.015em; color: var(--encre);
  cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 13px; height: 13px;
  border-right: 2.5px solid var(--terre); border-bottom: 2.5px solid var(--terre);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .25s var(--e);
}
.faq__item[open] summary { color: var(--azulejo); }
.faq__item[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq__rep { padding-bottom: 1.5rem; font-size: .97rem; }

/* --------------------------------------------------------------------------
   Bandeau de rappel — le CTA le plus visible du site
   -------------------------------------------------------------------------- */
.rappel {
  background: var(--azulejo);
  color: #D5E3EE;
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  border-top: 5px solid var(--terre);
}
.rappel__int { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.rappel__titre {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem); color: #fff;
  margin-bottom: .3em; max-width: 22ch; letter-spacing: -.025em;
}
.rappel__txt { max-width: 50ch; margin: 0; font-size: 1rem; }
.rappel__actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Coordonnees, plan, fiche legale
   -------------------------------------------------------------------------- */
.coordonnees { display: grid; gap: .9rem; margin-top: 2.2rem; }
.coord {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.05rem 1.2rem;
  background: var(--blanc);
  border: 1px solid var(--bordure); border-left: 3px solid var(--azulejo);
  border-radius: var(--r-m);
  text-decoration: none; color: inherit;
  transition: border-color .22s var(--e), transform .22s var(--e);
}
a.coord:hover { border-left-color: var(--terre); transform: translateX(3px); }
.coord__ico {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  color: #fff; background: var(--azulejo); border-radius: var(--r-s);
}
.coord__ico svg { width: 20px; height: 20px; }
.coord__lbl {
  display: block; font-size: .69rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gris-clair);
}
.coord__val { display: block; font-size: 1.02rem; font-weight: 600; color: var(--encre); }

.plan { margin-top: 1.6rem; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--bordure); }
.plan iframe { display: block; width: 100%; height: 400px; border: 0; }

.fiche-legale {
  background: var(--blanc);
  border: 1px solid var(--bordure); border-top: 4px solid var(--azulejo);
  border-radius: var(--r-m);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  max-width: 900px; margin-inline: auto;
}
.fiche-legale__liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; margin: 0; }
.fiche-legale__liste div { border-left: 2px solid var(--azulejo-pale); padding-left: .95rem; }
.fiche-legale dt {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gris-clair); margin-bottom: .2rem;
}
.fiche-legale dd { margin: 0; font-size: .97rem; color: var(--encre); font-weight: 600; }
.fiche-legale__note {
  display: flex; align-items: flex-start; gap: .5rem;
  margin: 1.8rem 0 0; padding-top: 1.3rem;
  border-top: 1px solid var(--bordure);
  font-size: .85rem; color: var(--gris-clair);
}
.fiche-legale__note svg { width: 17px; height: 17px; flex: none; margin-top: .15rem; color: var(--azulejo); }

/* --------------------------------------------------------------------------
   Zones d'intervention
   -------------------------------------------------------------------------- */
/* 9 communes : 3 x 3, jamais 4 + 4 + 1 */
.grille-zones { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (min-width: 1000px) { .grille-zones { grid-template-columns: repeat(3, 1fr); } }
.zone {
  padding: 1.6rem 1.6rem 1.7rem;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-top: 4px solid var(--azulejo);
  border-radius: var(--r-m);
  transition: border-top-color .25s var(--e), transform .25s var(--e);
}
.zone:hover { border-top-color: var(--terre); transform: translateY(-3px); }
.zone__titre {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.32rem; margin-bottom: .5rem; letter-spacing: -.02em;
}
.zone__titre svg { width: 19px; height: 19px; color: var(--terre); flex: none; }
.zone__txt { font-size: .93rem; margin: 0; }

/* --------------------------------------------------------------------------
   Formulaire
   -------------------------------------------------------------------------- */
.formulaire {
  background: var(--blanc);
  border: 1px solid var(--bordure); border-top: 4px solid var(--terre);
  border-radius: var(--r-m);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: grid; gap: 1.15rem;
}
.formulaire__note { font-size: .86rem; color: var(--gris-clair); margin: 0; }
.champ { display: grid; gap: .35rem; }
.champ-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.champ label { font-size: .82rem; font-weight: 700; color: var(--encre); }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  font-family: var(--sans); font-size: .95rem; color: var(--encre);
  background: var(--chaux);
  border: 1px solid var(--bordure); border-radius: var(--r-s);
}
.champ textarea { min-height: 130px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  border-color: var(--azulejo); background: var(--blanc);
}
.champ-case { display: flex; align-items: flex-start; gap: .6rem; font-size: .85rem; color: var(--gris); }
.champ-case input { width: 20px; height: 20px; margin-top: .15rem; flex: none; accent-color: var(--azulejo); }
.formulaire__demo { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .79rem; color: var(--gris-clair); }
.formulaire__demo svg { width: 15px; height: 15px; flex: none; }

/* --------------------------------------------------------------------------
   Bloc « zone d'intervention » des pages metiers
   -------------------------------------------------------------------------- */
.duo--zone { align-items: center; }
.plan--dept iframe { height: 420px; }
.zone-puces {
  list-style: none; margin: 1.6rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.zone-puces li {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .75rem;
  font-size: .82rem; font-weight: 500; color: var(--encre);
  /* fond bleute plutot que blanc : les puces restent visibles aussi bien sur
     fond blanc que sur fond chaux */
  background: var(--azulejo-pale);
  border: 1px solid #CFE0EE;
  border-radius: 100px;
}
.zone-puces svg { width: 14px; height: 14px; color: var(--terre); flex: none; }

/* --------------------------------------------------------------------------
   Visionneuse — agrandissement d'une photo de chantier
   -------------------------------------------------------------------------- */
.js .galerie .vue img,
.js .mosaique .mos img,
.js .carrousel__piste .diapo img,
.js .frise .jalon__media img { cursor: zoom-in; }

.js .galerie .vue img:focus-visible,
.js .mosaique .mos img:focus-visible,
.js .carrousel__piste .diapo img:focus-visible,
.js .frise .jalon__media img:focus-visible {
  outline: 3px solid var(--terre); outline-offset: 3px;
}

.visio {
  border: 0; padding: 0; background: transparent;
  width: 100%; max-width: 100vw; height: 100%; max-height: 100vh;
  display: none;
}
.visio[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.visio::backdrop { background: rgba(8, 16, 24, .93); }

.visio__fig {
  margin: 0; display: flex; flex-direction: column; align-items: center;
  gap: 1rem; padding: 1rem; min-width: 0;
}
.visio__fig img {
  max-width: min(94vw, 1400px); max-height: 78vh;
  width: auto; height: auto; object-fit: contain;
  border-radius: var(--r-m);
  background: #0d1620;
}
.visio__leg {
  display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap;
  justify-content: center;
  color: #E4EAF0; font-size: .92rem; text-align: center;
}
.visio__compte { color: #8FA3B5; font-size: .82rem; font-variant-numeric: tabular-nums; }

.visio__fermer, .visio__nav {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%; cursor: pointer;
  transition: background .2s var(--e);
}
.visio__fermer:hover, .visio__nav:hover { background: rgba(255, 255, 255, .26); }
.visio__nav svg, .visio__fermer svg { width: 22px; height: 22px; }
.visio__nav--prec svg { transform: rotate(180deg); }
.visio__nav { margin-inline: 1rem; }
.visio__fermer { position: fixed; top: 1.1rem; right: 1.1rem; z-index: 2; }

@media (max-width: 720px) {
  .visio[open] { grid-template-columns: 1fr; }
  .visio__nav { position: fixed; bottom: 1.2rem; z-index: 2; margin: 0; }
  .visio__nav--prec { left: 1.2rem; }
  .visio__nav--suiv { right: 1.2rem; }
  .visio__fig img { max-height: 66vh; }
}

/* --------------------------------------------------------------------------
   Formulaire de devis — dans le bandeau des pages metiers, et en modale
   -------------------------------------------------------------------------- */
.u-invisible {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.hero-p--form .hero-p__duo {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.hero-p--form .hero-p__int { padding-block: 0; max-width: none; }
.hero-p--form .hero-p__titre { font-size: clamp(2rem, 3.8vw, 3.1rem); }

.devis-form {
  background: var(--blanc);
  border-radius: var(--r-m);
  border-top: 4px solid var(--terre);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  display: grid; gap: .85rem;
  box-shadow: 0 24px 60px rgba(10, 22, 34, .3);
  color: var(--gris);
}
.devis-form__titre {
  font-family: var(--titre); font-size: 1.35rem; font-weight: 700;
  color: var(--encre); letter-spacing: -.02em; margin: 0;
}
.devis-form__sous { margin: -.4rem 0 .2rem; font-size: .86rem; color: var(--gris-clair); }
.devis-form .champ label { font-size: .78rem; }
.devis-form .champ input, .devis-form .champ select { min-height: 44px; }
.devis-form .champ-case { font-size: .8rem; }
.devis-form__demo {
  display: flex; align-items: center; gap: .4rem;
  margin: 0; font-size: .75rem; color: var(--gris-clair);
}
.devis-form__demo svg { width: 14px; height: 14px; flex: none; }

/* modale */
.modale {
  border: 0; padding: 0; background: transparent;
  max-width: min(94vw, 460px); width: 100%;
  margin: auto;
}
.modale::backdrop { background: rgba(10, 22, 34, .62); backdrop-filter: blur(3px); }
.modale__int { position: relative; }
.modale__fermer {
  position: absolute; top: -14px; right: -14px; z-index: 2;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--encre); color: #fff;
  border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: 0 6px 18px rgba(10, 22, 34, .4);
}
.modale__fermer svg { width: 19px; height: 19px; }
.modale .devis-form { box-shadow: none; }

@media (max-width: 1024px) {
  .hero-p--form .hero-p__duo { grid-template-columns: 1fr; }
  .hero-p--form .hero-p__form { max-width: 460px; }
}
@media (max-width: 560px) {
  .modale__fermer { top: -10px; right: -6px; }
}

/* --------------------------------------------------------------------------
   Valeurs a valider (maquette)
   -------------------------------------------------------------------------- */
.a-valider { text-decoration: underline dotted var(--terre) 1.5px; text-underline-offset: .25em; }

/* --------------------------------------------------------------------------
   Texte legal
   -------------------------------------------------------------------------- */
.texte-legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.texte-legal h2 { font-size: 1.4rem; margin-top: 2.4rem; }
.texte-legal p { font-size: .96rem; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.pied { background: var(--azulejo-nuit); color: #9FB3C4; padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.pied__haut {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  padding-bottom: 2.8rem; border-bottom: 1px solid var(--bordure-bleue);
}
.pied__txt { margin-top: 1.2rem; font-size: .89rem; max-width: 36ch; color: #8FA5B8; }
.pied__titre {
  font-family: var(--titre); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 0 0 1.1rem;
}
.pied__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .62rem; font-size: .9rem; }
.pied__liste a { color: #9FB3C4; text-decoration: none; }
.pied__liste a:hover { color: #fff; text-decoration: underline; }
.pied__bas {
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding-top: 1.8rem; font-size: .81rem; color: #6E8397;
}
.pied__bas p { margin: 0; }
.pied__bas a { color: #8FA5B8; }

/* --------------------------------------------------------------------------
   Elements flottants
   -------------------------------------------------------------------------- */
.appel-flottant {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 55;
  display: none; align-items: center; gap: .5rem;
  min-height: 54px; padding: 0 1.3rem;
  background: var(--terre); color: #fff;
  font-size: .93rem; font-weight: 700; text-decoration: none;
  border-radius: 100px; box-shadow: 0 10px 26px rgba(20, 24, 28, .34);
}
.appel-flottant svg { width: 19px; height: 19px; }

.badge-dmw {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 56;
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .6rem .95rem .6rem .6rem;
  background: #0C4DB5; color: #fff; text-decoration: none;
  border-radius: 100px; box-shadow: 0 10px 30px rgba(12, 77, 181, .4);
  transition: transform .25s var(--e), box-shadow .25s var(--e);
}
.badge-dmw:hover { transform: translateY(-2px); color: #fff; }
.badge-dmw__pic {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none;
  background: rgba(255, 255, 255, .18); border-radius: 50%;
  font-size: .74rem; font-weight: 800;
}
.badge-dmw__txt { display: flex; flex-direction: column; line-height: 1.25; }
.badge-dmw__sur { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.badge-dmw__act { display: flex; align-items: center; gap: .3rem; font-size: .84rem; font-weight: 600; }
.badge-dmw__act svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   Apparition au defilement
   -------------------------------------------------------------------------- */
.js .apparait { opacity: 0; transform: translateY(16px); }
.js .apparait.est-visible {
  opacity: 1; transform: none;
  transition: opacity .6s var(--e), transform .6s var(--e);
}

/* --------------------------------------------------------------------------
   Theme Devmiweb (page /offre/)
   -------------------------------------------------------------------------- */
.theme-dmw { --titre: "Poppins", sans-serif; background: #fff; }
.theme-dmw h1, .theme-dmw h2, .theme-dmw h3 { font-family: "Poppins", sans-serif; letter-spacing: -.02em; text-transform: none; }
.theme-dmw .surtitre { color: #0C4DB5; }
.theme-dmw .surtitre::before { background: #0C4DB5; }
.theme-dmw .btn--accent { --fond: #0C4DB5; --bord: #0C4DB5; }
.theme-dmw .btn--accent:hover { --fond: #093A8B; --bord: #093A8B; }
.theme-dmw .fond-clair { background: #F1F5FB; }
.theme-dmw .fond-sombre { background: #0C4DB5; }
.theme-dmw .fond-sombre .surtitre { color: #A8C6F0; }
.theme-dmw .fond-sombre .intro { color: #DCE8F8; }
.theme-dmw .section--haut { padding-bottom: clamp(1rem, 2vw, 2rem); }

.avert-demo { background: #FEF3C7; color: #78350F; font-size: .85rem; }
.avert-demo__int { display: flex; align-items: center; gap: .6rem; padding: .7rem 0; }
.avert-demo svg { width: 17px; height: 17px; flex: none; }

.entete-dmw { border-bottom: 1px solid #E2E8F0; background: #fff; position: sticky; top: 0; z-index: 60; }
.entete-dmw__int { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.logo-dmw { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.logo-dmw__nom { font-family: "Poppins", sans-serif; font-size: 1.35rem; font-weight: 800; color: #0C4DB5; }
.logo-dmw__sep { width: 1px; height: 22px; background: #E2E8F0; }
.logo-dmw__txt { font-size: .82rem; color: #64748B; }
.entete-dmw__actions { display: flex; align-items: center; gap: .8rem; }
.retour-maquette { display: inline-flex; align-items: center; gap: .4rem; font-size: .86rem; font-weight: 600; color: #0C4DB5; text-decoration: none; }
.retour-maquette svg { width: 16px; height: 16px; transform: rotate(180deg); }

.titre-offre { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.grille-constat { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.constat { padding: 1.9rem 1.6rem; background: #F1F5FB; border-radius: 10px; border-top: 3px solid #0C4DB5; }
.constat__chiffre { font-family: "Poppins", sans-serif; font-size: 3.2rem; font-weight: 800; color: #0C4DB5; line-height: 1; margin: 0 0 .5rem; }
.constat__txt { font-size: .92rem; margin: 0; }

.liste-check { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: .6rem; }
.liste-check li { display: flex; align-items: flex-start; gap: .55rem; font-size: .94rem; }
.liste-check svg { width: 17px; height: 17px; color: #0C4DB5; flex: none; margin-top: .25rem; }

.encadre { padding: 1.2rem 1.4rem; margin-bottom: 1.2rem; background: #F1F5FB; border-left: 3px solid #0C4DB5; border-radius: 0 8px 8px 0; font-size: .93rem; }
.encadre svg { width: 16px; height: 16px; vertical-align: -.15em; color: #0C4DB5; }

.devis { width: 100%; border-collapse: collapse; margin-bottom: 2.5rem; }
.devis caption { text-align: left; font-family: "Poppins", sans-serif; font-weight: 700; color: #0F172A; font-size: 1.1rem; padding-bottom: .8rem; }
.devis th, .devis td { text-align: left; padding: 1rem .5rem; border-bottom: 1px solid #E2E8F0; vertical-align: top; }
.devis tbody th { font-weight: 600; color: #0F172A; font-size: .98rem; }
.devis__det { display: block; font-weight: 400; font-size: .86rem; color: #64748B; margin-top: .25rem; }
.devis__prix { text-align: right !important; white-space: nowrap; font-family: "Poppins", sans-serif; font-weight: 700; color: #0F172A; font-variant-numeric: tabular-nums; }
.devis tfoot th, .devis tfoot td { border-bottom: 0; border-top: 2px solid #0F172A; font-size: 1.1rem; }
.devis tfoot .devis__prix { color: #0C4DB5; font-size: 1.35rem; }
.devis__note { font-size: .85rem; color: #64748B; }

.pied-dmw { background: #0F172A; color: #94A3B8; padding-block: 3.5rem 2rem; }
.pied-dmw__haut { display: grid; gap: 2.5rem; grid-template-columns: 2fr 1fr 1fr; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.pied-dmw__nom { font-family: "Poppins", sans-serif; font-size: 1.35rem; font-weight: 800; color: #fff; margin: 0 0 .8rem; }
.pied-dmw__txt { font-size: .88rem; max-width: 40ch; }
.pied-dmw__liens { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .89rem; }
.pied-dmw__liens a { color: #94A3B8; text-decoration: none; }
.pied-dmw__liens a:hover { color: #fff; }
.pied-dmw__bas { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-top: 1.6rem; font-size: .8rem; color: #64748B; }
.pied-dmw__bas p { margin: 0; }

/* --------------------------------------------------------------------------
   Mosaique (masonry) — hauteurs libres, cadrage d'origine respecte
   -------------------------------------------------------------------------- */
.mosaique { columns: 3; column-gap: 1.3rem; }
.mos { break-inside: avoid; margin: 0 0 1.3rem; }
.mos img {
  width: 100%; height: auto;
  /* les hauteurs varient avec le cadrage d'origine, mais on plafonne les
     portraits : sans cela une seule photo tres haute creuse un vide en bas
     de colonne, les colonnes CSS ne pouvant pas couper un element. */
  max-height: 560px; object-fit: cover;
  border-radius: var(--r-m); background: var(--chaux-2);
  transition: transform .45s var(--e);
}
.mos:hover img { transform: translateY(-4px); }
.mos__leg {
  margin-top: .65rem; padding-left: .85rem;
  border-left: 3px solid var(--azulejo);
  font-size: .84rem; color: var(--gris);
}

/* --------------------------------------------------------------------------
   Avis clients — section rendue seulement si de vrais avis existent
   -------------------------------------------------------------------------- */
.note { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.2rem; }
.note__val { font-family: var(--titre); font-size: 2rem; font-weight: 800; color: var(--encre); line-height: 1; }
.note__etoiles { display: inline-flex; gap: .12rem; color: #E8A33D; }
.note__etoiles svg { width: 19px; height: 19px; }
.note__txt { font-size: .85rem; color: var(--gris-clair); }

.grille-avis { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.avis {
  margin: 0; padding: 1.9rem 1.7rem;
  background: var(--blanc);
  border: 1px solid var(--bordure); border-top: 3px solid var(--terre);
  border-radius: var(--r-m);
}
.avis__txt { font-size: .98rem; color: var(--gris); }
.avis__txt::before { content: "“"; font-family: var(--titre); font-size: 2.4rem; line-height: 0; color: var(--azulejo); vertical-align: -.28em; margin-right: .18rem; }
.avis__pied { display: flex; flex-direction: column; margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--bordure); }
.avis__nom { font-family: var(--titre); font-weight: 600; color: var(--encre); }
.avis__src { font-size: .8rem; color: var(--gris-clair); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .grille-metiers { grid-template-columns: repeat(4, 1fr); }
  .metier, .metier--large { grid-column: span 2; }
}

@media (max-width: 1080px) {
  .pied__haut { grid-template-columns: 1fr 1fr; }
  .pied__marque { grid-column: 1 / -1; }
}

@media (max-width: 1080px) {
  .mosaique { columns: 2; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: flex; }
  .btn__tel { display: none; }
  .btn--tel { padding-inline: .85rem; }
  .btn--devis span { display: none; }
  .btn--devis { padding-inline: .85rem; }
  .duo, .duo--etapes { grid-template-columns: 1fr; }
  .duo--inverse .duo__media { order: 0; }
  .duo__media--collant { position: static; }
  .pied-dmw__haut { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --pas: clamp(3.5rem, 11vw, 5rem); }
  .mosaique { columns: 1; }
  .hero__puces { bottom: .5rem; }
  .grille-metiers { grid-template-columns: 1fr; }
  .metier, .metier--large { grid-column: span 1; }
  .metier--large .metier__media { aspect-ratio: 3 / 2; }
  .champ-duo { grid-template-columns: 1fr; }
  .rappel__int { flex-direction: column; align-items: flex-start; }
  .hero__reperes { gap: .9rem 1.4rem; }
  .appel-flottant { display: inline-flex; }
  .badge-dmw { left: .75rem; bottom: .75rem; padding: .5rem .8rem .5rem .5rem; }
  .badge-dmw__pic { width: 28px; height: 28px; }
  .badge-dmw__sur { display: none; }
  .pied__haut { grid-template-columns: 1fr; gap: 2rem; }
  .fiche-legale__liste { grid-template-columns: 1fr; }
  .etape { padding-left: 3.6rem; }
}

@media (max-width: 720px) {
  /* en-tete de la page /offre/ : les deux actions ne tiennent pas sur une
     ligne a cote du logo, elles passent dessous */
  .entete-dmw__int { flex-wrap: wrap; gap: .7rem; padding-block: .8rem; }
  .logo-dmw__sep, .logo-dmw__txt { display: none; }
  .entete-dmw__actions { width: 100%; justify-content: space-between; }
}

@media (max-width: 560px) {
  /* tableaux de prix : les lignes s'empilent plutot que de forcer la largeur */
  .devis, .devis tbody, .devis tfoot, .devis tr, .devis th, .devis td {
    display: block; width: 100%;
  }
  .devis th, .devis td { padding-inline: 0; }
  .devis tbody tr { border-bottom: 1px solid #E2E8F0; padding-block: .9rem; }
  .devis th { border-bottom: 0; }
  .devis__prix { text-align: left !important; padding-top: .35rem; }
}

@media (max-width: 430px) {
  .logo__sous { display: none; }
  .logo__img { height: 40px; }
  .logo__marque { width: 38px; height: 38px; font-size: 1rem; }
  .logo__nom { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .apparait { opacity: 1; transform: none; }
}

.liste-404 { margin-top: 1rem; }
.liste-404 a { color: var(--azulejo); font-weight: 500; }

/* ==========================================================================
   MISE EN PAGE « PLEINE LARGEUR »
   Activee par MISE_EN_PAGE = "pleine" dans build/config.py, qui pose
   <html data-largeur="pleine">. Meme direction artistique : seule la
   structure change. Le texte long garde une largeur de lecture, sinon les
   lignes deviennent illisibles sur un grand ecran.
   ========================================================================== */
[data-largeur="pleine"] .contenant {
  width: 100%; max-width: none;
  padding-inline: clamp(1.25rem, 4.5vw, 5rem);
  margin-inline: auto;
}
[data-largeur="pleine"] .contenant--etroit {
  width: 100%; max-width: 820px;
  padding-inline: clamp(1.25rem, 4.5vw, 5rem);
}

[data-largeur="pleine"] .hero { min-height: min(92vh, 900px); display: flex; align-items: center; }
[data-largeur="pleine"] .hero__int { padding-block: clamp(6rem, 14vw, 10rem); max-width: 52rem; }
[data-largeur="pleine"] .hero__titre { font-size: clamp(2.4rem, 6vw, 4.8rem); }

[data-largeur="pleine"] .hero-p { min-height: min(62vh, 620px); display: flex; align-items: center; }
[data-largeur="pleine"] .hero-p__int { padding-block: clamp(4.5rem, 9vw, 7rem); max-width: 50rem; }

[data-largeur="pleine"] .titre-section { font-size: clamp(2.1rem, 4.4vw, 4rem); }

[data-largeur="pleine"] .bande img { height: clamp(320px, 58vh, 680px); }
[data-largeur="pleine"] .rappel { padding-block: clamp(4rem, 7vw, 6.5rem); }

@media (min-width: 1100px) {
  [data-largeur="pleine"] .duo { gap: clamp(2.5rem, 6vw, 6rem); }
  [data-largeur="pleine"] .duo__media img { border-radius: 0; }
}
@media (min-width: 1500px) {
  [data-largeur="pleine"] .galerie:not([class*="--n"]) { grid-template-columns: repeat(4, 1fr); }
  [data-largeur="pleine"] .grille-zones { grid-template-columns: repeat(3, 1fr); }
  [data-largeur="pleine"] .mosaique { columns: 4; }
}
@media (min-width: 2000px) {
  [data-largeur="pleine"] .galerie:not([class*="--n"]) { grid-template-columns: repeat(5, 1fr); }
}
