/* ==========================================================
   VARIANCE ERP — Identité financière
   Répartition : Bleu nuit 55 % · Bleu financier 21 %
   Vert émeraude 13 % · Or champagne 8 % · Gris bleuté 3 % · Blanc (fond)
   ========================================================== */

:root {
  --night: #142B45;     /* 55 % — titres, autorité */
  --fin: #276A91;       /* 21 % — sous-titres, expertise */
  --emerald: #21836E;   /* 13 % — avantages, résultats */
  --gold: #C5A15B;      /* 8 %  — chiffres, accents */
  --mist: #E9EFF3;      /* 3 %  — fonds de cadres */
  --white: #FFFFFF;     /* fond principal */

  --gold-ink: #8A6A2B;  /* or lisible sur fond clair */
  --night-2: #1C3857;   /* survol sur fond nuit */
  --line: #D3DCE5;

  /* Neutres dérivés du bleu nuit */
  --n-89: var(--line);
  --n-55: #6F8196;
  --n-34: #4A5D72;
  --n-21: #2A3F57;
  --n-13: var(--night);
  --n-8: var(--night);
  --paper: var(--white);

  /* Alias historiques → nouvelle palette */
  --f-1a: var(--mist); --f-1b: var(--white); --f-2: var(--gold); --f-3: var(--emerald);
  --f-5: var(--fin); --f-8: var(--night); --f-13: var(--night); --f-21: var(--fin);
  --f-34: var(--emerald); --f-55: var(--fin); --f-89: var(--emerald); --f-144: var(--gold);

  --s8: 8px; --s13: 13px; --s21: 21px; --s34: 34px; --s55: 55px; --s89: 89px;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

/* Jetons couleur */
.c-night, .f-8, .f-13 { --c: var(--night); --on: #fff; }
.c-fin, .f-5, .f-21, .f-55 { --c: var(--fin); --on: #fff; }
.c-emerald, .f-3, .f-34, .f-89 { --c: var(--emerald); --on: #fff; }
.c-gold, .f-2, .f-144 { --c: var(--gold); --on: var(--night); }
.c-mist, .f-1a { --c: var(--mist); --on: var(--night); }
.c-white, .f-1b { --c: var(--white); --on: var(--night); }

html { scroll-behavior: smooth; scroll-padding-top: 89px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--night);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1, h2, h3, h4, .display { font-family: var(--font-display); letter-spacing: -0.02em; }
h1, h2 { color: var(--night); }
.on-dark h1, .on-dark h2 { color: #fff; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--s21); }
@media (min-width: 768px) { .wrap { padding-inline: var(--s34); } }
.section { padding-block: var(--s55); }
@media (min-width: 1024px) { .section { padding-block: var(--s89); } }
.bg-mist { background: var(--mist); }

/* ---------- Bande de répartition ---------- */
.fib-strip { display: flex; height: 6px; width: 100%; }
.fib-strip span { flex: var(--n) 1 0; background: var(--c); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav-link {
  position: relative; font-size: 14px; font-weight: 500; color: var(--n-34);
  padding: 8px 13px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--night); background: var(--mist); }
.nav-link.active { color: var(--fin); }
.nav-link.active::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; background: var(--gold); border-radius: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 21px; border-radius: 10px; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  cursor: pointer; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--night); color: #fff; }
.btn-primary:hover { background: var(--fin); }
.btn-ghost { color: var(--night); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--night); }
.btn-light { background: #fff; color: var(--night); }
.btn-light:hover { background: var(--gold); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn [data-lucide] { width: 18px; height: 18px; }

/* ---------- Eyebrow (accent or) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fin);
}
.eyebrow .num-chip { height: 26px; min-width: 26px; font-size: 13px; border-radius: 6px; background: var(--gold) !important; color: var(--night) !important; }
.on-dark .eyebrow { color: var(--gold); }

.num-chip {
  display: inline-grid; place-items: center;
  min-width: 34px; height: 34px; padding-inline: 8px;
  background: var(--c); color: var(--on);
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  border-radius: 8px;
}

.h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; font-weight: 700; }
.lead { font-size: 17px; color: var(--n-34); max-width: 62ch; }
.on-dark .lead { color: rgba(255,255,255,.74); }

/* ---------- Hero ---------- */
.hero h1 { font-size: clamp(38px, 5.6vw, 62px); line-height: 1.06; font-weight: 700; }
.hero h1 em {
  font-style: normal; color: var(--fin);
  text-decoration: underline; text-decoration-color: var(--gold);
  text-decoration-thickness: .12em; text-underline-offset: .14em;
}
.erp-def { display: flex; gap: 10px; align-items: flex-start; max-width: 62ch; background: var(--mist); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; padding: 10px 14px; font-size: 14px; line-height: 1.5; color: var(--n-21); }
.erp-def > svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--fin); }
.erp-def b { color: var(--night); }
.stat dt { color: var(--gold-ink); }
.stat { border-left: 3px solid var(--gold); padding-left: 13px; }

.fib-board {
  display: grid; width: 100%;
  grid-template-columns: repeat(13, 1fr);
  grid-template-rows: repeat(8, 1fr);
  aspect-ratio: 13 / 8; gap: 5px;
}
.tile {
  position: relative; overflow: hidden;
  background: var(--c); color: var(--on);
  border-radius: 10px; padding: clamp(6px, 1.6vw, 21px);
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transform: scale(.94);
  animation: tileIn .6s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--d, 0s);
}
.tile.f-1b { border: 1px solid var(--line); }
@keyframes tileIn { to { opacity: 1; transform: none; } }
.tile .t-num { font-family: var(--font-display); font-weight: 700; line-height: 1; }
.tile.f-8 .t-num { color: var(--gold); }
.tile .t-label { font-weight: 600; line-height: 1.2; }
.tile .t-sub { opacity: .85; line-height: 1.35; }
.t-a { grid-area: 1 / 1 / 9 / 9; border-radius: 14px; }
.t-a .t-num { font-size: clamp(40px, 9vw, 110px); }
.t-a .t-label { font-size: clamp(16px, 2.6vw, 28px); }
.t-a .t-sub { font-size: clamp(11px, 1.3vw, 15px); margin-top: 4px; }
.t-b { grid-area: 1 / 9 / 6 / 14; }
.t-b .t-num { font-size: clamp(24px, 4.4vw, 52px); }
.t-b .t-label { font-size: clamp(11px, 1.6vw, 18px); }
.t-c { grid-area: 6 / 11 / 9 / 14; }
.t-c .t-num { font-size: clamp(18px, 3vw, 34px); }
.t-c .t-label { font-size: clamp(10px, 1.2vw, 14px); }
.t-d { grid-area: 7 / 9 / 9 / 11; }
.t-d .t-num { font-size: clamp(16px, 2.4vw, 26px); }
.t-e { grid-area: 6 / 9 / 7 / 10; padding: 0; align-items: center; justify-content: center; }
.t-f { grid-area: 6 / 10 / 7 / 11; padding: 0; align-items: center; justify-content: center; }
.t-e .t-num, .t-f .t-num { font-size: clamp(10px, 1.4vw, 16px); }
.fib-board .tile:nth-child(1) { --d: .05s; } .fib-board .tile:nth-child(2) { --d: .15s; }
.fib-board .tile:nth-child(3) { --d: .25s; } .fib-board .tile:nth-child(4) { --d: .35s; }
.fib-board .tile:nth-child(5) { --d: .45s; } .fib-board .tile:nth-child(6) { --d: .55s; }

/* ---------- Bandeau de confiance (avantages = émeraude) ---------- */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust-item { display: flex; align-items: center; gap: 13px; font-size: 14px; font-weight: 500; color: var(--n-21); }
.trust-item .ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--mist); color: var(--emerald); flex: none; }
.trust-item .ico [data-lucide] { width: 20px; height: 20px; }

