/* MH Partners — bleu nuit et laiton
   Principe : la page se lit comme un plan d'ingénieur. Le haut de page est une feuille
   de dessin (cadre, repères de zones, cartouche). Le reste est calme et discipliné. */

@font-face { font-family: "MH Serif"; src: url("../fonts/source-serif-4.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "MH Sans"; src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "MH Sans"; src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "MH Sans"; src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "MH Condensed"; src: url("../fonts/ibm-plex-sans-condensed-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Couleurs ---------- */
:root {
  color-scheme: light dark;
  --paper: #F1F3F5;        /* papier calque, froid */
  --paper-2: #E7EBEF;
  --ink: #0F1D30;          /* encre bleu nuit */
  --ink-soft: #4C596B;
  --rule: #CBD2DA;
  --rule-strong: #0F1D30;
  --navy: #0E2238;         /* feuille bleu nuit */
  --navy-deep: #0A1A2C;
  --on-navy: #EEF1F4;
  --on-navy-soft: #A8B4C3;
  --navy-rule: rgba(205, 170, 110, 0.36);
  --zone-ink: rgba(205, 170, 110, 0.62);
  --brass: #B08D57;
  --brass-ink: #7C5E2E;    /* laiton lisible sur papier */
  --brass-light: #CDAA6E;  /* laiton lisible sur bleu nuit */
  --btn-ink: #0E2238;
  --todo-bg: #FCEFD4;
  --todo-ink: #5A3D0C;
  --serif: "MH Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "MH Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --cond: "MH Condensed", "Arial Narrow", "MH Sans", ui-sans-serif, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B1626; --paper-2: #0F1D31; --ink: #E5E9EE; --ink-soft: #A3AFBF;
    --rule: #22344B; --rule-strong: #8C9AAD; --brass-ink: #CDAA6E;
    --navy: #0E2238; --navy-deep: #08131F; --todo-bg: rgba(205, 170, 110, 0.18); --todo-ink: #E8CC97;
  }
}
:root[data-theme="dark"] {
  --paper: #0B1626; --paper-2: #0F1D31; --ink: #E5E9EE; --ink-soft: #A3AFBF;
  --rule: #22344B; --rule-strong: #8C9AAD; --brass-ink: #CDAA6E;
  --navy: #0E2238; --navy-deep: #08131F; --todo-bg: rgba(205, 170, 110, 0.18); --todo-ink: #E8CC97;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
:root { box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { background: var(--navy-deep); scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 12px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--navy-deep); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--brass-light); color: var(--btn-ink); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--brass-light); color: var(--btn-ink); }
.btn-primary:hover { background: #DCC08B; }
.btn-ghost { border-color: rgba(205, 170, 110, 0.55); color: var(--on-navy); }
.btn-ghost:hover { border-color: var(--brass-light); background: rgba(205, 170, 110, 0.10); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: .9375rem; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--navy-deep); color: var(--on-navy); border-bottom: 1px solid var(--navy-rule); }
.header-bar { display: flex; align-items: center; gap: 26px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-navy); margin-right: auto; }
.brand .mark { width: 38px; height: 38px; flex: none; color: var(--brass-light); }
.brand span { font-family: var(--serif); font-weight: 600; font-size: 1.1875rem; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--on-navy-soft); text-decoration: none; font-size: .9375rem; font-weight: 500; padding-block: 6px;
  background: linear-gradient(var(--brass-light), var(--brass-light)) no-repeat 0 100% / 0 1px;
  transition: color .2s ease, background-size .25s ease;
}
.nav a:hover { color: var(--on-navy); background-size: 100% 1px; }
.lang { font: 500 .875rem/1 var(--cond); letter-spacing: .06em; color: var(--on-navy); text-decoration: none; border: 1px solid var(--navy-rule); padding: 8px 10px; }
.lang:hover { border-color: var(--brass-light); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--navy-rule); color: var(--on-navy); cursor: pointer; padding: 0; }
.nav-toggle-bars, .nav-toggle-bars::before { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s ease; }
.nav-toggle-bars::before { content: ""; position: absolute; left: 0; top: 6px; }
.nav-toggle-bars { transform: translateY(-3px); }
.site-header.is-open .nav-toggle-bars { transform: translateY(0) rotate(45deg); }
.site-header.is-open .nav-toggle-bars::before { top: 0; transform: rotate(-90deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .header-bar { gap: 12px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
         background: var(--navy-deep); border-bottom: 1px solid var(--navy-rule); padding: 4px var(--gutter) 18px; }
  .site-header.is-open .nav { display: flex; }
  .nav a { padding: 14px 0; font-size: 1.0625rem; color: var(--on-navy); border-bottom: 1px solid var(--navy-rule); background: none; }
}

/* ---------- Feuille de dessin (haut et bas de page) ---------- */
.sheet { position: absolute; inset: clamp(10px, 1.8vw, 22px); pointer-events: none; }
.sheet .edge { position: absolute; background: var(--navy-rule); }
.edge-top { left: 0; right: 0; top: 0; height: 1px; transform-origin: left center; }
.edge-right { top: 0; bottom: 0; right: 0; width: 1px; transform-origin: center top; }
.edge-bottom { left: 0; right: 0; bottom: 0; height: 1px; transform-origin: right center; }
.edge-left { top: 0; bottom: 0; left: 0; width: 1px; transform-origin: center bottom; }
.zones-x, .zones-y { display: none; }
@media (min-width: 1100px) {
  .zones-x { display: grid; position: absolute; left: 0; right: 0; top: 0; height: 20px; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--navy-rule); }
  .zones-x-bottom { top: auto; bottom: 0; border-bottom: 0; border-top: 1px solid var(--navy-rule); }
  .zones-y { display: grid; position: absolute; top: 20px; bottom: 0; left: 0; width: 20px; grid-template-rows: repeat(4, 1fr); border-right: 1px solid var(--navy-rule); }
  .zones-x span, .zones-y span { font: 500 11px/1 var(--cond); color: var(--zone-ink); display: flex; align-items: center; justify-content: center; }
  .zones-x span + span { border-left: 1px solid var(--navy-rule); }
  .zones-y span + span { border-top: 1px solid var(--navy-rule); }
}

