/*
 * benjaminpittino.fr — direction « Cabinet éditorial »
 * Une encre, un signal, beaucoup d'air. Mobile d'abord ; aucun style en ligne (CSP style-src 'self'), polices locales.
 *
 * Encre #0E1A33 (titres, fonds forts) · Signal #2F5BEA (actions, accents) · Bleu institutionnel #1E3A8A (survol,
 * pastilles) · Signal clair #9DB6FF (texte sur encre) · Papier #F6F7FB (fonds de section) · Texte courant #3A4664.
 * Rayons : 22 px cartes, 28 px portrait, pilules pour boutons et filtres. Bordures 1 px #E3E7F0, pas d'ombres hors
 * éléments flottants. Interdits : dégradés, emojis, insignes officiels.
 */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #0E1A33;
  --ink-deep: #0A1328;
  --signal: #2F5BEA;
  --signal-dark: #1E3A8A;
  --signal-light: #9DB6FF;
  --paper: #F6F7FB;
  --white: #FFFFFF;
  --text: #3A4664;
  --text-strong: #24314F;
  --muted: #4A5675;
  --line: #E3E7F0;
  --chip-line: #D5DCEA;
  --tint: #EEF2FC;
  --on-ink: #C9D3EA;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-card: 22px;
  --r-portrait: 28px;
  --wrap: 1200px;
  --gutter: 20px;
  --sec: 64px;
}
@media (min-width: 720px) { :root { --gutter: 24px; --sec: 88px; } }
@media (min-width: 1080px) { :root { --sec: 104px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--signal); text-underline-offset: 3px; }
a:hover { color: var(--signal-dark); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 840px; }
.accent { color: var(--signal); }
.small { font-size: 14px; color: var(--muted); }
.empty { color: var(--muted); }

/* Sur-titres, filet signal */
.kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--signal); }
.kicker.muted { color: var(--muted); }
.rule { display: inline-block; width: 40px; height: 2px; background: var(--signal); flex: none; }
.kicker-line { display: flex; align-items: center; gap: 12px; }

/* Boutons et liens */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 16px/1.2 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--signal); color: var(--white); }
.btn-primary:hover { background: var(--signal-dark); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; margin-bottom: 20px; }
.back:hover { color: var(--signal); }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-photo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; display: block; }
:is(.design-graphique, .design-couleur) .brand-photo { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85); }
.mono-badge { width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; font: 700 16px/1 var(--display); letter-spacing: .5px; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font: 700 17px/1.2 var(--display); }
.brand-tag { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: none; }
.nav a, .menu nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a[aria-current="page"], .menu nav a[aria-current="page"] { color: var(--signal); }
.nav a:hover { color: var(--signal); }
.nav .nav-cta, .menu .nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 600; }
.nav .nav-cta:hover { background: var(--signal); color: var(--white); }
.menu { position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.menu nav { position: absolute; right: 0; top: 54px; width: min(280px, calc(100vw - 2 * var(--gutter))); background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; box-shadow: 0 18px 40px rgba(14, 26, 51, .14); }
.menu nav a { padding: 12px 14px; border-radius: 12px; }
.menu nav a:hover { background: var(--paper); }
.menu nav .nav-cta { justify-content: center; margin-top: 6px; }
@media (min-width: 960px) {
  .nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; }
  .menu { display: none; }
}

