/* ============================================================================
   EASY ONE ERP — Page de connexion (design premium v2)
   Reproduction fidèle de la maquette officielle : orbite circulaire,
   emblème, champs à labels, bouton or. Thème sombre, 100% responsive.
   ========================================================================== */

:root {
    /* Marque */
    --gold-1: #f7cd4c;
    --gold-2: #f0a81e;
    --gold-3: #e1880b;
    --blue-1: #3f8bff;
    --blue-2: #2563eb;
    --blue-3: #1b3da8;
    --cyan: #2dd4bf;

    /* Couleurs modules */
    --c-restaurant: #f5a623;
    --c-immobilier: #3b82f6;
    --c-formation: #9b6bff;
    --c-ecole: #f0801f;
    --c-quincaillerie: #2dd4bf;
    --c-construction: #36c46b;
    --c-soro: #ec4899;

    /* Fond */
    --bg-0: #03060f;
    --bg-1: #060c1c;
    --bg-2: #0a1430;

    /* Textes */
    --text-1: #f2f6ff;
    --text-2: #c4cfe6;
    --text-3: #8a98ba;
    --text-muted: #64729a;

    /* Surfaces */
    --card-bg: linear-gradient(168deg, rgba(20, 32, 64, .62), rgba(9, 16, 38, .72));
    --card-border: rgba(120, 152, 224, .22);
    --field-bg: rgba(10, 18, 40, .66);
    --field-border: rgba(120, 152, 224, .18);
    --field-focus: rgba(95, 140, 255, .85);
    --chip-bg: rgba(13, 23, 50, .6);
    --chip-border: rgba(120, 152, 224, .16);

    --divider: rgba(130, 162, 228, .22);
    --glow-blue: rgba(47, 110, 255, .55);

    --radius-card: 30px;
    --radius-field: 16px;
    --radius-pill: 999px;

    --ease: cubic-bezier(.22, 1, .36, 1);
    --t-fast: .18s;
    --t-med: .4s;

    --font-sans: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: 'Montserrat', var(--font-sans);
    --font-script: 'Great Vibes', cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; min-height: 100%; }

body {
    font-family: var(--font-sans);
    color: var(--text-1);
    background: var(--bg-0);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--gold-2); color: #1a1300; }

/* ----------------------------- Décor de fond ----------------------------- */
.bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(70% 60% at 78% 18%, rgba(36, 86, 190, .28), transparent 60%),
        radial-gradient(80% 70% at 20% 88%, rgba(26, 62, 150, .30), transparent 62%),
        linear-gradient(160deg, var(--bg-1) 0%, var(--bg-0) 60%, #02040b 100%);
}

/* nuage de points (particules) */
.bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(120, 170, 255, .16) 1px, transparent 1.6px);
    background-size: 26px 26px;
    mask-image: radial-gradient(60% 60% at 80% 40%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(60% 60% at 80% 40%, #000 0%, transparent 70%);
    opacity: .7;
}

/* silhouette de ville (SVG) en bas */
.bg-city {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 46vh;
    max-height: 520px;
    z-index: -1;
    background: bottom left / cover no-repeat;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='520' viewBox='0 0 1600 520'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%230b1a3a'/%3E%3Cstop offset='1' stop-color='%23030814'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='url(%23b)'%3E%3Crect x='20' y='220' width='46' height='300'/%3E%3Crect x='74' y='160' width='34' height='360'/%3E%3Crect x='116' y='300' width='40' height='220'/%3E%3Crect x='150' y='120' width='30' height='400'/%3E%3Cpolygon points='165,70 180,120 150,120'/%3E%3Crect x='196' y='260' width='52' height='260'/%3E%3Crect x='256' y='330' width='44' height='190'/%3E%3Crect x='306' y='200' width='38' height='320'/%3E%3Crect x='352' y='280' width='60' height='240'/%3E%3Crect x='420' y='340' width='40' height='180'/%3E%3Crect x='470' y='240' width='34' height='280'/%3E%3Crect x='512' y='320' width='56' height='200'/%3E%3Crect x='1080' y='320' width='48' height='200'/%3E%3Crect x='1136' y='250' width='36' height='270'/%3E%3Crect x='1180' y='300' width='52' height='220'/%3E%3Crect x='1240' y='180' width='30' height='340'/%3E%3Crect x='1278' y='280' width='46' height='240'/%3E%3Crect x='1332' y='220' width='34' height='300'/%3E%3Crect x='1374' y='320' width='58' height='200'/%3E%3Crect x='1440' y='260' width='40' height='260'/%3E%3Crect x='1488' y='180' width='30' height='340'/%3E%3Crect x='1526' y='300' width='50' height='220'/%3E%3C/g%3E%3Cg fill='%235aa0ff' opacity='.5'%3E%3Crect x='84' y='180' width='4' height='6'/%3E%3Crect x='94' y='200' width='4' height='6'/%3E%3Crect x='160' y='150' width='4' height='6'/%3E%3Crect x='168' y='190' width='4' height='6'/%3E%3Crect x='320' y='230' width='4' height='6'/%3E%3Crect x='1250' y='210' width='4' height='6'/%3E%3Crect x='1258' y='250' width='4' height='6'/%3E%3Crect x='1500' y='210' width='4' height='6'/%3E%3C/g%3E%3C/svg%3E");
    opacity: .85;
    pointer-events: none;
}

/* sélecteur de langue (haut centre) */
.lang-top {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    background: rgba(10, 18, 40, .7);
    border: 1px solid var(--chip-border);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-1);
    box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .6);
}

