.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.quick-access-grid.single-column {
    grid-template-columns: 1fr;
}
.partners-slider.partners-slider-ready .partners-track {
    gap: 0;
}

.partners-slider.partners-slider-ready .partner-slide {
    padding: 0 15px;
}

.partners-slider-static .partners-nav {
    display: none !important;
}
/*
Theme Name: Lycée Saint-Yves
Description: Thème responsive pour le Lycée Saint-Yves Gourin
Version: 1.0
Author: Lycée Saint-Yves
*/


/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables CSS pour la cohérence */
:root {
    /* Hauteur du header mobile : Top bar + Nav-content avec logo */
    /* Ajustez cette valeur en mesurant avec les outils de développement du navigateur */
    --header-height-mobile: 110px; /* Top bar (~40px) + Nav-content avec logo (~70px) */
    --primary-blue: #2D4C6F;
    --light-blue: #009DC2; /* Bleu clair Pantone 7460 C (C100 M0 J20 N0 / R0 V157 B194) */
    --yellow: #FECB13; /* Jaune Pantone 116 C (C0 M20 J100 N0 / R254 V203 B19) */
    --green: #C8D224; /* Vert Pantone 2297 C (C30 M0 J100 N0 / R200 V210 B36) */
    --orange: #f97316;
    --white: #ffffff;
    --gray-light: #f3f4f6;
    --gray-dark: #4A4A49; /* Pantone Cool Gray 11 C (C0 M0 J0 N85 / R74 V74 B73) */
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* HEADER RESPONSIVE */
.top-bar {
    background-color: #4A4A49;
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--light-blue);
    transform: translateY(-2px);
}

/* Social networks dans la top bar - fond blanc */
.social-networks {
    display: flex;
    gap: 15px;
}

.social-networks a {
    color: var(--primary-blue);
    background-color: var(--white);
    text-decoration: none;
    font-size: 12px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-networks a:hover {
    color: var(--white);
    background-color: var(--light-blue);
    transform: translateY(-2px);
}

/* Navigation principale */
.main-nav {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 5px;
    padding-bottom: 5px;
    position: relative;
}

/* Logo */
.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 18px;
}

.logo-image {
    height: 100px;
    width: auto;
}

.logo-icon {
    background-color: var(--primary-blue);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}

/* Navigation desktop */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    color: var(--primary-blue);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    transition: all 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.main-menu a:hover,
.main-menu a.active {
    color: var(--light-blue);
}

/* Note: Effet de la barre animée sous les liens du menu supprimé */

/* Boutons header */
.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-buttons .btn {
    padding: 6px 12px;
}

.btn {
    padding: 10px 18px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-light-blue {
    background-color: var(--light-blue);
    color: var(--white);
}

.btn-light-blue:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-primary-blue {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary-blue:hover {
    background-color: var(--light-blue);
    transform: translateY(-2px);
}

/* Menu mobile overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 998;
    pointer-events: none;
}

.mobile-menu {
    position: fixed;
    top: var(--header-height-mobile, 110px); /* Utilise la variable pour faciliter l'ajustement */
    right: -100%;
    width: 85%;
    height: calc(100vh - var(--header-height-mobile, 110px));
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    padding: 20px;
    overflow-y: auto;
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
    pointer-events: auto;
}

.mobile-menu-overlay.active .mobile-menu {
    right: 0;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    margin-bottom: 20px;
}

.mobile-menu-list a {
    color: var(--primary-blue);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
    transition: color 0.3s ease;
}

.mobile-menu-list a:hover {
    color: var(--light-blue);
}

.mobile-menu-list .menu-item-has-children {
    position: relative;
}

.mobile-menu-list .submenu-toggle {
    position: absolute;
    top: 15px;
    right: 0;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-menu-list .submenu-toggle i {
    transition: transform 0.3s ease;
}

.mobile-menu-list .menu-item-has-children.submenu-open > .submenu-toggle i {
    transform: rotate(180deg);
}

.mobile-menu-list .menu-item-has-children > ul.sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 15px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-list .menu-item-has-children.submenu-open > ul.sub-menu {
    opacity: 1;
    margin-top: 10px;
}

.mobile-menu-list .menu-item-has-children > ul.sub-menu li {
    margin-bottom: 10px;
}

.mobile-menu-list .menu-item-has-children > ul.sub-menu a {
    font-size: 16px;
    text-transform: none;
    padding: 10px 0;
    border-bottom: none;
}


/* Menu hamburger */
.mobile_menu {
    display: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
}

.mobile_menu .hamburger {
    position: relative;
    width: 56px;
    height: 56px;
    padding: 0;
    margin: 0;
    display: block;
}

.mobile_menu .hamburger span,
.mobile_menu .hamburger span:before,
.mobile_menu .hamburger span:after {
    position: absolute;
    width: 36px;
    height: 4px;
    border-radius: 4px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease-in-out;
}

.mobile_menu .hamburger span {
    background: #009DC2;
}

.mobile_menu .hamburger span:before {
    content: '';
    margin-top: -10px;
    background: #C8D224;
}

.mobile_menu .hamburger span:after {
    content: '';
    margin-top: 10px;
    background: #ffcb05;
}



.mobile_menu .hamburger.cross span:before {
    -moz-transition: transform 0.2s ease-in-out;
    -o-transition: transform 0.2s ease-in-out;
    -webkit-transition: transform 0.2s ease-in-out;
    transition: transform 0.2s ease-in-out;
    -webkit-transform: translate(-50%, -50%) rotate(-45deg);
    -moz-transform: translate(-50%, -50%) rotate(-45deg);
    -ms-transform: translate(-50%, -50%) rotate(-45deg);
    -o-transform: translate(-50%, -50%) rotate(-45deg);
    transform: translate(-50%, -50%) rotate(-45deg);
    margin-top: 0;
    transform-origin: center;
}

.mobile_menu .hamburger.cross span:after {
    -moz-transition: transform 0.2s ease-in-out;
    -o-transition: transform 0.2s ease-in-out;
    -webkit-transition: transform 0.2s ease-in-out;
    transition: transform 0.2s ease-in-out;
    -webkit-transform: translate(-50%, -50%) rotate(45deg);
    -moz-transform: translate(-50%, -50%) rotate(45deg);
    -ms-transform: translate(-50%, -50%) rotate(45deg);
    -o-transform: translate(-50%, -50%) rotate(45deg);
    transform: translate(-50%, -50%) rotate(45deg);
    margin-top: 0;
    transform-origin: center;
}

.mobile_menu span.hamburger.cross > span {
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
    background: transparent;
}

/* HERO SECTION */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 76, 111, 0.8), rgba(0, 157, 194, 0.6));
    z-index: 1;
}

/* Pas d'overlay pour la hero de la page d'accueil */
.hero-homepage::before {
    display: none;
}

