
:root {
    --wplc-login-primary: #dba617;
    --wplc-login-primary-dark: #a77a0d;
    --wplc-login-primary-deep: #7f5d08;
    --wplc-login-primary-soft: #f6ecc8;
    --wplc-login-primary-soft-2: #fcf8e9;
    --wplc-login-bg-top: #fcf8e9;
    --wplc-login-bg-bottom: #f7edc8;
    --wplc-login-rgb: 219,166,23;
    --wplc-bg-1: #f5efe3;
    --wplc-bg-2: #eee2cf;
    --wplc-surface: #ffffff;
    --wplc-surface-soft: #fbf7f0;
    --wplc-surface-warm: #f9f4ea;
    --wplc-text: #111827;
    --wplc-text-soft: #5f5144;
    --wplc-border: #e4d8c8;
    --wplc-border-strong: #cdbca7;
    --wplc-shadow: 0 24px 56px rgba(15, 23, 42, 0.14);
    --wplc-shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
    --wplc-primary: #8a4b08;
    --wplc-primary-dark: #6f3d06;
    --wplc-primary-soft: #efe2c7;
    --wplc-danger: #b42318;
    --wplc-danger-soft: #fff1f0;
    --wplc-success: #166534;
    --wplc-success-soft: #eefbf3;
    --wplc-radius-lg: 24px;
    --wplc-radius-md: 16px;
    --wplc-radius-sm: 12px;
}

html {
    min-height: 100% !important;
    background: linear-gradient(135deg, #f8fbff 0%, #eaf3fb 42%, #9fbed8 72%, #17324d 100%) center center / cover no-repeat fixed !important;
}

body.login {
    height: auto !important;
    min-height: 100vh !important;
    margin: 0;
    background: transparent !important;
    color: var(--wplc-text);
}

#login {
    width: min(92vw, 420px);
    position: relative;
    z-index: 1;
}

body.wplc-notice-top #login {
    padding-top: 24px !important;
}

body.wplc-hide-language .language-switcher,
body.wplc-hide-language #language-switcher,
.privacy-policy-page-link {
    display: none !important;
}

.login #nav,
.login #backtoblog {
    text-align: center;
    background: transparent !important;
    box-shadow: none !important;
}

.login #nav a,
.login #backtoblog a,
.wplc-terms-check a {
    color: var(--wplc-login-primary-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(111, 61, 6, 0.24);
    transition: color .18s ease, border-color .18s ease, opacity .18s ease;
}

.login #nav a:hover,
.login #backtoblog a:hover,
.wplc-terms-check a:hover,
.login #nav a:focus,
.login #backtoblog a:focus,
.wplc-terms-check a:focus {
    color: var(--wplc-login-primary-deep);
    border-bottom-color: rgba(91, 50, 5, 0.52);
}

.wplc-notice a {
    color: var(--wplc-primary-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(111, 61, 6, 0.24);
}

.wplc-notice a:hover,
.wplc-notice a:focus {
    color: #5b3205;
    border-bottom-color: rgba(91, 50, 5, 0.52);
}

/* Logo */
.wplc-logo-animated #login h1 a,
.wplc-logo-animated.login h1 a {
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: auto !important;
    height: auto !important;
    min-height: 56px !important;
    padding: 0 !important;
    margin: 0 auto 28px !important;
    text-indent: 0 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--wplc-text) !important;
    text-decoration: none !important;
    overflow: visible !important;
}

.wplc-animated-logo__badge {
    position: relative !important;
    width: 56px !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: var(--wplc-login-primary-dark);
    box-shadow: 0 8px 18px rgba(var(--wplc-login-rgb), 0.18);
}

.wplc-animated-logo__badge svg {
    width: 24px !important;
    height: 24px !important;
}

.wplc-animated-logo__ring {
    position: absolute !important;
    inset: 0 !important;
    border-radius: 50% !important;
    border: 2px solid rgba(var(--wplc-login-rgb), .48) !important;
    animation: wplcRing 2.2s ease-out infinite !important;
}

.wplc-animated-logo__ring--delay {
    animation-delay: 1.1s !important;
}

.wplc-animated-logo__text {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--wplc-text) !important;
}

