/**
 * ========================================================
 * [ÉTAT : À CONFIRMER] Date : 31-05-2026 17:30:10
 * FICHIER : gestion_compte.css
 * RÔLE : Feuille de style pour la gestion du compte et des mots de passe
 * Auteurs : Yvan Dubé & Gemini (IA Collaboratrice)
 * =========================================================
 */

/* ==========================================================================
   1. STYLES COMMUNS (profil.php, mp_oublie.php, new_password.php)
   ========================================================================== */

#boite {
    max-width: 900px; /* Élargi pour permettre 2 colonnes */
    margin: 40px auto;
    padding: 30px;
    background-color: #f9f0ff; 
    border: 1px dashed var(--couleur-bordure); 
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(123, 28, 141, 0.08);
}

#boite h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px; /* Espace un peu plus grand en dessous du titre */
    color: var(--couleur-primaire);
    border-bottom: 2px solid white;
    padding-bottom: 10px;
}

/* --- Disposition en deux colonnes pour le profil --- */
.profil-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.profil-main {
    flex: 1; /* Le formulaire prend tout l'espace restant */
}

.profil-sidebar {
    width: 280px; /* Largeur fixe pour la colonne de droite */
    flex-shrink: 0;
}

/* --- Organisation des champs de formulaire --- */
.form-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

#boite label {
    width: 140px;
    font-weight: 600;
    font-size: 0.95em;
    color: #444;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="tel"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.2s ease;
}

form input:focus {
    border-color: var(--couleur-primaire);
    outline: none;
    box-shadow: 0 0 5px rgba(123, 28, 141, 0.2);
}

/* --- Bouton principal de soumission --- */
.btn-soumission {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background-color: var(--couleur-primaire);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-soumission:hover {
    background-color: #6a1a7a;
}

.btn-soumission:active {
    transform: translateY(1px);
}

/* --- RESPONSIVE COMMUN --- */
@media (max-width: 850px) {
    .profil-layout { flex-direction: column; }
    .profil-sidebar { width: 100%; }
    .danger-zone { margin-top: 30px; }
}

@media (max-width: 550px) {
    #boite { margin: 20px; padding: 20px; }
    .form-group, .form-group-langue { flex-direction: column; align-items: flex-start; }
    #boite label { width: 100%; margin-bottom: 8px; }
    .message-erreur-champ { margin-left: 0; margin-top: 0; }
}


/* ==========================================================================
   2. STYLES SPÉCIFIQUES : profil.php
   ========================================================================== */

.intro-profil {
    text-align: center;
    margin-bottom: 25px;
    color: #444;
}

/* --- Langues --- */
.form-group-langue {
    display: flex;
    align-items: flex-start;
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 10px;
    background: white;
    border-radius: 4px;
    border: 1px solid var(--couleur-bordure);
}

.choix-langues {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.langue-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.langue-container input[type="radio"] {
    width: auto !important;
    margin-right: 10px;
    cursor: pointer;
}

.langue-container label {
    width: auto !important; 
    font-weight: normal;
    cursor: pointer;
    color: #333;
    margin-top: 0;
}

/* --- Messages et notes --- */
#note {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
    text-align: center;
    margin-bottom: 15px;
}

.red {
    color: #d32f2f;
    font-weight: bold;
    font-size: 0.85em;
}

.message-erreur-champ {
    margin-left: 140px; 
    margin-bottom: 10px;
    margin-top: -10px;
}

/* --- Zone de danger (Désinscription) --- */
.danger-zone {
    margin-top: 0; /* Retiré car maintenant géré par le layout flex */
    padding: 20px;
    border: 1px dashed #cc0000; 
    background-color: #fff5f5;
    border-radius: var(--radius);
    text-align: center;
}

.danger-zone p {
    color: #cc0000;
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.btn-destruire {
    display: inline-block;
    background-color: #ffcccc; 
    color: #cc0000; 
    border: 1px solid #cc0000;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
    width: 100%; /* Prend toute la largeur de sa colonne */
    box-sizing: border-box;
    cursor: pointer;
}

.btn-destruire:hover {
    background-color: #cc0000;
    color: #ffffff;
}


/* ==========================================================================
   3. STYLES SPÉCIFIQUES : mp_oublie.php
   ========================================================================== */

.lien-retour-connexion {
    text-align: center;
    margin-top: 15px;
}

.lien-retour-connexion a {
    color: #666;
    font-size: 0.9em;
    text-decoration: none;
}

.lien-retour-connexion a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   4. STYLES SPÉCIFIQUES : new_password.php
   ========================================================================== */

.conteneur-btn-demande-lien {
    text-align: center;
    margin-top: 25px;
}

.btn-danger {
    background-color: #e74c3c;
    text-decoration: none;
    display: inline-block;
}

.btn-danger:hover {
    background-color: #c0392b;
}