/* ===== STYLES GÉNÉRAUX ===== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f2f2f2;
    text-align: center;
    color: #000;
    scroll-behavior: smooth;
}

a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c0392b;
}

/* ===== HEADER ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header img {
    height: 50px;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    font-weight: bold;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #c0392b;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* ===== MENU DÉROULANT ===== */
.dropdown {
    position: relative;
}

.dropbtn {
    cursor: pointer;
    font-weight: bold;
    padding: 10px 15px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
    top: 100%;
    left: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 10px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background-color: #f2f2f2;
}

/* ===== CONTENU PRINCIPAL ===== */
.main-content {
    padding: 50px 20px;
    animation: fadeIn 1s ease;
}

.main-content h1,
.main-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.main-content p {
    font-size: 1.2em;
    color: #000;
}

/* ===== SECTION ENGAGEMENTS (grille de cartes moderne) ===== */
.engagements {
    padding: 80px 20px;
    background-color: #f2f2f2;
    text-align: center;
}

.section-title {
    font-size: 3em;
    font-family: 'Georgia', serif;
    margin-bottom: 10px;
    color: #000;
    position: relative;
}

.section-subtitle {
    font-size: 1.2em;
    color: #444;
    max-width: 900px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* Grille de cartes */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Style des cartes */
.card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1em;
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 10px;
    position: relative;
}

.card h3::after {
    content: "";
    width: 40px;
    height: 3px;
    background-color: #00acc1;
    display: block;
    margin: 10px auto 0;
}

.card p {
    font-size: 1em;
    color: #000;
    line-height: 1.6;
    margin-top: 10px;
}


.formation:nth-child(1) { animation-delay: 0.2s; }
.formation:nth-child(2) { animation-delay: 0.4s; }
.formation:nth-child(3) { animation-delay: 0.6s; }
.formation:nth-child(4) { animation-delay: 0.8s; }
.formation:nth-child(5) { animation-delay: 1s; }

.formation h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #000;
}

.formation p {
    font-size: 1.1em;
    line-height: 1.5;
    color: #000;
}

.duration {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: #000;
}

.page-title {
    font-size: 3em;
    font-weight: bold;
    color: #000000;
    margin-bottom: 10px;
}

.intro-text {
    font-size: 1.3em;
    color: #000;
    max-width: 800px;
    margin: 0 auto 40px;
    font-weight: 500;
}


/* ===== FOOTER ===== */
footer {
    margin-top: 50px;
    font-size: 0.9em;
    color: #000;
    text-align: center;
    padding: 20px;
    background: #f8f8f8;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
        width: 100%;
    }

    .formation {
        padding: 20px;
    }

    .main-content h1, .main-content h2 {
        font-size: 2em;
    }
}