@keyframes wplcRing {
    0% { transform: scale(.78); opacity: .6; }
    70% { opacity: 0; }
    100% { transform: scale(1.25); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .wplc-animated-logo__ring {
        animation: none;
        opacity: .3;
    }
}

.wplc-logo-static #login h1 a,
.wplc-logo-static.login h1 a {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto 22px;
}

/* Login forms */
#loginform,
#registerform,
#lostpasswordform {
    border: 1px solid rgba(255,255,255,.55) !important;
    border-radius: var(--wplc-radius-lg) !important;
    background: rgba(255,255,255,.95) !important;
    box-shadow: var(--wplc-shadow) !important;
    padding: 28px 28px 24px !important;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    border: 1px solid var(--wplc-border) !important;
    border-radius: 14px !important;
    min-height: 48px;
    padding: 0 14px !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .03) !important;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
    background: #fff !important;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    border-color: rgba(var(--wplc-login-rgb), 0.42) !important;
    box-shadow: 0 0 0 4px rgba(var(--wplc-login-rgb), 0.12) !important;
}

.login form label {
    color: var(--wplc-text);
    font-size: 13px;
    font-weight: 600;
}

.login .button.wp-hide-pw {
    color: #64748b !important;
}

.wp-core-ui .button-primary {
    background: linear-gradient(135deg, var(--wplc-login-primary), var(--wplc-login-primary-dark)) !important;
    border: none !important;
    border-radius: 14px !important;
    min-height: 44px !important;
    padding: 0 18px !important;
    box-shadow: 0 10px 20px rgba(var(--wplc-login-rgb), 0.24);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
    filter: brightness(1.03);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(var(--wplc-login-rgb), 0.30);
}

.login .forgetmenot label {
    font-weight: 500;
    color: var(--wplc-text-soft);
}

.login .message,
.login .notice,
.login #login_error,
.login .success {
    border-radius: 16px !important;
    border: 1px solid var(--wplc-border) !important;
    box-shadow: var(--wplc-shadow-soft) !important;
}

/* Google Site Kit — bouton "Se connecter avec Google".
   Site Kit rend le bouton dans ce conteneur officiel. */
.googlesitekit-sign-in-with-google__frontend-output-button {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 16px auto !important;
    text-align: center !important;
}

.googlesitekit-sign-in-with-google__frontend-output-button > div,
.googlesitekit-sign-in-with-google__frontend-output-button iframe {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Center common bot-challenge widgets */
.cf-turnstile,
.g-recaptcha,
.h-captcha,
iframe[src*="challenges.cloudflare.com"] {
    margin-left: auto !important;
    margin-right: auto !important;
}

.cf-turnstile,
.g-recaptcha,
.h-captcha {
    display: table !important;
}

.cf-turnstile > div,
.g-recaptcha > div,
.h-captcha > div,
iframe[src*="challenges.cloudflare.com"] {
    display: block !important;
    margin: 14px auto 8px !important;
}

/* Checkbox acceptance */
.wplc-terms-check {
    margin: 18px 0 10px !important;
    padding: 16px 18px !important;
    border-radius: 16px;
    border: 1px solid var(--wplc-login-primary-soft);
    background: linear-gradient(180deg, #ffffff, var(--wplc-login-primary-soft-2));
    font-size: 12.8px;
    line-height: 1.55;
    color: var(--wplc-text-soft);
}

.wplc-terms-check__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 7px;
}

.wplc-terms-check input[type="checkbox"] {
    margin: 0 !important;
    accent-color: var(--wplc-login-primary);
    transform: scale(1.08);
    flex: 0 0 auto;
}

.wplc-terms-check__title {
    margin: 0 !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    color: var(--wplc-login-primary-deep) !important;
    line-height: 1.35;
}

.wplc-terms-check__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
    text-align: center;
}

.wplc-terms-check__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 4px 0;
    font-weight: 700;
    border-bottom-width: 1px;
}

.wplc-terms-check__separator {
    color: var(--wplc-login-primary-dark);
    font-weight: 600;
}

.wplc-terms-check__meta {
    font-weight: 600;
    color: var(--wplc-login-primary-dark);
    margin-left: 4px;
}

/* Security notice wrapper */
.wplc-notice-wrap {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    float: none !important;
    position: static !important;
    box-sizing: border-box;
    clear: both !important;
    margin: 0 !important;
}

body.wplc-notice-top .wplc-notice-wrap {
    padding: 18px 24px 26px !important;
}

body.wplc-notice-bottom .wplc-notice-wrap {
    padding: 26px 24px 48px !important;
}

.wplc-notice {
    width: 100%;
    max-width: 1120px !important;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.7);
    background: rgba(251,252,254,.97);
    box-shadow: var(--wplc-shadow);
    overflow: hidden;
    box-sizing: border-box;
    color: var(--wplc-text);
}