.lang-top .flag {
    width: 22px;
    height: 15px;
    border-radius: 3px;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .15);
}

.flag i { display: block; }
.flag .fr-b { background: #1e3a8a; }
.flag .fr-w { background: #fff; }
.flag .fr-r { background: #ef3340; }

.lang-top .chev { width: 15px; height: 15px; color: var(--text-3); }

/* ------------------------------ Mise en page ----------------------------- */
.auth {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
    position: relative;
}

/* ============================ PANNEAU GAUCHE ============================== */
.brand-panel {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 64px 56px 36px;
}

.brand-wordmark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(36px, 4.4vw, 62px);
    letter-spacing: .5px;
    line-height: 1;
}

.w-easy { color: #f4f7ff; }
.w-one {
    background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.w-erp {
    background: linear-gradient(180deg, #5a9bff, var(--blue-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.brand-tagline {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(16px, 1.8vw, 23px);
    color: #d9e2fb;
    margin: 14px 0 0;
}

.brand-desc {
    margin: 16px 0 0;
    max-width: 440px;
    font-size: 15px;
    line-height: 1.6;
    color: #aab8db;
}

.brand-desc b { color: #e7edff; font-weight: 600; }

/* Statistiques */
.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin: 26px 0 6px;
}

.stat { display: flex; align-items: center; gap: 11px; }

.stat-ico {
    width: 26px; height: 26px; flex: 0 0 auto;
    color: var(--gold-1);
}
.stat-ico svg { width: 100%; height: 100%; }
.stat.s2 .stat-ico { color: #4cd3a0; }
.stat.s3 .stat-ico { color: #5a9bff; }
.stat.s4 .stat-ico { color: #b48bff; }

.stat-num {
    font-family: var(--font-display);
    font-weight: 800; font-size: 20px; line-height: 1; color: #f1f5ff;
}
.stat-lbl { font-size: 11.5px; color: #8fa0c6; margin-top: 2px; }

/* --------------------------- Orbite des modules -------------------------- */
.orbit-wrap {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    min-height: 460px;
}

.orbit {
    position: relative;
    width: min(540px, 100%);
    aspect-ratio: 1 / 1;
}

/* anneaux orbitaux */
.orbit-line {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(110, 150, 235, .18);
}
.orbit-line.o1 { width: 74%; height: 74%; }
.orbit-line.o2 {
    width: 92%; height: 92%;
    border-style: dashed;
    border-color: rgba(110, 150, 235, .12);
    animation: spin 60s linear infinite;
}

/* noyau central */
.orbit-core {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(circle at 50% 40%, rgba(40, 86, 190, .45), rgba(8, 16, 40, .85) 70%);
    box-shadow:
        0 0 0 1px rgba(120, 160, 255, .25),
        0 0 0 12px rgba(20, 40, 90, .25),
        0 0 70px rgba(47, 110, 255, .45),
        inset 0 0 50px rgba(40, 90, 200, .35);
    animation: pulse 5s var(--ease) infinite;
}

.orbit-core::before {
    content: '';
    position: absolute;
    inset: -7%;
    border-radius: 50%;
    border: 1px solid rgba(120, 165, 255, .35);
    box-shadow: 0 0 40px rgba(47, 110, 255, .4);
}

.core-logo {
    width: 50%;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55));
}

.core-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(13px, 2.4vw, 18px);
    letter-spacing: .5px;
    margin-top: 6px;
    line-height: 1;
}
.core-tag {
    font-size: clamp(8px, 1.4vw, 10px);
    color: #9fb0d6;
    margin-top: 4px;
}

/* badges modules */
.mod {
    position: absolute;
    width: 112px;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.mod-badge {
    position: relative;
    width: 112px; height: 112px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: radial-gradient(circle at 50% 35%, rgba(20, 32, 64, .92), rgba(7, 13, 32, .96));
    border: 2px solid var(--mc, var(--blue-1));
    box-shadow: 0 0 26px -4px var(--mc, var(--glow-blue)), inset 0 0 18px rgba(0, 0, 0, .5);
    transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

.mod-badge:hover {
    transform: translateY(-5px) scale(1.06);
    box-shadow: 0 0 40px -2px var(--mc, var(--glow-blue)), inset 0 0 18px rgba(0, 0, 0, .5);
}

.mod-ico {
    width: 34px; height: 34px;
    color: var(--mc, #7fb0ff);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5));
}
.mod-ico svg { width: 100%; height: 100%; }

.mod-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: .5px;
    color: #eef3ff;
    text-transform: uppercase;
}

/* couleurs */
.mod.restaurant   { --mc: var(--c-restaurant); }
.mod.immobilier   { --mc: var(--c-immobilier); }
.mod.formation    { --mc: var(--c-formation); }
.mod.ecole        { --mc: var(--c-ecole); }
.mod.quincaillerie{ --mc: var(--c-quincaillerie); }
.mod.construction { --mc: var(--c-construction); }
.mod.soro         { --mc: var(--c-soro); }

/* positions (heptagonal — 7 modules répartis autour du noyau) */
.mod.restaurant    { left: 50%; top: 2%; }
.mod.immobilier    { left: 81%; top: 20%; }
.mod.formation     { left: 89%; top: 61%; }
.mod.ecole         { left: 67%; top: 93%; }
.mod.soro          { left: 33%; top: 93%; }
.mod.quincaillerie { left: 11%; top: 61%; }
.mod.construction  { left: 19%; top: 20%; }

/* carte sécurité bas gauche */
.secure-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 18px;
    background: rgba(9, 16, 36, .6);
    border: 1px solid var(--chip-border);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    max-width: 560px;
}

.secure-card .lock {
    width: 40px; height: 40px; flex: 0 0 auto;
    display: grid; place-items: center;
    border-radius: 12px;
    color: var(--gold-1);
    background: rgba(245, 168, 30, .12);
    border: 1px solid rgba(245, 168, 30, .3);
}
.secure-card .lock svg { width: 21px; height: 21px; }
.secure-card .sc-t { font-size: 14.5px; font-weight: 600; color: #eef3ff; }
.secure-card .sc-s { font-size: 12.5px; color: #93a2c6; margin-top: 2px; }

/* ============================ PANNEAU DROIT ============================== */
.login-panel {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 70px 48px 26px;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin-top: 56px;
    padding: 78px 40px 30px;
    border-radius: var(--radius-card);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 36px 90px -24px rgba(0, 0, 0, .78), inset 0 1px 0 rgba(255, 255, 255, .06);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    animation: cardIn .7s var(--ease) both;
}

/* emblème circulaire en haut */
.emblem {
    position: absolute;
    top: 0; left: 50%;
    transform: translate(-50%, -50%);
    width: 118px; height: 118px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: radial-gradient(circle at 50% 38%, #12244c, #060d22);
    box-shadow:
        0 0 0 2px rgba(120, 160, 255, .35),
        0 0 0 9px rgba(12, 22, 50, .7),
        0 0 0 10px rgba(120, 160, 255, .18),
        0 14px 40px -8px rgba(47, 110, 255, .6);
    animation: float 5.5s var(--ease) infinite;
}
.emblem::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(140deg, var(--gold-1), var(--blue-1)) border-box;
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: .8;
}
.emblem img { width: 74px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .5)); }

.card-welcome {
    font-family: var(--font-script);
    font-size: 30px; line-height: 1;
    text-align: center; color: var(--gold-1);
    margin-bottom: 2px;
}

.card-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 3.4vw, 38px);
    letter-spacing: .5px;
    text-align: center; line-height: 1.05;
    margin: 0;
}

.card-sub {
    position: relative;
    text-align: center;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-2);
    margin: 12px auto 22px;
    width: fit-content;
    padding: 0 16px;
}
.card-sub::before, .card-sub::after {
    content: '';
    position: absolute; top: 50%;
    width: 26px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-2));
    border-radius: 2px;
}
.card-sub::before { right: 100%; transform: scaleX(-1); }
.card-sub::after { left: 100%; }

/* Alertes */
.alert {
    display: flex; align-items: center; gap: 9px;
    padding: 11px 14px; border-radius: 12px;
    font-size: 13px; margin-bottom: 14px;
}
.alert svg { width: 17px; height: 17px; flex: 0 0 auto; }
.alert-error { background: rgba(220, 60, 80, .14); border: 1px solid rgba(220, 60, 80, .4); color: #ff9aa8; }
.alert-ok { background: rgba(40, 190, 130, .14); border: 1px solid rgba(40, 190, 130, .4); color: #6ee7b0; }

/* Champs à labels */
.field { margin-bottom: 15px; }

.field-ctrl {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 66px;
    padding: 10px 18px;
    border-radius: var(--radius-field);
    background: var(--field-bg);
    border: 1.5px solid var(--field-border);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field-ctrl:focus-within {
    border-color: var(--field-focus);
    box-shadow: 0 0 0 4px rgba(47, 110, 255, .14);
}

.field-ico { width: 22px; height: 22px; flex: 0 0 auto; color: #6f86c0; }
.field-ico svg { width: 100%; height: 100%; }

.field-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.field-label {
    font-size: 11.5px; font-weight: 500;
    color: #8fa0c6; line-height: 1; margin-bottom: 5px;
}

.field-body input,
.field-body select {
    width: 100%;
    border: none; outline: none; background: transparent;
    color: var(--text-1);
    font-size: 14.5px; font-family: inherit;
    padding: 0;
}
.field-body input::placeholder { color: #6c7ca3; }
.field-body select {
    appearance: none; -webkit-appearance: none; cursor: pointer;
}
.field-body select:not(.has-value) { color: #6c7ca3; }
.field-body select option { color: #16213f; background: #fff; }

.field-chevron, .eye-btn { flex: 0 0 auto; color: #6f86c0; }
.field-chevron { width: 18px; height: 18px; pointer-events: none; }
.field-chevron svg { width: 100%; height: 100%; }

.eye-btn { width: 26px; height: 26px; display: grid; place-items: center; transition: color var(--t-fast); }
.eye-btn:hover { color: var(--gold-1); }
.eye-btn svg { width: 21px; height: 21px; }

/* Ligne souvenir / oublié */
.row-between {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    margin: 6px 2px 20px;
}
.remember {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13.5px; color: var(--text-2); cursor: pointer; user-select: none;
}
.remember input { position: absolute; opacity: 0; width: 0; height: 0; }
.remember .box {
    width: 20px; height: 20px; border-radius: 6px;
    border: 1.5px solid var(--field-border); background: var(--field-bg);
    display: grid; place-items: center;
    transition: all var(--t-fast) var(--ease);
}
.remember .box svg { width: 13px; height: 13px; color: #1a1300; opacity: 0; transform: scale(.5); transition: all var(--t-fast) var(--ease); }
.remember input:checked + .box { background: linear-gradient(150deg, var(--gold-1), var(--gold-3)); border-color: transparent; }
.remember input:checked + .box svg { opacity: 1; transform: scale(1); }
.remember input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(47, 110, 255, .2); }

.forgot {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13.5px; font-weight: 500; color: var(--gold-1);
    transition: color var(--t-fast);
}
.forgot:hover { color: var(--gold-3); }
.forgot svg { width: 14px; height: 14px; }

/* Bouton principal — OR */
.btn-login {
    position: relative; width: 100%; height: 62px;
    border-radius: var(--radius-field);
    display: flex; align-items: center; justify-content: center; gap: 12px;
    font-family: var(--font-display); font-weight: 700;
    font-size: 15.5px; letter-spacing: 1.4px; color: #2a1c00;
    background: linear-gradient(90deg, var(--gold-1) 0%, var(--gold-2) 52%, var(--gold-3) 100%);
    background-size: 180% 100%; background-position: 0% 50%;
    box-shadow: 0 16px 36px -10px rgba(240, 168, 30, .6), inset 0 1px 0 rgba(255, 255, 255, .4);
    overflow: hidden;
    transition: background-position var(--t-med) var(--ease), transform var(--t-fast), box-shadow var(--t-med);
}
.btn-login .shield { width: 24px; height: 24px; display: grid; place-items: center; }
.btn-login svg { width: 21px; height: 21px; }
.btn-login .arrow { margin-left: 4px; transition: transform var(--t-med) var(--ease); }
.btn-login:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 22px 46px -10px rgba(240, 168, 30, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-login:hover .arrow { transform: translateX(5px); }
.btn-login:active { transform: translateY(0); }
.btn-login::after {
    content: ''; position: absolute; top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn-login:hover::after { left: 130%; }
.btn-login.loading { pointer-events: none; }
.btn-login.loading .label, .btn-login.loading .arrow, .btn-login.loading .shield { visibility: hidden; }
.btn-login .spinner {
    display: none; position: absolute;
    width: 24px; height: 24px;
    border: 3px solid rgba(42, 28, 0, .3); border-top-color: #2a1c00;
    border-radius: 50%; animation: spin 7s linear infinite; animation-duration: .7s;
}
.btn-login.loading .spinner { display: block; }

/* Séparateur biométrie */
.alt-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0 16px; }
.alt-divider .line { flex: 1; height: 1px; background: var(--divider); }
.alt-divider span { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; color: var(--text-3); text-transform: uppercase; }

.bio-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bio-btn {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 8px; border-radius: 14px;
    background: var(--chip-bg); border: 1px solid var(--chip-border);
    font-size: 12.5px; font-weight: 500; color: var(--text-2);
    text-align: center; line-height: 1.2;
    transition: transform var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.bio-btn svg { width: 22px; height: 22px; color: #7fa2e6; flex: 0 0 auto; transition: color var(--t-fast); }
.bio-btn:hover { transform: translateY(-3px); border-color: rgba(95, 140, 255, .5); color: var(--text-1); }
.bio-btn:hover svg { color: var(--gold-1); }

/* Bandeau sécurité bas droite */
.trust-bar {
    width: 100%;
    max-width: 760px;
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 16px 20px;
    border-radius: 20px;
    background: rgba(9, 16, 36, .55);
    border: 1px solid var(--chip-border);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.trust-cell { display: flex; align-items: center; gap: 11px; }
.trust-ico { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; }
.trust-ico svg { width: 19px; height: 19px; }
.trust-cell.t1 .trust-ico { color: #5a9bff; background: rgba(59, 130, 246, .15); }
.trust-cell.t2 .trust-ico { color: #4cd3a0; background: rgba(45, 212, 160, .15); }
.trust-cell.t3 .trust-ico { color: #f5c33b; background: rgba(245, 195, 59, .15); }
.trust-cell.t4 .trust-ico { color: #b48bff; background: rgba(155, 107, 255, .15); }
.trust-t { font-size: 12.5px; font-weight: 700; color: var(--text-1); line-height: 1.15; }
.trust-s { font-size: 10.5px; color: var(--text-3); }

/* ------------------------------ Animations ------------------------------- */
@keyframes float { 0%,100% { transform: translate(-50%,-50%); } 50% { transform: translate(-50%,-58%); } }
@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 1px rgba(120,160,255,.25),0 0 0 12px rgba(20,40,90,.25),0 0 70px rgba(47,110,255,.45),inset 0 0 50px rgba(40,90,200,.35); }
    50% { box-shadow: 0 0 0 1px rgba(120,160,255,.4),0 0 0 14px rgba(20,40,90,.3),0 0 95px rgba(47,110,255,.65),inset 0 0 60px rgba(40,90,200,.5); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinC { to { transform: translate(-50%,-50%) rotate(360deg); } }
.orbit-line.o2 { transform: translate(-50%,-50%); animation: spinC 70s linear infinite; }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ============================== RESPONSIVE =============================== */
@media (max-width: 1240px) {
    .brand-panel { padding: 60px 40px 30px; }
    .login-panel { padding: 64px 36px 24px; }
    .orbit { width: min(460px, 100%); }
    .mod, .mod-badge { width: 100px; }
    .mod-badge { height: 100px; }
    .mod-ico { width: 30px; height: 30px; }
}

@media (max-width: 980px) {
    .auth { grid-template-columns: 1fr; }
    .brand-panel { padding: 84px 26px 34px; align-items: center; text-align: center; }
    .brand-wordmark, .brand-tagline { text-align: center; }
    .brand-desc { margin-left: auto; margin-right: auto; }
    .stats { justify-content: center; }
    .secure-card { margin: 0 auto; }
    .login-panel { padding: 30px 26px 40px; }
}

@media (max-width: 760px) {
    /* L'orbite -> noyau + grille de badges */
    .orbit-wrap { min-height: auto; margin: 22px 0; }
    .orbit {
        width: 100%;
        aspect-ratio: auto;
        display: flex; flex-direction: column; align-items: center; gap: 22px;
    }
    .orbit-line { display: none; }
    .orbit-core {
        position: static; transform: none;
        width: 200px; height: 200px;
    }
    .orbit-core::before { inset: -7%; }
    .mods {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px 10px;
        width: 100%;
        max-width: 380px;
    }
    .mod { position: static; transform: none; width: auto; justify-self: center; }
    .mod-badge { margin: 0 auto; }

    .login-card { padding: 70px 22px 26px; }
    .trust-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 460px) {
    .brand-panel { padding: 80px 16px 30px; }
    .login-panel { padding: 22px 14px 36px; }
    .brand-wordmark { font-size: 34px; }
    .stats { gap: 16px 20px; }
    .mods { grid-template-columns: repeat(2, 1fr); max-width: 260px; }
    .bio-row { grid-template-columns: 1fr; }
    .bio-btn { justify-content: flex-start; padding-left: 18px; }
    .trust-bar { grid-template-columns: 1fr; }
    .lang-top { top: 12px; }
}

/* desktop : on cache le conteneur grille (badges absolus) ; mobile l'affiche */
.mods { display: contents; }
@media (max-width: 760px) { .mods { display: grid; } }

/* ========================================================================
   AJUSTEMENT PLEIN ÉCRAN — aucun défilement vertical visible (desktop)
   Tout tient dans 100dvh grâce à un compactage en unités vh.
   ===================================================================== */
@media (min-width: 981px) {
    html, body { height: 100%; overflow: hidden; }

    .auth { height: 100dvh; }

    .brand-panel, .login-panel {
        height: 100dvh;
        overflow-y: auto;
        justify-content: safe center;
        scrollbar-width: none;        /* Firefox */
        -ms-overflow-style: none;     /* IE/Edge */
    }
    .brand-panel::-webkit-scrollbar,
    .login-panel::-webkit-scrollbar { width: 0; height: 0; display: none; }

    /* --- Panneau gauche, compactage --- */
    .brand-panel { padding: clamp(26px, 4vh, 56px) clamp(34px, 3.4vw, 56px) clamp(18px, 2.6vh, 34px); }
    .brand-tagline { margin-top: clamp(7px, 1.3vh, 14px); }
    .brand-desc { margin-top: clamp(7px, 1.3vh, 16px); }
    .stats { margin: clamp(12px, 2vh, 26px) 0 0; gap: clamp(14px, 1.6vw, 26px); }
    .orbit-wrap { min-height: 0; margin: clamp(4px, 1.2vh, 16px) 0; }
    .orbit { width: min(clamp(300px, 40vh, 540px), 100%); }
    .secure-card { padding: clamp(12px, 1.7vh, 18px) clamp(16px, 1.6vw, 22px); }

    /* --- Panneau droit, compactage --- */
    .login-panel { padding: clamp(40px, 5vh, 70px) clamp(28px, 2.6vw, 48px) clamp(14px, 2.2vh, 26px); }
    .login-card {
        margin-top: clamp(30px, 4.6vh, 56px);
        padding: clamp(46px, 6.2vh, 78px) clamp(26px, 2.4vw, 40px) clamp(14px, 2vh, 30px);
    }
    .emblem { width: clamp(78px, 10vh, 118px); height: clamp(78px, 10vh, 118px); }
    .emblem img { width: clamp(48px, 6.4vh, 74px); }
    .card-welcome { font-size: clamp(20px, 2.8vh, 30px); }
    .card-sub { margin: clamp(5px, 1vh, 12px) auto clamp(8px, 1.5vh, 22px); }
    .field { margin-bottom: clamp(6px, 1.1vh, 15px); }
    .field-ctrl { min-height: clamp(48px, 6.6vh, 66px); padding-top: clamp(6px, .8vh, 10px); padding-bottom: clamp(6px, .8vh, 10px); }
    .row-between { margin: clamp(2px, .6vh, 6px) 2px clamp(9px, 1.5vh, 20px); }
    .btn-login { height: clamp(48px, 6.2vh, 62px); }
    .alt-divider { margin: clamp(9px, 1.5vh, 22px) 0 clamp(7px, 1.2vh, 16px); }
    .bio-btn { padding: clamp(8px, 1.3vh, 14px) 8px; }
    .trust-bar { margin-top: clamp(10px, 1.4vh, 26px); padding: clamp(9px, 1.4vh, 16px) clamp(14px, 1.4vw, 20px); }
}
