/* Excavation Théroux : style du moodboard du client (novembre 2026).
   Charbon, gris et rouge accent; Montserrat pour les titres et le menu, Roboto pour le texte;
   photos sombres, angles droits, textures de gravier et d'asphalte, sections sombres et claires en alternance. */

@font-face { font-family: "Montserrat"; src: url("/ressources/polices/montserrat-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/ressources/polices/roboto-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* Palette du moodboard */
  --charbon: #1a1a1a;
  --noir: #111111;
  --gris-fonce: #3a3a3a;
  --gris-moyen: #6b6b6b;
  --gris-clair: #d9d9d9;
  --clair: #f3f3f3;
  --clair-2: #e8e8e8;
  --blanc: #ffffff;
  --rouge: #d7090f;          /* rouge accent du moodboard */
  --rouge-survol: #b0070c;
  --rouge-clair: #ff4242;    /* petit texte rouge sur fond sombre (contraste) */

  /* Jetons de section : clair par défaut, redéfinis dans les zones sombres plus bas */
  --fond: var(--clair);
  --texte: var(--charbon);
  --texte-doux: #4a4a4a;
  --trait: rgba(26, 26, 26, .16);
  --rouge-texte: var(--rouge);
  --carte: var(--blanc);
  --carte-trait: rgba(26, 26, 26, .12);

  /* Réglages du socle (site.css) */
  --c-fond: var(--fond);
  --c-fond-2: var(--clair-2);
  --c-texte: var(--texte);
  --c-texte-doux: var(--texte-doux);
  --c-trait: var(--trait);
  --c-accent: var(--rouge);
  --c-accent-texte: #fff;
  --c-sombre: var(--charbon);
  --c-sombre-texte: #f2f2f2;

  --f-titre: "Montserrat", "Arial Black", system-ui, sans-serif;
  --f-texte: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: var(--f-titre);

  --rayon: 0px;
  --rayon-bouton: 0px;
  --ombre: 0 26px 50px -26px rgba(0, 0, 0, .6);

  /* Grain d'asphalte (zones sombres) et de béton (zones claires) */
  --grain-clair: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-sombre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --gravier: url("/ressources/images/texture-gravier.webp");
}

/* Zones sombres : les composants à l'intérieur s'adaptent grâce aux jetons */
.entete, .panneau-menu, .heros, .bande, .services, .methode, .pourquoi, .appel-final, .pied, .barre-mobile, .bon, .visionneuse {
  --fond: var(--charbon);
  --texte: #f2f2f2;
  --texte-doux: #b8b8b8;
  --trait: rgba(255, 255, 255, .14);
  --rouge-texte: var(--rouge-clair);
  --carte: #232323;
  --carte-trait: #333;
  --c-fond: var(--fond);
  --c-texte: var(--texte);
  --c-texte-doux: var(--texte-doux);
  --c-trait: var(--trait);
}

html, body { overflow-x: clip; }
body { background: var(--charbon); color: var(--texte); font: 400 17px/1.65 var(--f-texte); }
main > section, .section { background-color: var(--fond); color: var(--texte); }
h1, h2, h3, h4 { font-family: var(--f-titre); font-weight: 800; letter-spacing: -.01em; }
h1 { font-weight: 900; text-transform: uppercase; line-height: .98; }
h2 { font-size: clamp(28px, 3.5vw, 46px); line-height: 1.04; text-transform: uppercase; }
h3 { line-height: 1.15; }
::selection { background: var(--rouge); color: #fff; }
:focus-visible { outline: 2px solid var(--rouge-clair); outline-offset: 3px; }

/* Étiquette (sur-titre) et barre rouge sous les titres de section */
.etiquette { margin: 0 0 16px; font: 700 12px/1.3 var(--f-titre); letter-spacing: .22em; text-transform: uppercase; color: var(--rouge-texte); }
h2[data-mots]::after { content: ""; display: block; width: 0; height: 4px; margin-top: 18px; background: var(--rouge); transition: width .8s .2s var(--courbe); }
h2[data-mots].est-visible::after, html:not(.js) h2[data-mots]::after { width: 56px; }
.chapeau { color: var(--texte-doux); }

/* --- Boutons : angles droits, rouge plein ou contour ---------------------- */
.bouton { min-height: 52px; padding: 16px 26px; gap: 14px; border: 1.5px solid transparent; font: 700 13px/1 var(--f-titre); letter-spacing: .09em; text-transform: uppercase; transition: background-color .25s, color .25s, border-color .25s, translate .25s var(--courbe), box-shadow .25s; }
.bouton--accent { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.bouton--contour { background: transparent; border-color: currentColor; color: var(--texte); }
@media (hover: hover) {
  .bouton:hover { translate: 0 -2px; }
  .bouton--accent:hover { background: var(--rouge-survol); border-color: var(--rouge-survol); color: #fff; box-shadow: 0 16px 30px -16px rgba(215, 9, 15, .7); }
  .bouton--contour:hover { background: var(--texte); border-color: var(--texte); color: var(--fond); box-shadow: none; }
}
.lien-fleche { padding: 10px 0; font: 700 12px/1 var(--f-titre); letter-spacing: .12em; text-transform: uppercase; color: var(--rouge-texte); }

/* --- En-tête --------------------------------------------------------------- */
.entete { padding-block: 18px; color: var(--texte); }
.entete::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; background: linear-gradient(rgba(10, 10, 10, .78), rgba(10, 10, 10, 0)); pointer-events: none; transition: opacity .35s; }
.entete.est-defile { background: rgba(17, 17, 17, .97); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); padding-block: 10px; }
.entete.est-defile::before { opacity: 0; }
.entete__ligne { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo__image { width: auto; height: 60px; transition: height .3s var(--courbe); }
.entete.est-defile .logo__image { height: 48px; }
.nav-ordi { display: flex; gap: 2px; }
.nav-ordi a { position: relative; padding: 12px 12px; font: 600 12px/1 var(--f-titre); letter-spacing: .1em; text-transform: uppercase; color: #e4e4e4; transition: color .2s; }
.nav-ordi a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--rouge); scale: 0 1; transform-origin: left; transition: scale .35s var(--courbe); }
.nav-ordi a:hover, .nav-ordi a.est-actif { color: #fff; }
.nav-ordi a:hover::after, .nav-ordi a.est-actif::after { scale: 1 1; }
.entete__actions { display: flex; align-items: center; gap: 16px; }
.entete__tel { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font: 700 14px/1 var(--f-titre); letter-spacing: .03em; color: #fff; }
.entete__tel svg { width: 18px; height: 18px; color: var(--rouge-clair); }
.entete__soumission { min-height: 46px; padding: 13px 18px; font-size: 12px; }
.bouton-menu { width: 46px; height: 46px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 0; background: transparent; gap: 6px; align-content: center; justify-items: center; }
.bouton-menu span { display: block; width: 20px; height: 2px; background: #fff; transition: rotate .3s var(--courbe), translate .3s var(--courbe); }
html.menu-ouvert .bouton-menu span:first-child { translate: 0 4px; rotate: 45deg; }
html.menu-ouvert .bouton-menu span:last-child { translate: 0 -4px; rotate: -45deg; }
html.menu-ouvert .entete { z-index: 70; background: var(--noir); }
.panneau-menu { background: var(--noir) var(--grain-clair); padding-top: 104px; }
.panneau-menu > a { display: flex; align-items: baseline; gap: 14px; font: 800 24px/1.2 var(--f-titre); text-transform: uppercase; color: #fff; border-bottom-color: var(--trait); }
.panneau-menu > a span { font: 700 12px/1 var(--f-titre); letter-spacing: .1em; color: var(--rouge-clair); }
.panneau-menu__bas { margin-top: auto; display: grid; gap: 16px; padding-top: 24px; }
.panneau-menu__bas .bouton { justify-content: space-between; }
.panneau-menu__tel { padding: 14px 0; font: 800 26px/1 var(--f-titre); color: #fff; border-bottom: 0 !important; }
@media (max-width: 1100px) { .entete__tel span { display: none; } .entete__tel { width: 46px; justify-content: center; border: 1.5px solid rgba(255, 255, 255, .35); } }
@media (max-width: 900px) { .entete__soumission, .entete__tel { display: none; } }

/* --- Héros (commun) -------------------------------------------------------- */
.heros { position: relative; isolation: isolate; padding: 150px 0 80px; background: var(--noir) var(--grain-clair); overflow: clip; }
.heros__repere { margin-bottom: 22px; font: 700 12px/1.3 var(--f-titre); letter-spacing: .3em; text-transform: uppercase; color: var(--rouge-clair); }
.heros__chapeau { max-width: 48ch; font-size: clamp(17px, 1.3vw, 19px); color: #cfcfcf; }
.heros__boutons { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 46px; }
.heros__boutons .bouton--contour { color: #fff; border-color: rgba(255, 255, 255, .7); }

/* Héros de l'accueil : grande photo à droite, fondue dans le charbon */
.heros--accueil { display: flex; align-items: center; min-height: min(100svh, 920px); padding: 160px 0 90px; background: var(--noir); }
.heros--accueil::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain-clair); pointer-events: none; }
.heros--accueil .heros__grille { display: block; }
.heros--accueil .heros__texte { position: relative; max-width: 740px; }
.heros--accueil h1 { margin-bottom: 28px; font-size: clamp(44px, 5.3vw, 82px); line-height: .95; }
.heros h1 .ligne { display: block; }
.heros h1 .ligne--accent { color: var(--rouge); }
.heros--accueil .heros__photo { position: absolute; inset: 0 0 0 28%; z-index: -1; margin: 0; background: var(--noir); }
.heros--accueil .heros__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; filter: saturate(.72) contrast(1.1) brightness(.9); }
.heros--accueil .heros__photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--noir) 0%, rgba(17, 17, 17, .82) 20%, rgba(17, 17, 17, .25) 55%, rgba(17, 17, 17, .3) 100%),
              linear-gradient(0deg, var(--noir) 0%, rgba(17, 17, 17, 0) 32%),
              linear-gradient(180deg, rgba(17, 17, 17, .75) 0%, rgba(17, 17, 17, 0) 26%); }

/* Faits numérotés (01, 02, 03), comme la liste du moodboard */
.heros__faits { counter-reset: fait; display: flex; flex-wrap: wrap; gap: 26px 44px; margin: 0; padding: 26px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .16); }
.heros__faits li { counter-increment: fait; display: grid; grid-template-columns: auto auto; column-gap: 14px; align-items: start; }
.heros__faits li::before { content: counter(fait, decimal-leading-zero); grid-row: 1 / span 2; padding-bottom: 6px; border-bottom: 3px solid var(--rouge); font: 800 28px/1 var(--f-titre); color: #fff; }
.heros__faits b { font: 800 13px/1.25 var(--f-titre); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.heros__faits span { font: 600 12px/1.4 var(--f-titre); letter-spacing: .08em; text-transform: uppercase; color: #a9a9a9; }

/* --- Bande défilante : gravier sombre et chevrons rouges ------------------- */
.bande { position: relative; padding: 20px 0; background: var(--noir) var(--gravier) center / cover; border-block: 1px solid #262626; --bandeau-espace: 30px; --bandeau-duree: 40s; }
.bande::before { content: ""; position: absolute; inset: 0; background: rgba(17, 17, 17, .55); }
.bande .piste { position: relative; align-items: center; }
.bande span { font: 800 15px/1 var(--f-titre); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: #fff; }
.bande i { width: 22px; height: 14px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath d='M1 0h5l6 7-6 7H1l6-7zM10 0h5l6 7-6 7h-5l6-7z' fill='%23d7090f'/%3E%3C/svg%3E") center / contain no-repeat; }

/* --- Sections -------------------------------------------------------------- */
.entete-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 14px 56px; align-items: end; margin-bottom: clamp(36px, 4.5vw, 56px); }
.entete-section .etiquette { grid-column: 1 / -1; margin: 0; }
.entete-section h2 { margin: 0; }
.entete-section .chapeau { margin: 0; font-size: 17px; }
.lien-texte { color: var(--texte); font-weight: 700; text-decoration: underline; text-decoration-color: var(--rouge); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lien-texte:hover { color: var(--rouge-texte); }

/* Demande de soumission (bon de travail) */
.demande { background: var(--clair) var(--grain-sombre); }
.demande__grille { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.demande__tel { display: inline-flex; align-items: center; gap: 16px; margin-top: 30px; color: var(--texte); }
.demande__icone { display: grid; place-items: center; width: 58px; height: 58px; background: var(--rouge); color: #fff; }
.demande__icone svg { width: 24px; height: 24px; }
.demande__tel > span:last-child { display: grid; font: 800 28px/1.1 var(--f-titre); }
.demande__tel small { font: 700 11px/1.3 var(--f-titre); letter-spacing: .16em; text-transform: uppercase; color: var(--texte-doux); }
.demande__urgence { margin: 18px 0 0; font: 600 13px/1.5 var(--f-titre); letter-spacing: .04em; color: var(--texte-doux); }

/* Bon de travail : carte sombre, barre rouge en haut */
.bon { position: relative; z-index: 2; background: var(--charbon); color: var(--texte); border-top: 4px solid var(--rouge); box-shadow: var(--ombre); scroll-margin-top: 100px; }
.bon__tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 22px; background: var(--noir); border-bottom: 1px solid #2c2c2c; }
.bon__titre { font: 800 16px/1 var(--f-titre); letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.bon__no { font: 700 11px/1 var(--f-titre); letter-spacing: .14em; text-transform: uppercase; color: var(--rouge-clair); }
.bon__form { padding: 22px 22px 22px; }
.bon__progression { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.bon__etape { flex: none; font: 700 11px/1 var(--f-titre); letter-spacing: .12em; text-transform: uppercase; color: var(--texte-doux); }
.bon .etapes-barre { flex: 1; height: 4px; border-radius: 0; background: #333; }
.bon .etapes-barre > span { border-radius: 0; background: var(--rouge); }
.bon legend { padding: 0; margin-bottom: 14px; font: 800 22px/1.15 var(--f-titre); text-transform: uppercase; color: #fff; }
.bon__choix { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bon__choix--une { grid-template-columns: 1fr; }
.choix { position: relative; min-height: 52px; padding: 12px 14px 12px 44px; border: 1px solid #3a3a3a; border-radius: 0; background: #232323; color: #f2f2f2; font: 600 14px/1.25 var(--f-titre); transition: border-color .2s, background-color .2s; }
.choix input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choix::before { content: ""; position: absolute; left: 15px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 1.5px solid #8a8a8a; background: transparent; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.choix:has(input:checked) { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.choix:has(input:checked)::before { border-color: #fff; background: #fff; box-shadow: inset 0 0 0 3px var(--rouge); }
.choix:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
.choix--large { grid-column: 1 / -1; }
@media (hover: hover) { .choix:hover { translate: none; border-color: #6b6b6b; } .choix:has(input:checked):hover { border-color: var(--rouge); } }
.bon__champs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bon__champs label { display: grid; gap: 6px; font: 700 11px/1.2 var(--f-titre); letter-spacing: .1em; text-transform: uppercase; color: var(--texte-doux); }
.bon__plein { grid-column: 1 / -1; }
.champ { min-height: 50px; border: 1px solid #3a3a3a; border-radius: 0; background: var(--noir); color: #fff; font: 400 16px/1.2 var(--f-texte); }
.champ:focus { border-color: var(--rouge); box-shadow: 0 0 0 3px rgba(215, 9, 15, .35); }
.bon__boutons { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 18px; }
.bon__retour { min-height: 44px; margin-right: auto; padding: 0 4px; border: 0; background: none; color: #cfcfcf; font: 700 12px/1 var(--f-titre); letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.bon__note { margin: 14px 0 0; font: 400 13px/1.5 var(--f-texte); color: var(--texte-doux); }
.merci { margin: 22px; border-radius: 0; background: #232323; color: #fff; border-left: 4px solid var(--rouge); }

/* --- Services : cartes sombres, photos en noir et blanc -------------------- */
.services { background: var(--charbon) var(--grain-clair); }
.services__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service { --v: 1; position: relative; display: flex; flex-direction: column; background: var(--carte); border: 1px solid var(--carte-trait); }
.service::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 3px; background: var(--rouge); scale: 0 1; transform-origin: left; transition: scale .45s var(--courbe); }
.service.carte-survol:hover { --v: 3; translate: 0 -6px; box-shadow: 0 30px 50px -28px #000; }
.service.carte-survol:hover::after { scale: 1 1; }
.service__photo { position: relative; aspect-ratio: 16 / 10; }
.service__photo img { filter: grayscale(1) contrast(1.12) brightness(.82); transition: filter .6s var(--courbe), scale .8s var(--courbe); }
.service:hover .service__photo img { filter: grayscale(0) contrast(1.02) brightness(.95); }
.service__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(35, 35, 35, .85)); pointer-events: none; }
.service__corps { position: relative; display: flex; flex-direction: column; flex: 1; padding: 22px 24px 18px; }
.service__corps p { color: var(--texte-doux); font-size: 15px; }
.service__corps .lien-fleche { margin-top: auto; align-self: flex-start; }
.service__no { position: absolute; top: 24px; right: 24px; font: 600 11px/1 var(--f-titre); letter-spacing: .12em; color: #8d8d8d; }
.service__icone { width: 40px; height: 40px; margin-bottom: 14px; color: #fff; overflow: visible; }
.service h3 { font-size: 17px; letter-spacing: .02em; text-transform: uppercase; line-height: 1.2; color: #fff; }
.pelle-bras { transform-origin: 14px 30px; animation: creuse calc(2.6s / var(--v)) ease-in-out infinite; }
@keyframes creuse { 0%, 100% { rotate: -10deg; } 50% { rotate: 8deg; } }
.drain-eau { animation: coule calc(1.6s / var(--v)) linear infinite; }
@keyframes coule { to { stroke-dashoffset: -20; } }
.maison-ajout { transform-box: fill-box; transform-origin: 0 100%; animation: construit calc(2.4s / var(--v)) ease-in-out infinite; }
@keyframes construit { 0%, 15% { scale: 1 0; } 55%, 100% { scale: 1 1; } }
.niveau-sol { transform-box: fill-box; transform-origin: 50% 100%; animation: nivelle calc(2.8s / var(--v)) ease-in-out infinite alternate; }
@keyframes nivelle { from { scale: 1 1; } to { scale: 1 .08; } }
.camion-caisse { transform-box: fill-box; transform-origin: 0 100%; animation: bascule calc(3s / var(--v)) ease-in-out infinite; }
@keyframes bascule { 0%, 30%, 100% { rotate: 0deg; } 55%, 75% { rotate: -22deg; } }
.roue { transform-box: fill-box; transform-origin: center; animation: icone-tourne calc(2s / var(--v)) linear infinite; }

/* Bouton d'appel avec ondes */
.appel { display: inline-flex; align-items: center; gap: 18px; min-height: 64px; }
.appel .appel-ondes { background: var(--rouge); color: #fff; }
.appel .appel-ondes::before, .appel .appel-ondes::after { border-color: var(--rouge); }
.appel__texte { display: grid; font: 800 26px/1.05 var(--f-titre); }
.appel__texte small { font: 700 11px/1.3 var(--f-titre); letter-spacing: .14em; text-transform: uppercase; }

/* --- Aperçu des réalisations ----------------------------------------------- */
.apercu { background: #f7f7f7; }
.apercu__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.apercu__lien { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--charbon); }
.apercu__lien img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--courbe); }
.apercu__fleche { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 48px; height: 48px; background: var(--charbon); color: var(--rouge-clair); transition: background-color .3s, color .3s; }
.apercu__fleche svg { width: 20px; height: 20px; }
@media (hover: hover) { .apercu__lien:hover img { scale: 1.06; } .apercu__lien:hover .apercu__fleche { background: var(--rouge); color: #fff; } }
.apercu__bas { margin-top: 34px; display: flex; justify-content: center; }

/* --- Méthode : coupe de terrain sur asphalte -------------------------------- */
.methode { background: var(--noir) var(--grain-clair); }
.entete-section--sombre { grid-template-columns: 1fr; }
.entete-section--sombre h2 { max-width: 20ch; }
.coupe { position: relative; border: 1px solid #333; background: var(--charbon); padding: 24px 24px 0; }
.coupe__dessin { width: 100%; height: auto; overflow: hidden; }
#motif-terre rect { fill: #3b3b3b; } #motif-terre circle:first-of-type { fill: #4d4d4d; } #motif-terre circle:last-of-type { fill: #2c2c2c; }
#motif-argile rect { fill: #4c4c4c; } #motif-argile path { stroke: #595959; }
#motif-sable rect { fill: #6b6b6b; } #motif-sable circle:first-of-type { fill: #7d7d7d; } #motif-sable circle:last-of-type { fill: #5c5c5c; }
.coupe__drain rect { fill: #9a9a9a; }
.coupe__drain circle { stroke: var(--rouge); }
.coupe__fondation rect:first-child { fill: #d9d9d9; } .coupe__fondation rect:last-child { fill: #bdbdbd; }
.coupe__piquets { fill: var(--rouge); }
.coupe__godet [stroke] { stroke: var(--rouge); } .coupe__godet [fill] { fill: var(--rouge); }
.coupe__piquets { opacity: 0; translate: 0 -30px; transition: opacity .5s, translate .6s cubic-bezier(.3,1.6,.5,1); }
.coupe[data-etape] .coupe__piquets { opacity: 1; translate: 0 0; }
.coupe__drain, .coupe__fondation, .coupe__cote, .coupe__cote-texte { opacity: 0; transition: opacity .6s; }
.coupe__cote-texte { font: 700 20px/1 var(--f-titre); }
.coupe[data-etape="2"] .coupe__cote, .coupe[data-etape="2"] .coupe__cote-texte, .coupe[data-etape="3"] .coupe__cote, .coupe[data-etape="3"] .coupe__cote-texte { opacity: 1; }
.coupe[data-etape="3"] .coupe__drain, .coupe[data-etape="4"] .coupe__drain { opacity: 1; }
.coupe[data-etape="4"] .coupe__fondation { opacity: 1; }
.coupe__godet { transition: opacity .4s; }
.passes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid #333; border-top: 0; background: var(--charbon); }
.passe { padding: 24px 20px 26px; border-right: 1px solid #333; transition: background-color .4s, color .4s; }
.passe:last-child { border-right: 0; }
.passe__no { display: inline-block; margin-bottom: 16px; padding-bottom: 6px; border-bottom: 3px solid var(--rouge); font: 800 24px/1 var(--f-titre); color: #fff; transition: border-color .4s; }
.passe h3 { font-size: 15px; letter-spacing: .03em; text-transform: uppercase; }
.passe p { margin: 0; font-size: 15px; color: var(--texte-doux); transition: color .4s; }
.passe.est-active { background: var(--rouge); }
.passe.est-active p { color: #fff; }
.passe.est-active .passe__no { border-color: #fff; }

/* --- Calculateur : béton clair ---------------------------------------------- */
.calcul { background: var(--clair-2) var(--grain-sombre); }
.calcul__grille { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.calcul__types { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.type { min-height: 46px; padding: 10px 16px; border: 1.5px solid var(--charbon); background: transparent; color: var(--charbon); font: 700 12px/1.1 var(--f-titre); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background-color .2s, color .2s; }
.type.est-actif { background: var(--charbon); color: #fff; box-shadow: inset 0 -3px 0 var(--rouge); }
@media (hover: hover) { .type:not(.est-actif):hover { background: var(--charbon); color: #fff; } }
.calcul__outil { background: var(--blanc); border-top: 4px solid var(--rouge); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .45); padding: 24px; }
.calcul__vue { position: relative; background: var(--clair); border: 1px solid var(--gris-clair); margin-bottom: 22px; padding: 10px 10px 8px; }
.calcul__boite { width: 100%; height: auto; overflow: hidden; }
.boite-sol { fill: none; }
.calcul__boite path { transition: d .35s var(--courbe); }
.boite-gauche { fill: #6b6b6b; stroke: var(--charbon); stroke-width: 1.2; }
.boite-droite { fill: #4a4a4a; stroke: var(--charbon); stroke-width: 1.2; }
.boite-fond { fill: #8a8a8a; }
.boite-ouverture { fill: #a8a8a8; fill-rule: evenodd; stroke: var(--charbon); stroke-width: 1.5; }
.boite-cote { font: 700 12px/1 var(--f-titre); fill: var(--charbon); }
.calcul__camions { display: flex; flex-wrap: wrap; gap: 4px; min-height: 22px; margin-top: 6px; align-items: center; }
.calcul__camions svg { width: 26px; height: 18px; color: var(--charbon); animation: arrive .4s var(--courbe) both; animation-delay: calc(var(--i) * 25ms); }
.calcul__camions .plus-camions { font: 700 12px/1 var(--f-titre); margin-left: 4px; }
@keyframes arrive { from { opacity: 0; translate: -10px 0; } to { opacity: 1; translate: none; } }
.calcul__champs { display: grid; gap: 16px; }
.glissiere { display: grid; gap: 6px; }
.glissiere__tete { display: flex; justify-content: space-between; align-items: baseline; font: 700 12px/1 var(--f-titre); letter-spacing: .1em; text-transform: uppercase; color: var(--texte-doux); }
.glissiere output { font: 800 20px/1 var(--f-titre); letter-spacing: 0; text-transform: none; color: var(--charbon); }
.glissiere input { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; }
.glissiere input::-webkit-slider-runnable-track { height: 4px; background: var(--gris-clair); }
.glissiere input::-moz-range-track { height: 4px; background: var(--gris-clair); }
.glissiere input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; background: var(--rouge); border: 0; box-shadow: 0 0 0 4px rgba(215, 9, 15, .18); }
.glissiere input::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 0; background: var(--rouge); }
.calcul__resultats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 22px 0 0; border: 1px solid var(--gris-clair); }
.calcul__resultats > div { padding: 14px 16px; border-right: 1px solid var(--gris-clair); }
.calcul__resultats > div:nth-child(2) { border-right: 0; }
.calcul__resultats dt { font: 700 11px/1.3 var(--f-titre); letter-spacing: .1em; text-transform: uppercase; color: var(--texte-doux); }
.calcul__resultats dd { margin: 6px 0 0; font: 800 26px/1.1 var(--f-titre); }
.calcul__voyages { grid-column: 1 / -1; border-right: 0 !important; background: var(--charbon); color: #fff; box-shadow: inset 4px 0 0 var(--rouge); }
.calcul__voyages dt { color: #bdbdbd; }
.calcul__note { margin: 14px 0 18px; font: 400 13px/1.55 var(--f-texte); color: var(--texte-doux); }
.calcul__bouton { width: 100%; justify-content: space-between; }

/* --- Pourquoi : sombre, gravier ------------------------------------------- */
.pourquoi { position: relative; isolation: isolate; background: var(--charbon); }
.pourquoi::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(26, 26, 26, .9), rgba(26, 26, 26, .96)), var(--gravier) center / cover; }
.pourquoi__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pourquoi__photo { position: relative; margin: 0; }
.pourquoi__photo::before { content: ""; position: absolute; left: -14px; top: 36px; width: 5px; height: 38%; background: var(--rouge); }
.pourquoi__cadre { position: relative; overflow: hidden; aspect-ratio: 4 / 4.4; }
.pourquoi__cadre img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; max-width: none; object-fit: cover; object-position: 40% 50%; }
.pourquoi__cartouche { position: absolute; right: 0; bottom: 0; display: grid; grid-template-columns: auto 1fr; max-width: 88%; background: var(--noir); border-top: 3px solid var(--rouge); }
.pourquoi__cartouche span, .pourquoi__cartouche b { padding: 10px 14px; border-bottom: 1px solid #2e2e2e; }
.pourquoi__cartouche span { font: 700 10px/1.5 var(--f-titre); letter-spacing: .12em; text-transform: uppercase; color: #9a9a9a; border-right: 1px solid #2e2e2e; }
.pourquoi__cartouche b { font: 700 13px/1.4 var(--f-titre); color: #fff; }
.pourquoi__cartouche span:nth-last-child(2), .pourquoi__cartouche b:last-child { border-bottom: 0; }
.atouts { display: grid; gap: 0; margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--trait); }
.atouts li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--trait); }
.atout__coche { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--rouge); color: var(--rouge-texte); }
.atout__coche svg { width: 22px; height: 22px; stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .6s .3s var(--courbe); }
.atouts li.est-visible .atout__coche svg { stroke-dashoffset: 0; transition-delay: calc(var(--delai, 0s) + .35s); }
.atouts h3 { margin-bottom: 4px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.atouts p { margin: 0; color: var(--texte-doux); font-size: 15px; }

/* --- Secteurs ---------------------------------------------------------------- */
.secteurs { background: var(--clair); }
.secteurs__grille { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.secteurs__liste { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.secteurs__liste li { border: 1.5px solid var(--charbon); font: 700 12px/1.2 var(--f-titre); letter-spacing: .1em; text-transform: uppercase; }
.secteurs__carte { position: relative; aspect-ratio: 4 / 3; background: var(--clair-2); box-shadow: var(--ombre); clip-path: none !important; }
.secteurs__carte iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.secteurs__repere { position: absolute; left: 0; top: 0; padding: 10px 14px; background: var(--rouge); color: #fff; font: 700 11px/1 var(--f-titre); letter-spacing: .12em; text-transform: uppercase; }

/* --- FAQ ------------------------------------------------------------------------ */
.faq { background: var(--blanc); }
.faq__grille { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq__photo { position: relative; margin: 30px 0 0; aspect-ratio: 4 / 3; }
.faq__photo img { filter: grayscale(.35); }
.faq__liste { border-top: 2px solid var(--charbon); }
.faq-item { border-bottom: 1px solid var(--gris-clair); }
.faq-item summary { min-height: 56px; padding: 20px 0; font: 700 17px/1.35 var(--f-titre); transition: color .2s; }
.faq-item .plus { width: 26px; height: 26px; color: var(--rouge); }
.faq-item .plus::before, .faq-item .plus::after { inset: 50% 3px auto; height: 2.5px; margin-top: -1.25px; }
.faq-item summary:hover, .faq-item[open] summary { color: var(--rouge); }
.faq-reponse > div { font-size: 16px; }

/* --- Appel final : ruban rouge et noir ---------------------------------------- */
.appel-final { position: relative; overflow: clip; isolation: isolate; padding: 44px 0; background: var(--noir); color: var(--texte); }
.appel-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(17, 17, 17, .86), rgba(17, 17, 17, .94)), var(--gravier) center / cover; }
.rubalise { position: relative; z-index: 1; padding: 9px 0; background: repeating-linear-gradient(-45deg, var(--rouge) 0 20px, var(--noir) 20px 40px); --bandeau-espace: 0px; --bandeau-duree: 32s; }
.rubalise--1 { transform: skewY(-1.6deg); }
.rubalise--2 { transform: skewY(1.4deg); }
.rubalise--2 .piste { animation-direction: reverse; }
.rubalise span { display: inline-block; padding: 7px 20px; margin-inline: 14px; background: var(--noir); color: #fff; font: 800 14px/1 var(--f-titre); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.appel-final__corps { padding: clamp(64px, 9vw, 116px) 0; text-align: center; }
.appel-final h2 { max-width: 18ch; margin: 0 auto 18px; font-size: clamp(32px, 5vw, 64px); }
.appel-final h2[data-mots]::after { margin-inline: auto; }
.appel-final p { max-width: 52ch; margin: 0 auto; color: #c4c4c4; font-size: 18px; }
.appel-final__boutons { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 36px; margin-top: 36px; }
.appel--clair { text-align: left; color: #fff; }
.appel--clair small { color: #bdbdbd; }

/* --- Pied de page ------------------------------------------------------------------ */
.pied { position: relative; background: #0d0d0d; color: #cfcfcf; padding: 76px 0 28px; border-top: 3px solid var(--rouge); }
.pied__grille { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr .9fr; gap: 40px; }
.pied__logo { width: 220px; height: auto; }
.pied__slogan { margin: 14px 0 0 !important; font: 600 15px/1.3 var(--f-titre) !important; letter-spacing: .04em; color: #fff !important; }
.pied__marque p { margin-top: 18px; color: #9e9e9e; font-size: 14px; }
.pied__titre { margin-bottom: 16px; font: 700 11px/1 var(--f-titre); letter-spacing: .2em; text-transform: uppercase; color: var(--rouge-clair); }
.pied ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 15px; }
.pied ul a { display: inline-block; padding: 6px 0; overflow-wrap: anywhere; background: linear-gradient(var(--rouge), var(--rouge)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--courbe), color .2s; }
.pied ul a:hover { background-size: 100% 2px; color: #fff; }
.pied ul li { overflow-wrap: anywhere; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid #262626; font: 500 12px/1.4 var(--f-titre); letter-spacing: .04em; color: #8f8f8f; }
.pied__bas p { margin: 0; }
.credit-b2web a { color: var(--rouge-clair); }

/* --- Barre d'appel (téléphone) ------------------------------------------------------ */
.barre-mobile { display: none; }

/* ======================= Tablette ======================= */
@media (max-width: 1100px) {
  .services__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .passe { padding: 18px 14px; }
  .passe p { font-size: 14px; }
  .pied__grille { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .pied { padding-bottom: 96px; }
  .barre-mobile { display: grid; grid-template-columns: 1fr 1.5fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; box-shadow: 0 -1px 0 #2a2a2a; }
  .barre-mobile a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; font: 800 14px/1 var(--f-titre); letter-spacing: .08em; text-transform: uppercase; }
  .barre-mobile__tel { background: var(--noir); color: #fff; }
  .barre-mobile__tel svg { width: 18px; height: 18px; color: var(--rouge-clair); }
  .barre-mobile__soumission { background: var(--rouge); color: #fff; }
  html.menu-ouvert .barre-mobile { display: none; }

  .heros { padding: 120px 0 56px; }
  .heros--accueil { min-height: 0; padding: 132px 0 60px; }
  .heros--accueil .heros__photo { inset: 0; }
  .heros--accueil .heros__photo img { object-position: 70% 60%; }
  .heros--accueil .heros__photo::after { background: linear-gradient(90deg, rgba(17, 17, 17, .92) 0%, rgba(17, 17, 17, .6) 100%), linear-gradient(0deg, var(--noir) 0%, rgba(17, 17, 17, 0) 40%); }

  .entete-section { grid-template-columns: 1fr; }
  .demande__grille { grid-template-columns: minmax(0, 1fr); }

  /* Méthode : la coupe colle en haut, les passes défilent dessous */
  .coupe { position: sticky; top: 64px; z-index: 2; padding: 12px 12px 0; }
  .passes { grid-template-columns: 1fr; border-top: 1px solid #333; margin-top: 14px; }
  .passe { border-right: 0; border-bottom: 1px solid #333; padding: 22px 18px; }
  .passe p { font-size: 15px; }

  .calcul__grille, .pourquoi__grille, .secteurs__grille, .faq__grille { grid-template-columns: minmax(0, 1fr); }
  .faq__photo { display: none; }
  .apercu__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apercu__grille li:last-child { display: none; }
  .pourquoi__photo::before { left: -8px; }
}

/* ======================= Téléphone ======================= */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .logo__image { height: 46px; }
  .entete.est-defile .logo__image { height: 42px; }
  .heros--accueil h1 { font-size: clamp(42px, 13vw, 58px); }
  .heros__repere { font-size: 11px; letter-spacing: .24em; }
  .heros__chapeau { font-size: 17px; }
  .heros__boutons { display: grid; gap: 12px; }
  .heros__boutons .bouton { justify-content: space-between; }
  .heros__faits { gap: 18px 26px; }
  .heros__faits li::before { font-size: 22px; }
  .bande span { font-size: 13px; }

  .bon__tete { padding: 13px 16px; }
  .bon__form { padding: 16px 16px 18px; }
  .bon legend { font-size: 19px; }
  .bon__choix { grid-template-columns: 1fr; gap: 7px; }
  .choix { min-height: 50px; }
  .bon__champs { grid-template-columns: 1fr; }
  .demande__tel > span:last-child { font-size: 24px; }

  .services__grille { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .service__photo { aspect-ratio: 16 / 9; }
  .apercu__grille { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .apercu__grille li:last-child { display: block; }

  .calcul__outil { padding: 16px; }
  .calcul__resultats dd { font-size: 22px; }
  .calcul__types .type { flex: 1 1 calc(50% - 10px); }
  .calcul__bouton { font-size: 12px; padding-inline: 16px; }

  .pourquoi__cartouche { position: relative; max-width: none; }
  .rubalise span { font-size: 12px; padding: 6px 14px; }
  .appel-final__boutons .bouton { width: 100%; justify-content: space-between; }
  .appel__texte { font-size: 24px; }
  .pied__grille { grid-template-columns: 1fr; gap: 30px; }
}