/* Héros */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; gap: 48px; padding-top: 48px; padding-bottom: 56px; }
.hero-text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero-title { font-weight: 700; font-size: clamp(44px, 11vw, 76px); line-height: 1.02; letter-spacing: -1.5px; }
.hero-lede { font-size: 18px; line-height: 1.55; color: var(--text-strong); max-width: 560px; }
.badges { list-style: none; margin: 0; padding: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badge { padding: 7px 14px; border-radius: 999px; background: var(--tint); color: var(--signal-dark); font-size: 13px; font-weight: 600; }
.hero-visual { position: relative; max-width: 420px; width: 100%; justify-self: center; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 70% 30%; border-radius: var(--r-portrait); }
.portrait-empty { display: flex; align-items: center; justify-content: center; background: var(--ink); }
.portrait-empty span { font: 700 96px/1 var(--display); color: var(--white); letter-spacing: 2px; opacity: .92; }
.now { position: relative; margin: -40px 16px 0; max-width: 300px; background: var(--ink); color: var(--white); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 18px 40px rgba(14, 26, 51, .25); }
.now-label { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--signal-light); font-weight: 600; }
.now-text { font-size: 15px; line-height: 1.45; }
@media (min-width: 720px) { .hero-lede { font-size: 21px; line-height: 1.5; } }
@media (min-width: 1000px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) 420px; align-items: center; gap: 64px; padding-top: 88px; padding-bottom: 96px; }
  .now { position: absolute; left: -24px; bottom: 32px; margin: 0; max-width: 260px; }
}

/* Bandeau environnements */
.band { background: var(--paper); }
.band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 30px; padding-bottom: 30px; }
.band-in .kicker { width: 100%; }
.band-item { font: 600 17px/1.3 var(--display); color: var(--text); }
@media (min-width: 1000px) { .band-in .kicker { width: auto; } .band-item { font-size: 20px; } }

/* Repères chiffrés */
.stats { background: var(--ink); color: var(--white); }
.stats-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px 32px; padding-top: 48px; padding-bottom: 48px; }
.stat { display: flex; flex-direction: column; gap: 6px; border-top: 2px solid var(--signal-light); padding-top: 16px; }
.stat-v { font: 700 40px/1 var(--display); }
.stat-l { font-size: 15px; color: var(--on-ink); }
@media (min-width: 720px) { .stats-in { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding-top: 56px; padding-bottom: 56px; } .stat-v { font-size: 48px; } }

/* Sections */
.sec { padding: var(--sec) 0; }
.sec-paper { background: var(--paper); }
.sec-white { background: var(--white); }
.sec-lined { border-top: 1px solid var(--line); }
.sec h2, .page-title { font-size: clamp(30px, 6vw, 46px); line-height: 1.1; letter-spacing: -.8px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 24px; margin-bottom: 40px; }
.sec-title { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.sec-aside { max-width: 380px; color: var(--muted); }
.sec-aside p { font-size: 16px; line-height: 1.6; }
.page-head .wrap { display: flex; flex-direction: column; gap: 14px; }
.page-head .lede, .article .lede { font-size: 19px; line-height: 1.55; color: var(--text-strong); }
.page-head .seg { margin-top: 10px; }
h2.sub { font-size: 24px; margin: 48px 0 16px; }

/* Grilles et cartes */
.grid-3 { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.card h3 { font-size: 22px; line-height: 1.2; }
.card p { font-size: 16px; line-height: 1.65; color: var(--text); }
.card-num { font: 700 15px/1 var(--display); color: var(--signal); }
.tags { list-style: none; margin: auto 0 0; padding: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--chip-line); font-size: 13px; color: var(--text-strong); }
.card-link { text-decoration: none; transition: border-color .15s; }
.card-link:hover { border-color: var(--signal); color: var(--ink); }
.card-meta { font-size: 13px; font-weight: 600; color: var(--muted); }
.card-title { font: 600 21px/1.3 var(--display); }
.card-text { font-size: 15px; line-height: 1.6; color: var(--text); }
.card-more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--signal); }
.card-upcoming { border-style: dashed; }
@media (min-width: 720px) { .card { padding: 32px; } .card h3 { font-size: 24px; } .card-title { font-size: 22px; } }

