/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f9fafc;
    color: #333;
    text-align: center; /* CENTRAGE GLOBAL */
}

/* ================= HEADER / NAV ================= */
header {
    background-color: #1e3a8a;
    color: white;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1500;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}
header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}
nav a:hover {
    background-color: #2563eb;
}

/* ================= HERO ================= */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    padding: 60px 20px;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
}
.hero h2, .hero p {
    margin: 0 auto 20px auto;
    max-width: 700px;
}
.hero button {
    background-color: #fbbf24;
    border: none;
    color: #1e3a8a;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 0 auto;
}
.hero button:hover {
    background-color: #f59e0b;
}

/* ================= CARDS ================= */
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}
.card {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    flex: 1 1 250px;
    max-width: 300px;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}
.card h3 {
    color: #1e3a8a;
    margin-bottom: 10px;
}
.card img {
    display: block;
    margin: 0 auto 10px auto;
}

/* ================= PERSONNEL ================= */
.personnel-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px auto;
}

/* ================= FORM ================= */
form {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    max-width: 500px;
    margin: 40px auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
}
form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
}
form button {
    background-color: #1e3a8a;
    color: white;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    display: block;
    margin: 0 auto;
}
form button:hover {
    background-color: #2563eb;
}

/* ================= FOOTER ================= */
footer {
    background-color: #1e3a8a;
    color: white;
    padding: 20px;
    margin-top: 50px;
    text-align: center;
}

/* ================= ETABLISSEMENTS / PARTNERS ================= */
.etab-card, .partner-logo {
    text-align: center;
}
.etab-img, .partner-logo img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 12px;
}
.btn-etab {
    display: inline-block;
    margin: 10px auto 0 auto;
    background: #1e3a8a;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}
.btn-etab:hover {
    background: #2563eb;
}

/* ================= MENU BURGER ================= */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 3000;
}
.burger div {
    width: 28px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ================= FULL MOBILE MODE ================= */
@media (max-width: 768px) {
    header { position: relative; }
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #1e3a8a;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding: 0;
        transform: translateY(-100%);
        transition: transform 0.35s ease-in-out;
        z-index: 2000;
        flex-wrap: nowrap;
    }
    nav a {
        font-size: 1.6rem;
        width: 100%;
        text-align: center;
        padding: 15px 0;
        color: white;
    }
    nav.nav-active {
        transform: translateY(0);
    }
    .burger {
        display: flex;
        position: absolute;
        top: 15px;
        right: 20px;
    }
}
.burger.toggle div:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.toggle div:nth-child(2) { opacity: 0; }
.burger.toggle div:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.etab-infos {
    text-align: left;
    font-size: 0.95rem;
    margin: 15px 0;
    line-height: 1.6;
}

.etab-infos strong {
    color: #1e3a8a;
}
