/* =====================================================================
   NETWORK CG · Formations — Feuille de style commune
   Reprend la charte de la page d'accueil (index.html) :
   bleu #0066cc · marine #0b1e3f · or #F59E0B→#D97706 · Inter / Poppins
   ===================================================================== */
:root {
    --ng-blue: #0066cc;
    --ng-blue-dark: #005073;
    --ng-blue-2: #0088ce;
    --ng-blue-3: #00a0df;
    --ng-navy: #0b1e3f;
    --ng-navy-2: #12305f;
    --ng-gold: #F59E0B;
    --ng-gold-dark: #D97706;
    --ng-green: #059669;
    --ng-green-bg: #ecfdf5;
    --ng-red: #dc2626;
    --ng-red-bg: #fef2f2;
    --ng-amber-bg: #fffbeb;
    --ng-text: #1f2a3c;
    --ng-text-2: #4b5567;
    --ng-muted: #6b7487;
    --ng-border: #e9edf2;
    --ng-border-2: #d6dde6;
    --ng-bg: #f6f8fb;
    --ng-surface: #ffffff;
    --ng-tint: #f4f8fc;
    --ng-radius-sm: 8px;
    --ng-radius: 12px;
    --ng-radius-lg: 18px;
    --ng-shadow-sm: 0 1px 3px rgba(15, 32, 60, .06);
    --ng-shadow: 0 10px 30px rgba(15, 32, 60, .08);
    --ng-shadow-lg: 0 24px 60px rgba(15, 32, 60, .16);
    --ng-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ng-font-display: 'Poppins', 'Inter', system-ui, sans-serif;
}

/* ---------- Base ---------- */
.ng-page { font-family: var(--ng-font); color: var(--ng-text); background: var(--ng-bg); margin: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.ng-page *, .ng-page *::before, .ng-page *::after { box-sizing: border-box; }
:where(.ng-page) a { color: var(--ng-blue); }
/* Bouton orangé de l'en-tête du site : texte toujours blanc */
.nh .nh-cta, .nh .nh-cta:hover, .nh-drawer .nh-cta { color: #fff !important; }
.ng-page img { max-width: 100%; }
.ng-page section[id], .ng-page [data-anchor] { scroll-margin-top: 84px; }
.ng-wrap { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.ng-wrap-sm { max-width: 980px; margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 640px) { .ng-wrap, .ng-wrap-sm { padding: 0 1rem; } }
.ng-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Typographie ---------- */
.ng-eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ng-blue); }
.ng-h1 { font-family: var(--ng-font); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 1rem; }
.ng-h2 { font-family: var(--ng-font); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.2; letter-spacing: -.015em; color: var(--ng-navy); margin: .35rem 0 .75rem; position: relative; padding-bottom: .8rem; }
.ng-h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 3px; background: var(--ng-blue); }
.ng-center .ng-h2::after { left: 50%; transform: translateX(-50%); }
.ng-h3 { font-size: 1.1rem; font-weight: 700; color: var(--ng-navy); margin: 0 0 .4rem; line-height: 1.35; }
.ng-lead { font-size: 1.05rem; color: var(--ng-muted); max-width: 680px; margin: 0; }
.ng-center { text-align: center; }
.ng-center .ng-lead { margin: 0 auto; }
.ng-muted { color: var(--ng-muted); }
.ng-small { font-size: .85rem; }

/* ---------- Sections ---------- */
.ng-section { padding: 4.5rem 0; }
.ng-section-sm { padding: 3rem 0; }
.ng-section-white { background: var(--ng-surface); border-top: 1px solid var(--ng-border); border-bottom: 1px solid var(--ng-border); }
.ng-section-head { margin-bottom: 2.25rem; }
.ng-section-head.ng-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
@media (max-width: 640px) { .ng-section { padding: 3.25rem 0; } }

