/* HUMAS ARCHITECTURE — feuille de style
   Langage visuel : le dessin technique (lignes de cote) au service du sur-mesure. */

@font-face { font-family: "Jost"; font-weight: 300; font-display: swap; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 400; font-display: swap; src: url("../fonts/newsreader-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/newsreader-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 500; font-display: swap; src: url("../fonts/newsreader-latin-500-normal.woff2") format("woff2"); }

:root {
  --pierre: #f3f3f0;      /* fond principal, blanc pierre */
  --blanc: #ffffff;
  --encre: #000000;       /* noir du logo */
  --texte: #2a2b28;       /* corps de texte */
  --gris: #6b6d67;        /* texte secondaire */
  --trait: #cfd1cb;       /* filets */
  --noir: #0a0a0a;        /* bandeaux sombres, comme le logo sur fond noir */
  --or: #d6b046;          /* doré du logo */
  --or-fonce: #8a6d1c;    /* doré lisible sur fond clair */
  --display: "Jost", "Futura", "Century Gothic", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--pierre);
  color: var(--texte);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--or-fonce); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--encre); color: var(--blanc); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 300; color: var(--encre); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.3rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 400; }
p { margin: 0 0 1.1em; max-width: 68ch; }
.lead { font-size: clamp(1.2rem, 1.7vw, 1.4rem); line-height: 1.55; color: var(--texte); }
.muted { color: var(--gris); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(243,243,240,.94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--trait); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--encre); line-height: 1; }
.brand-mark { font-family: var(--display); font-weight: 300; font-size: 1.7rem; letter-spacing: .14em; }
.brand-sub { font-family: var(--display); font-weight: 400; font-size: .62rem; letter-spacing: .26em; margin-top: 5px; color: var(--gris); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav a { font-family: var(--display); font-size: .98rem; text-decoration: none; color: var(--texte); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--or-fonce); }
.nav a[aria-current="page"] { color: var(--encre); border-bottom-color: var(--encre); }
.nav .nav-cta { border: 1px solid var(--encre); padding: 8px 16px; }
.nav .nav-cta:hover { background: var(--encre); color: var(--blanc); }
.menu-toggle { display: none; background: none; border: 1px solid var(--encre); font-family: var(--display); font-size: .95rem; padding: 8px 14px; color: var(--encre); cursor: pointer; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--pierre); border-bottom: 1px solid var(--trait); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--trait); }
  .nav .nav-cta { margin-top: 14px; text-align: center; }
}

/* ---------- Ligne de cote (élément signature) ---------- */
.cote { display: flex; align-items: center; gap: 12px; color: var(--or-fonce); font-family: var(--display); font-size: .9rem; margin: 18px 0 28px; max-width: 520px; }
.cote::before, .cote::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.cote span { white-space: nowrap; }
.cote-wrap { position: relative; display: inline-block; }
.cote-ends { position: relative; height: 14px; margin: 14px 0 26px; color: var(--or-fonce); }
.cote-ends::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; }
.cote-ends::after { content: ""; position: absolute; inset: 0; border-left: 1px solid currentColor; border-right: 1px solid currentColor; }

/* ---------- Boutons ---------- */
.btn { display: inline-block; font-family: var(--display); font-size: 1rem; text-decoration: none; padding: 14px 26px; border: 1px solid var(--encre); color: var(--encre); background: transparent; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--encre); color: var(--blanc); }
.btn-plein { background: var(--encre); color: var(--blanc); }
.btn-plein:hover { background: var(--noir); border-color: var(--noir); }
.btn-clair { border-color: var(--blanc); color: var(--blanc); }
.btn-clair:hover { background: var(--blanc); color: var(--encre); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ---------- Héro accueil ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: var(--blanc); overflow: hidden; background: #3a332b; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.7) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: clamp(48px, 8vw, 96px); }
.hero-mark { font-family: var(--display); font-weight: 300; font-size: clamp(3.4rem, 11vw, 8.5rem); letter-spacing: .12em; line-height: .9; margin: 0; }
.hero-sub { font-family: var(--display); font-weight: 400; letter-spacing: .3em; font-size: clamp(.72rem, 1.4vw, .95rem); margin: 14px 0 0; }
.hero h1 { color: var(--blanc); font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 300; margin: 0; max-width: 32ch; }
.hero .cote-ends { color: var(--or); max-width: 640px; }
.hero .actions { margin-top: 26px; }

/* ---------- En-tête de page intérieure ---------- */
.page-head { padding: clamp(56px, 8vw, 110px) 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--trait); }
.page-head p { font-size: clamp(1.15rem, 1.6vw, 1.32rem); }
.fil { font-family: var(--display); font-size: .88rem; color: var(--gris); margin-bottom: 22px; }
.fil a { text-decoration: none; }
.fil a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--trait); }
.section-blanc { background: var(--blanc); }
.section-noir { background: var(--noir); color: #e9e9e6; }
.section-noir h2, .section-noir h3 { color: var(--blanc); }
.section-noir .cote-ends, .section-noir .cote { color: var(--or); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-inverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 860px) { .split, .split-inverse { grid-template-columns: 1fr; } }

.figure { margin: 0; }
.figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.figure figcaption { font-family: var(--display); font-size: .88rem; color: var(--gris); margin-top: 10px; }
.figure-large img { aspect-ratio: 3 / 2; }

/* Trois fondements */
.fondements { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--trait); }
.fondements li { font-family: var(--display); font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 300; padding: 16px 0; border-bottom: 1px solid var(--trait); color: var(--encre); }

