/* =========================================================
   NOVAHELIOR – ENGINEERING & ADVISORY
   Feuille de style unique du site
   Sommaire : 1 Polices · 2 Couleurs et mesures · 3 Base · 4 En-tête
   5 Héros · 6 Sections · 7 Cartes · 8 Composants · 9 Schémas
   10 Contact · 11 Pied de page · 12 Responsive
   ========================================================= */

/* 1. Polices (hébergées sur le site, aucun appel à Google) */
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* 2. Couleurs et mesures — modifiez ici pour changer tout le site */
:root {
  --ink: #13202D;          /* Encre : textes, en-tête, pied de page */
  --slate: #2E4A62;        /* Ardoise : liens */
  --gold: #B08D57;         /* Or : bandeaux, bouton communes, filets */
  --gold-deep: #8E6F3F;    /* Or foncé : survol */
  --gold-pale: #F3ECDD;    /* Or pâle : fonds chaleureux */
  --silver: #C5C9CF;       /* Argent : cadres, filets */
  --silver-pale: #ECEEF1;  /* Argent pâle : fonds alternés */
  --white: #FFFFFF;
  --concrete: #5F656C;     /* Béton : textes secondaires */
  --line: #D9DCE1;

  --font: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1280px;
  --gutter: 24px;
  --section-y: clamp(56px, 8vw, 112px);
  --radius: 2px;
  --header-h: 84px;
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.6;
  color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--slate); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 100; }
.skip-link:focus { top: 12px; }

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

.kicker {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-deep); margin: 0 0 1.1rem;
  display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 32px; height: 2px; background: var(--gold); flex: none; }
.kicker--ink { color: var(--ink); }
.kicker--ink::before { background: var(--ink); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink); max-width: 46ch; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border: 2px solid transparent; border-radius: var(--radius);
  font: 500 0.98rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--slate); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover, .btn--gold.is-current { background: var(--gold-deep); color: var(--white); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* 4. En-tête */
.topbar { background: var(--silver-pale); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar-signature { margin: 0; color: var(--concrete); }
.topbar-communes { display: none; color: var(--gold-deep); font-weight: 500; text-decoration: none; text-transform: uppercase; }

.lang-switch { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; font-family: var(--mono); letter-spacing: 0.1em; }
.lang-switch a { display: inline-block; padding: 6px 8px; color: var(--concrete); text-decoration: none; border-bottom: 2px solid transparent; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { color: var(--ink); font-weight: 500; border-bottom-color: var(--gold); }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }

.brand { display: flex; flex-direction: row; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); line-height: 1; flex: none; }
.brand-name { font-weight: 600; font-size: 1.32rem; letter-spacing: 0.26em; margin: 0; }
.brand-sub { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.24em; color: var(--gold-deep); margin-top: 7px; }
.brand:hover { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; }
.brand-mark { width: 46px; height: 46px; flex: none; display: block; }
.site-footer .brand-mark { width: 64px; height: 64px; margin-bottom: 16px; }

.main-nav { flex: 1; }
.nav-list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; justify-content: flex-end; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: block; padding: 28px 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; position: relative; }
.nav-item > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 20px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav-item > a:hover::after, .nav-item.is-active > a::after, .nav-item > a[aria-current]::after { transform: scaleX(1); }
.nav-item--home { display: none; }
.sub-toggle { width: 22px; height: 22px; margin-left: -8px; border: 0; background: transparent; cursor: pointer; position: relative; color: var(--ink); }
.sub-toggle::before { content: ""; position: absolute; inset: 0; margin: auto; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.sub-list {
  list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: 0; min-width: 300px;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold);
  box-shadow: 0 18px 40px rgba(19,32,45,.10);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.sub-list a { display: block; padding: 10px 20px; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.sub-list a:hover, .sub-list a[aria-current] { background: var(--silver-pale); }
.sub-list li:first-child a { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); }
.has-sub:hover .sub-list, .has-sub:focus-within .sub-list, .has-sub.is-open .sub-list { opacity: 1; visibility: visible; transform: none; }

.header-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.btn--communes { min-height: 44px; padding: 10px 18px; }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--ink); background: var(--white); font: 500 0.95rem var(--font); color: var(--ink); cursor: pointer; border-radius: var(--radius); }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; } .menu-toggle-bars::after { top: 6px; }
.nav-mobile-head, .nav-cta-mobile { display: none; }