.wplc-notice__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px !important;
    background: linear-gradient(135deg, #f0e3cf 0%, #fbf4e9 100%);
    border-bottom: 1px solid #ddd7c9;
}

summary.wplc-notice__header {
    cursor: pointer;
    list-style: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}
summary.wplc-notice__header::-webkit-details-marker,
summary.wplc-notice__header::marker,
#wplc-security-notice > summary::-webkit-details-marker,
#wplc-security-notice > summary::marker {
    display: none !important;
    content: "" !important;
}

.wplc-notice__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #efe2c7, #f8f2e7);
    color: var(--wplc-primary);
    box-shadow: inset 0 0 0 1px rgba(138, 75, 8, 0.12);
}

.wplc-notice__header-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wplc-notice__eyebrow {
    font-size: 11px;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--wplc-primary-dark);
    font-weight: 700;
}

.wplc-notice__header-title {
    font-size: 19px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--wplc-text);
}

.wplc-notice__version {
    margin-left: auto;
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    border: 1px solid #e2d8c5;
    color: var(--wplc-primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.wplc-notice__toggle-icon {
    margin-left: 10px !important;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255,255,255,.92);
    border: 1px solid #dfd4be;
    color: var(--wplc-primary-dark);
    font-family: Arial, Helvetica, sans-serif;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}


.wplc-notice__toggle-icon:hover,
.wplc-notice__header:hover .wplc-notice__toggle-icon {
    color: #d63638;
    border-color: rgba(214, 54, 56, .35);
    background: rgba(214, 54, 56, .10);
}

.wplc-notice__toggle-icon::before {
    content: "✕";
    font-size: 18px;
    line-height: 1;
}

#wplc-security-notice:not([open]) > summary .wplc-notice__toggle-icon::before {
    content: "▸";
}

.wplc-notice__body {
    padding: 28px !important;
    font-size: 14px;
    line-height: 1.75;
}

.wplc-notice-top .wplc-notice__body {
    max-height: 40vh !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(111,61,6,.45) rgba(138,75,8,.10);
}

.wplc-notice-top .wplc-notice__body::-webkit-scrollbar {
    width: 12px;
}

.wplc-notice-top .wplc-notice__body::-webkit-scrollbar-track {
    background: rgba(138,75,8,.08);
    border-radius: 999px;
}

.wplc-notice-top .wplc-notice__body::-webkit-scrollbar-thumb {
    background: rgba(111,61,6,.38);
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,.65);
}

.wplc-notice-top .wplc-notice--full .wplc-notice__body {
    max-height: none !important;
    overflow: visible !important;
}

.wplc-notice__hero {
    margin-bottom: 22px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, #efe1cb, #fbf6ed);
    border: 1px solid #e4dccd;
}

.wplc-notice__lead {
    margin: 0 0 16px !important;
    font-size: 15px;
    color: var(--wplc-text);
}

.wplc-notice__chips {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wplc-notice__chips li {
    margin: 0;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    border: 1px solid #ddd4c3;
    font-size: 12.5px;
    font-weight: 700;
    color: #5b3205;
}

.wplc-notice__section {
    margin: 0 0 18px !important;
    padding: 22px !important;
    border-radius: 22px;
    border: 1px solid var(--wplc-border);
    background: var(--wplc-surface);
    box-shadow: var(--wplc-shadow-soft);
}

.wplc-notice__section:last-child {
    margin-bottom: 0 !important;
}

.wplc-notice__section-title,
.wplc-notice__section-title--icon {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px !important;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
    color: var(--wplc-text);
}

.wplc-prose p {
    margin: 0 0 12px !important;
    color: var(--wplc-text-soft);
}

.wplc-prose p:last-child {
    margin-bottom: 0 !important;
}

.wplc-status-card {
    margin-bottom: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--wplc-border);
}

.wplc-status-card--success {
    background: var(--wplc-success-soft);
    border-color: rgba(22, 101, 52, .18);
}

.wplc-status-card--warning {
    background: #f9f1e3;
    border-color: rgba(111, 61, 6, .16);
}

.wplc-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.wplc-status-card--success .wplc-status-pill {
    background: rgba(22, 101, 52, .10);
    color: var(--wplc-success);
}

.wplc-status-card--warning .wplc-status-pill {
    background: rgba(111, 61, 6, .10);
    color: var(--wplc-primary-dark);
}

