@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/poppins-800-latin.woff2') format('woff2'); }

.lx-page {
    --lx-navy: #2f3453;
    --lx-navy-2: #262a45;
    --lx-rose: #cb6a7f;
    --lx-rose-2: #b9566d;
    --lx-ink: #1d2033;
    --lx-soft: #6b6f85;
    --lx-line: #232638;
    --lx-surface: #ffffff;
    font-family: 'Poppins', 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--lx-ink);
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 18px;
    box-sizing: border-box;
    background:
        radial-gradient(760px 460px at 10% 6%, rgba(203,106,127,.26), transparent 62%),
        radial-gradient(820px 520px at 94% 96%, rgba(47,52,83,.22), transparent 62%),
        #f5efe9;
}
/* Page plein écran : pas de barre d'onglets, donc pas de marge basse */
body { padding-bottom: 0 !important; }
.wa-float { display: none !important; }

.lx-tools { position: absolute; top: 16px; right: 18px; z-index: 5; display: flex; align-items: center; gap: 8px; }
.lx-theme { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(127,127,150,.35); background: color-mix(in srgb, var(--lx-surface) 80%, transparent); color: var(--lx-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .16s ease; }
.lx-theme:hover { transform: rotate(18deg); }
.lx-sun { display: none; }
html.theme-dark .lx-moon { display: none; }
html.theme-dark .lx-sun { display: block; }
.lx-lang { display: flex; padding: 3px; gap: 2px; border-radius: 999px; border: 1px solid rgba(127,127,150,.35); background: color-mix(in srgb, var(--lx-surface) 80%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lx-lang a { padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; text-decoration: none; color: var(--lx-soft); }
.lx-lang a.is-active { background: var(--lx-rose); color: #fff; }

.lx-page *, .lx-page *::before, .lx-page *::after { box-sizing: border-box; }
.lx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lx-card {
    position: relative;
    width: 100%;
    max-width: 880px;
    min-height: 520px;
    display: grid;
    grid-template-columns: 43% 1fr;
    background: var(--lx-surface);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(25, 20, 70, .35);
}

/* ---------- Panneau marine ---------- */
.lx-hero {
    position: relative;
    z-index: 2;
    background: var(--lx-navy);
    border-radius: 8px 0 0 8px;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}
.lx-logo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; display: block; margin: 0 0 26px; }
.lx-hero-txt { margin: 0 0 26px; font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.82); max-width: 250px; }
.lx-hero-btn {
    display: inline-block;
    padding: 9px 26px;
    border-radius: 999px;
    background: var(--lx-rose);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background .16s ease, transform .16s ease;
}
.lx-hero-btn:hover { background: var(--lx-rose-2); transform: translateY(-1px); color: #fff; }

/* Courbe qui mord sur le panneau blanc */
.lx-curve {
    position: absolute;
    left: calc(100% - 1px);
    top: 0;
    width: 58px;
    height: 100%;
    fill: var(--lx-navy);
    pointer-events: none;
}
.lx-curve-m { display: none; }
.lx-fab {
    position: absolute;
    top: 50%;
    left: calc(100% + 18px);
    width: 46px;
    height: 46px;
    margin-top: -23px;
    border-radius: 50%;
    background: var(--lx-rose);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 5px rgba(255,255,255,.28), 0 8px 18px rgba(0,0,0,.22);
    text-decoration: none;
    transition: transform .18s ease, background .18s ease;
}
.lx-fab:hover { transform: scale(1.08); background: var(--lx-rose-2); color: #fff; }

/* ---------- Formulaire ---------- */
.lx-form-side {
    position: relative;
    padding: 50px 56px 34px 76px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0 8px 8px 0;
    background: var(--lx-surface);
}
.lx-head { text-align: center; margin-bottom: 22px; }
.lx-title { margin: 0; font-size: 31px; font-weight: 800; letter-spacing: -.01em; color: var(--lx-ink); line-height: 1.15; }
.lx-sub { margin: 4px 0 0; font-size: 13.5px; font-weight: 500; color: var(--lx-soft); }
.lx-dots { display: flex; justify-content: center; gap: 5px; margin-top: 12px; }
.lx-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--lx-ink); opacity: .35; }
.lx-dots i.on { opacity: 1; }

.lx-alert {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 12.5px; font-weight: 500; line-height: 1.5;
    padding: 10px 14px; border-radius: 14px; margin-bottom: 14px;
}
.lx-alert svg { flex: 0 0 auto; margin-top: 2px; }
.lx-alert-success { background: #e8f5ee; color: #1f7a52; border: 1px solid #bfe3d0; }
.lx-alert-danger  { background: #fbeae5; color: #b5442e; border: 1px solid #f0cfc4; }

.lx-form { display: flex; flex-direction: column; gap: 14px; }
.lx-input-wrap { position: relative; display: flex; align-items: center; }
.lx-input-icon { position: absolute; left: 17px; color: var(--lx-ink); opacity: .55; pointer-events: none; }
.lx-input {
    width: 100%;
    height: 44px;
    border: 1.5px solid var(--lx-line);
    border-radius: 999px;
    background: transparent;
    padding: 0 46px 0 44px;
    font: inherit;
    font-size: 13px;
    color: var(--lx-ink);
    transition: border-color .16s ease, box-shadow .16s ease;
}
.lx-input::placeholder { color: #8a8da0; font-weight: 500; }
.lx-input:focus { outline: none; border-color: var(--lx-rose); box-shadow: 0 0 0 4px rgba(203,106,127,.18); }
.lx-toggle-pass {
    position: absolute; right: 10px; width: 30px; height: 30px;
    border: 0; background: transparent; color: var(--lx-soft);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border-radius: 50%;
    transition: color .15s ease, background .15s ease;
}
.lx-toggle-pass:hover { color: var(--lx-ink); background: rgba(127,127,150,.16); }

.lx-btn-submit {
    width: 100%;
    height: 46px;
    margin-top: 6px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--lx-rose) 0%, var(--lx-rose-2) 100%);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(185,86,109,.32);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.lx-btn-submit:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 12px 22px rgba(185,86,109,.4); }
.lx-btn-submit:active { transform: translateY(0); }

.lx-trust {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 14px; font-size: 11px; color: var(--lx-soft); font-weight: 500;
}

/* ---------- Thème sombre ---------- */
html.theme-dark .lx-page {
    --lx-navy: #23273f;
    --lx-ink: #eceef8;
    --lx-soft: #a3a7bd;
    --lx-line: #4b4f69;
    --lx-surface: #171a29;
    background:
        radial-gradient(760px 460px at 10% 6%, rgba(203,106,127,.20), transparent 62%),
        radial-gradient(820px 520px at 94% 96%, rgba(70,80,160,.22), transparent 62%),
        #0f1115 !important;
}
html.theme-dark .lx-card { box-shadow: 0 24px 60px rgba(0,0,0,.55); }
html.theme-dark .lx-page .lx-input::placeholder { color: #7f8399; }
html.theme-dark .lx-hero { background: var(--lx-navy) !important; }
html.theme-dark .lx-form-side { background: var(--lx-surface) !important; }
html.theme-dark .lx-title, html.theme-dark .lx-sub { color: var(--lx-ink) !important; }
html.theme-dark .lx-sub { color: var(--lx-soft) !important; }
html.theme-dark .lx-alert-success { background: rgba(31,122,82,.18); border-color: rgba(31,122,82,.45); color: #7fd9ad; }
html.theme-dark .lx-alert-danger  { background: rgba(203,106,127,.16); border-color: rgba(203,106,127,.45); color: #f0a5b4; }

/* ---------- Mobile : écran d'application ---------- */
@media (max-width: 860px) {
    .lx-page { padding: 0; align-items: stretch; background: var(--lx-surface); }
    html.theme-dark .lx-page { background: var(--lx-surface) !important; }
    .lx-card { display: block; max-width: none; min-height: 0; border-radius: 0; box-shadow: none !important; }

    .lx-hero {
        border-radius: 0;
        padding: 34px 20px 46px;
        margin-bottom: 0;
    }
    .lx-logo { width: 68px; height: 68px; margin: 0; }
    .lx-hero-txt, .lx-hero-btn { display: none; }

    .lx-curve-d { display: none; }
    .lx-curve-m { display: block; }
    .lx-curve {
        left: 0;
        top: calc(100% - 1px);
        width: 100%;
        height: 38px;
    }
    .lx-fab {
        top: 100%;
        left: 50%;
        margin: 6px 0 0 -23px;
        transform: none;
    }
    .lx-fab svg { transform: rotate(-90deg); }
    .lx-fab:hover { transform: scale(1.06); }

    .lx-form-side { padding: 56px 24px 30px; border-radius: 0; }
    .lx-tools { top: calc(12px + env(safe-area-inset-top, 0px)); right: 14px; }
    .lx-theme, .lx-lang { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); color: #fff; }
    .lx-lang a { color: rgba(255,255,255,.8); }
    .lx-lang a.is-active { color: #fff; }
    .lx-head { margin-bottom: 18px; }
    .lx-title { font-size: 26px; }
    .lx-input { height: 46px; padding-right: 42px; }
    #identifier::placeholder { font-size: 12px; }
    .lx-btn-submit { height: 48px; }
}

/* ================= Ajustements : page figée, champs et bouton ================= */
/* Page figée (connexion) : pas de défilement. L'inscription, plus longue, peut défiler. */
html:has(.lx-lock), html:has(.lx-lock) body { overflow: hidden; height: 100%; }
.lx-lock { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }

/* Logo = retour à l'accueil */
.lx-logo-link { display: block; border-radius: 50%; margin: 0 0 26px; transition: transform .2s ease; }
.lx-logo-link:hover { transform: scale(1.06); }
.lx-logo-link:focus-visible { outline: 3px solid rgba(255,255,255,.75); outline-offset: 4px; }
.lx-logo { margin: 0; }

/* Bouton rond : centré sur la pointe de la courbe, détaché par un anneau */
.lx-fab {
    width: 50px; height: 50px; margin-top: -25px;
    left: calc(100% + 32px);
    box-shadow: 0 0 0 6px var(--lx-surface), 0 10px 22px rgba(185,86,109,.45);
    background: linear-gradient(135deg, #d77589, #b9566d);
}
.lx-fab svg { transition: transform .2s ease; }
.lx-fab:hover { transform: scale(1.06); }
.lx-fab:hover svg { transform: translateX(-3px); }

/* Champs */
.lx-form { gap: 16px; }
.lx-input {
    height: 50px;
    padding: 0 50px 0 56px;
    background: #f5f3f9;
    border: 1.5px solid #e4e1ee;
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: inset 0 1px 2px rgba(30,25,70,.05);
}
.lx-input:hover { border-color: #cdc8df; }
.lx-input:focus {
    background: #fff;
    border-color: var(--lx-rose);
    box-shadow: 0 0 0 4px rgba(203,106,127,.16), 0 8px 18px rgba(185,86,109,.12);
}
.lx-input-icon {
    left: 9px; width: 32px; height: 32px; padding: 8px; border-radius: 50%;
    background: rgba(203,106,127,.14); color: var(--lx-rose-2); opacity: 1;
    transition: background .16s ease, color .16s ease;
}
.lx-input-wrap:focus-within .lx-input-icon { background: var(--lx-rose); color: #fff; }
.lx-toggle-pass { right: 9px; }

/* Bouton principal */
.lx-btn-submit {
    position: relative; overflow: hidden;
    height: 50px; margin-top: 8px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(135deg, #d97b8f 0%, #c0587a 55%, #a94a73 100%);
    letter-spacing: .02em;
    box-shadow: 0 12px 24px rgba(185,86,109,.38), inset 0 1px 0 rgba(255,255,255,.3);
}
.lx-btn-submit::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .65s ease;
}
.lx-btn-submit:hover::after { transform: translateX(120%); }
.lx-btn-submit svg { transition: transform .2s ease; }
.lx-btn-submit:hover svg { transform: translateX(4px); }
.lx-trust { margin-top: 18px; }

/* Thème sombre : on impose nos teintes face aux règles globales des champs */
html.theme-dark .lx-page .lx-input { background: #1f2339 !important; border-color: #363b58 !important; color: var(--lx-ink) !important; box-shadow: none; }
html.theme-dark .lx-page .lx-input:hover { border-color: #4d5379 !important; }
html.theme-dark .lx-page .lx-input:focus { background: #252a47 !important; border-color: var(--lx-rose) !important; box-shadow: 0 0 0 4px rgba(203,106,127,.2); }
html.theme-dark .lx-page .lx-input-icon { background: rgba(203,106,127,.18); color: #f0a5b4; }
html.theme-dark .lx-page .lx-input-wrap:focus-within .lx-input-icon { background: var(--lx-rose); color: #fff; }

/* Mobile : pointe de 38 px, bouton centré dessus */
@media (max-width: 860px) {
    .lx-logo-link { margin: 0; }
    .lx-fab { left: 50%; top: 100%; margin: 12px 0 0 -25px; }
    .lx-form-side { padding-top: 70px; }
}

/* Écrans bas : tout doit tenir sans défilement */
@media (max-height: 660px) {
    .lx-page { padding: 22px 18px; }
    .lx-card { min-height: 0; }
    .lx-form-side { padding-top: 28px; padding-bottom: 18px; }
    .lx-head { margin-bottom: 12px; }
    .lx-title { font-size: 26px; }
    .lx-hero { padding-top: 24px; padding-bottom: 24px; }
    .lx-hero-txt, .lx-logo-link { margin-bottom: 16px; }
    .lx-form { gap: 12px; }
    .lx-input, .lx-btn-submit { height: 46px; }
}
@media (max-width: 860px) and (max-height: 720px) {
    .lx-hero { padding: 20px 20px 38px; }
    .lx-logo-link, .lx-logo { width: 54px; height: 54px; margin: 0; }
    .lx-form-side { padding: 48px 22px 14px; }
    .lx-title { font-size: 23px; }
    .lx-head { margin-bottom: 10px; }
    .lx-dots { margin-top: 8px; }
    .lx-form { gap: 10px; }
    .lx-input, .lx-btn-submit { height: 44px; }
    .lx-trust { margin-top: 12px; }
}

/* ================= Version 4 : dégradé, bouton aligné, souffle autour du rond ================= */
.lx-page { --lx-navy: #2a2f50; }
.lx-card { max-width: 940px; grid-template-columns: 42% 1fr; }

/* Panneau gauche : dégradé radiant (la bordure droite reste unie pour se fondre dans la courbe) */
.lx-hero {
    background:
        radial-gradient(88% 62% at 0% 0%, rgba(124,104,230,.70) 0%, rgba(124,104,230,0) 72%),
        radial-gradient(86% 58% at 0% 100%, rgba(214,116,142,.58) 0%, rgba(214,116,142,0) 72%),
        radial-gradient(60% 40% at 30% 55%, rgba(80,170,215,.14) 0%, rgba(80,170,215,0) 75%),
        #2a2f50;
}
html.theme-dark .lx-page { --lx-navy: #1e2242; }
html.theme-dark .lx-hero {
    background:
        radial-gradient(88% 62% at 0% 0%, rgba(110,92,214,.55) 0%, rgba(110,92,214,0) 72%),
        radial-gradient(86% 58% at 0% 100%, rgba(203,106,127,.42) 0%, rgba(203,106,127,0) 72%),
        #1e2242 !important;
}

/* Contenu du panneau : logo + texte en haut, bouton posé sur la ligne du bouton principal */
.lx-hero { padding: 0; justify-content: flex-start; }
.lx-hero-body {
    position: absolute; left: 0; right: 0; top: 0;
    height: calc(var(--lx-btn-top, 350px) - 18px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 24px 40px 0; text-align: center;
}
.lx-hero-btn {
    position: absolute; left: 50%; top: var(--lx-btn-top, 350px);
    transform: translateX(-50%);
    width: 210px; height: 50px; padding: 0;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    overflow: hidden;
    font-size: 14px; font-weight: 700; letter-spacing: .02em;
    background: linear-gradient(135deg, #d97b8f 0%, #c0587a 55%, #a94a73 100%);
    box-shadow: 0 12px 24px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.3);
    transition: box-shadow .16s ease, filter .16s ease, top .2s ease;
}
.lx-hero-btn:hover { transform: translateX(-50%) translateY(-1px); background: linear-gradient(135deg, #d97b8f 0%, #c0587a 55%, #a94a73 100%); filter: brightness(1.06); }
.lx-hero-btn::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .65s ease;
}
.lx-hero-btn:hover::after { transform: translateX(120%); }
.lx-hero-btn svg { transition: transform .2s ease; }
.lx-hero-btn:hover svg { transform: translateX(4px); }

/* Rond du milieu : plus d'air avec les champs */
.lx-form-side { padding: 50px 56px 34px 116px; }

/* Inscription : plusieurs champs, deux colonnes pour nom / prénom */
.lx-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lx-hint { display: flex; align-items: center; gap: 5px; margin: -6px 0 0 18px; font-size: 11px; color: var(--lx-soft); }
.lx-tag { position: absolute; right: 16px; font-size: 10.5px; font-weight: 600; color: var(--lx-soft); pointer-events: none; }
.lx-alert ul { margin: 0; padding-left: 16px; }
.lx-reg .lx-form { gap: 12px; }
.lx-reg .lx-head { margin-bottom: 16px; }
.lx-reg .lx-form-side { padding-top: 40px; padding-bottom: 26px; }
.lx-reg .lx-input { height: 46px; }
.lx-reg .lx-btn-submit { height: 48px; }

@media (max-width: 860px) {
    .lx-hero-btn, .lx-hero-txt { display: none; }
    .lx-hero-body { position: static; height: auto; padding: 0; }
    .lx-hero {
        padding: 34px 20px 46px;
        background:
            radial-gradient(75% 95% at 12% 0%, rgba(124,104,230,.70) 0%, rgba(124,104,230,0) 70%),
            radial-gradient(75% 95% at 100% 0%, rgba(214,116,142,.55) 0%, rgba(214,116,142,0) 70%),
            #2a2f50;
    }
    html.theme-dark .lx-hero {
        background:
            radial-gradient(75% 95% at 12% 0%, rgba(110,92,214,.55) 0%, rgba(110,92,214,0) 70%),
            radial-gradient(75% 95% at 100% 0%, rgba(203,106,127,.40) 0%, rgba(203,106,127,0) 70%),
            #1e2242 !important;
    }
    .lx-form-side { padding: 70px 24px 30px; }
    .lx-reg .lx-form-side { padding: 70px 24px 26px; }
    .lx-row-2 { gap: 10px; }
}
@media (max-width: 860px) and (max-height: 720px) {
    .lx-hero { padding: 20px 20px 38px; }
    .lx-form-side { padding: 48px 22px 14px; }
}
@media (max-height: 660px) and (min-width: 861px) {
    .lx-form-side { padding: 28px 56px 18px 116px; }
}
.lx-input-wrap:has(.lx-tag) .lx-input { padding-right: 86px; }

/* ================= Version 5 : photo d'événement floutée en fond, textes du panneau ================= */
.lx-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.lx-bg-img {
    position: absolute; inset: -50px;
    background-size: cover; background-position: center;
    filter: blur(26px) saturate(1.25);
    transform: scale(1.06);
}
.lx-bg-voile {
    position: absolute; inset: 0;
    background:
        radial-gradient(120% 90% at 50% 50%, rgba(255,255,255,0) 35%, rgba(30,24,60,.38) 100%),
        linear-gradient(135deg, rgba(247,240,234,.58) 0%, rgba(203,106,127,.26) 55%, rgba(42,47,80,.42) 100%);
}
html.theme-dark .lx-bg-voile {
    background:
        radial-gradient(120% 90% at 50% 50%, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%),
        linear-gradient(135deg, rgba(12,14,26,.72) 0%, rgba(60,28,64,.55) 55%, rgba(10,12,24,.78) 100%);
}
.lx-card { position: relative; z-index: 1; box-shadow: 0 30px 70px rgba(15,12,40,.45); }
.lx-tools { z-index: 5; }

/* Texte sous le logo : même taille que le titre du formulaire */
.lx-hero-txt {
    margin: 0; max-width: 300px;
    font-size: 31px; font-weight: 800; line-height: 1.18; letter-spacing: -.01em;
    color: #fff;
}
@media (max-height: 660px) and (min-width: 861px) { .lx-hero-txt { font-size: 26px; } }

/* ================= Version 6 : fond bleu nuit ================= */
.lx-page, html.theme-dark .lx-page {
    background:
        radial-gradient(760px 480px at 12% 8%, rgba(54,104,255,.38), transparent 62%),
        radial-gradient(820px 520px at 92% 96%, rgba(30,70,190,.34), transparent 62%),
        linear-gradient(140deg, #0a1640 0%, #0f2766 52%, #081030 100%) !important;
}
.lx-bg-img { filter: blur(28px) saturate(.85) brightness(.9); opacity: .9; }
.lx-bg-voile, html.theme-dark .lx-bg-voile {
    background:
        radial-gradient(70% 55% at 14% 6%, rgba(64,118,255,.42) 0%, rgba(64,118,255,0) 70%),
        radial-gradient(70% 55% at 90% 98%, rgba(28,72,200,.38) 0%, rgba(28,72,200,0) 70%),
        radial-gradient(120% 90% at 50% 50%, rgba(0,0,0,0) 35%, rgba(2,6,24,.55) 100%),
        linear-gradient(140deg, rgba(10,22,64,.84) 0%, rgba(15,39,102,.78) 52%, rgba(8,16,48,.88) 100%);
}
html.theme-dark .lx-bg-voile {
    background:
        radial-gradient(70% 55% at 14% 6%, rgba(54,100,240,.30) 0%, rgba(54,100,240,0) 70%),
        radial-gradient(70% 55% at 90% 98%, rgba(26,64,180,.28) 0%, rgba(26,64,180,0) 70%),
        radial-gradient(120% 90% at 50% 50%, rgba(0,0,0,0) 30%, rgba(0,0,0,.6) 100%),
        linear-gradient(140deg, rgba(6,12,38,.90) 0%, rgba(10,24,70,.85) 52%, rgba(4,8,28,.92) 100%);
}
.lx-card { box-shadow: 0 30px 80px rgba(2,8,40,.6), 0 0 0 1px rgba(255,255,255,.06); }
.lx-theme, .lx-lang { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.26); color: #fff; }
.lx-lang a { color: rgba(255,255,255,.82); }
.lx-lang a.is-active { color: #fff; }

/* ================= Version 7 : police Poppins, fond noir avec photo visible ================= */
.lx-page, .lx-page input, .lx-page button { font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif; }
.lx-title { font-weight: 800; letter-spacing: -.02em; }
.lx-hero-txt { font-weight: 700; letter-spacing: -.015em; line-height: 1.22; font-size: 29px; }
.lx-sub { font-weight: 500; }
.lx-btn-submit, .lx-hero-btn { font-weight: 600; }
.lx-input { font-weight: 500; }

.lx-page, html.theme-dark .lx-page {
    background:
        radial-gradient(700px 440px at 12% 8%, rgba(40,80,200,.22), transparent 62%),
        linear-gradient(140deg, #04060d 0%, #080d1c 55%, #03050b 100%) !important;
}
.lx-bg-img { filter: blur(13px) saturate(1.12) brightness(.95); opacity: 1; }
.lx-bg-voile, html.theme-dark .lx-bg-voile {
    background:
        radial-gradient(65% 50% at 14% 6%, rgba(46,96,230,.22) 0%, rgba(46,96,230,0) 70%),
        radial-gradient(120% 95% at 50% 50%, rgba(0,0,0,0) 28%, rgba(0,0,0,.58) 100%),
        linear-gradient(140deg, rgba(3,5,12,.66) 0%, rgba(6,10,24,.58) 55%, rgba(2,4,10,.72) 100%);
}
html.theme-dark .lx-bg-voile {
    background:
        radial-gradient(65% 50% at 14% 6%, rgba(46,96,230,.18) 0%, rgba(46,96,230,0) 70%),
        radial-gradient(120% 95% at 50% 50%, rgba(0,0,0,0) 25%, rgba(0,0,0,.64) 100%),
        linear-gradient(140deg, rgba(2,4,10,.72) 0%, rgba(4,8,20,.64) 55%, rgba(1,3,8,.78) 100%);
}
.lx-card { box-shadow: 0 30px 80px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.07); }
#identifier::placeholder { font-size: 12px; }

/* ================= Version 8 : couleurs d'origine du fond (cyan, violet, rose) ================= */
.lx-page {
    background: linear-gradient(120deg, #55c6dc 0%, #8a74d8 48%, #e0409a 100%) !important;
}
html.theme-dark .lx-page {
    background: linear-gradient(120deg, #123b4a 0%, #2c2760 50%, #5a1a46 100%) !important;
}
.lx-bg-img { filter: blur(16px) saturate(1.1); opacity: 1; }
.lx-bg-voile {
    background: linear-gradient(120deg, rgba(85,198,220,.80) 0%, rgba(138,116,216,.80) 48%, rgba(224,64,154,.80) 100%);
}
html.theme-dark .lx-bg-voile {
    background: linear-gradient(120deg, rgba(18,59,74,.84) 0%, rgba(44,39,96,.84) 50%, rgba(90,26,70,.84) 100%);
}
.lx-card { box-shadow: 0 24px 60px rgba(25,20,70,.35); }
html.theme-dark .lx-card { box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.lx-lang a.is-active { background: #fff; color: #2a2f50; }

/* ================= Version 9 : fond gris argenté ================= */
.lx-page {
    background:
        radial-gradient(900px 520px at 10% 0%, rgba(255,255,255,.75), transparent 62%),
        linear-gradient(135deg, #eceef1 0%, #c6cad1 42%, #e4e6ea 68%, #a9aeb6 100%) !important;
}
html.theme-dark .lx-page {
    background:
        radial-gradient(900px 520px at 10% 0%, rgba(255,255,255,.10), transparent 62%),
        linear-gradient(135deg, #2c2f35 0%, #4a4f58 42%, #30343a 68%, #1d2025 100%) !important;
}
.lx-bg-img { filter: blur(18px) saturate(.6); }
.lx-bg-voile {
    background:
        linear-gradient(135deg, rgba(236,238,241,.86) 0%, rgba(198,202,209,.84) 42%, rgba(228,230,234,.86) 68%, rgba(169,174,182,.88) 100%);
}
html.theme-dark .lx-bg-voile {
    background:
        linear-gradient(135deg, rgba(44,47,53,.86) 0%, rgba(74,79,88,.82) 42%, rgba(48,52,58,.86) 68%, rgba(29,32,37,.90) 100%);
}
.lx-card { box-shadow: 0 26px 60px rgba(40,44,52,.38), 0 0 0 1px rgba(255,255,255,.5); }
html.theme-dark .lx-card { box-shadow: 0 26px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); }
.lx-theme, .lx-lang { background: rgba(255,255,255,.6); border-color: rgba(60,66,78,.25); color: #2a2f50; }
.lx-lang a { color: #4a5060; }
.lx-lang a.is-active { background: #2a2f50; color: #fff; }
html.theme-dark .lx-theme, html.theme-dark .lx-lang { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); color: #fff; }
html.theme-dark .lx-lang a { color: rgba(255,255,255,.8); }
html.theme-dark .lx-lang a.is-active { background: #fff; color: #1d2025; }

/* ================= Version 10 : fond noir à lueur dorée, logo aligné sur les réglages (mobile) ================= */
.lx-page, html.theme-dark .lx-page {
    background:
        radial-gradient(70% 60% at 88% 4%, rgba(222,178,128,.55) 0%, rgba(222,178,128,0) 62%),
        radial-gradient(55% 45% at 72% 22%, rgba(150,100,56,.40) 0%, rgba(150,100,56,0) 70%),
        linear-gradient(160deg, #0b0908 0%, #120d09 55%, #060504 100%) !important;
}
.lx-bg-img {
    filter: blur(22px) grayscale(1) sepia(.65) brightness(.75) contrast(1.05);
    opacity: .26; mix-blend-mode: screen;
}
.lx-bg-voile, html.theme-dark .lx-bg-voile {
    background:
        radial-gradient(60% 50% at 90% 2%, rgba(236,196,148,.40) 0%, rgba(236,196,148,0) 65%),
        radial-gradient(45% 40% at 66% 20%, rgba(176,122,70,.30) 0%, rgba(176,122,70,0) 70%),
        radial-gradient(120% 95% at 40% 70%, rgba(0,0,0,0) 20%, rgba(0,0,0,.72) 100%),
        linear-gradient(118deg, rgba(0,0,0,0) 42%, rgba(255,220,170,.06) 52%, rgba(0,0,0,0) 62%);
}
/* Grain fin : donne de la matière au dégradé */
.lx-bg::after {
    content: ""; position: absolute; inset: 0; opacity: .16; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.lx-card, html.theme-dark .lx-card { box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(255,214,160,.10); }
.lx-theme, .lx-lang, html.theme-dark .lx-theme, html.theme-dark .lx-lang {
    background: rgba(255,255,255,.10); border-color: rgba(255,226,190,.28); color: #fff;
}
.lx-lang a, html.theme-dark .lx-lang a { color: rgba(255,255,255,.82); }
.lx-lang a.is-active, html.theme-dark .lx-lang a.is-active { background: #fff; color: #1a1410; }

@media (max-width: 860px) {
    /* Logo sur la même ligne que le thème et la langue */
    .lx-tools { top: calc(14px + env(safe-area-inset-top, 0px)); height: 36px; }
    .lx-hero { padding: 0 !important; height: calc(92px + env(safe-area-inset-top, 0px)); }
    .lx-hero-body { position: absolute; left: 16px; top: calc(6px + env(safe-area-inset-top, 0px)); }
    .lx-logo-link, .lx-logo { width: 52px; height: 52px; margin: 0; }
    .lx-form-side, .lx-reg .lx-form-side { padding-top: 66px; }
}
@media (max-width: 860px) and (max-height: 720px) {
    .lx-hero { height: calc(80px + env(safe-area-inset-top, 0px)); }
    .lx-logo-link, .lx-logo { width: 48px; height: 48px; }
    .lx-hero-body { top: calc(8px + env(safe-area-inset-top, 0px)); }
    .lx-form-side, .lx-reg .lx-form-side { padding-top: 58px; }
}

/* Panneau / bande du haut : même noir doré que le fond */
.lx-page, html.theme-dark .lx-page { --lx-navy: #15100c; }
.lx-hero, html.theme-dark .lx-hero {
    background:
        radial-gradient(88% 62% at 0% 0%, rgba(214,168,118,.55) 0%, rgba(214,168,118,0) 72%),
        radial-gradient(86% 58% at 0% 100%, rgba(150,100,56,.50) 0%, rgba(150,100,56,0) 72%),
        #15100c !important;
}
@media (max-width: 860px) {
    .lx-hero, html.theme-dark .lx-hero {
        background:
            radial-gradient(80% 110% at 100% 0%, rgba(214,168,118,.60) 0%, rgba(214,168,118,0) 70%),
            radial-gradient(60% 100% at 0% 0%, rgba(150,100,56,.40) 0%, rgba(150,100,56,0) 70%),
            #15100c !important;
    }
}

/* ================= Version 12 : fond blanc (thème clair), logo mobile aligné ================= */
html:not(.theme-dark) .lx-page { background: #fff !important; }
html:not(.theme-dark) .lx-bg { display: none; }
html:not(.theme-dark) .lx-card { box-shadow: 0 24px 60px rgba(20,26,48,.14), 0 0 0 1px rgba(20,26,48,.07); }
html:not(.theme-dark) .lx-theme, html:not(.theme-dark) .lx-lang { background: rgba(20,26,48,.04); border-color: rgba(20,26,48,.16); color: #1a1f2e; }
html:not(.theme-dark) .lx-lang a { color: #4a5060; }
html:not(.theme-dark) .lx-lang a.is-active { background: #1a1f2e; color: #fff; }

@media (max-width: 860px) {
    /* Sur mobile les réglages sont posés sur la bande sombre : verre clair */
    html:not(.theme-dark) .lx-theme, html:not(.theme-dark) .lx-lang { background: rgba(255,255,255,.12); border-color: rgba(255,226,190,.3); color: #fff; }
    html:not(.theme-dark) .lx-lang a { color: rgba(255,255,255,.82); }
    html:not(.theme-dark) .lx-lang a.is-active { background: #fff; color: #1a1410; }
    html:not(.theme-dark) .lx-card { box-shadow: none; }

    /* Logo : même hauteur que les icônes (36 px), même axe horizontal, collé à gauche */
    .lx-tools { top: calc(14px + env(safe-area-inset-top, 0px)); height: 36px; }
    .lx-tools .lx-theme, .lx-tools .lx-lang { height: 36px; }
    .lx-hero-body { left: 16px; right: auto; width: auto; padding: 0; justify-content: flex-start; top: calc(14px + env(safe-area-inset-top, 0px)); height: 36px; display: flex; align-items: center; }
    .lx-logo-link, .lx-logo { width: 40px; height: 40px; margin: 0; }
    .lx-hero-body .lx-logo-link { margin-top: -2px; }
}
@media (max-width: 860px) and (max-height: 720px) {
    .lx-hero-body { top: calc(14px + env(safe-area-inset-top, 0px)); }
    .lx-logo-link, .lx-logo { width: 40px; height: 40px; }
}

/* ================= Version 13 : thème sombre = fond sombre du site ================= */
html.theme-dark .lx-page { background: var(--app-bg, #0f1115) !important; }
html.theme-dark .lx-bg { display: none; }
html.theme-dark .lx-card { box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.07); }

/* ================= Version 14 : mobile, l'écran est rempli de haut en bas ================= */
@media (max-width: 860px) {
    .lx-page { display: block; padding: 0; height: auto; min-height: 100vh; min-height: 100dvh; }
    .lx-lock { height: 100vh; height: 100dvh; }
    .lx-card {
        display: flex; flex-direction: column;
        min-height: 100vh; min-height: 100dvh;
    }
    .lx-lock .lx-card { height: 100%; min-height: 0; }
    .lx-hero { flex: 0 0 auto; height: calc(clamp(150px, 28dvh, 250px) + env(safe-area-inset-top, 0px)); }
    .lx-form-side, .lx-reg .lx-form-side {
        flex: 1 1 auto; display: flex; flex-direction: column;
        padding: 66px 26px calc(22px + env(safe-area-inset-bottom, 0px));
    }
    /* L'espace libre se répartit au-dessus du titre et au-dessus de la mention de sécurité */
    .lx-head { margin-top: auto; margin-bottom: 22px; }
    .lx-trust { margin-top: auto; padding-top: 18px; }
    .lx-form { gap: 16px; }
    .lx-reg .lx-form { gap: 13px; }
    .lx-title { font-size: 28px; }
    .lx-input { height: 52px; }
    .lx-btn-submit { height: 52px; margin-top: 10px; }
    .lx-reg .lx-input { height: 48px; }
    .lx-reg .lx-btn-submit { height: 50px; margin-top: 8px; }
}
@media (max-width: 860px) and (max-height: 700px) {
    .lx-hero { height: calc(112px + env(safe-area-inset-top, 0px)); }
    .lx-form-side, .lx-reg .lx-form-side { padding-top: 58px; }
    .lx-title { font-size: 24px; }
    .lx-head { margin-bottom: 14px; }
    .lx-form { gap: 12px; }
    .lx-input, .lx-reg .lx-input { height: 46px; }
    .lx-btn-submit, .lx-reg .lx-btn-submit { height: 48px; margin-top: 6px; }
}
.lx-row-2 .lx-input { padding-right: 12px; }