/* 5. Héros */
.hero--home { padding: clamp(40px, 6vw, 88px) 0 0; overflow: hidden; }
.hero-home-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-home-grid h1 { max-width: 15ch; }
.hero-media { position: relative; padding-bottom: clamp(40px, 6vw, 88px); }
.hero-goldbar { position: absolute; left: -32px; bottom: clamp(16px, 3vw, 44px); width: 55%; height: 14px; background: var(--gold); }
.hero--page { background: var(--silver-pale); padding: clamp(40px, 6vw, 80px) 0 0; border-bottom: 1px solid var(--line); }
.hero--page h1 { max-width: 22ch; }
.hero--page .lead { max-width: 58ch; margin-bottom: 0; }
.hero--page > .container:first-child { padding-bottom: clamp(40px, 5vw, 64px); }
.hero-banner { position: relative; }
.hero--page.has-banner { border-bottom: 0; background: linear-gradient(to bottom, var(--silver-pale) calc(100% - 160px), var(--white) calc(100% - 160px)); }
.hero--page.has-banner + .section.bg-white { padding-top: clamp(48px, 6vw, 88px); }
.breadcrumb { font-size: 0.9rem; color: var(--concrete); margin-bottom: 18px; }
.breadcrumb a { color: var(--concrete); }

/* Photos et emplacements */
.photo { margin: 0; position: relative; overflow: hidden; background: var(--silver); border-radius: var(--radius); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.02); }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--banner { aspect-ratio: 21 / 8; }
.photo--band { aspect-ratio: 21 / 7; }
.photo--card { aspect-ratio: 16 / 10; border-radius: 0; }
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--placeholder {
  display: flex; align-items: flex-end;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.22) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #D7DADF 0%, #B9BEC5 100%);
}
.photo-label { display: block; padding: 16px 18px; font-size: 0.85rem; line-height: 1.4; color: var(--ink); max-width: 40ch; }
.photo-label-kicker { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--concrete); margin-bottom: 4px; }

/* 6. Sections */
.section { padding: var(--section-y) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.bg-white { background: var(--white); }
.bg-silver { background: var(--silver-pale); }
.bg-gold { background: var(--gold-pale); }
.bg-white + .bg-white, .bg-silver + .bg-silver, .bg-gold + .bg-gold { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-intro { font-size: 1.1rem; color: var(--concrete); margin: 0; }

.split { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 5vw, 96px); align-items: start; }
.split-head h2 { margin-bottom: 0.4em; }
.prose p { max-width: 68ch; }
.prose--doc { max-width: 780px; }
.prose--doc h2 { font-size: 1.35rem; margin-top: 2em; }
.prose--doc h2:first-child { margin-top: 0; }
.prose--doc ul { padding-left: 1.2em; }

.checklist, .questions { list-style: none; margin: 0; padding: 0; }
.checklist li, .questions li { position: relative; padding: 14px 0 14px 40px; border-top: 1px solid var(--line); }
.checklist li:last-child, .questions li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 16px; height: 2px; background: var(--gold); }
.questions li { font-size: 1.12rem; font-weight: 500; }
.questions li::before { content: "?"; position: absolute; left: 0; top: 14px; width: 26px; height: 26px; border: 1.5px solid var(--gold); border-radius: 50%; font: 600 0.85rem/23px var(--font); text-align: center; color: var(--gold-deep); }
.split-body .checklist { margin-top: 8px; }

/* 7. Cartes */
.cards { display: grid; gap: 24px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--5 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--silver); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.bg-white .card { background: var(--white); }
.card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--concrete); font-size: 1rem; }
.card-body p:last-child { margin-bottom: 0; }
.card-num { font-family: var(--mono); font-size: 0.8rem !important; letter-spacing: 0.14em; color: var(--gold-deep) !important; margin-bottom: 10px; }
.card-meta { font-family: var(--mono); font-size: 0.76rem !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink) !important; }
.card--link { color: var(--ink); }
.card--link:hover { border-top-color: var(--gold); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(19,32,45,.08); color: var(--ink); }
.card-more { margin-top: auto; padding-top: 16px; font-weight: 500; font-size: 0.95rem; color: var(--ink); }
.card--link:hover .card-more { color: var(--gold-deep); }

/* 8. Composants */
.columns { display: grid; gap: clamp(24px, 4vw, 64px); }
.columns--2 { grid-template-columns: repeat(2, 1fr); }
.columns--3 { grid-template-columns: repeat(3, 1fr); }
.columns--4 { grid-template-columns: repeat(4, 1fr); }
.column { border-top: 3px solid var(--gold); padding-top: 22px; }
.column p { color: var(--concrete); margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.step { position: relative; padding: 0 24px 0 0; }
.step::before { content: ""; position: absolute; top: 22px; left: 48px; right: 0; height: 1px; background: var(--silver); }
.step:last-child::before { display: none; }
.step-num { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: var(--white); font: 600 1rem var(--font); margin-bottom: 20px; position: relative; }
.step:first-child .step-num { background: var(--gold); color: var(--ink); }
.step p { color: var(--concrete); font-size: 1rem; }

.photoband { padding: 0; }
.photoband-caption { font-size: 0.9rem; color: var(--concrete); margin: 12px 0 0; }
.photoband + .section { padding-top: var(--section-y); }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 500; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; font-weight: 400; color: var(--gold-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--concrete); padding-bottom: 12px; max-width: 64ch; }

