/* =====================================================================
   Atelier Linteau : démonstration fictive.
   Langue visuelle : chantier. Béton, noir, orange signalisation ;
   Anton (titres très condensés) et Archivo (texte), auto-hébergées (OFL).
   Grandes masses, filets épais, numéros de section, gros boutons d'appel.
====================================================================== */
@font-face { font-family: "Anton"; src: url("../fonts/anton.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --noir: #111214;
  --noir-2: #1C1D20;
  --beton: #ECEAE5;
  --beton-2: #DCD9D1;
  --signal: #FF5A1F;
  --signal-texte: #B83A0A;
  --gris: #4A4A47;
  --gris-clair: #A9A8A2;
  --titre: "Anton", Impact, "Arial Narrow", sans-serif;
  --texte: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --marge: clamp(1rem, 4vw, 3rem);
  --max: 82rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--beton); color: var(--noir); font: 400 1.0625rem/1.55 var(--texte); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 400; text-transform: uppercase; line-height: .92; letter-spacing: .005em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cadre { width: min(100% - 2 * var(--marge), var(--max)); margin-inline: auto; }

.demo { background: var(--noir); color: var(--gris-clair); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: .3rem 1rem; border-bottom: 1px solid #2a2b2e; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 30; background: var(--noir); color: var(--beton); }
.entete .cadre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.marque { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.marque b { font-family: var(--titre); font-weight: 400; font-size: 1.7rem; letter-spacing: .02em; line-height: 1; }
.marque i { font-style: normal; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gris-clair); line-height: 1.2; }
.marque svg { width: 2.1rem; height: 2.1rem; flex: none; }
.marque > span { display: grid; gap: .2rem; }
.nav { display: flex; gap: 1.6rem; font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.nav a { text-decoration: none; padding: .5rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--signal); }
.appeler-entete { display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1.1rem; background: var(--signal); color: var(--noir); font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; }
.appeler-entete svg { width: 1.1rem; height: 1.1rem; }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 420px) { .appeler-entete span { display: none; } .marque i { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--noir); min-height: min(92svh, 56rem); display: grid; align-items: end; overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(17 18 20 / .25) 0%, rgb(17 18 20 / .55) 45%, rgb(17 18 20 / .94) 100%); }
.hero .cadre { position: relative; z-index: 1; padding-block: 7rem clamp(2rem, 5vw, 4rem); }
.hero .sur { display: inline-block; background: var(--signal); color: var(--noir); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .65rem; }
.hero h1 { font-size: clamp(4.2rem, 17vw, 12.5rem); line-height: 1.02; margin-top: 1.5rem; }
.hero h1 span { display: block; color: var(--signal); }
.hero .accroche { margin-top: 1.4rem; max-width: 36rem; font-size: clamp(1.05rem, 2vw, 1.3rem); color: #E4E2DC; }
.hero .boutons { margin-top: 2rem; display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); max-width: 44rem; }
@media (min-width: 640px) { .hero .boutons { grid-template-columns: 1.4fr 1fr; } }

/* Gros bouton d'appel */
.gros-appel { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; background: var(--signal); color: var(--noir); text-decoration: none; transition: transform .2s, background .2s; }
.gros-appel:hover { background: #ff7342; transform: translateY(-2px); }
.gros-appel svg { width: 2.4rem; height: 2.4rem; flex: none; }
.gros-appel small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gros-appel strong { display: block; font-family: var(--titre); font-weight: 400; font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1; letter-spacing: .02em; }
.btn-contour { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.5rem; padding: 1rem 1.4rem; border: 2px solid currentColor; color: inherit; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; background: transparent; font-family: var(--texte); font-size: 1rem; cursor: pointer; }
.btn-contour:hover { background: currentColor; }
.btn-contour:hover span { color: var(--noir); }
.hero .btn-contour:hover span { color: var(--noir); }

/* Bande de chiffres */
.chiffres { background: var(--signal); color: var(--noir); }
.chiffres ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .chiffres ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chiffres li { padding: 1.25rem var(--marge) 1.4rem; border-right: 2px solid var(--noir); border-bottom: 2px solid var(--noir); }
.chiffres li:nth-child(2n) { border-right: 0; }
@media (min-width: 900px) { .chiffres li { border-bottom: 0; border-right: 2px solid var(--noir); } .chiffres li:nth-child(2n) { border-right: 2px solid var(--noir); } .chiffres li:last-child { border-right: 0; } }
.chiffres b { display: block; font-family: var(--titre); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1; }
.chiffres span { display: block; margin-top: .35rem; font-size: .88rem; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 10vw, 8rem); }
.section.sombre { background: var(--noir); color: var(--beton); }
.entete-section { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 900px) { .entete-section { grid-template-columns: 9rem 1fr minmax(0, 24rem); align-items: end; } }
.entete-section .num { font-family: var(--titre); font-size: 1.2rem; color: var(--signal-texte); border-top: 4px solid currentColor; padding-top: .5rem; width: 4rem; }
.sombre .entete-section .num { color: var(--signal); }
.entete-section h2 { font-size: clamp(3rem, 9vw, 6.5rem); }
.entete-section p { color: var(--gris); }
.sombre .entete-section p { color: var(--gris-clair); }

