/* Les Couleurs du Bassin — feuille de style unique, MOBILE D'ABORD :
   les règles de base visent le téléphone ; @media (min-width: 761px) = tablette, (min-width: 1081px) = ordinateur. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700 800; font-stretch: 75% 90%;
  font-display: swap; src: url(/fonts/bricolage-titres.woff2?v=20261016) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400;
  font-display: swap; src: url(/fonts/atkinson-400.woff2?v=20261016) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700;
  font-display: swap; src: url(/fonts/atkinson-700.woff2?v=20261016) format("woff2"); }

:root {
  --indigo: #3D4175;
  --indigo-fonce: #262950;
  --nuit: #1A1C38;
  --orange: #E38A2B;
  --orange-vif: #F09A3A;
  --vert: #4C9A3A;
  --gris: #9A9A9A;
  --ecume: #F4F5FA;
  --encre: #1E2033;
  --sur-orange: #010709;
  --ruban: #E8D9A8;
  --titre: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --texte: "Atkinson Hyperlegible", system-ui, sans-serif;
  --l: min(1180px, 100% - 2rem);
  --rayon: 6px;
  --entete: 64px;
}

/* ---------- Base (mobile) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--entete) + 40px); scroll-padding-bottom: 5.5rem; }
body { margin: 0; font-family: var(--texte); font-size: 1.03rem; line-height: 1.65; color: var(--encre); background: #fff;
  overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--titre); font-stretch: 82%; font-weight: 800; line-height: 1.04; letter-spacing: -.01em;
  margin: 0 0 .5em; color: var(--nuit); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 9vw, 5rem); }
h2 { font-size: clamp(1.75rem, 6.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 4.6vw, 1.55rem); font-stretch: 90%; }
p { margin: 0 0 1em; max-width: 68ch; }
.contenu { width: var(--l); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.evitement { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 100; }
.evitement:focus { left: 1rem; }

/* ---------- Boutons (48 px minimum pour le doigt) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px;
  font-family: var(--titre); font-weight: 700; font-stretch: 90%; font-size: 1.08rem; padding: .8rem 1.3rem;
  border-radius: 999px; text-decoration: none; border: 2px solid transparent; white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease; }
.btn:active { transform: scale(.97); }
.btn-orange { background: var(--orange); color: var(--sur-orange); box-shadow: 0 4px 0 #A9601A; }
.btn-clair { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-indigo { background: var(--indigo); color: #fff; }
.btn-sombre { background: var(--nuit); color: #fff; }
.btn-blanc { background: #fff; color: var(--nuit); }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: var(--indigo); color: #fff; }
.entete-in { width: min(1320px, 100% - 1.5rem); margin-inline: auto; display: flex; align-items: center; gap: 1rem; min-height: var(--entete); }
.logo img { width: 190px; height: auto; }
.burger { margin-left: auto; background: none; border: 0; padding: .7rem; cursor: pointer; min-width: 48px; min-height: 48px; }
.burger span:not(.sr) { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu { position: fixed; inset: var(--entete) 0 0 0; background: var(--indigo); display: flex; flex-direction: column;
  padding: 1.25rem 1rem 7rem; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; visibility: hidden; }
.menu.ouvert { transform: none; visibility: visible; }
.menu > ul { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.menu a, .menu button { color: #fff; text-decoration: none; font: 700 1.15rem var(--texte); background: none; border: 0;
  width: 100%; text-align: left; padding: .85rem .5rem; min-height: 48px; border-radius: 4px; cursor: pointer;
  display: flex; align-items: center; line-height: 1.2; }
.deroulant > button::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .55em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.2em) rotate(45deg); }
.deroulant ul { list-style: none; margin: 0 0 .5rem; padding: 0 0 0 .5rem; display: none; }
.deroulant.ouvert ul { display: block; }
.deroulant ul a { flex-direction: column; align-items: flex-start; gap: .1rem; border-left: 4px solid var(--teinte, var(--orange));
  padding: .6rem .8rem; margin: .3rem 0; }
.deroulant ul a strong { font-size: 1.08rem; }
.deroulant ul a span { font: 400 .9rem var(--texte); opacity: .8; }
.menu .btn-entete { justify-content: center; margin-top: 1.2rem; background: var(--orange); color: var(--sur-orange);
  border-radius: 999px; text-align: center; }

/* La coulure : signature du logo */
.coulures { position: absolute; left: 0; right: 0; top: 100%; width: 100%; height: 26px; fill: var(--indigo);
  pointer-events: none; transform-origin: top; }