/* Largeur spécifique pour le hero-content de la page d'accueil */
.hero-homepage .hero-content {
    max-width: 600px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

/* SECTIONS GÉNÉRALES */
.section {
    padding: 50px 0;
}

/* Réduire l'espacement entre contenu et bloc informations filières */
.section:not(.section-white) + .section-white.info-filiere-section {
    padding-top: 20px;
}

.section:has(+ .section-white.info-filiere-section) {
    padding-bottom: 40px;
}

.section-white {
    background-color: var(--white);
}

.section-light {
    background-color: var(--gray-light);
}

.section-colored {
    background-color: var(--primary-blue);
    color: #ffffff !important;
}

.section-colored * {
    color: #ffffff !important;
}

.section-title-with-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.section-title-with-logo img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.section-title-with-logo h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.section-title-blue h2 {
    color: var(--primary-blue);
}

.section-title-white h2 {
    color: var(--white);
}

.section-title-yellow h2 {
    color: var(--yellow);
}

/* DIRECTOR SECTION */
.director-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.director-content {
    flex: 1;
}

/* Titre du directeur prend toute la largeur */
.director-content .section-title-with-logo h2 {
    flex: 1;
    min-width: 0;
}

.director-text {
    font-size: 18px;
    line-height: 1.8;
    margin: 30px 0;
}

.director-signature {
    font-style: italic;
    font-size: 16px;
    margin-top: 30px;
}

.director-image {
    flex: 1;
    text-align: center;
}

.director-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* GRID LAYOUTS */
.values-grid,
.programs-grid,
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-dark);
}

/* FOOTER */
/* Footer styles - voir définition complète plus bas dans le fichier (ligne ~2031) */

/* RESPONSIVE DESIGN */

/* Très grands écrans */
@media (min-width: 1200px) {
    .main-menu a {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* Tablette et desktop réduit */
@media (max-width: 1024.9px){
    .header-buttons {
        gap: 10px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .main-menu {
        gap: 20px;
    }
    
    .main-menu a {
        font-size: 16px;
    }
}

/* Tablette spécifique - réorganisation des boutons */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }
    
    .nav-content .logo {
        order: 1;
    }
    
    .nav-content .main-navigation {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .nav-content .header-buttons {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
    }
    
    .nav-content .mobile_menu {
        display: none;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    /* Mot du directeur - texte avant image sur tablette */
    .director-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .director-content {
        order: 1;
    }
    
    .director-image {
        order: 2;
        text-align: center;
    }
    
    /* Blocs texte + image - texte avant image sur tablette */
    .content-with-image {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-text {
        order: 1;
    }
    
    .content-image {
        order: 2;
    }
}

/* Mobile */
@media (max-width: 768.9px){
    /* Layout horizontal pour logo et hamburger */
    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }
    
    /* Logo sur mobile */
    .nav-content .logo {
        flex: 0 0 auto;
        order: 1;
    }
    
    /* Menu mobile activation */
    .mobile_menu {
        display: flex !important;
        width: 56px;
        height: 56px;
        flex: 0 0 auto;
        order: 2;
        align-items: center;
        justify-content: center;
    }
    
    /* Ajuster le mobile-menu pour qu'il arrive sous le header complet */
    /* Utilise la variable CSS --header-height-mobile définie dans :root */
    /* Pour trouver la bonne valeur : 
       1. Ouvrez les outils de développement (F12)
       2. Inspectez le header (.top-bar + .main-nav)
       3. Notez la hauteur totale
       4. Ajustez --header-height-mobile dans :root avec cette valeur */
    .mobile-menu {
        top: var(--header-height-mobile, 110px);
        height: calc(100vh - var(--header-height-mobile, 110px));
    }
    
    /* Cacher le menu principal sur mobile */
    .main-navigation {
        display: none !important;
    }
    
    /* Cacher les boutons header sur mobile */
    .header-buttons {
        display: none !important;
    }
    
    /* L'overlay reste display: none par défaut, il s'affiche seulement avec la classe .active */
    
    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    /* Mot du directeur en colonne sur mobile */
    .director-section {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .director-content {
        order: 1 !important;
    }

    .director-content h2 {
        font-size: 24px;
    }

    .section-title-with-logo h2 {
        font-size: 24px;
    }
    .director-content {
        order: 1 !important;
    }

    .director-content h2 {
        font-size: 24px;
    }

  
    
    .director-image {
        order: 2 !important;
        text-align: center;
    }
    
    /* Enlever l'icône transparente du fond */
    body.home section > article::before {
        display: none !important;
    }
    
    /* Lycée en un clic - 2 cartes par ligne sur tablette */
    .lycee-quick-access .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .lycee-quick-access .section-title-with-logo img {
        width: 35px;
        height: 35px;
    }
    
    .lycee-quick-access .section-title-with-logo h2 {
        font-size: 24px;
    }
}

/* Mobile */
@media (max-width: 425.9px){
    .container {
        padding: 0 15px;
    }
    
    .logo-link {
        font-size: 16px;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .main-menu a {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    
    .hero-content h1 {
        font-size: 28px;
        line-height: 1.1;
    }
    
    /* Réduire line-height des titres de section en mobile pour page d'accueil */
    .section-title-with-logo h2 {
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 16px;
        margin-top: 15px;
    }
    
    /* Réduire font-size des breadcrumbs en mobile - vraiment petit */
    .breadcrumbs {
        padding: 3px 0;
    }
    
    .breadcrumbs a,
    .breadcrumbs span {
        font-size: 12px;
        margin-right: 5px;
    }
    
    /* Réduire taille des titres du footer en mobile */
    .footer-section h3 {
        font-size: 14px;
    }
    
    /* Réduire taille du titre "Un réseau, une communauté" en mobile */
    .instagram-feed-section .section-title-with-logo h2 {
        font-size: 18px;
    }
    
    /* Bloc "Besoin de plus d'informations" - boutons en colonne et alignés à gauche */
    .section-dark .text-center {
        text-align: left !important;
    }
    
    .section-dark .text-center a {
        display: block;
        margin: 10px 0 !important;
        margin-left: 0 !important;
        width: auto;
    }
    
    /* Sections responsive */
    .section {
        padding: 40px 0;
    }
    
    /* Les blocs de contenu restent à gauche en mobile - pas de centrage */
    .content-block .section-title-with-logo {
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
        gap: 8px; /* Espacement réduit entre logo et titre */
    }
    
    .content-block .section-title-with-logo img {
        width: 40px;
        height: 40px;
    }
    
    .content-block .section-title-with-logo h2 {
        font-size: 24px;
    }
    
    /* Cartes responsive */
    .values-grid,
    .programs-grid,
    .departments-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 20px;
    }
    
    .card h3 {
        font-size: 18px;
    }
    
    .card p {
        font-size: 14px;
    }
    
    /* Director section mobile */
    .director-section {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .director-content {
        order: 1 !important;
    }
    
    .director-image {
        order: 2 !important;
        text-align: center;
    }
    
    .director-image img {
        width: 100%;
        height: auto;
    }
    
    /* Lycée en un clic - 2 cartes par ligne sur mobile */
    .lycee-quick-access .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .lycee-quick-access .section-title-with-logo img {
        width: 30px;
        height: 30px;
    }
    
    .lycee-quick-access .section-title-with-logo h2 {
        font-size: 20px;
    }
}

/* Typographie */
h3, .menu-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary-blue);
    text-transform: uppercase;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



/* Logo personnalisé */
.logo .custom-logo {
    max-height: 100px;
    width: auto;
}

.logo-image {
    height: 100px;
    width: auto;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--yellow), var(--green), var(--light-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
}

/* Styles pour le menu déroulant */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.menu-item-has-children > a:hover::after,
.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    margin: 0;
}

.sub-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--primary-blue);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f3f4f6;
}

.sub-menu li:last-child a {
    border-bottom: none;
}

.sub-menu a:hover {
    background-color: var(--gray-dark);
    color: #ffffff !important;
    padding-left: 30px;
}

.sub-menu a:hover::after {
    display: none;
}

/* Force le texte blanc au hover avec plus de spécificité */
.menu-item-has-children .sub-menu a:hover {
    background-color: var(--gray-dark) !important;
    color: #ffffff !important;
}

.main-menu .sub-menu a:hover {
    background-color: var(--gray-dark) !important;
    color: #ffffff !important;
}

/* Boutons header */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Hero Section */

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 300;
    text-transform: uppercase;
    color: var(--gray-dark);
    background-color: #F8F8F8;
    padding: 8px 30px;
    margin: 0;
    border: 1px solid #E5E5E5;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.hero-content h1 strong {
    font-weight: 700;
}

.hero-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    background-color: #4A4A49;
    padding: 2px 10px;
    margin: -10px -20px 0 0;
    display: inline-block;
    transform: rotate(-1.5deg);
    position: relative;
    z-index:3;
}

