/* Escabuco, feuille de style commune.
   Charte : bleu nuit du logo, or, gris clair. Bandeaux bleu nuit comme l'enseigne,
   pages sur fond papier, photos de chantier en grand. Texte aligné à gauche. */

@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Allura"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/allura-latin-400-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --navy: #12171B;        /* logo */
  --navy-2: #1C2128;      /* disque des pictogrammes */
  --gold: #C49C52;        /* toit du logo */
  --gold-ink: #7A5A1E;    /* or lisible sur fond clair */
  --grey: #BBBFC2;        /* bande grise du logo */
  --paper: #F6F5F2;
  --white: #FFFFFF;
  --ink: #12171B;
  --ink-soft: #50565C;
  --line: #DEDCD5;
  --on-navy: #F3F2EE;
  --on-navy-soft: #A9AEB3;
  --on-navy-line: rgba(255, 255, 255, 0.14);

  --display: "Jost", "Futura", "Century Gothic", "Avenir Next", Arial, sans-serif;
  --body: "Hanken Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --script: "Allura", "Snell Roundhand", "Segoe Script", cursive;

  --s--1: 0.875rem;
  --s-0: 1.0625rem;
  --s-1: 1.25rem;
  --s-2: 1.625rem;
  --s-3: clamp(1.9rem, 1.45rem + 1.9vw, 2.6rem);
  --s-4: clamp(2.3rem, 1.5rem + 3.4vw, 3.9rem);
  --joint: 6px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--s-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: 0.005em; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lien-evitement { position: absolute; left: 12px; top: -60px; background: var(--white); color: var(--ink); padding: 10px 14px; z-index: 20; }
.lien-evitement:focus { top: 12px; }

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.section.blanc { background: var(--white); }

/* En-tête : le bandeau de l'enseigne */
.entete { background: var(--navy); color: var(--on-navy); }
.entete .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; padding-block: 16px; }
.entete .marque { display: block; line-height: 0; }
.entete .marque img { height: 46px; width: auto; }
.menu-bouton {
  display: none; margin-left: auto; background: transparent; color: var(--on-navy);
  border: 1px solid var(--on-navy-line); border-radius: var(--radius);
  font: 500 var(--s--1)/1 var(--body); padding: 10px 14px; cursor: pointer;
}
.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: var(--s--1); font-weight: 500; }
.nav a { color: var(--on-navy-soft); text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--on-navy); }
.nav a[aria-current="page"] { color: var(--on-navy); border-bottom-color: var(--gold); }
.entete-tel { margin-left: auto; color: var(--on-navy); font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; border-left: 1px solid var(--gold); padding-left: 18px; }
@media (max-width: 980px) {
  .entete-tel { margin-left: 0; border-left: 0; padding-left: 0; }
}
@media (max-width: 760px) {
  .entete .marque img { height: 38px; }
  .js .menu-bouton { display: inline-flex; }
  .js .nav { display: none; width: 100%; flex-direction: column; gap: 0; border-top: 1px solid var(--on-navy-line); padding-top: 6px; }
  .js .nav.ouvert { display: flex; }
  .js .nav a { padding-block: 12px; border-bottom: 1px solid var(--on-navy-line); }
  .js .nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--on-navy-line); }
  .entete-tel { width: 100%; }
}

/* Boutons */
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 var(--s-0)/1 var(--body); padding: 15px 24px; border-radius: var(--radius);
  border: 1px solid var(--gold); background: var(--gold); color: var(--navy);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: #D4AE68; border-color: #D4AE68; }
.btn-contour { background: transparent; color: inherit; border-color: currentColor; }
.btn-contour:hover { background: transparent; border-color: var(--gold); color: inherit; }
.sur-clair .btn-contour { color: var(--ink); border-color: var(--line); }
.sur-clair .btn-contour:hover { border-color: var(--ink); }

