/* --- CATALOGUE SECTION --- */
.catalogue-controls {
    width: 100%;
    margin-bottom: 40px;
}

.catalogue-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 50px 100px;
    box-sizing: border-box;
}


/* --- TITLES --- */
.small-title-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.small-title-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    justify-content: center; /* Ajout: centre horizontalement */
}

.section-pretitle {
    color: var(--text-gray);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
}
.orange-line {
    width: 40px;
    height: 3px;
    background: var(--primary-yellow);
}

.catalogue-title {
    font-family: var(--font-secondary);
    color: var(--text-white);
    font-size: 42px;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

.catalogue-lead {
    color: var(--text-gray);
    font-family: var(--font-primary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* --- CONTROLS --- */
/* catalogue-controls styles moved to assets/css/components/catalogue-controls.css */


.catalogue-search {
    flex: 4;
    width: 100%;
}

.catalogue-search .input-group {
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.catalogue-search input {
    width: 100%;
    padding: 18px 10px;
    border: none;
    font-family: var(--font-primary);
    outline: none;
}

.sort-dropdown {
    flex: 1;
    min-width: 200px;
}

.sort-dropdown button {
    width: 100%;
    height: 100%;
    padding: 0 20px;
    background: #fff;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.catalogue-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.catalogue-tabs li {
    flex: 1;
}

.catalogue-tabs button {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    font-size: 14px;
}

.catalogue-tabs li.active button {
    background: var(--primary-green);
    color: var(--bg-color);
    font-weight: 700;
}

/* --- CARDS --- */
.training-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Ensure grid rows are equal height so cards can stretch uniformly */
.training-cards {
    grid-auto-rows: 1fr;
}

/* Ensure grid children are consistent */
.training-cards > .training-card,
.training-cards > article.training-card {
    width: 100%;
    box-sizing: border-box;
}


/* --- OTHER TRAININGS SECTION --- */
.other-trainings {
    padding: 80px 0 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.other-trainings-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 100px;
    width: 100%;
    box-sizing: border-box;
}

.other-trainings h3 {
    color: var(--text-white);
    font-size: 32px;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-primary);
    font-weight: 700;
    text-align: start;
    width: 100%;
}

.other-trainings .training-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 24px;
}

/* Contextual override: smaller titles in the Other trainings section */
.other-trainings .training-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

/* --- CERTIFICATIONS --- */
.certifications-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 80px 0;
    text-align: center;
}

.certifications-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 100px;
    box-sizing: border-box;
    width: 100%;
}

.cert-title {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-secondary);
    color: #0d426a;
    width: 570px;
    font-size: 42px;
    margin: 0 auto 50px;
}

.cert-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 64px;
    max-width: 1240px;
    margin: 0 auto;
}

.cert-grid img {
    max-height: 101px;
}


/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .hero-inner,
    .catalogue-inner,
    .other-trainings-inner,
    .cta-banner-inner,
    .certifications-inner {
        padding: 0 60px;
    }
}

@media (max-width: 1024px) {
    
    .hero-inner,
    .catalogue-inner,
    .other-trainings-inner,
    .cta-banner-inner,
    .certifications-inner {
        padding: 0 40px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .catalogue-title {
        font-size: 36px;
    }
    
    .cta-title {
        font-size: 40px;
    }
    
    .cert-title {
        font-size: 36px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-inner,
    .catalogue-inner,
    .other-trainings-inner,
    .cta-banner-inner,
    .certifications-inner {
        padding: 0 24px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .catalogue-title {
        font-size: 32px;
    }

    .other-trainings h3 {
        font-size: 28px;
    }
    
    .cta-title {
        font-size: 32px;
    }
    
    .cert-title {
        font-size: 32px;
    }

    /* catalogue-controls moved to component CSS */

    
    .training-cards,
    .other-trainings .training-cards {
        grid-template-columns: 1fr;
    }
    
    .cert-grid {
        gap: 40px;
    }
    
    .cert-grid img {
        max-height: 80px;
    }
}

@media (max-width: 480px) {
    .hero-inner,
    .catalogue-inner,
    .other-trainings-inner,
    .cta-banner-inner,
    .certifications-inner {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .catalogue-title {
        font-size: 28px;
    }

    .other-trainings h3 {
        font-size: 24px;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cert-title {
        font-size: 28px;
    }
    
    .cert-grid {
        gap: 30px;
    }
    
    .cert-grid img {
        max-height: 60px;
    }
}