/* ---------- Haut de page ---------- */
.hero { position: relative; isolation: isolate; background: var(--navy); color: var(--on-navy); overflow: hidden; }
.hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 5.5vw, 88px); align-items: center;
  padding-block: clamp(60px, 6.8vw, 100px) clamp(56px, 6vw, 88px);
}
@media (min-width: 1100px) { .hero-grid { padding-left: calc(var(--gutter) + 18px); } }
.hero h1 { margin: 0 0 28px; }
.hero-name { display: block; font-size: clamp(3rem, 1.75rem + 4.6vw, 5.75rem); line-height: .98; letter-spacing: -.018em; }
.hero-role { display: block; margin-top: .55em; font-family: var(--sans); font-weight: 500; font-size: clamp(1.25rem, 1.05rem + .75vw, 1.625rem); line-height: 1.3; letter-spacing: 0; color: var(--on-navy); }
.lead { font-size: 1.125rem; line-height: 1.65; color: var(--on-navy-soft); max-width: 35em; margin-bottom: 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 26px; }
.portrait { margin: 0; width: min(100%, 176px); padding: 7px; border: 1px solid var(--navy-rule); }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 440 / 529; object-fit: cover; background: #F8F8EB; }
.cartouche { width: 100%; max-width: 480px; border: 1px solid var(--navy-rule); background: rgba(8, 19, 31, .28); font-size: .9375rem; }
.cartouche-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--navy-rule); }
.cartouche-head strong { font-family: var(--serif); font-weight: 600; font-size: 1.0625rem; letter-spacing: .01em; }
.cartouche-head span { font: 500 .8125rem/1.3 var(--cond); color: var(--on-navy-soft); }
.cartouche dl { margin: 0; }
.cartouche .row { display: grid; grid-template-columns: 8.4rem minmax(0, 1fr); }
.cartouche .row + .row { border-top: 1px solid var(--navy-rule); }
.cartouche dt { padding: 10px 12px 10px 16px; border-right: 1px solid var(--navy-rule); font: 500 .8125rem/1.4 var(--cond); color: var(--on-navy-soft); }
.cartouche dd { margin: 0; padding: 10px 16px; line-height: 1.4; color: var(--on-navy); }
.cartouche .is-key dd { color: var(--brass-light); font-weight: 600; }
.cartouche .is-key dd::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; vertical-align: .1em; background: var(--brass-light); }

