/* =====================================================================
   EASY SCHOOL — Page de connexion multi-établissements
   Reproduction de la maquette officielle (assets/img/Maquette Login.png).
   Préfixe .lp- ; aucune dépendance au reste de l'application.
   ===================================================================== */
:root {
    --lp-navy:    #101e3e;   /* bleu nuit profond (fond) */
    --lp-navy-2:  #0b2559;   /* titres */
    --lp-ink:     #14213d;   /* texte principal */
    --lp-blue:    #1d5fd6;   /* bleu royal (actions) */
    --lp-blue-d:  #174dbb;
    --lp-blue-l:  #eaf2ff;   /* surlignage */
    --lp-gold:    #d9b25a;   /* accents dorés */
    --lp-gold-d:  #c79a3a;
    --lp-ivory:   #fbfaf6;
    --lp-green:   #16a34a;
    --lp-red:     #dc2626;
    --lp-muted:   #5b6b86;
    --lp-line:    #cfd9e8;
    --lp-line-2:  #e4eaf3;
    --lp-radius:  10px;
    --lp-card-r:  22px;
    --lp-font:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --lp-serif:   'Playfair Display', Georgia, 'Times New Roman', serif;
    --lp-shadow:  0 30px 70px -30px rgba(2, 8, 30, .75), 0 0 0 1px rgba(255, 255, 255, .06);
}

/* ---------------------------------------------------------- Gabarit */
.es-auth-body {
    margin: 0; min-height: 100vh; min-height: 100dvh;
    background: var(--lp-navy); 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-navy); isolation: isolate;
}
/* Photo de fond (pseudo-élément : miroir automatique en RTL) */
.lp::after {
    content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(16, 30, 62, 0) 0%, rgba(16, 30, 62, 0) 70%, rgba(9, 18, 40, .55) 100%),
        var(--lp-navy) url('../img/login/classe.jpg') center center / cover no-repeat;
}
@supports (background-image: url('x.webp')) {
    .lp::after { background-image:
        linear-gradient(180deg, rgba(16, 30, 62, 0) 0%, rgba(16, 30, 62, 0) 70%, rgba(9, 18, 40, .55) 100%),
        url('../img/login/classe.webp'); }
}
.lp::before { /* filtre bleu nuit : lisibilité des textes sur la photo */
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(90deg, rgba(16, 30, 62, .55) 0%, rgba(16, 30, 62, .18) 28%, rgba(16, 30, 62, 0) 50%);
}

/* ---------------------------------------------------------- Panneau gauche */
.lp-left {
    flex: 0 0 61.6%; max-width: 61.6%; position: relative; color: #fff;
    display: flex; flex-direction: column;
}
.lp-left-in {
    display: flex; flex-direction: column; flex: 1;
    padding: clamp(28px, 4.2vh, 44px) clamp(24px, 3.4vw, 64px) clamp(22px, 3vh, 30px) clamp(28px, 4vw, 70px);
}
.lp-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.lp-brand-plate {
    display: inline-flex; align-items: center; justify-content: center;
    width: clamp(160px, 15vw, 236px); padding: 8px 12px; border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .5) inset;
}
.lp-brand-plate picture, .lp-logo picture { display: block; }
.lp-brand-plate img { width: 100%; height: auto; aspect-ratio: 958 / 731; object-fit: contain; display: block; }
.lp-brand-sign {
    margin: 4px 0 0 4px; font-size: clamp(.7rem, .78vw, .82rem); font-weight: 600; letter-spacing: .16em;
    text-transform: uppercase; color: rgba(255, 255, 255, .88); line-height: 1.5; max-width: 34ch;
}
.lp-rule { display: block; width: 46px; height: 3px; border-radius: 3px; background: var(--lp-gold); margin: 10px 0 0 4px; }

.lp-headline {
    margin: clamp(18px, 3.6vh, 38px) 0 0 4px; font-family: var(--lp-serif); font-weight: 700;
    font-size: clamp(2.1rem, 3.6vw, 3.55rem); line-height: 1.06; letter-spacing: -.01em;
    text-shadow: 0 6px 30px rgba(0, 0, 0, .35); max-width: 12ch;
}
.lp-headline span { display: block; }
.lp-headline .gold { color: var(--lp-gold); }

