/* 3D Morbihan : « Filament ».
   Idée de mise en page : une page claire tenue par un seul fil orange qui part de la bobine du premier écran,
   longe les marges, traverse la page à chaque changement de section et finit dans la buse, au-dessus du devis.
   Couleurs : papier, encre, un fil orange, un fil vert. Rien d'autre.
   Polices : Urbanist (titrage, graisses 600 à 800), Source Sans 3 (texte courant et chiffres tabulaires). */
:root {
  --papier: #faf8f3;
  --papier-2: #f2eee5;
  --encre: #16181b;
  --gris: #555a60;
  --trait: #ddd7ca;
  --fil: #ff5a1f;
  --fil-texte: #b93c08;
  --vert: #18a34b;
  --vert-texte: #0c7234;
  --m-accent: #ff5a1f;
  --m-fil-1: #18a34b;
  --titre: "Urbanist", "Avenir Next", "Century Gothic", "Trebuchet MS", sans-serif;
  --texte: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --marge: 20px;
  --large: 1180px;
  --rayon: 18px;
}
@font-face { font-family: "Urbanist"; src: url("/assets/fonts/urbanist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 1.0625rem/1.62 var(--texte); font-variant-numeric: tabular-nums; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--fil); }
a:hover { color: var(--fil-texte); }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; border-radius: 4px; }
.sombre :focus-visible { outline-color: #fff; }
h1, h2, h3 { font-family: var(--titre); line-height: 1.06; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.35rem, 6.2vw, 4.5rem); }
h2 { font-weight: 800; font-size: clamp(1.8rem, 3.9vw, 2.9rem); }
h3 { font-weight: 700; font-size: 1.22rem; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 650; }

.passe { position: absolute; left: -999px; top: 8px; background: var(--encre); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.passe:focus { left: 8px; }
.c { width: 100%; max-width: calc(var(--large) + 2 * var(--marge)); margin: 0 auto; padding: 0 var(--marge); position: relative; z-index: 1; }
@media (min-width: 760px) { :root { --marge: 40px; } }

/* Le brin : petit bout de fil devant un surtitre */
.sur { font: 700 0.86rem/1.2 var(--titre); letter-spacing: 0.09em; text-transform: uppercase; color: var(--fil-texte); display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.sur::before { content: ""; width: 34px; height: 4px; border-radius: 4px; background: var(--fil); flex: none; }
.sur.v { color: var(--vert-texte); }
.sur.v::before { background: var(--vert); }
.chapo { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.55; color: #2b2e33; max-width: 36em; }
.note { color: var(--gris); font-size: 0.97rem; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border-radius: 999px; background: var(--fil); color: var(--encre); font: 750 1.02rem/1.1 var(--titre); letter-spacing: 0.005em; text-decoration: none; border: 2px solid var(--fil); cursor: pointer; }
.btn:hover { background: var(--encre); border-color: var(--encre); color: #fff; }
.btn.creux { background: transparent; border-color: var(--encre); color: var(--encre); }
.btn.creux:hover { background: var(--encre); color: #fff; }
.sombre .btn.creux { border-color: #fff; color: #fff; }
.sombre .btn.creux:hover { background: #fff; color: var(--encre); }
.sombre .btn:hover { background: #fff; border-color: #fff; color: var(--encre); }
.btn.petit { min-height: 44px; padding: 8px 18px; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* En-tête */
.tete { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 243, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait); }
.tete .c { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 1.28rem/1 var(--titre); letter-spacing: -0.02em; text-decoration: none; color: var(--encre); min-height: 44px; }
.logo:hover { color: var(--encre); }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo b { font-weight: 800; color: var(--fil-texte); }
.nav { display: none; }
.tete .tel { font: 700 1rem/1 var(--titre); text-decoration: none; white-space: nowrap; display: none; }
.menu-case { position: absolute; opacity: 0; width: 1px; height: 1px; }
.menu-bouton { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px; border: 2px solid var(--encre); border-radius: 999px; font: 700 0.95rem/1 var(--titre); cursor: pointer; user-select: none; }
.menu-bouton i { width: 16px; height: 2px; background: currentColor; box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor; border-radius: 2px; }
.menu-case:focus-visible + .menu-bouton { outline: 3px solid var(--encre); outline-offset: 3px; }
.menu-case:checked ~ .nav { display: flex; }
.tete .btn { display: none; }
@media (max-width: 939px) {
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--papier); border-bottom: 1px solid var(--trait); flex-direction: column; padding: 8px var(--marge) 18px; box-shadow: 0 18px 30px -22px rgba(0, 0, 0, 0.35); }
  .nav a { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--trait); font: 700 1.05rem/1 var(--titre); text-decoration: none; }
}
@media (min-width: 940px) {
  .menu-bouton { display: none; }
  .nav { display: flex; gap: 26px; margin-left: auto; }
  .nav a { font: 650 0.98rem/1 var(--titre); text-decoration: none; padding: 14px 0; position: relative; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 3px; border-radius: 3px; background: var(--fil); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.25s ease; }
  .nav a:hover { color: var(--encre); }
  .nav a:hover::after { transform: scaleX(1); }
  .tete .tel, .tete .btn { display: inline-flex; }
}

/* Sections */
main { position: relative; display: block; }
.s { padding: 64px 0; position: relative; }
@media (min-width: 760px) { .s { padding: 104px 0; } }
.s.teinte { background: var(--papier-2); }
.sombre { background: var(--encre); color: #f3f1ec; }
.sombre .sur { color: #ff9d73; }
.sombre .note, .sombre .chapo { color: #c9cbcf; }
.sombre a:hover { color: #ff9d73; }
.tete-section { max-width: 46rem; margin-bottom: 44px; }
.tete-section p { margin-top: 18px; }
.texte { max-width: 42rem; }
.texte h3 { margin: 1.7em 0 0.5em; }
.texte ul { margin: 0 0 1em; }
.texte ul li { padding-left: 26px; position: relative; margin-bottom: 0.5em; }
.texte ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 14px; height: 4px; border-radius: 4px; background: var(--fil); }

/* Le fil de la page (tracé par site.js). Il passe dans les marges et sur les frontières de sections. */
.fil-page { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.fil-page path { fill: none; stroke: var(--fil); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fil-page circle { fill: var(--fil); }

/* Premier écran */
.ouverture { padding: 40px 0 56px; }
.ouv { display: grid; gap: 36px; align-items: center; }
.ouv h1 em { font-style: normal; color: var(--fil-texte); }
.ouv .chapo { margin-top: 22px; }
.photo { border-radius: var(--rayon); overflow: hidden; background: #e6e1d6; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ouv .photo { aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
  .ouverture { padding: 72px 0 80px; }
  .ouv { grid-template-columns: 1.08fr 0.92fr; gap: 64px; }
  .ouv .photo { aspect-ratio: 5 / 5.2; }
}
.reperes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 44px; border-top: 1px solid var(--trait); }
.reperes div { padding: 18px 16px 4px 0; }
.reperes dt { font: 800 clamp(1.3rem, 2.4vw, 1.75rem)/1.1 var(--titre); letter-spacing: -0.02em; }
.reperes dd { margin: 6px 0 0; color: var(--gris); font-size: 0.97rem; line-height: 1.4; }
@media (min-width: 900px) { .reperes { grid-template-columns: repeat(4, 1fr); margin-top: 64px; } .reperes div { padding: 24px 28px 0 0; } }

/* Du fil à la pièce : quatre étapes sur un même fil */
.etapes { display: grid; gap: 0; counter-reset: e; }
.etapes li { position: relative; padding: 0 0 30px 44px; counter-increment: e; }
.etapes li::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: -8px; width: 4px; border-radius: 4px; background: var(--fil); }
.etapes li:last-child::before { background: linear-gradient(var(--fil), var(--vert)); bottom: 30px; }
.etapes li::after { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--papier); border: 4px solid var(--fil); }
.etapes li:last-child::after { border-color: var(--vert); top: auto; bottom: 22px; }
.etapes b { display: block; font: 700 0.84rem/1 var(--titre); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fil-texte); margin-bottom: 8px; }
.etapes b::before { content: "Étape " counter(e); }
.etapes h3 { margin-bottom: 8px; }
.etapes p { color: #33363b; }
@media (min-width: 900px) {
  .etapes { grid-template-columns: repeat(4, 1fr); }
  .etapes li { padding: 44px 30px 0 0; }
  .etapes li::before { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 4px; border-radius: 0; }
  .etapes li:first-child::before { border-radius: 4px 0 0 4px; }
  .etapes li:last-child::before { background: linear-gradient(90deg, var(--fil), var(--vert)); border-radius: 0 4px 4px 0; bottom: auto; }
  .etapes li::after { top: 0; }
  .etapes li:last-child::after { top: 0; bottom: auto; left: auto; right: 0; }
}

/* Deux colonnes : titre fixe à gauche, matière à droite */
.duo { display: grid; gap: 36px; }
@media (min-width: 900px) { .duo { grid-template-columns: 0.8fr 1.2fr; gap: 72px; } .duo > .fixe { position: sticky; top: 108px; align-self: start; } }
.duo .fixe p { margin-top: 18px; color: #33363b; }

/* Prestations : des lignes, pas des cartes */
.lignes > li { display: grid; gap: 4px 24px; padding: 20px 0; border-top: 1px solid var(--trait); position: relative; }
.lignes > li:last-child { border-bottom: 1px solid var(--trait); }
.lignes h3 { display: flex; align-items: baseline; gap: 12px; }
.lignes h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--fil); flex: none; transform: translateY(1px); transition: background-color 0.2s; }
.lignes > li:hover h3::before { background: var(--fil); }
.lignes p { color: #33363b; padding-left: 24px; }
@media (min-width: 620px) { .lignes > li { grid-template-columns: 15rem 1fr; align-items: baseline; } .lignes p { padding-left: 0; } }

/* Galerie de réalisations */
.galerie { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.galerie figure { margin: 0; }
.galerie .photo { aspect-ratio: 3 / 4; }
.galerie figcaption { font-size: 0.93rem; line-height: 1.4; color: var(--gris); padding: 10px 2px 8px; }
.galerie figcaption b { color: var(--encre); font-weight: 650; display: block; }
@media (min-width: 900px) { .galerie { grid-template-columns: repeat(4, 1fr); gap: 22px; } .galerie figure:nth-child(even) { margin-top: 44px; } }

/* Matières : un fil par ligne */
.bandeau-photo { aspect-ratio: 1400 / 484; margin-bottom: 44px; }
@media (max-width: 619px) { .bandeau-photo { aspect-ratio: 16 / 9; } }
.matieres { border-top: 2px solid var(--encre); }
.matieres li { display: grid; grid-template-columns: 56px 1fr; gap: 6px 16px; padding: 18px 0; border-bottom: 1px solid var(--trait); align-items: start; }
.matieres .brin { grid-row: span 3; width: 56px; height: 30px; margin-top: 2px; }
.matieres .brin path { fill: none; stroke-width: 5; stroke-linecap: round; }
.matieres h3 { font-size: 1.3rem; }
.matieres h3 small { font: 500 0.95rem var(--texte); color: var(--gris); letter-spacing: 0; margin-left: 6px; }
.matieres p { margin: 0; color: #33363b; }
.matieres .pour { color: var(--gris); font-size: 0.97rem; }
@media (min-width: 900px) {
  .matieres li { grid-template-columns: 72px 13rem 1fr 0.9fr; gap: 28px; align-items: baseline; padding: 22px 0; }
  .matieres .brin { grid-row: auto; width: 72px; align-self: center; }
}

/* Capacités */
.capa { display: grid; gap: 28px; }
.grand { border-radius: var(--rayon); background: var(--encre); color: #f3f1ec; padding: 30px 26px; display: grid; gap: 24px; align-items: center; }
.grand .cote { font: 800 clamp(2.1rem, 6.4vw, 4.2rem)/0.98 var(--titre); letter-spacing: -0.03em; }
.grand .cote span { color: var(--fil); }
.grand p { color: #d2d4d8; max-width: 34em; }
.grand svg { width: 100%; max-width: 250px; justify-self: center; }
.grand svg * { fill: none; stroke: #f3f1ec; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.grand svg .o { stroke: var(--fil); stroke-width: 3; }
.grand svg text { fill: #f3f1ec; stroke: none; font: 600 13px var(--titre); }
.trio { display: grid; gap: 28px; }
.trio h3 { margin-bottom: 8px; }
.trio > div { border-top: 4px solid var(--fil); padding-top: 18px; }
.trio > div:nth-child(2) { border-color: var(--vert); }
.trio > div:nth-child(3) { border-color: var(--encre); }
@media (min-width: 900px) { .grand { grid-template-columns: 1.5fr 1fr; padding: 54px 56px; gap: 40px; } .trio { grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 20px; } }
.finitions { display: grid; gap: 28px; margin-top: 56px; align-items: center; }
.finitions .vues { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.finitions .vues .photo { aspect-ratio: 3 / 4; }
.finitions .vues .photo:nth-child(2) { margin-top: 36px; }
@media (min-width: 900px) { .finitions { grid-template-columns: 1fr 1fr; gap: 72px; } }
.presse { display: grid; gap: 28px; align-items: center; margin-top: 64px; }
.presse .photo { aspect-ratio: 4 / 5; max-width: 420px; }
@media (min-width: 900px) { .presse { grid-template-columns: 0.72fr 1.28fr; gap: 72px; } }

/* Villes : la liste, en grandes lignes */
.villes { display: grid; border-top: 2px solid var(--encre); }
.villes a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 18px 2px; border-bottom: 1px solid var(--trait); text-decoration: none; min-height: 44px; }
.villes a strong { font: 800 clamp(1.25rem, 2.2vw, 1.6rem)/1.15 var(--titre); letter-spacing: -0.02em; }
.villes a span { grid-column: 1; color: var(--gris); font-size: 0.98rem; line-height: 1.45; }
.villes a svg { grid-row: 1 / span 2; grid-column: 2; width: 44px; height: 20px; }
.villes a svg path { fill: none; stroke: var(--fil); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.villes a:hover strong { color: var(--fil-texte); }
.villes a svg { transition: translate 0.25s ease; }
.villes a:hover svg { translate: 6px 0; }
@media (min-width: 900px) { .villes { grid-template-columns: 1fr 1fr; column-gap: 64px; } .villes a { padding: 22px 2px; } }

/* Pour qui */
.publics { display: grid; gap: 30px; }
.publics h3 { margin-bottom: 8px; }
.publics p { color: #33363b; }
@media (min-width: 760px) { .publics { grid-template-columns: 1fr 1fr; gap: 40px 64px; } }
@media (min-width: 1100px) { .publics { grid-template-columns: repeat(4, 1fr); gap: 40px; } }

/* Avis : colonnes, pour des longueurs inégales */
.avis { columns: 1; column-gap: 28px; }
@media (min-width: 700px) { .avis { columns: 2; } }
@media (min-width: 1100px) { .avis { columns: 3; } }
.avis figure { break-inside: avoid; margin: 0 0 28px; padding: 26px 26px 22px; background: #fff; border-radius: var(--rayon); border: 1px solid var(--trait); position: relative; }
.avis figure::before { content: ""; display: block; width: 40px; height: 22px; margin-bottom: 14px; background: no-repeat left center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 22'%3E%3Cpath d='M3 19c0-9 4-15 12-16M22 19c0-9 4-15 12-16' fill='none' stroke='%23ff5a1f' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.avis blockquote { margin: 0; font-size: 1.08rem; line-height: 1.55; }
.avis blockquote p { margin: 0; }
.avis figcaption { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--trait); font-size: 0.95rem; color: var(--gris); display: flex; flex-wrap: wrap; gap: 2px 12px; justify-content: space-between; }
.avis figcaption b { font: 700 1rem var(--titre); color: var(--encre); }

/* Questions */
.faq details { border-top: 1px solid var(--trait); }
.faq details:last-child { border-bottom: 1px solid var(--trait); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font: 700 1.14rem/1.3 var(--titre); letter-spacing: -0.01em; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 16px; height: 16px; background: linear-gradient(var(--fil), var(--fil)) center / 100% 4px no-repeat, linear-gradient(var(--fil), var(--fil)) center / 4px 100% no-repeat; border-radius: 2px; transition: rotate 0.25s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding: 0 36px 22px 0; color: #33363b; max-width: 44rem; }

/* Pages de villes */
.ariane { font-size: 0.94rem; color: var(--gris); margin-bottom: 26px; }
.ariane ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ariane li + li::before { content: ""; display: inline-block; width: 14px; height: 3px; border-radius: 3px; background: var(--fil); margin-right: 10px; vertical-align: middle; }
.ariane a { display: inline-block; padding: 10px 0; }
.cas { display: grid; gap: 0; border-top: 2px solid var(--encre); }
.cas li { padding: 22px 0; border-bottom: 1px solid var(--trait); display: grid; gap: 6px 32px; }
.cas p { color: #33363b; }
@media (min-width: 760px) { .cas li { grid-template-columns: 17rem 1fr; align-items: baseline; } }
.cas.deux { border-top: 0; }
@media (min-width: 900px) { .cas.deux { grid-template-columns: 1fr 1fr; column-gap: 64px; } .cas.deux li { grid-template-columns: 1fr; border-top: 4px solid var(--fil); border-bottom: 0; padding: 18px 0 26px; } .cas.deux li:nth-child(even) { border-top-color: var(--vert); } }
.tableau { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tableau th, .tableau td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tableau thead th { font: 700 0.84rem/1.2 var(--titre); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); border-bottom: 2px solid var(--encre); }
.tableau tbody th { font: 700 1.05rem/1.3 var(--titre); }
.defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 619px) {
  .tableau thead { position: absolute; left: -9999px; }
  .tableau, .tableau tbody, .tableau tr, .tableau th, .tableau td { display: block; }
  .tableau tr { padding: 14px 0; border-bottom: 1px solid var(--trait); }
  .tableau th, .tableau td { border: 0; padding: 2px 0; }
  .tableau td[data-t]::before { content: attr(data-t) " : "; color: var(--gris); font-size: 0.92rem; }
}
.recit { counter-reset: r; display: grid; gap: 0; }
.recit li { counter-increment: r; padding: 0 0 26px 52px; position: relative; }
.recit li::before { content: counter(r); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--fil); font: 800 1rem/28px var(--titre); text-align: center; background: var(--papier); z-index: 1; }
.teinte .recit li::before { background: var(--papier-2); }
.recit li::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 0; width: 4px; background: var(--fil); border-radius: 4px; }
.recit li:last-child::after { display: none; }
.recit li:last-child::before { border-color: var(--vert); }
.recit h3 { margin-bottom: 6px; padding-top: 4px; }
.avec-photo { display: grid; gap: 32px; align-items: start; }
.avec-photo .photo { aspect-ratio: 4 / 3; }
.avec-photo figure { margin: 0; }
.avec-photo figcaption { font-size: 0.93rem; color: var(--gris); padding-top: 10px; }
@media (min-width: 900px) { .avec-photo { grid-template-columns: 1.15fr 0.85fr; gap: 72px; } .avec-photo.inv { grid-template-columns: 0.85fr 1.15fr; } .avec-photo.inv figure { order: -1; } .avec-photo .photo.haute { aspect-ratio: 3 / 4; } .avec-photo figure { position: sticky; top: 108px; } }
.voisines { display: grid; gap: 0; border-top: 2px solid var(--encre); margin-top: 30px; }
.voisines a { display: block; padding: 16px 0; border-bottom: 1px solid var(--trait); text-decoration: none; }
.voisines a strong { font: 750 1.12rem var(--titre); display: block; }
.voisines a span { color: var(--gris); font-size: 0.97rem; }
.voisines a:hover strong { color: var(--fil-texte); }
@media (min-width: 900px) { .voisines { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }

/* Devis */
.devis { padding-bottom: 72px; }
.devis-grille { display: grid; gap: 40px; }
@media (min-width: 980px) { .devis-grille { grid-template-columns: 0.82fr 1.18fr; gap: 72px; align-items: start; } }
#piece { width: 200px; height: auto; margin: 0 0 30px; overflow: visible; }
#piece .couche { fill: none; stroke: var(--fil); stroke-width: 6; stroke-linecap: round; }
#piece .buse { fill: #f3f1ec; }
#piece .plateau { fill: none; stroke: #f3f1ec; stroke-width: 3; stroke-linecap: round; }
.devis h2 { margin-bottom: 18px; }
.devis .appel { margin-top: 30px; padding-top: 24px; border-top: 1px solid #3a3d42; }
.devis .appel a.num { font: 800 clamp(1.7rem, 3.4vw, 2.3rem)/1.1 var(--titre); letter-spacing: -0.02em; text-decoration: none; display: inline-block; padding: 6px 0; }
.devis ul.acquis { margin-top: 22px; }
.devis ul.acquis li { padding-left: 26px; position: relative; margin-bottom: 8px; color: #dcdde0; }
.devis ul.acquis li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 14px; height: 4px; border-radius: 4px; background: var(--vert); }
form.f { background: var(--papier); color: var(--encre); border-radius: var(--rayon); padding: 26px 20px; display: grid; gap: 18px; }
@media (min-width: 620px) { form.f { padding: 38px 40px; grid-template-columns: 1fr 1fr; } form.f .tout { grid-column: 1 / -1; } }
form.f label { display: block; font: 700 0.95rem/1.3 var(--titre); margin-bottom: 7px; }
form.f label small { font: 400 0.9rem var(--texte); color: var(--gris); }
form.f input[type="text"], form.f input[type="email"], form.f input[type="tel"], form.f select, form.f textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid #cfc8b9; border-radius: 12px; background: #fff; color: var(--encre); font: 400 1.03rem/1.4 var(--texte); }
form.f textarea { min-height: 136px; resize: vertical; }
form.f input:focus, form.f select:focus, form.f textarea:focus { border-color: var(--encre); outline: 3px solid var(--fil); outline-offset: 1px; }
form.f input[type="file"] { width: 100%; font: 400 0.98rem var(--texte); padding: 14px; border: 2px dashed #bdb5a4; border-radius: 12px; background: #fff; min-height: 50px; }
form.f .btn { width: 100%; }
form.f .rgpd { font-size: 0.92rem; color: var(--gris); margin: 0; }
.piege { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.erreur { display: none; grid-column: 1 / -1; background: #fff1ea; border: 2px solid var(--fil-texte); color: #7a2604; border-radius: 12px; padding: 14px 16px; font-weight: 600; margin: 0; }
.erreur.vu, .erreur:target { display: block; }
.alerte-fichier { color: #7a2604; font-size: 0.94rem; font-weight: 600; margin: 8px 0 0; }

/* Pied */
.pied { background: #0d0f11; color: #c9cbcf; padding: 56px 0 110px; font-size: 0.98rem; }
.pied a { color: #f3f1ec; }
.pied a:hover { color: #ff9d73; }
.pied .cols { display: grid; gap: 34px; }
.pied h2 { font: 700 0.84rem/1.2 var(--titre); letter-spacing: 0.09em; text-transform: uppercase; color: #9a9da2; margin-bottom: 14px; }
.pied li a { display: inline-block; padding: 7px 0; text-decoration: none; }
.pied li a:hover { text-decoration: underline; }
.pied .logo { color: #fff; margin-bottom: 12px; }
.pied .logo b { color: var(--fil); }
.pied .bas { margin-top: 40px; padding-top: 22px; border-top: 1px solid #2a2d31; display: flex; flex-wrap: wrap; gap: 8px 28px; color: #9a9da2; font-size: 0.92rem; }
.pied .bas a { padding: 6px 0; display: inline-block; }
@media (min-width: 900px) { .pied { padding-bottom: 56px; } .pied .cols { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; } }

/* Barre d'action, téléphone seulement */
.barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(250, 248, 243, 0.96); border-top: 1px solid var(--trait); }
.barre .btn { min-height: 48px; padding: 8px 10px; font-size: 0.98rem; }
@media (min-width: 900px) { .barre { display: none; } }

/* Pages simples (merci, 404, mentions) */
.simple { padding: 64px 0 90px; }
.simple h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 22px; }
.simple h2 { font-size: 1.45rem; margin: 2em 0 0.5em; }
.simple .texte p, .simple .texte li { color: #2b2e33; }
.simple svg.boucle { width: 180px; margin-bottom: 28px; }
.simple svg.boucle path { fill: none; stroke: var(--fil); stroke-width: 5; stroke-linecap: round; }

/* Kit d'animation (motion.css) */
.m [data-m-intro] { visibility: hidden; animation: m-secours 0s 1.2s forwards; }
@keyframes m-secours { to { visibility: visible; } }
.m-pret [data-m-intro] { visibility: visible; animation: none; }
.m-buse { position: absolute; left: 0; right: 0; height: 2px; top: 100%; background: var(--m-accent, #f97316); box-shadow: 0 0 14px 2px var(--m-accent, #f97316); pointer-events: none; z-index: 2; opacity: 0; }
.m-fil { position: fixed; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--m-fil-1, #2563eb), var(--m-accent, #f97316)); z-index: 60; pointer-events: none; }
[data-m="aimant"] { will-change: transform; }
@media (prefers-reduced-motion: reduce) { .m [data-m-intro] { visibility: visible; animation: none; } .m-fil, .m-buse { display: none; } }
@media print { .tete, .barre, .fil-page { display: none; } }
