/* ==========================================================================
   Démo Toitures S. St-Onge : bleu du logo (soleil levant) et marine du bandeau,
   blocs de couleur francs, petits carreaux comme des bardeaux qui se posent.
   ========================================================================== */
@font-face { font-family: "Outfit"; src: url("/ressources/polices/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Karla"; src: url("/ressources/polices/karla.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bleu: #055eba;
  --bleu-fonce: #04498f;
  --bleu-pale: #e8f0fb;
  --nuit: #1b2431;
  --nuit-2: #243041;

  --c-fond: #ffffff;
  --c-fond-2: #f2f5f9;
  --c-texte: #1b2431;
  --c-texte-doux: #566273;
  --c-trait: rgba(27, 36, 49, .13);
  --c-accent: var(--bleu);
  --c-accent-texte: #ffffff;
  --c-sombre: var(--nuit);
  --c-sombre-texte: #eef2f7;

  --f-titre: "Outfit", system-ui, sans-serif;
  --f-texte: "Karla", system-ui, sans-serif;

  --rayon: 4px;
  --rayon-bouton: 3px;
  --carreau: 22px;
  --entete-h: 84px;
  --ombre: 0 26px 50px -30px rgba(10, 30, 60, .45);
}

html, body { overflow-x: clip; }
body { font-size: 17.5px; }
h1, h2, h3 { font-weight: 650; letter-spacing: -.025em; }
h2 { font-size: clamp(32px, 4.2vw, 52px); }
.surtitre { font-family: var(--f-titre); font-weight: 600; letter-spacing: .12em; gap: 10px; }
.surtitre::before { content: ""; width: 10px; height: 10px; background: currentColor; }
.section--sombre .surtitre { color: #7fb2ee; }
.chapeau { font-size: clamp(17.5px, 1.4vw, 20px); }

/* --- Boutons : carrés, flèche dans une case ------------------------------- */
.bouton { font-family: var(--f-titre); font-weight: 600; padding: 15px 16px 15px 22px; gap: 18px; min-height: 52px; letter-spacing: .005em; }
.bouton .fleche { background: rgba(0, 0, 0, .2); box-shadow: 0 0 0 9px rgba(0, 0, 0, .2); border-radius: 1px; margin-right: 9px; }
.bouton--sombre { background: var(--nuit); color: #fff; }
.bouton--accent:hover { background: var(--bleu-fonce); }
.bouton--sombre:hover { background: #0e1520; }
.lien-fleche { color: var(--bleu); font-family: var(--f-titre); }
.lien-fleche { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: 3px; transition: background-size .4s var(--courbe); }
@media (hover: hover) { .lien-fleche:hover { background-size: 100% 2px; } }

/* --- Carreaux (bardeaux qui se posent) ------------------------------------ */
.carreaux { position: absolute; display: grid; grid-template-columns: repeat(3, var(--carreau)); grid-auto-rows: var(--carreau); pointer-events: none; z-index: 2; }
.carreaux i { display: block; background: var(--c-carreau, #fff); }
.carreaux i:nth-child(1) { grid-area: 1 / 1; }
.carreaux i:nth-child(2) { grid-area: 1 / 2; }
.carreaux i:nth-child(3) { grid-area: 2 / 1; }
.carreaux i:nth-child(4) { grid-area: 2 / 3; }
.carreaux i:nth-child(5) { grid-area: 3 / 2; }
.js .carreaux i { opacity: 0; translate: 0 -26px; transition: opacity .45s var(--courbe), translate .6s cubic-bezier(.3, 1.5, .5, 1); }
.js .carreaux.pose i { opacity: 1; translate: none; }
.carreaux.pose i:nth-child(2) { transition-delay: .09s; }
.carreaux.pose i:nth-child(3) { transition-delay: .18s; }
.carreaux.pose i:nth-child(4) { transition-delay: .27s; }
.carreaux.pose i:nth-child(5) { transition-delay: .36s; }

/* --- En-tête --------------------------------------------------------------- */
.entete { background: #fff; padding-block: 0; box-shadow: 0 1px 0 var(--c-trait); }
.entete.est-defile { padding-block: 0; background: rgba(255, 255, 255, .96); }
.entete-rangee { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--entete-h); transition: height .35s var(--courbe); }
.est-defile .entete-rangee { height: 70px; }
.logo img { height: 58px; width: auto; transition: height .35s var(--courbe); }
.est-defile .logo img { height: 48px; }
.nav-ordi { display: flex; gap: 30px; font-family: var(--f-titre); font-weight: 500; font-size: 16px; }
.nav-ordi a { position: relative; padding-block: 6px; }
.nav-ordi a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--bleu); scale: 0 1; transform-origin: right; transition: scale .4s var(--courbe); }
.nav-ordi a:hover::after { scale: 1 1; transform-origin: left; }
.entete-actions { display: flex; align-items: center; gap: 20px; }
.entete-tel { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-titre); font-weight: 600; white-space: nowrap; }
.entete-tel svg { width: 18px; color: var(--bleu); }
.entete-soumission { min-height: 46px; padding-block: 12px; }
.bouton-menu { border-radius: 3px; background: var(--nuit); position: relative; }
.bouton-menu span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; transition: translate .35s var(--courbe), rotate .35s var(--courbe); }
.bouton-menu span:first-child { translate: 0 -4px; }
.bouton-menu span:last-child { translate: 0 4px; }
html.menu-ouvert .bouton-menu span:first-child { translate: 0 0; rotate: 45deg; }
html.menu-ouvert .bouton-menu span:last-child { translate: 0 0; rotate: -45deg; }
html.menu-ouvert .entete { z-index: 70; }
.panneau-menu { padding-top: calc(var(--entete-h) + 16px); }
.panneau-menu a { font-weight: 600; }
.panneau-bas { margin-top: auto; display: grid; gap: 14px; }
.panneau-bas a { border: 0; font-size: 17px; }
.panneau-bas .bouton { justify-content: space-between; font-size: 17px; padding-block: 15px; }
.panneau-courriel { color: var(--c-texte-doux); font-family: var(--f-texte) !important; font-weight: 500 !important; }

/* --- Héros ----------------------------------------------------------------- */
.heros { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); padding-top: var(--entete-h); min-height: 100svh; }
.heros-bloc { position: relative; overflow: hidden; background: var(--bleu); color: #fff; padding: clamp(36px, 4vw, 60px) clamp(24px, 5vw, 72px) clamp(36px, 4vw, 56px) max(var(--gouttiere), calc((100vw - var(--conteneur)) / 2)); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.heros-texte { position: relative; z-index: 1; max-width: 640px; }
.heros .surtitre { color: #cfe2fa; }
.heros h1 { font-size: clamp(38px, 4.2vw, 60px); line-height: 1.02; margin-bottom: 18px; }
.heros-chapeau { font-size: clamp(17px, 1.35vw, 19.5px); color: rgba(255, 255, 255, .86); max-width: 56ch; margin: 0; }

/* Soleil levant du logo : rayons qui tournent, faîte qui se trace */
.soleil { position: absolute; right: -60px; top: -30px; width: min(520px, 62%); opacity: .2; pointer-events: none; }
.soleil-rayons { fill: #fff; transform-origin: 200px 200px; animation: rayons 60s linear infinite; }
.soleil-disque { fill: #fff; opacity: .55; }
.soleil-faite { fill: none; stroke: #fff; stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: faite 1.8s .3s var(--courbe) forwards; }
.js .soleil > g { translate: 0 60px; opacity: 0; animation: lever 2.2s .2s var(--courbe) forwards; }
@keyframes rayons { to { rotate: 360deg; } }
@keyframes faite { to { stroke-dashoffset: 0; } }
@keyframes lever { to { translate: 0 0; opacity: 1; } }

/* Formulaire du héros */
.heros-form { position: relative; z-index: 1; max-width: 640px; background: #fff; color: var(--c-texte); padding: 22px 24px 24px; border-radius: var(--rayon); box-shadow: 0 30px 60px -30px rgba(0, 18, 50, .6); clip-path: none !important; }
.heros-form-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.heros-form-onglet { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--f-titre); letter-spacing: .1em; text-transform: uppercase; color: var(--bleu); }
.heros-form-onglet::before { content: ""; width: 8px; height: 8px; background: var(--bleu); animation: clignote 1.6s ease-in-out infinite; }
@keyframes clignote { 50% { opacity: .25; } }
.heros-form-etape { font-size: 14px; color: var(--c-texte-doux); }
.heros-form .etapes-barre { height: 4px; border-radius: 0; margin-bottom: 18px; }
.heros-form .etapes-barre > span { border-radius: 0; }
.heros-form legend { font: 650 clamp(20px, 1.8vw, 24px)/1.2 var(--f-titre); letter-spacing: -.015em; margin-bottom: 14px; padding: 0; }
.choix-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choix { position: relative; border-radius: 3px; padding: 13px 14px 13px 46px; min-height: 54px; font-family: var(--f-titre); font-weight: 500; line-height: 1.25; background: var(--c-fond-2); border-color: transparent; }
.choix input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choix::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid rgba(27, 36, 49, .35); background: #fff; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.choix:has(input:checked)::before { background: var(--bleu); border-color: var(--bleu); box-shadow: inset 0 0 0 3px #fff; }
.choix:has(input:focus-visible) { outline: 2px solid var(--bleu); outline-offset: 2px; }
.heros-form .champs-duo { margin-bottom: 10px; }
.heros-form-boutons { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 16px; }
.bouton-retour { border: 0; background: none; padding: 12px 6px; color: var(--c-texte-doux); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; }
.heros-form .merci, .merci { background: var(--bleu-pale); color: var(--nuit); border-radius: var(--rayon); }

.heros-photo { position: relative; min-height: 420px; }
.heros-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.js .heros-photo > img { animation: devoile 1.6s .1s var(--courbe) both; }
@keyframes devoile { from { clip-path: inset(0 0 0 100%); scale: 1.08; } to { clip-path: inset(0 0 0 0); scale: 1; } }
.heros-legende { position: absolute; right: 16px; bottom: 16px; margin: 0; padding: 8px 12px; background: rgba(27, 36, 49, .78); color: #fff; font-size: 14px; border-radius: 2px; backdrop-filter: blur(6px); }
.carreaux--heros { left: 0; top: 0; }

/* --- Bandeau ----------------------------------------------------------------- */
.bandeau { background: var(--nuit); color: #fff; padding-block: 20px; --bandeau-espace: 34px; --bandeau-duree: 36s; }
.bandeau .piste { align-items: center; font: 600 clamp(18px, 1.8vw, 24px)/1 var(--f-titre); letter-spacing: -.01em; white-space: nowrap; }
.bandeau .carre { width: 12px; height: 12px; background: var(--bleu); rotate: 45deg; flex: none; }

/* --- Têtes de sections --------------------------------------------------------- */
.tete-section { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.tete-section--rangee { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 64px; align-items: end; }
.tete-section--rangee h2, .tete-section--rangee .chapeau { margin-bottom: 0; }

/* --- Services ----------------------------------------------------------------- */
.services-liste { display: grid; gap: 22px; }
.service { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); background: #fff; border: 1px solid var(--c-trait); border-radius: var(--rayon); overflow: hidden; }
.service:nth-child(even) .service-image { order: 2; }
.service-image { position: relative; border-radius: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.service-image .carreaux { --carreau: 16px; top: 0; left: 0; }
.service:nth-child(even) .service-image .carreaux { left: auto; right: 0; transform: scaleX(-1); }
.service-texte { padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.service-numero { font: 600 clamp(40px, 4.4vw, 60px)/1 var(--f-titre); color: transparent; -webkit-text-stroke: 1.5px var(--bleu); margin-bottom: 18px; transition: color .4s; }
.service h3 { font-size: clamp(22px, 2.2vw, 30px); }
.service p { color: var(--c-texte-doux); max-width: 48ch; }
@media (hover: hover) { .service:hover .service-numero { color: var(--bleu); } .service:hover { border-color: color-mix(in srgb, var(--bleu) 40%, transparent); } }

/* --- Étanchéité / pluie -------------------------------------------------------- */
.etancheite-grille { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.points { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--c-trait); }
.points .faq-item summary { padding: 18px 0; font-size: 18px; justify-content: flex-start; }
.points .plus { margin-left: auto; }
.points-num { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; background: var(--nuit); color: #fff; font: 600 14px/1 var(--f-texte); transition: background-color .3s; }
.points .faq-item[open] .points-num { background: var(--bleu); }
.points .faq-reponse > div { padding-left: 54px; padding-bottom: 20px; }

.pluie-carte { background: #fff; border-radius: var(--rayon); padding: 18px; box-shadow: var(--ombre); }
.pluie-bascule { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--c-fond-2); padding: 4px; border-radius: 3px; margin-bottom: 12px; }
.pluie-bascule button { position: relative; z-index: 1; border: 0; background: none; padding: 12px 10px; min-height: 46px; font: 600 15px/1.2 var(--f-titre); cursor: pointer; color: var(--c-texte-doux); transition: color .3s; }
.pluie-bascule button.est-actif { color: #fff; }
.pluie-curseur { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: var(--bleu); border-radius: 2px; transition: translate .45s var(--courbe), background-color .45s; translate: 100% 0; }
.pluie-carte[data-mode="use"] .pluie-curseur { translate: 0 0; background: #b64132; }
.pluie { width: 100%; height: auto; overflow: hidden; }
.pluie-mur, .pluie-chevrons { fill: none; stroke: #b7c4d6; stroke-width: 3; }
.pluie-pontage { stroke: #8a6a45; stroke-width: 7; }
.pluie-bardeaux path { fill: #3b4554; stroke: #232b36; stroke-width: 1; }
.pluie-bardeau-leve { fill: #3b4554; stroke: #232b36; }
.pluie-gouttiere { fill: #9aa8ba; }
.pluie-gouttes ellipse { fill: #2f86e6; }
.pluie-flaque { fill: #3d8fe8; opacity: .55; transition: rx 1s, ry 1s; }
.pluie-etiquette { font: 600 19px var(--f-titre); fill: var(--nuit); fill-opacity: 0; transition: fill-opacity .4s; }
.pluie-carte[data-mode="neuf"] .pluie-etiquette--ok { fill-opacity: 1; }
.pluie-carte[data-mode="use"] .pluie-etiquette--fuite { fill-opacity: 1; fill: #b64132; }
.pluie-note { margin: 8px 4px 0; font-size: 14px; color: var(--c-texte-doux); }

/* --- Chantier en 3 temps ----------------------------------------------------- */
.chantier-cadre { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); background: var(--nuit); border-radius: var(--rayon); overflow: hidden; }
.chantier-photos { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.chantier-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.06; transition: opacity .8s var(--courbe), scale 1.6s var(--courbe); }
.chantier-photos img:nth-child(3) { object-position: 50% 62%; }
.chantier-photos img.est-active { opacity: 1; scale: 1; }
.chantier-etapes { display: flex; flex-direction: column; }
.chantier-etapes button { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; text-align: left; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); background: none; color: rgba(255, 255, 255, .55); padding: 22px clamp(20px, 2.6vw, 36px); cursor: pointer; transition: background-color .4s, color .4s; }
.chantier-etapes button:last-child { border-bottom: 0; }
.chantier-etapes strong { font: 650 clamp(20px, 1.9vw, 26px)/1.1 var(--f-titre); color: #fff; opacity: .6; transition: opacity .4s; }
.chantier-etapes span:last-of-type { font-size: 15.5px; line-height: 1.45; }
.chantier-temps { font: 600 12px/1 var(--f-titre); letter-spacing: .14em; text-transform: uppercase; color: #7fb2ee; }
.chantier-etapes button.est-active { background: var(--nuit-2); color: rgba(255, 255, 255, .85); }
.chantier-etapes button.est-active strong { opacity: 1; }
.chantier-progres { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: rgba(255, 255, 255, .08); }
.chantier-progres::after { content: ""; position: absolute; inset: 0 0 auto; height: var(--p, 0%); background: var(--bleu); }
.chantier-etapes button:hover strong { opacity: 1; }

/* --- Calculateur ------------------------------------------------------------- */
.calculateur { position: relative; overflow: hidden; }
.carreaux--coin { --c-carreau: var(--bleu); right: 0; top: 0; transform: scaleX(-1); }
.calculateur-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.calc { margin-top: 30px; display: grid; gap: 24px; }
.calc-champ label { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-titre); font-weight: 500; margin-bottom: 10px; }
.calc-champ output { font-weight: 650; color: #fff; background: var(--bleu); padding: 2px 9px; border-radius: 2px; min-width: 64px; text-align: center; }
.calc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: none; cursor: pointer; margin: 0; }
.calc input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(var(--bleu), var(--bleu)) 0 0 / var(--rempli, 50%) 100% no-repeat, rgba(255, 255, 255, .16); }
.calc input[type="range"]::-moz-range-track { height: 6px; background: rgba(255, 255, 255, .16); }
.calc input[type="range"]::-moz-range-progress { height: 6px; background: var(--bleu); }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; background: #fff; border: 6px solid var(--bleu); border-radius: 2px; transition: scale .2s; }
.calc input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; background: #fff; border: 6px solid var(--bleu); border-radius: 2px; }
.calc input[type="range"]:active::-webkit-slider-thumb { scale: 1.15; }
.calc-pentes { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.calc-pentes legend { font-family: var(--f-titre); font-weight: 500; margin-bottom: 10px; padding: 0; }
.pente { position: relative; display: grid; justify-items: center; gap: 8px; padding: 14px 6px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 3px; cursor: pointer; font-size: 14.5px; text-align: center; transition: border-color .25s, background-color .25s; }
.pente input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.pente svg { width: 54px; height: 28px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: round; transition: stroke .25s; }
.pente:has(input:checked) { border-color: var(--bleu); background: rgba(5, 94, 186, .22); }
.pente:has(input:checked) svg { stroke: #7fb2ee; }
.pente:has(input:focus-visible) { outline: 2px solid #7fb2ee; outline-offset: 2px; }
.calc-case { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.calc-case input { width: 22px; height: 22px; accent-color: var(--bleu); flex: none; margin: 0; }

.calc-resultat { background: var(--nuit-2); border-radius: var(--rayon); padding: clamp(22px, 3vw, 36px); position: sticky; top: 100px; }
.calc-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.calc-gros { display: block; font: 650 clamp(30px, 3.4vw, 46px)/1 var(--f-titre); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc-gros--accent { color: #7fb2ee; }
.calc-unite { display: block; margin-top: 6px; font-size: 14.5px; color: rgba(255, 255, 255, .65); }
.calc-carres { display: flex; flex-wrap: wrap; gap: 5px; padding: 22px 0; min-height: 120px; align-content: flex-start; }
.calc-carres i { width: 18px; height: 18px; background: var(--bleu); animation: carre-pose .45s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(var(--n) * 14ms); }
.calc-carres i.demi { background: linear-gradient(90deg, var(--bleu) 50%, rgba(255, 255, 255, .14) 50%); }
@keyframes carre-pose { from { opacity: 0; translate: 0 -14px; } }
.calc-avis { font-size: 14.5px; color: rgba(255, 255, 255, .66); }
.calc-resultat .bouton { width: 100%; justify-content: space-between; }

/* --- Méthode ------------------------------------------------------------------ */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; --progres: 0; }
.etapes::before, .etapes::after { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--c-trait); }
.etapes::after { background: var(--bleu); transform-origin: left; scale: var(--progres) 1; }
.etapes li { position: relative; z-index: 1; }
.etape-pastille { display: grid; place-items: center; width: 48px; height: 48px; background: #fff; border: 2px solid var(--c-trait); font: 650 18px/1 var(--f-texte); margin-bottom: 22px; transition: background-color .4s, border-color .4s, color .4s; }
.etapes li.est-atteinte .etape-pastille { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.etapes h3 { font-size: 22px; }
.etapes p { color: var(--c-texte-doux); margin: 0; }

/* --- À propos ------------------------------------------------------------------ */
.apropos-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.apropos-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--rayon); }
.apropos-photo img { position: absolute; left: 0; width: 100%; top: -6%; height: 112%; object-fit: cover; object-position: 50% 60%; }
.apropos-texte p { color: var(--c-texte-doux); }
.apropos-liste { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.apropos-liste li { display: flex; gap: 14px; align-items: baseline; font-family: var(--f-titre); font-weight: 500; font-size: 18px; }
.apropos-liste li::before { content: ""; width: 10px; height: 10px; background: var(--bleu); flex: none; translate: 0 -2px; }

/* --- Territoire ------------------------------------------------------------- */
.territoire-grille { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.territoire address { font-style: normal; font-family: var(--f-titre); font-weight: 500; font-size: 18px; padding-left: 18px; border-left: 4px solid var(--bleu); }
.territoire-carte { aspect-ratio: 4 / 3; border-radius: var(--rayon); overflow: hidden; background: var(--c-fond-2); box-shadow: var(--ombre); }
.territoire-carte iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- Questions ------------------------------------------------------------- */
.questions-grille { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.questions-tete { position: sticky; top: 110px; }
.faq { border-top: 1px solid var(--c-trait); }
.faq .faq-item summary { justify-content: flex-start; gap: 20px; }
.faq-num { font: 600 14px/1 var(--f-texte); color: var(--bleu); min-width: 24px; }
.faq-q { flex: 1; }
.faq .faq-reponse > div { padding-left: 44px; }
@media (hover: hover) { .faq .faq-item summary:hover .faq-q { color: var(--bleu); } }
.faq .faq-q { transition: color .25s; }

/* --- Appel ------------------------------------------------------------------- */
.appel { position: relative; overflow: hidden; background: var(--bleu); color: #fff; padding-block: clamp(56px, 7vw, 96px); }
.carreaux--appel { left: 0; bottom: 0; transform: scaleY(-1); --c-carreau: var(--nuit); }
.appel-rangee { display: flex; align-items: center; justify-content: space-between; gap: 32px 56px; }
.appel h2 { margin: 0; max-width: 16ch; font-size: clamp(32px, 4vw, 52px); }
.appel-actions { display: flex; align-items: center; gap: 22px; flex: none; }
.appel .appel-ondes { background: #fff; color: var(--bleu); width: 72px; height: 72px; }
.appel .appel-ondes::before, .appel .appel-ondes::after { border-color: #fff; }
.appel-petit { display: block; font-size: 15px; opacity: .8; }
.appel-numero { font: 650 clamp(28px, 3vw, 40px)/1.1 var(--f-titre); letter-spacing: -.02em; white-space: nowrap; }

/* --- Soumission ------------------------------------------------------------- */
.soumission-grille { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.soumission-photo { aspect-ratio: 4 / 4.2; overflow: hidden; border-radius: var(--rayon); }
.soumission-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.soumission-coord { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
.soumission-coord li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--c-trait); font-family: var(--f-titre); font-weight: 500; flex-wrap: wrap; }
.soumission-coord span { color: var(--c-texte-doux); font-family: var(--f-texte); font-weight: 400; }
.soumission-coord a:hover { color: var(--bleu); }
.formulaire { display: grid; gap: 16px; margin-top: 28px; }
.formulaire label { display: grid; gap: 7px; font-family: var(--f-titre); font-weight: 500; font-size: 15.5px; }
.champs-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.heros-form .champs-duo { gap: 10px; }
.champ { border-radius: 3px; background: #fff; min-height: 50px; font-size: 16px; }
.formulaire .champ { background: var(--c-fond-2); border-color: transparent; }
.formulaire .champ:focus { background: #fff; }
.formulaire textarea { resize: vertical; }
.formulaire .bouton { justify-self: start; }
.champ.est-rempli { animation: rempli 1.2s var(--courbe); }
@keyframes rempli { 0% { box-shadow: 0 0 0 0 rgba(5, 94, 186, .5); } 100% { box-shadow: 0 0 0 14px rgba(5, 94, 186, 0); } }

/* --- Pied ---------------------------------------------------------------------- */
.pied { background: var(--nuit); color: #dfe6ef; padding: clamp(56px, 7vw, 88px) 0 28px; }
.pied-haut { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.pied-soleil { width: 96px; fill: var(--bleu); margin-bottom: 16px; }
.pied-faite { fill: none; stroke: #fff; stroke-width: 5; stroke-linejoin: round; }
.pied-nom { font: 650 26px/1.1 var(--f-titre); color: #fff; margin-bottom: 8px; }
.pied-marque p:last-child { color: rgba(223, 230, 239, .7); max-width: 32ch; }
.pied-liens, .pied-coord { display: grid; gap: 10px; align-content: start; }
.pied-liens a, .pied-coord a { width: fit-content; transition: color .25s; }
.pied-liens a:hover, .pied-coord a:hover { color: #7fb2ee; }
.pied-coord span { color: rgba(223, 230, 239, .7); }
.pied-bas { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: 14px; color: rgba(223, 230, 239, .65); flex-wrap: wrap; }
.pied-bas p { margin: 0; }
.credit-b2web a { color: #fff; }

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

/* ========================== Tablette ============================ */
@media (max-width: 1100px) {
  .nav-ordi { gap: 20px; font-size: 15px; }
  .entete-tel { display: none; }
}
@media (max-width: 900px) {
  :root { --entete-h: 70px; }
  .logo img, .est-defile .logo img { height: 46px; }
  .est-defile .entete-rangee { height: 64px; }
  .entete-soumission { display: none; }
  .heros { grid-template-columns: 1fr; min-height: 0; }
  .heros-bloc { padding: 36px var(--gouttiere) 32px; gap: 24px; }
  .heros-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .soleil { width: 300px; right: -90px; top: -20px; }
  .heros-texte, .heros-form { max-width: none; }
  .tete-section--rangee { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-image { order: 0; }
  .etancheite-grille, .calculateur-grille, .apropos-grille, .territoire-grille, .questions-grille, .soumission-grille { grid-template-columns: 1fr; }
  .chantier-cadre { grid-template-columns: 1fr; }
  .chantier-etapes { flex-direction: row; }
  .chantier-etapes button { border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, .1); padding: 16px 14px 18px; justify-content: flex-start; }
  .chantier-etapes button:last-child { border-right: 0; }
  .chantier-etapes span:last-of-type { display: none; }
  .chantier-etapes strong { font-size: 17px; }
  .chantier-progres { inset: 0 0 auto; width: auto; height: 4px; }
  .chantier-progres::after { inset: 0 auto 0 0; height: auto; width: var(--p, 0%); }
  .chantier-legende { display: block; }
  .calc-resultat { position: static; }
  .etapes { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .etapes::before, .etapes::after { display: none; }
  .questions-tete { position: static; }
  .appel-rangee { flex-direction: column; align-items: flex-start; }
  .pied-haut { grid-template-columns: 1fr 1fr; }
  .pied-marque { grid-column: 1 / -1; }
}

/* ========================== Téléphone ============================ */
@media (max-width: 640px) {
  body { font-size: 16.5px; padding-bottom: 68px; }
  .heros h1 { font-size: clamp(34px, 9.6vw, 44px); }
  .heros-form { padding: 18px 16px 18px; }
  .choix-grille { grid-template-columns: 1fr; gap: 8px; }
  .choix { min-height: 52px; padding-block: 13px; }
  .champs-duo { grid-template-columns: 1fr; }
  .heros-form-boutons { justify-content: space-between; }
  .heros-form-boutons .bouton { flex: 1; justify-content: space-between; }
  .heros-legende { right: 10px; bottom: 10px; font-size: 13px; }
  .carreaux { --carreau: 16px; }
  .service-image .carreaux { --carreau: 12px; }
  .service-numero { margin-bottom: 12px; }
  .pluie-carte { padding: 12px; }
  .pluie-bascule button { font-size: 14px; }
  .calc-pentes { grid-template-columns: 1fr 1fr; }
  .calc-chiffres { gap: 8px; }
  .calc-gros { font-size: 30px; }
  .calc-unite { font-size: 13px; }
  .calc-carres i { width: 15px; height: 15px; }
  .calc-resultat .bouton { font-size: 15.5px; }
  .etapes { grid-template-columns: 1fr; row-gap: 28px; }
  .etapes li { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; }
  .etape-pastille { grid-row: span 2; margin: 0; }
  .etapes h3 { margin-bottom: 6px; }
  .faq .faq-item summary { gap: 14px; }
  .faq .faq-reponse > div { padding-left: 0; }
  .points .faq-reponse > div { padding-left: 0; }
  .appel-actions { gap: 18px; }
  .carreaux--appel { left: auto; right: 0; bottom: auto; top: 0; transform: scaleX(-1); }
  .soumission-photo { aspect-ratio: 4 / 3; }
  .formulaire .bouton { justify-self: stretch; justify-content: space-between; }
  .pied-haut { grid-template-columns: 1fr; gap: 28px; }
  .pied-bas { flex-direction: column; }

  .barre-mobile { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -1px 0 var(--c-trait), 0 -10px 30px -18px rgba(0, 0, 0, .35); }
  .barre-mobile a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 3px; font: 600 16px/1 var(--f-titre); }
  .barre-appel { background: var(--nuit); color: #fff; }
  .barre-appel svg { width: 18px; }
  .barre-soumission { background: var(--bleu); color: #fff; }
}