.lp-features {
    list-style: none; margin: clamp(20px, 4vh, 40px) 0 0 4px; padding: 0;
    display: flex; flex-wrap: wrap; gap: clamp(18px, 2.4vw, 44px);
}
.lp-features li { display: flex; flex-direction: column; gap: 12px; min-width: 150px; max-width: 190px; }
.lp-feature-ic {
    width: clamp(52px, 4.2vw, 66px); height: clamp(52px, 4.2vw, 66px); border-radius: 50%;
    border: 2px solid var(--lp-gold); display: grid; place-items: center; color: var(--lp-gold);
    font-size: clamp(1.3rem, 1.6vw, 1.75rem); background: rgba(16, 30, 62, .35); backdrop-filter: blur(2px);
}
.lp-feature-tx { font-size: clamp(.86rem, .95vw, 1rem); line-height: 1.35; font-weight: 500; color: rgba(255, 255, 255, .95); }

.lp-bar {
    list-style: none; margin: auto 0 0; padding: clamp(14px, 2.4vh, 22px) 0 0;
    display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(14px, 1.6vw, 26px);
    font-size: clamp(.86rem, .95vw, 1rem); font-weight: 500;
}
.lp-bar li { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; }
.lp-bar li + li { padding-inline-start: clamp(14px, 1.6vw, 26px); border-inline-start: 1px solid rgba(255, 255, 255, .35); }
.lp-bar i { color: var(--lp-gold); font-size: 1.35em; }