.entete .coulures { animation: couler 1.6s cubic-bezier(.3,.6,.2,1) both .2s; }
@keyframes couler { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--nuit); color: #fff; overflow: hidden; padding: 3.2rem 0 0; }
.hero-grille { width: var(--l); margin-inline: auto; display: grid; gap: 2.2rem; align-items: center; }
.hero-grille > * { min-width: 0; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero-texte p { font-size: 1.1rem; color: #D9DBEA; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.4rem 0 1.2rem; }
.actions .btn { flex: 1 1 100%; }
.confiance { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; padding: 0; margin: 0; color: #C9CCE0; font-size: .95rem; }
.confiance li { display: flex; align-items: center; gap: .45rem; }
.etoiles { color: #FFC24A; letter-spacing: .1em; }
.hero-visuel { position: relative; aspect-ratio: 4 / 3; margin: 0 6% 0 4%; }
.hero-visuel img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--rayon); position: relative; z-index: 2; }
.carre { position: absolute; z-index: 1; }
.carre-orange { width: 34%; aspect-ratio: 1; background: var(--orange); right: -7%; bottom: -6%; animation: glisser 1s ease-out both .5s; }
.carre-vert { width: 18%; aspect-ratio: 1; background: var(--vert); left: -6%; top: -5%; animation: glisser 1s ease-out both .65s; }
.carre-gris { width: 11%; aspect-ratio: 1; background: var(--gris); left: 10%; bottom: -8%; z-index: 3; animation: glisser 1s ease-out both .8s; }
@keyframes glisser { from { opacity: 0; transform: translate(-30px, 30px); } to { opacity: 1; transform: none; } }
@keyframes devoiler { from { clip-path: inset(0 100% 0 0 round 6px); } to { clip-path: inset(0 0 0 0 round 6px); } }

/* Ruban de masquage avec les communes */
.ruban { position: relative; z-index: 4; margin-top: 3rem; transform: rotate(-1.6deg); margin-inline: -2%;
  background: var(--ruban); color: var(--nuit); padding: .7rem 0; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.25);
  -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ruban-piste { display: flex; width: max-content; animation: defiler 45s linear infinite; }
.ruban ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ruban li { font-family: var(--titre); font-weight: 700; font-stretch: 80%; font-size: 1.15rem; padding: 0 1rem; white-space: nowrap; }
.ruban li::after { content: ""; display: inline-block; width: .5em; height: .5em; background: var(--orange); margin-left: 2rem; vertical-align: .15em; }
.ruban a { color: inherit; text-decoration: none; }
@keyframes defiler { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-ecume { background: var(--ecume); }
.intro-section { max-width: 62ch; margin-bottom: 2rem; }
.intro-section p { font-size: 1.08rem; }

/* Prestations : photo de chantier en fond, voile léger, encadré translucide (esprit de l'ancien site) */
.nuancier { display: grid; gap: 1rem; }
.nuancier > * { min-width: 0; }
.carte-photo { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 320px; padding: .8rem;
  border-radius: var(--rayon); overflow: hidden; text-decoration: none; color: var(--nuit); background: var(--nuit);
  box-shadow: 0 14px 34px -22px rgba(26,28,56,.7); transition: transform .25s cubic-bezier(.3,.7,.3,1), box-shadow .25s; }
.carte-photo-fond { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.carte-photo-vide { background: var(--teinte, var(--gris));
  background-image: linear-gradient(135deg, rgba(255,255,255,.18) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.18) 50%, rgba(255,255,255,.18) 75%, transparent 75%);
  background-size: 46px 46px; }
.carte-photo-voile { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(26,28,56,0) 35%, rgba(26,28,56,.35) 100%); }
.carte-photo-texte { width: 100%; padding: 1rem 1.1rem 1.05rem; border-radius: 4px; border-top: 5px solid var(--teinte, var(--orange));
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .25s; }
.carte-photo h3 { margin-bottom: .25em; }
.carte-photo p { font-size: .97rem; margin: 0 0 .5rem; color: #3A3D58; }
.carte-photo-lien { font-weight: 700; color: var(--indigo); text-decoration: underline; text-underline-offset: .2em; }
.carte-petite { min-height: 230px; }
.carte-petite h3 { font-size: 1.25rem; }
.et-aussi { margin: 2.5rem 0 1rem; font-size: 1.3rem; }
.cartes-secondaires { display: grid; gap: 1rem; }
.cartes-secondaires > * { min-width: 0; }

/* Compteurs */
.compteurs { background: var(--indigo); color: #fff; }
.compteurs-grille { display: grid; gap: 1.6rem; text-align: center; }
.compteur strong { display: block; font-family: var(--titre); font-weight: 800; font-stretch: 75%; font-size: clamp(3rem, 14vw, 6rem); line-height: 1; color: #fff; }
.compteur:nth-child(1) strong { color: var(--orange); }
.compteur:nth-child(2) strong { color: #8FD27E; }
.compteur span { color: #D9DBEA; font-size: 1.05rem; }

/* Déroulé */
.etapes { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; counter-reset: e; }
.etapes li { counter-increment: e; position: relative; padding-left: 4rem; min-height: 3.2rem; }
.etapes li::before { content: counter(e); position: absolute; top: 0; left: 0; width: 3rem; height: 3rem; display: grid; place-items: center;
  font: 800 1.5rem var(--titre); color: #fff; background: var(--indigo); border-radius: 50% 50% 50% 8%; }
.etapes li:nth-child(2)::before { background: var(--orange); color: var(--sur-orange); }
.etapes li:nth-child(3)::before { background: var(--vert); }
.etapes li:nth-child(4)::before { background: var(--nuit); }
.etapes h3 { margin-bottom: .35em; }
.etapes p { font-size: 1rem; color: #4A4D66; }

/* Galerie */
.galerie { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.galerie figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--rayon); }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); transition: transform .6s ease; }
.galerie figcaption { padding: .5rem .2rem .2rem; font-size: .88rem; color: #4A4D66; }
/* Avant / après (photos de chantier côte à côte) */
.paires { display: grid; gap: 1.6rem; }
.paire h3 { margin: 0 0 .6rem; }
.paire-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.paire-photos figure { margin: 0; position: relative; }
.paire-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--rayon); }
.paire-photos figcaption { position: absolute; left: .5rem; top: .5rem; padding: .2rem .6rem; border-radius: 4px;
  background: var(--nuit); color: #fff; font-weight: 700; font-size: .85rem; }
.paire-photos figure + figure figcaption { background: var(--orange); color: var(--sur-orange); }
@media (min-width: 761px) { .paires { grid-template-columns: 1fr 1fr; } }
.lien-suite { display: inline-block; margin-top: 1.2rem; font-weight: 700; padding: .6rem 0; }

/* Zones */
.zones-grille { display: grid; gap: 2rem; align-items: start; }
.villes-liste { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; padding: 0; margin: 0; }
.villes-liste a { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .95rem; border-radius: 999px; background: #fff;
  border: 2px solid #DADCEB; text-decoration: none; color: var(--nuit); font-weight: 700; transition: .2s; }
.quartiers span { display: inline-block; padding: .45rem .95rem; border-radius: 4px; background: var(--indigo); color: #fff; font-weight: 700; }
.quartiers li:nth-child(3n+2) span { background: var(--vert); color: var(--sur-orange); }
.quartiers li:nth-child(3n) span { background: var(--orange); color: var(--sur-orange); }

/* Avis */
.avis-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.5rem; margin-bottom: 1.5rem; }
.avis-tete h2 { margin: 0; }
.avis-tete p { margin: 0; }
.avis-tete .etoiles { color: #F5A400; }
.avis .etoiles { color: #F5A400; font-size: 1.2rem; letter-spacing: .08em; }
.avis blockquote { font-size: 1.02rem; line-height: 1.55; color: var(--encre); }
.avis-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.avis { background: #fff; border-radius: var(--rayon); padding: 1.4rem; border-top: 5px solid var(--orange); margin: 0; }
.avis blockquote { margin: .5rem 0 1rem; }
.avis figcaption { font-weight: 700; color: var(--indigo); }

/* FAQ */
.faq { padding: 3rem 0; }
.faq-liste { max-width: 860px; }
.faq-item { border-bottom: 2px solid #E3E5F0; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.05rem 2.4rem 1.05rem 0; position: relative; min-height: 48px;
  font-family: var(--titre); font-weight: 700; font-stretch: 90%; font-size: 1.15rem; color: var(--nuit); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: .3rem; top: 50%; width: 1.2rem; height: 1.2rem; margin-top: -.6rem;
  background: linear-gradient(var(--orange) 0 0) center/100% 3px no-repeat, linear-gradient(var(--orange) 0 0) center/3px 100% no-repeat; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-r { padding: 0 0 1.2rem; }

/* CTA final */
.cta-final { position: relative; background: var(--orange); color: var(--sur-orange); padding: 3.5rem 0 3rem; margin-top: 26px; }
.cta-final .coulures { top: 0; transform: rotate(180deg) translateY(100%); fill: var(--orange); }
.cta-final h2 { color: var(--sur-orange); }
.cta-final p { font-size: 1.1rem; }

/* Pages intérieures */
.tete-page { padding: 3rem 0 1.5rem; }
.fil { font-size: .9rem; color: #5A5D78; margin-bottom: 1rem; }
.fil a { color: #5A5D78; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 5.5vw, 2.2rem); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--orange); }
.prose h2:first-child { margin-top: 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; }

/* En-tête sombre des pages intérieures */
.tete-sombre { padding-bottom: 3rem; }
.tete-sombre h1 { font-size: clamp(2.1rem, 8vw, 4.2rem); }
.tete-sombre .hero-texte p { font-size: 1.05rem; }
.tete-sombre .fil, .tete-sombre .fil a { color: #A9ACC8; }
.tete-carres { display: none; }
/* Accueil : photo en fond du haut de page, comme sur l'ancien site */
.hero-photo { isolation: isolate; }
.hero-fond { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(26,28,56,.86) 0%, rgba(26,28,56,.8) 55%, rgba(26,28,56,.92) 100%); }
/* Bandes avec photo en fond (chiffres, zones) */
/* Preuves du haut de page : avis Google et ancienneté bien visibles */
.preuves { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: .4rem 0 0; }
.preuves li { display: flex; flex-direction: column; justify-content: center; gap: .05rem; padding: .6rem .95rem;
  border-radius: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #D9DBEA; font-size: .92rem; line-height: 1.25; }
.preuves strong { font-family: var(--titre); font-stretch: 85%; font-size: 1.35rem; color: #fff; line-height: 1.05; }
.preuve-avis { margin: .2rem 0 0; font-size: 1.2rem; line-height: 1.3; }
.preuve-avis a { color: #fff; text-decoration: none; }
.preuve-avis strong { font-family: var(--titre); font-stretch: 85%; font-size: 1.55rem; }
.preuve-avis .etoiles { color: #FFC24A; font-size: 1.45rem; letter-spacing: .08em; vertical-align: -.05em; }
/* Haut de page allégé : une seule colonne de texte sur la photo, voile plus uniforme pour la lisibilité */
.hero-simple .hero-grille { grid-template-columns: 1fr; }
.hero-simple .hero-texte { max-width: 760px; }
.hero-simple::before { background: rgba(26,28,56,.84); }
.bande-photo { position: relative; isolation: isolate; overflow: hidden; }
.bande-fond { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.bande-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.bande-sombre::before { background: rgba(61,65,117,.86); }
.bande-claire::before { background: rgba(255,255,255,.35); }
.bande-panneau { background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: var(--rayon); padding: 1.5rem 1.2rem; border-top: 6px solid var(--orange); box-shadow: 0 20px 50px -30px rgba(26,28,56,.6); }
/* Photo du chantier en fond, sous un voile indigo transparent */
.tete-photo { isolation: isolate; }
.tete-fond { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.tete-photo::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(26,28,56,.84) 0%, rgba(26,28,56,.78) 60%, rgba(26,28,56,.9) 100%); }

/* Contenu + encart devis */
.colonnes { display: grid; gap: 2.5rem; align-items: start; }
.colonnes > * { min-width: 0; }
.encart-in { background: var(--ecume); border-radius: var(--rayon); padding: 1.4rem; border-top: 6px solid var(--orange); }
.encart h2 { font-size: 1.55rem; }
.encart-preuve { background: #fff; border-radius: 6px; padding: .6rem .8rem; font-size: .95rem; line-height: 1.5; }
.encart-preuve .etoiles { color: #F5A400; letter-spacing: .06em; }
.encart-mail { font-size: .92rem; margin: .4rem 0 0; overflow-wrap: anywhere; }
.encart h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.encart .btn { width: 100%; margin-bottom: .6rem; }
.encart ul { list-style: none; padding: 0; margin: 0; }
.encart li a { display: inline-block; padding: .35rem 0; }

/* Blog */
.grille-articles { display: grid; gap: 1rem; }
.carte-article { display: flex; flex-direction: column; gap: .4rem; padding: 1.3rem; border-radius: var(--rayon); background: var(--ecume);
  text-decoration: none; color: var(--encre); border-bottom: 5px solid var(--indigo); transition: transform .2s; }
.carte-article:nth-child(3n+2) { border-bottom-color: var(--orange); }
.carte-article:nth-child(3n) { border-bottom-color: var(--vert); }
.carte-article h2 { font-size: 1.4rem; margin: 0; }
.carte-article p { font-size: .98rem; color: #4A4D66; margin: 0; }
.carte-date { font-size: .9rem; color: #5E6180; }
.carte-lire { margin-top: auto; padding-top: .6rem; font-weight: 700; color: var(--indigo); }
.article-meta { font-size: .95rem; color: #B9BCD6 !important; margin-bottom: .6rem; }
.article-liens { margin-top: 2rem; padding-top: 1rem; border-top: 2px solid #E3E5F0; }
.bandeau-valider { background: #FFF4E6; border-left: 5px solid var(--orange); padding: 1rem 1.1rem; border-radius: 4px; }

/* Formulaire de devis */
.formulaire { background: #fff; border-radius: var(--rayon); padding: 1.3rem; box-shadow: 0 20px 50px -30px rgba(26,28,56,.5);
  border: 1px solid #E3E5F0; scroll-margin-top: calc(var(--entete) + 40px); }
.formulaire h2 { font-size: clamp(1.55rem, 6vw, 2.1rem); }
.champs { display: grid; gap: 0 1rem; }
.formulaire label { display: block; font-weight: 700; margin-bottom: 1rem; color: var(--nuit); }
.formulaire input:not([type=checkbox]), .formulaire select, .formulaire textarea {
  display: block; width: 100%; margin-top: .35rem; padding: .8rem .9rem; min-height: 48px; font: 400 1rem var(--texte); color: var(--encre);
  border: 2px solid #D5D8E8; border-radius: 6px; background: #fff; transition: border-color .2s; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { border-color: var(--indigo); outline: none; box-shadow: 0 0 0 3px rgba(61,65,117,.18); }
.formulaire input[aria-invalid="true"] { border-color: #C0392B; }
.formulaire .case { display: block; position: relative; padding-left: 2.1rem; font-weight: 400; font-size: .95rem; }
.formulaire .case input { position: absolute; left: 0; top: .1rem; margin: 0; width: 1.4rem; height: 1.4rem; accent-color: var(--indigo); }
.formulaire .piege { position: absolute; left: -9999px; }
.formulaire button { width: 100%; font-size: 1.15rem; padding: 1rem; cursor: pointer; }
.formulaire button[disabled] { opacity: .6; cursor: wait; }
.form-retour { margin: 1rem 0 0; font-weight: 700; }
.form-retour.ok { color: var(--vert); }
.form-retour.erreur { color: #B03A2E; }
.chiffres { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.chiffres li { margin-bottom: .5rem; }
.chiffres strong { font-family: var(--titre); font-size: 1.6rem; color: var(--indigo); margin-right: .3rem; }

/* Pied de page */
.pied { background: var(--nuit); color: #C9CCE0; padding: 3.5rem 0 7.5rem; }
.pied a { color: #fff; text-decoration: none; display: inline-block; padding: .3rem 0; }
.pied h2 { color: #fff; font-size: 1.2rem; font-stretch: 90%; margin-bottom: .6rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied-grille { display: grid; gap: 2rem; }
.pied address { font-style: normal; line-height: 1.8; }
.pied-villes { columns: 2; column-gap: 1rem; }
.pied-bas { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; max-width: none; }
.pied-reseaux { display: flex; gap: 1rem; margin-top: 1rem !important; }

/* Réseaux sociaux : logos officiels, couleurs de marque */
.reseaux { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.reseau { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-width: 48px; min-height: 48px;
  border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; transition: transform .2s, filter .2s; }
.reseau-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.reseau-facebook { background: #0866FF; }
.reseau-youtube { background: #FF0000; }
.reseaux-noms .reseau, .reseaux-grands .reseau { padding: .7rem 1.2rem .7rem 1rem; }
.pied .reseau { display: inline-flex; color: #fff; padding: 0; }
.section-reseaux { background: #fff; padding: 3rem 0; border-bottom: 1px solid #E3E5F0; }
.reseaux-grille { display: grid; gap: 1.2rem; align-items: center; }
.reseaux-grille h2 { margin-bottom: .3em; }
.reseaux-grille p { margin: 0; }
.reseaux-grille p.annuaires { margin-top: .6rem; font-size: .95rem; }
.reseaux-grands { gap: .8rem; }
.reseaux-grands .reseau { font-family: var(--titre); font-stretch: 90%; font-size: 1.3rem; min-height: 64px; padding: .9rem 1.8rem .9rem 1.4rem; box-shadow: 0 10px 24px -14px rgba(26,28,56,.6); }
.reseaux-grands svg { width: 30px; height: 30px; }
.encart .reseaux { margin-top: .4rem; }
.encart .reseau { display: inline-flex; width: auto; margin: 0; padding: .55rem 1.1rem .55rem .85rem; }

/* Barre d'appel fixe (mobile) */
.barre-appel { display: grid; grid-template-columns: 1.15fr 1fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: .55rem .6rem calc(.55rem + env(safe-area-inset-bottom)); background: rgba(26,28,56,.96); }
.barre-appel .btn { padding: .75rem .5rem; font-size: 1rem; box-shadow: none; }

/* Apparition au défilement (activée par JS uniquement) */
.js .apparait { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .apparait.vu { opacity: 1; transform: none; }

/* ---------- Tablette ---------- */
@media (min-width: 761px) {
  :root { --l: min(1180px, 100% - 2.5rem); --entete: 76px; }
  body { font-size: 1.0625rem; }
  html { scroll-padding-bottom: 0; }
  .logo img { width: clamp(200px, 22vw, 250px); }
  .coulures { height: 38px; }
  .hero { padding-top: clamp(4.5rem, 9vw, 7rem); }
  .actions .btn { flex: 0 0 auto; }
  .hero-texte p { font-size: 1.2rem; }
  .ruban { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
  .ruban li { font-size: 1.25rem; }
  .section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
  .intro-section { margin-bottom: 2.5rem; }
  .intro-section p { font-size: 1.15rem; }
  .nuancier { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
  .carte-vedette { grid-column: span 2; min-height: 400px; }
  .carte-large { grid-column: span 2; }
  .cartes-secondaires { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
  .cartes-4 { grid-template-columns: 1fr 1fr; }
  .compteurs-grille { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .etapes { grid-template-columns: 1fr 1fr; }
  .galerie { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .zones-grille { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .faq { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
  .faq-item summary { font-size: 1.22rem; }
  .cta-final { padding: clamp(4.5rem, 8vw, 6rem) 0 clamp(3.5rem, 6vw, 5rem); margin-top: 38px; }
  .tete-sombre { padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
  .tete-sombre .hero-texte p { font-size: 1.12rem; }
  .grille-articles { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
  .formulaire { padding: clamp(1.4rem, 3vw, 2.2rem); }
  .champs { grid-template-columns: 1fr 1fr; }
  .pied { padding: 4.5rem 0 7.5rem; }
  .pied-grille { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* ---------- Ordinateur ---------- */
@media (min-width: 1081px) {
  .burger { display: none; }
  .menu { position: static; inset: auto; background: none; flex-direction: row; align-items: center; gap: 1.25rem; padding: 0;
    margin-left: auto; overflow: visible; transform: none; visibility: visible; transition: none; }
  .menu > ul { flex-direction: row; gap: .2rem; }
  .menu > ul > li { display: flex; align-items: center; }
  .menu a, .menu button { font: 600 1rem var(--texte); width: auto; padding: .55rem .7rem; min-height: 0; }
  .deroulant { position: relative; }
  .deroulant > button::after { margin-left: .45em; }
  .deroulant ul { display: block; position: absolute; z-index: 70; top: calc(100% + 8px); left: 50%; width: 320px; margin: 0; padding: .6rem;
    background: #fff; border-radius: 10px; box-shadow: 0 24px 50px rgba(26,28,56,.3); opacity: 0; visibility: hidden;
    transform: translate(-50%, 8px); transition: .18s ease; }
  .deroulant ul::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
  .deroulant ul a { color: var(--nuit); display: flex; width: 100%; padding: .7rem .9rem; margin: .15rem 0; border-radius: 0 6px 6px 0; }
  .deroulant ul a strong { font-family: var(--titre); font-stretch: 88%; font-size: 1.12rem; }
  .deroulant ul a span { color: #5E6180; opacity: 1; }
  .deroulant:hover ul, .deroulant:has(:focus-visible) ul, .deroulant.ouvert ul { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .menu .btn-entete { display: inline-flex; width: auto; margin-top: 0; padding: .55rem 1.1rem; font: 700 1rem var(--titre); min-height: 44px; }
  .hero-grille { grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); }
  .hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.6rem); }
  .hero-visuel { aspect-ratio: 4 / 4.4; margin: 0; }
  .hero-visuel img { animation: devoiler 1.1s cubic-bezier(.7,0,.2,1) both .35s; }
  .hero-photo::before { background: linear-gradient(90deg, rgba(26,28,56,.92) 0%, rgba(26,28,56,.8) 50%, rgba(26,28,56,.55) 100%); }
  .hero-simple .hero-grille { grid-template-columns: 1fr; }
  .hero-simple { padding-bottom: 0; min-height: 640px; }
  .hero-simple::before { background: linear-gradient(90deg, rgba(26,28,56,.94) 0%, rgba(26,28,56,.82) 55%, rgba(26,28,56,.45) 100%); }
  .bande-panneau { padding: clamp(1.8rem, 4vw, 3rem); }
  .reseaux-grille { grid-template-columns: 1fr auto; gap: 2rem; }
  .tete-photo::before { background: linear-gradient(90deg, rgba(26,28,56,.93) 0%, rgba(26,28,56,.8) 45%, rgba(26,28,56,.38) 100%); }
  .tete-photo .tete-carres { width: 150px; gap: 8px; margin: 0 0 -3.2rem auto; align-self: end; transform: rotate(-4deg); }
  .tete-carres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; width: min(360px, 80%); margin-inline: auto; transform: rotate(-4deg); }
  .tete-carres span { aspect-ratio: 1; border-radius: 4px; animation: glisser .9s ease-out both; }
  .tete-carres span:nth-child(1) { background: var(--orange); animation-delay: .3s; }
  .tete-carres span:nth-child(2) { background: var(--indigo); animation-delay: .45s; }
  .tete-carres span:nth-child(3) { background: var(--vert); animation-delay: .6s; }
  .tete-carres span:nth-child(4) { background: var(--gris); animation-delay: .75s; }
  .nuancier { grid-template-columns: 1.35fr 1fr 1fr; }
  .carte-vedette { grid-column: auto; grid-row: span 2; min-height: 100%; }
  .carte-vedette h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
  .carte-large { min-height: 280px; }
  .cartes-4 { grid-template-columns: repeat(4, 1fr); }
  .etapes { grid-template-columns: repeat(4, 1fr); }
  .etapes li { padding: 4.2rem 0 0; }
  .colonnes { grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(2rem, 5vw, 4.5rem); }
  .colonnes-contact { grid-template-columns: minmax(0, 1fr) 340px; }
  .encart { position: sticky; top: 110px; }
  .encart-in { padding: 1.6rem; }
  .galerie figcaption { position: absolute; inset: auto 0 0 0; padding: 2.2rem 1rem .8rem; color: #fff; font-size: .95rem;
    background: linear-gradient(transparent, rgba(26,28,56,.85)); transform: translateY(35%); opacity: 0; transition: .3s ease; }
  .galerie figure:hover figcaption, .galerie figure:focus-within figcaption { transform: none; opacity: 1; }
  .pied-grille { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .pied-villes { columns: 1; }
  .barre-appel { display: none; }
  .pied { padding-bottom: 4rem; }
}

/* ---------- Survols : uniquement avec une souris ---------- */
@media (hover: hover) {
  a:hover { color: var(--orange); }
  .btn:hover { transform: translateY(-2px); }
  .btn-orange:hover { background: var(--orange-vif); color: var(--sur-orange); }
  .btn-clair:hover { background: #fff; color: var(--indigo); }
  .btn-indigo:hover { background: var(--indigo-fonce); color: #fff; }
  .btn-sombre:hover { color: #fff; background: #000; }
  .btn-blanc:hover { color: var(--nuit); background: var(--ecume); }
  .menu a:hover, .menu button:hover { background: rgba(255,255,255,.1); color: #fff; }
  .deroulant ul a:hover { background: var(--ecume); color: var(--indigo); }
  .ruban:hover .ruban-piste { animation-play-state: paused; }
  .carte-photo:hover { transform: translateY(-6px); color: var(--nuit); box-shadow: 0 26px 44px -22px rgba(26,28,56,.7); }
  .carte-photo:hover .carte-photo-fond { transform: scale(1.06); }
  .carte-photo:hover .carte-photo-texte { background: rgba(255,255,255,.95); }
  .galerie figure:hover img { transform: scale(1.05); }
  .villes-liste a:hover { border-color: var(--orange); background: var(--orange); color: var(--sur-orange); }
  .carte-article:hover { transform: translateY(-5px); color: var(--encre); }
  .pied a:hover { color: var(--orange); }
}
@media (hover: hover) and (max-width: 1080px) {
  .deroulant ul a:hover { background: rgba(255,255,255,.1); color: #fff; }
}
@media (max-width: 1080px) {
  .deroulant ul a { color: #fff; }
}

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

/* Signature de Steven en fin de récit (page Notre histoire) */
.signature { font-family: var(--titre); font-weight: 700; font-size: 1.2rem; color: var(--indigo); margin-top: .2rem; }

/* Notre histoire : 4 photos de chantiers en 2 x 2 dans la colonne de texte */
.galerie-histoire { grid-template-columns: 1fr 1fr !important; margin: 1rem 0 1.5rem; }


/* bandeau cookies (actif seulement si GTM_ID est renseigné) */
.cookies { position: fixed; left: 10px; right: 10px; bottom: 84px; z-index: 70; background: #fff; color: var(--encre);
  border-radius: 14px; padding: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.35); font-size: 15px; max-width: 520px; }
.cookies[hidden] { display: none; }
.cookies p { margin: 0 0 12px; }
.cookies-btn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookies .btn { min-height: 44px; }
.cookies .btn-refus { background: #fff; border: 2px solid var(--indigo); color: var(--indigo); }
@media (min-width: 900px) { .cookies { bottom: 20px; left: 20px; right: auto; } }