/* Ouverture de la page d'accueil */
.ouverture { background: var(--navy); color: var(--on-navy); }
.ouverture .wrap { display: grid; gap: 40px; padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 88px); }
@media (min-width: 920px) { .ouverture .wrap { grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; } }
.ouverture-texte { display: grid; gap: 26px; min-width: 0; }
.devise { font-family: var(--display); font-size: var(--s-4); font-weight: 500; line-height: 1.06; letter-spacing: 0.04em; text-transform: uppercase; }
.devise span { display: block; }
.devise .or { color: var(--gold); }
.ouverture .chapo { color: var(--on-navy-soft); font-size: var(--s-1); line-height: 1.5; max-width: 34em; }
.signature { font-family: var(--script); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1.1; color: var(--on-navy); display: flex; align-items: center; gap: 16px; }
.signature::before { content: ""; width: 48px; height: 1px; background: var(--gold); flex: none; }
.ouverture figure { margin: 0; min-width: 0; display: grid; gap: 10px; }
.ouverture figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ouverture figcaption { color: var(--on-navy-soft); font-size: var(--s--1); }

/* En-tête des pages intérieures */
.titre-page { background: var(--navy); color: var(--on-navy); }
.titre-page .wrap { padding-block: clamp(40px, 6vw, 72px); display: grid; gap: 14px; }
.titre-page h1 { font-size: var(--s-4); max-width: 18ch; }
.titre-page p { color: var(--on-navy-soft); font-size: var(--s-1); line-height: 1.5; max-width: 38em; }
.titre-page .filet { width: 56px; height: 2px; background: var(--gold); }

/* En-têtes de section */
.tete { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 52px); max-width: 46em; }
.tete h2 { font-size: var(--s-3); }
.tete p { color: var(--ink-soft); font-size: var(--s-1); line-height: 1.5; }