/* Métiers */
.metiers { border-top: 4px solid var(--noir); }
.metier { display: grid; gap: .75rem 2rem; padding-block: 1.75rem; border-bottom: 2px solid var(--noir); }
@media (min-width: 900px) { .metier { grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } }
.metier .n { font-family: var(--titre); font-size: 1.1rem; color: var(--signal-texte); }
.metier h3 { font-size: clamp(2.4rem, 7vw, 4.4rem); }
.metier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .metier ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.metier li { display: flex; gap: .55rem; font-weight: 500; }
.metier li::before { content: ""; flex: none; width: .55rem; height: .55rem; margin-top: .5rem; background: var(--signal); }

/* Galerie de chantiers */
.chantiers { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .chantiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } .chantiers figure:first-child { grid-row: span 2; } }
.chantiers figure { margin: 0; position: relative; overflow: hidden; background: var(--noir-2); }
.chantiers img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s, filter .6s; filter: grayscale(.25); }
.chantiers figure:hover img { transform: scale(1.04); filter: none; }
.chantiers figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem .9rem .9rem; background: linear-gradient(transparent, rgb(17 18 20 / .9)); color: #fff; font-size: .88rem; line-height: 1.3; }
.chantiers figcaption b { display: block; font-family: var(--titre); font-weight: 400; text-transform: uppercase; font-size: clamp(1.15rem, 3vw, 1.6rem); letter-spacing: .02em; }
/* Bandeau « Exemple » en diagonale sur chaque photo */
.ruban-exemple { position: absolute; top: 1.1rem; right: -2.6rem; z-index: 1; width: 10rem; transform: rotate(35deg); background: var(--signal); color: var(--noir); text-align: center; font-weight: 800; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; padding: .3rem 0; box-shadow: 0 2px 8px rgb(0 0 0 / .3); }
.note-galerie { margin-top: 1.25rem; font-size: .88rem; color: var(--gris-clair); }