/* Méthode, parcours : colonne de présentation + liste */
.split { display: grid; gap: 40px; }
.split-side { display: flex; flex-direction: column; gap: 16px; }
.side-text { font-size: 17px; line-height: 1.65; color: var(--text); }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 56px; align-items: start; } .split-side { position: sticky; top: 104px; } }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { flex: 0 0 48px; font: 700 30px/1 var(--display); color: var(--signal); }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { color: var(--text); line-height: 1.65; }
@media (min-width: 720px) { .steps li { gap: 28px; padding: 28px 0; } .step-n { flex-basis: 64px; font-size: 34px; } .steps h3 { font-size: 24px; } }

/* Réalisations */
.case { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.case-head { background: var(--ink); color: var(--white); padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.case-head h3 { color: var(--white); font-size: 21px; line-height: 1.25; }
.case-ctx { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--signal-light); font-weight: 600; }
.case-body { margin: 0; padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.55; }
.case-body dt { font-weight: 600; color: var(--ink); }
.case-body dd { margin: 2px 0 0; color: var(--text); }
@media (min-width: 720px) { .case-head, .case-body { padding-left: 32px; padding-right: 32px; } .case-head h3 { font-size: 22px; } }

/* Filtre segmenté */
.seg { display: inline-flex; flex-wrap: wrap; align-self: flex-start; padding: 4px; border-radius: 999px; background: var(--tint); gap: 4px; }
.seg a, .seg button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; font: 600 14px/1 var(--body); color: var(--text-strong); background: transparent; text-decoration: none; cursor: pointer; }
.seg [aria-pressed="true"] { background: var(--ink); color: var(--white); }
.seg a:hover, .seg button:hover { color: var(--signal); }
.seg [aria-pressed="true"]:hover { color: var(--white); }

/* Frise du parcours */
.timeline { list-style: none; margin: 0; padding: 0; }
.step { display: flex; flex-wrap: wrap; gap: 6px 28px; padding: 24px 0; border-top: 1px solid var(--line); }
.step-dates { flex: 0 0 100%; font-size: 14px; font-weight: 600; color: var(--muted); }
.step-body { flex: 1 1 300px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.step-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.step-title h3 { font-size: 20px; line-height: 1.25; }
.step-org { font-size: 15px; font-weight: 600; color: var(--text-strong); }
.step p { font-size: 15px; line-height: 1.6; color: var(--text); }
.pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--tint); color: var(--signal-dark); }
.pill-reserve { background: var(--ink); color: var(--white); }
.pill-formation { background: var(--white); color: var(--text-strong); border: 1px solid var(--chip-line); }
.timeline .more { padding-top: 22px; border-top: 1px solid var(--line); }
.timeline-full .step:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .step-dates { flex: 0 0 150px; padding-top: 4px; } .step-title h3 { font-size: 21px; } .step { padding: 26px 0; } }

