/* ==========================================================================
   GLOBACOR Partners INC — feuille de style principale
   Bleu nuit, or champagne, blanc, gris clair. Mobile-first.
   ========================================================================== */
:root {
  --navy-950: #050d1c;
  --navy-900: #0a1628;
  --navy-800: #0f2140;
  --navy-700: #16305a;
  --navy-600: #1f4175;
  --gold-500: #c9a96e;
  --gold-400: #d7bd8a;
  --gold-300: #e6d3ad;
  --gold-600: #b08e52;
  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-100: #eff1f5;
  --gray-200: #e1e5ec;
  --gray-300: #c8ceda;
  --gray-500: #6b7588;
  --gray-700: #3a4457;
  --ink: #111a2b;
  --success: #1d7a55;
  --success-bg: #e6f4ee;
  --danger: #b3261e;
  --danger-bg: #fbeaea;
  --warning: #8a5a00;
  --warning-bg: #fdf3dc;
  --info-bg: #e9eff9;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, .06), 0 1px 3px rgba(10, 22, 40, .08);
  --shadow: 0 10px 30px -12px rgba(10, 22, 40, .25);
  --font-head: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--navy-900); letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  line-height: 1.2; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500) 55%, var(--gold-600)); color: var(--navy-950); box-shadow: 0 6px 18px -8px rgba(201, 169, 110, .8); }
