/* Style du fond assombri (Overlay) */
.drawer-overlayconfinscr {
    display: none;
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    justify-content: flex-end;
}

.drawer-overlayconfinscr.active {
    display: flex;
}

/* Style du contenu du Drawer */
.drawer-contentconfinscr {
    box-sizing: border-box;
    height: 100vh;
    background: #fff;
    padding: 40px 30px;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.15);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: slideIn 0.3s ease-in-out;
    
    /* Masquer la scrollbar tout en gardant le défilement si l'écran est petit */
    overflow-y: auto;
    -ms-overflow-style: none;  /* IE et Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Masquer la scrollbar pour Chrome, Safari et Opera */
.drawer-contentconfinscr::-webkit-scrollbar {
    display: none;
}

/* --- RESPONSIVE TAILLES DE L'ÉCRAN --- */

/* 1. Sur Mobile (par défaut ou petits écrans jusqu'à 767px) */
.drawer-contentconfinscr {
    width: 100%;
}

/* 2. Sur PC et Tablette (à partir de 768px de largeur d'écran) */
@media (min-width: 768px) {
    .drawer-contentconfinscr {
        width: 50%; /* Prond 50% de la largeur de l'écran */
    }
}

/* Animation d'ouverture du drawer */
@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}


.drawer-contentconfinscr h2 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-top: 15px;
    margin-bottom: 25px;
    line-height: 1.3;
    color: #111;
}

.drawer-contentconfinscr p {
    font-size: 0.95rem;
    line-height: 1.6; /* Aère la hauteur de ligne */
    color: #444;
    margin-bottom: 15px;
    max-width: 85%; /* Évite que le texte touche les bords */
}

.drawer-contentconfinscr p strong {
    display: block;
    margin-top: 20px;
    font-weight: 600;
    color: #111;
}

/* Style des éléments internes */
.drawer-closeconfinscr {
    position: absolute;
    top: 25px; 
    right: 25px;
    font-size: 28px;
    background: none; 
    border: none;
    cursor: pointer;
    line-height: 1;
    color: #333;
    transition: opacity 0.2s;
}

.drawer-closeconfinscr:hover {
    opacity: 0.6;
}

.drawer-icon.successconfinscr { font-size: 52px; color: #28a745; margin-bottom: 20px; }
.drawer-icon.errorconfinscr { font-size: 52px; color: #dc3545; margin-bottom: 20px; }

.btn-loginconfinscr {
    display: inline-block;
    margin-top: 35px; /* Éloigne le bouton du texte */
    padding: 14px 32px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 0; /* Rendu plus haut de gamme / luxe */
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

.btn-loginconfinscr:hover {
    background: #333;
}