/* --- VARIABLES ET RESET --- */
:root {
    --primary: #d4af37;      /* Or Premium */
    --primary-hover: #b5952f;
    --secondary: #2c3e50;    /* Bleu Nuit */
    --accent: #f39c12;       /* Orange suivi */
    --bg: #f8f9fa;
    --white: #ffffff;
    --text: #333333;
    --text-light: #7f8c8d;
    --error: #e74c3c;
    --success: #27ae60;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { background-color: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* --- HEADER GLOBAL --- */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-area { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-placeholder, .logo-img { width: 45px; height: 45px; border-radius: 50%; background: #eee; object-fit: cover; }
.brand-name { font-size: 1.3rem; font-weight: bold; color: var(--secondary); }

.login-icon-link { color: var(--secondary); transition: 0.3s; display: flex; }
.login-icon-link:hover { color: var(--primary); }

/* --- BANNIERE ET PROFIL --- */
.banner-houppa {
    width: 100%; height: 280px;
    background: var(--secondary) url('images/banner.jpg') center/cover no-repeat;
}

.profile-section { text-align: center; margin-top: -60px; margin-bottom: 40px; }
.pic-placeholder, .profile-img { 
    width: 130px; height: 130px; border-radius: 50%; 
    background: #eee; border: 5px solid var(--white); 
    box-shadow: var(--shadow); margin: 0 auto; object-fit: cover;
}

/* --- FORMULAIRES (Login, Contact, Candidat) --- */
.card-form {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 450px;
    margin: 40px auto;
}

.input-group { margin-bottom: 18px; text-align: left; }
.input-group label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--secondary); font-size: 0.9rem; }

input, textarea, select {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px;
    font-size: 16px; /* Empêche le zoom iOS */
    background: #fcfcfc; transition: border 0.3s;
}

input:focus { border-color: var(--primary); outline: none; }

.btn {
    display: inline-block; width: 100%; background: var(--primary); color: white;
    padding: 14px; border: none; border-radius: 8px; font-size: 1rem;
    font-weight: bold; cursor: pointer; transition: 0.3s; text-align: center; text-decoration: none;
}
.btn:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* --- DASHBOARD ADMIN (Tableaux) --- */
.admin-container { padding: 30px; max-width: 1200px; margin: 0 auto; }
.table-responsive { width: 100%; overflow-x: auto; background: white; border-radius: 12px; box-shadow: var(--shadow); }

table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f4f6f8; color: var(--secondary); font-weight: bold; }

.badge { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; color: white; }
.bg-new { background: var(--error); }
.bg-process { background: var(--accent); }
.bg-done { background: var(--success); }

/* --- WHATSAPP & FOOTER --- */
.whatsapp-float {
    position: fixed; bottom: 25px; right: 25px; 
    background: #25d366; width: 55px; height: 55px; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 100; transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }

footer { text-align: center; padding: 40px 20px; background: var(--secondary); color: white; margin-top: 50px; }

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 600px) {
    .brand-name { font-size: 1.1rem; }
    .banner-houppa { height: 180px; }
    .card-form { padding: 20px; border-radius: 0; box-shadow: none; background: transparent; }
    .profile-section h1 { font-size: 1.8rem; }
    .admin-container { padding: 10px; }
}