.cta { padding: clamp(48px, 6vw, 80px) 0; }
.cta--gold { background: var(--gold); }
.cta--silver { background: var(--silver-pale); border-top: 1px solid var(--line); }
.cta--ink { background: var(--ink); color: var(--white); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { margin-bottom: 0.3em; max-width: 24ch; }
.cta p { margin: 0; max-width: 60ch; }
.cta .btn-row { margin-top: 0; flex: none; }

.rule { margin: 0; border-left: 6px solid var(--gold); background: var(--gold-pale); padding: clamp(24px, 4vw, 44px) clamp(24px, 4vw, 56px); }
.rule-text { font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.35; font-weight: 500; margin: 0; max-width: 40ch; }

.flagship { background: var(--gold); padding: clamp(56px, 7vw, 100px) 0; position: relative; }
.flagship::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 33%; background: linear-gradient(90deg, rgba(255,255,255,.10), transparent); pointer-events: none; }
.flagship-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; position: relative; }
.flagship h2 { max-width: 18ch; }
.flagship-lead { font-size: 1.12rem; max-width: 56ch; }
.flagship-statement { font-weight: 600; border-left: 3px solid var(--ink); padding-left: 16px; margin: 24px 0 28px; max-width: 52ch; }
.flagship-list { list-style: none; margin: 0; padding: 0; background: var(--white); border-radius: var(--radius); }
.flagship-list li { display: flex; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); font-weight: 500; }
.flagship-list li:last-child { border-bottom: 0; }
.flagship-num { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--gold-pale); border: 1px solid var(--gold); display: inline-flex; align-items: center; justify-content: center; font: 600 .85rem var(--font); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 900px; }
.timeline::before { content: ""; position: absolute; left: 140px; top: 8px; bottom: 8px; width: 2px; background: var(--silver); }
.timeline-item { display: grid; grid-template-columns: 140px 1fr; gap: 40px; padding: 0 0 40px; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: 134px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 2px solid var(--concrete); }
.timeline-item--highlight::before { background: var(--gold); border-color: var(--gold); }
.timeline-year { font-family: var(--mono); font-weight: 500; letter-spacing: 0.06em; margin: 2px 0 0; text-align: right; padding-right: 8px; color: var(--ink); }
.timeline-tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 6px; }
.timeline-body p { color: var(--concrete); margin: 0; }

.profile { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.profile-media { position: relative; }
.profile-media::after { content: ""; position: absolute; right: -16px; bottom: -16px; width: 60%; height: 60%; border: 2px solid var(--gold); z-index: -1; }
.profile-role { font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.04em; color: var(--gold-deep); margin-bottom: 1.4em; }
.facts { margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts > div { background: var(--white); padding: 16px 20px; }
.facts dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--concrete); }
.facts dd { margin: 4px 0 0; font-weight: 500; }
.facts--stack { grid-template-columns: 1fr; }

/* 9. Schémas */
.schema { margin: 0; }
.schema-note { margin-top: 24px; font-size: 1rem; color: var(--concrete); max-width: 70ch; }
.lc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.lc-phase { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: 18px 16px 20px; display: flex; flex-direction: column; }
.lc-phase--engineering { border-top-color: var(--ink); }
.lc-num { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--concrete); margin-bottom: 6px; }
.lc-name { font-weight: 600; line-height: 1.25; margin-bottom: 14px; min-height: 2.5em; }
.lc-roles { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; line-height: 1.35; }
.lc-roles li { padding: 7px 0 7px 12px; border-top: 1px solid var(--line); position: relative; }
.lc-roles li::before { content: ""; position: absolute; left: 0; top: 14px; width: 5px; height: 5px; background: var(--gold); }
.lc-phase--engineering .lc-roles li::before { background: var(--ink); }
.lc-pole { display: none; }
.lc-bands { display: grid; grid-template-columns: 4fr 2fr; gap: 8px; margin-top: 8px; }
.lc-band { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 10px 16px; }
.lc-band--advisory { background: var(--gold); color: var(--ink); }
.lc-band--engineering { background: var(--ink); color: var(--white); }