@media (max-width: 900px) {
  /* Sur mobile : nom et photo côte à côte, puis texte, boutons et cartouche */
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title photo" "lead lead" "actions actions" "block block"; gap: 0 18px; align-items: start; }
  .hero-intro, .hero-aside { display: contents; }
  .hero h1 { grid-area: title; margin-bottom: 24px; }
  .portrait { grid-area: photo; width: clamp(76px, 17vw, 120px); padding: 4px; animation: none; }
  .lead { grid-area: lead; }
  .hero .actions { grid-area: actions; margin-bottom: 40px; }
  .cartouche { grid-area: block; max-width: none; }
}
@media (max-width: 520px) {
  .cartouche .row { grid-template-columns: 7.2rem minmax(0, 1fr); }
  .btn { width: 100%; }
}

/* Unique moment animé : la feuille se trace, puis le cartouche se remplit */
@media (prefers-reduced-motion: no-preference) {
  .hero .edge-top, .hero .edge-bottom { animation: mh-draw-x .9s cubic-bezier(.65, 0, .35, 1) both; }
  .hero .edge-right, .hero .edge-left { animation: mh-draw-y .9s cubic-bezier(.65, 0, .35, 1) both; }
  .hero .edge-right { animation-delay: .18s; } .hero .edge-bottom { animation-delay: .36s; } .hero .edge-left { animation-delay: .54s; }
  .hero .zones-x, .hero .zones-y { animation: mh-fade .6s ease both; animation-delay: .8s; }
  .hero-intro, .portrait { animation: mh-fade .8s ease both; animation-delay: .12s; }
  .cartouche { animation: mh-fade .4s ease both; animation-delay: .45s; }
  .cartouche .row { animation: mh-fade .35s ease both; }
  .cartouche .row:nth-child(1) { animation-delay: .60s; } .cartouche .row:nth-child(2) { animation-delay: .68s; }
  .cartouche .row:nth-child(3) { animation-delay: .76s; } .cartouche .row:nth-child(4) { animation-delay: .84s; }
  .cartouche .row:nth-child(5) { animation-delay: .92s; }
}
@keyframes mh-draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes mh-draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes mh-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Références ---------- */
.refs { background: var(--paper); border-bottom: 1px solid var(--rule); }
.refs-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 40px; padding-block: 26px; }
.refs-label { margin: 0; font: 500 .875rem/1.2 var(--cond); color: var(--ink-soft); }
.refs ul { display: flex; flex-wrap: wrap; gap: 8px 34px; list-style: none; margin: 0; padding: 0; }
.refs li { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.3; color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 124px); background: var(--paper); }
.section.section-alt { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 16px 64px; align-items: end; margin-bottom: clamp(32px, 4.5vw, 52px); }
.section-head h2 { font-size: clamp(2rem, 1.45rem + 2vw, 3rem); line-height: 1.08; letter-spacing: -.012em; }
.section-intro { margin: 0; color: var(--ink-soft); max-width: 36em; }
@media (max-width: 760px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

/* Résultats : tableau façon nomenclature */
.results { width: 100%; border-collapse: collapse; }
.results thead th { font: 500 .8125rem/1.2 var(--cond); color: var(--ink-soft); text-align: left; padding: 0 24px 12px 0; border-bottom: 1px solid var(--rule-strong); }
.results thead th:last-child { text-align: right; padding-right: 0; }
.results tbody tr { border-bottom: 1px solid var(--rule); }
.results th[scope="row"], .results td { padding: 22px 24px 22px 0; vertical-align: baseline; text-align: left; }
.results .r-value { width: 31%; font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 1.12rem + 1.2vw, 2.125rem); line-height: 1.15; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: lining-nums; }
.results .r-context { max-width: 42em; }
.results .r-company { width: 12rem; text-align: right; padding-right: 0; font: 500 .9375rem/1.35 var(--cond); color: var(--brass-ink); white-space: nowrap; }
@media (max-width: 760px) {
  .results thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .results, .results tbody, .results tr, .results th[scope="row"], .results td { display: block; width: auto; }
  .results tbody { border-top: 1px solid var(--rule-strong); }
  .results tr { padding: 20px 0; }
  .results th[scope="row"], .results td { padding: 0; text-align: left; }
  .results .r-value { width: auto; }
  .results .r-context { margin-top: 8px; }
  .results .r-company { width: auto; text-align: left; margin-top: 8px; white-space: normal; }
}

