/* ==========================================================================
   Démo Les Projets Couturier inc. (Howick)
   Ton : chantier propre, coins droits, rouge de marque, gris gypse.
   ========================================================================== */
@font-face { font-family: "Encode Semi"; src: url("/ressources/polices/encode-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Encode Semi"; src: url("/ressources/polices/encode-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Kumbh"; src: url("/ressources/polices/kumbh.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --c-fond: #ffffff;
  --c-fond-2: #eceeef;          /* gris gypse */
  --c-texte: #17191b;
  --c-texte-doux: #565c63;
  --c-trait: rgba(23, 25, 27, .14);
  --c-accent: #ED2A26;
  --c-accent-fonce: #c41b17;
  --c-accent-texte: #ffffff;
  --c-sombre: #17191b;
  --c-sombre-texte: #f1f2f3;
  --c-bois: #d9a86c;
  --f-titre: "Encode Semi", "Arial Narrow", system-ui, sans-serif;
  --f-texte: "Kumbh", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rayon: 0px;
  --rayon-bouton: 0px;
  --conteneur: 1240px;
}
html, body { overflow-x: clip; }
body { font-size: 17px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.015em; }
h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; }
.surtitre { color: var(--c-texte); gap: 12px; letter-spacing: .12em; font-family: var(--f-titre); font-weight: 600; font-size: 14px; }
.surtitre::before { content: ""; width: 14px; height: 14px; background: var(--c-accent); clip-path: polygon(0 0, 100% 0, 100% 35%, 35% 35%, 35% 100%, 0 100%); }
.section--sombre .surtitre { color: var(--c-sombre-texte); }
.accent { color: var(--c-accent); }

/* --- Boutons : coin droit, flèche dans un bloc ---------------------------- */
.bouton { padding: 0 0 0 22px; min-height: 54px; gap: 18px; font-family: var(--f-titre); font-weight: 600; font-size: 17px; letter-spacing: .01em; position: relative; overflow: hidden; isolation: isolate; }
.bouton .fleche { width: 54px; height: 54px; display: grid; place-items: center; background: rgba(0, 0, 0, .16); }
.bouton .fleche svg { inset: 18px; width: 18px; height: 18px; }
.bouton .fleche svg + svg { translate: -260% 0; }
.bouton::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c-accent-fonce); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--courbe); }
.bouton--sombre .fleche { background: var(--c-accent); }
.bouton--sombre::before { background: #2c3034; }
.bouton--clair { background: #fff; color: var(--c-texte); }
.bouton--clair .fleche { background: var(--c-accent); color: #fff; }
.bouton--clair::before { background: #f0f0f0; }
@media (hover: hover) {
  .bouton:hover { translate: 0 -2px; }
  .bouton:hover::before { transform: scaleX(1); }
  .bouton:hover .fleche svg { translate: 260% 0; }
  .bouton:hover .fleche svg + svg { translate: 0 0; }
}
.lien-fleche { color: inherit; border-bottom: 2px solid var(--c-accent); padding-bottom: 4px; }

/* --- En-tête --------------------------------------------------------------- */
.entete { padding-block: 16px; color: #fff; }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.entete.est-defile { color: var(--c-texte); background: rgba(255, 255, 255, .96); }
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-titre); line-height: 1; }
.logo__marque { width: 42px; height: 42px; flex: none; }
.logo__texte { display: grid; gap: 3px; }
.logo__texte small { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.logo__texte strong { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.nav-ordi { display: flex; gap: 28px; font-weight: 600; font-size: 15.5px; }
.nav-ordi a { position: relative; padding-block: 6px; }
.nav-ordi a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c-accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--courbe); }
.nav-ordi a:hover::after { transform: scaleX(1); transform-origin: left; }
.entete__actions { display: flex; align-items: center; gap: 12px; }
.entete__tel { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; white-space: nowrap; min-height: 44px; }
.entete__tel svg { width: 20px; height: 20px; color: var(--c-accent); }
.entete .bouton { min-height: 46px; font-size: 15.5px; padding-left: 18px; }
.entete .bouton .fleche { width: 46px; height: 46px; }
.entete .bouton .fleche svg { inset: 14px; }
.bouton-menu { border-radius: 0; background: var(--c-accent); color: #fff; font-size: 22px; }
@media (max-width: 1080px) { .entete__tel span { display: none; } .nav-ordi { gap: 20px; } }
@media (max-width: 900px) { .entete .bouton { display: none; } .entete__tel { width: 46px; justify-content: center; background: rgba(255,255,255,.14); } .entete.est-defile .entete__tel { background: var(--c-fond-2); } }
.panneau-menu { background: var(--c-sombre); color: #fff; }
.panneau-menu a { border-color: rgba(255,255,255,.14); }
.panneau-menu .bouton { margin-top: 22px; padding: 0 0 0 22px; border: 0; font: 600 18px/1 var(--f-titre); justify-content: space-between; }
.panneau-menu .panneau-menu__tel { color: var(--c-accent); }
html.menu-ouvert .entete { color: #fff; background: transparent; box-shadow: none; }
html.menu-ouvert .entete { z-index: 70; }

/* --- Héros : charpente / finition en diagonale ----------------------------- */
.heros { position: relative; min-height: 100svh; color: #fff; background: #222; display: flex; align-items: flex-end; padding: 130px 0 56px; overflow: clip; }
.heros__scene { --x: 58%; --d: 9vh; position: absolute; inset: 0; touch-action: pan-y; cursor: ew-resize; user-select: none; }
.heros__scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.heros__charpente { animation: lent-zoom 16s ease-out both; }
.heros__fini { clip-path: polygon(calc(var(--x) + var(--d)) 0, 100% 0, 100% 100%, calc(var(--x) - var(--d)) 100%); }
.heros__scene::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10, 11, 12, .82) 0%, rgba(10, 11, 12, .55) 42%, rgba(10, 11, 12, .1) 70%),
  linear-gradient(0deg, rgba(10, 11, 12, .7), transparent 45%); pointer-events: none; }
.heros__trait { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--c-accent); clip-path: polygon(calc(var(--x) + var(--d) - 2px) 0, calc(var(--x) + var(--d) + 2px) 0, calc(var(--x) - var(--d) + 2px) 100%, calc(var(--x) - var(--d) - 2px) 100%); }
.heros__poignee { position: absolute; top: 50%; left: var(--x); z-index: 2; translate: -50% -50%; width: 54px; height: 54px; display: grid; place-items: center; background: var(--c-accent); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.35); pointer-events: none; }
.heros__poignee svg { width: 26px; height: 26px; }
.heros__etiquette { position: absolute; z-index: 2; top: 116px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(15, 16, 17, .72); font: 600 13px/1 var(--f-titre); letter-spacing: .12em; text-transform: uppercase; pointer-events: none; transition: opacity .3s; }
.heros__etiquette i { width: 8px; height: 8px; background: var(--c-bois); }
.heros__etiquette--fini { right: var(--gouttiere); }
.heros__etiquette--fini i { background: #fff; }
.heros__etiquette--charpente { left: calc(var(--x) - 230px); }
.heros__grille { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: end; pointer-events: none; }
.heros__grille > * { pointer-events: auto; }
.heros__texte { max-width: 640px; }
.heros__lieu { display: inline-flex; gap: 10px; align-items: center; font: 600 14px/1.2 var(--f-titre); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.heros__lieu::before { content: ""; width: 28px; height: 3px; background: var(--c-accent); }
.heros h1 { font-size: clamp(42px, 6.2vw, 86px); line-height: .98; margin-bottom: 22px; }
.heros h1 em { font-style: normal; display: inline-block; position: relative; }
.heros h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .1em; background: var(--c-accent); transform: scaleX(0); transform-origin: left; animation: souligne 1s var(--courbe) 1.3s forwards; }
.heros__chapeau { font-size: clamp(17px, 1.5vw, 20px); max-width: 52ch; color: rgba(255, 255, 255, .86); }
.heros__liens { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-top: 26px; }
.heros__liens .lien-fleche { min-height: 44px; border-bottom: 0; padding: 0; gap: 12px; }
.heros__liens .lien-fleche svg.tel { width: 20px; height: 20px; color: var(--c-accent); }
@keyframes lent-zoom { from { scale: 1.12; } to { scale: 1; } }
@keyframes souligne { to { transform: scaleX(1); } }

/* Carte de soumission du héros */
.soumission { background: #fff; color: var(--c-texte); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); position: relative; }
.soumission__onglet { position: absolute; left: 0; bottom: 100%; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--c-accent); color: #fff; font: 600 14px/1 var(--f-titre); letter-spacing: .12em; text-transform: uppercase; }
.soumission__onglet span { width: 8px; height: 8px; background: #fff; animation: clignote 1.6s infinite; }
@keyframes clignote { 50% { opacity: .2; } }
.soumission__tete { padding: 24px 26px 0; }
.soumission__tete h2 { font-size: 27px; margin: 0 0 6px; line-height: 1.1; }
.soumission__tete p { margin: 0; color: var(--c-texte-doux); font-size: 15px; }
.soumission form { padding: 18px 26px 26px; }
.soumission__progres { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font: 600 13px/1 var(--f-titre); letter-spacing: .1em; text-transform: uppercase; color: var(--c-texte-doux); }
.soumission__progres .etapes-barre { flex: 1; height: 4px; border-radius: 0; }
.soumission__progres .etapes-barre > span { border-radius: 0; }
.soumission legend { font: 800 20px/1.2 var(--f-titre); margin-bottom: 14px; padding: 0; }
.choix-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.soumission .choix { position: relative; border-radius: 0; padding: 14px 12px; min-height: 64px; gap: 10px; font-size: 15px; line-height: 1.2; background: var(--c-fond-2); border-color: transparent; }
.soumission .choix input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.choix__icone { width: 26px; height: 26px; flex: none; color: var(--c-accent); }
.soumission .choix:has(input:checked) { background: var(--c-texte); color: #fff; }
.soumission .choix:has(input:focus-visible) { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.soumission .champ { border-radius: 0; background: var(--c-fond-2); border-color: transparent; padding: 14px; }
.soumission .champ:focus { background: #fff; }
.champs { display: grid; gap: 8px; }
.champs label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--c-texte-doux); }
.soumission__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.soumission__actions .bouton { margin-left: auto; }
.bouton-retour { border: 0; background: none; padding: 10px 4px; min-height: 44px; font-weight: 600; color: var(--c-texte-doux); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.soumission .merci { margin: 22px 26px 26px; border-radius: 0; }

/* --- Bande des métiers (bandeau) ------------------------------------------- */
.bande { background: var(--c-accent); color: #fff; padding: 16px 0; --bandeau-espace: 40px; --bandeau-duree: 36s; }
.bande .piste span { display: inline-flex; align-items: center; gap: 40px; font: 800 clamp(20px, 2.4vw, 30px)/1 var(--f-titre); white-space: nowrap; }
.bande .piste span::after { content: ""; width: 12px; height: 12px; background: #fff; clip-path: polygon(0 0, 100% 0, 100% 35%, 35% 35%, 35% 100%, 0 100%); }

/* --- Services : liste numérotée, photo qui suit la souris ------------------ */
.services__tete { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: end; margin-bottom: 48px; }
.services__tete p { margin: 0; color: var(--c-texte-doux); font-size: 18px; }
.services__liste { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--c-texte); position: relative; }
.service { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.2fr) 56px; gap: 28px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--c-trait); }
.service::before { content: ""; position: absolute; inset: 0 -12px; background: var(--c-fond-2); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--courbe); z-index: -1; }
.service__num { font: 800 18px/1 var(--f-titre); color: var(--c-accent); }
.service h3 { font-size: clamp(26px, 2.8vw, 36px); margin: 0; display: flex; align-items: center; gap: 14px; min-width: 0; }
.service__icone { width: 34px; height: 34px; color: var(--c-accent); flex: none; }
.service p { margin: 0 0 10px; color: var(--c-texte-doux); }
.service__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service__tags span { font-size: 13px; font-weight: 600; padding: 5px 9px; border: 1px solid var(--c-trait); background: #fff; }
.service__fleche { width: 56px; height: 56px; display: grid; place-items: center; border: 2px solid var(--c-texte); transition: background-color .3s, color .3s, rotate .4s var(--courbe), border-color .3s; }
.service__fleche svg { width: 22px; height: 22px; }
.service__photo { position: absolute; z-index: 5; width: 300px; aspect-ratio: 4 / 3; left: 0; top: 0; pointer-events: none; opacity: 0; scale: .85; transition: opacity .3s, scale .4s var(--courbe); overflow: hidden; box-shadow: 0 30px 50px -20px rgba(0,0,0,.45); }
.service__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (min-width: 901px) {
  .service:hover::before { transform: scaleY(1); }
  .service:hover .service__fleche { background: var(--c-accent); border-color: var(--c-accent); color: #fff; rotate: -45deg; }
  .service:hover .service__photo { opacity: 1; scale: 1; }
  .service:hover .service__icone { animation: tape .5s ease-in-out infinite alternate; }
}
@keyframes tape { from { rotate: -8deg; } to { rotate: 10deg; } }
.service__icone { transform-origin: 70% 80%; }

/* --- Le mur, couche par couche --------------------------------------------- */
.mur { background: var(--c-sombre); color: var(--c-sombre-texte); overflow: clip; }
.mur__grille { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.mur__dessin { position: relative; background: #0f1011; padding: 18px; border: 1px solid rgba(255,255,255,.08); }
.mur__dessin svg { width: 100%; height: auto; overflow: visible; }
.mur__cote { position: absolute; left: 18px; right: 18px; bottom: -34px; display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--f-titre); letter-spacing: .12em; color: rgba(255,255,255,.6); text-transform: uppercase; }
.mur__cote::before, .mur__cote::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.3); }
.couche { opacity: 0; transition: opacity .5s, transform .7s var(--courbe); }
.couche--montants { transform: translateY(-18px); }
.couche--isolant { transform: scale(.96); transform-origin: center; transform-box: fill-box; }
.couche--pare { transform: translateX(-30px); }
.couche--gypse { transform: translateY(24px); }
.couche--joints { transform: scaleX(.2); transform-box: fill-box; transform-origin: left; }
.couche--peinture { transform: translateY(0); }
.couche.est-posee { opacity: 1; transform: none; }
.mur__couches { list-style: none; margin: 34px 0 0; padding: 0; counter-reset: c; }
.mur__couches li { counter-increment: c; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.42); transition: color .4s; }
.mur__couches li::before { content: "0" counter(c); grid-row: span 2; font: 800 15px/1.4 var(--f-titre); color: rgba(255,255,255,.3); transition: color .4s; }
.mur__couches strong { font: 800 20px/1.2 var(--f-titre); color: inherit; }
.mur__couches span { font-size: 15px; }
.mur__couches li.est-active { color: #fff; }
.mur__couches li.est-active::before { color: var(--c-accent); }
.mur__couches li.est-active span { color: rgba(255,255,255,.72); }

/* --- Visualiseur IA : sous-sol --------------------------------------------- */
.visu__grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.visu__cadre { position: relative; padding: 14px; background: var(--c-texte); }
.visu__cadre .avant-apres { border-radius: 0; aspect-ratio: 3 / 2; }
.visu__cadre .avant-apres img { transition: opacity .5s; }
.visu__ruban { position: absolute; z-index: 4; left: -24px; right: -24px; top: 34px; height: 34px; display: flex; align-items: center; overflow: hidden; transform: skewY(-3deg);
  background: repeating-linear-gradient(-45deg, var(--c-accent) 0 22px, #fff 22px 44px); color: var(--c-texte); pointer-events: none; transition: transform .8s var(--courbe), opacity .6s; }
.visu__ruban span { margin-inline: auto; padding: 4px 14px; background: #fff; font: 800 14px/1 var(--f-titre); letter-spacing: .14em; text-transform: uppercase; }
.visu__cadre.est-revele .visu__ruban { transform: skewY(-3deg) translateX(110%); opacity: 0; }
.visu__cadre .visu-etiquette { border-radius: 0; background: var(--c-accent); color: #fff; font-family: var(--f-titre); letter-spacing: .08em; }
.visu__legende { display: flex; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.75); font: 600 13px/1.3 var(--f-titre); letter-spacing: .1em; text-transform: uppercase; padding-top: 12px; }
.visu__panneau h3 { font-size: 22px; margin-bottom: 12px; }
.visu__bons { display: grid; gap: 8px; margin: 0 0 22px; }
.visu__bons button { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px 14px 8px 8px; min-height: 70px; border: 2px solid var(--c-trait); background: #fff; cursor: pointer; text-align: left; transition: border-color .25s, background-color .25s, translate .3s var(--courbe); }
.visu__bons button .ech { width: 54px; height: 54px; }
.visu__bons button strong { display: block; font: 800 18px/1.15 var(--f-titre); }
.visu__bons button small { display: block; color: var(--c-texte-doux); font-size: 13.5px; line-height: 1.35; }
.visu__bons button.est-actif, .visu__bons button[aria-pressed="true"] { border-color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 6%, #fff); }
@media (hover: hover) { .visu__bons button:hover { translate: 4px 0; border-color: var(--c-texte); } }
.visu__separateur { display: flex; align-items: center; gap: 12px; margin: 6px 0 16px; font: 600 13px/1 var(--f-titre); letter-spacing: .12em; text-transform: uppercase; color: var(--c-texte-doux); }
.visu__separateur::before, .visu__separateur::after { content: ""; flex: 1; height: 1px; background: var(--c-trait); }
.visu__panneau .visu-depot { border-radius: 0; border: 2px dashed color-mix(in srgb, var(--c-texte) 35%, transparent); background: var(--c-fond-2); min-height: 64px; }
.visu__panneau .visu-styles { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.visu__panneau .visu-styles button { border-radius: 0; min-height: 44px; }
.visu__panneau textarea { border-radius: 0; background: var(--c-fond-2); border-color: transparent; }
.visu__panneau form .bouton { margin-top: 12px; width: 100%; justify-content: space-between; }
.visu-mention { font-size: 13px; color: var(--c-texte-doux); margin-top: 14px; }
[data-visualiseur-suite] .bouton { margin-top: 14px; }

/* --- Processus sur ruban à mesurer ----------------------------------------- */
.processus { background: var(--c-fond-2); overflow: clip; }
.processus__tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 56px; }
.processus__tete p { margin: 0; color: var(--c-texte-doux); font-size: 18px; }
.ruban { --p: 0; position: relative; height: 64px; margin-bottom: 30px; }
.ruban__boitier { position: absolute; left: 0; top: -10px; z-index: 2; width: 84px; height: 84px; background: var(--c-accent); display: grid; place-items: center; box-shadow: inset 0 0 0 6px rgba(0,0,0,.12); }
.ruban__boitier::before { content: ""; width: 34px; height: 34px; border-radius: 50%; border: 5px solid rgba(0,0,0,.25); background: var(--c-accent-fonce); }
.ruban__bande { position: absolute; left: 70px; right: 0; top: 10px; height: 44px; transform: scaleX(var(--p)); transform-origin: left; background:
  repeating-linear-gradient(90deg, #17191b 0 2px, transparent 2px 64px) 0 0 / 100% 22px no-repeat,
  repeating-linear-gradient(90deg, #17191b 0 1px, transparent 1px 16px) 0 0 / 100% 12px no-repeat,
  repeating-linear-gradient(90deg, #17191b 0 1px, transparent 1px 8px) 0 0 / 100% 7px no-repeat,
  #f6c934; box-shadow: 0 6px 14px -8px rgba(0,0,0,.4); }
.ruban__bout { position: absolute; top: 6px; left: calc(70px + (100% - 70px) * var(--p) - 10px); width: 12px; height: 52px; background: #8b9096; }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.etape-proc { position: relative; padding: 22px 18px 24px; background: #fff; border-top: 4px solid #c9ccd0; transition: border-color .4s, translate .5s var(--courbe), box-shadow .4s; }
.etape-proc.est-atteinte { border-top-color: var(--c-accent); translate: 0 -6px; box-shadow: 0 20px 40px -26px rgba(0,0,0,.35); }
.etape-proc__pouce { display: block; font: 800 34px/1 var(--f-titre); color: #c9ccd0; margin-bottom: 14px; transition: color .4s; }
.etape-proc.est-atteinte .etape-proc__pouce { color: var(--c-accent); }
.etape-proc h3 { font-size: 21px; margin-bottom: 8px; }
.etape-proc p { margin: 0; font-size: 15px; color: var(--c-texte-doux); }

/* --- À propos ---------------------------------------------------------------- */
.apropos__grille { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.apropos__photos { position: relative; padding: 0 0 70px 0; }
.apropos__photos .image-zoom { border-radius: 0; }
.apropos__photo1 { aspect-ratio: 4 / 5; width: 78%; }
.apropos__photo2 { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border: 10px solid #fff; }
.apropos__equerre { position: absolute; left: -14px; top: -14px; width: 120px; height: 120px; color: var(--c-accent); }
.apropos__equerre svg { max-width: none; width: 120px; height: 120px; }
.engagements { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.engagements li { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--c-trait); font-weight: 600; }
.engagements svg { width: 22px; height: 22px; flex: none; color: var(--c-accent); margin-top: 1px; }
.coord-ligne { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

/* --- Territoire + carte -------------------------------------------------------- */
.territoire__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: stretch; }
.territoire__carte { position: relative; min-height: 420px; background: var(--c-fond-2); }
.territoire__carte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.territoire__epingle { position: absolute; z-index: 2; left: 16px; top: 16px; padding: 10px 14px; background: var(--c-texte); color: #fff; font: 600 14px/1.2 var(--f-titre); letter-spacing: .06em; }
.villes { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; padding: 0; list-style: none; }
.villes li { padding: 9px 13px; border: 1px solid var(--c-trait); font-weight: 600; font-size: 15px; transition: background-color .25s, color .25s; }
.villes li:first-child { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
@media (hover: hover) { .villes li:hover { background: var(--c-texte); color: #fff; } }

/* --- FAQ ---------------------------------------------------------------------- */
.faq__grille { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq__aside { position: sticky; top: 110px; }
.faq-item { border-color: var(--c-trait); }
.faq-item summary { font-family: var(--f-titre); font-weight: 800; font-size: clamp(19px, 1.7vw, 23px); min-height: 44px; }
.faq-item .plus { width: 36px; height: 36px; background: var(--c-fond-2); transition: background-color .3s; }
.faq-item .plus::before, .faq-item .plus::after { inset: 50% 10px auto; transition: rotate .4s var(--courbe); }
.faq-item[open] .plus { rotate: none; background: var(--c-accent); color: #fff; }
.faq-item[open] .plus::after { rotate: 0deg; }

/* --- Appel final ----------------------------------------------------------------- */
.appel { position: relative; color: #fff; background: var(--c-accent); overflow: clip; }
.appel__fond { position: absolute; inset: 0; opacity: .14; mix-blend-mode: multiply; }
.appel__fond img { position: absolute; left: 0; width: 100%; top: -10%; height: 120%; object-fit: cover; filter: grayscale(1); }
.appel .conteneur { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: center; }
.appel .surtitre::before { background: #fff; }
.appel h2 { font-size: clamp(38px, 5.4vw, 72px); margin-bottom: 18px; }
.appel p { font-size: 19px; max-width: 48ch; color: rgba(255,255,255,.9); }
.appel__boutons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.appel__tel { display: grid; justify-items: center; gap: 18px; text-align: center; }
.appel__tel .appel-ondes { width: 110px; height: 110px; background: #fff; color: var(--c-accent); }
.appel__tel .appel-ondes::before, .appel__tel .appel-ondes::after { color: #fff; border-color: #fff; }
.appel__tel .appel-ondes svg { width: 40px; height: 40px; }
.appel__tel a.num { font: 800 clamp(26px, 2.6vw, 36px)/1 var(--f-titre); white-space: nowrap; }
.appel__tel small { opacity: .85; font-size: 15px; }

/* --- Pied de page ------------------------------------------------------------- */
.pied { background: var(--c-sombre); color: var(--c-sombre-texte); padding: 72px 0 28px; }
.pied__grille { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.pied h3 { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 16px; font-weight: 600; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pied ul a { display: inline-block; padding: 6px 0; transition: color .25s, translate .3s var(--courbe); }
.pied ul a:hover { color: var(--c-accent); translate: 4px 0; }
.pied__intro { color: rgba(255,255,255,.7); max-width: 40ch; margin-top: 18px; }
.pied__mot { font: 800 min(13.5vw, 196px)/.8 var(--f-titre); letter-spacing: -.03em; color: transparent; background: linear-gradient(90deg, #2a2d30, #34383c); -webkit-background-clip: text; background-clip: text; margin: 40px 0 26px; white-space: nowrap; overflow: hidden; }
.pied__mot span { color: var(--c-accent); -webkit-text-fill-color: var(--c-accent); }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: rgba(255,255,255,.6); }
.credit-b2web a { color: #fff; }

/* --- Barre d'appel mobile ------------------------------------------------------ */
.barre-mobile { display: none; }

/* ==========================================================================
   Tablette / téléphone
   ========================================================================== */
@media (max-width: 1080px) {
  .heros__grille { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; }
  .etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  body { padding-bottom: 64px; }
  .heros { display: block; min-height: 0; padding: 0; background: var(--c-fond); }
  .heros__scene { position: relative; height: min(78svh, 640px); }
  .heros__scene::after { background: linear-gradient(0deg, rgba(10,11,12,.88) 0%, rgba(10,11,12,.45) 50%, rgba(10,11,12,.35) 100%); }
  .heros__etiquette { top: 88px; font-size: 12px; }
  .heros__etiquette--charpente { left: var(--gouttiere); }
  .heros__poignee { width: 46px; height: 46px; top: 24%; }
  .heros__grille { display: block; margin-top: calc(-1 * min(78svh, 640px)); }
  .heros__texte { position: relative; min-height: min(78svh, 640px); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 76px; pointer-events: none; }
  .heros__texte a { pointer-events: auto; }
  .heros h1 { font-size: clamp(38px, 11vw, 56px); }
  .heros__chapeau { font-size: 16.5px; }
  .heros__liens { margin-top: 16px; }
  .soumission { margin-top: -36px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.4); border: 1px solid var(--c-trait); }
  .soumission__onglet { position: relative; bottom: auto; }
  .services__tete, .processus__tete, .mur__grille, .visu__grille, .apropos__grille, .territoire__grille, .faq__grille, .appel .conteneur, .pied__grille { grid-template-columns: minmax(0, 1fr); }
  .service { grid-template-columns: 40px minmax(0, 1fr) 96px; grid-template-areas: "n t p" "n d d"; gap: 10px 14px; padding: 22px 0; }
  .service__num { grid-area: n; align-self: start; padding-top: 8px; }
  .service h3 { grid-area: t; font-size: 26px; }
  .service__corps { grid-area: d; }
  .service__fleche { display: none; }
  .service__photo { grid-area: p; position: relative; width: 96px; opacity: 1; scale: 1; box-shadow: none; }
  .mur__grille { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .mur__texte { display: contents; }
  .mur__texte > * { order: 1; }
  .mur__dessin { order: 2; position: sticky; top: 70px; z-index: 2; padding: 10px 10px 40px; margin-top: 8px; background: #0f1011; box-shadow: 0 18px 24px -12px rgba(0,0,0,.6); }
  .mur__cote { bottom: 12px; left: 10px; right: 10px; }
  .mur__couches { order: 3; margin-top: 18px !important; }
  .mur__couches { margin-top: 44px; }
  .ruban { height: auto; position: absolute; left: var(--gouttiere); top: 0; bottom: 0; width: 44px; margin: 0; }
  .processus .conteneur { position: relative; }
  .processus__corps { position: relative; padding-left: 64px; }
  .ruban__boitier { width: 44px; height: 44px; top: -6px; left: 0; }
  .ruban__boitier::before { width: 18px; height: 18px; border-width: 3px; }
  .ruban__bande { left: 8px; right: auto; width: 28px; top: 30px; bottom: 0; height: auto; transform: scaleY(var(--p)); transform-origin: top; background:
    repeating-linear-gradient(180deg, #17191b 0 2px, transparent 2px 64px) 0 0 / 14px 100% no-repeat,
    repeating-linear-gradient(180deg, #17191b 0 1px, transparent 1px 16px) 0 0 / 8px 100% no-repeat,
    #f6c934; }
  .ruban__bout { display: none; }
  .processus__corps .ruban { left: 0; }
  .etapes { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .etape-proc.est-atteinte { translate: 0 0; }
  .etape-proc { padding: 18px 18px 20px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 12px; border-top: 0; border-left: 4px solid #c9ccd0; }
  .etape-proc.est-atteinte { border-left-color: var(--c-accent); }
  .etape-proc__pouce { grid-row: span 2; font-size: 28px; margin: 0; }
  .apropos__photos { padding-bottom: 50px; }
  .territoire__carte { min-height: 320px; }
  .faq__aside { position: static; }
  .appel__tel { justify-items: start; text-align: left; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .appel__tel .appel-ondes { width: 76px; height: 76px; grid-row: span 2; }
  .appel__tel .appel-ondes svg { width: 30px; height: 30px; }
  .barre-mobile { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr; height: 64px; font: 600 17px/1 var(--f-titre); }
  .barre-mobile a { display: flex; align-items: center; justify-content: center; gap: 10px; }
  .barre-mobile a:first-child { background: var(--c-texte); color: #fff; }
  .barre-mobile a:last-child { background: var(--c-accent); color: #fff; }
  .barre-mobile svg { width: 20px; height: 20px; }
}
@media (max-width: 520px) {
  .logo__texte strong { font-size: 18px; }
  .logo__texte small { font-size: 10px; }
  .logo__marque { width: 36px; height: 36px; }
  .choix-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .soumission__tete, .soumission form { padding-inline: 18px; }
  .soumission .choix { font-size: 14px; padding: 12px 10px; }
  .engagements { grid-template-columns: minmax(0, 1fr); }
  .appel__boutons .bouton { width: 100%; justify-content: space-between; }
  .heros__liens .bouton { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .couche { opacity: 1; transform: none; }
  .ruban { --p: 1 !important; }
}

/* --- Ajouts : vrai logo, galerie de réalisations, citation ----------------- */
.logo { padding: 8px 14px; background: rgba(15, 17, 20, .55); backdrop-filter: blur(6px); border-radius: var(--rayon); transition: background-color .35s, padding .35s; }
.logo img { height: 58px; width: auto; transition: height .35s var(--courbe); }
.entete.est-defile { color: #fff; background: rgba(23, 25, 27, .96); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.entete.est-defile .logo { padding: 0; background: transparent; backdrop-filter: none; }
.entete.est-defile .logo img { height: 46px; }
.entete.est-defile .entete__tel { background: transparent; }
.heros__rbq { margin: 22px 0 0; font: 600 13px/1.3 var(--f-titre); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.galerie { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; }
.galerie__item { position: relative; margin: 0; overflow: hidden; background: var(--c-fond-2); }
.galerie__item--haut { grid-row: span 2; }
.galerie__item--large { grid-column: span 2; }
.galerie__item .image-zoom { position: absolute; inset: 0; }
.galerie__item figcaption { position: absolute; left: 0; bottom: 0; padding: 9px 13px; background: var(--c-texte); color: #fff; font: 600 14px/1.2 var(--f-titre); letter-spacing: .04em; transition: background-color .3s; }
@media (hover: hover) { .galerie__item:hover figcaption { background: var(--c-accent); } }
.realisations__lien { margin: 30px 0 0; }
.citation { margin: 0 0 6px; padding: 18px 0 18px 22px; border-left: 4px solid var(--c-accent); font: 600 clamp(19px, 1.7vw, 22px)/1.35 var(--f-titre); }
.citation cite { display: block; margin-top: 10px; font: 400 14px/1.3 var(--f-texte); color: var(--c-texte-doux); font-style: normal; }
.apropos__photo1 img { object-position: 30% 50%; }
.pied__marque { margin: 0; font: 600 16px/1.1 var(--f-titre); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.pied__marque strong { display: block; font-size: 30px; letter-spacing: -.01em; text-transform: none; color: #fff; font-weight: 800; }
@media (max-width: 900px) {
  .logo img { height: 54px; }
  .entete.est-defile .logo img { height: 42px; }
  .entete__tel { background: rgba(255,255,255,.14) !important; }
  .heros__rbq { margin-top: 10px; font-size: 11.5px; }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; }
  .galerie__item figcaption { font-size: 12.5px; padding: 7px 9px; }
}
@media (max-width: 900px) {
  .heros__liens .lien-fleche:first-child { display: none; }
  .heros__liens { margin-top: 8px; }
  .heros__poignee { top: 21%; }
  .heros__texte { padding-bottom: 62px; }
  .service h3 { font-size: 23px; min-width: 0; gap: 10px; }
  .service h3 .service__icone { width: 26px; height: 26px; }
}
@media (max-width: 380px) { .heros h1 { font-size: 36px; } }