/* ---------------------------------------------------------- Panneau droit */
.lp-right {
    flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: flex-start;
    padding: clamp(14px, 2.2vh, 24px) clamp(16px, 2.6vw, 44px) clamp(14px, 2.2vh, 24px) 0;
}
.lp-card {
    width: min(100%, clamp(460px, 30vw, 580px)); min-height: min(72vh, 900px); background: #fff; color: var(--lp-ink);
    border-radius: var(--lp-card-r); border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: var(--lp-shadow);
    padding: clamp(18px, 2.6vh, 30px) clamp(22px, 2vw, 34px) clamp(14px, 2vh, 22px);
    max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); overflow: auto;
    display: flex; flex-direction: column;
    animation: lp-rise .55s cubic-bezier(.22, .8, .3, 1) both;
}
@keyframes lp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.lp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: clamp(6px, 1.2vh, 12px); }
.lp-logo { display: inline-block; width: clamp(96px, 7.4vw, 124px); margin-inline-start: 2px; }
.lp-logo img { width: 100%; height: auto; aspect-ratio: 958 / 731; object-fit: contain; display: block; }
.lp-lang { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; padding-top: 6px; font-size: .86rem; font-weight: 700; letter-spacing: .04em; }
.lp-lang a { display: inline-flex; align-items: center; gap: 6px; color: var(--lp-muted); text-decoration: none; padding: 5px 7px; border-radius: 8px; transition: color .15s, background .15s, box-shadow .15s; }
.lp-lang a:hover { color: var(--lp-blue); background: var(--lp-blue-l); }
.lp-lang a.on { color: var(--lp-navy-2); background: var(--lp-blue-l); box-shadow: inset 0 0 0 1px rgba(20, 60, 140, .16); }
.lp-flag { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); flex-shrink: 0; }
.lp-lang a:not(.on) .lp-flag { filter: saturate(.55); opacity: .82; }
.lp-lang a:hover .lp-flag, .lp-lang a.on .lp-flag { filter: none; opacity: 1; }
.lp-lang .sep { color: #b7c2d6; }

.lp-title {
    font-family: var(--lp-serif); font-weight: 700; color: var(--lp-navy-2);
    font-size: clamp(1.55rem, 1.9vw, 2.05rem); line-height: 1.12; margin: 0 0 6px; letter-spacing: -.01em;
}
.lp-sub { margin: 0 0 clamp(10px, 2vh, 20px); color: var(--lp-muted); font-size: clamp(.86rem, .9vw, .95rem); 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-field { margin-bottom: clamp(8px, 1.6vh, 16px); position: relative; }
fieldset.lp-field { border: 0; padding: 0; min-width: 0; }
.lp-label { display: block; font-size: .92rem; font-weight: 700; 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; min-height: 0; }
.lp-err:empty { display: none; }

/* Champs */
.lp-input {
    position: relative; display: flex; align-items: center; background: #fff;
    border: 1.5px 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(29, 95, 214, .14); }
.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: 15px; color: #7d8ba3; font-size: 1.05rem; pointer-events: none; }
.lp-input input {
    flex: 1; width: 100%; min-height: clamp(46px, 4.8vh, 52px); border: 0; outline: 0; background: transparent;
    padding: 0 46px; font: inherit; font-size: .95rem; color: var(--lp-ink); border-radius: var(--lp-radius);
}
.lp-input input::placeholder { color: #8a97ad; }
.lp-input.is-disabled { background: #f6f8fb; }
.lp-eye {
    position: absolute; inset-inline-end: 6px; width: 40px; height: 40px; border: 0; background: none;
    color: #6f7d95; border-radius: 8px; display: grid; place-items: center; cursor: pointer; font-size: 1.15rem;
    transition: color .15s, background .15s;
}
.lp-eye:hover, .lp-eye:focus-visible { color: var(--lp-blue); background: var(--lp-blue-l); outline: 0; }
.lp-eye:focus-visible { box-shadow: 0 0 0 3px rgba(29, 95, 214, .3); }

/* Sélecteur d'établissement (combobox) */
.lp-combo { position: relative; }
.lp-combo-ctl {
    position: relative; display: flex; align-items: center; background: #fff;
    border: 1.5px solid var(--lp-line); border-radius: var(--lp-radius);
    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(29, 95, 214, .14); }
.lp-combo-ic { position: absolute; inset-inline-start: 15px; color: #7d8ba3; font-size: 1.05rem; pointer-events: none; }
.lp-combo-input {
    flex: 1; width: 100%; min-height: clamp(46px, 4.8vh, 52px); border: 0; outline: 0; background: transparent;
    padding-inline: 46px 82px; font: inherit; font-size: .95rem; color: var(--lp-ink); border-radius: var(--lp-radius);
    text-overflow: ellipsis;
}
.lp-combo-input::placeholder { color: #8a97ad; }
.lp-combo.has-value .lp-combo-input { font-weight: 600; }
.lp-combo-btn {
    position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0;
    background: none; color: #6f7d95; border-radius: 8px; display: grid; place-items: center; cursor: pointer;
    font-size: .95rem; 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-toggle { inset-inline-end: 6px; }
.lp-combo-toggle i { transition: transform .2s; }
.lp-combo.is-open .lp-combo-toggle i { transform: rotate(180deg); }
.lp-combo-clear { inset-inline-end: 42px; font-size: .8rem; }

.lp-combo-pop {
    position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 6px);
    background: #fff; border: 1.5px 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;
}
@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::-webkit-scrollbar { width: 8px; }
.lp-combo-list::-webkit-scrollbar-thumb { background: #d3dbe8; border-radius: 8px; }
.lp-option {
    display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 12px; cursor: pointer;
    border-inline-start: 3px solid transparent; min-height: 50px; transition: background .12s;
}
.lp-option:hover, .lp-option.is-active { background: var(--lp-blue-l); border-inline-start-color: var(--lp-blue); }
.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-logo {
    flex: none; width: 34px; height: 34px; border-radius: 9px; overflow: hidden; display: grid; place-items: center;
    background: var(--cb, #1e56d6); color: #fff; font-weight: 800; font-size: .68rem; letter-spacing: .02em;
    box-shadow: 0 0 0 1px rgba(16, 30, 62, .08) inset;
}
.lp-school-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.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); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-school-tx small .sep { margin: 0 6px; color: #b7c2d6; }
.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-verified i { font-size: 1.05rem; }
.lp-combo-status { padding: 14px 16px; font-size: .86rem; color: var(--lp-muted); display: flex; align-items: center; gap: 10px; }
.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-combo-foot a:hover { text-decoration: underline; }

/* Établissement sélectionné (vérifié) — masqué pendant que la liste est ouverte */
.lp-combo.is-open .lp-combo-sel { display: none; }
.lp-combo-sel {
    display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 8px 12px;
    background: var(--lp-blue-l); border: 1px solid #cfe0ff; border-inline-start: 3px solid var(--lp-blue); border-radius: 10px;
    animation: lp-pop .22s ease-out both;
}
.lp-combo-sel .lp-school-tx b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp-combo-sel .lp-verified { margin-inline-start: auto; animation: lp-badge .4s cubic-bezier(.34, 1.4, .64, 1) both; }
@keyframes lp-badge { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Skeleton de chargement */
.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; } }

/* Profils segmentés */
.lp-profiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lp-profile {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: clamp(44px, 4.6vh, 50px); padding: 6px 6px; min-width: 0;
    border: 1.5px solid var(--lp-line); border-radius: var(--lp-radius); background: #fff; color: var(--lp-navy-2);
    font-size: .86rem; font-weight: 700; cursor: pointer; user-select: none; text-align: center; margin: 0;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .1s;
}
.lp-profile i { font-size: 1.05rem; }
.lp-profile span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-profile:hover { background: var(--lp-blue-l); border-color: #b9cdf3; }
.lp-profile.on { background: var(--lp-blue); border-color: var(--lp-blue); color: #fff; box-shadow: 0 10px 22px -12px rgba(29, 95, 214, .8); }
.lp-profile:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(29, 95, 214, .25); }
.lp-profile:active { transform: scale(.985); }
/* Professeur / Parent : liens vers leur propre page de connexion */
.lp-profile-go { position: relative; text-decoration: none; }
.lp-profile-go .lp-go-ic {
    position: absolute; top: 4px; inset-inline-end: 5px; font-size: .62rem; opacity: .45;
    transition: opacity .15s, transform .2s;
}
.lp-profile-go:hover .lp-go-ic, .lp-profile-go:focus-visible .lp-go-ic { opacity: 1; transform: translate(1px, -1px); }
.lp-profile-go:hover { color: var(--lp-blue); }
.lp-profile-go.is-going { background: var(--lp-blue); border-color: var(--lp-blue); color: #fff; }
[dir="rtl"] .lp-profile-go .lp-go-ic { transform: scaleX(-1); }

/* Transition vers l'espace Professeur / Parent */
.lp-going {
    position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
    background: radial-gradient(circle at 50% 45%, rgba(29, 95, 214, .55), rgba(8, 17, 40, .92) 70%);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .3s ease;
}
.lp-going.on { opacity: 1; }
.lp-going-in { display: flex; flex-direction: column; align-items: center; gap: 16px; color: #fff; text-align: center; padding: 24px; }
.lp-going-ic {
    width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem;
    color: var(--lp-gold); border: 2px solid var(--lp-gold); background: rgba(255, 255, 255, .06);
    box-shadow: 0 0 0 10px rgba(217, 178, 90, .12); animation: lp-pulse 1.4s ease-in-out infinite;
}
.lp-going-tx { font-family: var(--lp-serif); font-size: 1.45rem; font-weight: 700; letter-spacing: .01em; }
.lp-going-bar { width: 180px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.lp-going-bar::after { content: ''; display: block; height: 100%; width: 40%; background: var(--lp-gold); border-radius: 3px; animation: lp-load 1s ease-in-out infinite; }
@keyframes lp-pulse { 50% { box-shadow: 0 0 0 18px rgba(217, 178, 90, 0); } }
@keyframes lp-load { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

/* ---------------------------------------------------------- Diaporama premium */
.lp--slides::after { display: none; }
.lp--slides .lp-features { display: none; }
.lp-show { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.lp-show-win {
    position: absolute; top: 0; bottom: 0; left: 14%; width: 48%; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20%, #000 90%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 20%, #000 90%, transparent 100%);
}
.lp-slide { position: absolute; inset: 0 0 auto; height: var(--h, 100%); margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.lp-slide.on { opacity: 1; }
.lp-slide[style*="--h"] { -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }
.lp-slide picture, .lp-slide img { display: block; width: 100%; height: 100%; }
.lp-slide img {
    object-fit: cover; object-position: var(--pos, 50% 50%);
    transform: scale(1.02); transform-origin: var(--pos, 50% 50%);
}
.lp-slide.on img { animation: lp-burns 9s ease-out both; }
@keyframes lp-burns { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.lp--slides::before {
    background:
        linear-gradient(90deg, rgba(12, 24, 52, .9) 0%, rgba(12, 24, 52, .55) 26%, rgba(12, 24, 52, .08) 44%, rgba(12, 24, 52, 0) 58%),
        linear-gradient(180deg, rgba(12, 24, 52, .25) 0%, rgba(12, 24, 52, 0) 25%, rgba(12, 24, 52, 0) 62%, rgba(9, 18, 40, .85) 100%);
}
/* Légende + puces (dans la fenêtre photo, au-dessus de la barre) */
.lp-show-cap {
    position: absolute; right: 38%; width: min(27vw, 400px); bottom: clamp(18px, 3vh, 30px);
    display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: end;
    padding-inline-end: clamp(18px, 2vw, 34px); pointer-events: auto; color: #fff;
}
.lp-show-tag {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px;
    font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--lp-gold); background: rgba(10, 20, 44, .55); border: 1px solid rgba(217, 178, 90, .45);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lp-show-tx {
    margin: 0; font-family: var(--lp-serif); font-weight: 700; font-style: italic;
    font-size: clamp(1.05rem, 1.45vw, 1.5rem); line-height: 1.2; text-shadow: 0 4px 22px rgba(0, 0, 0, .6);
    transition: opacity .5s ease, transform .5s ease;
}
.lp-show-tx.is-out { opacity: 0; transform: translateY(6px); }
.lp-show-dots { display: flex; gap: 8px; }
.lp-dot { border: 0; padding: 6px 0; background: none; cursor: pointer; }
.lp-dot span {
    display: block; width: 22px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35);
    position: relative; overflow: hidden; transition: width .3s ease, background .3s;
}
.lp-dot:hover span { background: rgba(255, 255, 255, .6); }
.lp-dot.on span { width: 46px; }
.lp-dot.on span::after {
    content: ''; position: absolute; inset: 0; background: var(--lp-gold); transform-origin: left;
    animation: lp-prog var(--lp-dur, 7s) linear both;
}
@keyframes lp-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Options */
.lp-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 2px clamp(10px, 2vh, 20px); }
.lp-remember { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: .86rem; color: var(--lp-ink); font-weight: 500; margin: 0; min-height: 28px; }
.lp-remember input { width: 18px; height: 18px; margin: 0; border-radius: 5px; accent-color: var(--lp-blue); cursor: pointer; }
.lp-forgot { font-size: .86rem; font-weight: 700; color: var(--lp-blue); text-decoration: none; padding: 4px 0; }
.lp-forgot:hover, .lp-help:hover, .lp-back:hover { text-decoration: underline; }

/* Boutons */
.lp-btn {
    width: 100%; min-height: clamp(48px, 5vh, 54px); border-radius: var(--lp-radius); display: inline-flex; align-items: center; justify-content: center;
    gap: 10px; font: inherit; font-size: .98rem; 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(29, 95, 214, .35); }
.lp-btn-primary {
    border: 0; color: #fff; background: linear-gradient(90deg, #1f63dc 0%, #1a52c2 100%);
    box-shadow: 0 14px 28px -14px rgba(23, 77, 187, .9); margin-bottom: clamp(10px, 1.4vh, 14px);
}
.lp-btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 18px 30px -14px rgba(23, 77, 187, .95); }
.lp-btn-primary:active { transform: none; }
.lp-btn-primary:disabled { cursor: progress; filter: none; transform: none; opacity: .85; }
.lp-btn-ic { display: grid; place-items: center; font-size: 1rem; }
.lp-btn-outline { background: #fff; color: var(--lp-blue); border: 1.5px solid var(--lp-blue); }
.lp-btn-outline:hover { background: var(--lp-blue-l); }
.lp-btn-outline i { font-size: 1.15rem; }
.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;
}
@keyframes lp-spin { to { transform: rotate(360deg); } }
.lp-btn.is-loading .lp-btn-ic { display: none; }

/* Panneaux secondaires */
.lp--panel .lp-card { min-height: 0; }
.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 14px; border: 1.5px 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-code { margin-bottom: 14px; }
.lp-code .lp-btn-primary { margin-top: 6px; }
.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(46px, 4.8vh, 52px); border: 0; outline: 0; background: transparent; padding-inline: 46px 44px; font: inherit; font-size: .95rem; color: var(--lp-ink); border-radius: var(--lp-radius); appearance: none; -webkit-appearance: none; cursor: pointer; }
.lp-select-ic { position: absolute; inset-inline-end: 16px; color: #6f7d95; font-size: .9rem; pointer-events: none; }
.lp-note { display: flex; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fff8e6; border: 1px solid #f5e1a8; color: #7a5a12; font-size: .84rem; line-height: 1.45; }
.lp-note i { color: var(--lp-gold-d); flex: none; margin-top: 2px; }

/* Pied de carte */
.lp-foot {
    margin-top: auto; padding-top: clamp(10px, 1.6vh, 16px); border-top: 1px solid var(--lp-line-2);
    display: flex; align-items: center; gap: 12px; font-size: .86rem; color: var(--lp-muted);
}
.lp-year { font-weight: 500; }
.lp-help { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--lp-ink); font-weight: 600; text-decoration: none; padding-inline-start: 14px; border-inline-start: 1px solid var(--lp-line); }
.lp-help i { font-size: 1.15rem; color: var(--lp-navy-2); }
.lp-version { font-size: .7rem; color: #a3aec2; letter-spacing: .04em; }

/* 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(29, 95, 214, .55); outline-offset: 2px; }
.lp-input input:focus-visible, .lp-combo-input:focus-visible { outline: 0; }

@media (prefers-reduced-motion: reduce) {
    .lp-card, .lp-combo-pop, .lp-combo-sel, .lp-combo-sel .lp-verified { animation: none; }
    .lp-btn, .lp-profile, .lp-combo-toggle i { transition: none; }
    .lp-skel i { animation: none; }
    .lp-slide.on img, .lp-going-ic, .lp-going-bar::after { animation: none; }
    .lp-dot.on span::after { animation: none; transform: none; }
}

/* ---------------------------------------------------------- RTL (arabe) */
/* La composition visuelle (photo à gauche, carte à droite) est conservée :
   la photo contient des textes qui ne doivent pas être mis en miroir. */
[dir="rtl"] .lp { flex-direction: row-reverse; }
[dir="rtl"] .lp-left-in > * { align-self: flex-end; }
[dir="rtl"] .lp-brand { align-items: flex-end; }
[dir="rtl"] .lp-brand-sign, [dir="rtl"] .lp-rule { margin-inline: 0 4px; }
[dir="rtl"] .lp-headline, [dir="rtl"] .lp-features { margin-inline: 0 4px; }
[dir="rtl"] .lp-headline, [dir="rtl"] .lp-title { letter-spacing: 0; }
[dir="rtl"] .lp-right { justify-content: flex-end; padding-inline: clamp(16px, 2.6vw, 44px) 0; }
[dir="rtl"] .lp-btn-ic i { transform: scaleX(-1); }
[dir="rtl"] .lp-back i { transform: scaleX(-1); }
[dir="rtl"] .lp-show-win { left: 38%; }
[dir="rtl"] .lp-show-cap { right: auto; left: 38%; }
[dir="rtl"] .lp--slides::before { transform: scaleX(-1); }

/* ---------------------------------------------------------- Responsive */
@media (max-width: 1440px) and (min-width: 992px) {
    .lp-profile { font-size: .76rem; gap: 5px; padding: 6px 4px; }
}
@media (max-width: 1280px) {
    .lp-left { flex-basis: 58%; max-width: 58%; }
    .lp-show-win { left: 10%; }
    .lp-show-cap { right: 42%; }
    .lp-card { width: min(100%, 520px); }
}
@media (max-width: 1100px) and (min-width: 992px) {
    .lp-left { flex-basis: 54%; max-width: 54%; }
    .lp-show-win { left: 6%; }
    .lp-show-cap { right: 46%; }
    .lp-features li { min-width: 130px; }
}
/* Écrans peu hauts (portables 768 px) : compaction verticale */
@media (max-height: 760px) and (min-width: 992px) {
    .lp-brand-plate { width: clamp(140px, 12vw, 190px); }
    .lp-headline { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
    .lp-features li { gap: 8px; }
}

/* Tablette & mobile : une colonne, formulaire au premier plan */
@media (max-width: 991.98px) {
    .lp, [dir="rtl"] .lp { flex-direction: column; }
    [dir="rtl"] .lp-left-in > * { align-self: auto; }
    [dir="rtl"] .lp-right { padding-inline: 16px; }
    .lp::after { background-position: 60% 20%; background-image:
        linear-gradient(180deg, rgba(16, 30, 62, 0) 0%, rgba(16, 30, 62, 0) 70%, rgba(9, 18, 40, .55) 100%),
        url('../img/login/classe-mobile.jpg'); }
    @supports (background-image: url('x.webp')) {
        .lp::after { background-image:
            linear-gradient(180deg, rgba(16, 30, 62, 0) 0%, rgba(16, 30, 62, 0) 70%, rgba(9, 18, 40, .55) 100%),
            url('../img/login/classe-mobile.webp'); }
    }
    .lp::before { background: linear-gradient(180deg, rgba(16, 30, 62, .35) 0%, rgba(16, 30, 62, .55) 60%, rgba(16, 30, 62, .92) 100%); }
    .lp--slides::after { display: none; }
    .lp-show { bottom: auto; height: min(78vh, 620px); }
    .lp-show-win { left: 0; width: 100%;
        -webkit-mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 100%);
                mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 100%); }
    .lp--slides::before { background: linear-gradient(180deg, rgba(12, 24, 52, .55) 0%, rgba(12, 24, 52, .35) 30%, rgba(12, 24, 52, .7) 60%, rgba(16, 30, 62, 1) 78%); }
    .lp-show-cap { display: none; }
    .lp-left { flex: none; max-width: none; width: 100%; }
    .lp-left-in { padding: 22px 20px 14px; }
    .lp-brand { flex-direction: row; align-items: center; gap: 14px; }
    .lp-brand-plate { width: 132px; border-radius: 14px; padding: 6px 8px; }
    .lp-brand-sign { margin: 0; max-width: 22ch; font-size: .68rem; }
    .lp-rule { display: none; }
    .lp-headline { font-size: clamp(1.45rem, 5.2vw, 2rem); margin: 16px 0 0; max-width: none; }
    .lp-headline span { display: inline; }
    .lp-headline span::after { content: ' '; }
    .lp-features, .lp-bar { display: none; }
    .lp-right { padding: 0 16px 24px; align-items: flex-start; }
    .lp-card { width: 100%; max-width: 640px; min-height: 0; margin: 0 auto; max-height: none; overflow: visible; padding: 20px 20px 14px; border-radius: 18px; }
    .lp-combo-list { max-height: 46vh; }
}
@media (max-width: 991.98px) and (orientation: landscape) {
    .lp-headline { display: none; }
}
@media (max-width: 575.98px) {
    .lp-left-in { padding: 18px 16px 12px; }
    .lp-brand-plate { width: 112px; }
    .lp-brand-sign { font-size: .62rem; letter-spacing: .12em; }
    .lp-headline { font-size: clamp(1.3rem, 6vw, 1.7rem); margin-top: 12px; }
    .lp-card { padding: 18px 16px 12px; border-radius: 16px; }
    .lp-logo { width: 92px; }
    .lp-title { font-size: 1.45rem; }
    .lp-profiles { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
    .lp-profile { font-size: .76rem; gap: 6px; padding: 6px 4px; }
    .lp-profile i { font-size: .95rem; }
    .lp-options { gap: 8px; }
    .lp-remember, .lp-forgot { font-size: .8rem; }
    .lp-foot { flex-wrap: wrap; row-gap: 6px; }
    .lp-version { width: 100%; }
    .lp-school-tx b { white-space: normal; }
    .lp-verified span { display: none; }
}
@media (max-width: 420px) {
    .lp-profiles { gap: 6px; }
    .lp-profile { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: .72rem; min-height: 58px; }
    .lp-profile i { font-size: 1.15rem; }
}