/* Missions : grille à traits fins */
.missions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.mission { padding: 34px 40px 38px 0; border-bottom: 1px solid var(--rule); }
.mission:nth-child(even) { padding: 34px 0 38px 40px; border-left: 1px solid var(--rule); }
.mission h3 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 14px; }
.mission p { max-width: 34em; }
.mission .proof { margin: 18px 0 0; padding-left: 14px; border-left: 2px solid var(--brass); font: 500 .9375rem/1.5 var(--cond); color: var(--ink); }
@media (max-width: 760px) {
  .missions { grid-template-columns: minmax(0, 1fr); }
  .mission, .mission:nth-child(even) { padding: 28px 0 30px; border-left: 0; }
}

/* Parcours : séquence datée */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.t-item { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 0 40px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.t-date { margin: 0; padding-top: .3em; font: 500 .9375rem/1.4 var(--cond); color: var(--ink-soft); }
.t-body h3 { font-size: 1.5rem; line-height: 1.2; }
.t-place { font-family: var(--sans); font-weight: 400; font-size: 1.0625rem; color: var(--ink-soft); }
.t-role { margin: 6px 0 10px; font-weight: 600; }
.t-body p { max-width: 46em; }
.t-body > p:last-child, .t-sub p:last-child { margin-bottom: 0; }
.t-sub { list-style: none; margin: 20px 0 0; padding: 0; }
.t-sub li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0 24px; padding: 20px 0 0; margin-top: 20px; border-top: 1px solid var(--rule); }
.t-sub li:first-child { margin-top: 0; }
.t-sub h4 { font-size: 1.25rem; line-height: 1.25; }
@media (max-width: 760px) {
  .t-item, .t-sub li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .t-date { padding-top: 0; }
}

/* Expertise */
.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 36px; border-top: 1px solid var(--rule-strong); }
.skill-col { padding-top: 22px; }
.skill-col h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.4; margin-bottom: 10px; }
.skill-col ul { list-style: none; margin: 0; padding: 0; }
.skill-col li { padding: 9px 0; border-top: 1px solid var(--rule); font-size: 1rem; line-height: 1.45; }
.skill-col li:first-child { border-top: 0; }
@media (max-width: 1000px) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 36px; } }
@media (max-width: 560px) { .skills { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact ---------- */
.contact { position: relative; isolation: isolate; background: var(--navy); color: var(--on-navy); overflow: hidden; }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px 96px; align-items: start; padding-block: clamp(72px, 9vw, 120px) clamp(80px, 10vw, 132px); }
.contact h2 { font-size: clamp(2.1rem, 1.45rem + 2.5vw, 3.4rem); line-height: 1.06; letter-spacing: -.014em; margin-bottom: 22px; }
.contact-intro p { color: var(--on-navy-soft); font-size: 1.125rem; max-width: 30em; margin-bottom: 32px; }
.contact-list { margin: 0; border-top: 1px solid var(--navy-rule); }
.contact-list .row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--navy-rule); }
.contact-list dt { font: 500 .875rem/1.6 var(--cond); color: var(--on-navy-soft); }
.contact-list dd { margin: 0; font-size: 1.0625rem; overflow-wrap: anywhere; }
.contact-list a { color: var(--on-navy); text-decoration: underline; text-decoration-color: rgba(205, 170, 110, .6); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact-list a:hover { text-decoration-color: var(--brass-light); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .contact-list .row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0; } .contact-list dd { overflow-wrap: break-word; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-soft); font-size: .875rem; border-top: 1px solid var(--navy-rule); }
.footer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-block: 22px; }
.footer-bar p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--on-navy); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Mentions légales ---------- */
.legal { background: var(--paper); padding-block: clamp(56px, 8vw, 104px); }
.legal-wrap { max-width: 860px; }
.legal h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1.06; margin-bottom: 18px; }
.legal-intro { color: var(--ink-soft); margin-bottom: 40px; }
.legal section { border-top: 1px solid var(--rule); padding: 22px 0 8px; }
.legal h2 { font-size: 1.375rem; line-height: 1.25; margin-bottom: 12px; }
.legal p { max-width: 46em; }
.legal-back { margin-top: 32px; }
.legal a { color: var(--ink); text-decoration-color: var(--brass); text-underline-offset: 4px; }
.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 0 .3em; font-weight: 600; }