.schema svg { width: 100%; height: auto; margin: 0 auto; }
.schema--triangle svg { max-width: 680px; }
.schema--patrimoine svg { max-width: 680px; }
.sv-lines line { stroke: var(--concrete); stroke-width: 2; }
.sv-gold-line { stroke: var(--gold); stroke-width: 6; }
.sv-node rect { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; }
.sv-node--gold rect { fill: var(--gold); stroke: var(--gold); }
.sv-t1 { font: 600 24px var(--font); fill: var(--ink); text-anchor: middle; }
.sv-t1s { font: 600 19px var(--font); fill: var(--ink); text-anchor: middle; }
.sv-t2 { font: 400 17px var(--font); fill: var(--concrete); text-anchor: middle; }
.sv-node--gold .sv-t2 { fill: var(--ink); }
.sv-edge { font: italic 400 19px var(--font); fill: var(--concrete); }
.sv-ring { fill: none; stroke: var(--silver); stroke-width: 2; }
.sv-arc { fill: none; stroke: var(--gold); stroke-width: 4; }
.sv-arrow { fill: var(--gold); }
.sv-center { font: 600 17px var(--font); fill: var(--ink); text-anchor: middle; }

.scale { position: relative; padding-top: 4px; }
.scale-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; z-index: 1; }
.scale-items li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; font-weight: 500; }
.scale-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 3px solid var(--gold); }
.scale-items li:last-child .scale-dot { background: var(--gold); }
.scale-bar { position: absolute; left: 10%; right: 10%; top: 13px; height: 4px; background: linear-gradient(90deg, var(--silver), var(--gold)); }
.scale-ends { display: flex; justify-content: space-between; margin: 24px 0 0; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--concrete); }
.scale-label { color: var(--ink); }

/* 10. Contact */
.contact-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-form h2, .contact-card h2 { font-size: 1.6rem; }
.form-required-note { font-size: 0.9rem; color: var(--concrete); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-row { display: flex; flex-direction: column; margin-bottom: 20px; }
.form-row label { font-weight: 500; font-size: 0.95rem; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--concrete); }
.form-row input, .form-row select, .form-row textarea {
  font: 400 1rem var(--font); color: var(--ink); background: var(--white);
  border: 1px solid var(--silver); border-bottom: 2px solid var(--concrete); border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,87,.25); }