/* ---------- Filtres & cartes modules ---------- */
.chip {
  font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--n-34);
  cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--night); color: var(--night); }
.chip[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.chip .count { opacity: .6; margin-left: 6px; font-weight: 500; }
.chip[aria-pressed="true"] .count { color: var(--gold); opacity: 1; }

.mod-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 21px; overflow: hidden;
  display: flex; flex-direction: column; gap: 13px;
  transition: border-color .2s, transform .2s;
}
.mod-card::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--c); }
.mod-card:hover { border-color: var(--c); transform: translateY(-3px); }
.mod-card h3 { font-size: 19px; line-height: 1.25; font-weight: 600; color: var(--fin); }
.mod-card p { font-size: 14.5px; color: var(--n-34); }
.mod-card .cat { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--n-55); }
.mod-card[hidden] { display: none; }
@media (min-width: 640px) { .mod-card.mod-wide { grid-column: span 2; } }

/* Schéma GAPI */
.gapi-diagram { margin: 4px 0 0; background: var(--mist); border-radius: 12px; padding: 13px; }
.gd-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gd-mgr { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; text-align: center; }
.gd-mgr b { display: block; font-size: 12px; font-weight: 700; color: var(--fin); }
.gd-objs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 6px; }
.gd-obj { font-size: 10.5px; font-weight: 600; padding: 2px 6px; border-radius: 6px; background: var(--emerald); color: #fff; white-space: nowrap; }
.gd-lines { display: block; width: 100%; height: 30px; }
.gd-cons { background: var(--night); color: #fff; border-radius: 10px; padding: 9px 10px; text-align: center; }
.gd-cons b { font-size: 13px; }
.gd-cons span { display: block; font-size: 11px; opacity: .75; margin-top: 2px; }
.gd-arrow { display: flex; justify-content: center; padding: 4px 0; color: var(--gold-ink); }
.gd-arrow [data-lucide] { width: 18px; height: 18px; }
.gd-liasse { background: var(--gold); color: var(--night); border-radius: 10px; padding: 9px 10px; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; font-weight: 700; font-size: 13px; }
.gd-liasse [data-lucide] { width: 16px; height: 16px; }
.gd-liasse small { font-size: 12px; font-weight: 600; opacity: .8; }
.gd-caption { font-size: 12px; color: var(--n-34); margin-top: 8px; text-align: center; }

/* Bouton « En savoir plus » et fenêtre d'informations */
.mod-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--emerald); color: var(--emerald); background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.mod-more svg { width: 15px; height: 15px; }
.mod-more:hover, .mod-more:focus-visible { background: var(--emerald); color: #fff; outline: none; }
.info-dialog { border: 0; padding: 0; border-radius: 16px; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); color: var(--night); }
.info-dialog::backdrop { background: rgba(20, 43, 69, .55); }
.info-dialog[open] { animation: infoIn .2s ease-out; }
@keyframes infoIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.info-in { padding: 24px; }
.info-head { display: flex; align-items: center; gap: 12px; }
.info-head h3 { flex: 1; font-size: 20px; font-weight: 700; line-height: 1.25; }
.info-x { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--night); background: var(--mist); cursor: pointer; }
.info-x:hover { background: #dbe4ea; }
.info-x svg { width: 18px; height: 18px; }
.info-intro { margin-top: 16px; font-size: 15px; line-height: 1.6; color: #2c3e50; }
.info-levels { margin-top: 16px; display: grid; gap: 10px; }
.info-level { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #dbe4ea; border-radius: 12px; padding: 12px 14px; }
.info-level b { display: block; font-size: 14.5px; color: var(--night); }
.info-level span:not(.info-lvl-n) { display: block; font-size: 13.5px; line-height: 1.5; color: #2c3e50; margin-top: 2px; }
.info-lvl-n { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--fin); color: #fff; font-weight: 700; font-size: 13px; }
.info-flow { margin-top: 18px; display: flex; align-items: stretch; gap: 8px; }
.info-step { flex: 1; background: var(--mist); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.info-step:nth-of-type(2) { background: var(--emerald); color: #fff; }
.info-step b { font-size: 14px; }
.info-step span { font-size: 12.5px; line-height: 1.4; opacity: .85; }
.info-arrow { align-self: center; width: 18px; height: 18px; flex: none; color: var(--fin); }
.info-dialog h4 { margin-top: 20px; font-size: 14px; font-weight: 700; color: var(--fin); text-transform: uppercase; letter-spacing: .04em; }
.info-list { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.info-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.4; }
.info-list svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--emerald); }
.info-benefit { margin-top: 18px; padding: 12px 14px; border-left: 3px solid var(--gold); background: #faf6ee; border-radius: 0 10px 10px 0; font-size: 14px; line-height: 1.5; }
.info-foot { margin-top: 20px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.info-calc { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.info-calc-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--fin); text-transform: uppercase; letter-spacing: .04em; }
.info-calc-h svg { width: 16px; height: 16px; color: var(--gold-ink); }
.info-calc-rule { margin-top: 8px; display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; font-weight: 500; color: var(--night); background: var(--mist); border-radius: 10px; padding: 10px 12px; }
.info-calc-rule svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--emerald); }
.info-calc-ref { margin-top: 6px; font-size: 13.5px; color: #2c3e50; }
.info-calc-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.info-calc-cell { background: var(--mist); border-radius: 10px; padding: 10px; text-align: center; }
.info-calc-cell span { display: block; font-size: 12.5px; font-weight: 600; color: var(--n-34); }
.info-calc-cell b { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 16px; color: var(--night); font-variant-numeric: tabular-nums; }
.info-calc-note { margin-top: 8px; font-size: 12px; color: var(--n-34); }
.mod-new { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--gold); color: var(--night); }
.info-compare { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-cmp { border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.info-cmp.is-e { background: var(--mist); }
.info-cmp.is-i { background: var(--night); color: #fff; }
.info-cmp b { font-family: var(--font-display); font-size: 17px; }
.info-cmp.is-i b { color: var(--gold); }
.info-cmp small { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.info-cmp span { font-size: 13.5px; line-height: 1.45; }
.info-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.info-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--mist); color: var(--fin); }
.info-tag svg { width: 14px; height: 14px; color: var(--gold-ink); }
.info-mixed { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.info-mixed b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--night); }
.info-mixed b svg { width: 16px; height: 16px; color: var(--emerald); }
.info-mixed p { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: #2c3e50; }
@media (max-width: 560px) { .info-compare { grid-template-columns: 1fr; } }
.trade-more [data-lucide], .trade-more svg { color: var(--emerald); }
.trade-more:hover { border-color: var(--emerald); }
@media (max-width: 560px) {
  .info-flow { flex-direction: column; }
  .info-arrow { transform: rotate(90deg); }
  .info-list { grid-template-columns: 1fr; }
  .info-calc-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Métiers ---------- */
.tab-btn {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  padding: 13px 16px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; color: var(--n-34); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.tab-btn .num-chip { height: 28px; min-width: 28px; font-size: 13px; }
.tab-btn:hover { background: #fff; }
.tab-btn[aria-selected="true"] { background: #fff; border-color: var(--c); color: var(--night); }
.tab-btn [data-lucide] { width: 18px; height: 18px; margin-left: auto; opacity: 0; transition: opacity .15s; }
.tab-btn[aria-selected="true"] [data-lucide] { opacity: 1; color: var(--gold-ink); }
@media (max-width: 1023px) {
  .tab-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-inline: calc(var(--s21) * -1); padding-inline: var(--s21); scrollbar-width: none; }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab-btn { width: auto; white-space: nowrap; background: #fff; border-color: var(--line); }
}
.tab-panel {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(21px, 4vw, 55px); min-height: 100%;
}
.tab-panel::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--c); }
.tab-panel h3 { color: var(--night); }
.tab-panel .big-num {
  position: absolute; right: 21px; bottom: -21px;
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(120px, 22vw, 233px); color: var(--gold); opacity: .16; pointer-events: none; user-select: none;
}
.tab-panel .ico-box { width: 55px; height: 55px; border-radius: 13px; background: var(--c); color: var(--on); display: grid; place-items: center; }
.tab-panel .ico-box [data-lucide] { width: 26px; height: 26px; }
.tab-panel ul li { display: flex; gap: 10px; font-size: 15px; color: var(--n-21); }
.tab-panel ul li [data-lucide] { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--emerald); }
.panel-in { animation: panelIn .35s ease both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Plateforme (fond bleu nuit) ---------- */
.dark-section { background: var(--night); color: #fff; }
.plat-card {
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 21px;
  background: rgba(255,255,255,.03); transition: border-color .2s, background .2s;
}
.plat-card:hover { border-color: var(--gold); background: rgba(255,255,255,.06); }
.plat-card .ico { width: 42px; height: 42px; border-radius: 10px; background: var(--c); color: var(--on); display: grid; place-items: center; margin-bottom: 21px; }
.plat-card .ico [data-lucide] { width: 21px; height: 21px; }
.plat-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.plat-card p { font-size: 14.5px; color: rgba(255,255,255,.7); }

/* ---------- Approche ---------- */
.app-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 21px 21px; position: relative; }
.app-card .num-chip { position: absolute; top: -17px; left: 21px; background: var(--gold); color: var(--night); }
.app-card h3 { font-size: 19px; font-weight: 600; margin: 8px 0; color: var(--fin); }
.app-card p { font-size: 14.5px; color: var(--n-34); }
.app-card-lg { display: flex; flex-direction: column; }
.app-card .num-chip.f-8, .app-card .num-chip.f-13 { background: var(--gold); color: var(--night); }
.split-bar { display: flex; gap: 4px; margin-top: 16px; border-radius: 10px; overflow: hidden; }
.split-bar span { display: flex; flex-direction: column; justify-content: center; padding: 10px 12px; min-width: 0; }
.split-bar b { font-family: var(--font-display); font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; }
.split-bar small { font-size: 12px; font-weight: 600; margin-top: 4px; line-height: 1.25; }
.sb-a { background: var(--night); color: #fff; }
.sb-b { background: var(--emerald); color: #fff; }
.feature { border-radius: 18px; padding: 24px; background: var(--c); color: var(--on); display: flex; flex-direction: column; }
.feature [data-lucide], .feature svg { color: var(--gold); }
.feature.c-gold [data-lucide] { color: var(--night); }
.feature .fx-ico { width: 28px; height: 28px; }
.fx-text { font-size: 15px; line-height: 1.6; margin-top: 8px; opacity: .92; }
.fx-step { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.14); }
.fx-more { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: #fff; color: var(--c); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.feature .fx-text { margin-bottom: 18px; }
.fx-more svg { width: 15px; height: 15px; color: currentColor !important; }
.fx-more:hover, .fx-more:focus-visible { background: var(--gold); color: var(--night); outline: none; }
/* Fenêtre commune : une couleur par étape */
.xi-steps { margin-top: 16px; display: flex; flex-direction: column; }
.xi-sec { border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 12px; padding: 14px 16px; background: #fff; scroll-margin-top: 12px; transition: background .2s; }
.xi-sec.c-fin { background: #EEF4F8; }
.xi-sec.c-night { background: #EDF0F4; }
.xi-sec.c-emerald { background: #EBF5F2; }
.xi-sec.is-focus { border-color: var(--c); outline: 2px solid var(--c); outline-offset: -1px; }
.xi-head { display: flex; align-items: center; gap: 10px; }
.xi-head b { font-family: var(--font-display); font-size: 17px; color: var(--c); line-height: 1.25; }
.xi-head svg { width: 18px; height: 18px; color: var(--c); flex: none; }
.xi-n { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--c); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.xi-p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: #2c3e50; }
.xi-h { margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--c); }
.xi-duo { margin-top: 10px; display: flex; flex-direction: column; }
.xi-duo-item { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.xi-duo-item svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--gold-ink); }
.xi-duo-item b { display: block; font-size: 14px; color: var(--night); }
.xi-duo-item span { font-size: 13.5px; line-height: 1.45; color: #2c3e50; }
.xi-plus { align-self: center; width: 24px; height: 24px; margin: -5px 0; position: relative; z-index: 1; display: grid; place-items: center; border-radius: 999px; background: var(--gold); color: var(--night); font-weight: 700; line-height: 1; }
.xi-flow { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.xi-flow li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--night); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.xi-fn { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--gold); color: var(--night); font-size: 11.5px; font-weight: 700; }
.xi-arrow { width: 16px; height: 16px; color: var(--c); flex: none; }
.xi-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.xi-tag { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--c); }
.xi-list { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.xi-list li { display: flex; gap: 7px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; }
.xi-list svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--c); }
.xi-link { display: flex; justify-content: center; padding: 4px 0; color: var(--gold-ink); }
.xi-link svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .xi-list { grid-template-columns: 1fr; } }
.fx-h { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; opacity: .85; }
.fx-h::before { content: ''; width: 14px; height: 2px; border-radius: 2px; background: var(--gold); flex: none; }
.fx-duo { margin-top: 16px; display: flex; flex-direction: column; align-items: stretch; }
.fx-duo-item { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.1); border-radius: 12px; padding: 12px 14px; }
.fx-duo-item svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.fx-duo-item b { display: block; font-size: 14.5px; line-height: 1.3; }
.fx-duo-item span { font-size: 13.5px; line-height: 1.45; opacity: .9; }
.fx-plus { align-self: center; width: 26px; height: 26px; margin: -6px 0; position: relative; z-index: 1; display: grid; place-items: center; border-radius: 999px; background: var(--gold); color: var(--night); font-weight: 700; font-size: 16px; line-height: 1; }
.fx-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.fx-tag { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }
.fx-flow { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.fx-flow li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; background: rgba(255,255,255,.1); border-radius: 10px; padding: 8px 12px; }
.fx-n { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--gold); color: var(--night); font-family: var(--font-display); font-size: 12.5px; font-weight: 700; }
.fx-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.fx-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.fx-list svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* ---------- Tarifs ---------- */
.price-block { border-top: 1px solid var(--line); padding-top: 34px; }
.price-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--gold); color: var(--night); }
.price-eyebrow svg { width: 14px; height: 14px; }
.price-card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--c); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.price-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--c); }
.price-badge svg { width: 16px; height: 16px; }
.price-card h4 { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--night); line-height: 1.25; }
.price-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; color: var(--n-34); }
.price-amount small { font-size: 14px; }
.price-amount b { font-family: var(--font-display); font-size: 34px; line-height: 1.1; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.price-amount b.price-lic { font-size: 20px; color: var(--emerald); }
.price-text { font-size: 15px; color: var(--n-34); }
.price-both { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; background: var(--mist); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; padding: 14px 18px; }
.price-both > svg { width: 20px; height: 20px; color: var(--fin); flex: none; }
.price-both p { flex: 1; min-width: 220px; font-size: 15px; font-weight: 500; color: var(--night); }

/* ---------- Charte graphique ---------- */
.swatch {
  display: flex; flex-direction: column; justify-content: space-between; gap: 21px;
  text-align: left; padding: 18px; min-height: 196px; border-radius: 14px;
  background: var(--c); color: var(--on); cursor: pointer; border: 1px solid transparent;
  transition: transform .15s; position: relative;
}
.swatch.c-white, .swatch.c-mist { border-color: var(--line); }
.swatch:hover { transform: translateY(-3px); }
.swatch .sw-num { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1; }
.swatch.c-night .sw-num { color: var(--gold); }
.swatch .sw-name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.swatch .sw-role { font-size: 13px; font-weight: 600; opacity: .9; margin-top: 2px; }
.swatch .sw-meaning { font-size: 13px; opacity: .78; margin-top: 2px; }
.swatch .sw-hex { font-size: 12px; opacity: .85; font-variant-numeric: tabular-nums; text-transform: uppercase; letter-spacing: .04em; }
.swatch .sw-copy { position: absolute; top: 15px; right: 15px; width: 16px; height: 16px; opacity: 0; transition: opacity .15s; }
.swatch:hover .sw-copy { opacity: .9; }

.dist-bar { display: flex; height: 55px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.dist-bar span { flex: var(--n) 1 0; background: var(--c); color: var(--on); display: flex; align-items: flex-end; padding: 6px 8px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 0; }
.dist-legend li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--n-21); }
.dist-legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); border: 1px solid var(--line); display: block; flex: none; }
.dist-legend b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--gold-ink); }

