/* OSSAVIA Ingénierie - feuille de style
   Charte du kit OSSAVIA.
   Titres en Jost (géométrique, proche du dessin du logo), texte en IBM Plex Sans.
   La page se lit comme un dossier technique : papier blanc, traits marine,
   l'orange réservé aux efforts, aux repères et aux actions. */

/* Charte : kit OSSAVIA (ossavia.css) - marine #1F2A44, cuivre #D4733A, ardoise #5F6672, police Jost.
   Le cuivre foncé #A9531F sert aux boutons et petits textes (contraste AA sur blanc). */
:root {
  --navy: #1F2A44;
  --orange: #D4733A;
  --grey: #5F6672;

  --bg: #FFFFFF;
  --surface: #F3F2F0;
  --surface-2: #E9ECF2;
  --ink: #2A3140;
  --ink-strong: var(--navy);
  --muted: #5F6672;
  --line: #E6E4E0;
  --line-strong: #C9C5BE;
  --accent: var(--orange);
  --accent-ink: #A9531F;
  --accent-btn: #A9531F;
  --accent-btn-hover: #8E4418;
  --on-accent: #FFFFFF;
  --btn: var(--navy);
  --btn-hover: #121A2C;
  --on-btn: #FFFFFF;
  --panel: var(--navy);
  --panel-ink: #E9ECF2;
  --panel-muted: #A9B1C0;
  --panel-line: rgba(233, 236, 242, .16);
  --footer: #121A2C;
  --danger: #B42318;
  --ok: #2F6B4F;

  --f-display: "Jost Variable", "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --f-body: var(--f-display);
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-3: clamp(1.75rem, 2.5vw + .75rem, 2.5rem);
  --step-4: clamp(2.25rem, 4vw + 1rem, 3.75rem);

  --radius: 4px;
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1200px;
  --header-h: 84px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121A2C;
    --surface: #18223A;
    --surface-2: #22304A;
    --ink: #D5DAE3;
    --ink-strong: #F3F2F0;
    --muted: #A2AAB8;
    --line: #2A3753;
    --line-strong: #3A4A6B;
    --accent-ink: #E08A55;
    --btn: #F3F2F0;
    --btn-hover: #FFFFFF;
    --on-btn: #1F2A44;
    --panel: #18223A;
    --footer: #0B111E;
    --danger: #F97066;
    --ok: #6CC79A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121A2C;
  --surface: #18223A;
  --surface-2: #22304A;
  --ink: #D5DAE3;
  --ink-strong: #F3F2F0;
  --muted: #A2AAB8;
  --line: #2A3753;
  --line-strong: #3A4A6B;
  --accent-ink: #E08A55;
  --btn: #F3F2F0;
  --btn-hover: #FFFFFF;
  --on-btn: #1F2A44;
  --panel: #18223A;
  --footer: #0B111E;
  --danger: #F97066;
  --ok: #6CC79A;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--ink-strong);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 500; letter-spacing: -.015em; line-height: 1.08; }
h2 { font-size: var(--step-3); }
h3 { font-size: 1.3125rem; font-weight: 500; letter-spacing: 0; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
strong, b { font-weight: 600; color: var(--ink-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #FFFFFF; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--btn); color: var(--on-btn); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 136px); }
.section--tint { background: var(--surface); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

/* Petites capitales espacées, comme « INGÉNIERIE » dans le logo */
.label {
  font-family: var(--f-display);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--grey);
}
.label--accent { color: var(--accent-ink); }
.lede { font-size: var(--step-1); line-height: 1.6; color: var(--ink); max-width: 60ch; }
.muted { color: var(--muted); }

.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(44px, 6vw, 72px); }
.sec-head h2 { max-width: 16ch; }
.sec-head p { color: var(--muted); max-width: 54ch; }
.sec-head--stack { grid-template-columns: 1fr; }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- Boutons ---------- */
.btn {
  --b-bg: var(--btn); --b-fg: var(--on-btn); --b-bd: var(--btn);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 26px;
  background: var(--b-bg); color: var(--b-fg);
  border: 2px solid var(--b-bd); border-radius: var(--radius);
  font: 500 1rem/1.2 var(--f-display); letter-spacing: 0;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { --b-bg: var(--btn-hover); --b-bd: var(--btn-hover); }
.btn--accent { --b-bg: var(--accent-btn); --b-fg: var(--on-accent); --b-bd: var(--accent-btn); }
.btn--accent:hover { --b-bg: var(--accent-btn-hover); --b-bd: var(--accent-btn-hover); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink-strong); --b-bd: var(--line-strong); }
.btn--ghost:hover { --b-bg: transparent; --b-bd: var(--ink-strong); }
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .9375rem/1.3 var(--f-display); color: var(--ink-strong);
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}
.link-arrow svg { width: 16px; height: 16px; color: var(--accent); }
.link-arrow:hover { gap: 14px; color: var(--accent-ink); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo { display: block; height: 48px; width: auto; }
.brand .logo--light { display: block; }
.brand .logo--dark { display: none; }
.site-footer .logo { height: 52px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo--light { display: none; }
  :root:not([data-theme="light"]) .brand .logo--dark { display: block; }
}
:root[data-theme="dark"] .brand .logo--light { display: none; }
:root[data-theme="dark"] .brand .logo--dark { display: block; }
@media (max-width: 480px) { .site-header .logo { height: 26px; } }

.nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav a, .nav-drop-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; font: 400 1rem/1 var(--f-display); color: var(--ink);
  text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav-drop-btn:hover { color: var(--accent-ink); }
.nav a[aria-current="page"], .nav-drop-btn.is-current { color: var(--ink-strong); font-weight: 500; box-shadow: inset 0 -2px 0 var(--accent); }
.nav-drop { position: relative; }
.nav-drop-btn svg { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-drop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.drop-panel {
  position: absolute; top: calc(100% + 18px); left: -12px; width: 360px;
  background: var(--bg); border: 1px solid var(--line); border-top: 2px solid var(--accent);
  padding: 8px 0; display: grid;
}
.drop-panel a { display: grid; gap: 4px; padding: 14px 20px; box-shadow: none !important; }
.drop-panel a:hover { background: var(--surface); }
.drop-panel strong { font: 500 1rem/1.3 var(--f-display); color: var(--ink-strong); }
.drop-panel span { font: 400 .875rem/1.45 var(--f-body); color: var(--muted); }
.nav a.header-cta { margin-left: 12px; min-height: 46px; padding: 12px 20px; background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-bd); font: 500 1rem/1.2 var(--f-display); letter-spacing: 0; border-width: 2px; border-radius: var(--radius); box-shadow: none; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); background: none; color: var(--ink-strong); cursor: pointer; }
.burger svg { width: 22px; height: 22px; }

.mobile-nav { border-top: 1px solid var(--line); background: var(--bg); padding-block: 8px 24px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.mobile-nav ul { list-style: none; display: grid; }
.mobile-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 500 1.125rem/1.3 var(--f-display); color: var(--ink-strong); }
.mobile-nav .sub a { font: 400 1rem/1.3 var(--f-body); color: var(--muted); padding-left: 18px; }
.mobile-nav .btn { width: 100%; margin-top: 20px; }

@media (max-width: 1040px) {
  .nav { display: none; }
  .burger { display: inline-grid; place-items: center; }
}

/* ---------- Accueil : ouverture ---------- */
.hero { padding-block: clamp(48px, 7vw, 104px) clamp(56px, 7vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero-copy { display: grid; gap: 30px; min-width: 0; }
.hero-copy h1 { max-width: 12ch; }
.hero-copy h1 em { font-style: normal; color: var(--accent-ink); }
.hero-sub { font-size: var(--step-1); color: var(--ink); max-width: 42ch; line-height: 1.6; }
.materials { font-size: .9375rem; color: var(--muted); padding-top: 26px; border-top: 1px solid var(--line); max-width: 44ch; }

/* Le dessin, posé sur fond blanc comme un tirage */
.sheet { margin: 0; min-width: 0; border: 1px solid var(--line-strong); background: var(--bg); }
.sheet svg.drawing { display: block; width: 100%; height: auto; }
.sheet-block { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); font-family: var(--f-mono); font-size: .6875rem; color: var(--muted); }
.sheet-block > span { padding: 8px 12px; border-left: 1px solid var(--line); line-height: 1.35; }
.sheet-block > span:first-child { border-left: 0; }
.sheet-block b { display: block; font-weight: 500; color: var(--ink-strong); font-size: .75rem; }
@media (max-width: 520px) { .sheet-block { grid-template-columns: 1fr 1fr; } .sheet-block > span:nth-child(3) { border-left: 0; } .sheet-block > span:nth-child(n+3) { border-top: 1px solid var(--line); } }

.dw-grid { stroke: var(--line); stroke-width: 1; fill: none; }
.dw-axis { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 14 4 2 4; fill: none; }
.dw-struct { stroke: var(--ink-strong); stroke-width: 2.4; fill: none; stroke-linecap: square; }
.dw-thin { stroke: var(--ink-strong); stroke-width: 1; fill: none; opacity: .7; }
.dw-force { stroke: var(--accent); stroke-width: 1.6; fill: none; }
.dw-force-fill { fill: var(--accent); }
.dw-moment { fill: color-mix(in srgb, var(--accent) 14%, transparent); stroke: var(--accent); stroke-width: 1.4; }
.dw-text { fill: var(--muted); font-family: var(--f-mono); font-size: 11px; }
.dw-text-strong { fill: var(--ink-strong); font-family: var(--f-mono); font-size: 11px; font-weight: 500; }
.dw-accent { fill: var(--accent-ink); font-family: var(--f-mono); font-size: 11px; font-weight: 500; }
.dw-bubble { fill: var(--bg); stroke: var(--ink-strong); stroke-width: 1; }
.dw-ground { stroke: var(--ink-strong); stroke-width: 1; }
.dw-hatch { stroke: var(--muted); stroke-width: .8; opacity: .6; }

@media (prefers-reduced-motion: no-preference) {
  .js .drawing .dw-struct, .js .drawing .dw-force, .js .drawing .dw-moment {
    stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.6s cubic-bezier(.65, 0, .35, 1) .15s forwards;
  }
  .js .drawing .dw-force, .js .drawing .dw-moment { animation-delay: .9s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 15ch; }
}

/* ---------- Expertises ---------- */
.exp-list { list-style: none; border-top: 1px solid var(--ink-strong); }
.exp {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 5fr) minmax(0, 6fr) 40px; gap: 16px clamp(20px, 3vw, 48px);
  align-items: start; padding-block: clamp(28px, 3.5vw, 40px); border-bottom: 1px solid var(--line);
}
.exp .icon { width: 44px; height: 44px; color: var(--ink-strong); }
.exp h3 { font-size: clamp(1.375rem, 1.15rem + .8vw, 1.75rem); font-weight: 500; }
.exp h3 a { text-decoration: none; }
.exp h3 a::after { content: ""; position: absolute; inset: 0; }
.exp-body { display: grid; gap: 12px; color: var(--ink); }
.exp-body .pts { color: var(--muted); font-size: .9375rem; }
.exp-go { width: 40px; height: 40px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--ink-strong); transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.exp-go svg { width: 18px; height: 18px; }
.exp:hover .exp-go { background: var(--accent-btn); border-color: var(--accent-btn); color: #FFFFFF; }
.exp:hover h3 { color: var(--accent-ink); }
@media (max-width: 820px) {
  .exp { grid-template-columns: 44px minmax(0, 1fr); }
  .exp-body { grid-column: 1 / -1; }
  .exp-go { display: none; }
}

/* ---------- Méthode ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.step { display: grid; gap: 12px; align-content: start; min-width: 0; padding-top: 22px; border-top: 2px solid var(--line-strong); }
.step:first-child { border-top-color: var(--accent); }
.step .num { font: 500 2.75rem/1 var(--f-display); color: var(--accent); }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); font-size: .9688rem; }
.step .deliv { color: var(--ink); font-size: .875rem; }
.step .deliv b { font-weight: 600; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Réalisations ---------- */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px); }
.project { display: grid; gap: 14px; align-content: start; min-width: 0; }
.project-media { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: var(--surface); overflow: hidden; border: 1px solid var(--line); }
.project-media svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.project-media .slot { position: absolute; left: 12px; bottom: 10px; font-family: var(--f-mono); font-size: .625rem; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.project-meta { font-size: .875rem; color: var(--accent-ink); font-weight: 500; }
.project h3 { font-size: 1.25rem; }
.project p { color: var(--muted); font-size: .9688rem; }
.placeholder-note { font-size: .8125rem; color: var(--muted); font-style: italic; }
@media (max-width: 960px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .projects { grid-template-columns: 1fr; } }

.th-line { stroke: var(--ink-strong); stroke-width: 1.6; fill: none; }
.th-soft { stroke: var(--line-strong); stroke-width: 1; fill: none; }
.th-acc { stroke: var(--accent); stroke-width: 2; fill: none; }
.th-acc-fill { fill: var(--accent); }
.th-acc-tint { fill: color-mix(in srgb, var(--accent) 14%, transparent); }
.th-txt { fill: var(--muted); font-family: var(--f-mono); font-size: 11px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter { min-height: 42px; padding: 8px 18px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: 400 .9375rem/1 var(--f-display); cursor: pointer; transition: all .2s ease; }
.filter:hover { border-color: var(--ink-strong); }
.filter[aria-pressed="true"] { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }

/* ---------- Façon de travailler (bande marine) ---------- */
.dark-band { background: var(--panel); color: var(--panel-ink); }
.dark-band h2, .dark-band h3 { color: #F2F3F5; }
.dark-band .label { color: var(--orange); }
.dark-band .sec-head p { color: var(--panel-muted); }
.diff-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.diff-list { list-style: none; display: grid; }
.diff-item { padding-block: 24px; border-top: 1px solid var(--panel-line); display: grid; gap: 8px; }
.diff-item:last-child { border-bottom: 1px solid var(--panel-line); }
.diff-item h3 { font-size: 1.25rem; display: flex; gap: 14px; align-items: baseline; }
.diff-item h3::before { content: ""; width: 14px; height: 2px; background: var(--orange); flex: none; transform: translateY(-5px); }
.diff-item p { color: var(--panel-muted); padding-left: 28px; }

.report-wrap { display: grid; gap: 14px; min-width: 0; }
.report {
  background: #FFFFFF; color: #2E3440; padding: 30px 30px 34px; min-width: 0;
  font-size: .8125rem; line-height: 1.55; border-top: 4px solid var(--orange);
}
.report-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: end; padding-bottom: 14px; border-bottom: 1px solid #1F2A44; margin-bottom: 16px; }
.report-head img { height: 26px; width: auto; }
.report-head span { font-family: var(--f-mono); font-size: .625rem; color: #5F6770; text-align: right; line-height: 1.4; }
.report h4 { font: 500 .9375rem/1.3 var(--f-display); color: #1F2A44; margin: 16px 0 6px; }
.report p { color: #3B4250; }
.report table { width: 100%; border-collapse: collapse; margin-top: 8px; font-family: var(--f-mono); font-size: .6875rem; }
.report th, .report td { border: 1px solid #DDE0E5; padding: 5px 8px; text-align: left; }
.report th { background: #F3F4F6; font-weight: 500; color: #1F2A44; }
.report td.ok { color: #2F6B4F; }
.report td.ko { color: #B42318; }
.report .bars { display: grid; gap: 7px; margin-top: 8px; }
.report .bar { height: 6px; background: #E8EAEE; }
.report-cap { font-size: .8125rem; color: var(--panel-muted); }
@media (max-width: 900px) { .diff-grid { grid-template-columns: 1fr; } }

/* ---------- Pour qui ---------- */
.audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.aud { padding-block: 24px; border-top: 1px solid var(--line); display: grid; gap: 6px; align-content: start; min-width: 0; }
.aud h3 { font-size: 1.125rem; }
.aud p { color: var(--muted); font-size: .9688rem; }
@media (max-width: 860px) { .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .audience { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-aside { display: grid; gap: 26px; position: sticky; top: calc(var(--header-h) + 32px); }
.contact-aside h2 { max-width: 14ch; }
.coord { list-style: none; display: grid; border-top: 1px solid var(--line); }
.coord li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: .9688rem; }
.coord .k { font: 500 .75rem/1.6 var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--grey); padding-top: 2px; }
.coord .v { color: var(--ink-strong); overflow-wrap: anywhere; }
.copy-btn { margin-left: 8px; font: 500 .75rem/1 var(--f-display); letter-spacing: .06em; padding: 5px 9px; border: 1px solid var(--line-strong); background: none; color: var(--ink); cursor: pointer; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-aside { position: static; } }

.form { display: grid; gap: 22px; background: var(--bg); border-top: 3px solid var(--navy); padding: clamp(24px, 4vw, 44px); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font: 500 .9375rem/1.3 var(--f-display); color: var(--ink-strong); padding: 0; }
.field .opt { font: 400 .8125rem var(--f-body); color: var(--muted); margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--f-body); color: var(--ink-strong);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235F6770' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .8125rem; }
.field .hint { color: var(--muted); font-size: .8125rem; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line-strong); cursor: pointer; font-size: .9375rem; }
.check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent-btn); -webkit-appearance: auto; appearance: auto; padding: 0; margin: 0; }
.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; font: 400 .875rem/1.55 var(--f-body) !important; color: var(--muted) !important; align-items: start; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent-btn); }
.consent a { color: var(--ink-strong); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 6px; }
.form-foot small { color: var(--muted); font-size: .8125rem; }
.form-status { padding: 16px 18px; border-left: 3px solid var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--bg)); color: var(--ink-strong); font-size: .9375rem; }
.form-done { display: grid; gap: 16px; justify-items: start; padding: clamp(24px, 4vw, 44px); border-top: 3px solid var(--ok); background: var(--bg); }
.form-done svg { width: 44px; height: 44px; color: var(--ok); }

/* ---------- Bandeau d'appel ---------- */
.cta-band { background: var(--surface); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding-block: clamp(56px, 7vw, 88px); }
.cta-inner h2 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); max-width: 24ch; }
.cta-inner p { color: var(--muted); margin-top: 10px; max-width: 56ch; }
@media (max-width: 760px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- Pages intérieures ---------- */
.page-hero { padding-block: clamp(44px, 6vw, 88px) clamp(44px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.page-hero h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); max-width: 18ch; margin-top: 20px; }
.page-hero .lede { margin-top: 22px; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.cartouche { border: 1px solid var(--line-strong); font-family: var(--f-mono); font-size: .6875rem; min-width: 210px; background: var(--bg); }
.cartouche div { display: grid; grid-template-columns: 64px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.cartouche div:last-child { border-bottom: 0; }
.cartouche span { padding: 7px 10px; color: var(--muted); border-right: 1px solid var(--line); }
.cartouche b { padding: 7px 10px; font-weight: 500; color: var(--ink-strong); }
@media (max-width: 760px) { .page-hero-grid { grid-template-columns: 1fr; } .cartouche { justify-self: start; } }

.split { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.split + .split { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.split-head { display: grid; gap: 14px; align-content: start; }
.split-head h2 { font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.25rem); }
.prose { display: grid; gap: 18px; max-width: 66ch; }
.prose h3 { margin-top: 10px; }
.prose ul { list-style: none; display: grid; gap: 10px; }
.prose ul li { display: grid; grid-template-columns: 22px minmax(0, 1fr); }
.prose ul li::before { content: ""; width: 10px; height: 2px; background: var(--accent); margin-top: .8em; }
.prose a { color: var(--accent-ink); text-underline-offset: 3px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }

.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 48px); }
.spec > div { padding-block: 22px; border-top: 1px solid var(--line); display: grid; gap: 6px; align-content: start; min-width: 0; }
.spec h3 { font-size: 1.125rem; }
.spec p { color: var(--muted); font-size: .9688rem; }
@media (max-width: 620px) { .spec { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; }
.norms { width: 100%; border-collapse: collapse; font-size: .9688rem; }
.norms th, .norms td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.norms th { font: 500 .75rem/1.4 var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }
.norms td:first-child { font-family: var(--f-mono); font-size: .875rem; color: var(--ink-strong); white-space: nowrap; padding-right: 24px; }

.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; font: 500 1.125rem/1.4 var(--f-display); color: var(--ink-strong); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 22px; height: 22px; flex: none; position: relative; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--accent); transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s ease; }
.faq details[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .answer { padding: 0 46px 24px 0; max-width: 70ch; }

.todo { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--ink-strong); padding: 1px 6px; font-family: var(--f-mono); font-size: .875em; }

.person { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 28px; align-items: start; }
.person-photo { aspect-ratio: 4 / 5; max-width: 100%; background: var(--surface); border: 1px dashed var(--line-strong); display: grid; place-items: center; text-align: center; padding: 12px; font-size: .75rem; color: var(--muted); }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } .person-photo { max-width: 180px; } }

.legal { max-width: 760px; display: grid; gap: 36px; }
.legal section { display: grid; gap: 12px; }
.legal h2 { font-size: 1.5rem; }
.legal ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; }
.legal dl { display: grid; grid-template-columns: 200px minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.legal dt, .legal dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal dt { font: 500 .8125rem/1.5 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--grey); padding-top: 14px; }
.legal dd { color: var(--ink-strong); overflow-wrap: anywhere; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; } .legal dt { border-bottom: 0; padding-bottom: 0; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--footer); color: #BFC6D1; padding-block: clamp(56px, 7vw, 88px) 28px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-grid h2 { font: 500 .75rem/1 var(--f-display); letter-spacing: .24em; text-transform: uppercase; color: var(--orange); margin-bottom: 20px; }
.foot-grid ul { list-style: none; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; color: #E2E6EC; font-size: .9688rem; }
.foot-grid a:hover { color: var(--orange); }
.foot-about p { margin-top: 22px; max-width: 36ch; font-size: .9688rem; color: #A7B0BE; }
.foot-bottom { margin-top: clamp(48px, 6vw, 72px); padding-top: 22px; border-top: 1px solid rgba(226, 230, 236, .14); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .8125rem; color: #8F99A8; }
.foot-bottom a { color: #8F99A8; }
.foot-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer .todo { color: #F2F3F5; background: rgba(212, 124, 78, .3); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Apparition au défilement (état de repos visible) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-pending { opacity: .3; transform: translateY(14px); }
  .reveal-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 480px) { .label { letter-spacing: .14em; } }

/* =================================================================
   WordPress : contenu éditable, barre d'administration, blocs
   ================================================================= */
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 0px); }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.sheet--photo img { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; }
.real-photo { margin: 0 0 clamp(40px, 5vw, 64px); }
.real-photo img { width: 100%; max-height: 640px; object-fit: cover; }

/* Contenu de page : titres à gauche, texte à droite */
.entry > * { margin: 0 0 18px; }
.entry > :last-child { margin-bottom: 0; }
.entry a { color: var(--accent-ink); text-underline-offset: 3px; }
.entry h2 { font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.25rem); }
.entry h3 { margin-top: 12px; }
.entry img { max-width: 100%; height: auto; }
.entry figure { margin: 0 0 24px; }
.entry figcaption { font-size: .875rem; color: var(--muted); margin-top: 8px; }
.entry ul, .entry ol { padding: 0; list-style: none; display: grid; gap: 10px; }
.entry ul > li { display: grid; grid-template-columns: 22px minmax(0, 1fr); }
.entry ul > li::before { content: ""; width: 10px; height: 2px; background: var(--accent); margin-top: .8em; }
.entry ol { counter-reset: n; }
.entry ol > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); counter-increment: n; }
.entry ol > li::before { content: counter(n) "."; font: 500 1rem/1.7 var(--f-display); color: var(--accent-ink); }
/* Listes « Titre. texte » : présentation en fiches sur deux colonnes */
.entry ul:has(> li > strong:first-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 48px); }
.entry ul:has(> li > strong:first-child) > li { display: block; padding-block: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9688rem; }
.entry ul:has(> li > strong:first-child) > li::before { display: none; }
.entry ul:has(> li > strong:first-child) > li > strong:first-child { display: block; font: 500 1.125rem/1.35 var(--f-display); color: var(--ink-strong); margin-bottom: 6px; }
@media (max-width: 620px) { .entry ul:has(> li > strong:first-child) { grid-template-columns: 1fr; } }

