/* =====================================================================
   EASY SCHOOL — Page de connexion principale
   Reproduction de la maquette « Easy School premium campus login »
   (maquettesprinc/Easy School premium campus login-1.png, 1586×992).
   Préfixe .lp- ; aucune dépendance au reste de l'application.
   ===================================================================== */
:root {
    --lp-navy:    #06402a;   /* vert Al-Andalus du panneau gauche */
    --lp-navy-2:  #0d1b43;   /* titres (marine du logo) */
    --lp-ink:     #0f1d3d;   /* texte principal */
    --lp-blue:    #0b6b3d;   /* vert Al-Andalus (actions) */
    --lp-blue-l:  #eaf5ee;   /* surlignage */
    --lp-gold:    #d4a650;   /* accents dorés */
    --lp-gold-d:  #c99945;
    --lp-green:   #0a853d;
    --lp-red:     #dc2626;
    --lp-muted:   #5d6a80;
    --lp-line:    #d8dfea;
    --lp-line-2:  #e7ecf3;
    --lp-box:     #f9fafd;
    --lp-page:    #fcfcfd;
    --lp-radius:  10px;
    --lp-font:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --lp-serif:   'Playfair Display', Georgia, 'Times New Roman', serif;
    --lp-left-w:  61.5%;
}
html[lang="ar"] {
    --lp-serif: 'Noto Kufi Arabic', 'Cairo', Tahoma, sans-serif;
    --lp-font:  'Cairo', 'Noto Kufi Arabic', Tahoma, sans-serif;
}

/* ---------------------------------------------------------- Gabarit */
.es-auth-body {
    margin: 0; min-height: 100vh; min-height: 100dvh;
    background: var(--lp-page); color: var(--lp-ink);
    font-family: var(--lp-font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.lp { position: relative; display: flex; width: 100%; min-height: 100vh; min-height: 100dvh; background: var(--lp-page); }
.lp-flip { display: inline-grid; }
[dir="rtl"] .lp-flip { transform: scaleX(-1); }

/* ---------------------------------------------------------- Panneau gauche */
.lp-left {
    flex: 0 0 var(--lp-left-w); max-width: var(--lp-left-w); position: relative; color: #fff;
    background: var(--lp-navy); overflow: hidden; isolation: isolate; display: flex; flex-direction: column;
}
/* Photo de classe : ancrée en haut à droite, fondue dans le bleu nuit */
.lp-hero {
    position: absolute; z-index: -1; top: 0; right: 0; width: 66%; height: 74%;
    background: url('../img/login/mk-hero.jpg') right top / cover no-repeat;
}
@supports (background-image: url('x.webp')) {
    .lp-hero { background-image: url('../img/login/mk-hero.webp'); }
}
.lp-hero::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, var(--lp-navy) 0%, rgba(6, 64, 42, .78) 16%, rgba(6, 64, 42, .22) 44%, rgba(6, 64, 42, 0) 70%),
        linear-gradient(180deg, rgba(6, 64, 42, 0) 55%, rgba(6, 64, 42, .72) 86%, var(--lp-navy) 100%);
}
/* Bord droit incurvé (blanc) + filet doré */
.lp-curve { position: absolute; z-index: 3; top: 0; right: -1px; width: clamp(48px, 4.6vw, 80px); height: 100%; pointer-events: none; }
.lp-curve .fill { fill: var(--lp-page); }
.lp-curve .gold { fill: none; stroke: var(--lp-gold); stroke-width: 1.4; vector-effect: non-scaling-stroke; opacity: .9; }

.lp-left-in {
    position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0;
    padding: clamp(22px, 4.5vh, 46px) clamp(70px, 7vw, 120px) clamp(14px, 2.2vh, 24px) clamp(28px, 3.6vw, 58px);
}
.lp-brand { display: flex; flex-direction: column; align-items: flex-start; }
.lp-brand-plate {
    display: inline-flex; align-items: center; justify-content: center;
    width: clamp(170px, 13vw, 225px); padding: 8px 12px; border-radius: 18px; background: #fff;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
}
.lp-brand-plate picture, .lp-logo picture { display: block; width: 100%; }
.lp-brand-plate img { width: 100%; height: auto; aspect-ratio: 800 / 558; object-fit: contain; display: block; }
.lp-brand-sign {
    margin: clamp(12px, 2vh, 20px) 0 0 3px; font-size: clamp(.64rem, .72vw, .76rem); font-weight: 700; letter-spacing: .2em;
    text-transform: uppercase; color: #fff; line-height: 1.6; max-width: 30ch;
}
.lp-rule { display: block; width: 46px; height: 3px; border-radius: 3px; background: var(--lp-gold); margin: clamp(10px, 1.8vh, 18px) 0 0 3px; }

.lp-headline {
    margin: clamp(14px, 2.4vh, 24px) 0 0 2px; font-family: var(--lp-serif); font-weight: 700; color: #fff;
    font-size: clamp(2.2rem, min(4.15vw, 6.6vh), 4.1rem); line-height: .98; letter-spacing: -.012em;
    text-shadow: 0 6px 30px rgba(0, 0, 0, .35);
}
.lp-headline span { display: block; }
.lp-headline .gold { color: var(--lp-gold); }
.lp-lead {
    margin: clamp(10px, 1.6vh, 16px) 0 0 2px; max-width: 26em; font-size: clamp(.92rem, 1.16vw, 1.18rem);
    line-height: 1.45; color: rgba(255, 255, 255, .94);
}