@media (max-width: 768px) {
    .hero-content p {
        font-size: 20px;
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Classes de boutons */

.btn-light-blue {
    background-color: var(--light-blue);
    color: var(--white);
}

.btn-primary-blue {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary {
    background-color: var(--light-blue);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--green);
    color: var(--white);
}

.btn-white {
    background-color: #ffffff;
    color: #2D4C6F;
    border: 2px solid #2D4C6F;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Breadcrumbs */
/* Breadcrumbs styles - voir définition complète plus bas dans le fichier (ligne ~3488) */


.section-dark {
    background-color: #2D4C6F;
    color: #ffffff;
}

/* Section Filières avec fond gris foncé et icône */
.section-filieres {
    background-color: #4A4A49;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.section-filieres::after {
    content: '';
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    background-image: url('images/ICONE BLANC (1).png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.section-filieres .container {
    position: relative;
    z-index: 2;
}

.filieres-button-center {
    text-align: center;
    margin-top: 40px;
}

/* Cards dans la section filières qui sont des liens */
.section-filieres .card {
    background-color: #ffffff !important;
    color: var(--primary-blue) !important;
    box-shadow: 0 4px 12px rgba(0, 157, 194, 0.3);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.section-filieres .card h3 {
    color: var(--primary-blue) !important;
}

.section-filieres .card p {
    color: var(--primary-blue) !important;
}

.section-filieres .card .plus-icon {
    background-color: var(--light-blue);
    color: #ffffff;
}

.section-filieres .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 157, 194, 0.5);
    cursor: pointer;
}

.section-white {
    background-color: #ffffff;
    color: #2D4C6F;
}

/* Section blanche spécifique pour la page contact */
.section-white.contact-form-section {
    background-color: #2D4C6F;
    color: #ffffff;
    padding: 0;
}

.section-white.contact-form-section .container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-light {
    background-color: #F8F8F8;
    color: #2D4C6F;
}

/* Styles dynamiques pour les sections light avec couleur de bloc */
.section-light[style*="--block-color"] .section-title-with-logo h2 {
    color: var(--block-color) !important;
}

/* Les icônes sont maintenant gérées directement par PHP selon la couleur */

.section-light[style*="--block-color"] .btn-primary-blue {
    background-color: var(--block-color) !important;
    color: #ffffff !important;
}

.section-yellow {
    background-color: var(--yellow);
    color: var(--gray-dark);
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url('images/ico_bleu.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: transparent;
    padding: 30px;
    border-radius: 8px;
    box-shadow: none;
    transition: transform 0.3s;
    position: relative;
    color: #2D4C6F;
}

.card:hover {
    transform: translateY(-5px);
}

.card-dark {
    background-color: #2D4C6F;
    color: #ffffff;
}

.card-orange {
    background-color: #f97316;
    color: #ffffff;
}

.card-green {
    background-color: #C8D224;
    color: #ffffff;
}

.card-blue {
    background-color: #009DC2;
    color: #ffffff;
}

.card-yellow {
    background-color: var(--yellow);
    color: #ffffff;
}

.card-yellow * {
    color: #ffffff !important;
}

.card-yellow h3,
.card-yellow p,
.card-yellow a {
    color: #ffffff !important;
}

.card-primary-blue {
    background-color: var(--primary-blue);
    color: #ffffff;
}

.card-light-blue {
    background-color: var(--light-blue);
    color: #ffffff;
}

.card-gray-dark {
    background-color: var(--gray-dark);
    color: #ffffff;
}

.card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: inherit;
}

.card p {
    font-family: 'Poppins', sans-serif;
    color: inherit;
    line-height: 1.6;
}

/* Styles spécifiques pour les cartes "Nos valeurs" */
.section-light .card {
    background-color: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 20px;
    padding: 0;
}

.section-light .card-icon {
    font-size: 3.5rem;
    margin-bottom: 0;
    color: #2D4C6F;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: auto;
    min-height: 60px;
}

/* Couleurs des icônes pour le bloc "Nos valeurs" */
.section-light .card-icon.icon-color-green {
    color: var(--green);
}

.section-light .card-icon.icon-color-green i,
.section-light .card-icon.icon-color-green img {
    color: var(--green);
    filter: none;
}

.section-light .card-icon.icon-color-blue {
    color: var(--light-blue);
}

.section-light .card-icon.icon-color-blue i,
.section-light .card-icon.icon-color-blue img {
    color: var(--light-blue);
    filter: none;
}

.section-light .card-icon.icon-color-yellow {
    color: var(--yellow);
}

.section-light .card-icon.icon-color-yellow i,
.section-light .card-icon.icon-color-yellow img {
    color: var(--yellow);
    filter: none;
}

.section-light .card-content {
    flex: 1;
}

.section-light .card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: var(--gray-dark);
    text-align: left;
}

.section-light .card p {
    font-family: 'Poppins', sans-serif;
    color: var(--gray-dark);
    line-height: 1.6;
    text-align: left;
    margin: 0;
    font-size: 16px;
}

.card .plus-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: var(--white);
    color: var(--gray-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Styles spécifiques pour les sections */
.section-light .section-title {
    color: #2D4C6F;
}

.section-dark .section-title {
    color: #ffffff;
}

.section-light .section-title::before {
    background-image: url('images/ico_bleu.svg');
}

.section-dark .section-title::before {
    background-image: url('images/ico_bleu.svg');
    filter: brightness(0) invert(1);
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Partners */
.partners {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}


/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 5px;
}

/* Footer */

/* Couleurs pour les titres H2 */
.section-title-blue h2 {
    color: var(--primary-blue); /* Bleu foncé */
}

.section-title-yellow h2 {
    color: var(--yellow); /* Jaune */
}

.section-title-orange h2 {
    color: var(--orange); /* Orange */
}

.section-title-green h2 {
    color: var(--green); /* Vert */
}

.section-title-white h2 {
    color: var(--white); /* Blanc */
}

/* Section Instagram Feed */
.instagram-feed-section {
    background-color: var(--white);
    padding: 20px 0;
}

.instagram-slider {
    position: relative;
    margin-top: 30px;
    overflow: hidden;
}

.instagram-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    transition: transform 0.4s ease-in-out;
}

.instagram-slider.instagram-slider-ready .instagram-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
}

.instagram-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.instagram-slider.instagram-slider-ready .instagram-slide {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
}

.instagram-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    width: 100%;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-item:hover img {
    transform: scale(1.05);
}

/* Section Partenaires */
.partners-section {
    background-color: #f8fafc;
    padding: 20px 0;
}

.partners-slider {
    position: relative;
    margin-top: 30px;
    overflow: hidden;
}

.partners-track {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    transition: transform 0.4s ease-in-out;
}

.partners-slider.partners-slider-ready .partners-track {
    flex-wrap: nowrap;
}

.partner-slide {
    flex: 1 1 calc(25% - 30px);
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.partners-slider.partners-slider-ready .partner-slide {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.partner-logo a,
.partner-logo-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    gap: 12px;
}

.partner-logo img {
    max-width: 100%;
    height: 70px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-logo a:hover img,
.partner-logo a:focus img {
    transform: scale(1.05);
}

.partner-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-blue);
    text-align: center;
}

.partner-titre-affichage {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    text-align: center;
    margin-top: 8px;
    line-height: 1.3;
}

.partners-nav,
.instagram-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(45, 76, 111, 0.1);
    color: var(--primary-blue);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    z-index: 5;
}