/* Témoignage */
.quote { margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.quote blockquote { margin: 0; font: 500 clamp(22px, 4vw, 32px)/1.35 var(--display); color: var(--ink); }
.quote figcaption { font-size: 15px; color: var(--muted); }
.quote figcaption strong { color: var(--ink); }

/* Bandeau contact */
.contact-band { background: var(--ink); color: var(--white); }
.contact-in { display: grid; gap: 36px; padding-top: var(--sec); padding-bottom: var(--sec); }
.contact-text { display: flex; flex-direction: column; gap: 16px; }
.contact-text h2 { color: var(--white); font-size: clamp(32px, 7vw, 54px); line-height: 1.08; letter-spacing: -1px; }
.contact-text h2 .accent { color: var(--signal-light); }
.contact-text p { font-size: 18px; line-height: 1.6; color: var(--on-ink); max-width: 520px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.cl { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 22px; border-radius: 16px; border: 1.5px solid #3A4A70; color: var(--white); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.cl:hover { border-color: var(--signal-light); color: var(--white); }
.cl svg { flex: none; }
.cl-main { background: var(--white); color: var(--ink); border-color: var(--white); }
.cl-main:hover { background: var(--tint); color: var(--ink); }
@media (min-width: 1000px) { .contact-in { grid-template-columns: minmax(0, 1fr) 380px; align-items: center; gap: 40px; } }

/* Pied de page */
.foot { background: var(--ink-deep); color: #9AA6C2; font-size: 13px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; padding-bottom: 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--on-ink); }
.foot a:hover { color: var(--white); }

/* Formulaire */
.form-layout { display: grid; gap: 32px; }
@media (min-width: 1000px) { .form-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; } }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 720px) { .form { padding: 32px; } }
.grid-2 { display: grid; gap: 16px 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .field.wide { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.4 var(--body); color: var(--ink); background: var(--white); border: 1.5px solid var(--chip-line); border-radius: 14px; padding: 12px 14px; min-height: 50px; }
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--signal); outline: none; box-shadow: 0 0 0 3px rgba(47, 91, 234, .18); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--signal); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-aside { display: flex; flex-direction: column; gap: 16px; }
.form-aside h2 { font-size: 22px; }
.form-aside p { line-height: 1.55; overflow-wrap: anywhere; }
.notice { border-radius: 16px; padding: 18px 20px; border: 1px solid var(--line); background: var(--white); }
.notice h2 { font-size: 20px; margin-bottom: 8px; }
.notice ul { margin: 0; padding-left: 20px; }
.notice.err { border-color: #E5B4B4; background: #FDF5F5; }
.notice.ok { border-color: var(--signal-light); background: var(--tint); display: flex; flex-direction: column; gap: 12px; }

/* Texte long (analyses, pages légales) */
.prose { font-size: 17px; line-height: 1.75; color: var(--text); }
.prose h2 { font-size: 26px; line-height: 1.2; margin: 40px 0 12px; letter-spacing: -.4px; }
.prose h3 { font-size: 21px; margin: 28px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 22px; }
.prose a { overflow-wrap: anywhere; }
.article { display: flex; flex-direction: column; gap: 14px; }
.article .prose { margin-top: 18px; }
.article-end { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; font-size: 14px; color: var(--muted); }

/* Impression : contenu seul */
@media print {
  .top, .menu, .foot, .contact-band, .actions, .seg, .back { display: none !important; }
  body { background: #fff; }
  .sec { padding: 24px 0; }
}

/* ── Logos des organisations citées ──────────────────────────────── */
.band-in { align-items: center; }
.band-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; flex: 1 1 auto; justify-content: flex-start; }
.band-item { display: inline-flex; align-items: center; }
.band-item.has-logo { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 10px 16px; min-height: 72px; }
.band-logo { height: 48px; width: auto; max-width: 128px; object-fit: contain; }
.band-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 720px) { .band-logo { height: 56px; max-width: 150px; } }
@media (min-width: 1000px) { .band-list { justify-content: flex-end; gap: 14px 18px; } }
.step-org { display: inline-flex; align-items: center; gap: 10px; }
.step-logo { width: 34px; height: 34px; object-fit: contain; flex: none; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.case-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.case-logo { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--white); display: flex; align-items: center; justify-content: center; padding: 6px; }
.case-logo .logo { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ── Illustrations ───────────────────────────────────────────────── */
/* Bandeau illustré : image en couche de fond, voile encre uni (pas de dégradé, charte), phrase en surimpression. */
.visual-band { position: relative; min-height: 300px; display: flex; align-items: flex-end; background: var(--ink); color: var(--white); overflow: hidden; }
.visual-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visual-veil { position: absolute; inset: 0; background: var(--ink); opacity: .55; }
.visual-in { position: relative; width: 100%; padding-top: 72px; padding-bottom: 48px; }
.visual-quote { max-width: 760px; font: 600 clamp(26px, 5vw, 44px)/1.15 var(--display); letter-spacing: -.6px; color: var(--white); }
@media (min-width: 720px) { .visual-band { min-height: 420px; } .visual-in { padding-bottom: 56px; } }
.card-media { padding: 0; overflow: hidden; }
.card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card .card-img + .card-in, .card-in { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; }
@media (min-width: 720px) { .card-in { padding: 30px 32px 34px; } }
.side-img { width: 100%; border-radius: var(--r-portrait); object-fit: cover; aspect-ratio: 16 / 10; margin-top: 12px; }
.case-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-img { width: 100%; border-radius: var(--r-card); aspect-ratio: 16 / 9; object-fit: cover; margin: 10px 0 4px; }
.contact-band { position: relative; overflow: hidden; }
.contact-band.has-bg .visual-veil { opacity: .78; }
.contact-band .contact-in { position: relative; }

/* ══ Designs « Graphique » et « Bleu roi et or » (v7.6) ═════════════════════
   Variantes de la maquette, choisies dans l'administration (body.design-…).
   Même balisage que le design éditorial : seules couleurs, fonds et mises en page changent. */
.design-graphique {
  --head-bg: var(--ink); --hero-bg: var(--ink); --hero-side: #1E3A8A; --hero-accent: #9DB6FF; --hero-rule: #9DB6FF; --hero-kicker: #9DB6FF; --hero-lede: #C9D3EA;
  --cta-bg: #2F5BEA; --cta-fg: #FFFFFF; --cta-hover: #1E3A8A;
  --stats-bg: var(--ink); --stats-v: #9DB6FF; --stats-l: #C9D3EA;
  --contact-bg: #1B2A4D; --veil: #0E1A33; --duo: #2F5BEA;
}
.design-couleur {
  --paper: #F7F5F0; --tint: #E3E7F2; --chip-line: #D9D3C3;
  --signal: #8A6A22; --signal-dark: #1B2D6B; --signal-light: #C8A24A;
  --head-bg: var(--ink); --hero-bg: #1B2D6B; --hero-side: #C8A24A; --hero-accent: #C8A24A; --hero-rule: #C8A24A; --hero-kicker: #FFFFFF; --hero-lede: #E8EAF2;
  --cta-bg: #C8A24A; --cta-fg: #0E1A33; --cta-hover: #E0BE6A;
  --stats-bg: #C8A24A; --stats-v: #0E1A33; --stats-l: #2A2110;
  --contact-bg: #1B2D6B; --veil: #1B2D6B;
}
:where(.design-couleur) a { color: #1B2D6B; }
:where(.design-couleur) a:hover { color: #8A6A22; }
.design-couleur :focus-visible { outline-color: #8A6A22; }

/* En-tête encre */
:is(.design-graphique, .design-couleur) .top { background: var(--head-bg); border-bottom-color: var(--head-bg); }
:is(.design-graphique, .design-couleur) .brand, :is(.design-graphique, .design-couleur) .brand:hover { color: var(--white); }
:is(.design-graphique, .design-couleur) .brand-tag { color: #C9D3EA; }
:is(.design-graphique, .design-couleur) .mono-badge { background: var(--white); color: var(--ink); }
:is(.design-graphique, .design-couleur) .nav a { color: var(--white); }
:is(.design-graphique, .design-couleur) .nav a:hover, :is(.design-graphique, .design-couleur) .nav a[aria-current="page"] { color: var(--hero-accent); }
:is(.design-graphique, .design-couleur) .nav .nav-cta { background: var(--white); color: var(--ink); }
:is(.design-graphique, .design-couleur) .nav .nav-cta:hover, :is(.design-graphique, .design-couleur) .nav .nav-cta[aria-current="page"] { background: var(--hero-accent); color: var(--ink); }
:is(.design-graphique, .design-couleur) .menu summary { border-color: #3A4A70; }
:is(.design-graphique, .design-couleur) .menu summary span { background: var(--white); }

/* Héros : panneau de couleur + portrait pleine hauteur, bord à bord */
:is(.design-graphique, .design-couleur) .hero { background: var(--hero-bg); border-bottom: 0; color: var(--white); }
:is(.design-graphique, .design-couleur) .hero-in { max-width: none; padding: 0; gap: 0; }
:is(.design-graphique, .design-couleur) .hero-text { padding: 56px var(--gutter) 56px; gap: 26px; }
:is(.design-graphique, .design-couleur) .hero .rule { background: var(--hero-rule); }
:is(.design-graphique, .design-couleur) .hero .kicker.muted { color: var(--hero-kicker); }
:is(.design-graphique, .design-couleur) .hero-title { color: var(--white); font-size: clamp(46px, 12vw, 92px); line-height: .98; letter-spacing: -2px; }
:is(.design-graphique, .design-couleur) .hero-title .accent { color: var(--hero-accent); }
:is(.design-graphique, .design-couleur) .hero-lede { color: var(--hero-lede); }
:is(.design-graphique, .design-couleur) .hero .btn-primary { background: var(--cta-bg); color: var(--cta-fg); }
:is(.design-graphique, .design-couleur) .hero .btn-primary:hover { background: var(--cta-hover); color: var(--cta-fg); }
:is(.design-graphique, .design-couleur) .hero .btn-outline { border-color: var(--white); color: var(--white); }
:is(.design-graphique, .design-couleur) .hero .btn-outline:hover { background: var(--white); color: var(--ink); }
:is(.design-graphique, .design-couleur) .hero .badge { background: var(--white); color: var(--ink); }
:is(.design-graphique, .design-couleur) .hero-visual { max-width: none; justify-self: stretch; min-height: 440px; background: var(--hero-side); overflow: hidden; }
:is(.design-graphique, .design-couleur) .hero-visual .portrait { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; object-position: 68% 25%; }
:is(.design-graphique, .design-couleur) .hero-visual .portrait-empty { position: absolute; inset: 0; background: transparent; }
:is(.design-graphique, .design-couleur) .now { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 24px; margin: 0; max-width: 340px; }
/* Graphique : portrait en bichromie (niveaux de gris + voile bleu signal en produit) */
.design-graphique .hero-visual .portrait { filter: grayscale(1) contrast(1.12); }
.design-graphique .hero-visual::after { content: ""; position: absolute; inset: 0; background: var(--duo); mix-blend-mode: multiply; opacity: .55; pointer-events: none; }
.design-graphique .now { z-index: 1; }
@media (min-width: 1000px) {
  :is(.design-graphique, .design-couleur) .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  :is(.design-graphique, .design-couleur) .hero-text { justify-self: end; width: 100%; max-width: calc(var(--wrap) / 2 + 40px); padding: 96px 48px 104px var(--gutter); }
  :is(.design-graphique, .design-couleur) .hero-visual { min-height: 600px; }
  :is(.design-graphique, .design-couleur) .now { left: 32px; right: auto; bottom: 32px; }
}

/* Bandeau des organisations, bandeau illustré */
:is(.design-graphique, .design-couleur) .band { background: var(--white); border-bottom: 1px solid var(--line); }
:is(.design-graphique, .design-couleur) .visual-veil { background: var(--veil); opacity: .6; }
.design-couleur .visual-band { background: #1B2D6B; }
.design-couleur .visual-quote .accent { color: #C8A24A; }

/* Repères en grands chiffres sur bandeau plein */
:is(.design-graphique, .design-couleur) .stats { background: var(--stats-bg); color: var(--stats-v); }
:is(.design-graphique, .design-couleur) .stat { border-top: 0; padding-top: 0; gap: 10px; }
:is(.design-graphique, .design-couleur) .stat-v { color: var(--stats-v); font-size: 56px; line-height: .9; }
:is(.design-graphique, .design-couleur) .stat-l { color: var(--stats-l); }
@media (min-width: 720px) { :is(.design-graphique, .design-couleur) .stat-v { font-size: 72px; } :is(.design-graphique, .design-couleur) .stats-in { padding-top: 72px; padding-bottom: 72px; } }

/* Sections, cartes : titres plus affirmés, cartes sans filet */
:is(.design-graphique, .design-couleur) .sec-title h2, :is(.design-graphique, .design-couleur) .split-side h2, :is(.design-graphique, .design-couleur) .page-title { font-size: clamp(32px, 6.4vw, 56px); line-height: 1.05; letter-spacing: -1px; }
:is(.design-graphique, .design-couleur) .card, :is(.design-graphique, .design-couleur) .case { border-color: transparent; border-radius: 24px; }
:is(.design-graphique, .design-couleur) .card-link:hover { border-color: var(--signal); }
:is(.design-graphique, .design-couleur) .card-upcoming { border: 1px dashed var(--chip-line); }
:is(.design-graphique, .design-couleur) .step-n { font-size: 40px; }
@media (min-width: 720px) { :is(.design-graphique, .design-couleur) .step-n { flex-basis: 72px; font-size: 44px; } }
:is(.design-graphique, .design-couleur) .side-img { aspect-ratio: 4 / 5; border-radius: 28px; }
.design-couleur .case-ctx { color: #C8A24A; }
.design-couleur .pill-reserve { background: #C8A24A; color: #0E1A33; }
.design-couleur .pill { color: #1E3A8A; }
.design-couleur .pill-reserve { color: #0E1A33; }
.design-couleur .seg { background: var(--white); }
.design-couleur #parcours { background: var(--paper); }

/* Réalisations en page de magazine : le premier cas à la une sur deux colonnes */
@media (min-width: 1080px) {
  :is(.design-graphique, .design-couleur) #realisations .case:first-child:nth-last-child(n+3) { grid-column: span 2; grid-row: span 2; }
  :is(.design-graphique, .design-couleur) #realisations .case:first-child:nth-last-child(n+3) .case-head { padding: 36px; }
  :is(.design-graphique, .design-couleur) #realisations .case:first-child:nth-last-child(n+3) .case-head h3 { font-size: 30px; line-height: 1.15; }
  :is(.design-graphique, .design-couleur) #realisations .case:first-child:nth-last-child(n+3) .case-img { aspect-ratio: 21 / 9; }
  :is(.design-graphique, .design-couleur) #realisations .case:first-child:nth-last-child(n+3) .case-body { padding: 32px 36px; font-size: 16px; }
}

/* Contact et pied de page */
:is(.design-graphique, .design-couleur) .contact-band { background: var(--contact-bg); }
:is(.design-graphique, .design-couleur) .contact-text h2 { font-size: clamp(36px, 8vw, 64px); line-height: 1.02; letter-spacing: -1.4px; }
.design-couleur .contact-text h2 .accent { color: #C8A24A; }
.design-couleur .contact-text p { color: #E8EAF2; }
.design-couleur .cl { border-color: #C8A24A; }
.design-couleur .cl:hover { border-color: #E0BE6A; }
.design-couleur .cl-main { background: #C8A24A; border-color: #C8A24A; color: #0E1A33; }
.design-couleur .cl-main:hover { background: #E0BE6A; color: #0E1A33; }

/* Pages intérieures (parcours, analyses, contact…) : boutons et formulaires aux couleurs du design */
.design-couleur .btn-primary { background: #1B2D6B; color: var(--white); }
.design-couleur .btn-primary:hover { background: #8A6A22; color: var(--white); }
.design-couleur .field input:focus, .design-couleur .field select:focus, .design-couleur .field textarea:focus { border-color: #8A6A22; box-shadow: 0 0 0 3px rgba(200, 162, 74, .25); }
.design-couleur .notice.ok { border-color: #C8A24A; background: #FBF6E9; }
@media (min-width: 1080px) {
  /* Cas à la une : le panneau encre occupe la hauteur libre, titre en bas (comme la maquette) */
  :is(.design-graphique, .design-couleur) #realisations .case:first-child:nth-last-child(n+3) .case-head { flex: 1 1 auto; justify-content: flex-end; min-height: 260px; }
  :is(.design-graphique, .design-couleur) #realisations .case:first-child:nth-last-child(n+3) .case-top { margin-bottom: auto; }
}