.space-bars { display: flex; align-items: flex-end; gap: 13px; }
.space-bars div { background: var(--fin); border-radius: 4px; width: 100%; }
.space-bars div:last-child { background: var(--night); }

/* ---------- Actualités ---------- */
.news-card {
  display: flex; flex-direction: column; gap: 13px; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 21px;
  transition: border-color .2s, transform .2s;
}
.news-card:hover { border-color: var(--c); transform: translateY(-3px); }
.news-card .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--n-34); }
.news-card .tag i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: block; }
.news-card h3 { font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--night); }
.news-card p { font-size: 14.5px; color: var(--n-34); flex: 1; }
.news-card .more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--fin); }
.news-card .more [data-lucide] { width: 16px; height: 16px; transition: transform .15s; }
.news-card:hover .more [data-lucide] { transform: translate(2px, -2px); }

/* ---------- Contact (fond bleu financier) ---------- */
.contact-section { background: var(--fin); color: #fff; }
.contact-line { display: flex; gap: 13px; align-items: flex-start; }
.contact-line .ico { width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,.14); color: var(--gold); display: grid; place-items: center; flex: none; }
.contact-line .ico [data-lucide] { width: 20px; height: 20px; }
.contact-line small { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; font-weight: 600; }
.contact-line a:hover { text-decoration: underline; text-decoration-color: var(--gold); }