.lp-stats { list-style: none; margin: clamp(12px, 2.4vh, 24px) 0 0 2px; padding: 0; display: flex; flex-wrap: wrap; }
.lp-stats li { display: flex; align-items: center; gap: 16px; padding-inline-end: clamp(16px, 2vw, 32px); }
.lp-stats li + li { padding-inline-start: clamp(16px, 2vw, 32px); border-inline-start: 1px solid rgba(255, 255, 255, .28); }
.lp-stat-ic {
    width: clamp(46px, 3.6vw, 56px); height: clamp(46px, 3.6vw, 56px); border-radius: 50%; flex: none;
    border: 2px solid var(--lp-gold); display: grid; place-items: center; color: var(--lp-gold);
    font-size: clamp(1.25rem, 1.5vw, 1.6rem); background: rgba(6, 64, 42, .4);
}
.lp-stat-tx { display: flex; flex-direction: column; line-height: 1.25; }
.lp-stat-tx b { color: var(--lp-gold); font-size: clamp(1.15rem, 1.45vw, 1.45rem); font-weight: 700; }
.lp-stat-tx strong { font-size: clamp(.86rem, .98vw, 1rem); font-weight: 600; color: #fff; }
.lp-stat-tx small { font-size: clamp(.74rem, .82vw, .84rem); color: rgba(255, 255, 255, .8); margin-top: 3px; }

/* Carrousel : une grande vignette + deux petites, flèches et points */
.lp-carousel { margin-top: auto; padding-top: clamp(12px, 2vh, 20px); position: relative; }
.lp-car-track { display: flex; gap: 10px; height: clamp(110px, 20vh, 200px); }
.lp-slide {
    margin: 0; flex: 1 1 0; min-width: 0; border-radius: 12px; overflow: hidden; position: relative;
    box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .8); background: #06402a;
}
.lp-slide.is-main { flex-grow: 2; }
.lp-slide.is-off { display: none; }
.lp-slide.is-last { border-end-end-radius: 34px; }
.lp-slide picture, .lp-slide img { display: block; width: 100%; height: 100%; }
.lp-slide img { object-fit: cover; }
.lp-slide.is-enter { animation: lp-fade .5s ease both; }
@keyframes lp-fade { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.lp-car-nav { display: flex; align-items: center; justify-content: space-between; margin-top: -14px; position: relative; z-index: 2; }
.lp-car-btn {
    width: clamp(36px, 2.8vw, 44px); height: clamp(36px, 2.8vw, 44px); border-radius: 50%; display: grid; place-items: center;
    background: rgba(6, 64, 42, .55); color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); cursor: pointer;
    font-size: 1rem; transition: background .15s, border-color .15s, transform .12s;
}
.lp-car-btn:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.lp-car-btn:active { transform: scale(.94); }
.lp-car-dots { display: flex; gap: 12px; align-items: center; }
.lp-car-dots button {
    width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
    background: rgba(255, 255, 255, .55); transition: background .2s, transform .2s;
}
.lp-car-dots button.on { background: var(--lp-gold); transform: scale(1.25); }
.lp-car-dots button:hover { background: #fff; }

/* ---------------------------------------------------------- Panneau droit */
.lp-right {
    flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: clamp(12px, 3vh, 30px) clamp(18px, 2vw, 32px) clamp(10px, 1.6vh, 16px) clamp(10px, 1vw, 20px);
    gap: clamp(10px, 1.6vh, 16px);
}
.lp-envbar, .lp-card, .lp-foot { width: min(100%, 560px); }
.lp-envbar {
    display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px;
    background: repeating-linear-gradient(-45deg, #fde68a 0 12px, #fcd34d 12px 24px); color: #78350f; border: 1px solid #f59e0b;
    font-size: .84rem; box-shadow: 0 8px 20px -14px rgba(180, 83, 9, .8);
}
.lp-envbar span { background: rgba(255, 251, 235, .85); padding: 2px 8px; border-radius: 6px; }
.lp-envbar i { font-size: 1.15rem; color: #b45309; }
.lp-card {
    background: #fff; color: var(--lp-ink); border-radius: 16px; border: 1px solid #edf0f5;
    box-shadow: 0 24px 60px -34px rgba(16, 30, 62, .32), 0 2px 8px -4px rgba(16, 30, 62, .06);
    padding: clamp(16px, 2.2vh, 24px) clamp(20px, 1.7vw, 28px) clamp(18px, 2.4vh, 26px);
    display: flex; flex-direction: column; animation: lp-rise .55s cubic-bezier(.22, .8, .3, 1) both;
}
.lp--formation .lp-card { border-color: #fcd34d; box-shadow: 0 0 0 3px rgba(245, 158, 11, .2), 0 24px 60px -34px rgba(16, 30, 62, .32); }
@keyframes lp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Liseré de signature en tête de carte (bleu nuit → bleu royal → or) */
.lp-card { position: relative; }
.lp-card::before {
    content: ''; position: absolute; top: -1px; left: 28px; right: 28px; height: 3px; border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--lp-navy) 0%, var(--lp-blue) 48%, var(--lp-gold) 100%);
    box-shadow: 0 2px 10px -2px rgba(11, 107, 61, .45);
}
[dir="rtl"] .lp-card::before { background: linear-gradient(270deg, var(--lp-navy) 0%, var(--lp-blue) 48%, var(--lp-gold) 100%); }

/* ---- En-tête de carte : logo + outils (langues, environnement) ---- */
.lp-head {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding-bottom: clamp(10px, 1.6vh, 16px); margin-bottom: clamp(12px, 2vh, 20px);
}
.lp-head::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0, #dfe5ef 14%, #dfe5ef 68%, rgba(212, 166, 80, .75) 88%, transparent 100%);
}
[dir="rtl"] .lp-head::after { background: linear-gradient(270deg, transparent 0, #dfe5ef 14%, #dfe5ef 68%, rgba(212, 166, 80, .75) 88%, transparent 100%); }
.lp-logo {
    display: inline-block; width: clamp(92px, 7vw, 116px); flex: none; border-radius: 12px;
    transition: transform .4s cubic-bezier(.22, .8, .3, 1), filter .4s;
}
.lp-logo:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 14px rgba(16, 30, 62, .14)); }
.lp-logo img { width: 100%; height: auto; aspect-ratio: 800 / 558; object-fit: contain; display: block; }
.lp-head-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; min-width: 0; }

