/* =======================================================
   POP-UP INFORMATIONS MANQUANTES (accueil + profil)
   ======================================================= */
.charte-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.charte-modal.active-modal {
    opacity: 1;
    pointer-events: auto;
}

.charte-modal-content {
    background: rgba(15, 25, 40, 0.95);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    border: 2px solid #e74c3c;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.3);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.charte-modal.active-modal .charte-modal-content {
    transform: scale(1);
}

.charte-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(231, 76, 60, 0.5);
}

.charte-modal-content h3 {
    color: #e74c3c;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 900;
}

.charte-modal-content p {
    color: #FFFFFF;
    line-height: 1.6;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Liste des informations manquantes (popup) */
.charte-modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.missing-list {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
    text-align: left;
}

.missing-list li {
    color: #ffcccc;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.4;
    padding: 0.6rem 0.9rem;
    margin-bottom: 0.5rem;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.4);
    border-radius: 10px;
}

.missing-list li::before {
    content: "✕ ";
    color: #e74c3c;
    font-weight: 900;
}


/* Boutons de la pop-up (autonomes : fonctionnent aussi sur l'accueil) */
.charte-modal .profil-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

.charte-modal .auth-btn {
    flex: 1;
    min-width: 180px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.charte-modal .auth-btn.edit-btn {
    background: var(--yellow-accent);
    color: var(--blue-dark);
    box-shadow: 0 6px 20px rgba(255, 191, 0, 0.3);
}

.charte-modal .auth-btn.edit-btn:hover {
    transform: translateY(-3px);
    background: #FFD633;
}

.charte-modal .auth-btn.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.charte-modal .auth-btn.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}