.form-card { background: #fff; color: var(--night); border-radius: 18px; padding: clamp(21px, 4vw, 34px); border-top: 5px solid var(--gold); }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--n-21); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--night);
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--fin); outline-offset: 1px; border-color: var(--fin); }
.field .err { display: none; font-size: 12.5px; color: #B3263E; margin-top: 5px; font-weight: 500; }
.field.invalid input, .field.invalid textarea { border-color: #B3263E; }
.field.invalid .err { display: block; }

/* ---------- Support ---------- */
.btn-wa { background: #25D366; color: var(--night); }
.btn-wa:hover { background: #1EBE5A; }
.wa-card { background: var(--night); border-radius: 18px; padding: clamp(21px, 4vw, 34px); border-top: 5px solid #25D366; }
.wa-ico { width: 55px; height: 55px; border-radius: 14px; background: #25D366; color: var(--night); display: grid; place-items: center; flex: none; }
.sup-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 21px; }
.sup-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--fin); }
.sup-card p { font-size: 14px; color: var(--n-34); margin-top: 4px; }
.sup-card > a.btn { display: flex; }
.sup-card > a.btn-primary { color: #fff; }
.sup-card > a.btn:hover { text-decoration: none; }
.sup-card > a.btn-primary:hover { color: #fff; }
.sup-card > a:not(.btn) { display: block; margin-top: 10px; font-weight: 600; color: var(--night); }
.sup-card > a:hover { color: var(--fin); text-decoration: underline; text-decoration-color: var(--gold); }
.sup-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--c); color: var(--on); display: grid; place-items: center; margin-bottom: 13px; }
.sup-ico [data-lucide] { width: 20px; height: 20px; }

/* ---------- Transformation digitale ---------- */
.dt-index { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.14); }
.dt-index a { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.14); color: #fff; font-weight: 500; font-size: 15px; transition: color .15s, padding .15s; }
.dt-index a:hover { color: var(--gold); padding-left: 6px; }
.dt-index .num-chip { background: rgba(255,255,255,.1); color: var(--gold); height: 28px; min-width: 34px; font-size: 12px; }
.dt-index [data-lucide] { width: 16px; height: 16px; margin-left: auto; opacity: .6; flex: none; }

.dt-pillar {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 21px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(21px, 3vw, 34px);
  scroll-margin-top: 100px; transition: border-color .2s;
}
.dt-pillar::before { content: ''; position: absolute; left: 0; top: 21px; bottom: 21px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
.dt-pillar:hover { border-color: var(--c); }
.dt-pillar h3 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; color: var(--night); line-height: 1.25; }
.dt-pillar p { font-size: 15.5px; color: var(--n-34); margin-top: 8px; max-width: 70ch; }
.dt-side { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dt-num { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--gold-ink); letter-spacing: .06em; }
.dt-ico { width: 55px; height: 55px; border-radius: 14px; background: var(--c); color: var(--on); display: grid; place-items: center; }
.dt-ico [data-lucide] { width: 26px; height: 26px; }
.dt-related { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--n-55); margin-right: 4px; }
.dt-tag { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--mist); color: var(--fin); transition: background .15s, color .15s; }
.dt-tag:hover { background: var(--fin); color: #fff; }
.dt-read { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--fin); }
.dt-read:hover { color: var(--night); text-decoration: underline; text-decoration-color: var(--gold); }
.dt-read [data-lucide] { width: 16px; height: 16px; }
@media (min-width: 1024px) {
  .dt-pillar { grid-template-columns: auto 1fr auto; align-items: start; }
  .dt-read { grid-column: 3; grid-row: 1; white-space: nowrap; }
}
@media (max-width: 639px) {
  .dt-pillar { grid-template-columns: 1fr; }
  .dt-side { flex-direction: row; }
  .dt-read { grid-column: 1; }
}

