/* Elysee commercial portal - standalone white-label shell */

html,
body.elysee-clean-shell,
body.elysee-portal-login-body {
    margin: 0;
    min-height: 100%;
    background: #07111f;
}

body.elysee-clean-shell,
body.elysee-portal-login-body,
body.elysee-clean-shell button,
body.elysee-clean-shell input,
body.elysee-clean-shell select,
body.elysee-clean-shell textarea,
body.elysee-portal-login-body button,
body.elysee-portal-login-body input {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.elysee-clean-shell *,
body.elysee-clean-shell *::before,
body.elysee-clean-shell *::after,
body.elysee-portal-login-body *,
body.elysee-portal-login-body *::before,
body.elysee-portal-login-body *::after {
    box-sizing: border-box;
}

body.elysee-clean-shell {
    color: #f7f9fc;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 8% 4%, rgba(65, 108, 158, 0.16), transparent 28%),
        radial-gradient(circle at 92% 12%, rgba(199, 168, 107, 0.08), transparent 24%),
        #07111f;
}

body.elysee-clean-shell .dashicons {
    display: none !important;
}

body.elysee-clean-shell .elysee-app {
    min-height: 100vh;
}

.elysee-portal-nav-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: grid;
    place-items: center;
    color: rgba(247, 249, 252, 0.62);
    transition: color 160ms ease, transform 160ms ease;
}

.elysee-portal-nav-icon svg {
    width: 19px;
    height: 19px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.elysee-shell-nav-item:hover .elysee-portal-nav-icon,
.elysee-shell-nav-item:focus-visible .elysee-portal-nav-icon,
.elysee-shell-nav-item.is-active .elysee-portal-nav-icon {
    color: #e2bd6b;
    transform: translateX(1px) scale(1.04);
}

.elysee-portal-user-mark {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 999px;
    background: #77c7a3;
    box-shadow: 0 0 0 5px rgba(119, 199, 163, 0.10);
}

/* Login */
body.elysee-portal-login-body {
    color: #f7f9fc;
    background:
        radial-gradient(circle at 16% 12%, rgba(76, 125, 181, 0.22), transparent 29%),
        radial-gradient(circle at 84% 16%, rgba(199, 168, 107, 0.16), transparent 26%),
        linear-gradient(145deg, #06101d, #091828 52%, #0d1c2f);
}

.elysee-portal-login-wrap {
    min-height: 100vh;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    padding: 34px 20px;
}

.elysee-portal-login-card {
    width: min(470px, 100%);
    box-sizing: border-box;
    padding: 34px 34px 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
    backdrop-filter: blur(30px) saturate(145%);
    -webkit-backdrop-filter: blur(30px) saturate(145%);
    box-shadow:
        0 34px 100px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.elysee-portal-login-brand {
    display: grid;
    place-items: center;
    min-height: 112px;
    margin: -6px -4px 22px;
    border: 1px solid rgba(215, 184, 113, 0.18);
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.elysee-portal-login-brand img {
    width: min(310px, 78%);
    max-height: 96px;
    object-fit: contain;
}

.elysee-portal-login-kicker {
    margin-bottom: 8px;
    color: #d9b66b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.elysee-portal-login-card h1 {
    margin: 0;
    color: #fff;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.elysee-portal-login-copy {
    margin: 11px 0 25px;
    color: rgba(247, 249, 252, 0.70);
    font-size: 15px;
    line-height: 1.6;
}

.elysee-portal-login-alert {
    margin: 0 0 18px;
    padding: 13px 14px;
    border: 1px solid rgba(228, 129, 129, 0.28);
    border-radius: 13px;
    color: #ffd7d7;
    background: rgba(145, 48, 48, 0.16);
    font-size: 14px;
    line-height: 1.45;
}

.elysee-portal-login-form {
    display: grid;
    gap: 16px;
}

.elysee-portal-login-form > label:not(.elysee-portal-remember) {
    display: grid;
    gap: 8px;
}

.elysee-portal-login-form > label > span {
    color: rgba(247, 249, 252, 0.82);
    font-size: 13px;
    font-weight: 650;
}

.elysee-portal-login-form input[type="text"],
.elysee-portal-login-form input[type="password"] {
    width: 100%;
    height: 52px;
    box-sizing: border-box;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    outline: none;
    color: #fff;
    background: rgba(4, 15, 28, 0.46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-size: 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.elysee-portal-login-form input[type="text"]:hover,
.elysee-portal-login-form input[type="password"]:hover {
    border-color: rgba(215, 184, 113, 0.34);
    background: rgba(7, 22, 38, 0.62);
}

.elysee-portal-login-form input[type="text"]:focus,
.elysee-portal-login-form input[type="password"]:focus {
    border-color: rgba(215, 184, 113, 0.70);
    box-shadow: 0 0 0 4px rgba(215, 184, 113, 0.10);
}

.elysee-portal-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(247, 249, 252, 0.72);
    font-size: 13px;
    cursor: pointer;
}

.elysee-portal-remember input {
    width: 17px;
    height: 17px;
    accent-color: #d2ad62;
}

.elysee-portal-login-submit {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid rgba(229, 195, 115, 0.70);
    border-radius: 15px;
    color: #07111f;
    background: linear-gradient(135deg, #e5c67e, #cfa85a);
    box-shadow: 0 14px 34px rgba(199, 168, 107, 0.20);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.elysee-portal-login-submit:hover,
.elysee-portal-login-submit:focus-visible {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 18px 42px rgba(199, 168, 107, 0.30);
    filter: brightness(1.045);
}

.elysee-portal-login-note {
    margin-top: 21px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(247, 249, 252, 0.42);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
    letter-spacing: 0.03em;
}

.elysee-portal-error-card {
    text-align: center;
}

.elysee-portal-error-link {
    width: 100%;
    margin-top: 8px;
}

@media (max-width: 782px) {
    body.elysee-clean-shell .elysee-shell-sidebar {
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .elysee-portal-login-card {
        padding: 24px 20px 22px;
        border-radius: 22px;
    }

    .elysee-portal-login-card h1 {
        font-size: 26px;
    }
}

/*
 * Les vues historiques utilisent parfois Dashicons comme unique contenu
 * d'un controle. Le portail ne charge pas la police WordPress : on fournit
 * donc un pictogramme neutre et natif pour ne jamais laisser un bouton vide.
 */
body.elysee-clean-shell .elysee-table-action a {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: rgba(247, 249, 252, 0.88);
    background: rgba(255, 255, 255, 0.055);
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

body.elysee-clean-shell .elysee-table-action a::after {
    content: "\2192";
    display: block;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
}

body.elysee-clean-shell .elysee-table-action a:hover,
body.elysee-clean-shell .elysee-table-action a:focus-visible {
    transform: translateY(-2px) scale(1.035);
    color: #07111f;
    border-color: rgba(229, 195, 115, 0.82);
    background: linear-gradient(135deg, #e5c67e, #cfa85a);
    box-shadow: 0 12px 28px rgba(199, 168, 107, 0.22);
    outline: none;
}

.elysee-portal-login-alert.is-success {
    border-color: rgba(111, 207, 151, 0.30);
    color: #d9f8e6;
    background: rgba(44, 132, 82, 0.16);
}

.elysee-portal-auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    color: rgba(247, 249, 252, 0.70);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: color 160ms ease, transform 160ms ease;
}

.elysee-portal-auth-back:hover,
.elysee-portal-auth-back:focus-visible {
    color: #e5c67e;
    transform: translateY(-1px);
    outline: none;
}