.partners-nav i,
.instagram-nav i {
    pointer-events: none;
}

.partners-nav:hover,
.partners-nav:focus,
.instagram-nav:hover,
.instagram-nav:focus {
    background: var(--primary-blue);
    color: #fff;
    box-shadow: 0 8px 16px rgba(45, 76, 111, 0.2);
}

.partners-nav[disabled],
.instagram-nav[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.partners-slider.partners-slider-ready .partners-nav,
.instagram-slider.instagram-slider-ready .instagram-nav {
    display: flex;
}

.partners-nav-prev,
.instagram-nav-prev {
    left: 10px;
}

.partners-nav-next,
.instagram-nav-next {
    right: 10px;
}

.partners-slider-static .partners-nav,
.instagram-slider-static .instagram-nav {
    display: none !important;
}

/* Responsive pour les sections */
@media (max-width: 768px) {
    .instagram-slider:not(.instagram-slider-ready) .instagram-track {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .partner-slide {
        flex: 1 1 calc(50% - 20px);
    }

    .partners-slider:not(.partners-slider-ready) .partner-slide {
        flex: 1 1 100%;
    }

    .instagram-slider.instagram-slider-ready .instagram-slide {
        flex: 0 0 50%;
    }
    
    /* Les blocs de contenu restent à gauche sur tablettes aussi */
    .content-block .section-title-with-logo {
        justify-content: flex-start;
        flex-direction: row;
        text-align: left;
        gap: 8px; /* Espacement réduit entre logo et titre */
    }
    
    .content-block .section-title-with-logo h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .instagram-slider:not(.instagram-slider-ready) .instagram-track {
        grid-template-columns: 1fr;
    }

    .partner-slide {
        flex: 1 1 100%;
    }

    .instagram-slider.instagram-slider-ready .instagram-slide {
        flex: 0 0 100%;
    }
    
    /* Les blocs de contenu restent à gauche même sur très petits écrans */
    .content-block .section-title-with-logo {
        justify-content: flex-start;
        flex-direction: row;
        text-align: left;
        gap: 8px; /* Espacement réduit entre logo et titre */
    }
    
    .content-block .section-title-with-logo h2 {
        font-size: 20px;
    }
    
    /* Réduire taille des titres du footer en mobile */
    .footer-section h3 {
        font-size: 14px;
    }
    
    /* Réduire taille du titre "Un réseau, une communauté" en mobile */
    .instagram-feed-section .section-title-with-logo h2 {
        font-size: 18px;
    }
    
    /* Bloc "Besoin de plus d'informations" - boutons en colonne et alignés à gauche */
    .section-dark .text-center {
        text-align: left !important;
    }
    
    .section-dark .text-center a {
        display: block;
        margin: 10px 0 !important;
        margin-left: 0 !important;
        width: auto;
    }
}

.footer {
    background-color: #4A4A49;
    color: var(--white);
    padding: 30px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    position: relative;
}

.footer-section:not(:first-child):not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    width: 2px;
    height: calc(100% - 60px);
    background-color: rgba(255, 255, 255, 1);
}

.footer-section h3 {
    margin-bottom: 20px;
    font-family: 'Montserra', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    text-transform: none;
    text-align: center;
}

.footer-section p,
.footer-section ul li,
.footer-section a {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--light-blue);
}

.footer-section i {
    width: 14px;
}

/* Logo footer */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-image {
    height: 200px;
    width: auto;
}

/* Icônes sociales footer */
.footer-social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    padding-top:15px
}

.footer-social-icons a {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
}

.footer-social-icons a:hover {
    background-color: var(--light-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 14px;
    font-weight: bold;
}

.footer-bottom a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--light-blue);
}

/* Logo Scolinfo */
.scolinfo-link {
    display: inline-block;
    text-decoration: none;
}

