/* =========================================
   1. RÉINITIALISATION ET STYLES DE BASE
   ========================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

html { scroll-behavior: smooth; }

body { 
    background-color: #f4f7f6; 
    color: #333; 
    line-height: 1.6; 
}

/* =========================================
   2. EN-TÊTE (HEADER)
   ========================================= */
header { 
    background-color: #ffffff; /* Fond blanc classique */
    text-align: center; 
    padding: 30px 20px; 
    border-bottom: 3px solid #003366; 
}

.logo-container h1 { 
    color: #003366; 
    font-size: 2.2em;
    margin-top: 10px; 
    letter-spacing: 1px;
}

.logo-container p { 
    color: #666; 
    font-weight: bold; 
    letter-spacing: 3px; 
    margin-top: 5px;
}

/* =========================================
   3. BARRE DE NAVIGATION (MENU DU HAUT)
   ========================================= */
nav { 
    background-color: #003366; 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
    padding: 15px; 
    position: sticky; 
    top: 0; 
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

nav a { 
    color: white; 
    text-decoration: none; 
    margin: 5px 15px; 
    font-weight: 500; 
    transition: color 0.3s ease; 
}

nav a:hover { color: #ffcc00; }

.btn-postuler-nav { 
    background-color: #ffcc00; 
    color: #003366 !important; 
    padding: 8px 20px; 
    border-radius: 5px; 
    font-weight: bold; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.btn-postuler-nav:hover { transform: scale(1.05); }

/* =========================================
   NOUVEAU : LOGO CENTRAL (Entre le menu et le contenu)
   ========================================= */
.logo-central {
    text-align: center;
    margin-top: 40px; /* Espace avec le menu bleu */
    margin-bottom: 20px; /* Espace avec les sections */
}

.logo-central img {
    width: 250px; /* Taille du grand logo (tu peux modifier) */
    max-width: 80%; /* Pour que ça ne dépasse pas sur téléphone */
    height: auto;
    /* Effet d'ombre portée pour faire ressortir le logo */
    filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.15)); 
}

/* =========================================
   4. CONTENEUR PRINCIPAL
   ========================================= */
main { 
    max-width: 900px; 
    margin: 20px auto 40px auto; /* Ajusté pour le logo central */
    padding: 0 20px; 
}

/* =========================================
   5. SECTIONS DÉROULANTES (ACCORDÉON)
   ========================================= */
details {
    background: white;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden; 
    border-left: 4px solid #003366; 
}

summary {
    background-color: #ffffff; 
    color: #003366; 
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    list-style: none; 
    position: relative;
    transition: all 0.3s ease;
}

summary:hover { background-color: #f0f4f8; }

summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5em;
    color: #003366;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    content: '-';
    transform: rotate(180deg);
}

details[open] summary {
    background-color: #e6f0fa;
    border-bottom: 1px solid #d0e3f5;
}

.contenu-details {
    padding: 20px;
    background-color: #ffffff;
    animation: fadeIn 0.4s ease-in-out; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.contenu-details p { margin-bottom: 10px; }
.contenu-details ul { margin-left: 20px; margin-top: 10px; }
.contenu-details li { margin-bottom: 8px; }

/* =========================================
   6. FORMULAIRE DE CANDIDATURE
   ========================================= */
.section-postuler { 
    background-color: #e6f0fa; 
    border: 2px dashed #003366; 
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.section-postuler h2 {
    color: #003366;
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.6em;
}

.section-postuler p {
    text-align: center;
    margin-bottom: 20px;
    color: #555;
}

.section-postuler form { 
    display: flex; 
    flex-direction: column; 
    text-align: left; 
    max-width: 500px; 
    margin: 0 auto; 
}

.section-postuler label { 
    margin-top: 15px; 
    font-weight: bold; 
    color: #003366; 
    font-size: 0.95em;
}

.section-postuler input { 
    padding: 12px; 
    margin-top: 5px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    font-size: 1em; 
    background-color: #ffffff;
    transition: border-color 0.3s ease;
}

.section-postuler input:focus {
    outline: none;
    border-color: #00509e;
    box-shadow: 0 0 5px rgba(0, 80, 158, 0.3);
}

.section-postuler button { 
    margin-top: 25px; 
    background-color: #003366; 
    color: white; 
    padding: 15px; 
    border: none; 
    border-radius: 5px; 
    font-size: 1.1em; 
    font-weight: bold; 
    cursor: pointer; 
    transition: background-color 0.3s, transform 0.2s; 
}

.section-postuler button:hover { 
    background-color: #00509e; 
    transform: translateY(-2px);
}

/* =========================================
   7. PIED DE PAGE (FOOTER)
   ========================================= */
footer { 
    text-align: center; 
    padding: 20px; 
    background-color: #003366; 
    color: white; 
    margin-top: 50px; 
    font-size: 0.9em; 
}
/* =========================================
   8. ESPACE CANDIDATS
   ========================================= */
.section-candidats {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.section-candidats h2 {
    color: #003366;
    text-align: center;
    margin-bottom: 20px;
}

.compteur-box {
    background-color: #ffcc00;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.chiffre-compteur {
    font-size: 2.5em;
    font-weight: bold;
    color: #003366;
}

.compteur-box p {
    font-size: 1.2em;
    color: #003366;
    font-weight: bold;
}

.sous-titre-compteur {
    font-size: 0.9em !important;
    font-weight: normal !important;
    color: #333 !important;
}

.titre-tableau {
    font-weight: bold;
    color: #003366;
    margin-bottom: 10px;
}

.tableau-candidats {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.tableau-candidats th, .tableau-candidats td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.tableau-candidats th {
    background-color: #003366;
    color: white;
    font-weight: bold;
}

.tableau-candidats tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tableau-candidats tr:hover {
    background-color: #f1f1f1;
}