.dt-step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 21px; position: relative; }
.dt-step .num-chip { background: var(--gold); color: var(--night); }
.dt-step-i { position: absolute; top: 21px; right: 21px; font-size: 12px; font-weight: 600; color: var(--n-55); font-variant-numeric: tabular-nums; }
.dt-step h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--fin); margin-top: 13px; }
.dt-step p { font-size: 14.5px; color: var(--n-34); margin-top: 6px; }

.dt-path { position: relative; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--c); border-radius: 18px; padding: clamp(21px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px; }
.dt-path h3 { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; color: var(--night); line-height: 1.2; margin-top: 4px; }
.dt-badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--c); }
.dt-path-text { font-size: 15.5px; color: var(--n-34); }
.dt-path ul { display: flex; flex-direction: column; gap: 10px; }
.dt-path li { display: flex; gap: 10px; font-size: 15px; color: var(--n-21); }
.dt-path li [data-lucide] { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--c); }
.dt-path-advice { margin-top: auto; display: flex; gap: 10px; background: var(--mist); border-radius: 12px; padding: 13px 16px; font-size: 14.5px; font-weight: 500; color: var(--night); }
.dt-path-advice [data-lucide] { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--gold-ink); }
.dt-conclusion { display: flex; gap: 16px; align-items: flex-start; background: var(--night); color: rgba(255,255,255,.85); border-radius: 14px; padding: 21px 24px; font-size: 15.5px; }