/* Deux domaines */
.domaines { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); margin-top: 40px; }
@media (max-width: 760px) { .domaines { grid-template-columns: 1fr; } }
.domaine img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 22px; }
.domaine h3 { margin-bottom: .4em; }
.lien { font-family: var(--display); font-size: 1rem; color: var(--encre); text-decoration: none; border-bottom: 1px solid var(--or-fonce); padding-bottom: 2px; }
.lien:hover { color: var(--noir); border-bottom-color: var(--noir); }

/* Méthode : vraie séquence, donc numérotée */
.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.etapes li { counter-increment: etape; position: relative; padding: 46px 22px 0 0; }
.etapes li::before { content: counter(etape); position: absolute; top: 0; left: 0; font-family: var(--display); font-weight: 300; font-size: 1.6rem; color: var(--or); }
.etapes li::after { content: ""; position: absolute; top: 20px; left: 34px; right: 12px; height: 1px; background: rgba(214,176,70,.45); }
.etapes li:last-child::after { display: none; }
.etapes h3 { font-size: 1.12rem; margin-bottom: .35em; }
.etapes p { font-size: 1rem; line-height: 1.55; color: #bdbdb8; }
@media (max-width: 980px) { .etapes { grid-template-columns: 1fr 1fr; row-gap: 36px; } .etapes li::after { display: none; } }
@media (max-width: 560px) { .etapes { grid-template-columns: 1fr; } }

/* Nomenclature des ouvrages */
.nomenclature { list-style: none; padding: 0; margin: 32px 0 0; columns: 3 220px; column-gap: 40px; border-top: 1px solid var(--encre); }
.nomenclature li { break-inside: avoid; display: flex; justify-content: space-between; gap: 16px; font-family: var(--display); font-size: 1.08rem; padding: 13px 0; border-bottom: 1px solid var(--trait); color: var(--encre); }
.nomenclature li span { color: var(--gris); font-size: .9rem; }

/* Livrables */
.livrables { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin-top: 36px; border-top: 1px solid var(--trait); border-left: 1px solid var(--trait); }
.livrables div { padding: 26px 24px; border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait); background: var(--blanc); }
.livrables h3 { font-size: 1.1rem; margin-bottom: .3em; }
.livrables p { font-size: 1rem; margin: 0; color: var(--gris); }

/* Zones */
.zones { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.zones li { font-family: var(--display); font-size: .95rem; border: 1px solid var(--trait); padding: 6px 12px; background: var(--blanc); }

/* Réalisations */
.projets { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 36px); margin-top: 8px; }
.projet { grid-column: span 6; margin: 0; }
.projet:nth-child(3n+1) { grid-column: span 7; }
.projet:nth-child(3n+2) { grid-column: span 5; }
.projet:nth-child(3n) { grid-column: 3 / span 8; }
.projet img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.projet:nth-child(3n+2) img { aspect-ratio: 4 / 5; }
.projet h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 18px 0 .3em; }
.projet p { font-size: 1.02rem; }
.projet .meta { font-family: var(--display); font-size: .9rem; color: var(--or-fonce); margin-bottom: .4em; }
@media (max-width: 760px) { .projet, .projet:nth-child(n) { grid-column: 1 / -1; } }