.scolinfo-logo {
    height: 30px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.scolinfo-logo:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .top-bar-content {
        justify-content: center;
    }
    
    .social-icons {
        gap: 15px;
    }
    
    .social-icons a {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .nav-content {
        flex-direction: row !important;
        gap: 20px;
        align-items: center;
        justify-content: space-between;
    }
    
    .header-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .header-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .main-menu {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        display: none;
    }
    
    .main-menu.mobile-active {
        display: flex;
    }
    
    /* Styles mobile pour le menu déroulant */
    .menu-item-has-children > a::after {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        margin-left: 8px;
        transition: transform 0.3s ease;
    }

.mobile-menu-list .menu-item-has-children > a::after {
    display: none;
    content: none;
}
    
    .menu-item-has-children.mobile-open > a::after {
        transform: rotate(180deg);
    }
    
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #f8f9fa;
        margin: 10px 0;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .menu-item-has-children.mobile-open .sub-menu {
        max-height: 500px;
    }
    
    .sub-menu a {
        padding: 10px 30px;
        font-size: 14px;
    }
    
    .mobile_menu {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners {
        flex-direction: column;
    }
    
    /* Sections spéciales responsive */
    .director-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .director-content {
        order: 1;
    }
    
    .director-image {
        order: 2;
    }
    
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .entry-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-next {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .quick-access-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .hero {
        height: 400px;
    }
    
    .contact-form-container {
        padding: 20px;
    }
    
    .card {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section:not(:last-child)::after {
        display: none;
    }
    
    .footer-social-icons {
        justify-content: center;
    }
    
    .footer-logo-image {
        height: 80px;
    }
}

/* Sections spéciales */
.director-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.director-content {
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}




.director-content p {
    margin-bottom: 20px;
    color: #2D4C6F;
    font-family: 'Poppins', sans-serif;
}

.director-content strong {
    color: #2D4C6F;
    font-weight: 700;
}

.director-image {
    position: relative;
}

.director-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius, 8px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.director-section::before {
    content: '';
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    width: 100px;
    height: 100px;
    background-image: url('images/favicon-ysg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.director-signature {
    padding-top:20px
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--light-blue);
}

/* Accès rapide */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.quick-access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background-color: var(--white);
    border-radius: 12px;
    text-decoration: none;
    color: var(--gray-dark);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.quick-access-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--light-blue), var(--yellow));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-access-item:hover::before {
    opacity: 1;
}

.quick-access-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
    color: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 157, 194, 0.3);
}

/* Couleurs différentes pour chaque icône (par position) */
.quick-access-item:nth-child(1) i {
    background: linear-gradient(135deg, var(--green), #a8b81a);
    box-shadow: 0 4px 12px rgba(200, 210, 36, 0.3);
}

.quick-access-item:nth-child(2) i {
    background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
    box-shadow: 0 4px 12px rgba(0, 157, 194, 0.3);
}

.quick-access-item:nth-child(3) i {
    background: linear-gradient(135deg, var(--yellow), #e6b500);
    box-shadow: 0 4px 12px rgba(254, 203, 19, 0.3);
}

.quick-access-item:nth-child(4) i {
    background: linear-gradient(135deg, var(--green), #a8b81a);
    box-shadow: 0 4px 12px rgba(200, 210, 36, 0.3);
}

.quick-access-item:nth-child(5) i {
    background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
    box-shadow: 0 4px 12px rgba(0, 157, 194, 0.3);
}

.quick-access-item:nth-child(6) i {
    background: linear-gradient(135deg, var(--yellow), #e6b500);
    box-shadow: 0 4px 12px rgba(254, 203, 19, 0.3);
}

.quick-access-item:hover {
    background-color: var(--white);
    color: var(--gray-dark);
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.quick-access-item:hover i {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.quick-access-item span {
    font-weight: 600;
    text-align: center;
    font-size: 15px;
    transition: color 0.3s ease;
}

.quick-access-item:hover span {
    color: var(--primary-blue);
}

/* Menu mobile */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Messages d'erreur */
.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 5px;
}

/* Page de contact */
.contact-section {
    display: block;
    width: 100%;
}

.contact-form-container {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
}

/* Suppression de l'icône du container car elle est déjà dans le formulaire */

.success-message {
    background-color: #d1fae5;
    color: #065f46;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-message i {
    font-size: 1.5rem;
}

.contact-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: var(--white);
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Pages internes */
.page-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--gray-dark);
}

.page-content {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.page-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--primary-blue);
    margin: 0;
}

.page-content li {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--primary-blue);
    margin: 0;
}

/* Articles */
.entry-header {
    margin-bottom: 40px;
    text-align: center;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--gray-dark);
}

.entry-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--gray-dark);
}

.entry-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--primary-blue);
    margin: 0;
}

.entry-content li {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--primary-blue);
    margin: 0;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.tag-links {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-dark);
}

.tag-links a {
    color: var(--light-blue);
    text-decoration: none;
    padding: 5px 10px;
    background-color: var(--gray-light);
    border-radius: 15px;
    font-size: 0.9rem;
}

.tag-links a:hover {
    background-color: var(--light-blue);
    color: var(--white);
}

/* Navigation entre articles */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #ddd;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background-color: var(--gray-light);
    color: var(--gray-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-previous a:hover,
.nav-next a:hover {
    background-color: var(--light-blue);
    color: var(--white);
}

.nav-next {
    text-align: right;
}

/* Grille des programmes */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.program-card {
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-card:hover {
    transform: translateY(-5px);
}

.program-card h3 {
    font-size: 1.2rem;
    text-align: center;
    margin: 0;
}

/* Archives et recherche */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.post-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-thumbnail {
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
}

.post-header {
    margin-bottom: 15px;
}

.post-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.post-title a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--light-blue);
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-bottom: 15px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-excerpt {
    color: var(--gray-dark);
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-footer {
    border-top: 1px solid var(--gray-light);
    padding-top: 15px;
}

.read-more {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--primary-blue);
}

/* Pagination */
.pagination {
    margin-top: 60px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background-color: var(--gray-light);
    color: var(--gray-dark);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .current {
    background-color: var(--light-blue);
    color: var(--white);
}

/* Page 404 */
.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    font-size: 5rem;
    color: var(--light-blue);
    margin-bottom: 30px;
}

.error-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--gray-dark);
}

.error-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--gray-dark);
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.search-form-container {
    margin-bottom: 40px;
    padding: 30px;
    background-color: var(--gray-light);
    border-radius: 8px;
}

.search-form-container h3 {
    margin-bottom: 20px;
    color: var(--gray-dark);
}

.search-form {
    max-width: 400px;
    margin: 0 auto;
}

.search-form-group {
    display: flex;
    background-color: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-field {
    flex: 1;
    padding: 12px 15px;
    border: none;
    font-size: 16px;
}

.search-submit {
    padding: 12px 15px;
    background-color: var(--light-blue);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-submit:hover {
    background-color: var(--primary-blue);
}

.helpful-links {
    text-align: left;
}

.helpful-links h3 {
    margin-bottom: 15px;
    color: var(--gray-dark);
}

.helpful-links ul {
    list-style: none;
    padding: 0;
}

.helpful-links li {
    margin-bottom: 10px;
}

.helpful-links a {
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.helpful-links a:hover {
    color: var(--primary-blue);
}

/* Messages info */
.search-info {
    background-color: var(--gray-light);
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    color: var(--gray-dark);
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
}

.no-posts h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--gray-dark);
}

.no-posts p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--gray-dark);
}