.dt-banner { display: flex; align-items: center; gap: 16px; background: var(--night); border-radius: 14px; padding: 18px 21px; transition: background .2s; }
.dt-banner:hover { background: var(--night-2); }

/* ---------- Pages secteurs ---------- */
.sec-facts { display: grid; gap: 13px; }
.sec-fact { border-left: 3px solid var(--gold); padding: 6px 0 6px 16px; }
.sec-fact b { display: block; font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; color: var(--gold); font-variant-numeric: tabular-nums; }
.sec-fact span { display: block; font-size: 14px; color: rgba(255,255,255,.75); margin-top: 4px; }
.sec-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 21px; }
.sec-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--fin); margin-top: 13px; line-height: 1.25; }
.sec-card p { font-size: 14.5px; color: var(--n-34); margin-top: 6px; }
.sec-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--c); color: var(--on); display: grid; place-items: center; flex: none; }
.sec-ico.c-mist { color: var(--fin); }
.sec-ico [data-lucide], .sec-ico svg { width: 20px; height: 20px; }
.sec-for { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 21px; }
.sec-for li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--n-21); padding: 6px 0; border-bottom: 1px solid var(--line); }
.sec-for li svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--emerald); }
.sec-swiss { background: var(--night); color: #fff; border-radius: 18px; padding: clamp(21px, 3vw, 34px); }
.sec-swiss p { color: rgba(255,255,255,.78); font-size: 15px; margin-top: 8px; }
.sec-swiss .cities { margin-top: 16px; font-size: 13.5px; color: var(--gold); line-height: 1.7; }
.sec-faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.sec-faq + .sec-faq { margin-top: 8px; }
.sec-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 13px; align-items: center; padding: 16px 18px; font-weight: 600; color: var(--night); }
.sec-faq summary::-webkit-details-marker { display: none; }
.sec-faq summary svg { width: 18px; height: 18px; flex: none; color: var(--fin); transition: transform .2s; }
.sec-faq[open] summary svg { transform: rotate(180deg); }
.sec-faq p { padding: 0 18px 16px; font-size: 15px; color: var(--n-34); }
.sec-other { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; transition: border-color .15s; }
.sec-other:hover { border-color: var(--c); }
.sec-other b { display: block; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--n-55); }
.sec-other span span, .sec-other > span:not(.sec-ico) > span { display: block; font-family: var(--font-display); font-weight: 600; color: var(--night); line-height: 1.3; margin-top: 2px; }
.sec-arrow { width: 18px; height: 18px; margin-left: auto; flex: none; color: var(--gold-ink); }
.trade-page [data-lucide], .trade-page svg { color: var(--fin); }

