/* =========================================================================
   AXION Family Business — Espace client (MyAxion)
   Se charge après style.css (variables, polices, reset, boutons).
   Desktop ≥1200 : barre latérale complète · Tablette 768–1199 : rail d’icônes
   Mobile <768 : barre haute + navigation basse + tiroir
   ========================================================================= */

:root {
  --ec-sidebar: 270px;
  --ec-rail: 88px;
  --ec-bg: #f8f7f3;
  --ec-card: #ffffff;
  --ec-line: #e7e5df;
  --ec-soft: #f5f5f3;
  --ec-beige: #f4efe6;
  --ec-beige-2: #efe8db;
  --ec-navy: #1a2d4d;
  --ec-navy-2: #172946;
  --ec-blue: #3d5e89;
  --ec-gold: #c9a862;
  --ec-gold-dark: #9a7a35;
  --ec-green: #8bc086;
  --ec-green-dark: #3f7a3d;
  --ec-sky: #55aee0;
  --ec-red: #b4532a;
  --ec-text: #5b6373;
  --ec-ink: #18294a;
  --ec-shadow: 0 30px 50px -40px rgba(24, 41, 74, .35);
}

body.ec { background: var(--ec-bg); color: var(--ec-text); }
.ec .serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.02em; color: var(--ec-ink); }

/* ---------- Structure ---------- */
.ec-app { display: grid; grid-template-columns: var(--ec-sidebar) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--ec-navy) var(--ec-sidebar), transparent 0); }
.ec-body { min-width: 0; display: flex; flex-direction: column; }
.ec-main { flex: 1; width: 100%; max-width: 1170px; padding: 54px 58px 90px; margin: 0 auto 0 0; }