/* Les six métiers */
.metiers { display: grid; gap: 28px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .metiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .metiers { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.metier { display: grid; gap: 10px; justify-items: start; text-decoration: none; min-width: 0; }
.metier img { width: 76px; height: 76px; }
.metier strong { font-family: var(--display); font-weight: 600; font-size: var(--s-0); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink); }
.metier span { color: var(--ink-soft); font-size: var(--s--1); line-height: 1.5; }
a.metier:hover strong { text-decoration: underline; text-underline-offset: 4px; }

/* Publics */
.publics { display: grid; gap: 0; border-top: 2px solid var(--ink); }
@media (min-width: 860px) { .publics { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; gap: 40px; } }
.public { display: grid; gap: 12px; align-content: start; padding-block: 22px; border-bottom: 1px solid var(--line); min-width: 0; }
@media (min-width: 860px) { .public { border-top: 2px solid var(--ink); border-bottom: 0; padding-block: 22px 0; } }
.public h3 { font-size: var(--s-2); }
.public p { color: var(--ink-soft); }
.public a { font-weight: 600; color: var(--gold-ink); text-underline-offset: 4px; }

/* Avant / après */
.paires { display: grid; gap: 48px 40px; }
@media (min-width: 860px) { .paires { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.paire { margin: 0; display: grid; gap: 14px; min-width: 0; }
.paire-images { display: grid; grid-template-columns: 1fr 1fr; gap: var(--joint); }
.paire-images div { position: relative; min-width: 0; }
.paire-images img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.etat { position: absolute; left: 10px; top: 10px; font-size: var(--s--1); font-weight: 600; padding: 3px 9px; background: var(--white); color: var(--ink); border-radius: 2px; }
.etat.apres { background: var(--navy); color: var(--gold); }
.paire figcaption { display: grid; gap: 2px; }
.paire figcaption strong { font-family: var(--display); font-weight: 500; font-size: var(--s-1); }
.paire figcaption span { color: var(--ink-soft); font-size: var(--s--1); }

/* Démarche : une séquence réelle */
.demarche { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: etape; }
@media (min-width: 760px) { .demarche { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .demarche.cinq { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; } .demarche.quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.demarche li { counter-increment: etape; display: grid; gap: 6px; align-content: start; min-width: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.demarche li::before { content: counter(etape); font-family: var(--display); font-size: var(--s-2); font-weight: 500; color: var(--gold-ink); line-height: 1; }
.demarche strong { font-weight: 600; }
.demarche span { color: var(--ink-soft); font-size: var(--s--1); line-height: 1.55; }

/* Bandeau bleu nuit */
.bandeau { background: var(--navy); color: var(--on-navy); }
.bandeau .wrap { padding-block: clamp(48px, 7vw, 88px); display: grid; gap: 40px; }
@media (min-width: 900px) { .bandeau .wrap { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.bandeau h2 { font-size: var(--s-3); }
.bandeau p { color: var(--on-navy-soft); }
.bandeau .intro { display: grid; gap: 18px; align-content: start; min-width: 0; }
.engagements { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; min-width: 0; }
.engagements li { display: grid; gap: 4px; padding-block: 18px; border-top: 1px solid var(--on-navy-line); }
.engagements li:last-child { border-bottom: 1px solid var(--on-navy-line); }
.engagements strong { font-family: var(--display); font-weight: 500; font-size: var(--s-1); color: var(--gold); }
.engagements span { color: var(--on-navy-soft); }

/* Fiche chiffrée */
.fiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 0; border-top: 1px solid var(--on-navy-line); }
.fiche div { padding: 14px 16px 0 0; }
.fiche dt { font-size: var(--s--1); color: var(--on-navy-soft); }
.fiche dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--on-navy); }

/* Prestations détaillées */
.prestations { display: grid; gap: 0; }
.prestation { display: grid; gap: 18px 40px; padding-block: 36px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.prestation:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .prestation { grid-template-columns: 96px minmax(0, 4fr) minmax(0, 5fr); align-items: start; } }
.prestation img { width: 88px; height: 88px; }
.prestation h2 { font-size: var(--s-2); }
.prestation .texte { display: grid; gap: 10px; min-width: 0; }
.prestation .texte p { color: var(--ink-soft); }
.liste-carree { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; min-width: 0; }
.liste-carree li { padding-left: 18px; position: relative; }
.liste-carree li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 7px; height: 7px; background: var(--gold); }

/* Chronologie de l'extension */
.chrono-defil { overflow-x: auto; scrollbar-width: thin; padding-bottom: 8px; }
.chrono { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: var(--joint); min-width: 690px; }
@media (min-width: 760px) { .chrono { min-width: 0; } }
.chrono li { display: grid; gap: 8px; align-content: start; }
.chrono img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.chrono .date { font-size: var(--s--1); color: var(--gold-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.chrono strong { font-family: var(--display); font-weight: 500; font-size: var(--s-1); line-height: 1.2; }
.chrono p { font-size: var(--s--1); color: var(--ink-soft); line-height: 1.5; padding-right: 8px; }

/* Galerie en calepinage */
.galerie { display: grid; gap: var(--joint); grid-template-columns: 1fr; }
@media (min-width: 620px) { .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .galerie { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.carreau { margin: 0; display: grid; grid-template-rows: auto 1fr; min-width: 0; background: var(--paper); }
.carreau img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 980px) { .carreau.large { grid-column: span 2; } .carreau.large img { aspect-ratio: 8 / 5; } }
.carreau figcaption { padding: 12px 4px 22px; display: grid; gap: 2px; }
.carreau .lieu { font-size: var(--s--1); color: var(--gold-ink); font-weight: 600; }
.carreau .quoi { font-size: var(--s--1); color: var(--ink-soft); line-height: 1.5; }

/* Copropriétés */
.colonnes { display: grid; gap: 40px; }
@media (min-width: 900px) { .colonnes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; } }
.colonnes > div { min-width: 0; display: grid; gap: 14px; align-content: start; }
.colonnes h2, .colonnes h3 { font-size: var(--s-2); }
.colonnes p { color: var(--ink-soft); }
.interlocuteur { background: var(--navy); color: var(--on-navy); padding: 28px; display: grid; gap: 10px; align-content: start; border-top: 3px solid var(--gold); }
.interlocuteur .role { color: var(--on-navy-soft); font-size: var(--s--1); }
.interlocuteur .nom { font-family: var(--display); font-size: var(--s-2); font-weight: 500; line-height: 1.2; }
.interlocuteur .tel { font-size: var(--s-1); font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; color: var(--gold); }
.interlocuteur p { color: var(--on-navy-soft); font-size: var(--s--1); }

/* Formulaires */
.duo { display: grid; gap: 48px; }
@media (min-width: 900px) { .duo { grid-template-columns: 5fr 6fr; gap: 72px; } }
.duo > * { min-width: 0; }
form { display: grid; gap: 18px; }
.champs { display: grid; gap: 18px; }
@media (min-width: 560px) { .champs.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
label { display: grid; gap: 6px; font-size: var(--s--1); font-weight: 600; }
label .aide { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  font: 400 var(--s-0)/1.4 var(--body); color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold-ink); outline: none; box-shadow: 0 0 0 1px var(--gold-ink); }
textarea { min-height: 140px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
legend { font-size: var(--s--1); font-weight: 600; padding: 0; margin-bottom: 6px; }
.notes { display: flex; gap: 6px; flex-wrap: wrap; }
.notes label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; border: 1px solid var(--line); background: var(--white); padding: 8px 12px; cursor: pointer; border-radius: var(--radius); }
.notes input, .accord input { width: auto; margin: 0; accent-color: var(--navy); }
.accord { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-soft); }
.accord input { margin-top: 4px; }
.piege { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.statut { font-size: var(--s--1); color: var(--gold-ink); font-weight: 600; min-height: 1.5em; }
.encart { padding: 18px 20px; background: var(--white); border-left: 3px solid var(--gold); font-size: var(--s--1); color: var(--ink-soft); display: grid; gap: 8px; }
.encart strong { color: var(--ink); font-weight: 600; }
.vide { margin-top: 24px; padding: 24px; border: 1px dashed var(--line); color: var(--ink-soft); display: grid; gap: 6px; }
.vide strong { color: var(--ink); font-family: var(--display); font-weight: 500; font-size: var(--s-1); }
.coord { display: grid; gap: 20px; margin: 28px 0 0; }
.coord div { display: grid; gap: 2px; }
.coord dt { font-size: var(--s--1); color: var(--ink-soft); }
.coord dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.coord a { text-decoration: none; }
.zones { color: var(--ink-soft); font-size: var(--s--1); margin-top: 28px; max-width: 36em; }

/* Appel à l'action */
.appel .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding-block: clamp(40px, 6vw, 64px); }
.appel h2 { font-size: var(--s-3); max-width: 20ch; }

/* Texte courant (mentions légales) */
.texte-long { max-width: 46em; display: grid; gap: 34px; }
.texte-long section { display: grid; gap: 10px; }
.texte-long h2 { font-size: var(--s-2); }
.texte-long p, .texte-long li { color: var(--ink-soft); }
.texte-long ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.a-completer { background: #FBEFD5; color: var(--ink); padding: 0 6px; border-radius: 2px; }

/* Pied de page */
.pied { background: var(--navy); color: var(--on-navy-soft); font-size: var(--s--1); }
.pied .wrap { padding-block: 48px 40px; display: grid; gap: 36px; }
.pied-grille { display: grid; gap: 32px; }
@media (min-width: 860px) { .pied-grille { grid-template-columns: 4fr 3fr 3fr; gap: 48px; } }
.pied-grille > div { display: grid; gap: 12px; align-content: start; min-width: 0; }
.pied img { height: 40px; width: auto; }
.pied h2 { font-family: var(--body); font-size: var(--s--1); font-weight: 600; color: var(--on-navy); }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied a { color: var(--on-navy-soft); text-decoration: none; }
.pied a:hover { color: var(--on-navy); }
.pied .tel { color: var(--on-navy); font-weight: 600; font-variant-numeric: tabular-nums; }
.pied-bas { border-top: 1px solid var(--on-navy-line); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* Bandeau d'aperçu (version de démonstration uniquement) */
.apercu-note { background: #FBEFD5; color: var(--ink); font-size: var(--s--1); }
.apercu-note .wrap { padding-block: 8px; }

/* Texte et photo côte à côte (Prestations : structure et extension) */
.duo-photo { align-items: center; }
.duo-photo .tete { margin-bottom: 0; }
.duo-photo .actions { margin-top: 8px; }
.photo-legende { margin: 0; display: grid; gap: 10px; min-width: 0; }
.photo-legende img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.photo-legende figcaption { font-size: var(--s--1); color: var(--ink-soft); }

/* Photos en WebP : la balise picture se comporte comme l'image */
picture { display: block; min-width: 0; }