/* ---------- Boutons ---------- */
.ng-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.3rem; border-radius: var(--ng-radius-sm); border: 1px solid transparent; font: 600 .92rem/1.2 var(--ng-font); text-decoration: none !important; cursor: pointer; white-space: nowrap; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease; }
.ng-btn:focus-visible { outline: 2px solid var(--ng-blue); outline-offset: 2px; }
.ng-btn:disabled, .ng-btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.ng-btn-primary { background: var(--ng-blue); color: #fff !important; }
.ng-btn-primary:hover { background: #0052a3; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 102, 204, .25); }
.ng-btn-gold { background: linear-gradient(135deg, var(--ng-gold), var(--ng-gold-dark)); color: #fff !important; }
.ng-btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(217, 119, 6, .3); }
.ng-btn-outline { background: #fff; color: var(--ng-navy) !important; border-color: var(--ng-border-2); }
.ng-btn-outline:hover { border-color: var(--ng-blue); color: var(--ng-blue) !important; }
.ng-btn-ghost { background: transparent; color: var(--ng-text-2) !important; }
.ng-btn-ghost:hover { background: var(--ng-tint); color: var(--ng-blue) !important; }
.ng-btn-light { background: rgba(255, 255, 255, .12); color: #fff !important; border-color: rgba(255, 255, 255, .28); }
.ng-btn-light:hover { background: rgba(255, 255, 255, .2); }
.ng-btn-danger { background: var(--ng-red); color: #fff !important; }
.ng-btn-danger:hover { background: #b91c1c; }
.ng-btn-success { background: var(--ng-green); color: #fff !important; }
.ng-btn-success:hover { background: #047857; }
.ng-btn-lg { padding: .95rem 1.6rem; font-size: 1rem; border-radius: 10px; }
.ng-btn-sm { padding: .45rem .8rem; font-size: .82rem; border-radius: 7px; }
.ng-btn-block { width: 100%; }
.ng-btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 9px; }
.ng-spin { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: ng-spin .7s linear infinite; }
@keyframes ng-spin { to { transform: rotate(360deg); } }

/* ---------- Badges ---------- */
.ng-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .03em; line-height: 1.4; white-space: nowrap; }
.ng-badge-premium { background: linear-gradient(135deg, var(--ng-gold), var(--ng-gold-dark)); color: #fff; box-shadow: 0 2px 8px rgba(217, 119, 6, .25); }
.ng-badge-formation { background: #ede9fe; color: #5b21b6; }
.ng-badge-free { background: var(--ng-green-bg); color: #047857; }
.ng-badge-blue { background: #e8f1fb; color: var(--ng-blue); }
.ng-badge-gray { background: #eef1f5; color: var(--ng-text-2); }
.ng-badge-red { background: var(--ng-red-bg); color: var(--ng-red); }
.ng-badge-amber { background: #fef3c7; color: #92400e; }
.ng-badge-green { background: var(--ng-green-bg); color: #047857; }
.ng-badge-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: ng-blink 1.3s ease-in-out infinite; }
@keyframes ng-blink { 50% { opacity: .25; } }

/* ---------- Cartes ---------- */
.ng-card { background: var(--ng-surface); border: 1px solid var(--ng-border); border-radius: var(--ng-radius); box-shadow: var(--ng-shadow-sm); }
.ng-card-pad { padding: 1.5rem; }
.ng-card-hover { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.ng-card-hover:hover { transform: translateY(-3px); box-shadow: var(--ng-shadow); border-color: #c9dcf0; }
.ng-icon-tile { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; font-size: 1.25rem; color: #fff; background: linear-gradient(135deg, var(--ng-blue), var(--ng-blue-3)); flex: none; }
.ng-icon-soft { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 1.15rem; color: var(--ng-blue); background: #e8f1fb; flex: none; }

/* ---------- Grilles ---------- */
.ng-grid { display: grid; gap: 1.25rem; }
.ng-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ng-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ng-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .ng-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ng-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .ng-grid-2, .ng-grid-3, .ng-grid-4 { grid-template-columns: 1fr; } }

/* ---------- Formulaires ---------- */
.ng-field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.ng-label { font-size: .84rem; font-weight: 600; color: var(--ng-text); }
.ng-label .ng-req { color: var(--ng-red); }
.ng-input, .ng-select, .ng-textarea { width: 100%; padding: .72rem .9rem; border: 1px solid var(--ng-border-2); border-radius: var(--ng-radius-sm); background: #fff; color: var(--ng-text); font: 400 .93rem/1.4 var(--ng-font); transition: border-color .18s ease, box-shadow .18s ease; }
.ng-input:focus, .ng-select:focus, .ng-textarea:focus { outline: none; border-color: var(--ng-blue); box-shadow: 0 0 0 4px rgba(0, 102, 204, .12); }
.ng-textarea { resize: vertical; min-height: 90px; }
.ng-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7487' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.3rem; }
.ng-input-icon { position: relative; }
.ng-input-icon > i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--ng-muted); pointer-events: none; }
.ng-input-icon > .ng-input { padding-left: 2.5rem; }
.ng-input-icon > button { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ng-muted); padding: .35rem .5rem; cursor: pointer; border-radius: 6px; }
.ng-input-icon > button:hover { color: var(--ng-blue); }
.ng-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .ng-form-row { grid-template-columns: 1fr; } }
.ng-check { display: flex; align-items: flex-start; gap: .65rem; font-size: .88rem; color: var(--ng-text-2); }
.ng-check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--ng-blue); flex: none; }
.ng-switch { position: relative; display: inline-flex; width: 40px; height: 22px; flex: none; }
.ng-switch input { opacity: 0; width: 0; height: 0; }
.ng-switch span { position: absolute; inset: 0; border-radius: 22px; background: #cbd5e1; cursor: pointer; transition: background-color .2s ease; }
.ng-switch span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.ng-switch input:checked + span { background: var(--ng-blue); }
.ng-switch input:checked + span::before { transform: translateX(18px); }
.ng-switch input:focus-visible + span { outline: 2px solid var(--ng-blue); outline-offset: 2px; }
.ng-divider { display: flex; align-items: center; gap: .9rem; color: var(--ng-muted); font-size: .82rem; margin: 1.25rem 0; }
.ng-divider::before, .ng-divider::after { content: ''; flex: 1; height: 1px; background: var(--ng-border); }
.ng-google { display: flex; align-items: center; justify-content: center; gap: .65rem; width: 100%; padding: .75rem 1rem; border: 1px solid var(--ng-border-2); border-radius: var(--ng-radius-sm); background: #fff; font: 600 .92rem var(--ng-font); color: var(--ng-text); cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease; }
.ng-google:hover { border-color: #b8c4d4; box-shadow: var(--ng-shadow-sm); }
.ng-google svg { width: 18px; height: 18px; }

/* ---------- Alertes ---------- */
.ng-alert { display: flex; align-items: flex-start; gap: .7rem; padding: .85rem 1rem; border-radius: var(--ng-radius-sm); font-size: .9rem; line-height: 1.5; border: 1px solid; margin-bottom: 1rem; }
.ng-alert i { font-size: 1.05rem; margin-top: .05rem; flex: none; }
.ng-alert-error { background: var(--ng-red-bg); border-color: #fecaca; color: #991b1b; }
.ng-alert-success { background: var(--ng-green-bg); border-color: #a7f3d0; color: #065f46; }
.ng-alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.ng-alert-warn { background: var(--ng-amber-bg); border-color: #fde68a; color: #92400e; }

/* ---------- Héros (même esprit que la page d'accueil) ---------- */
.ng-hero { position: relative; color: #fff; overflow: hidden; background: linear-gradient(135deg, rgba(0, 51, 73, .92) 0%, rgba(11, 30, 63, .9) 55%, rgba(0, 102, 204, .78) 100%), url('/premium/assets/img/bienvenue2.jpg') center / cover no-repeat; }
.ng-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M40 0H0v40' fill='none' stroke='white' stroke-opacity='.06'/%3E%3C/svg%3E"); pointer-events: none; }
.ng-hero::after { content: ''; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 160, 223, .35), transparent 65%); pointer-events: none; }
.ng-hero-inner { position: relative; z-index: 1; padding-top: 5rem; padding-bottom: 4.5rem; }
.ng-hero .ng-eyebrow { color: #ffd166; }
.ng-hero .ng-lead { color: rgba(255, 255, 255, .86); font-size: 1.1rem; }
.ng-hero-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: .82rem; font-weight: 600; color: #fff; backdrop-filter: blur(4px); }
.ng-hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.ng-hero-stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.ng-hero-stats b { display: block; font-size: 1.9rem; font-weight: 800; color: #7fd3f7; line-height: 1; }
.ng-hero-stats span { display: block; font-size: .85rem; color: rgba(255, 255, 255, .75); margin-top: .4rem; }
@media (max-width: 640px) { .ng-hero-inner { padding-top: 3.5rem; padding-bottom: 3rem; } .ng-hero-stats { gap: 1.5rem; } .ng-hero-cta .ng-btn { flex: 1 1 100%; } }

/* ---------- Fenêtres modales ---------- */
.ng-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(11, 30, 63, .55); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility 0s linear .22s; }
.ng-modal.is-open { opacity: 1; visibility: visible; transition: opacity .22s ease; }
.ng-modal-box { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 2rem); overflow-y: auto; background: #fff; border-radius: var(--ng-radius-lg); box-shadow: var(--ng-shadow-lg); transform: translateY(14px) scale(.98); transition: transform .25s ease; }
.ng-modal.is-open .ng-modal-box { transform: none; }
.ng-modal-lg .ng-modal-box { max-width: 760px; }
.ng-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.5rem 1rem; border-bottom: 1px solid var(--ng-border); }
.ng-modal-head h3 { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--ng-navy); }
.ng-modal-head p { margin: .25rem 0 0; font-size: .87rem; color: var(--ng-muted); }
.ng-modal-body { padding: 1.4rem 1.5rem; }
.ng-modal-foot { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; padding: 1rem 1.5rem 1.4rem; border-top: 1px solid var(--ng-border); }
.ng-close { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ng-tint); color: var(--ng-muted); cursor: pointer; font-size: 1.05rem; transition: background-color .18s ease, color .18s ease; }
.ng-close:hover { background: #e2e8f0; color: var(--ng-navy); }
@media (max-width: 560px) { .ng-modal { align-items: flex-end; padding: 0; } .ng-modal-box { border-radius: 18px 18px 0 0; max-height: 92vh; } .ng-modal-foot .ng-btn { flex: 1; } }

/* ---------- Notifications ---------- */
.ng-toasts { position: fixed; z-index: 10100; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; max-width: min(380px, calc(100vw - 2rem)); }
.ng-toast { display: flex; align-items: flex-start; gap: .65rem; padding: .85rem 1rem; border-radius: 10px; background: var(--ng-navy); color: #fff; font-size: .9rem; box-shadow: var(--ng-shadow-lg); animation: ng-toast-in .25s ease; }
.ng-toast i { margin-top: .1rem; }
.ng-toast.is-success i { color: #34d399; }
.ng-toast.is-error i { color: #f87171; }
.ng-toast.is-info i { color: #7fd3f7; }
@keyframes ng-toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Place réservée à l'en-tête (évite tout saut au chargement) ---------- */
.ng-header-slot { height: 76px; background: #fff; border-bottom: 1px solid #e9edf2; }
@media (max-width: 1199px) { .ng-header-slot { height: 64px; } }
.nh { overflow-anchor: none; }

/* ---------- Encart compte dans le menu mobile ---------- */
.ng-drawer-account { margin: .75rem 0 .25rem; padding: .9rem 1rem; border: 1px solid #e9edf2; border-radius: 12px; background: #f6f8fb; }
.ng-drawer-who { display: flex; align-items: center; gap: .7rem; }
.ng-drawer-who b { display: block; font-size: .95rem; color: #0b1e3f; }
.ng-drawer-who small { display: block; font-size: .8rem; color: #6b7487; }
.ng-drawer-links { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: .75rem; }
.ng-drawer-links a, .ng-drawer-links button { border: 0; background: none; padding: 0; font: 600 .9rem 'Inter', sans-serif; color: #0066cc !important; text-decoration: none; cursor: pointer; }
.ng-drawer-links button { color: #dc2626 !important; }

/* ---------- Puce compte dans l'en-tête du site ---------- */
.ng-account { position: relative; display: inline-flex; }
.ng-account-btn { display: inline-flex; align-items: center; gap: .55rem; padding: .3rem .7rem .3rem .3rem; border: 1px solid var(--ng-border); border-radius: 999px; background: #fff; cursor: pointer; font: 600 .86rem var(--ng-font); color: var(--ng-text); transition: border-color .18s ease, box-shadow .18s ease; }
.ng-account-btn:hover, .ng-account.is-open .ng-account-btn { border-color: #b9cde3; box-shadow: var(--ng-shadow-sm); }
.ng-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: .8rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--ng-blue), var(--ng-blue-3)); overflow: hidden; }
.ng-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ng-avatar-lg { width: 52px; height: 52px; font-size: 1.1rem; }
.ng-account-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 270px; padding: .5rem; background: #fff; border: 1px solid var(--ng-border); border-radius: 14px; box-shadow: var(--ng-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; z-index: 1000; }
.ng-account.is-open .ng-account-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease; }
.ng-account-head { display: flex; align-items: center; gap: .7rem; padding: .7rem .7rem .85rem; border-bottom: 1px solid var(--ng-border); margin-bottom: .35rem; }
.ng-account-head b { display: block; font-size: .92rem; color: var(--ng-navy); line-height: 1.3; }
.ng-account-head small { display: block; font-size: .78rem; color: var(--ng-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.ng-account-menu a, .ng-account-menu button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .6rem .7rem; border: 0; border-radius: 8px; background: none; font: 500 .9rem var(--ng-font); color: var(--ng-text); text-decoration: none; text-align: left; cursor: pointer; }
.ng-account-menu a:hover, .ng-account-menu button:hover { background: var(--ng-tint); color: var(--ng-blue); }
.ng-account-menu i { width: 1.1rem; text-align: center; color: var(--ng-blue); }
.ng-account-menu .is-danger, .ng-account-menu .is-danger i { color: var(--ng-red); }
.ng-account-login { display: inline-flex; align-items: center; gap: .45rem; padding: .62rem 1rem; border-radius: 8px; border: 1px solid var(--ng-border-2); font: 600 .86rem var(--ng-font); color: var(--ng-navy) !important; text-decoration: none !important; white-space: nowrap; background: #fff; }
.ng-account-login:hover { border-color: var(--ng-blue); color: var(--ng-blue) !important; }
@media (max-width: 1199px) { .ng-account-mobile { display: grid; gap: .6rem; } }

/* ---------- Écran de contrôle d'accès (ressources Premium) ---------- */
html.ng-pending body { opacity: 0 !important; }
html.ng-locked, html.ng-locked body { overflow: hidden !important; }
html.ng-locked body > *:not(#ng-gate):not(.ng-toasts):not(script):not(style) { filter: blur(8px) saturate(.25); pointer-events: none !important; user-select: none !important; }
#ng-gate { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(17, 20, 26, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); font-family: var(--ng-font); overflow-y: auto; }
@keyframes ng-fade { from { opacity: 0; } }
@keyframes ng-gate-in { from { opacity: 0; transform: translateY(8px); } }
/* Carte sobre : blanc, gris et ardoise, sans dégradé */
.ng-gate-box { position: relative; width: 100%; max-width: 440px; margin: auto; padding: 1.75rem 1.9rem 1.6rem; background: #fff; border: 1px solid #e3e7ec; border-radius: 14px; box-shadow: 0 24px 60px rgba(10, 14, 20, .28); color: var(--ng-text); text-align: left; animation: ng-gate-in .25s ease-out; }
.ng-gate-brand { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #edf0f3; font: 600 .78rem var(--ng-font); letter-spacing: .04em; text-transform: uppercase; color: #6b7280; }
.ng-gate-brand img { width: 20px; height: 20px; margin-right: .45rem; vertical-align: -5px; }
.ng-gate-brand b { color: inherit; font-weight: 700; }
.ng-gate-head { display: flex; align-items: flex-start; gap: .9rem; }
.ng-gate-icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: #f3f5f7; border: 1px solid #e3e7ec; color: #141c29; font-size: 1.1rem; }
.ng-gate-head h2 { margin: 0 0 .2rem; font: 700 1.25rem/1.3 var(--ng-font); letter-spacing: -.01em; color: #141c29; }
.ng-gate-head p { margin: 0; font-size: .86rem; line-height: 1.45; color: #6b7280; }
.ng-gate-body { margin-top: 1.15rem; }
.ng-gate-body > p { margin: 0 0 1.1rem; font-size: .92rem; line-height: 1.6; color: #3f4754; }
.ng-gate-body > p small { color: #6b7280; }
.ng-gate-list { list-style: none; margin: 0 0 1.4rem; padding: .9rem 1rem; display: grid; gap: .5rem; background: #f7f8fa; border: 1px solid #edf0f3; border-radius: 10px; }
.ng-gate-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .87rem; line-height: 1.5; color: #3f4754; }
.ng-gate-list i { flex: none; margin-top: .1rem; color: #141c29; }
.ng-gate-actions { display: grid; gap: .55rem; }
.ng-gate-box .ng-gate-actions .ng-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 46px; padding: .7rem 1rem; border-radius: 9px; font: 600 .92rem var(--ng-font); text-decoration: none; box-shadow: none; transform: none; transition: background-color .15s, border-color .15s, color .15s; }
.ng-gate-box .ng-gate-actions .ng-btn-primary, .ng-gate-box .ng-gate-actions .ng-btn-gold { background: #141c29; border: 1px solid #141c29; color: #fff !important; }
.ng-gate-box .ng-gate-actions .ng-btn-primary:hover, .ng-gate-box .ng-gate-actions .ng-btn-gold:hover { background: #2a3444; border-color: #2a3444; }
.ng-gate-box .ng-gate-actions .ng-btn-outline { background: #fff; border: 1px solid #d5dbe3; color: #141c29 !important; }
.ng-gate-box .ng-gate-actions .ng-btn-outline:hover { background: #f5f7f9; border-color: #b9c2ce; }
.ng-gate-box .ng-btn:focus-visible { outline: 2px solid #141c29; outline-offset: 2px; }
.ng-gate-back { display: block; text-align: center; margin-top: 1.1rem; font-size: .84rem; color: #6b7280 !important; text-decoration: none !important; }
.ng-gate-back:hover { color: #141c29 !important; text-decoration: underline !important; text-underline-offset: 3px; }
.ng-gate-back { background: none; border: 0; cursor: pointer; width: 100%; font-family: inherit; }
/* Même carte dans une fenêtre (bibliothèque) : voile et bouton de fermeture */
.ng-modal.is-gate { background: rgba(17, 20, 26, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ng-modal.is-gate .ng-gate-box { max-height: calc(100vh - 2rem); overflow-y: auto; transform: translateY(10px); transition: transform .25s ease; animation: none; }
.ng-modal.is-gate.is-open .ng-gate-box { transform: none; }
.ng-gate-x { position: absolute; top: 1.05rem; right: 1.05rem; width: 2rem; height: 2rem; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #6b7280; font-size: .95rem; cursor: pointer; }
.ng-gate-x:hover { background: #f3f5f7; color: #141c29; }
.ng-gate-box .ng-gate-brand:has(+ .ng-gate-head) { padding-right: 2.2rem; }
@media (max-width: 560px) { .ng-modal.is-gate { align-items: center; padding: 1rem; } }
@media (max-width: 480px) { .ng-gate-box { padding: 1.4rem 1.25rem 1.3rem; } .ng-gate-head h2 { font-size: 1.12rem; } }

/* ---------- Barre membre sur les pages de contenu ---------- */
.ng-ribbon { position: fixed; z-index: 2147482000; left: 50%; bottom: 1rem; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .55rem .45rem .9rem; border-radius: 999px; background: rgba(11, 30, 63, .94); color: #fff; font: 500 .8rem var(--ng-font); box-shadow: var(--ng-shadow-lg); backdrop-filter: blur(6px); }
.ng-ribbon a { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff !important; text-decoration: none !important; font-weight: 600; }
.ng-ribbon a:hover { background: rgba(255, 255, 255, .22); }
.ng-ribbon button { border: 0; background: none; color: rgba(255, 255, 255, .6); cursor: pointer; padding: .2rem .35rem; font-size: .9rem; }
.ng-ribbon button:hover { color: #fff; }
@media print { #ng-gate, .ng-ribbon { display: none !important; } }

/* ---------- États vides & squelettes ---------- */
.ng-empty { text-align: center; padding: 2.5rem 1rem; color: var(--ng-muted); }
.ng-empty i { display: block; font-size: 2rem; color: #b6c2d2; margin-bottom: .6rem; }
.ng-skel { background: linear-gradient(90deg, #eef2f7 25%, #f7f9fc 37%, #eef2f7 63%); background-size: 400% 100%; animation: ng-skel 1.3s ease infinite; border-radius: 8px; }
@keyframes ng-skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Réduction des animations ---------- */
@media (prefers-reduced-motion: reduce) { .ng-page *, #ng-gate * { animation: none !important; transition: none !important; } }