.search-suggestions {
    background-color: var(--gray-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestions h3 {
    margin-bottom: 15px;
    color: var(--gray-dark);
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
}

.search-suggestions li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.search-suggestions li:before {
    content: "•";
    color: var(--light-blue);
    position: absolute;
    left: 0;
}

/* Effets JavaScript */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Champs avec erreur */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Menu ouvert */
body.menu-open {
    overflow: hidden;
}

/* Lazy loading */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* WordPress specific styles */
.wp-block-image {
    margin: 20px 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.aligncenter {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

/* Section renseignements - Nouveau design */
.renseignements-container {
    position: relative;
    background-color: #ffffff;
    padding: 0;
}

.renseignements-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light-blue);
    z-index: 1;
    border-radius: 8px;
}

.renseignements-content {
    position: relative;
    background-color: #F8F8F8;
    margin: 20px;
    padding: 40px;
    border-radius: 8px;
    z-index: 2;
    text-align: center;
    rotate: -1.5deg;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.renseignements-inner {
    rotate: 1.5deg;
}

.renseignements-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--light-blue);
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: center;
}

.renseignements-text {
    margin-bottom: 30px;
}

.renseignements-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    color: #2D4C6F;
    margin: 10px 0;
    line-height: 1.4;
}

.renseignements-text strong {
    font-weight: 700;
}

.renseignements-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-renseignements {
    background-color: var(--light-blue);
    color: #ffffff;
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-renseignements:hover {
    background-color: #2D4C6F;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive pour les boutons */
@media (max-width: 768px) {
    .renseignements-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-renseignements {
        width: 100%;
        max-width: 300px;
    }
    
    .renseignements-content {
        margin: 10px;
        padding: 30px 20px;
    }
    
    .renseignements-title {
        font-size: 20px;
    }
    
    .renseignements-text p {
        font-size: 20px;
    }
}

/* Section Information Filière - Style selon maquette */
.info-filiere-container {
    position: relative;
    background-color: var(--primary-blue);
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.info-filiere-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-blue);
    z-index: 1;
    border-radius: 8px;
}

.info-filiere-content {
    position: relative;
    background-color: var(--gray-light);
    margin: 10px;
    padding: 40px;
    border-radius: 8px;
    z-index: 2;
    text-align: left;
    rotate: -1.5deg;
}

.info-filiere-inner {
    rotate: 1.5deg;
    position: relative;
}

/* Icône info bulle en haut à droite */
.info-filiere-inner::after {
    content: '';
    position: absolute;
    top: -35%;
    right: -10%;
    width: 80px;
    height: 80px;
    background-image: url('images/about.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 3;
}

.info-filiere-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.info-filiere-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-filiere-item.info-filiere-full {
    grid-column: 1 / -1;
}

.info-filiere-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-filiere-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    flex-shrink: 0;
}

.info-filiere-value {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-blue);
    line-height: 1.4;
}

/* Responsive pour le bloc information filière */
@media (max-width: 768px) {
    .info-filiere-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-filiere-item.info-filiere-full {
        grid-column: 1;
    }
    
    .info-filiere-content {
        margin: 10px;
        padding: 30px 20px;
    }
    
    .info-filiere-label {
        font-size: 16px;
    }
    
    .info-filiere-value {
        font-size: 14px;
    }
    
    .info-filiere-inner::after {
        width: 50px;
        height: 50px;
        top: -15%;
        right: -8%;
    }
}

/* Section Le lycée en un clic - Nouveau design */
.section-light:has(.lycee-clic-container) {
    position: relative;
    padding-top: 56px; /* 50px normal + 6px pour la bordure */
}

.section-light:has(.lycee-clic-container)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--green), var(--light-blue), var(--yellow));
    z-index: 1;
}

.lycee-clic-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.lycee-clic-title {
    flex: 0 0 105px;
}

.lycee-clic-title h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--gray-dark);
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
}

.quick-access {
    flex: 1;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.quick-access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px 15px;
    background-color: var(--white);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.quick-access-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--light-blue), var(--yellow));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-access-item:hover::before {
    opacity: 1;
}

.quick-access-item i {
    font-size: 2.2rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
    color: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 157, 194, 0.3);
    margin-bottom: 0;
}