/* ---------- Plan du site (carte mentale) ---------- */
.wrap-wide { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--s21); }
.mm-section { overflow-x: auto; }
.mm { display: flex; align-items: center; justify-content: center; min-width: 1240px; padding: 8px 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.mm-left, .mm-right, .mm-group { display: flex; align-items: center; }
.mm-right { --c: var(--night); }
.mm-link { width: 22px; flex: none; border-top: 2px solid var(--c); }
.mm-tree { position: relative; display: flex; flex-direction: column; }
.mm-tree > li { position: relative; padding-block: 4px; }
.mm-tree.to-right > li { padding-left: 22px; }
.mm-tree.to-left > li { padding-right: 22px; }
.mm-tree > li::before { content: ''; position: absolute; top: 50%; width: 22px; border-top: 2px solid var(--c); }
.mm-tree > li::after { content: ''; position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--c); }
.mm-tree.to-right > li::before, .mm-tree.to-right > li::after { left: 0; }
.mm-tree.to-left > li::before, .mm-tree.to-left > li::after { right: 0; }
.mm-tree > li:first-child::after { top: 50%; }
.mm-tree > li:last-child::after { bottom: 50%; }
.mm-tree > li:only-child::after { display: none; }
.mm-groups > li { padding-block: 10px; }

.mm-center { flex: none; background: var(--night); color: #fff; border-radius: 16px; padding: 18px 22px; text-align: center; }
.mm-center b { display: block; font-family: var(--font-display); font-size: 22px; line-height: 1.1; }
.mm-center span { display: block; font-size: 12px; color: #C9D6E0; margin-top: 4px; }
.mm-branch { flex: none; width: 168px; border-radius: 12px; padding: 10px 12px; text-align: center; background: var(--c); color: #fff; }
.mm-branch b { display: block; font-size: 14.5px; line-height: 1.2; }
.mm-branch span { display: block; font-size: 11px; opacity: .82; margin-top: 2px; }
.mm-branch.b-gold { color: var(--night); }
.mm-branch.b-mist { background: var(--mist); color: var(--night); border: 1px solid #8BA3B5; }

.mm-item { display: block; width: 300px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 10px; padding: 8px 12px; transition: border-color .15s, transform .15s; }
a.mm-item:hover { border-color: var(--c); transform: translateX(2px); }
.mm-item b { display: block; font-family: var(--font-display); font-size: 14.5px; color: var(--night); line-height: 1.25; }
.mm-item > span { display: block; font-size: 12px; color: var(--n-34); line-height: 1.4; margin-top: 2px; }
.mm-modules { width: 340px; }
.mm-cat { margin-top: 8px; padding-left: 8px; border-left: 3px solid var(--cc); }
.mm-cat b { font-family: var(--font-body); font-size: 12px; color: var(--cc); }
.mm-cat span { display: block; font-size: 11.5px; color: var(--n-34); line-height: 1.45; }
.mm-cat em { font-style: normal; color: var(--gold-ink); }

@media screen and (max-width: 1099px) {
  .mm-section { overflow-x: visible; }
  .mm { min-width: 0; flex-direction: column; align-items: stretch; gap: 16px; }
  .mm-center { order: -1; }
  .mm-left, .mm-right, .mm-group { flex-direction: column; align-items: stretch; gap: 8px; }
  .mm-left .mm-branch { order: -1; }
  .mm-link, .mm-tree > li::before, .mm-tree > li::after { display: none; }
  .mm-tree.to-right > li, .mm-tree.to-left > li { padding: 0 0 6px 0; }
  .mm-groups { gap: 10px; }
  .mm-branch, .mm-item, .mm-modules { width: 100%; text-align: left; }
}

.print-only { display: none; }
@media print {
  .site-header, .site-footer, .no-print, .toast { display: none !important; }
  .print-only { display: flex; }
  body { background: #fff; }
  .mm-section { padding: 0 !important; overflow: visible; }
  .wrap-wide { max-width: none; padding: 0; }
  .mm-print-head { justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--gold); padding-bottom: 6px; margin-bottom: 10px; font-size: 12px; color: var(--n-34); }
  .mm-print-head b { font-family: var(--font-display); font-size: 18px; color: var(--night); }
  .mm { min-width: 0; }
  body.print-A4 .mm { zoom: .74; }
  body.print-A3 .mm { zoom: 1.05; }
  a.mm-item:hover { transform: none; }
}

/* ---------- Blog ---------- */
.blog-state { display: flex; align-items: center; gap: 12px; background: var(--mist); border-radius: 14px; padding: 18px 21px; font-size: 15px; color: var(--n-21); }
.blog-state svg { width: 20px; height: 20px; flex: none; color: var(--fin); }
.blog-state[hidden] { display: none; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.blog-card h3 { color: var(--night); }
.blog-article h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.12; font-weight: 700; margin-top: 12px; }
.tag-pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--gold); color: var(--night); }
.blog-meta { margin-top: 10px; font-size: 14px; color: var(--n-55); }
.blog-excerpt { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--n-21); border-left: 3px solid var(--gold); padding-left: 16px; }
.blog-content { margin-top: 26px; font-size: 16.5px; line-height: 1.75; color: var(--n-21); }
.blog-content p + p, .blog-content ul, .blog-content p + h2 { margin-top: 16px; }
.blog-content h2 { font-size: 22px; font-weight: 700; color: var(--fin); margin-top: 28px; }
.blog-content ul { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; list-style: disc; }
.blog-content ul li::marker { color: var(--emerald); }
.adm-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(21px, 3vw, 30px); }
.adm-ico { --c: var(--fin); width: 55px; height: 55px; border-radius: 14px; display: inline-grid; place-items: center; background: var(--c); color: #fff; }
.adm-ico svg { width: 26px; height: 26px; }
.adm-msg { font-size: 14px; color: #B3263E; background: #fbeef0; border-radius: 10px; padding: 10px 12px; }
.adm-msg.ok { color: var(--emerald); background: #EBF5F2; }
.adm-list { display: flex; flex-direction: column; gap: 8px; }
.adm-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.adm-item b { display: block; font-size: 14.5px; color: var(--night); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-item span { display: block; font-size: 12.5px; color: var(--n-55); margin-top: 2px; }
.adm-act { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--fin); background: var(--mist); cursor: pointer; }
.adm-act:hover { background: var(--fin); color: #fff; }
.adm-act.is-del { color: #B3263E; }
.adm-act.is-del:hover { background: #B3263E; color: #fff; }
.adm-act svg { width: 16px; height: 16px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night); color: rgba(255,255,255,.7); font-size: 14px; }
.site-footer a:hover { color: var(--gold); }

/* ---------- Langue ---------- */
.lang-wrap { position: relative; display: inline-flex; align-items: center; }
.lang-ico { position: absolute; left: 10px; width: 16px; height: 16px; color: var(--fin); pointer-events: none; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--night);
  padding: 9px 12px 9px 32px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
}
.lang-select:hover { border-color: var(--night); }

/* ---------- Divers ---------- */
.toast {
  position: fixed; left: 50%; bottom: 21px; transform: translate(-50%, 34px);
  background: var(--night); color: #fff; padding: 12px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; z-index: 80;
  transition: opacity .2s, transform .2s; display: flex; align-items: center; gap: 8px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast [data-lucide] { width: 16px; height: 16px; color: var(--gold); }

.reveal { opacity: 0; transform: translateY(21px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

.mobile-menu { display: none; }
.mobile-menu.open { display: block; }

:focus-visible { outline: 2px solid var(--fin); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .reveal, .panel-in { animation: none; opacity: 1; transform: none; transition: none; }
}
