/* CoreFlow, site web. Jetons repris du design system v1 (dépôt coreflow-brand, tokens/coreflow.css). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("/assets/fonts/montserrat-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("/assets/fonts/montserrat-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-figures: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --navy: #0E2A4F; --night: #050E1A; --flow: #1565C0; --flow-bright: #38BDF8;
  --bg: #FFFFFF; --surface: #F4F7FB; --line: #D9E2EE;
  --ink: #0E2A4F; --ink-2: #475A73; --mute: #56657A;
  --accent: #1565C0; --cold: #0369A1; --warm: #C2410C; --ok: #047857;

  --d-bg: #050E1A; --d-surface: #0F2238; --d-line: #1C3352;
  --d-ink: #EAF2FB; --d-ink-2: #AFC3DB; --d-mute: #8CA2BE;
  --d-accent: #38BDF8; --d-cold: #38BDF8; --d-warm: #FB923C; --d-ok: #34D399;

  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 22px;
  --wrap: 1160px;
  --pad: clamp(20px, 4vw, 40px);
  --section: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -0.025em; }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.005em; line-height: 1.25; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
strong { color: var(--ink); font-weight: 600; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.35em; }
:focus-visible { outline: 3px solid var(--flow-bright); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--flow-bright); color: var(--night); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow { font-family: var(--font-figures); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 46em; }
.narrow { max-width: 46em; }
.center { text-align: center; margin-inline: auto; }

/* Bandeau de test */
.test-banner { background: #FDE68A; color: #3B2A00; font-size: 0.82rem; font-weight: 600; text-align: center; padding: 6px 12px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5, 14, 26, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--d-line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; }
.logo img { display: block; height: 28px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav ul a { color: var(--d-ink-2); text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--d-ink); border-bottom-color: var(--d-accent); }
.lang { font-family: var(--font-figures); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--d-ink-2); text-decoration: none; border: 1px solid var(--d-line); border-radius: 999px; padding: 5px 11px; }
.lang:hover { color: var(--d-ink); border-color: var(--d-mute); }
.nav-toggle { display: none; background: none; border: 1px solid var(--d-line); border-radius: var(--radius-sm); width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; background: var(--d-ink); border-radius: 2px; position: relative; transition: transform .2s ease; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-text); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; padding: 14px 22px; border-radius: 999px; border: 1px solid transparent; background: var(--flow); color: #fff; transition: background .15s ease, transform .15s ease, border-color .15s ease; }
.btn:hover { background: #0F4F9C; transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--mute); }
.on-dark .btn, .site-header .btn, .cta-band .btn { background: var(--flow-bright); color: var(--night); }
.on-dark .btn:hover, .site-header .btn:hover, .cta-band .btn:hover { background: #7DD3FC; }
.on-dark .btn-ghost, .cta-band .btn-ghost { background: transparent; color: var(--d-ink); border-color: var(--d-line); }
.on-dark .btn-ghost:hover, .cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--d-mute); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }

/* Fonds sombres */
.on-dark { background: var(--d-bg); color: var(--d-ink-2); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark strong { color: var(--d-ink); }
.on-dark .eyebrow { color: var(--d-accent); }
.on-dark .lead { color: var(--d-ink-2); }
.on-dark a:not(.btn) { color: var(--d-accent); }

/* Héros de l'accueil */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 78% -10%, #12345A 0%, rgba(18, 52, 90, 0) 60%), linear-gradient(180deg, #071528 0%, var(--d-bg) 100%); color: var(--d-ink-2); padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(140, 162, 190, 0.16) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 55%, transparent 100%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--d-ink); max-width: 17em; }
.hero h1 em { font-style: normal; color: var(--d-accent); }
.hero .lead { margin-top: 1.4rem; max-width: 38em; }
.hero-note { margin-top: 1.4rem; font-size: 0.92rem; color: var(--d-mute); }
.loop-figure { margin: clamp(40px, 6vw, 72px) 0 0; }
.loop-diagram { display: block; width: 100%; }

/* Schéma du circuit */
.d-scope { fill: rgba(56, 189, 248, 0.045); stroke: rgba(56, 189, 248, 0.55); stroke-width: 1.5; stroke-dasharray: 7 7; }
.d-tagbg { fill: var(--d-accent); }
.d-tag { font-family: var(--font-figures); font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; fill: var(--night); }
.d-facility { fill: rgba(140, 162, 190, 0.05); stroke: #5B728F; stroke-width: 1.5; stroke-dasharray: 5 6; }
.d-facility-icon circle { fill: none; stroke: #5B728F; stroke-width: 3; }
.d-grey { fill: none; stroke: #5B728F; stroke-width: 5; stroke-linecap: round; }
.d-cdu { fill: var(--d-surface); stroke: var(--d-accent); stroke-width: 2; }
.d-cdu-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; fill: var(--d-ink); letter-spacing: 0.04em; }
.d-exchanger { fill: none; stroke: var(--d-accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.d-supply { fill: none; stroke: var(--d-cold); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.d-return { fill: none; stroke: var(--d-warm); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.d-pearls { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0.1 18; opacity: 0.9; }
.d-pearls-supply { animation: flow 1.5s linear infinite; }
.d-pearls-return { animation: flow 1.5s linear infinite; }
@keyframes flow { from { stroke-dashoffset: 18.1; } to { stroke-dashoffset: 0; } }
.d-sensor circle { fill: var(--d-bg); stroke: var(--d-cold); stroke-width: 2; }
.d-sensor .d-sensor-core { fill: var(--d-cold); stroke: none; }
.d-sensor-warm circle { stroke: var(--d-warm); }
.d-sensor-warm .d-sensor-core { fill: var(--d-warm); }
.d-rack { fill: #0B1B30; stroke: #2B4A70; stroke-width: 1.5; }
.d-rackline { stroke: #2B4A70; stroke-width: 3; stroke-linecap: round; }
.d-led { fill: var(--d-ok); }
.d-label { font-family: var(--font-text); font-size: 15.5px; font-weight: 600; fill: var(--d-ink); }
.d-sub { font-family: var(--font-text); font-size: 13.5px; fill: var(--d-mute); }

/* Héros des pages intérieures */
.page-hero { background: radial-gradient(900px 420px at 85% -20%, #12345A 0%, rgba(18, 52, 90, 0) 60%), linear-gradient(180deg, #071528 0%, var(--d-bg) 100%); color: var(--d-ink-2); padding: clamp(36px, 5vw, 60px) 0 clamp(44px, 6vw, 72px); }
.page-hero h1 { color: var(--d-ink); max-width: 20em; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .eyebrow { color: var(--d-accent); }
.page-hero .lead { color: var(--d-ink-2); }
.breadcrumb { margin-bottom: clamp(24px, 4vw, 40px); font-size: 0.86rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; color: var(--d-mute); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--d-line); }
.breadcrumb a { color: var(--d-ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--d-ink); text-decoration: underline; }

/* Sections */
.section { padding: var(--section) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 46em; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p:not(.eyebrow) { font-size: 1.1rem; }
.section + .section:not(.section-alt):not(.on-dark) { padding-top: 0; }
.section-alt + .section:not(.section-alt):not(.on-dark), .on-dark + .section:not(.section-alt):not(.on-dark), .page-hero + .section, .hero + .section { padding-top: var(--section); }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }

/* Cartes */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); padding: clamp(20px, 2.4vw, 28px); }
.section-alt .card { background: #fff; }
.card h3 { margin-bottom: 0.5em; }
.card p { font-size: 0.98rem; }
.card .picto { width: 40px; height: 40px; color: var(--accent); margin-bottom: 14px; display: block; }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.card-link:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(14, 42, 79, 0.08); }
.card-link .more { margin-top: auto; padding-top: 14px; color: var(--accent); font-weight: 600; font-size: 0.94rem; }
.on-dark .card { background: var(--d-surface); border-color: var(--d-line); }
.on-dark .card .picto { color: var(--d-accent); }
.on-dark .card p { color: var(--d-ink-2); }

/* Étapes numérotées */
.steps { counter-reset: step; }
.step { position: relative; border-top: 3px solid var(--accent); padding-top: 18px; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-figures); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 10px; }
.step h3 { margin-bottom: 0.4em; }
.step h3 a { color: inherit; text-decoration: none; }
.step h3 a:hover { color: var(--accent); text-decoration: underline; }
.step p { font-size: 0.96rem; }
.on-dark .step { border-top-color: var(--d-accent); }
.on-dark .step::before { color: var(--d-accent); }

/* Périmètre : bandeau à 4 éléments */
.scope-strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3.4fr); gap: 20px; align-items: stretch; }
.scope-optional, .scope-core { border-radius: var(--radius-md); padding: 22px; }
.scope-optional { border: 1.5px dashed var(--d-line); }
.scope-core { border: 1.5px dashed rgba(56, 189, 248, 0.55); background: rgba(56, 189, 248, 0.045); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.scope-item .picto { width: 44px; height: 44px; color: var(--d-accent); display: block; margin-bottom: 12px; }
.scope-optional .picto { color: var(--d-mute); }
.scope-item h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.scope-item p { font-size: 0.92rem; color: var(--d-mute); }
.scope-tag { font-family: var(--font-figures); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--d-mute); margin-bottom: 14px; }
.scope-core .scope-tag { grid-column: 1 / -1; color: var(--d-accent); margin-bottom: 0; }

/* Listes à coche */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 0.8em; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 22px; height: 22px; border-radius: 50%; background: rgba(4, 120, 87, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-7' fill='none' stroke='%23047857' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.on-dark .checks li::before { background-color: rgba(52, 211, 153, 0.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-7' fill='none' stroke='%2334D399' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.checks strong { display: block; }

/* Texte courant des pages de contenu */
.prose { max-width: 46em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li::marker { color: var(--accent); }

/* Tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 0.96rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--font-figures); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); background: var(--surface); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { color: var(--ink); font-weight: 600; white-space: nowrap; }
.pill { display: inline-block; font-family: var(--font-figures); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: rgba(4, 120, 87, 0.1); color: var(--ok); white-space: nowrap; }
.pill-opt { background: rgba(21, 101, 192, 0.1); color: var(--accent); }
.pill-out { background: rgba(86, 101, 122, 0.12); color: var(--mute); }

/* Questions et réponses */
.qa { border-top: 1px solid var(--line); padding: 26px 0; }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa h3 { font-size: 1.2rem; margin-bottom: 0.6em; }
.qa .a { max-width: 46em; }
.qa-group { margin-bottom: clamp(36px, 5vw, 56px); }
.qa-group > h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 0.9em; }

/* Glossaire */
.glossary-index { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 clamp(28px, 4vw, 44px); }
.glossary-index li { margin: 0; }
.glossary-index a { display: inline-block; font-size: 0.88rem; text-decoration: none; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; }
.glossary-index a:hover { border-color: var(--accent); color: var(--accent); }
.glossary { margin: 0; }
.glossary dt { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.glossary dt:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.glossary dt small { font-family: var(--font-text); font-weight: 500; font-size: 0.9rem; color: var(--mute); margin-left: 6px; }
.glossary dd { margin: 10px 0 0; max-width: 46em; }

/* Équipe */
.person { display: flex; gap: 16px; align-items: flex-start; }
.avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #123459, #071528); color: var(--d-ink); font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: 0.02em; }
.avatar .picto { width: 26px; height: 26px; color: var(--d-accent); margin: 0; }
.person h3 { margin-bottom: 0.15em; font-size: 1.1rem; }
.person .role { font-family: var(--font-figures); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.7em; }
.person p { font-size: 0.96rem; }
.fineprint { font-size: 0.88rem; color: var(--mute); }

/* Chiffres clés */
.figure-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.figure { border-left: 3px solid var(--d-accent); padding-left: 18px; }
.figure b { display: block; font-family: var(--font-figures); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--d-ink); line-height: 1.1; margin-bottom: 6px; }
.figure span { font-size: 0.95rem; color: var(--d-ink-2); }

/* Appel à l'action */
.cta-band { background: radial-gradient(900px 420px at 15% 120%, #12345A 0%, rgba(18, 52, 90, 0) 60%), var(--d-bg); color: var(--d-ink-2); padding: clamp(56px, 7vw, 88px) 0; }
.cta-band h2 { color: var(--d-ink); max-width: 26em; text-wrap: pretty; }
.cta-band p { max-width: 40em; font-size: 1.1rem; }
.cta-band a:not(.btn) { color: var(--d-accent); }

/* Contact */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); }
.contact-card .mail { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 2.6vw, 1.7rem); color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--flow-bright); margin: 6px 0 18px; word-break: break-word; }
.contact-card .mail:hover { color: var(--accent); }

/* Pied de page */
.site-footer { background: var(--d-bg); color: var(--d-mute); border-top: 1px solid var(--d-line); font-size: 0.94rem; }
.foot { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-top: clamp(44px, 6vw, 68px); padding-bottom: clamp(32px, 4vw, 48px); }
.foot-brand p { margin: 16px 0 0; max-width: 26em; }
.site-footer h2 { font-family: var(--font-figures); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--d-mute); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--d-ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--d-ink); text-decoration: underline; }
.legal-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--d-line); padding: 20px 0 28px; font-size: 0.85rem; }
.legal-line p { margin: 0; }

/* Adaptation aux petits écrans */
@media (max-width: 1000px) {
  .g-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scope-strip { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--d-bg); border-bottom: 1px solid var(--d-line); padding: 12px var(--pad) 24px; flex-direction: column; align-items: stretch; gap: 16px; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--d-line); font-size: 1.05rem; }
  .site-nav ul a:hover, .site-nav ul a[aria-current="page"] { border-bottom-color: var(--d-line); color: var(--d-accent); }
  .lang { align-self: flex-start; }
  .split { grid-template-columns: 1fr; }
  .g-3 { grid-template-columns: 1fr; }
  .g-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .figure-row { grid-template-columns: 1fr; }
  .scope-core { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero .loop-figure { display: none; }
}
@media (max-width: 560px) {
  .g-2, .g-4, .g-5 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .site-nav .btn { width: 100%; }
  tbody th { white-space: normal; }
}
@media (max-width: 700px) {
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; }
  .table-wrap thead { display: none; }
  .table-wrap tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .table-wrap tbody tr:last-child { border-bottom: 0; }
  .table-wrap th, .table-wrap td { padding: 0; border: 0; }
  .table-wrap td { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .d-pearls { animation: none; }
  .btn, .card-link { transition: none; }
}
@media print {
  .site-header, .site-footer, .cta-band, .test-banner, .nav-toggle { display: none; }
  .page-hero, .hero { background: none; color: #000; padding: 0 0 24px; }
  .page-hero h1, .hero h1 { color: #000; }
}