/* Contrôle segmenté à curseur glissant (langues et environnement).
   --n : nombre d'options, --i : option active (mis à jour par auth-login.js). */
.lp-seg {
    --dir: 1; --pad: 4px;
    position: relative; isolation: isolate; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    padding: var(--pad); border-radius: 13px;
    background: linear-gradient(180deg, #f2f5fa 0%, #edf1f7 100%);
    border: 1px solid #e2e8f1; box-shadow: inset 0 1px 2px rgba(16, 30, 62, .06), 0 1px 0 #fff;
}
[dir="rtl"] .lp-seg { --dir: -1; }
.lp-seg::before {
    content: ''; position: absolute; z-index: -1; top: var(--pad); bottom: var(--pad); inset-inline-start: var(--pad);
    width: calc((100% - var(--pad) * 2) / var(--n, 3)); border-radius: 10px; background: #fff;
    box-shadow: 0 0 0 1px rgba(11, 107, 61, .16), 0 1px 2px rgba(16, 30, 62, .08), 0 6px 14px -6px rgba(16, 30, 62, .28);
    transform: translateX(calc(var(--i, 0) * 100% * var(--dir)));
    transition: transform .5s cubic-bezier(.34, 1.36, .5, 1), background .35s, box-shadow .35s;
}
.lp-seg a {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 34px; padding: 0 13px; border-radius: 10px; white-space: nowrap;
    color: #5b6780; text-decoration: none; font-size: .8rem; font-weight: 700; letter-spacing: .03em;
    transition: color .3s;
}
.lp-seg a:hover { color: var(--lp-navy-2); }
.lp-seg a.on { color: var(--lp-navy-2); }
.lp-seg a:focus-visible { outline-offset: -2px; }
.lp-flag {
    width: 20px; height: 14px; border-radius: 3px; object-fit: cover; flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .12);
    filter: saturate(.55); opacity: .82; transition: filter .3s, opacity .3s, transform .3s;
}
.lp-lang a:hover .lp-flag, .lp-lang a.on .lp-flag { filter: none; opacity: 1; }
.lp-lang a:hover .lp-flag { transform: scale(1.08); }