/* ---------- Barre latérale ---------- */
.ec-side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
  padding: 30px 22px 26px; background: var(--ec-navy); color: rgba(255,255,255,.72);
  scrollbar-width: none;
}
.ec-side::-webkit-scrollbar { display: none; }
.ec-side__logo img { width: 134px; }
.ec-side__logo .rail-logo { display: none; }
.ec-family {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 30px; padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 6px; background: rgba(255,255,255,.04); text-align: left; color: #fff;
}
.ec-family img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.ec-family small { display: block; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.ec-family strong { display: block; margin-top: 3px; font-size: 14px; font-weight: 600; }
.ec-family svg { width: 16px; height: 16px; margin-left: auto; }
.ec-side__label { margin: 34px 0 16px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.35); }
.ec-nav { display: flex; flex-direction: column; gap: 8px; }
.ec-nav a {
  position: relative; display: flex; align-items: center; gap: 14px; height: 43px; padding: 0 12px;
  border-radius: 4px; font-size: 13px; color: rgba(255,255,255,.7); transition: background .2s, color .2s;
}
.ec-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.ec-nav a svg { width: 18px; height: 18px; flex: none; }
.ec-nav a.is-active { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }
.ec-nav a.is-active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: #fff; border-radius: 2px; }
.ec-nav a .rail-label { display: none; }
.ec-side__bottom { margin-top: auto; padding-top: 30px; }
.ec-secure { display: flex; gap: 12px; padding: 14px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; background: rgba(255,255,255,.04); }
.ec-secure svg { flex: none; width: 20px; height: 20px; color: #8bc086; }
.ec-secure strong { display: block; font-size: 12px; color: #fff; }
.ec-secure span { display: block; margin-top: 4px; font-size: 9px; color: rgba(255,255,255,.5); }
.ec-side__links { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.ec-side__links a { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.55); }
.ec-side__links a:last-child { color: #fff; }
.ec-side__links a:hover { color: #fff; }
.ec-side__links svg { width: 18px; height: 18px; }
.ec-side__links .rail-label { display: none; }

/* ---------- Barre supérieure ---------- */
.ec-top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: flex-end; gap: 18px;
  height: 78px; padding: 0 58px; background: rgba(251,250,246,.94); border-bottom: 1px solid var(--ec-line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ec-top__burger, .ec-top__title { display: none; }
.ec-ref { display: flex; align-items: center; gap: 10px; padding-right: 22px; border-right: 1px solid var(--ec-line); }
.ec-ref img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.ec-ref small { display: block; font-size: 9px; color: var(--muted); }
.ec-ref strong { display: block; font-size: 11px; font-weight: 700; color: var(--ec-ink); }
.ec-ref a { margin-left: 8px; color: var(--ec-ink); }
.ec-ref a svg { width: 18px; height: 18px; }
.ec-icon-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 4px; border: 1px solid var(--ec-line); background: #fff; color: var(--ec-ink); }
.ec-icon-btn svg { width: 17px; height: 17px; }
.ec-badge { position: absolute; top: -5px; right: -4px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 999px; background: var(--ec-gold); color: var(--ec-ink); font-size: 8px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ec-user { position: relative; }
.ec-user__btn { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 6px; border-radius: 4px; border: 1px solid var(--ec-line); background: #fff; color: var(--ec-ink); }
.ec-user__btn svg { width: 14px; height: 14px; }
.ec-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--ec-blue); color: #fff; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ec-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ec-avatar .ph { display: none; }
.ec-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 220px; padding: 8px; border-radius: 8px; background: #fff;
  border: 1px solid var(--ec-line); box-shadow: 0 20px 40px -20px rgba(24,41,74,.35);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .2s;
}
.ec-user.is-open .ec-menu { opacity: 1; visibility: visible; transform: none; }
.ec-menu p { padding: 8px 10px 10px; border-bottom: 1px solid var(--ec-line); font-size: 12px; color: var(--muted); }
.ec-menu p strong { display: block; font-size: 14px; color: var(--ec-ink); }
.ec-menu a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 6px; font-size: 13px; color: var(--ec-ink); }
.ec-menu a:hover { background: var(--ec-soft); }
.ec-menu svg { width: 16px; height: 16px; color: var(--ec-blue); }

/* ---------- Navigation basse (mobile) ---------- */
.ec-bottom { display: none; }

/* ---------- Tiroir (mobile) ---------- */
.ec-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(13,24,44,.5); opacity: 0; visibility: hidden; transition: .25s; }
body.ec-drawer-open .ec-scrim { opacity: 1; visibility: visible; }
body.ec-drawer-open { overflow: hidden; }

/* ---------- En-tête de page ---------- */
.ec-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ec-blue); }
.ec-eyebrow::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: radial-gradient(circle, var(--ec-blue) 0 3px, #d2dae6 3.5px 100%); }
.ec-eyebrow--gold::before { width: 8px; height: 8px; background: var(--ec-gold); }
.ec-eyebrow--light { color: rgba(255,255,255,.7); }
.ec-eyebrow--light::before { background: radial-gradient(circle, rgba(255,255,255,.8) 0 3px, rgba(255,255,255,.15) 3.5px 100%); }
.ec-eyebrow--plain::before { display: none; }
.ec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.ec-head h1 { max-width: 790px; margin-top: 16px; font-family: var(--font-serif); font-weight: 500; font-size: 72px; line-height: .98; letter-spacing: -.035em; color: var(--ec-ink); }
.ec-head p { margin-top: 18px; font-size: 13px; line-height: 1.6; color: var(--ec-text); }
.ec-head__action { flex: none; }
.ec-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 46px; padding: 0 26px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--ec-ink); border: 1px solid var(--ec-line); background: #fff; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.ec-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -14px rgba(24,41,74,.5); }
.ec-btn svg { width: 16px; height: 16px; }
.ec-btn--blue { background: var(--ec-blue); border-color: var(--ec-blue); color: #fff; }
.ec-btn--gold { background: var(--ec-gold); border-color: var(--ec-gold); color: var(--ec-ink); }
.ec-btn--lg { height: 56px; padding: 0 30px; font-size: 14px; }
.ec-btn--block { width: 100%; }
.ec-link { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ec-blue); }
.ec-link svg { width: 14px; height: 14px; transition: transform .2s; }
.ec-link:hover svg { transform: translateX(3px); }

/* ---------- Cartes ---------- */
.ec-card { padding: 28px 28px; border-radius: 8px; background: var(--ec-card); border: 1px solid #ecebe6; box-shadow: var(--ec-shadow); }
.ec-card--beige { background: var(--ec-beige); border-color: #e7decd; }
.ec-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ec-card__eyebrow { font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ec-blue); }
.ec-card__title { margin-top: 10px; font-family: var(--font-serif); font-weight: 500; font-size: 32px; line-height: 1.12; letter-spacing: -.02em; color: var(--ec-ink); }
.ec-card__title--sans { font-family: var(--font-sans); font-weight: 500; letter-spacing: -.04em; }
.ec-section { margin-top: 24px; }
.ec-grid { display: grid; gap: 24px; }
.ec-grid--2 { grid-template-columns: 1fr 1fr; }
.ec-grid--main { grid-template-columns: minmax(0, 1fr) 230px; }
.ec-grid--main-310 { grid-template-columns: minmax(0, 1fr) 310px; }
.ec-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ec-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ec-icon-circle { flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; }
.ec-icon-circle svg { width: 17px; height: 17px; }
.ic-blue { background: #e8edf4; color: var(--ec-blue); }
.ic-green { background: #e6f1e5; color: var(--ec-green-dark); }
.ic-gold { background: #f4ecdc; color: var(--ec-gold-dark); }
.ic-sky { background: #e2f0f8; color: #2f88bd; }
.ic-grey { background: #e9eaec; color: var(--ec-ink); }
.ic-beige { background: var(--ec-beige); color: var(--ec-gold-dark); }
.t-green { color: var(--ec-green-dark); }
.t-red { color: var(--ec-red); }
.t-gold { color: var(--ec-gold); }

/* Barre de progression */
.ec-progress { height: 3px; border-radius: 3px; background: #eae4d6; overflow: hidden; }
.ec-progress i { display: block; height: 100%; border-radius: inherit; background: var(--ec-green); }
.ec-progress--gold i { background: var(--ec-gold); }
.ec-progress--light { background: rgba(255,255,255,.25); }

/* Donut */
.ec-donut { --s: 160px; position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 50%;
  background: conic-gradient(var(--ec-gold) 0 42%, var(--ec-green) 42% 73%, var(--ec-sky) 73% 91%, var(--ec-navy) 91% 100%); }
.ec-donut::before { content: ""; position: absolute; inset: 17%; border-radius: 50%; background: #fff; }
.ec-donut span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ec-donut b { font-family: var(--font-serif); font-weight: 500; font-size: 22px; color: var(--ec-ink); line-height: 1; }
.ec-donut small { margin-top: 4px; font-size: 8px; color: var(--muted); }
.ec-legend { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.ec-legend li { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--ec-text); }
.ec-legend li i { width: 7px; height: 7px; border-radius: 50%; }
.ec-legend li b { margin-left: auto; font-size: 11px; color: var(--ec-ink); }
.ec-sync { display: flex; align-items: center; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--ec-line); font-size: 11px; font-weight: 600; color: #5d6577; }
.ec-sync svg { width: 16px; height: 16px; color: var(--ec-green-dark); }

/* Pastilles / statuts */
.ec-tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 3px; font-size: 9px; font-weight: 600; background: var(--ec-beige); color: #6a5a3a; }
.ec-tag svg { width: 11px; height: 11px; }
.ec-tag--green { background: #e6f1e5; color: var(--ec-green-dark); }
.ec-tag--sky { background: #dff0fa; color: #2f88bd; }

/* Listes (fil, gestes, journal…) */
.ec-rows { display: flex; flex-direction: column; gap: 10px; }
.ec-row { display: flex; align-items: center; gap: 16px; min-height: 62px; padding: 12px 16px; border-radius: 6px; background: var(--ec-soft); border: 1px solid #ecebe8; transition: background .2s; }
a.ec-row:hover, button.ec-row:hover { background: #efeeea; }
.ec-row__main { flex: 1; min-width: 0; }
.ec-row__main strong { display: block; font-size: 12px; font-weight: 700; color: var(--ec-ink); }
.ec-row__main span { display: block; margin-top: 4px; font-size: 9px; color: var(--muted); }
.ec-row__meta { font-size: 9px; color: var(--muted); white-space: nowrap; }
.ec-row > svg { width: 14px; height: 14px; color: var(--ec-ink); flex: none; }

/* Onglets */
.ec-tabs { display: flex; gap: 34px; border-bottom: 1px solid var(--ec-line); }
.ec-tab { position: relative; padding: 0 2px 14px; font-size: 13px; color: var(--ec-text); display: inline-flex; align-items: center; gap: 8px; }
.ec-tab.is-active { color: var(--ec-ink); font-weight: 700; }
.ec-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ec-gold); }
.ec-tab .ec-badge { position: static; width: 16px; height: 16px; font-size: 9px; }
.ec-panel { display: none; }
.ec-panel.is-active { display: block; animation: ecFade .35s var(--ease); }
@keyframes ecFade { from { opacity: 0; transform: translateY(6px); } }

/* Puces de filtre */
.ec-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ec-chip { display: inline-flex; align-items: center; gap: 12px; height: 34px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--ec-line); background: #fff; font-size: 12px; font-weight: 500; color: var(--ec-ink); transition: .2s; }
.ec-chip b { width: 18px; height: 18px; border-radius: 50%; background: var(--ec-soft); font-size: 9px; display: flex; align-items: center; justify-content: center; }
.ec-chip.is-active { background: var(--ec-blue); border-color: var(--ec-blue); color: #fff; font-weight: 700; }
.ec-chip.is-active b { background: #fff; color: var(--ec-blue); }
.ec-chip--lg { height: 38px; padding: 0 20px; }

/* Recherche */
.ec-search { display: flex; gap: 10px; }
.ec-search label { flex: 1; display: flex; align-items: center; gap: 12px; height: 45px; padding: 0 18px; border-radius: 4px; border: 1px solid var(--ec-line); background: #fff; }
.ec-search label svg { width: 15px; height: 15px; color: var(--ec-ink); }
.ec-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 11px; color: var(--ec-ink); }
.ec-search select { height: 45px; padding: 0 18px 0 42px; border-radius: 4px; border: 1px solid var(--ec-line); font-size: 11px; font-weight: 700; color: var(--ec-ink); appearance: none; -webkit-appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318294a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z'/%3E%3C/svg%3E") 16px center/16px no-repeat; }
.ec-empty { display: none; padding: 30px; text-align: center; font-size: 13px; color: var(--muted); }
.ec-empty.is-visible { display: block; }

/* ---------- Vue d’ensemble ---------- */
.ov-step {
  position: relative; display: flex; flex-direction: column; min-height: 330px; padding: 36px 36px 30px; border-radius: 6px; color: #fff;
  background: radial-gradient(520px 300px at 70% 20%, #4a6c97 0%, rgba(74,108,151,0) 100%), linear-gradient(135deg, #42638e, #3a5a85);
  box-shadow: var(--ec-shadow);
}
.ov-step .ov-step__k { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.ov-step__body { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 22px; margin-top: 18px; }
.ov-step__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--ec-gold); color: var(--ec-ink); display: flex; align-items: center; justify-content: center; }
.ov-step__icon svg { width: 20px; height: 20px; }
.ov-step .ov-step__when { margin-top: 8px; font-size: 9px; color: var(--ec-gold); }
.ov-step h2 { margin-top: 10px; font-family: var(--font-serif); font-weight: 500; font-size: 40px; line-height: 1; letter-spacing: -.025em; color: #fff; }
.ov-step__body p { margin-top: 14px; font-size: 12px; color: rgba(255,255,255,.72); }
.ov-step__progress { margin-top: 26px; max-width: 560px; }
.ov-step__progress small { display: block; margin-top: 12px; font-size: 10px; color: rgba(255,255,255,.7); }
.ov-step .ec-link { margin-top: auto; align-self: flex-end; color: #fff; font-size: 12px; }
.ov-ref { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px 24px; }
.ov-ref__dot { display: inline-flex; align-items: center; gap: 6px; font-size: 8px; color: var(--ec-green-dark); }
.ov-ref__dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #5bb35a; }
.ov-ref img { width: 76px; height: 76px; margin-top: 14px; border-radius: 50%; object-fit: cover; }
.ov-ref h3 { margin-top: 12px; font-family: var(--font-serif); font-weight: 500; font-size: 24px; color: var(--ec-ink); }
.ov-ref p { margin-top: 4px; font-size: 8px; color: var(--muted); }
.ov-ref__btns { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.ov-ref__btns a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 28px; border-radius: 3px; background: var(--ec-beige); font-size: 8px; font-weight: 700; color: var(--ec-ink); transition: background .2s; }
.ov-ref__btns a:hover { background: var(--ec-beige-2); }
.ov-ref__btns svg { width: 12px; height: 12px; }
.ec-kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 8px; background: #fff; border: 1px solid #ecebe6; box-shadow: var(--ec-shadow); }
.ec-kpi { display: flex; gap: 14px; padding: 22px 20px; border-left: 1px solid var(--ec-line); }
.ec-kpi:first-child { border-left: 0; }
.ec-kpi small { display: block; font-size: 12px; color: var(--ec-text); }
.ec-kpi strong { display: block; margin-top: 2px; font-family: var(--font-serif); font-weight: 500; font-size: 24px; color: var(--ec-ink); line-height: 1.3; }
.ec-kpi > div > span { display: block; font-size: 9px; }
.ov-donut-row { display: flex; align-items: center; gap: 46px; margin-top: 30px; padding: 0 0 0 26px; }
.ov-reco .ov-reco__txt { margin-top: 18px; font-size: 19px; line-height: 1.45; color: #6b7384; }
.ov-reco dl { display: flex; gap: 40px; margin-top: 22px; padding: 18px 0; border-top: 1px solid var(--ec-line); border-bottom: 1px solid var(--ec-line); }
.ov-reco dt { font-size: 10px; color: var(--muted); }
.ov-reco dd { margin-top: 8px; font-size: 11px; font-weight: 700; color: var(--ec-ink); }
.ov-reco .ec-link { margin-top: 20px; }
.ov-course { display: flex; align-items: center; gap: 16px; padding: 22px 0; }
.ov-course + .ov-course { border-top: 1px solid var(--ec-line); }
.ov-course > div { flex: 1; min-width: 0; }
.ov-course small { display: block; font-size: 10px; color: var(--ec-text); }
.ov-course strong { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--ec-ink); }
.ov-course .ec-progress { margin-top: 12px; max-width: 370px; }
.ov-course .pct { display: block; margin-top: 12px; font-size: 9px; color: var(--muted); }
.ov-course > svg { width: 16px; height: 16px; color: var(--ec-ink); }
.ov-course .ec-icon-circle { width: 40px; height: 40px; }

/* ---------- Mon patrimoine ---------- */
.pt-kpi { display: flex; flex-direction: column; justify-content: center; min-height: 178px; }
.pt-kpi > small, .pt-kpi > div > small { font-size: 12px; color: var(--ec-text); }
.pt-kpi strong { margin-top: 10px; font-family: var(--font-serif); font-weight: 500; font-size: 32px; color: var(--ec-ink); line-height: 1.1; }
.pt-kpi span { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 10px; font-weight: 600; }
.pt-kpi span svg { width: 12px; height: 12px; }
.pt-kpi--donut { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
.pt-kpi--donut .ec-donut { --s: 110px; }
.pt-kpi--donut .ec-donut b { font-size: 12px; }
.pt-kpi--net { background: var(--ec-blue); border-color: var(--ec-blue); }
.pt-kpi--net > small { color: rgba(255,255,255,.75); }
.pt-kpi--net strong { color: #fff; }
.pt-kpi--net span { color: #9fd59b; }
.pt-grid-kpi { display: grid; grid-template-columns: 420fr 300fr 300fr; gap: 16px; }
.pt-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pt-periods { display: flex; gap: 6px; }
.pt-periods button { height: 26px; min-width: 32px; padding: 0 8px; border-radius: 3px; border: 1px solid var(--ec-line); background: #fff; font-size: 8px; color: var(--ec-text); }
.pt-periods button.is-active { background: var(--ec-blue); border-color: var(--ec-blue); color: #fff; }
.pt-chart { position: relative; margin-top: 18px; }
.pt-chart svg { width: 100%; height: auto; overflow: visible; }
.pt-chart .lbl { font-family: var(--font-sans); font-size: 7px; fill: var(--muted); }
.pt-note { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 14px; border-radius: 6px; background: var(--ec-soft); font-size: 8px; color: var(--muted); }
.pt-note svg { width: 14px; height: 14px; flex: none; }
.pt-agg { display: flex; flex-direction: column; justify-content: center; padding: 30px; }
.pt-agg > svg { width: 30px; height: 30px; color: var(--ec-blue); }
.pt-agg h3 { margin-top: 16px; font-family: var(--font-serif); font-weight: 500; font-size: 30px; line-height: 1; color: var(--ec-ink); }
.pt-agg p { margin-top: 18px; font-size: 10px; color: var(--ec-text); }
.pt-agg .ok { display: flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 11px; font-weight: 700; color: var(--ec-ink); }
.pt-agg .ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5bb35a; }
.pt-agg a { align-self: flex-start; margin-top: 22px; padding-bottom: 4px; border-bottom: 2px solid var(--ec-blue); font-size: 12px; font-weight: 700; color: var(--ec-blue); }
.pt-table .ec-row { min-height: 62px; }
.pt-table .c-name { flex: 1.6; font-size: 12px; font-weight: 700; color: var(--ec-ink); }
.pt-table .c-pct { flex: 1; font-size: 12px; color: var(--ec-ink); }
.pt-table .c-val { flex: 1; text-align: right; font-size: 9px; font-weight: 700; color: var(--ec-ink); }
.pt-table .c-var { flex: .6; text-align: right; font-size: 12px; font-weight: 700; }

/* ---------- Chemin de vie ---------- */
.cv-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 192px; padding: 40px 42px; border-radius: 6px; color: #fff; background: linear-gradient(135deg, #42638e, #3a5a85); box-shadow: var(--ec-shadow); }
.cv-hero .cv-hero__k { margin-top: 0;  font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--ec-gold); }
.cv-hero h2 { margin-top: 10px; font-family: var(--font-serif); font-weight: 500; font-size: 40px; line-height: 1.05; color: #fff; letter-spacing: -.02em; }
.cv-hero p { margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.7); }
.cv-ring { flex: none; width: 120px; height: 120px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cv-ring b { font-family: var(--font-serif); font-weight: 500; font-size: 28px; color: #fff; line-height: 1; }
.cv-ring b small { font-size: 9px; color: var(--ec-gold); }
.cv-ring span { margin-top: 8px; font-size: 7px; color: rgba(255,255,255,.75); }
.cv-timeline { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 60px; }
.cv-timeline::before { content: ""; position: absolute; left: 8%; right: 8%; top: 29px; height: 1px; background: #d9d6cd; }
.cv-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 6px; }
.cv-step__dot { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #f2f1ed; border: 1px solid #d9d6cd; color: var(--ec-ink); }
.cv-step__dot svg { width: 18px; height: 18px; }
.cv-step.is-done .cv-step__dot { background: var(--ec-green); border-color: var(--ec-green); color: #fff; }
.cv-step.is-now .cv-step__dot { background: var(--ec-gold); border-color: var(--ec-gold); box-shadow: 0 0 0 6px rgba(201,168,98,.25); }
.cv-step small { margin-top: 16px; font-size: 8px; color: var(--ec-text); }
.cv-step b { margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ec-blue); }
.cv-step span { margin-top: 2px; font-family: var(--font-serif); font-size: 19px; line-height: 1.08; color: var(--ec-ink); }
.cv-step em { margin-top: 12px; padding: 5px 8px; border-radius: 3px; background: var(--ec-navy); color: #fff; font-style: normal; font-size: 7px; }
.cv-gestes .ec-row { min-height: 68px; padding: 14px 20px; }
.cv-gestes .ec-icon-circle { width: 36px; height: 36px; }
.cv-gestes .done { background: var(--ec-green); color: #fff; }
.ec-quote { display: flex; flex-direction: column; justify-content: center; padding: 30px; }
.ec-quote > svg { width: 24px; height: 24px; color: var(--ec-gold); }
.ec-quote small { margin-top: 18px; font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ec-blue); }
.ec-quote blockquote { margin-top: 4px; font-family: var(--font-serif); font-style: italic; font-size: 26px; line-height: 1.3; color: var(--ec-ink); }
.ec-quote p { margin-top: 18px; font-size: 8px; color: var(--ec-text); }

/* ---------- Académie ---------- */
.ac-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-height: 380px; padding: 50px 48px; border-radius: 6px; color: #fff; isolation: isolate; box-shadow: var(--ec-shadow); }
.ac-hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.ac-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(61,94,137,.92) 0%, rgba(61,94,137,.78) 40%, rgba(61,94,137,.2) 75%, rgba(61,94,137,.1) 100%); }
.ac-play { width: 48px; height: 48px; border-radius: 50%; background: var(--ec-gold); color: var(--ec-ink); display: flex; align-items: center; justify-content: center; }
.ac-play svg { width: 20px; height: 20px; }
.ac-hero .ec-eyebrow { margin-top: 20px; color: rgba(255,255,255,.85); font-size: 8px; }
.ac-hero h2 { margin-top: 10px; font-family: var(--font-serif); font-weight: 500; font-size: 48px; line-height: 1.05; letter-spacing: -.03em; color: #fff; }
.ac-hero p { margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.8); }
.ac-hero__bar { display: flex; align-items: center; gap: 16px; max-width: 440px; margin-top: 22px; font-size: 9px; font-weight: 700; }
.ac-hero__bar .ec-progress { flex: 1; background: #fff; }
.ac-hero .ec-btn { align-self: flex-start; margin-top: 26px; }
.ac-course { display: flex; flex-direction: column; padding: 28px; }
.ac-course__cat { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ec-text); }
.ac-course__cat i { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-style: normal; font-size: 18px; }
.ac-course h3 { margin-top: 22px; font-family: var(--font-serif); font-weight: 500; font-size: 24px; line-height: 1.25; color: var(--ec-ink); }
.ac-course .dur { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ec-text); }
.ac-course .dur svg { width: 14px; height: 14px; }
.ac-course .ec-progress { margin-top: 16px; }
.ac-course .pct { margin-top: 16px; font-size: 12px; color: var(--ec-text); }
.ac-progress { display: flex; align-items: center; gap: 18px; padding: 24px 28px; }
.ac-progress .ec-icon-circle { width: 44px; height: 44px; }
.ac-progress small { display: block; font-size: 9px; color: var(--ec-text); }
.ac-progress strong { display: block; margin-top: 6px; font-size: 12px; color: var(--ec-ink); }
.ac-progress .cert { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--ec-green-dark); }
.ac-progress .cert svg { width: 14px; height: 14px; }
.ac-sim h3, .ac-kids h3 { margin-top: 18px; font-family: var(--font-serif); font-weight: 500; font-size: 24px; color: var(--ec-ink); }
.ac-sim p, .ac-kids p { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--ec-text); }
.ac-sim .ec-link, .ac-kids .ec-link { margin-top: 18px; }

/* ---------- Valeur créée ---------- */
.vc-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 292px; padding: 44px 42px; border-radius: 6px; color: #fff; background: radial-gradient(500px 300px at 85% 50%, #26426b, rgba(38,66,107,0) 70%), linear-gradient(135deg, #182b4b, #1f3a62); box-shadow: var(--ec-shadow); }
.vc-hero .ec-eyebrow { color: #fff; font-size: 11px; letter-spacing: .2em; }
.vc-hero .ec-eyebrow::before { width: 6px; height: 6px; background: var(--ec-gold); }
.vc-hero .vc-big { margin-top: 18px; font-family: var(--font-serif); font-weight: 500; font-size: 96px; line-height: .8; color: #fff; }
.vc-big small { margin-left: 4px; font-family: var(--font-sans); font-size: 18px; color: var(--ec-gold); }
.vc-hero h2 { margin-top: 18px; font-family: var(--font-serif); font-weight: 500; font-size: 44px; letter-spacing: -.03em; color: #fff; line-height: 1; }
.vc-hero p { margin-top: 18px; font-size: 12px; color: rgba(255,255,255,.75); }
.vc-rings { display: flex; gap: 18px; flex: none; }
.vc-ring { width: 124px; height: 124px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: 12px; color: #fff; }
.vc-ring b { font-family: var(--font-serif); font-weight: 500; font-size: 26px; color: var(--ec-gold); }
.vc-kpis .ec-kpi { flex-direction: column; gap: 0; padding: 30px 28px 36px; }
.vc-kpis .ec-kpi > svg { width: 22px; height: 22px; color: var(--ec-blue); }
.vc-kpis .ec-kpi strong { margin-top: 26px; font-size: 36px; }
.vc-kpis .ec-kpi b { display: block; margin-top: 14px; font-size: 12px; color: var(--ec-ink); }
.vc-kpis .ec-kpi span { margin-top: 12px; font-size: 9px; color: var(--muted); }
.vc-prog { position: relative; display: flex; flex-direction: column; gap: 40px; margin-top: 36px; padding-left: 4px; }
.vc-prog::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 1px; background: #dddbd5; }
.vc-prog li { position: relative; display: flex; gap: 16px; }
.vc-prog .dot { flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 7px; background: #f2f1ed; border: 1px solid #dddbd5; color: var(--ec-ink); }
.vc-prog .dot svg { width: 18px; height: 18px; }
.vc-prog .done .dot { background: #fff; border: 3px solid var(--ec-green); color: var(--ec-green); }
.vc-prog .now .dot { background: var(--ec-gold); border-color: var(--ec-gold); }
.vc-prog small { display: block; font-size: 7px; color: var(--ec-blue); }
.vc-prog strong { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--ec-ink); }
.vc-prog span { display: block; margin-top: 2px; max-width: 120px; font-size: 9px; color: var(--ec-text); }
.vc-journal .ec-row { min-height: 62px; }
.vc-journal .c-name { flex: 2.4; font-size: 12px; font-weight: 700; color: var(--ec-ink); }
.vc-journal .c-time { flex: .6; font-size: 8px; font-weight: 700; color: var(--ec-ink); }
.vc-journal .c-date { flex: .9; font-size: 8px; color: var(--muted); }
.vc-journal .ec-link { font-size: 9px; }

/* ---------- Recommandations ---------- */
.rc-principle { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 36px; padding: 50px 34px; border-radius: 6px; background: var(--ec-beige); border: 1px solid #e7decd; box-shadow: var(--ec-shadow); }
.rc-icons { display: flex; align-items: center; }
.rc-icons span { width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--ec-blue); display: flex; align-items: center; justify-content: center; }
.rc-icons span svg { width: 22px; height: 22px; }
.rc-icons i { width: 26px; height: 1px; background: #d8cfbe; }
.rc-principle h2 { margin-top: 10px; font-family: var(--font-serif); font-weight: 500; font-size: 34px; line-height: 1.05; letter-spacing: -.03em; color: var(--ec-ink); }
.rc-principle p { margin-top: 12px; max-width: 400px; font-size: 12px; line-height: 1.55; color: var(--ec-text); }
.rc-list { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.rc-item { border-radius: 6px; background: #fff; border: 1px solid #ecebe6; border-left: 3px solid var(--ec-gold); box-shadow: var(--ec-shadow); }
.rc-item--green { border-left-color: var(--ec-green); }
.rc-item--sky { border-left-color: var(--ec-sky); }
.rc-item__btn { display: grid; grid-template-columns: 46px minmax(0, 1fr) 24px; align-items: center; gap: 12px; width: 100%; padding: 16px 28px 18px 26px; text-align: left; }
.rc-item__num { font-family: var(--font-serif); font-size: 20px; color: #c8c5bd; }
.rc-item__tags { display: flex; align-items: center; gap: 10px; font-size: 7px; font-weight: 700; text-transform: uppercase; color: var(--ec-blue); }
.rc-item__tags .ec-tag { height: 18px; font-size: 7px; font-weight: 500; text-transform: none; }
.rc-item h3 { margin-top: 6px; font-family: var(--font-serif); font-weight: 500; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; color: var(--ec-ink); }
.rc-item__btn p { margin-top: 8px; font-size: 11px; color: var(--ec-text); }
.rc-item__chev { width: 16px; height: 16px; color: var(--ec-ink); transition: transform .3s var(--ease); }
.rc-item.is-open .rc-item__chev { transform: rotate(180deg); }
.rc-item__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.rc-item.is-open .rc-item__panel { grid-template-rows: 1fr; }
.rc-item__panel > div { overflow: hidden; }
.rc-detail { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; align-items: center; gap: 16px 22px; padding: 28px 34px 28px 30px; border-top: 1px solid var(--ec-line); }
.rc-detail > svg { width: 18px; height: 18px; color: var(--ec-gold); }
.rc-detail h4 { font-size: 12px; font-weight: 700; color: var(--ec-blue); }
.rc-detail p { margin-top: 6px; max-width: 400px; font-size: 10px; line-height: 1.5; color: var(--ec-text); }
.rc-validator { display: flex; align-items: center; gap: 10px; }
.rc-validator img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.rc-validator small { display: block; font-size: 7px; color: var(--muted); }
.rc-validator strong { display: block; font-size: 12px; color: var(--ec-ink); }
.rc-validator span { display: block; font-size: 6px; color: var(--muted); }
.rc-trace .ec-grid { margin-top: 26px; gap: 12px; }
.rc-trace__box { padding: 34px 20px 22px; border-radius: 6px; background: var(--ec-soft); border: 1px solid #ecebe8; }
.rc-trace__box svg { width: 20px; height: 20px; color: var(--ec-blue); }
.rc-trace__box strong { display: block; margin-top: 14px; font-size: 14px; color: var(--ec-ink); }
.rc-trace__box span { display: block; margin-top: 2px; font-size: 8px; color: var(--ec-text); }

/* ---------- Documents & échanges ---------- */
.dc-secure { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 12px; font-weight: 600; color: var(--ec-green-dark); }
.dc-secure svg { width: 22px; height: 22px; }
.dc-grid { display: grid; grid-template-columns: minmax(0, 742fr) minmax(0, 290fr); gap: 22px; align-items: start; margin-top: 30px; }
.dc-col { display: flex; flex-direction: column; gap: 14px; }
.dc-sign { display: flex; align-items: center; gap: 16px; padding: 22px 20px; border-radius: 6px; background: var(--ec-beige); border: 1px solid #e3d6b9; }
.dc-sign .ec-icon-circle { width: 42px; height: 42px; background: var(--ec-gold); color: var(--ec-ink); }
.dc-sign small { display: block; font-size: 8px; font-weight: 700; color: var(--ec-gold-dark); }
.dc-sign strong { display: block; margin-top: 4px; font-size: 14px; color: var(--ec-ink); }
.dc-sign div > span { display: block; margin-top: 4px; font-size: 9px; color: var(--ec-text); }
.dc-sign .ec-link { margin-left: auto; font-size: 12px; }
.dc-sign .ec-link svg { width: 18px; height: 18px; }
.dc-doc .ec-icon-circle { width: 34px; height: 34px; background: var(--ec-beige); color: var(--ec-blue); }
.dc-doc .ec-row__main strong { font-weight: 500; font-size: 12px; }
.dc-doc .ec-row__main span { font-size: 7px; }
.dc-actions { display: flex; align-items: center; gap: 14px; }
.dc-actions button { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 4px; color: var(--ec-ink); }
.dc-actions button:hover { background: #e8e7e3; }
.dc-actions button svg { width: 14px; height: 14px; }
.dc-actions .ec-row__meta { font-size: 7px; }
.dc-store { padding: 28px 30px 30px; border-radius: 6px; background: var(--ec-navy); color: #fff; box-shadow: var(--ec-shadow); }
.dc-store > svg { width: 24px; height: 24px; color: var(--ec-gold); }
.dc-store small { display: block; margin-top: 38px; font-size: 10px; color: rgba(255,255,255,.65); }
.dc-store strong { display: block; margin-top: 6px; font-family: var(--font-serif); font-weight: 500; font-size: 26px; }
.dc-store strong em { font-style: normal; font-family: var(--font-sans); font-size: 7px; color: rgba(255,255,255,.5); }
.dc-store .ec-progress { margin-top: 18px; background: rgba(255,255,255,.18); }
.dc-store p { margin-top: 30px; font-size: 10px; line-height: 1.6; color: rgba(255,255,255,.85); }
.dc-store a { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--ec-gold); }
.dc-video { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; align-items: center; }
.dc-video__thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; }
.dc-video__thumb img { width: 100%; height: 100%; object-fit: cover; }
.dc-video__thumb span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(24,41,74,.35); color: #fff; }
.dc-video__thumb svg { width: 28px; height: 28px; }
.dc-msg { display: flex; gap: 14px; }
.dc-msg img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.dc-msg__bubble { flex: 1; padding: 14px 16px; border-radius: 4px 14px 14px 14px; background: var(--ec-soft); font-size: 13px; line-height: 1.55; color: var(--ec-ink); }
.dc-msg__bubble small { display: block; margin-bottom: 4px; font-size: 10px; color: var(--muted); }
.dc-msg--me { flex-direction: row-reverse; }
.dc-msg--me .dc-msg__bubble { border-radius: 14px 4px 14px 14px; background: #e8edf4; }
.dc-compose { display: flex; gap: 10px; margin-top: 20px; }
.dc-compose input { flex: 1; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ec-line); font-size: 13px; outline: none; }
.dc-compose input:focus { border-color: var(--ec-blue); }

/* ---------- La Boussole ---------- */
.bs-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 34px; min-height: 342px; padding: 50px 48px; border-radius: 6px; color: #fff; background: linear-gradient(120deg, #172a4a 0%, #1d3459 55%, #213b63 100%); box-shadow: var(--ec-shadow); }
.bs-hero__wm { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); font-family: var(--font-sans); font-weight: 800; font-size: 210px; letter-spacing: -.04em; color: rgba(255,255,255,.035); pointer-events: none; }
.bs-compass { width: 116px; height: 116px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; color: var(--ec-gold); }
.bs-compass svg { width: 44px; height: 44px; }
.bs-hero small { font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ec-gold); }
.bs-hero h2 { margin-top: 14px; font-family: var(--font-serif); font-weight: 500; font-size: 52px; line-height: .95; letter-spacing: -.03em; color: #fff; }
.bs-hero p { margin-top: 18px; font-size: 12px; color: rgba(255,255,255,.72); }
.bs-hero__actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.bs-hero__actions .ec-btn { height: 46px; font-size: 12px; }
.bs-listen { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: #fff; }
.bs-listen svg { width: 22px; height: 22px; }
.bs-bar { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.bs-cards { margin-top: 24px; }
.bs-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.bs-card__img { height: 190px; }
.bs-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 18px; }
.bs-card__body small { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--ec-blue); }
.bs-card__body h3 { margin-top: 14px; font-family: var(--font-serif); font-weight: 500; font-size: 26px; line-height: 1.12; letter-spacing: -.02em; color: var(--ec-ink); }
.bs-card__body p { margin-top: 14px; font-size: 11px; line-height: 1.65; color: var(--ec-text); }
.bs-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--ec-line); }
.bs-card__body > .bs-card__foot { margin-top: 26px; }
.bs-card__foot span { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--ec-text); }
.bs-card__foot svg { width: 13px; height: 13px; }
.bs-card__foot button { color: var(--ec-ink); }
.bs-card__foot button svg { width: 20px; height: 20px; }
.bs-card__foot button.is-saved svg { fill: var(--ec-gold); color: var(--ec-gold); }
.bs-retain { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 532px); align-items: center; gap: 30px; }
.bs-retain h3 { margin-top: 10px; font-family: var(--font-serif); font-weight: 500; font-size: 34px; line-height: 1; letter-spacing: -.03em; color: var(--ec-ink); }
.bs-signals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bs-signals div { padding: 36px 20px 22px; border-radius: 4px; background: var(--ec-soft); border: 1px solid #ecebe8; }
.bs-signals small { font-size: 12px; color: var(--ec-text); }
.bs-signals strong { display: block; margin-top: 16px; font-size: 12px; color: var(--ec-ink); }
.bs-disclaimer { margin-top: 20px; text-align: center; font-size: 9px; color: var(--ec-text); }

/* ---------- Club partenaires ---------- */
.cl-hero { display: grid; grid-template-columns: minmax(0, 1fr) 356px; align-items: center; gap: 30px; padding: 38px 42px; border-radius: 6px; color: #fff; background: linear-gradient(135deg, #42638e, #3a5a85); box-shadow: var(--ec-shadow); }
.cl-hero__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--ec-gold); color: var(--ec-ink); display: flex; align-items: center; justify-content: center; }
.cl-hero__icon svg { width: 22px; height: 22px; }
.cl-hero .ec-eyebrow { margin-top: 34px; color: #fff; font-size: 11px; }
.cl-hero .ec-eyebrow::before { width: 6px; height: 6px; background: var(--ec-gold); }
.cl-hero h2 { margin-top: 14px; font-family: var(--font-serif); font-weight: 500; font-size: 44px; line-height: 1; letter-spacing: -.03em; color: #fff; }
.cl-hero p { margin-top: 24px; font-size: 12px; line-height: 1.7; color: rgba(255,255,255,.72); }
.cl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.cl-stats div { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 110px; padding: 16px; border-radius: 4px; background: rgba(255,255,255,.08); text-align: center; font-size: 12px; color: #fff; }
.cl-stats b { font-family: var(--font-serif); font-weight: 500; font-size: 30px; color: var(--ec-gold); line-height: 1.2; }
.cl-stats div:last-child { grid-column: 1 / -1; }
.cl-stats svg { width: 20px; height: 20px; color: #8bc086; margin-bottom: 8px; }
.cl-cards { margin-top: 22px; gap: 16px; }
.cl-card { display: flex; flex-direction: column; padding: 28px 28px 22px; border-radius: 8px 60px 8px 8px; background: #fff; border: 1px solid var(--ec-gold); box-shadow: var(--ec-shadow); transition: transform .25s var(--ease); }
.cl-card:hover { transform: translateY(-3px); }
.cl-card--navy { border-color: #3d5e89; } .cl-card--green { border-color: var(--ec-green); } .cl-card--sky { border-color: var(--ec-sky); }
.cl-card__top { display: flex; align-items: center; justify-content: space-between; }
.cl-card__ini { width: 46px; height: 46px; border-radius: 50%; background: var(--ec-beige); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 16px; letter-spacing: .05em; color: #435574; }
.cl-card__sel { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; color: var(--ec-green-dark); }
.cl-card__sel svg { width: 13px; height: 13px; }
.cl-card small { margin-top: 26px; font-size: 7px; font-weight: 700; text-transform: uppercase; color: var(--ec-blue); }
.cl-card h3 { margin-top: 6px; font-family: var(--font-serif); font-weight: 500; font-size: 30px; line-height: 1.05; letter-spacing: -.02em; color: var(--ec-ink); }
.cl-card p { margin-top: 8px; font-size: 12px; color: var(--ec-text); }
.cl-card .loc { display: flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 9px; font-weight: 600; color: var(--ec-text); }
.cl-card .loc svg { width: 11px; height: 11px; }
.cl-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ec-line); }
.cl-card__foot > svg { width: 18px; height: 18px; color: var(--ec-gold); }
.cl-trust { display: flex; align-items: center; gap: 22px; padding: 34px 30px; border-radius: 6px; background: var(--ec-beige); border: 1px solid #e7decd; }
.cl-trust > svg { width: 24px; height: 24px; color: var(--ec-green-dark); flex: none; }
.cl-trust small { font-size: 7px; font-weight: 700; text-transform: uppercase; color: var(--ec-blue); }
.cl-trust h3 { margin-top: 4px; font-family: var(--font-serif); font-weight: 500; font-size: 30px; letter-spacing: -.02em; color: var(--ec-ink); line-height: 1.1; }
.cl-trust p { margin-top: 6px; font-size: 10px; color: var(--ec-text); }
.cl-trust .ec-link { margin-left: auto; white-space: nowrap; }

/* ---------- Connexion ---------- */
.auth { display: grid; grid-template-columns: 778fr 662fr; min-height: 100vh; background: var(--cream); }
.auth__brand { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 96px 100px 52px; color: #fff; background: radial-gradient(600px 500px at 60% 10%, #24426b 0%, rgba(36,66,107,0) 70%), linear-gradient(160deg, #1d3459 0%, #16284a 60%, #13233f 100%); }
.auth__wm { position: absolute; left: -110px; top: -112px; font-weight: 800; font-size: 180px; letter-spacing: -.04em; color: rgba(255,255,255,.035); white-space: nowrap; pointer-events: none; }
.auth__logo { width: 222px; }
.auth__brand .ec-eyebrow { margin-top: 84px; color: rgba(255,255,255,.75); font-size: 11px; }
.auth__brand .ec-eyebrow::before { background: radial-gradient(circle, #4f6f9a 0 3px, rgba(255,255,255,.08) 3.5px 100%); }
.auth__brand h1 { margin-top: 30px; font-family: var(--font-serif); font-weight: 500; font-size: 80px; line-height: .9; letter-spacing: -.035em; color: #fff; }
.auth__brand h1 em { display: block; color: var(--ec-blue); font-style: italic; }
.auth__brand > p { margin-top: 40px; max-width: 500px; font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.72); }
.auth__protect { display: flex; align-items: center; gap: 18px; margin-top: auto; max-width: 576px; padding: 20px 24px; border-radius: 6px; border: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.12); }
.auth__protect svg { width: 22px; height: 22px; color: #8bc086; flex: none; }
.auth__protect strong { display: block; font-size: 16px; color: #fff; }
.auth__protect span { display: block; margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.55); }
.auth__panel { min-width: 0; display: flex; flex-direction: column; padding: 45px 94px 40px 94px; }
.auth__mtop { display: none; }
.auth__back { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; height: 34px; margin-left: -8px; padding: 0 16px; border-radius: 6px; background: #f0eee8; font-size: 11px; color: var(--ec-text); transition: background .2s; }
.auth__back:hover { background: #e8e5dc; }
.auth__back svg { width: 14px; height: 14px; }
.auth__lock { width: 62px; height: 62px; margin-top: 36px; border-radius: 50%; background: var(--ec-beige); color: var(--ec-ink); display: flex; align-items: center; justify-content: center; }
.auth__lock svg { width: 22px; height: 22px; }
.auth__panel .ec-eyebrow { margin-top: 36px; font-size: 11px; }
.auth__panel h2 { margin-top: 30px; font-family: var(--font-serif); font-weight: 500; font-size: 68px; line-height: .92; letter-spacing: -.04em; color: var(--ec-ink); }
.auth__inner > p { margin-top: 36px; font-size: 12px; color: var(--ec-text); }
.auth__inner > p b { color: var(--ec-ink); }
.auth__form { display: flex; flex-direction: column; margin-top: 38px; }
.auth__field { display: flex; flex-direction: column; gap: 10px; }
.auth__field + .auth__field { margin-top: 26px; }
.auth__field label { font-size: 12px; font-weight: 700; color: var(--ec-ink); }
.auth__input { position: relative; display: flex; align-items: center; }
.auth__input input { width: 100%; height: 54px; padding: 0 50px 0 18px; border-radius: 6px; border: 1px solid #dcdad4; background: #fff; font-size: 12px; color: var(--ec-ink); outline: none; box-shadow: 0 2px 6px -4px rgba(0,0,0,.15); transition: border-color .2s, box-shadow .2s; }
.auth__input input:focus { border-color: var(--ec-blue); box-shadow: 0 0 0 3px rgba(61,94,137,.15); }
.auth__eye { position: absolute; right: 16px; color: var(--ec-text); }
.auth__eye svg { width: 18px; height: 18px; }
.auth__opts { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; font-size: 10px; }
.auth__opts label { display: flex; align-items: center; gap: 10px; color: var(--ec-ink); cursor: pointer; }
.auth__opts input { width: 13px; height: 13px; accent-color: #1a73e8; }
.auth__opts a { font-weight: 700; color: var(--ec-blue); }
.auth__form .ec-btn { margin-top: 26px; height: 56px; font-size: 14px; }
.auth__form .ec-btn svg { width: 18px; height: 18px; }
.auth__code { position: relative; display: flex; align-items: center; height: 68px; padding: 0 18px; border-radius: 6px; border: 1px solid #dcdad4; background: #fff; }
.auth__code svg { width: 22px; height: 22px; color: var(--ec-blue); flex: none; }
.auth__code input { flex: 1; min-width: 0; height: 100%; padding-left: 16px; border: 0; outline: none; background: none; font-size: 24px; letter-spacing: .45em; font-variant-numeric: tabular-nums; color: var(--ec-ink); }
.auth__code:focus-within { border-color: var(--ec-blue); box-shadow: 0 0 0 3px rgba(61,94,137,.15); }
.auth__ok { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 6px 12px; border-radius: 3px; background: #e9f1e5; font-size: 10px; color: var(--ec-green-dark); }
.auth__ok svg { width: 16px; height: 16px; }
.auth__alt { margin-top: 18px; text-align: center; font-size: 10px; color: var(--ec-ink); }
.auth__alt:hover { text-decoration: underline; }
.auth__error { display: none; margin-top: 14px; font-size: 11px; color: var(--ec-red); }
.auth__error.is-visible { display: block; }
.auth__legal { margin-top: auto; padding-top: 50px; text-align: center; font-size: 8px; color: var(--ec-text); }
.auth__legal a { font-weight: 700; color: var(--ec-ink); }

/* =========================================================================
   TABLETTE — rail d’icônes (768–1199px)
   ========================================================================= */
@media (max-width: 1199px) {
  .ec-app { grid-template-columns: var(--ec-rail) minmax(0, 1fr); background: linear-gradient(90deg, var(--ec-navy) var(--ec-rail), transparent 0); }
  .ec-side { padding: 22px 10px 18px; align-items: center; }
  .ec-side__logo .full-logo { display: none; }
  .ec-side__logo .rail-logo { display: block; width: 40px; }
  .ec-family, .ec-side__label, .ec-secure { display: none; }
  .ec-nav { margin-top: 34px; width: 100%; gap: 6px; }
  .ec-nav a { flex-direction: column; justify-content: center; gap: 4px; height: 58px; padding: 0; text-align: center; border-radius: 8px; }
  .ec-nav a .full-label { display: none; }
  .ec-nav a .rail-label { display: block; font-size: 8px; }
  .ec-nav a.is-active::before { display: none; }
  .ec-nav a svg { width: 20px; height: 20px; }
  .ec-side__links { width: 100%; gap: 8px; }
  .ec-side__links a { flex-direction: column; gap: 4px; font-size: 8px; color: #fff; }
  .ec-side__links a .full-label { display: none; }
  .ec-side__links a .rail-label { display: block; }
  .ec-side__links .rail-only { display: flex; }
  .ec-top { height: 72px; padding: 0 36px; }
  .ec-ref { padding-right: 16px; }
  .ec-main { padding: 46px 36px 70px; }
  .ec-head { flex-wrap: wrap; align-items: flex-end; }
  .ec-head h1 { font-size: 56px; }
  .ec-grid--main, .ec-grid--main-310 { grid-template-columns: 1fr; }
  .ec-grid--3 { grid-template-columns: 1fr 1fr; }
  .ec-kpis { grid-template-columns: 1fr 1fr; gap: 16px; background: none; border: 0; box-shadow: none; }
  .ec-kpi { flex-direction: column; padding: 22px 20px; border: 1px solid #ecebe6; border-radius: 8px; background: #fff; box-shadow: var(--ec-shadow); }
  .ec-card__title--sans { font-family: var(--font-serif); letter-spacing: -.02em; }
  .ec-card__title { font-size: 26px; }
  /* Vue d’ensemble */
  .ov-step { min-height: 0; }
  .ov-step h2 { font-size: 32px; }
  .ov-step .ec-link { margin-top: 20px; }
  .ov-ref { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; gap: 0 16px; padding: 22px 24px; }
  .ov-ref__dot { width: 100%; }
  .ov-ref img { width: 60px; height: 60px; margin-top: 12px; }
  .ov-ref__id { margin-top: 12px; }
  .ov-ref h3 { margin-top: 0; }
  .ov-ref__btns { flex-direction: row; }
  .ov-ref__btns a { flex: 1; height: 36px; font-size: 11px; }
  .ov-donut-row { padding: 0; gap: 26px; }
  .ec-donut { --s: 130px; }
  .ov-reco .ov-reco__txt { font-size: 15px; }
  /* Patrimoine */
  .pt-grid-kpi { grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; }
  .pt-kpi strong { font-size: 26px; }
  .pt-kpi--donut .ec-donut { --s: 90px; }
  .pt-agg { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; }
  .pt-agg > svg { grid-column: 1 / -1; }
  .pt-agg .ok, .pt-agg a { grid-column: 2; }
  .pt-agg .ok { grid-row: 2; align-self: end; margin-top: 0; }
  .pt-agg a { grid-row: 3; }
  /* Chemin */
  .cv-timeline { grid-template-columns: repeat(4, 1fr); row-gap: 40px; }
  .cv-timeline::before { display: none; }
  /* Académie */
  .ac-hero h2 { font-size: 40px; }
  /* Valeur */
  .vc-hero { flex-wrap: wrap; }
  .vc-hero .vc-big { font-size: 76px; }
  .vc-hero h2 { font-size: 36px; }
  .vc-ring { width: 110px; height: 110px; }
  /* Recommandations */
  .rc-principle { grid-template-columns: 1fr auto; gap: 24px 30px; padding: 30px; }
  .rc-principle > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .rc-detail { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .rc-detail .rc-validator { grid-column: 2; }
  .rc-detail .ec-link { grid-column: 3; grid-row: 2; }
  /* Documents */
  .dc-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  /* Boussole */
  .bs-hero { grid-template-columns: 90px minmax(0, 1fr); padding: 40px 34px; }
  .bs-compass { width: 90px; height: 90px; }
  .bs-hero h2 { font-size: 40px; }
  .bs-retain { grid-template-columns: 1fr; }
  /* Club */
  .cl-hero { grid-template-columns: minmax(0, 1fr) 200px; }
  .cl-stats { grid-template-columns: 1fr; }
  .cl-stats div:last-child { grid-column: auto; }
  .cl-hero h2 { font-size: 36px; }
  /* Connexion */
  .auth { grid-template-columns: 540fr 484fr; }
  .auth__brand { padding: 70px 70px 50px; }
  .auth__logo { width: 180px; }
  .auth__brand .ec-eyebrow { margin-top: 140px; }
  .auth__brand .ec-eyebrow::before { width: 6px; height: 6px; background: var(--ec-gold); }
  .auth__brand h1 { font-size: 60px; }
  .auth__brand h1 em { color: var(--ec-gold); }
  .auth__panel { padding: 44px 60px 34px; }
  .auth__panel h2 { font-size: 56px; }
  .auth__panel .ec-eyebrow::before { width: 6px; height: 6px; background: var(--ec-gold); }
}
@media (min-width: 1200px) { .ec-side__links .rail-only { display: none; } }
@media (min-width: 768px) and (max-width: 1199px) { .ec-side__links .full-only { display: none; } }

/* =========================================================================
   MOBILE (<768px)
   ========================================================================= */
@media (max-width: 767px) {
  .ec-app { display: block; background: none; }
  .ec-side {
    position: fixed; z-index: 100; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); height: 100%; align-items: stretch; padding: 26px 20px 22px;
    transform: translateX(-100%); transition: transform .3s var(--ease);
  }
  body.ec-drawer-open .ec-side { transform: none; }
  .ec-side__logo .full-logo { display: block; }
  .ec-side__logo .rail-logo { display: none; }
  .ec-family, .ec-side__label, .ec-secure { display: flex; }
  .ec-side__label { display: block; }
  .ec-nav { margin-top: 0; }
  .ec-nav a { flex-direction: row; justify-content: flex-start; gap: 14px; height: 43px; padding: 0 12px; text-align: left; border-radius: 4px; }
  .ec-nav a .full-label { display: block; }
  .ec-nav a .rail-label { display: none; }
  .ec-nav a.is-active::before { display: block; }
  .ec-side__links a { flex-direction: row; gap: 10px; font-size: 14px; color: rgba(255,255,255,.55); }
  .ec-side__links a .full-label { display: block; }
  .ec-side__links a .rail-label, .ec-side__links .rail-only { display: none; }
  .ec-side__links .full-only { display: flex; }
  .ec-side__close { display: flex; }

  .ec-top { height: 60px; padding: 0 16px; justify-content: flex-start; gap: 10px; }
  .ec-top__burger { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; color: var(--ec-ink); margin-left: -6px; }
  .ec-top__burger svg { width: 22px; height: 22px; }
  .ec-top__title { display: block; flex: 1; min-width: 0; font-size: 18px; font-weight: 500; color: var(--ec-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ec-ref { display: none; }
  .ec-icon-btn { width: 36px; height: 36px; }
  .ec-user__btn { height: 36px; padding: 0 8px 0 4px; }
  .ec-avatar .initials { display: none; }
  .ec-avatar img.ph { display: block; }

  .ec-bottom {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--ec-navy);
  }
  .ec-bottom a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 52px; border-radius: 8px; font-size: 9px; color: rgba(255,255,255,.65); }
  .ec-bottom a svg { width: 20px; height: 20px; }
  .ec-bottom a.is-active { background: rgba(255,255,255,.12); color: #fff; font-weight: 700; }
  .ec-main { padding: 26px 16px 110px; }

  .ec-head { flex-direction: column; align-items: stretch; gap: 0; }
  .ec-head h1 { margin-top: 12px; font-size: 34px; line-height: 1.05; }
  .ec-head p { margin-top: 12px; font-size: 12px; }
  .ec-head__action { margin-top: 18px; }
  .ec-head__action .ec-btn { width: 100%; }
  .ec-eyebrow { font-size: 9px; }
  .ec-eyebrow::before { width: 8px; height: 8px; background: var(--ec-gold); }
  .ec-card { padding: 22px 18px; }
  .ec-card__title { font-size: 24px; }
  .ec-grid--2, .ec-grid--3, .ec-grid--4 { grid-template-columns: 1fr; }
  .ec-grid { gap: 14px; }
  .ec-section { margin-top: 14px; }
  .ec-kpis { gap: 12px; }
  .ec-kpi { padding: 18px 14px; }
  .ec-kpi strong { font-size: 22px; }
  .ec-tabs { gap: 0; justify-content: space-around; }
  .ec-tab { font-size: 11px; }
  .ec-search { flex-direction: column; }
  .ec-search select { width: 100%; }
  .ec-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .ec-chips::-webkit-scrollbar { display: none; }
  .ec-chip { flex: none; }

  /* Vue d’ensemble */
  .ov-step { padding: 22px 18px; }
  .ov-step__body { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .ov-step__icon { width: 36px; height: 36px; }
  .ov-step h2 { font-size: 24px; }
  .ov-step .ec-link { align-self: flex-end; }
  .ov-ref__btns a { height: 34px; }
  .ov-donut-row { flex-direction: column; align-items: stretch; }
  .ov-donut-row .ec-donut { align-self: center; }
  .ov-reco .ov-reco__txt { font-size: 14px; }

  /* Patrimoine */
  .pt-grid-kpi { grid-template-columns: 1fr; }
  .pt-kpi { min-height: 0; }
  .pt-chart-head { flex-direction: column; align-items: flex-start; }
  .pt-agg { display: flex; }
  .pt-table .c-pct, .pt-table .c-var { display: none; }
  .pt-table .c-val { font-size: 10px; }

  /* Chemin */
  .cv-hero { padding: 22px 18px; gap: 14px; }
  .cv-hero h2 { font-size: 24px; }
  .cv-hero p { font-size: 11px; }
  .cv-ring { width: 84px; height: 84px; }
  .cv-ring b { font-size: 22px; }
  .cv-timeline { grid-template-columns: 1fr 1fr; margin-top: 30px; row-gap: 30px; }
  .cv-step span { font-size: 16px; }
  .ec-quote blockquote { font-size: 22px; }

  /* Académie */
  .ac-hero { min-height: 0; padding: 26px 18px; }
  .ac-hero::before { background: linear-gradient(180deg, rgba(61,94,137,.7), rgba(61,94,137,.88)); }
  .ac-hero h2 { font-size: 26px; }
  .ac-hero .ec-btn { align-self: stretch; }
  .ac-progress { flex-wrap: wrap; }
  .ac-progress .cert { margin-left: 0; width: 100%; }

  /* Valeur */
  .vc-hero { padding: 24px 18px; flex-direction: column; align-items: stretch; }
  .vc-hero .vc-big { font-size: 60px; }
  .vc-hero h2 { font-size: 28px; }
  .vc-rings { justify-content: space-between; }
  .vc-ring { width: 100px; height: 100px; font-size: 10px; }
  .vc-ring b { font-size: 22px; }
  .vc-kpis { grid-template-columns: 1fr 1fr; }
  .vc-kpis .ec-kpi { padding: 20px 14px; }
  .vc-kpis .ec-kpi strong { font-size: 28px; margin-top: 14px; }
  .vc-journal .ec-row { flex-wrap: wrap; gap: 6px 12px; }
  .vc-journal .c-name { flex: 1 1 100%; }
  .vc-journal .c-time, .vc-journal .c-date { flex: none; }
  .vc-journal .ec-link { margin-left: auto; }

  /* Recommandations */
  .rc-principle { grid-template-columns: 1fr; padding: 24px 18px; }
  .rc-icons { justify-content: center; }
  .rc-principle > div:nth-child(2) { grid-row: auto; }
  .rc-principle h2 { font-size: 26px; }
  .rc-item__btn { grid-template-columns: 30px minmax(0, 1fr) 20px; padding: 14px 16px 16px; gap: 8px; }
  .rc-item h3 { font-size: 22px; }
  .rc-detail { grid-template-columns: 20px minmax(0, 1fr); padding: 20px 16px; }
  .rc-detail .rc-validator { grid-column: 1 / -1; }
  .rc-detail .ec-link { grid-column: 1 / -1; grid-row: auto; justify-self: end; }
  .rc-trace .ec-grid { grid-template-columns: 1fr 1fr; }

  /* Documents */
  .dc-grid { grid-template-columns: 1fr; }
  .dc-sign { flex-wrap: wrap; }
  .dc-sign .ec-link { margin-left: 58px; }
  .dc-actions .ec-tag, .dc-actions .ec-row__meta, .dc-actions .dl { display: none; }
  .dc-video { grid-template-columns: 110px minmax(0, 1fr); }

  /* Boussole */
  .bs-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 26px 18px; gap: 18px; min-height: 0; }
  .bs-compass { width: 72px; height: 72px; }
  .bs-compass svg { width: 30px; height: 30px; }
  .bs-hero h2 { font-size: 26px; }
  .bs-hero__actions { flex-direction: column; gap: 14px; }
  .bs-hero__actions .ec-btn { width: 100%; }
  .bs-bar .ec-chips { flex: 1; }
  .bs-bar .filter-btn { flex: none; background: var(--ec-navy); color: #fff; border-color: var(--ec-navy); }
  .bs-signals { grid-template-columns: 1fr; }
  .bs-retain h3 { font-size: 26px; }

  /* Club */
  .cl-hero { grid-template-columns: 1fr; padding: 24px 18px; }
  .cl-hero h2 { font-size: 28px; }
  .cl-stats { grid-template-columns: 1fr 1fr; }
  .cl-stats div:last-child { grid-column: 1 / -1; }
  .cl-trust { flex-wrap: wrap; padding: 22px 18px; gap: 14px; }
  .cl-trust > div { flex: 1; min-width: 0; }
  .cl-trust h3 { font-size: 22px; }
  .cl-trust .ec-link { margin: 0 auto; }

  /* Connexion */
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__code input { width: 100%; }
  .auth__brand { display: none; }
  .auth__mtop { margin: -26px -16px 28px; display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 16px; background: var(--ec-navy); }
  .auth__mtop img { width: 92px; }
  .auth__mtop .auth__back { margin: 0; background: rgba(255,255,255,.08); color: #fff; height: 30px; font-size: 10px; }
  .auth__panel { padding: 26px 16px 30px; }
  .auth__panel > .auth__back { display: none; }
  .auth__lock { margin-top: 0; width: 50px; height: 50px; }
  .auth__panel .ec-eyebrow { margin-top: 28px; }
  .auth__panel h2 { margin-top: 22px; font-size: 40px; }
  .auth__inner > p { margin-top: 18px; }
  .auth__form { margin-top: 26px; }
  .auth__code input { font-size: 20px; letter-spacing: .35em; }
}
.ec-side__close { display: none; position: absolute; top: 22px; right: 16px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; align-items: center; justify-content: center; }
.ec-side__close svg { width: 16px; height: 16px; }
@media (max-width: 767px) { .ec-side__close { display: flex; } }
.ec-chip svg { width: 14px; height: 14px; }

/* ---------- Notifications (menu déroulant) ---------- */
.ec-notif { position: relative; }
.ec-notif.is-open .ec-icon-btn { border-color: var(--ec-blue); color: var(--ec-blue); }
.ec-notif__panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: 360px; border-radius: 10px; background: #fff;
  border: 1px solid var(--ec-line); box-shadow: 0 24px 48px -20px rgba(24,41,74,.4);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.ec-notif.is-open .ec-notif__panel { opacity: 1; visibility: visible; transform: none; }
.ec-notif__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 14px; border-bottom: 1px solid var(--ec-line); }
.ec-notif__head strong { font-size: 14px; color: var(--ec-ink); }
.ec-notif__head button { font-size: 11px; font-weight: 700; color: var(--ec-blue); }
.ec-notif__head button:hover { text-decoration: underline; }
.ec-notif__list { max-height: 360px; overflow-y: auto; padding: 6px; }
.ec-notif__item { position: relative; display: flex; gap: 12px; padding: 12px 26px 12px 12px; border-radius: 8px; transition: background .2s; }
.ec-notif__item:hover { background: var(--ec-soft); }
.ec-notif__item .ec-icon-circle { width: 34px; height: 34px; }
.ec-notif__item .ec-icon-circle svg { width: 15px; height: 15px; }
.ec-notif__txt { min-width: 0; }
.ec-notif__txt strong { display: block; font-size: 12px; font-weight: 600; color: var(--ec-ink); }
.ec-notif__txt span { display: block; margin-top: 3px; font-size: 11px; line-height: 1.4; color: var(--ec-text); }
.ec-notif__txt small { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
.ec-notif__item.is-unread { background: #f7f9fc; }
.ec-notif__item.is-unread strong { font-weight: 700; }
.ec-notif__item.is-unread::after { content: ""; position: absolute; right: 12px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--ec-gold); }
.ec-notif__foot { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-top: 1px solid var(--ec-line); font-size: 12px; font-weight: 700; color: var(--ec-blue); }
.ec-notif__foot svg { width: 14px; height: 14px; }
@media (max-width: 767px) {
  .ec-notif { position: static; }
  .ec-notif__panel { position: fixed; left: 12px; right: 12px; top: 68px; width: auto; }
  .ec-notif__list { max-height: calc(100vh - 220px); }
}