/* ---------- Page introuvable ---------- */
.notfound { background: var(--navy); color: var(--on-navy); min-height: 100vh; }
.nf-wrap { padding-block: 64px; }
.brand-dark { margin-bottom: 64px; }
.nf-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; border-top: 1px solid var(--navy-rule); padding-top: 32px; }
.nf h1, .nf h2 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); margin-bottom: 14px; }
.nf p { color: var(--on-navy-soft); }
.nf a { color: var(--on-navy); text-decoration-color: var(--brass-light); text-underline-offset: 4px; }
@media (max-width: 700px) { .nf-cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Aperçu (non publié) ---------- */
.preview-bar { background: var(--navy-deep); color: var(--on-navy-soft); border-bottom: 1px solid var(--navy-rule); font: 500 .8125rem/1.4 var(--cond); }
.preview-bar p { margin: 0; padding: 8px var(--gutter); text-align: center; }

/* ---------- Impression ---------- */
@media print {
  .site-header, .sheet, .actions, .skip, .preview-bar { display: none !important; }
  body, .hero, .contact, .section, .refs, .site-footer { background: #fff !important; color: #000 !important; }
  .hero *, .contact *, .site-footer * { color: #000 !important; }
  .cartouche, .cartouche *, .contact-list, .contact-list * { border-color: #999 !important; }
  .section { padding-block: 24px; }
}

/* ---------- Formulaire de contact ---------- */
.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font: 500 .875rem/1.3 var(--cond); color: var(--on-navy-soft); }
.field label span { opacity: .75; }
.field input, .field textarea {
  width: 100%; margin: 0; padding: 12px 14px; border: 1px solid var(--navy-rule); border-radius: 0;
  background: rgba(8, 19, 31, .35); color: var(--on-navy); font: 400 1rem/1.5 var(--sans);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--brass-light); outline-offset: 1px; border-color: var(--brass-light); }
.form-note { margin: 0; font-size: .875rem; color: var(--on-navy-soft); }
.form-note a { color: var(--on-navy); text-underline-offset: 3px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-status { margin: 0; font-weight: 500; color: var(--brass-light); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.hp { display: none !important; }
.contact-fallback p { color: var(--on-navy-soft); font-size: 1.125rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: minmax(0, 1fr); } .form-actions .btn { width: 100%; } }

/* Bouton groupé CV : français et anglais */
.cv-group { display: inline-flex; align-items: stretch; min-height: 48px; border: 1px solid rgba(205, 170, 110, .55); }
.cv-group-label { display: flex; align-items: center; padding: 0 14px; font: 500 .875rem/1 var(--cond); letter-spacing: .05em; color: var(--on-navy-soft); border-right: 1px solid var(--navy-rule); }
.cv-group a { display: flex; align-items: center; justify-content: center; padding: 0 16px; font: 600 1rem/1.2 var(--sans); color: var(--on-navy); text-decoration: none; transition: background-color .2s ease; }
.cv-group a + a { border-left: 1px solid var(--navy-rule); }
.cv-group a:hover { background: rgba(205, 170, 110, .10); }
@media (max-width: 520px) { .cv-group { width: 100%; } .cv-group a { flex: 1; } }

/* Légende de la photo du fondateur */
.portrait figcaption { margin-top: 8px; font: 500 .8125rem/1.3 var(--cond); color: var(--on-navy-soft); text-align: center; }
@media (max-width: 900px) { .portrait figcaption { display: none; } }

/* Mobile : le nom de la société tient sur une ligne à côté de la photo */
@media (max-width: 520px) { .hero-name { font-size: 2.5rem; } }
