/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange: #F6600A;
    --black: #2D2D2D;
    --light-gray: #F9F9F9;
    --white: #FFFFFF;
    --primary-orange: #F6600A;
    --dark-gray: #2D2D2D;
}

/* --- Navigation --- */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h2 {
    color: var(--primary-orange);
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    margin: 0;
}

/* Brand link layout and logo sizing */
.nav-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.nav-brand picture,
.nav-brand img {
    display: block;
    height: 32px;
    width: auto;
}

.nav-brand .brand-text {
    line-height: 1;
}
.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-orange);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-orange);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--black);
    background-color: var(--white);
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Bebas Neue', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: normal;
}

h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--black);
}

section {
    padding: 80px 0;
}

/* --- Hero Section --- */
.hero {
    background-color: var(--black);
    color: var(--white);
    text-align: center;
    padding: 180px 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    margin-top: 70px;
}

.hero h1 {
    font-size: 6rem;
    margin: 0;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin: 10px 0 30px;
    font-family: 'Montserrat', sans-serif;
}

.cta-button {
    font-family: 'Bebas Neue', sans-serif;
    background-color: var(--orange);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.5rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    box-shadow: 0 5px 15px rgba(246, 96, 10, 0.4);
    transform: translateY(-3px);
}

.secondary-button {
    display: inline-block;
    background: transparent;
    color: var(--orange);
    border: 2px solid var(--orange);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.secondary-button:hover {
    background: var(--orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(246, 96, 10, 0.3);
}

.syllabus-link {
    text-align: center;
    margin-top: 40px;
}

/* --- About Section --- */
.about {
    background-color: var(--light-gray);
}

.about .container {
    max-width: 800px;
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
}

.about p {
    font-size: 1.1rem;
}

/* --- Modules Section --- */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.module-item {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    font-weight: bold;
}

/* --- Parcours Section --- */
.parcours {
    background-color: var(--light-gray);
}

.parcours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.parcours-item {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--orange);
}

.parcours-item h3 {
    font-size: 1.8rem;
    margin-top: 0;
}

/* --- Impact Section --- */
.impact ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.impact li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23F6600A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left center;
    padding-left: 40px;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--orange);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 30px;
}

.cta-section .cta-button {
    background-color: var(--white);
    color: var(--orange);
}

.cta-section .cta-button:hover {
     box-shadow: 0 5px 15px rgba(45, 45, 45, 0.2);
}

/* --- FAQ Section --- */
.faq-item {
    max-width: 800px;
    margin: 0 auto 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.faq-question {
    font-size: 1.5rem;
    margin: 0;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--orange);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust as needed */
    padding-top: 10px;
}

/* --- Footer --- */
footer {
    background-color: var(--black);
    color: var(--light-gray);
    text-align: center;
    padding: 40px 0;
}

footer .logos img {
    max-height: 40px;
    margin-top: 20px;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h2 {
        font-size: 2.2rem;
    }

    /* Navbar brand sizing on mobile */
    .nav-brand h2 {
        font-size: 1.6rem;
    }

    .nav-brand picture,
    .nav-brand img {
        height: 28px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    section {
        padding: 60px 0;
    }

    .hero .hero-logo {
        display: inline-block;
        height: 64px;
        width: auto;
    }
    .hero .hero-logo img,
    .hero .hero-logo source {
        display: block;
        height: 100%;
        width: auto;
    }
    /* supprimer le style devenu inutile */
    /* .hero .hero-title-text { line-height: 1; } */
    .hero .hero-logo { height: 48px; }
}