/* ------------------------------
    GLOBAL STYLES
--------------------------------*/
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    background-color: #ffffff;
    color: #0a1a2f;
}

a {
    color: #0a1a2f;
    font-weight: 600;
    text-decoration: none;
}

h1, h2, h3 {
    color: #0a1a2f;
}

.center-title {
    text-align: center;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

/* ------------------------------
    NAVBAR
--------------------------------*/
.navbar {
    width: 100%;
    background-color: #0a1a2f;
    color: white;
    padding: 15px 0;
    display: flex;
    justify-content: center;
}

.nav-center {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.nav-logo {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
}

.navbar a {
    color: white;
    font-weight: 600;
    transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
    text-decoration: underline;
}

/* ------------------------------
    HERO
--------------------------------*/
.hero {
    text-align: center;
    padding: 120px 20px 60px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* ------------------------------
    PRESENTATION + CONTACT
--------------------------------*/
.presentation,
.contact {
    max-width: 900px;
    margin: auto;
    padding: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact h2 {
    text-align: center;
}

.contact p {
    text-align: center;
}

/* ------------------------------
    FORMATIONS PAGE
--------------------------------*/
.page-title {
    margin-top: 40px;
    text-align: center;
    font-size: 2.2rem;
}

.formations-container {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
}

.formation-card {
    background: #0a1a2f;
    color: white;
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.formation-card p,
.formation-card h2 {
    color: white;
}

.formation-card strong {
    color: #d8e6ff; /* Bleu très clair élégant */
}

.formation-card:hover {
    transform: translateY(-5px);
}

/* ------------------------------
    DATES PAGE
--------------------------------*/
.events-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.event {
    background: #f5f7fa;
    border: 2px solid #0a1a2f;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

/* Event poster */
.event img {
    width: 220px;
    max-width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

/* If poster missing */
.event.no-image img {
    display: none;
}

.event-info {
    flex: 1;
}

.event-info h2 {
    margin-top: 0;
    font-size: 1.7rem;
}

/* ------------------------------
    FOOTER
--------------------------------*/
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: #0a1a2f;
    color: white;
}

/* ------------------------------
    RESPONSIVE RULES
--------------------------------*/

/* Navbar for small screens */
@media (max-width: 600px) {
    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }

    .nav-logo {
        width: 65px;
    }
}

/* Event layout for phones */
@media (max-width: 750px) {
    .event {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .event-info {
        text-align: center;
    }
}

.nav-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}