/* ============================================
   ACCESS WALL - Blur overlay pour visiteurs non connectés
============================================ */

/* Blur sur le contenu principal */
body.access-wall-active .site-main {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
}

body.access-wall-active .site-footer {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Header reste cliquable (nav, login, etc.) */
body.access-wall-active .site-header {
    filter: none;
    pointer-events: auto;
}

/* ============================================
   POPUP MODALE
============================================ */
.access-wall-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: accessWallFadeIn 0.3s ease-out;
}

@keyframes accessWallFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.access-wall-modal {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    max-width: 480px;
    width: 90%;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: accessWallSlideIn 0.35s ease-out;
}

@keyframes accessWallSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Icône du cadenas */
.access-wall-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--primary-color, #1e3a5f), #2d5a8e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.3);
}

.access-wall-icon i {
    font-size: 1.75rem;
    color: #fff;
}

/* Texte */
.access-wall-modal h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color, #1e3a5f);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.access-wall-modal p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0 0 1.75rem;
    line-height: 1.6;
}

/* Boutons */
.access-wall-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.access-wall-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.access-wall-btn-login {
    background: linear-gradient(135deg, var(--primary-color, #1e3a5f), #2d5a8e);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.35);
}

.access-wall-btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.45);
    color: #fff !important;
    text-decoration: none;
}

.access-wall-btn-contact {
    background: transparent;
    color: var(--primary-color, #1e3a5f) !important;
    border: 2px solid #e2e8f0;
}

.access-wall-btn-contact:hover {
    border-color: var(--primary-color, #1e3a5f);
    background: rgba(30, 58, 95, 0.04);
    text-decoration: none;
    color: var(--primary-color, #1e3a5f) !important;
}

.access-wall-btn-home {
    background: transparent;
    color: #64748b !important;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.access-wall-btn-home:hover {
    color: var(--primary-color, #1e3a5f) !important;
    text-decoration: none;
}

/* Séparateur "ou" */
.access-wall-separator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.access-wall-separator::before,
.access-wall-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 480px) {
    .access-wall-modal {
        padding: 2rem 1.5rem 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .access-wall-icon {
        width: 60px;
        height: 60px;
    }

    .access-wall-icon i {
        font-size: 1.5rem;
    }

    .access-wall-modal h2 {
        font-size: 1.2rem;
    }
}
