/* ================================
   VARIABLES GLOBALES
   ================================ */
:root {
    --color-dark-blue: #041c3f;
    --color-red: #b40626;
    --color-white: #ffffff;
    --color-light-gray: #f4f4f4;
    --font-primary: 'Poppins', sans-serif;
}

/* ================================
   RESET & BASE
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--color-dark-blue);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ================================
   HEADER & NAVIGATION
   ================================ */
.main-header {
    background-color: var(--color-dark-blue);
}

.top-nav {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(0,0,0,0.4);
}

.logo-header img {
    height: 60px;
    margin-right: 500px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--color-white);
    font-weight: 600;
    font-size: 14px;
}

.search-icon {
    margin-left: auto;
    font-size: 18px;
    color: var(--color-white);
    cursor: pointer;
}

/* ================================
   FORMATION HERO (CENTRÉ)
   ================================ */
.formation-hero {
    position: relative;
    height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: var(--color-white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}

.formation-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.formation-hero-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.formation-hero-content h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
}

/* ================================
   CONTENU FORMATION
   ================================ */
.formation-content {
    padding: 60px;
    background-color: var(--color-white);
}

.section-title-red {
    color: var(--color-red);
    font-size: 28px;
    margin-bottom: 10px;
}

.formation-content h2 {
    font-size: 26px;
    margin-bottom: 40px;
}

.formation-info-grid {
    display: grid;
    grid-template-columns:  1fr;
    gap: 30px;
    width: 100%;
}

.info-box h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
}

.info-box p {
    font-size: 18px;
    line-height: 1.7;
}

/* ================================
   BOUTON INSCRIPTION
   ================================ */

.inscription-btn-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 500px;
}
.formation-content {
    position: relative; /* IMPORTANT */
}

.inscription-btn-container {
    position: absolute;
    bottom: 30px;
    right: 30px;
}


.btn {
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    transition: 0.3s;
}

.btn:hover {
    opacity: 0.9;
}

/* ================================
   FOOTER
   ================================ */
.main-footer {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
}

/* FOOTER TOP */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 50px;
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about,
.footer-contacts,
.footer-links {
    max-width: 280px;
}

/* LOGO FOOTER */
.footer-logo {
    width: 120px;
    margin-bottom: 15px;
}

/* TITRES FOOTER */
.footer-contacts h3,
.footer-links h3 {
    color: var(--color-red);
    font-size: 18px;
    margin-bottom: 15px;
}

/* TEXTE FOOTER */
.footer-contacts p {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* LIENS RAPIDES */
.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 15px;
    color: var(--color-white);
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--color-red);
}

/* FOOTER BOTTOM */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: rgba(0,0,0,0.25);
    font-size: 14px;
}

/* RÉSEAUX SOCIAUX */
.social-links a {
    margin-right: 15px;
    font-size: 18px;
    color: var(--color-white);
}

.social-links a:hover {
    color: var(--color-red);
}

.news-link {
    color: var(--color-red);
    font-weight: 700;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 992px) {
    .formation-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        padding: 30px 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .formation-info-grid {
        grid-template-columns: 1fr;
    }

    .formation-content {
        padding: 30px 20px;
    }

    .formation-hero-content h1 {
        font-size: 24px;
    }
}