/* Commutateur d'environnement Production | Formation */
.lp-env { --pad: 3px; border-radius: 999px; }
.lp-env::before { border-radius: 999px; }
.lp-env a { min-height: 26px; padding: 0 12px; gap: 6px; border-radius: 999px; font-size: .72rem; letter-spacing: .01em; }
.lp-env a i { font-size: .8rem; }
.lp-env a.is-prod.on { color: var(--lp-green); }
.lp-env[data-on="formation"]::before {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 0 0 1px rgba(217, 119, 6, .35), 0 6px 14px -6px rgba(217, 119, 6, .8);
}
.lp-env[data-on="formation"] a.is-form { color: #fff; }
.lp-env-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #9aa5b8; flex: none; transition: background .3s; }
.lp-env a.is-prod.on .lp-env-dot { background: #12a150; }
.lp-env a.is-prod.on .lp-env-dot::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%; background: #12a150;
    animation: lp-ping 2.2s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes lp-ping { 0% { transform: scale(1); opacity: .65; } 80%, 100% { transform: scale(2.8); opacity: 0; } }

.lp-title {
    font-family: var(--lp-serif); font-weight: 700; color: var(--lp-navy-2);
    font-size: clamp(1.6rem, 2.3vw, 2.35rem); line-height: 1.1; margin: 0 0 6px; letter-spacing: -.012em;
}
.lp-sub { margin: 0 0 clamp(10px, 2vh, 18px); color: var(--lp-muted); font-size: clamp(.9rem, 1vw, 1.02rem); line-height: 1.45; }

/* Alertes globales */
.lp-flash:empty { display: none; }
.lp-alert { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border-radius: 10px; font-size: .86rem; font-weight: 600; line-height: 1.4; margin-bottom: 12px; border: 1px solid; }
.lp-alert i { font-size: 1rem; flex: none; margin-top: 1px; }
.lp-alert-danger  { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.lp-alert-success { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.lp-alert-warning { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.lp-alert-info    { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }

/* ---------------------------------------------------------- Formulaire */
.lp-form { display: flex; flex-direction: column; }
.lp-box {
    background: var(--lp-box); border: 1px solid #e9edf4; border-radius: 12px;
    padding: clamp(12px, 2vh, 18px) clamp(14px, 1.2vw, 18px) clamp(8px, 1.2vh, 12px);
    margin-bottom: clamp(10px, 1.8vh, 16px);
}
.lp-field { margin-bottom: clamp(8px, 1.5vh, 14px); position: relative; }
.lp-label { display: block; font-size: .88rem; font-weight: 600; color: var(--lp-ink); margin-bottom: 7px; }
.lp-err { margin: 5px 2px 0; font-size: .8rem; font-weight: 600; color: var(--lp-red); display: flex; align-items: center; gap: 6px; }
.lp-err:empty { display: none; }
.lp-err--profile { margin: 0 0 8px; }

.lp-input {
    position: relative; display: flex; align-items: center; background: #fff;
    border: 1px solid var(--lp-line); border-radius: var(--lp-radius); transition: border-color .15s, box-shadow .15s;
}
.lp-input:focus-within { border-color: var(--lp-blue); box-shadow: 0 0 0 4px rgba(11, 107, 61, .13); }
.is-invalid .lp-input, .is-invalid .lp-combo-ctl { border-color: var(--lp-red); }
.is-invalid .lp-input:focus-within, .is-invalid .lp-combo-ctl:focus-within { box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }
.lp-input-ic { position: absolute; inset-inline-start: 18px; color: #6b778d; font-size: 1.15rem; pointer-events: none; }
.lp-input input {
    flex: 1; width: 100%; min-height: clamp(44px, 5.2vh, 52px); border: 0; outline: 0; background: transparent;
    padding-block: 0; padding-inline: 62px 52px; font: inherit; font-size: .96rem; color: var(--lp-ink); border-radius: var(--lp-radius);
}
.lp-input input::placeholder { color: #8994a8; }
.lp-eye {
    position: absolute; inset-inline-end: 8px; width: 40px; height: 40px; border: 0; background: none;
    color: #56627a; border-radius: 8px; display: grid; place-items: center; cursor: pointer; font-size: 1.2rem; transition: color .15s, background .15s;
}
.lp-eye:hover, .lp-eye:focus-visible { color: var(--lp-blue); background: var(--lp-blue-l); outline: 0; }

/* Sélecteur de campus (combobox) — carte du campus choisi posée sur le champ */
.lp-combo { position: relative; }
.lp-combo-ctl {
    position: relative; display: flex; align-items: center; gap: 12px; background: #fff;
    border: 1px solid var(--lp-line); border-radius: var(--lp-radius);
    min-height: clamp(50px, 5.8vh, 56px); padding-inline: 10px 6px; transition: border-color .15s, box-shadow .15s;
}
.lp-combo-ctl:focus-within, .lp-combo.is-open .lp-combo-ctl { border-color: var(--lp-blue); box-shadow: 0 0 0 4px rgba(11, 107, 61, .13); }
.lp-combo-main { position: relative; flex: 1; min-width: 0; align-self: stretch; display: flex; align-items: center; }
.lp-combo-input {
    width: 100%; min-height: 44px; border: 0; outline: 0; background: transparent;
    padding: 0; font: inherit; font-size: .95rem; color: var(--lp-ink); text-overflow: ellipsis;
}
.lp-combo-input::placeholder { color: #8994a8; }
.lp-combo-sel {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
    background: #fff; cursor: pointer; line-height: 1.3; min-width: 0;
}
.lp-combo.is-open .lp-combo-sel, .lp-combo-sel[hidden] { display: none; }
.lp-sel-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lp-sel-name b { font-size: .95rem; font-weight: 700; color: var(--lp-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-verified-ic { color: #16a34a; font-size: 1.05rem; flex: none; animation: lp-badge .4s cubic-bezier(.34, 1.4, .64, 1) both; }
.lp-combo-sel small { font-size: .78rem; color: var(--lp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-combo-sel small .sep, .lp-school-tx small .sep { margin: 0 5px; color: #9aa6ba; }
@keyframes lp-badge { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.lp-combo-btn {
    flex: none; width: 36px; height: 36px; border: 0; background: none; color: #4e5a71; border-radius: 8px;
    display: grid; place-items: center; cursor: pointer; font-size: 1rem; transition: color .15s, background .15s;
}
.lp-combo-btn:hover, .lp-combo-btn:focus-visible { color: var(--lp-blue); background: var(--lp-blue-l); outline: 0; }
.lp-combo-btn[hidden] { display: none; }
.lp-combo-toggle i { transition: transform .2s; }
.lp-combo.is-open .lp-combo-toggle i { transform: rotate(180deg); }
.lp-combo-clear { font-size: .78rem; width: 30px; height: 30px; }
.lp-combo.has-value:not(.is-open) .lp-combo-clear { display: none; }

.lp-school-logo {
    flex: none; width: 36px; height: 36px; border-radius: 9px; overflow: hidden; display: grid; place-items: center;
    background: #eef3fc; color: var(--lp-navy-2); font-weight: 800; font-size: .68rem; letter-spacing: .02em;
}
.lp-school-logo i { font-size: 1.25rem; color: #23345f; }
.lp-school-logo.has-img { background: #fff; box-shadow: 0 0 0 1px var(--lp-line-2); }
.lp-school-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lp-combo-ctl .lp-school-logo.has-img { width: 44px; }
.lp-option .lp-school-logo { background: var(--cb, #1e56d6); color: #fff; }
.lp-option .lp-school-logo.has-img { background: #fff; }

.lp-combo-pop {
    position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 6px);
    background: #fff; border: 1px solid var(--lp-line); border-radius: 12px;
    box-shadow: 0 24px 50px -18px rgba(12, 30, 70, .35), 0 4px 14px -6px rgba(12, 30, 70, .15);
    overflow: hidden; animation: lp-pop .18s ease-out both;
}
.lp-combo-pop[hidden] { display: none; }
@keyframes lp-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lp-combo-list { list-style: none; margin: 0; padding: 4px 0; max-height: min(44vh, 300px); overflow: auto; overscroll-behavior: contain; }
.lp-combo-list[hidden] { display: none; }
.lp-option {
    display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 12px; cursor: pointer;
    border-inline-start: 3px solid transparent; min-height: 52px; transition: background .12s;
}
.lp-option:hover, .lp-option.is-active, .lp-option[aria-selected="true"] { background: var(--lp-blue-l); border-inline-start-color: var(--lp-blue); }
.lp-option .lp-verified { margin-inline-start: auto; }
.lp-school-tx { min-width: 0; line-height: 1.25; display: flex; flex-direction: column; }
.lp-school-tx b { font-size: .9rem; color: var(--lp-ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-school-tx small { font-size: .76rem; color: var(--lp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-verified { display: inline-flex; align-items: center; gap: 6px; color: var(--lp-green); font-size: .78rem; font-weight: 700; white-space: nowrap; flex: none; }
.lp-combo-status { padding: 14px 16px; font-size: .86rem; color: var(--lp-muted); display: flex; align-items: center; gap: 10px; }
.lp-combo-status[hidden] { display: none; }
.lp-combo-status.is-error { color: #b91c1c; }
.lp-combo-foot { padding: 10px 14px; border-top: 1px solid var(--lp-line-2); font-size: .83rem; color: var(--lp-muted); background: #fbfcfe; }
.lp-combo-foot a { color: var(--lp-blue); font-weight: 700; text-decoration: none; }
.lp-skel { list-style: none; margin: 0; padding: 6px 0; }
.lp-skel li { display: flex; gap: 12px; align-items: center; padding: 9px 14px; }
.lp-skel i { display: block; border-radius: 8px; background: linear-gradient(90deg, #eef2f8 25%, #f7f9fc 50%, #eef2f8 75%); background-size: 200% 100%; animation: lp-shine 1.2s linear infinite; }
.lp-skel .a { width: 34px; height: 34px; flex: none; }
.lp-skel .b { height: 11px; width: 55%; margin-bottom: 7px; }
.lp-skel .c { height: 9px; width: 35%; }
@keyframes lp-shine { to { background-position: -200% 0; } }

/* Options */
.lp-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 6px; }
.lp-remember { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: .9rem; color: var(--lp-ink); font-weight: 500; margin: 0; min-height: 30px; }
.lp-remember input { width: 20px; height: 20px; margin: 0; accent-color: var(--lp-blue); cursor: pointer; }
.lp-forgot { font-size: .9rem; font-weight: 700; color: var(--lp-blue); text-decoration: none; padding: 4px 0; }
.lp-forgot:hover, .lp-back:hover, .lp-codelink:hover { text-decoration: underline; }

/* Boutons */
.lp-btn {
    width: 100%; min-height: clamp(48px, 5.6vh, 56px); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    gap: 14px; font: inherit; font-size: 1.04rem; font-weight: 700; text-decoration: none; cursor: pointer; position: relative;
    transition: background .15s, box-shadow .15s, transform .12s, filter .15s, border-color .15s;
}
.lp-btn:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(11, 107, 61, .35); }
.lp-btn-primary { border: 0; color: #fff; background: linear-gradient(90deg, #0e7a46 0%, #07532e 100%); box-shadow: 0 14px 28px -14px rgba(7, 83, 46, .9); }
.lp-btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.lp-btn-primary:disabled { cursor: progress; filter: none; transform: none; opacity: .85; }
.lp-btn-ic { display: grid; place-items: center; font-size: 1.25rem; }
.lp-btn-outline { background: #fff; color: var(--lp-blue); border: 1.5px solid var(--lp-blue); margin-top: 10px; }
.lp-btn-outline:hover { background: var(--lp-blue-l); }
.lp-btn-ghost { background: transparent; color: var(--lp-muted); border: 1px dashed var(--lp-line); margin-top: 10px; min-height: 44px; font-size: .92rem; }
.lp-btn-ghost:hover { color: var(--lp-ink); background: #f6f8fb; }
.lp-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: lp-spin .7s linear infinite; }
.lp-spinner[hidden] { display: none; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
.lp-btn.is-loading .lp-btn-ic { display: none; }
.lp-codelink { align-self: center; display: inline-flex; align-items: center; gap: 7px; margin-top: 7px; font-size: .82rem; font-weight: 600; color: var(--lp-muted); text-decoration: none; }
.lp-codelink i { color: var(--lp-blue); }

/* Autres espaces */
.lp-divider { display: flex; align-items: center; gap: 16px; margin: clamp(10px, 1.6vh, 16px) 0 clamp(10px, 1.6vh, 14px); color: #4b566c; font-size: .9rem; font-weight: 500; }
.lp-divider::before, .lp-divider::after { content: ''; flex: 1; height: 1px; background: #c9d2df; }
.lp-spaces { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-space {
    position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 14px 14px 12px 18px; min-height: clamp(84px, 10.6vh, 104px);
    border-radius: 12px; text-decoration: none; color: var(--lp-ink); border: 1px solid; transition: transform .15s, box-shadow .15s;
}
.lp-space:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -18px rgba(16, 30, 62, .45); }
.lp-space.is-parent { background: #eff5fd; border-color: #d6e4fa; }
.lp-space.is-prof   { background: #fef6e8; border-color: #f7e2bc; }
.lp-space.is-current { box-shadow: 0 0 0 2px var(--lp-blue) inset; }
.lp-space-ic { font-size: 2.2rem; line-height: 1; margin-top: 10px; flex: none; }
.lp-space.is-parent .lp-space-ic { color: var(--lp-blue); }
.lp-space.is-prof .lp-space-ic { color: var(--lp-gold-d); }
.lp-space-tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lp-space-tx small { padding-inline-end: 34px; }
.lp-space-tx b { font-size: 1rem; font-weight: 700; color: var(--lp-navy-2); letter-spacing: -.015em; white-space: nowrap; }
.lp-space-tx small { font-size: .82rem; line-height: 1.35; color: #4d5870; }
.lp-space-go {
    position: absolute; inset-inline-end: 12px; bottom: 14px; width: 32px; height: 32px; border-radius: 50%;
    background: #fff; display: grid; place-items: center; color: var(--lp-ink); font-size: .85rem; box-shadow: 0 4px 10px -4px rgba(16, 30, 62, .35);
}

/* Panneaux secondaires */
.lp-back { display: inline-flex; align-items: center; gap: 8px; color: var(--lp-muted); font-size: .86rem; font-weight: 600; text-decoration: none; margin-bottom: 10px; }
.lp-contacts { margin: 6px 0 4px; border: 1px solid var(--lp-line); border-radius: 12px; overflow: hidden; }
.lp-contacts a, .lp-contacts div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: var(--lp-ink); font-size: .9rem; font-weight: 700; }
.lp-contacts a:hover { background: var(--lp-blue-l); }
.lp-contacts > * + * { border-top: 1px solid var(--lp-line-2); }
.lp-contacts i { width: 40px; height: 40px; border-radius: 10px; background: var(--lp-blue-l); color: var(--lp-blue); display: grid; place-items: center; font-size: 1.05rem; flex: none; }
.lp-contacts small { display: block; font-weight: 500; color: var(--lp-muted); font-size: .78rem; margin-top: 2px; }
.lp-privacy { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-privacy li { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--lp-line-2); border-radius: 12px; background: var(--lp-box); font-size: .84rem; line-height: 1.45; color: #3e4a61; }
.lp-privacy i { width: 36px; height: 36px; border-radius: 10px; background: var(--lp-blue-l); color: var(--lp-blue); display: grid; place-items: center; flex: none; font-size: 1.05rem; }
.lp-privacy b { display: block; color: var(--lp-ink); font-size: .9rem; margin-bottom: 2px; }
.lp-code-input { font-family: ui-monospace, "Courier New", monospace; font-size: 1.15rem !important; letter-spacing: .14em; }
.lp-code-input::placeholder { letter-spacing: normal; font-family: var(--lp-font); font-size: .95rem; }
.lp-hint { margin: 6px 2px 0; font-size: .78rem; color: var(--lp-muted); line-height: 1.4; }
.lp-select select { flex: 1; width: 100%; min-height: clamp(44px, 5.2vh, 52px); border: 0; outline: 0; background: transparent; padding-inline: 62px 44px; font: inherit; font-size: .95rem; color: var(--lp-ink); appearance: none; -webkit-appearance: none; cursor: pointer; }
.lp-select-ic { position: absolute; inset-inline-end: 16px; color: #6f7d95; font-size: .9rem; pointer-events: none; }
/* Double authentification (_twofa_panel.php) */
.lp-2fa-user { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; background: var(--lp-box); border: 1px solid var(--lp-line-2); font-size: .88rem; }
.lp-2fa-user .av { width: 36px; height: 36px; border-radius: 50%; background: var(--lp-blue-l); color: var(--lp-blue); display: grid; place-items: center; font-weight: 800; flex: none; }
.lp-2fa-input { font-family: ui-monospace, "Courier New", monospace; letter-spacing: .3em; font-size: 1.2rem !important; }
.lp-2fa-hint, .lp-2fa-alt { font-size: .82rem; color: var(--lp-muted); margin-top: 10px; }
.lp-2fa-alt a, .lp-2fa-alt button { color: var(--lp-blue); font-weight: 600; }

/* ---- Pied de page (sous la carte) : barre de verre + mentions ---- */
.lp-foot {
    display: flex; flex-direction: column; gap: clamp(6px, 1vh, 9px);
    animation: lp-rise .6s .12s cubic-bezier(.22, .8, .3, 1) both;
}
.lp-foot-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 6px 8px; flex-wrap: wrap;
    padding: 5px; border-radius: 15px;
    background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
    border: 1px solid #e6ebf3;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 14px 30px -24px rgba(16, 30, 62, .4), 0 1px 3px -1px rgba(16, 30, 62, .06);
}
.lp-secure {
    display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 4px 12px 4px 4px; border-radius: 11px;
    background: linear-gradient(135deg, #edfbf3 0%, #f5fcf8 100%); border: 1px solid #cdeedb;
    color: #0a6b33; font-size: .74rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; text-decoration: none;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
[dir="rtl"] .lp-secure { padding: 4px 4px 4px 12px; }
.lp-secure:hover { border-color: #9fdcb9; box-shadow: 0 6px 16px -10px rgba(10, 133, 61, .7); transform: translateY(-1px); color: #0a6b33; }
.lp-secure-ic {
    width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; flex: none;
    background: linear-gradient(135deg, #16b35a 0%, #0a853d 100%); color: #fff; font-size: .78rem;
    box-shadow: 0 4px 10px -4px rgba(10, 133, 61, .75), 0 1px 0 rgba(255, 255, 255, .35) inset;
}
.lp-foot-links { display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: nowrap; flex: 1 1 auto; min-width: 0; }
.lp-foot-links a {
    position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 7px 8px; border-radius: 10px;
    color: #3a4660; text-decoration: none; font-size: .75rem; font-weight: 600; white-space: nowrap;
    transition: color .25s, background .25s;
}
.lp-foot-links a + a::before {
    content: ''; position: absolute; inset-inline-start: -4px; top: 50%; width: 3px; height: 3px; margin-top: -1.5px;
    border-radius: 50%; background: #c4cbd9; pointer-events: none;
}
.lp-foot-links a i { font-size: .95rem; color: #8090a8; transition: color .25s, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.lp-foot-links a:hover { background: var(--lp-blue-l); color: var(--lp-blue); }
.lp-foot-links a:hover i { color: var(--lp-blue); transform: translateY(-1px) scale(1.08); }
.lp-foot-links a[aria-current] { background: var(--lp-blue-l); color: var(--lp-blue); }
.lp-foot-links a[aria-current] i { color: var(--lp-blue); }
.lp-foot-legal {
    display: flex; align-items: center; justify-content: center; gap: 4px 9px; flex-wrap: wrap; margin: 0;
    font-size: .7rem; line-height: 1.4; color: #6a768c; letter-spacing: .01em; text-align: center;
}
.lp-foot-legal b { color: #24304a; font-weight: 700; }
.lp-foot-legal em { font-family: var(--lp-serif); font-style: italic; font-size: .76rem; color: #4d5870; }
[dir="rtl"] .lp-foot-legal em { font-style: normal; font-size: .7rem; }
.lp-foot-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--lp-gold); box-shadow: 0 0 0 3px rgba(212, 166, 80, .2); }

/* Accessibilité */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(11, 107, 61, .55); outline-offset: 2px; }
.lp-input input:focus-visible, .lp-combo-input:focus-visible { outline: 0; }
@media (prefers-reduced-motion: reduce) {
    .lp-card, .lp-foot, .lp-combo-pop, .lp-verified-ic, .lp-slide.is-enter, .lp-env-dot::after { animation: none; }
    .lp-btn, .lp-combo-toggle i, .lp-space, .lp-seg::before, .lp-logo, .lp-secure { transition: none; }
    .lp-skel i { animation: none; }
}

/* ---------------------------------------------------------- RTL (arabe) */
/* La composition (photo à gauche, carte à droite) est conservée. */
[dir="rtl"] .lp { flex-direction: row-reverse; }
[dir="rtl"] .lp-headline, [dir="rtl"] .lp-title { letter-spacing: 0; }

/* ---------------------------------------------------------- Responsive */
@media (max-width: 1280px) and (min-width: 992px) {
    :root { --lp-left-w: 56%; }
    .lp-hero { width: 76%; }
    .lp-stats li { padding-inline-end: 14px; }
    .lp-stats li + li { padding-inline-start: 14px; }
}
/* Écrans peu hauts (portables 768 px) : compaction verticale */
@media (max-height: 820px) and (min-width: 992px) {
    .lp-brand-plate { width: clamp(150px, 11vw, 190px); padding: 6px 10px; }
    .lp-headline { font-size: clamp(2rem, 3.4vw, 3.2rem); }
    .lp-lead { font-size: .95rem; }
    .lp-car-track { height: clamp(100px, 17vh, 150px); }
    .lp-logo { width: 92px; }
    .lp-head { padding-bottom: 8px; margin-bottom: 10px; }
    .lp-space { min-height: 84px; padding-top: 12px; }
    .lp-space-ic { font-size: 1.9rem; }
}
@media (max-height: 700px) and (min-width: 992px) {
    .lp-stats small, .lp-lead { display: none; }
}

/* Tablette & mobile : une colonne, formulaire au premier plan */
@media (max-width: 991.98px) {
    .lp, [dir="rtl"] .lp { flex-direction: column; }
    .lp-left { flex: none; max-width: none; width: 100%; }
    .lp-hero { width: 100%; height: 100%; opacity: .55; }
    .lp-curve { display: none; }
    .lp-left-in { padding: 20px 20px 26px; }
    .lp-brand { flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; }
    .lp-brand-plate { width: 140px; border-radius: 14px; padding: 5px 8px; }
    .lp-brand-sign { margin: 0; font-size: .64rem; max-width: 24ch; }
    .lp-rule { display: none; }
    .lp-headline { font-size: clamp(1.6rem, 6vw, 2.3rem); margin-top: 14px; }
    .lp-headline span { display: inline; }
    .lp-headline span::after { content: ' '; }
    .lp-lead { font-size: .92rem; }
    .lp-stats, .lp-carousel { display: none; }
    .lp-right { padding: 18px 14px 22px; justify-content: flex-start; }
    .lp-envbar, .lp-card, .lp-foot { width: 100%; max-width: 620px; }
    .lp-card { padding: 18px 16px 20px; }
}
@media (max-width: 575.98px) {
    .lp-head { gap: 10px; }
    .lp-logo { width: 130px; }
    .lp-lang a { padding: 0 8px; min-height: 32px; font-size: .74rem; gap: 5px; }
    .lp-env a { padding: 0 9px; font-size: .68rem; }
    .lp-foot-bar { flex-direction: column; align-items: stretch; padding: 6px; }
    .lp-secure { align-self: center; }
    .lp-foot-links { justify-content: center; flex-wrap: wrap; gap: 4px 7px; }
    .lp-foot-links a { padding: 6px 8px; }
    .lp-title { font-size: 1.55rem; }
    .lp-spaces { grid-template-columns: 1fr; }
    .lp-space { min-height: 0; }
    .lp-options { flex-wrap: wrap; }
}
@media (max-width: 359.98px) {
    .lp-head { flex-direction: column; align-items: center; }
    .lp-head-tools { align-items: center; }
}

/* ---------------------------------------------------------- Finition premium Al-Andalus */
/* Motif géométrique (étoile à 8 branches) très discret sur le panneau gauche */
.lp-left::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(600px 380px at 0% 100%, rgba(212, 166, 80, .16), transparent 65%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='1'%3E%3Cpath d='M32 7l7.3 17.7L57 32l-17.7 7.3L32 57l-7.3-17.7L7 32l17.7-7.3z'/%3E%3Crect x='18' y='18' width='28' height='28' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");
}
/* Plaque du logo : liseré or */
.lp-brand-plate { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .6), 0 0 0 5px rgba(212, 166, 80, .35); }
/* Carte : profondeur plus douce, verre très léger */
.lp-card {
    border-color: rgba(13, 27, 67, .07);
    box-shadow: 0 34px 80px -40px rgba(6, 64, 42, .45), 0 10px 24px -14px rgba(13, 27, 67, .12);
}
.lp-card::before { left: 0; right: 0; top: 0; height: 4px; border-radius: 16px 16px 0 0; background: linear-gradient(90deg, #07532e, #0b6b3d 45%, #d4a650); }
/* Champs : focus vert + halo */
.lp-input, .lp-combo-ctl { transition: border-color .18s, box-shadow .18s, background .18s; }
.lp-input:focus-within, .lp-combo-ctl:focus-within { border-color: #0b6b3d; background: #fff; box-shadow: 0 0 0 4px rgba(11, 107, 61, .12); }
/* Bouton principal : reflet animé au survol */
.lp-btn-primary { overflow: hidden; letter-spacing: .01em; }
.lp-btn-primary::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-18deg);
    transition: left .6s cubic-bezier(.22, .8, .3, 1);
}
.lp-btn-primary:hover::after { left: 120%; }
/* Accès aux espaces : élévation au survol */
.lp-space { transition: transform .2s cubic-bezier(.22, .8, .3, 1), box-shadow .2s, border-color .2s; }
.lp-space:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(6, 64, 42, .45); }
@media (prefers-reduced-motion: reduce) { .lp-btn-primary::after, .lp-space { transition: none; } }