/* Questions fréquentes (bloc Détails) */
.entry .wp-block-details { border-bottom: 1px solid var(--line); margin: 0; }
.entry h2 + .wp-block-details, .entry .wp-block-details:first-child { border-top: 1px solid var(--line); }
.entry .wp-block-details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 20px 0; font: 500 1.125rem/1.4 var(--f-display); color: var(--ink-strong); }
.entry .wp-block-details summary::-webkit-details-marker { display: none; }
.entry .wp-block-details summary::after { content: "+"; flex: none; font: 400 1.5rem/1 var(--f-display); color: var(--accent); transition: transform .2s ease; }
.entry .wp-block-details[open] summary::after { transform: rotate(45deg); }
.entry .wp-block-details > :not(summary) { margin: 0 0 22px; padding-right: 40px; }

.entry-split .split-head h2 { font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.25rem); }
.entry-split .split-body { min-width: 0; max-width: 70ch; }
.entry-split .split-intro { margin-bottom: 40px; max-width: 70ch; }
.entry-split .split-body > .wp-block-details:first-child { border-top: 1px solid var(--line); }
.entry-split .split-body > ul:has(> li > strong:first-child):first-child > li:nth-child(-n+2) { padding-top: 0; border-top: 0; }
@media (max-width: 620px) { .entry-split .split-body > ul:has(> li > strong:first-child):first-child > li:nth-child(2) { padding-top: 18px; border-top: 1px solid var(--line); } }
.entry--legal { max-width: 760px; }
.entry--legal h2 { font-size: 1.5rem; margin-top: 40px; }
.entry--legal > h2:first-child { margin-top: 0; }
.entry--legal ul > li > strong:first-child { display: inline; font: 600 1rem/1.7 var(--f-body); margin: 0; }
.entry--legal ul:has(> li > strong:first-child) { grid-template-columns: 1fr; }
.entry--legal ul:has(> li > strong:first-child) > li { padding-block: 10px; color: var(--ink); font-size: 1rem; }
.entry--plain h3 { font-size: 1.125rem; }