/* Couleurs différentes pour chaque icône (par position) */
.quick-access-item:nth-child(1) i {
    background: linear-gradient(135deg, var(--green), #a8b81a);
    box-shadow: 0 4px 12px rgba(200, 210, 36, 0.3);
}

.quick-access-item:nth-child(2) i {
    background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
    box-shadow: 0 4px 12px rgba(0, 157, 194, 0.3);
}

.quick-access-item:nth-child(3) i {
    background: linear-gradient(135deg, var(--yellow), #e6b500);
    box-shadow: 0 4px 12px rgba(254, 203, 19, 0.3);
}

.quick-access-item:nth-child(4) i {
    background: linear-gradient(135deg, var(--green), #a8b81a);
    box-shadow: 0 4px 12px rgba(200, 210, 36, 0.3);
}

.quick-access-item:nth-child(5) i {
    background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
    box-shadow: 0 4px 12px rgba(0, 157, 194, 0.3);
}

.quick-access-item:nth-child(6) i {
    background: linear-gradient(135deg, var(--yellow), #e6b500);
    box-shadow: 0 4px 12px rgba(254, 203, 19, 0.3);
}

.quick-access-item:hover {
    background-color: var(--white);
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.quick-access-item:hover i {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.quick-access-item span {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-dark);
    text-align: center;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.quick-access-item:hover span {
    color: var(--primary-blue);
}

/* Responsive pour Le lycée en un clic */
@media (max-width: 768px) {
    .section-light:has(.lycee-clic-container) {
        padding-top: 50px;
    }
    
    .lycee-clic-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .lycee-clic-title {
        flex: none;
        width: 100%;
    }
    
    .lycee-clic-title h2 {
        font-size: 20px;
    }
    
    .quick-access-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 12px;
    }

    .quick-access-item {
        padding: 20px 12px;
        gap: 12px;
    }
    
    .quick-access-item i {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .quick-access-item span {
        font-size: 14px;
    }
}

/* Styles spécifiques pour les pages filières */
.hero.filieres-hero {
    height: 300px;
    max-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Responsive pour filieres-hero */
@media (max-width: 1024px) {
    .hero.filieres-hero {
        height: 250px;
        max-height: 250px;
        background-size: cover;
        background-position: center;
    }
}

@media (max-width: 768px) {
    .hero.filieres-hero {
        height: 150px;
        max-height: 150px;
        background-size: cover;
        background-position: center;
    }
}

@media (max-width: 480px) {
    .hero.filieres-hero {
        height: 150px;
        max-height: 150px;
        background-size: cover;
        background-position: center;
    }
}

.hero.filieres-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero.filieres-hero .hero-content {
    position: relative;
    z-index: 2;
}


.breadcrumbs {
    background-color: var(--gray-dark);
    border-bottom-left-radius: 20px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
}

.breadcrumbs a,
.breadcrumbs span {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    text-decoration: none;
    margin-right: 10px;
}

.breadcrumbs span {
    font-weight: bold;
}


/* Titre de page sous le fil d'Ariane */
.page-title-filieres {
    padding: 20px 0;
    text-align: center;
    background-color: #ffffff;
}

.page-title-filieres h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 32px;
    text-transform: uppercase;
    margin: 0;
    color: #333333;
}

/* Section titre avec rotation et fond */
.section-title-filieres {
    position: relative;
    padding: 20px 0;
    background-color: #ffffff;
}

.title-block {
    display: inline-block;
    position: relative;
    transform: rotate(-1.5deg);
    padding: 10px 35px 10px 50px;
    margin: 10px -20px;
}

.section-title-filieres .title-block h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 32px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Responsive pour le titre filières */
@media (max-width: 768px) {
    .section-title-filieres .title-block h1 {
        font-size: 24px;
    }
}

/* Forcer le texte en blanc quand le bloc est jaune */
.title-block[style*="--block-color: var(--yellow)"] h1 {
    color: #ffffff !important;
}

.section-title-filieres .title-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-blue);
    z-index: 1;
}



/* Description de la section */
.section-description-filieres {
    padding: 30px 0;
    text-align: center;
    background-color: #ffffff;
}

.section-description-filieres p {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--primary-blue);
    margin: 0;
}

/* Grille des cartes des pages enfants */
.programs-grid-filieres {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 30px 0;
    background-color: #ffffff;
}

.program-card-filieres {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    position: relative;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.program-card-filieres:hover {
    transform: translateY(-5px);
}

.program-card-filieres h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.program-card-filieres p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.program-card-filieres .plus-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.program-card-filieres:hover .plus-icon {
    transform: rotate(90deg) scale(1.1);
}

/* Style pour le wrapper avec fond gris foncé */
.title-wrapper {
    position: relative;
    background-color: transparent;
    padding: 0;
    display: inline-block;
    width: fit-content;
}

.title-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    right: 0;
    bottom: 0;
    background-color:var(--gray-dark) ;
    z-index: 1;
    margin-bottom: 12px;
}

/* Style dynamique pour le bloc de titre avec la couleur choisie */
.title-block {
    position: relative;
    z-index: 2;
}

.title-block::before {
    background-color: var(--block-color) !important;
}

/* Styles pour Contact Form 7 - Formulaire sur fond bleu foncé */
.wpcf7-form {
    background-color: #2D4C6F;
    padding: 40px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.wpcf7-form::after {
    content: '';
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    background-image: url('images/ICONE BLANC (1).png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

.wpcf7-form > * {
    position: relative;
    z-index: 2;
}

/* Styles pour le formulaire de fallback */
.contact-form-fallback {
    background-color: #2D4C6F;
    padding: 40px;
    border-radius: 8px;
    position: relative;
}

.contact-form-fallback h3 {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.contact-form-fallback form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-fallback .form-row {
    display: flex;
    gap: 15px;
}

.contact-form-fallback .form-group {
    flex: 1;
}

.contact-form-fallback input,
.contact-form-fallback select,
.contact-form-fallback textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #2D4C6F;
    background-color: #ffffff;
    box-sizing: border-box;
}

.contact-form-fallback input::placeholder,
.contact-form-fallback textarea::placeholder {
    color: #2D4C6F;
    opacity: 0.8;
}

.contact-form-fallback .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-form-fallback .checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 5px;
}

.contact-form-fallback .checkbox-group label {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.contact-form-fallback .checkbox-group label a {
    color: #ffffff;
    text-decoration: underline;
}

.contact-form-fallback button {
    background-color: #009DC2;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
}

.contact-form-fallback button:hover {
    background-color: #2D4C6F;
    transform: translateY(-2px);
}

/* Styles pour les labels Contact Form 7 */
.wpcf7-form label {
    display: block !important;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-bottom: 5px !important;
}

/* Styles des champs input */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="date"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea,
.wpcf7-form select {
    background-color: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 4px;
    padding: 15px !important;
    width: 100% !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    color: #2D4C6F !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    border-color: #009DC2 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 157, 194, 0.2) !important;
}

/* Placeholders en bleu foncé */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #2D4C6F !important;
    opacity: 0.8;
}

/* Row pour Prénom/Nom côte à côte */
.wpcf7-form .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.wpcf7-form .form-row .form-group {
    flex: 1;
}

/* Checkbox pour politique de confidentialité */
.wpcf7-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.wpcf7-form .checkbox-group input[type="checkbox"] {
    width: auto !important;
    margin-right: 10px;
    margin-top: 5px;
}

.wpcf7-form .checkbox-group label {
    display: block !important;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.wpcf7-form .checkbox-group label a {
    color: #ffffff;
    text-decoration: underline;
}

/* Bouton d'envoi */
.wpcf7-form input[type="submit"] {
    background-color: #009DC2 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 15px 30px !important;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto !important;
    margin: 0 !important;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #2D4C6F !important;
    transform: translateY(-2px);
}

/* Messages de validation */
.wpcf7-response-output {
    background-color: #ffffff;
    color: #2D4C6F;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    font-family: 'Poppins', sans-serif;
    border: 2px solid #009DC2;
}

.wpcf7-response-output.wpcf7-validation-errors {
    border-color: #ef4444;
    background-color: #fef2f2;
    color: #dc2626;
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
    border-color: #C8D224;
    background-color: #f0fdf4;
    color: #059669;
}

/* Messages d'erreur individuels */
.wpcf7-not-valid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.wpcf7-not-valid-tip {
    color: #dc2626 !important;
    font-size: 14px !important;
    margin-top: 5px !important;
    display: block !important;
}

/* ========================================
   STYLES POUR LES BLOCS DE CONTENU DYNAMIQUES
   ======================================== */

/* Bloc de contenu général */
.content-block {
    padding: 20px 0;
}

.content-block-colored {
    /* background-color sera défini par le style inline */
    color: #ffffff !important;
    position: relative;
    overflow: hidden;
}

.content-block-colored * {
    color: #ffffff !important;
}

.content-block-colored::after {
    content: '';
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    background-image: url('images/ICONE BLANC (1).png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

.content-block-colored > * {
    position: relative;
    z-index: 2;
}

/* Bloc Examen - sans icône transparente */
.content-block-examen {
    /* background-color sera défini par le style inline */
    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 8px 0; /* Padding minimal pour un vrai bandeau */
}

.content-block-examen > * {
    position: relative;
    z-index: 2;
}

/* Icône blanche pour le bloc examen */
.content-block-examen .section-title-with-logo img {
    filter: brightness(0) invert(1);
}

/* Contenu avec image */
.content-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.content-text {
    font-size: 16px;
    line-height: 1.6;
}

.content-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--gray-dark);
    margin: 0;
}

.content-text li {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--gray-dark);
    margin: 0;
}

.content-text h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gray-dark);
}

.content-text h4 {
    font-size: 20px !important;
    font-weight: 700;
    margin-bottom: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    color: var(--gray-dark);
}

.content-text ul {
    list-style: none;
    padding: 0;
}

.content-text li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.content-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gray-dark);
    font-weight: bold;
}

/* Première lettre en majuscule pour les éléments de liste */
.content-text ul li::first-letter,
.content-text ol li::first-letter {
    text-transform: uppercase;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Diaporama avec Slick */
.slick-diaporama {
    margin: 20px 0;
    position: relative;
    min-height: 300px;
    height: auto;
}

.slick-diaporama .slick-list {
    display: flex;
    align-items: center;
    height: 100%;
}

.slick-diaporama .slick-track {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Titre du diaporama avec icône */
.content-block-slider .section-title-with-logo {
    margin-bottom: 15px;
}

.content-block-slider .section-title-with-logo img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    filter: brightness(0) invert(1);
}

.slick-diaporama .slick-slide {
    padding: 0 10px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.slick-diaporama .slick-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.slick-diaporama .slick-slide img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

/* Image centrale (active) */
.slick-diaporama .slick-center .slick-slide img {
    height: 300px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* Images latérales */
.slick-diaporama .slick-slide:not(.slick-center) img {
    height: 200px;
    opacity: 0.7;
    transform: scale(0.9);
}

/* Flèches personnalisées */
.slick-prev-custom,
.slick-next-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-blue);
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slick-prev-custom:hover,
.slick-next-custom:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.slick-prev-custom {
    left: -30px;
}

.slick-next-custom {
    right: -30px;
}

/* Responsive pour Slick */
@media (max-width: 768px) {
    .slick-diaporama {
        min-height: 250px;
        height: auto;
    }
    
    .slick-prev-custom {
        left: -20px;
    }
    
    .slick-next-custom {
        right: -20px;
    }
    
    .slick-diaporama .slick-slide img {
        height: 200px;
    }
    
    .slick-diaporama .slick-center .slick-slide img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .slick-diaporama {
        min-height: 200px;
        height: auto;
    }
    
    .slick-prev-custom {
        left: -15px;
    }
    
    .slick-next-custom {
        right: -15px;
    }
    
    .slick-diaporama .slick-slide img {
        height: 180px;
    }
    
    .slick-diaporama .slick-center .slick-slide img {
        height: 200px;
    }
}

/* Styles pour les blocs de contenu */
.content-block .section-title-with-logo {
    margin-bottom: 15px;
}

.content-block .section-title-with-logo img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

/* Logo blanc pour les fonds colorés */
.content-block-colored .section-title-with-logo img {
    filter: brightness(0) invert(1);
}

/* Logo bleu pour les fonds clairs */
.content-block-simple .section-title-with-logo img,
.content-block-image .section-title-with-logo img {
    filter: none;
}

/* Titres colorés selon couleur_bloc pour les fonds clairs - uniquement pour les blocs de contenu */
.content-block-simple .section-title-with-logo h2,
.content-block-image .section-title-with-logo h2 {
    color: var(--block-color, var(--primary-blue));
}

/* Contenu blanc pour les blocs avec fond coloré */
.content-block-colored .content-text,
.content-block-colored .content-text * {
    color: #ffffff !important;
}

.content-block-colored .content-text ul li::before {
    color: #ffffff !important;
}

.content-block-colored .content-text a {
    color: #ffffff !important;
    text-decoration: underline;
}

/* Les boutons dans les blocs colorés ne doivent pas être affectés par la règle ci-dessus */
.content-block-colored .btn,
.content-block-colored .btn a {
    color: inherit !important;
    text-decoration: none !important;
}

.content-block-colored .content-text a:hover {
    color: #ffffff !important;
    opacity: 0.8;
}

.content-block-colored .content-text strong,
.content-block-colored .content-text b {
    color: #ffffff !important;
    font-weight: 600;
}

.content-block-colored .content-text em,
.content-block-colored .content-text i {
    color: #ffffff !important;
    font-style: italic;
}

/* Listes dans les blocs colorés */
.content-block-colored .content-text ul {
    list-style: none;
    padding: 0;
}

.content-block-colored .content-text ul li {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    position: relative;
    padding-left: 20px;
    margin: 0;
    color: #ffffff !important;
}

.content-block-colored .content-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ffffff !important;
    font-weight: bold;
}

/* Première lettre en majuscule pour les éléments de liste dans les blocs colorés */
.content-block-colored .content-text ul li::first-letter,
.content-block-colored .content-text ol li::first-letter {
    text-transform: uppercase;
}

.content-block-colored .content-text ol {
    color: #ffffff !important;
}

.content-block-colored .content-text ol li {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #ffffff !important;
    margin: 0;
}

/* Paragraphes et autres éléments */
.content-block-colored .content-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #ffffff !important;
    margin: 0;
}

.content-block-colored .content-text h1,
.content-block-colored .content-text h2,
.content-block-colored .content-text h3,
.content-block-colored .content-text h4,
.content-block-colored .content-text h5,
.content-block-colored .content-text h6 {
    color: #ffffff !important;
    margin-bottom: 10px;
    font-size: 20px !important;
    padding-top: 15px;
    padding-bottom: 5px;
}

.content-block-colored h1,
.content-block-colored h2,
.content-block-colored h3,
.content-block-colored h4,
.content-block-colored h5,
.content-block-colored h6 {
    color: #ffffff !important;
}

.content-block-colored .section-title-with-logo h2 {
    color: #ffffff !important;
}

/* Contenu du diaporama */
.diaporama-content {
    margin-top: 30px;
}

.diaporama-content h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.diaporama-content p {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.diaporama-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.diaporama-content .wp-block-image {
    text-align: center;
    margin: 20px 0;
}

.diaporama-content .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.diaporama-content .wp-block-gallery .wp-block-image {
    margin: 0;
}

/* Responsive pour les blocs */
@media (max-width: 768px) {
    .content-with-image {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-text {
        order: 1;
    }
    
    .content-image {
        order: 2;
    }
    
    .slider-wrapper {
        height: 300px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .diaporama-content .wp-block-gallery {
        grid-template-columns: 1fr;
    }
}

/* Styles pour les informations de contact - mode deux par deux */
.contact-info {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.contact-info h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    color: #2D4C6F;
    margin-bottom: 15px;
}

.contact-info p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    text-align: left;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 350px;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-item i {
    font-size: 24px;
    color: #009DC2;
    margin-right: 15px;
    margin-top: 5px;
    flex-shrink: 0;
}

.contact-item strong {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #2D4C6F;
    display: block;
    margin-bottom: 5px;
}

.contact-item p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.contact-item a {
    color: #009DC2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #2D4C6F;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .wpcf7-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .wpcf7-form {
        padding: 20px;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-info h2 {
        font-size: 24px;
    }
    
    .contact-item {
        max-width: 100%;
    }
}