.btn-gold:hover { color: var(--navy-950); box-shadow: 0 10px 24px -8px rgba(201, 169, 110, .95); filter: brightness(1.05); }
.btn-outline { border-color: var(--gold-500); color: var(--gold-300); background: transparent; }
.btn-outline:hover { background: rgba(201, 169, 110, .12); color: var(--gold-300); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy-700); border-color: var(--gray-300); }
.btn-ghost:hover { border-color: var(--navy-600); color: var(--navy-900); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { color: #fff; filter: brightness(1.1); }
.btn-sm { padding: 7px 14px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 22, 40, .97); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(201, 169, 110, .18); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); margin-right: auto; }
.brand:hover { color: var(--white); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { white-space: nowrap; font-family: var(--font-head); font-weight: 700; font-size: 1.16rem; letter-spacing: .12em; line-height: 1.1; text-transform: uppercase; }
.brand-name small { display: block; margin-top: 2px; font-size: .56rem; font-weight: 600; letter-spacing: .2em; color: var(--gold-400); }
.main-nav { display: none; }
.main-nav a { white-space: nowrap; color: rgba(255, 255, 255, .82); text-decoration: none; font-size: .92rem; font-weight: 500; padding: 8px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--gold-500); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.dropdown { position: relative; }
.dropdown > summary { white-space: nowrap; list-style: none; cursor: pointer; color: rgba(255, 255, 255, .88); font-size: .82rem; font-weight: 600; padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px; display: flex; gap: 6px; align-items: center; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown > summary:hover { border-color: var(--gold-500); }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; z-index: 60; }
.dropdown-menu a, .dropdown-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--gray-100); color: var(--navy-900); }
.dropdown-menu a[aria-current="true"] { font-weight: 700; color: var(--gold-600); }
.header-auth { display: none; gap: 8px; align-items: center; }
.header-auth .btn { padding: 9px 16px; font-size: .85rem; }
.header-link { white-space: nowrap; color: rgba(255, 255, 255, .88); text-decoration: none; font-size: .88rem; font-weight: 500; }
.header-link:hover { color: var(--gold-300); }
.badge-dot { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold-500); color: var(--navy-950); font-size: .7rem; font-weight: 700; align-items: center; justify-content: center; }
.menu-toggle { background: none; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; width: 42px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--white); }
.mobile-nav { display: none; background: var(--navy-900); border-top: 1px solid rgba(255, 255, 255, .08); padding: 12px 16px 20px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; color: rgba(255, 255, 255, .9); text-decoration: none; padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.mobile-nav .btn { margin-top: 14px; }
.mobile-nav form button { color: rgba(255, 255, 255, .9); padding: 12px 4px; }
@media (min-width: 1240px) {
  .main-nav { display: flex; gap: 22px; }
  .header-auth { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav, .mobile-nav.open { display: none; }
}

/* ---------- Messages flash & alertes ---------- */
.flash-wrap { padding-top: 18px; }
.alert { border-radius: var(--radius); padding: 13px 16px; margin: 0 0 16px; font-size: .94rem; border: 1px solid transparent; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: #bfe3d2; }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: #f2c7c4; }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: #f1dca9; }
.alert-info { background: var(--info-bg); color: var(--navy-700); border-color: #cfdcf1; }
.alert strong { font-weight: 700; }

/* ---------- Héros ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% 10%, rgba(31, 65, 117, .9), transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-950)); color: var(--white); }
.hero-inner { position: relative; z-index: 2; display: grid; gap: 40px; padding: 64px 0 72px; align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.15fr .85fr; padding: 96px 0 104px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold-500); }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero-sub { color: rgba(255, 255, 255, .78); font-size: 1.06rem; max-width: 620px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-slogan { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-family: var(--font-head); font-style: italic; color: var(--gold-300); font-size: .98rem; max-width: 560px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art svg { width: min(460px, 100%); height: auto; }
.hero-grid { position: absolute; inset: 0; z-index: 1; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, #000 40%, transparent); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-sm { padding: 44px 0; }
.section-gray { background: var(--gray-50); }
.section-navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: rgba(255, 255, 255, .85); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--gray-500); font-size: 1.04rem; }
.section-navy .section-head p { color: rgba(255, 255, 255, .7); }
.gold-rule { width: 56px; height: 2px; background: var(--gold-500); margin: 0 auto 18px; border: 0; }
.page-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: rgba(255, 255, 255, .8); padding: 52px 0 46px; }
.page-hero h1 { color: var(--white); font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.page-hero p { max-width: 760px; margin: 0; }
.breadcrumb { font-size: .85rem; margin-bottom: 12px; }
.breadcrumb a { color: var(--gold-300); text-decoration: none; }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 8px; }
.card-muted { background: var(--gray-50); box-shadow: none; }
.commit-card { position: relative; padding-top: 30px; }
.commit-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: var(--gold-400); margin-bottom: 18px; }
.commit-card p { color: var(--gray-500); margin: 0; font-size: .95rem; }
.section-navy .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.section-navy .card p { color: rgba(255, 255, 255, .7); }

.sector-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 260px; color: var(--white); text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; isolation: isolate; }
.sector-card .art { position: absolute; inset: 0; z-index: -1; transition: transform .6s; }
.sector-card .art svg, .sector-card .art img { width: 100%; height: 100%; object-fit: cover; }
.sector-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(5, 13, 28, .92)); }
.sector-card:hover { color: var(--white); }
.sector-card:hover .art { transform: scale(1.05); }
.sector-card h3 { color: var(--white); margin-bottom: 6px; }
.sector-card p { margin: 0; font-size: .88rem; color: rgba(255, 255, 255, .78); }

.project-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; transition: box-shadow .25s, transform .25s; }
.project-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.project-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-800); }
.project-media svg, .project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-media .chip { position: absolute; top: 12px; left: 12px; }
.project-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-body h3 { margin: 0; }
.project-body h3 a { color: var(--navy-900); text-decoration: none; }
.project-body h3 a:hover { color: var(--gold-600); }
.project-summary { color: var(--gray-500); font-size: .93rem; margin: 0; }
.project-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: .86rem; margin: 4px 0; }
.project-facts dt { color: var(--gray-500); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.project-facts dd { margin: 0; font-weight: 600; color: var(--navy-900); }
.project-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--gray-100); color: var(--gray-700); line-height: 1.4; }
.chip-gold { background: rgba(201, 169, 110, .18); color: var(--gold-600); }
.chip-navy { background: var(--navy-800); color: var(--gold-300); }
.chip-success { background: var(--success-bg); color: var(--success); }
.chip-danger { background: var(--danger-bg); color: var(--danger); }
.chip-warning { background: var(--warning-bg); color: var(--warning); }
.chip-demo { background: #fff3cd; color: #7a5200; border: 1px dashed #c99a2e; }

.progress { height: 8px; background: var(--gray-100); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); border-radius: inherit; }
.progress-label { display: flex; justify-content: space-between; font-size: .8rem; color: var(--gray-500); margin-top: 6px; }

.risk-meter { display: inline-flex; gap: 3px; vertical-align: middle; }
.risk-meter i { width: 14px; height: 8px; border-radius: 2px; background: var(--gray-200); }
.risk-meter i.on { background: var(--navy-600); }
.risk-meter.r4 i.on, .risk-meter.r5 i.on { background: #b5651d; }

/* ---------- Étapes ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step-num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--gold-500); line-height: 1; margin-bottom: 12px; }

/* ---------- Simulateur ---------- */
.sim { display: grid; gap: 26px; }
@media (min-width: 900px) { .sim { grid-template-columns: 1fr 1fr; align-items: start; } }
.sim-panel { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); padding: 26px; box-shadow: var(--shadow-sm); }
.sim-result { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: var(--white); border-radius: var(--radius-lg); padding: 28px; }
.sim-result h3 { color: var(--gold-300); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.sim-big { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; color: var(--white); margin: 4px 0 18px; font-variant-numeric: tabular-nums; }
.sim-gain { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.sim-gain.pos { color: #8fd9b6; }
.sim-gain.neg { color: #f4a9a3; }
.sim-chart { margin-top: 22px; }
.sim-chart svg { width: 100%; height: 170px; }
.sim-disclaimer { font-size: .82rem; color: var(--gray-500); margin-top: 16px; }
.sim-result .sim-disclaimer { color: rgba(255, 255, 255, .6); }
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.preset-row button { border: 1px solid var(--gray-300); background: var(--white); border-radius: 999px; padding: 5px 12px; font-size: .82rem; cursor: pointer; font-weight: 600; color: var(--navy-700); }
.preset-row button.active, .preset-row button:hover { border-color: var(--gold-500); background: rgba(201, 169, 110, .14); }
.range-row { display: flex; gap: 14px; align-items: center; }
.range-row input[type=range] { flex: 1; accent-color: var(--gold-600); }
.range-row input[type=number] { width: 120px; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } .form-row-3 { grid-template-columns: repeat(3, 1fr); } }
label { display: block; font-weight: 600; font-size: .88rem; color: var(--navy-900); margin-bottom: 6px; }
.hint { font-size: .8rem; color: var(--gray-500); font-weight: 400; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=search], input[type=file], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid var(--gray-300); border-radius: 8px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
input[type=file] { padding: 9px; font-size: .9rem; background: var(--gray-50); }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201, 169, 110, .22); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--gray-700); }
.check input { margin-top: 4px; accent-color: var(--gold-600); width: 16px; height: 16px; flex: none; }
.auth-wrap { max-width: 520px; margin: 0 auto; padding: 48px 0 72px; }
.auth-wrap.wide { max-width: 720px; }
.auth-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
@media (max-width: 480px) { .auth-card { padding: 22px; } }
.auth-card h1 { font-size: 1.6rem; }
.auth-foot { margin-top: 18px; font-size: .9rem; color: var(--gray-500); text-align: center; }
.code-input { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
th { font-family: var(--font-head); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); background: var(--gray-50); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .84rem; }
.pos { color: var(--success); }
.neg { color: var(--danger); }
.muted { color: var(--gray-500); }
.small { font-size: .84rem; }
.empty { padding: 28px; text-align: center; color: var(--gray-500); }

/* ---------- Espace investisseur / admin ---------- */
.dash { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 64px; }
@media (min-width: 1000px) { .dash { grid-template-columns: 250px 1fr; } }
.side-nav { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 10px; align-self: start; }
@media (min-width: 1000px) { .side-nav { position: sticky; top: 92px; } }
.side-nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--gray-700); text-decoration: none; font-size: .92rem; font-weight: 500; }
.side-nav a:hover { background: var(--gray-50); color: var(--navy-900); }
.side-nav a[aria-current="page"] { background: var(--navy-900); color: var(--white); }
.side-nav a[aria-current="page"] .badge-dot { background: var(--gold-400); }
.side-nav .nav-title { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-500); padding: 12px 12px 4px; font-weight: 700; }
@media (max-width: 999px) {
  .side-nav { display: flex; overflow-x: auto; gap: 4px; padding: 6px; -webkit-overflow-scrolling: touch; }
  .side-nav a { white-space: nowrap; }
  .side-nav .nav-title { display: none; }
}
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 22px; }
.dash-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.kpis { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 26px; }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .kpis { grid-template-columns: repeat(3, 1fr); } .kpis.four { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 20px 22px; }
.kpi.dark { background: linear-gradient(150deg, var(--navy-900), var(--navy-700)); color: var(--white); border: 0; }
.kpi-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); font-weight: 600; }
.kpi.dark .kpi-label { color: var(--gold-300); }
.kpi-value { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; color: var(--navy-900); }
.kpi.dark .kpi-value { color: var(--white); }
.kpi-note { font-size: .8rem; color: var(--gray-500); margin-top: 6px; }
.kpi.dark .kpi-note { color: rgba(255, 255, 255, .65); }
.panel { margin-bottom: 28px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.2rem; margin: 0; }
.inline-form { display: inline; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kv { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 8px 16px; font-size: .92rem; margin: 0; }
.kv dt { color: var(--gray-500); }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a, .tabs button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--gray-300); background: var(--white); text-decoration: none; color: var(--gray-700); font-size: .85rem; font-weight: 600; cursor: pointer; }
.tabs a[aria-current="true"], .tabs button[aria-selected="true"] { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.lang-pane[hidden] { display: none; }
.admin-body { background: var(--gray-50); }
.admin-body .site-header { background: var(--navy-950); }
details.box { border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); padding: 12px 16px; margin-bottom: 10px; }
details.box > summary { cursor: pointer; font-weight: 600; color: var(--navy-800); }
details.box[open] > summary { margin-bottom: 12px; }
.qr { background: #fff; padding: 10px; border: 1px solid var(--gray-200); border-radius: var(--radius); width: max-content; }
.ref-box { font-family: ui-monospace, Consolas, monospace; font-size: 1.25rem; font-weight: 700; letter-spacing: .06em; background: var(--gray-50); border: 1px dashed var(--gold-500); border-radius: var(--radius); padding: 14px 18px; display: inline-block; color: var(--navy-900); word-break: break-all; }

/* ---------- Contenu éditorial ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.project-layout { display: grid; gap: 32px; padding: 40px 0 72px; }
@media (min-width: 1000px) { .project-layout { grid-template-columns: 1fr 380px; } }
.project-hero-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; background: var(--navy-800); margin-bottom: 28px; }
.project-hero-media svg, .project-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.sticky-card { position: sticky; top: 92px; }
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.doc-list li:last-child { border-bottom: 0; }
.news-card { overflow: hidden; padding: 0; }
.news-card .news-media { aspect-ratio: 16/9; background: var(--navy-800); }
.news-card .news-media img, .news-card .news-media svg { width: 100%; height: 100%; object-fit: cover; }
.news-card .news-body { padding: 20px; }
.risk-banner { border-left: 3px solid var(--gold-500); background: var(--gray-50); padding: 18px 20px; border-radius: 0 var(--radius) var(--radius) 0; font-size: .92rem; color: var(--gray-700); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .66); font-size: .9rem; padding-top: 60px; }
.footer-closing { text-align: center; max-width: 760px; margin: 0 auto 48px; font-family: var(--font-head); font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-style: italic; color: var(--gold-300); line-height: 1.5; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { color: var(--white); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); }
.footer-legal { padding: 24px 0 32px; font-size: .78rem; color: rgba(255, 255, 255, .5); display: grid; gap: 10px; }
.footer-legal strong { color: rgba(255, 255, 255, .75); }

/* ---------- Divers ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.error-page { padding-top: 100px; padding-bottom: 100px; text-align: center; }
.error-code { font-family: var(--font-head); font-size: 5rem; font-weight: 700; color: var(--gold-500); line-height: 1; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .side-nav, .btn { display: none !important; } }

/* ---------- Petits écrans ---------- */
@media (max-width: 480px) {
  .header-inner { gap: 8px; height: 64px; }
  .brand { gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: .92rem; letter-spacing: .1em; }
  .brand-name small { font-size: .46rem; letter-spacing: .16em; }
  .header-tools { gap: 5px; }
  .dropdown > summary { padding: 6px 7px; font-size: .75rem; }
  .menu-toggle { width: 38px; height: 34px; }
  .section { padding: 52px 0; }
  .card, .sim-panel, .sim-result { padding: 20px; }
}
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(201, 169, 110, .5); background: transparent; color: var(--gold-300); cursor: pointer; }
.icon-btn:hover { background: rgba(201, 169, 110, .14); }

.dash > * { min-width: 0; }

/* ---------- Étapes d'envoi e-mail ---------- */
.stages { display: flex; flex-wrap: wrap; gap: 4px; }
.stage { font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; background: var(--gray-100); color: var(--gray-500); }
.stage.st-ok { background: var(--success-bg); color: var(--success); }
.stage.st-ko { background: var(--danger-bg); color: var(--danger); }
.stage.st-wait { background: var(--warning-bg); color: var(--warning); }
.stage.st-unknown { background: var(--info-bg); color: var(--navy-600); }