.see-also { margin-top: clamp(64px, 8vw, 104px); padding-top: 32px; border-top: 1px solid var(--ink-strong); display: grid; gap: 20px; }
.see-also ul { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 40px; }

.wp-block-image img { height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav-links { display: flex; gap: 16px; margin-top: 32px; }

/* =================================================================
   Photos (version 1.2)
   ================================================================= */
.hero-photo, .band-photo, .page-hero-photo { margin: 0; min-width: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.hero-photo img, .band-photo img, .page-hero-photo img, .exp-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-photo { aspect-ratio: 4 / 5; max-height: 640px; position: relative; }
.hero-photo::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 4px; background: var(--orange); }
.band-photo { aspect-ratio: 4 / 5; max-height: 620px; }
.page-hero-grid { align-items: center; }
.page-hero-photo { width: min(520px, 42vw); aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .page-hero-photo { width: 100%; } }
@media (max-width: 900px) { .hero-photo { aspect-ratio: 4 / 3; } .band-photo { aspect-ratio: 16 / 10; } }

.exp { grid-template-columns: 200px minmax(0, 5fr) minmax(0, 6fr) 40px; }
.exp-thumb { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.exp-thumb img { transition: transform .5s ease; }
.exp:hover .exp-thumb img { transform: scale(1.04); }
@media (max-width: 1000px) { .exp { grid-template-columns: 140px minmax(0, 1fr) 40px; } .exp-body { grid-column: 2 / 3; } .exp-go { grid-row: 1; grid-column: 3; } }
@media (max-width: 620px) { .exp { grid-template-columns: 1fr; } .exp-body { grid-column: 1; } .exp-thumb { aspect-ratio: 16 / 9; } }