.wplc-notice ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

.wplc-notice li {
    margin-bottom: 8px;
    color: var(--wplc-text-soft);
}

.wplc-checklist {
    padding-left: 0 !important;
    list-style: none;
}

.wplc-checklist > li {
    margin-bottom: 14px;
    padding: 16px 18px;
    border: 1px solid var(--wplc-border);
    border-radius: 18px;
    background: #fbf7f0;
}

.wplc-checklist > li:last-child {
    margin-bottom: 0;
}

.wplc-checklist strong,
.wplc-notice strong {
    color: var(--wplc-text);
}

.wplc-alert {
    padding: 16px 18px !important;
    border-radius: 18px;
    border: 1px solid rgba(180, 35, 24, .18);
    background: linear-gradient(180deg, #fff8f7, var(--wplc-danger-soft));
    color: #8f1d14;
    box-shadow: none;
}

.wplc-alert strong,
.wplc-alert a {
    color: #8f1d14;
}

.wplc-notice details {
    margin-top: 14px;
    border: 1px solid var(--wplc-border);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.wplc-notice details summary {
    cursor: pointer;
    padding: 15px 18px;
    font-weight: 700;
    color: var(--wplc-text);
    list-style: none;
    transition: background-color .18s ease;
    background: linear-gradient(180deg, #f8fafc, #fff);
}

.wplc-notice details summary:hover,
.wplc-notice details summary:focus {
    background: #faf4e9;
}

.wplc-notice details summary::-webkit-details-marker {
    display: none;
}

.wplc-notice details summary::before {
    content: "▸";
    display: inline-block;
    margin-right: 10px;
    color: var(--wplc-primary);
    font-weight: 800;
}

.wplc-notice details[open] > summary::before {
    content: "▾";
}

.wplc-notice details summary .wplc-hint {
    display: inline-block;
    margin-left: 8px;
    font-weight: 500;
    color: #7a6755;
    font-size: 12px;
}

.wplc-notice details ol {
    margin: 0;
    padding: 8px 20px 18px 38px;
}

.wplc-notice details li {
    margin-bottom: 8px;
}

.wplc-notice details p {
    margin: 0 0 12px;
    padding: 0 18px;
    color: var(--wplc-text-soft);
}

.wplc-notice details p:first-of-type {
    padding-top: 14px;
}

.wplc-notice details p:last-child {
    padding-bottom: 18px;
    margin-bottom: 0;
}

.wplc-guide-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: 12px;
    border: 1px solid var(--wplc-border);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15,23,42,.08);
}

.wplc-guide-img--small {
    max-width: 280px;
}

.wplc-severity-low { color: #e8a33d !important; font-weight: 700; }
.wplc-severity-medium { color: #e07b1a !important; font-weight: 700; }
.wplc-severity-high { color: #c65a00 !important; font-weight: 700; }
.wplc-severity-critical,
.wplc-severity-zero-day { color: #d63638 !important; font-weight: 700; }

.wplc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 2px !important;
}

.wplc-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: #faf4e9;
    border: 1px solid #e1d6c2 !important;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--wplc-primary-dark);
}

@media (max-width: 782px) {
    body.wplc-notice-top .wplc-notice-wrap,
    body.wplc-notice-bottom .wplc-notice-wrap {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .wplc-notice__header,
    .wplc-notice__body {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .wplc-notice__header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .wplc-notice__version {
        margin-left: 0;
    }

    .wplc-notice__toggle-icon {
        margin-left: auto !important;
    }
}

@media (max-width: 600px) {
    #login {
        width: min(94vw, 420px);
    }

    #loginform,
    #registerform,
    #lostpasswordform {
        padding: 22px 20px 20px !important;
        border-radius: 20px !important;
    }

    .wplc-animated-logo__text,
    .wplc-logo-animated #login h1 a,
    .wplc-logo-animated.login h1 a {
        font-size: 20px !important;
    }

    .wplc-notice {
        border-radius: 22px;
    }

    .wplc-notice__header-title {
        font-size: 17px;
    }

    .wplc-notice__body {
        font-size: 13px;
    }

    .wplc-notice__hero,
    .wplc-notice__section {
        padding: 18px !important;
        border-radius: 18px;
    }

    .wplc-notice__section-title,
    .wplc-notice__section-title--icon {
        font-size: 16px;
    }

    .wplc-terms-check__links {
        gap: 6px;
    }
}