/* Bandeau contact */
.appel { text-align: left; }
.appel .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.appel h2 { margin: 0; max-width: 18ch; }

/* Contact */
.coordonnees { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--trait); }
.coordonnees li { padding: 18px 0; border-bottom: 1px solid var(--trait); }
.coordonnees .label { display: block; font-family: var(--display); font-size: .9rem; color: var(--gris); }
.coordonnees a, .coordonnees strong { font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--encre); text-decoration: none; }
.coordonnees a:hover { color: var(--noir); }

form .champ { margin-bottom: 20px; }
form label { display: block; font-family: var(--display); font-size: .95rem; color: var(--encre); margin-bottom: 6px; }
form input, form select, form textarea { width: 100%; font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 1px solid #b9bbb5; background: var(--blanc); color: var(--texte); border-radius: 0; }
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--or-fonce); outline-offset: 0; border-color: var(--or-fonce); }
form textarea { min-height: 170px; resize: vertical; }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 560px) { .champs-2 { grid-template-columns: 1fr; } }
.cache { position: absolute; left: -9999px; }
.note { font-size: .92rem; color: var(--gris); }

/* Texte juridique */
.juridique h2 { font-size: 1.5rem; margin-top: 1.8em; }
.juridique p, .juridique li { font-size: 1.05rem; }
.a-completer { background: #fff4d6; padding: 0 4px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--encre); color: #c7c8c3; padding: 64px 0 32px; font-size: 1rem; }
.site-footer a { color: #e9eae6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--blanc); }
.site-footer .brand-sub { color: #9fa19b; }
.footer-titre { font-family: var(--display); color: var(--blanc); font-size: 1rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bas { border-top: 1px solid #2c2d2a; margin-top: 48px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--display); font-size: .88rem; color: #8d8f89; }

/* ---------- Logos ---------- */
.brand-logo { height: 40px; width: auto; }
.site-footer .brand-logo { height: 46px; }
.hero-logo { width: min(620px, 82vw); height: auto; margin: 0 0 6px; }

/* ---------- Fiches réalisations ---------- */
.projet a { text-decoration: none; color: inherit; display: block; }
.projet a:hover h2 { text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 5px; }
.fiche { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; margin: 26px 0 0; font-family: var(--display); font-size: 1rem; max-width: 420px; border-top: 1px solid var(--trait); padding-top: 16px; }
.fiche dt { color: var(--gris); }
.fiche dd { margin: 0; color: var(--encre); }
.galerie { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); }
.galerie img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.galerie figure { margin: 0; }
.galerie figure:first-child { grid-column: 1 / -1; }
@media (max-width: 640px) { .galerie { grid-template-columns: 1fr; } }
.suite { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--display); }
.dessin { background: var(--blanc); padding: clamp(10px, 2vw, 20px); border: 1px solid var(--trait); }
.dessin img { aspect-ratio: auto !important; object-fit: contain !important; }
.galerie figure:last-child:nth-child(even) { grid-column: 1 / -1; }

/* ---------- Plans techniques ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: 36px; }
.plans figure { margin: 0; }
.plans img { width: 100%; height: auto; }
.plans figcaption, .dessin figcaption { font-family: var(--display); font-size: .88rem; color: var(--gris); margin-top: 10px; }

/* ---------- Avis clients ---------- */
.avis { margin: 0; border-left: 2px solid var(--or); padding: 4px 0 4px clamp(18px, 3vw, 32px); }
.avis blockquote { margin: 0; }
.avis blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--encre); }
.avis figcaption { font-family: var(--display); font-size: .95rem; color: var(--or-fonce); }
.avis-seul { max-width: 820px; }
.liste-avis { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(28px, 4vw, 48px); margin-top: 36px; }
.liste-avis .avis blockquote p { font-size: 1.08rem; }

/* ---------- Atouts ---------- */
.atouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; margin-top: 36px; border-top: 1px solid var(--trait); }
.atouts div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--trait); }
.atouts h3 { font-size: 1.12rem; margin-bottom: .35em; }
.atouts p { font-size: 1rem; margin: 0; color: var(--gris); }
.etapes-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .etapes-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .etapes-4 { grid-template-columns: 1fr; } }
.avis figcaption a { color: inherit; }
.demarrer { list-style: none; } .demarrer li { font-family: var(--serif); font-size: 1.05rem; } .demarrer strong { font-family: var(--display); font-weight: 500; }
