/* Variables graphiques d'AfricaFace */
:root { 
    --primary: #10b981; /* Vert principal */
    --primary-hover: #059669;
    --bg: #f3f4f6;      
    --card: #ffffff;    
    --text: #1f2937;    
    --text-muted: #6b7280;
}

/* Reset de base global */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
}

body { 
    background: var(--bg); 
    color: var(--text); 
    padding-top: 80px; 
}

/* HEADER GLOBAL - Identique sur toutes les pages */
.global-header { 
    background: var(--primary); 
    color: white; 
    padding: 10px 20px; 
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%;
    z-index: 1000; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.4rem;
}

.header-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid white;
}

.header-nav {
    display: flex;
    gap: 10px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: 15px;
    transition: background 0.2s;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
}

/* ZONE CENTRALE DE LA PAGE D'ACCUEIL */
.welcome-container { 
    max-width: 450px; 
    margin: 30px auto; 
    padding: 15px; 
    text-align: center;
}

/* BLOC MOTIVATION */
.motivation-box {
    margin-bottom: 25px;
}

.motivation-box h1 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.motivation-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

/* CARTE DU FORMULAIRE */
.login-card { 
    background: var(--card); 
    padding: 30px 25px; 
    border-radius: 16px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    text-align: left;
}

.login-card h2 {
    margin-bottom: 20px;
    font-size: 1.25rem;
    color: var(--text);
}

/* GROUPES DE FORMULAIRES */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.form-control { 
    width: 100%; 
    border: 1px solid #d1d5db; 
    border-radius: 8px; 
    padding: 12px; 
    outline: none; 
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* BOUTON SE CONNECTER */
.btn-login { 
    background: var(--primary); 
    color: white; 
    border: none; 
    width: 100%;
    padding: 12px; 
    border-radius: 8px; 
    font-weight: bold; 
    font-size: 1rem;
    cursor: pointer; 
    margin-top: 10px;
    transition: background 0.2s;
}

.btn-login:hover { 
    background: var(--primary-hover); 
}

/* ALERTES D'ERREURS */
.error-alert {
    background: #ffe4e6;
    color: #b91c1c;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    border: 1px solid #fecdd3;
    animation: shake 0.4s ease-in-out;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Petite animation en cas d'erreur de connexion */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}
/* Conteneur vidéo pour le format vertical (9:16) */
.video-container {
    position: relative;
    width: 100%;
    max-width: 400px; /* Largeur idéale pour le mobile */
    margin: 10px auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}
.post-media-vertical {
    width: 100%;
    aspect-ratio: 9/16; /* Force le format vertical */
    object-fit: cover;
    display: block;
}
/* Style pour les embeds YouTube */
.youtube-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    margin-top: 10px;
}
.youtube-wrapper iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}