/* Méthode */
.methode { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: m; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .methode { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.methode li { counter-increment: m; padding: 1.5rem 1.25rem 1.75rem 0; border-top: 4px solid var(--noir); position: relative; }
@media (min-width: 900px) { .methode li + li { padding-left: 1.25rem; border-left: 2px solid var(--beton-2); } }
.methode li::before { content: "0" counter(m); font-family: var(--titre); font-size: 3.4rem; line-height: 1; color: var(--signal-texte); }
.methode h3 { font-size: 1.8rem; margin-top: .75rem; }
.methode p { margin-top: .5rem; color: var(--gris); }

/* Devis */
.devis { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .devis { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4rem; } }
.devis .cote h3 { font-size: clamp(2rem, 5vw, 3rem); color: var(--signal); }
.devis .cote p { margin-top: 1rem; color: var(--gris-clair); }
.devis .cote .gros-appel { margin-top: 1.75rem; }
.formulaire { background: var(--beton); color: var(--noir); padding: clamp(1.25rem, 4vw, 2.5rem); display: grid; gap: 1.25rem; }
.formulaire label { display: grid; gap: .4rem; font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.formulaire input, .formulaire textarea { width: 100%; padding: .9rem 1rem; border: 2px solid var(--noir); border-radius: 0; background: #fff; color: var(--noir); font: 400 1.05rem var(--texte); text-transform: none; letter-spacing: 0; }
.formulaire textarea { min-height: 8.5rem; resize: vertical; }
.formulaire input:focus, .formulaire textarea:focus { outline: 3px solid var(--signal); outline-offset: 0; }
.formulaire [aria-invalid="true"] { border-color: var(--signal-texte); background: #fff4ee; }
.formulaire .erreur { font-size: .85rem; font-weight: 600; color: var(--signal-texte); letter-spacing: 0; text-transform: none; }
.formulaire .erreur:empty { display: none; }
.formulaire button { min-height: 3.6rem; border: 0; background: var(--noir); color: #fff; font: 800 1rem var(--texte); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.formulaire button:hover { background: var(--signal); color: var(--noir); }
.formulaire .info { font-size: .85rem; color: var(--gris); }
.formulaire .resultat { padding: 1rem; background: var(--noir); color: var(--beton); font-size: .95rem; }
.formulaire .resultat[hidden] { display: none; }
.formulaire .resultat a { color: var(--signal); font-weight: 700; }

/* Zone d'intervention */
.zone { display: grid; gap: 2rem; }
@media (min-width: 960px) { .zone { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem; align-items: start; } }
.carte-zone { position: relative; aspect-ratio: 4 / 3; background: var(--noir-2); border: 4px solid var(--noir); overflow: hidden; }
@media (max-width: 640px) { .carte-zone { aspect-ratio: 1; } }
.carte-zone .attente { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1.5rem; color: var(--gris-clair); font-size: .95rem; background: repeating-linear-gradient(45deg, #1C1D20 0 14px, #202125 14px 28px); }
.carte-zone .leaflet-container { width: 100%; height: 100%; font-family: var(--texte); background: #dfddd6; }
.etiquette-ville { background: var(--noir) !important; color: #fff !important; border: 0 !important; border-radius: 0 !important; font-weight: 700; letter-spacing: .04em; padding: .2rem .45rem !important; box-shadow: none !important; }
.etiquette-ville::before { display: none; }
.distances { list-style: none; margin: 0; padding: 0; border-top: 4px solid var(--noir); }
.distances li { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 2px solid var(--beton-2); font-weight: 600; }
.distances li span:last-child { font-family: var(--titre); font-weight: 400; font-size: 1.3rem; }
.zone .remarque { margin-top: 1rem; font-size: .88rem; color: var(--gris); }

/* ---------- Pied ---------- */
.pied { background: var(--noir); color: var(--gris-clair); padding-block: 3.5rem 7.5rem; font-size: .95rem; }
@media (min-width: 761px) { .pied { padding-bottom: 2.5rem; } }
.pied .cadre { display: grid; gap: 2rem; }
@media (min-width: 900px) { .pied .cadre { grid-template-columns: 1.5fr 1fr 1fr; } }
.pied .marque b { color: #fff; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.pied a { text-underline-offset: 3px; }
.pied .bas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-top: 1.5rem; border-top: 1px solid #2a2b2e; font-size: .8rem; }

/* Barre d'appel sur téléphone */
.barre-appel { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: 1fr auto; padding-bottom: env(safe-area-inset-bottom); background: var(--signal); box-shadow: 0 -6px 20px rgb(0 0 0 / .25); }
.barre-appel a { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 4rem; padding: .75rem 1rem; color: var(--noir); text-decoration: none; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.barre-appel a:first-child { font-size: 1.15rem; }
.barre-appel a + a { background: var(--noir); color: #fff; font-size: .85rem; }
.barre-appel svg { width: 1.5rem; height: 1.5rem; }
@media (min-width: 761px) { .barre-appel { display: none; } }

/* Mentions */
.legal { max-width: 46rem; padding-block: 3rem 6rem; }
.legal h1 { font-size: clamp(3.2rem, 11vw, 6rem); }
.legal h2 { font-size: 2rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 4px solid var(--noir); }
.legal p { margin-top: .9rem; color: var(--gris); }
.legal dl { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: .35rem 1rem; margin: 1rem 0 0; }
.legal dt { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; padding-top: .2rem; }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: minmax(0, 1fr); } .legal dd { margin-bottom: .6rem; } }

/* Apparitions */
.js .monte { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .monte.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .monte { opacity: 1; transform: none; }
}

/* Téléphone : la dernière photo prend toute la largeur (galerie de 5) */
@media (max-width: 899px) { .chantiers figure:last-child { grid-column: span 2; } .chantiers figure:last-child img { aspect-ratio: 16 / 10; } }

/* Boutons e-mail de démonstration et message */
.lien-demo { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.toast-demo { position: fixed; left: 50%; bottom: calc(5rem + env(safe-area-inset-bottom)); z-index: 60; width: min(100% - 2rem, 30rem); transform: translate(-50%, 1rem); opacity: 0; pointer-events: none; margin: 0; padding: 1rem 1.2rem; background: var(--signal); color: var(--noir); font-weight: 700; line-height: 1.4; box-shadow: 0 10px 30px rgb(0 0 0 / .35); transition: opacity .3s, transform .3s; }
.toast-demo.visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 761px) { .toast-demo { bottom: 2rem; } }