.form-row--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.form-row--check input { width: 22px; min-height: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.form-row--check label { font-weight: 400; }
.form-status { min-height: 1.6em; font-weight: 500; }
.form-status.is-error { color: #8A1C1C; }
.form-status.is-ok { color: #1E5631; }
.contact-card { background: var(--silver-pale); border-top: 4px solid var(--gold); padding: 32px; position: sticky; top: calc(var(--header-h) + 24px); }
.contact-brand { font-weight: 600; letter-spacing: 0.2em; }
.contact-brand span { font-family: var(--mono); font-size: 0.7rem; font-weight: 400; color: var(--gold-deep); }
.contact-card .facts > div { background: var(--silver-pale); }

/* 11. Pied de page */
.site-footer { background: var(--ink); color: #C9CED6; padding: clamp(56px, 7vw, 88px) 0 28px; border-top: 6px solid var(--gold); }
.site-footer a { color: #E6E8EC; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.14); }
.site-footer .brand-name { color: var(--white); font-size: 1.3rem; }
.site-footer .brand-sub { display: block; color: var(--gold); margin: 8px 0 22px; }
.footer-signature { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; line-height: 1.9; color: #9AA3AE; }
.footer-slogan { font-size: 1.05rem; color: var(--white); max-width: 34ch; margin-top: 20px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; columns: 1; }
.footer-nav li { margin-bottom: 10px; }
.footer-contact p { line-height: 1.7; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 24px; font-size: 0.88rem; }
.footer-bottom p { margin: 0; flex: 1; }
.footer-bottom ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.lang-switch--footer a { color: #9AA3AE; }
.lang-switch--footer a[aria-current] { color: var(--white); }

/* Page 404 */
.notfound { padding: var(--section-y) 0; min-height: 50vh; }

/* 12. Responsive : tablette */
@media (max-width: 1180px) {
  .nav-item > a { padding-left: 9px; padding-right: 9px; font-size: 0.93rem; }
  .header-inner { gap: 20px; }
  .lc { grid-template-columns: repeat(3, 1fr); }
  .lc-bands { display: none; }
  .lc-pole { display: block; margin: auto 0 0; padding-top: 12px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); }
  .lc-phase--engineering .lc-pole { color: var(--ink); }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .topbar-signature { display: none; }
  .topbar-communes { display: inline-block; padding: 6px 0; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 0; z-index: 80; background: var(--white); overflow-y: auto;
    padding: 0 var(--gutter) 40px; display: flex; flex-direction: column;
    transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s;
  }
  .main-nav.is-open { transform: none; visibility: visible; }
  .nav-mobile-head { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
  .nav-close { border: 1px solid var(--ink); background: var(--white); min-height: 44px; padding: 8px 16px; font: 500 0.95rem var(--font); cursor: pointer; border-radius: var(--radius); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-item--home { display: flex; }
  .nav-item > a { flex: 1; padding: 18px 0; font-size: 1.2rem; }
  .nav-item > a::after { display: none; }
  .sub-toggle { width: 48px; height: 48px; margin: 0; }
  .has-sub.is-open .sub-toggle::before { transform: translateY(2px) rotate(-135deg); }
  .sub-list { position: static; width: 100%; min-width: 0; border: 0; box-shadow: none; padding: 0 0 12px; display: none; opacity: 1; visibility: visible; transform: none; background: transparent; }
  .has-sub:hover .sub-list, .has-sub:focus-within .sub-list { display: none; }
  .has-sub.is-open .sub-list { display: block; }
  .sub-list a { padding: 10px 0 10px 16px; border-left: 2px solid var(--silver); }
  .nav-cta-mobile { display: flex; margin-top: 28px; }
  .btn--communes { display: none; }
  .hero-home-grid, .flagship-grid, .split, .profile, .contact-grid { grid-template-columns: 1fr; }
  .hero-home-grid h1 { max-width: 20ch; }
  .hero-media { padding-bottom: 0; }
  .photo--tall { aspect-ratio: 16 / 10; }
  .hero-goldbar { display: none; }
  .hero--home { padding-bottom: 48px; }
  .cards--3, .cards--4, .cards--5 { grid-template-columns: repeat(2, 1fr); }
  .columns--3, .columns--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .step:nth-child(2)::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .profile-media { max-width: 380px; }
  .contact-card { position: static; }
  .photo--banner { aspect-ratio: 16 / 8; }
}

/* Responsive : smartphone */
@media (max-width: 640px) {
  body { font-size: 17px; }
  :root { --gutter: 20px; }
  .brand-name { font-size: 1.08rem; letter-spacing: 0.2em; }
  .brand-sub { font-size: 0.55rem; letter-spacing: 0.18em; }
  .site-header .brand-mark { width: 36px; height: 36px; }
  .brand { gap: 9px; }
  .header-inner { gap: 12px; }
  .menu-toggle { padding: 8px 12px; }
  .cards--2, .cards--3, .cards--4, .cards--5, .columns--2, .columns--3, .columns--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .step::before { display: none; }
  .step { padding: 0 0 0 64px; }
  .step-num { position: absolute; left: 0; top: 0; }
  .lc { grid-template-columns: 1fr; }
  .lc-name { min-height: 0; }
  .scale-items { grid-template-columns: 1fr; gap: 18px; }
  .scale-items li { flex-direction: row; text-align: left; }
  .scale-bar { left: 9px; right: auto; top: 10px; bottom: 60px; width: 4px; height: auto; background: linear-gradient(180deg, var(--silver), var(--gold)); }
  .scale-ends .scale-label { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .timeline::before { left: 7px; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; padding-left: 36px; }
  .timeline-item::before { left: 1px; }
  .timeline-year { text-align: left; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .photo--banner, .photo--band { aspect-ratio: 4 / 3; }
  .hero--page.has-banner { background: linear-gradient(to bottom, var(--silver-pale) calc(100% - 90px), var(--white) calc(100% - 90px)); }
  .rule { border-left-width: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Impression */
@media print {
  .topbar, .site-header, .site-footer, .btn, .photo--placeholder { display: none !important; }
  body { font-size: 12pt; }
}

/* Cadrage des photos fournies */
img[src*="communes-passerelle-parc"] { object-position: 50% 85%; }
img[src*="apropos-batiment"] { object-position: 50% 60%; }
img[src*="contact-facade-verre"] { object-position: 50% 45%; }
.photo--band img[src*="bande-village-vue-aerienne"] { object-position: 50% 62%; }
.quote-source { margin: 14px 0 0; font-size: 0.9rem; color: var(--concrete); }
.facts > div.fact--wide { grid-column: 1 / -1; }
.fact-list { margin: 2px 0 0; padding-left: 1.1em; }
.fact-list li { margin: 2px 0; }
.fact-list li::marker { color: var(--gold); }
.form-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.footer-credit { display: block; margin-top: 4px; color: #9AA4AE; font-size: 0.82rem; }
