/* Reset & Variables */
:root {
    /* NOUVEAU : Le bleu officiel extrait de votre logo footer */
    --cradat-blue: #071B4B; 
    
    /* L'accent jaune est parfait pour contraster avec ce bleu profond */
    --accent-yellow: #f1c40f; 
    
    --text-dark: #333;
    --text-light: #666;
    --white: #fff;
    --bg-light: #f4f6f8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text-dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Typographie */
h1, h2, h3 { font-family: 'Poppins', sans-serif; font-weight: 700; margin-bottom: 15px; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 40px; color: var(--cradat-blue); }
.text-white { color: var(--white) !important; }

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary { background: var(--cradat-blue); color: var(--white); }
.btn-primary:hover { background: #0d2b6b; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(7,27,75,0.3); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--cradat-blue); }
.btn-sm { padding: 8px 20px; font-size: 0.9rem; background: var(--cradat-blue); color: white; }

/* Top Bar */
.top-bar { background: var(--cradat-blue); color: #ccc; padding: 8px 0; font-size: 0.9rem; }
.top-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.socials a { color: #ccc; margin-left: 15px; }
.socials a:hover { color: var(--white); }

/* Header */
.main-header { background: var(--white); padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo img, .cradat-logo { max-height: 60px; width: auto; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a { font-weight: 600; color: var(--text-dark); }
.main-nav a:hover { color: var(--cradat-blue); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* Hero Slider */
.hero { position: relative; height: 500px; overflow: hidden; }
.hero-slide { height: 100%; background-size: cover; background-position: center; display: flex; align-items: center; opacity: 0; transition: opacity 1s; position: absolute; width: 100%; top: 0; }
.hero-slide.active { opacity: 1; }
.hero-content { background: rgba(7, 27, 75, 0.7); padding: 40px; border-radius: 12px; color: white; max-width: 600px; margin-left: 20px; }
.hero-content h1 { font-size: 2.8rem; line-height: 1.2; }
.hero-btns { margin-top: 20px; display: flex; gap: 15px; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; }
.dot.active { background: var(--white); }

/* Grids et Sections */
.section { padding: 60px 0; }
.section-light { background: var(--bg-light); }
.section-blue { background: var(--cradat-blue); padding: 60px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* Cartes Actualités */
.card-news { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.card-news:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.2rem; }
.read-more { font-weight: 600; color: var(--cradat-blue); display: inline-block; margin-top: 10px; }

/* Cartes Formations */
.card-formation { background: white; border-radius: 12px; padding: 30px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: 0.3s; }
.card-formation:hover { transform: scale(1.02); }
.formation-icon { background: var(--cradat-blue); color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-size: 1.5rem; }
.section-blue .card-formation h3 { color: var(--cradat-blue); }

/* Services */
.card-service { position: relative; border-radius: 12px; overflow: hidden; height: 250px; }
.card-service img { width: 100%; height: 100%; object-fit: cover; }
.card-service .overlay { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(7, 27, 75, 0.8); color: white; padding: 15px; text-align: center; font-weight: 600; }

/* Statistiques */
.section-stats { background: #e9ecef; }
.stats-grid { display: flex; justify-content: space-around; text-align: center; flex-wrap: wrap; gap: 30px; }
.stat-item span { font-size: 3rem; font-weight: 700; color: var(--cradat-blue); }
.stat-item p { font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Drapeaux */
.flags-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 20px; margin-top: 30px; text-align: center; }
.flag span { display: block; font-size: 0.8rem; font-weight: 600; margin-top: 5px; color: var(--cradat-blue); }

/* Footer */
.main-footer { background: var(--cradat-blue); color: #ccc; padding: 60px 0 20px; }
.footer-logo-wrapper { margin-bottom: 15px; }
.footer-logo { max-height: 60px; width: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: white; margin-bottom: 20px; font-size: 1.2rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: white; }
.footer-social a { color: #ccc; margin-right: 15px; font-size: 1.2rem; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.9rem; }

/* Responsive (Mobile) */
@media (max-width: 768px) {
    .header-flex { position: relative; }
    .main-nav { display: none; width: 100%; position: absolute; top: 100%; left: 0; background: white; border-bottom: 1px solid #ddd; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; padding: 10px 0; }
    .main-nav li { border-bottom: 1px solid #f0f0f0; }
    .main-nav a { display: block; padding: 12px 20px; }
    .menu-toggle { display: block; }
    
    .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-content { margin: 0 20px; }
    .hero-content h1 { font-size: 2rem; }
    .flags-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
}

/* --- PARTIE AJOUTÉE POUR LE LOGO ET LES DRAPEAUX --- */

/* Mise en page du Logo + Texte (dans le Header) */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px; /* Espace entre l'image et le texte */
}

.cradat-logo {
    max-height: 70px; /* Ajustez selon la taille réelle de votre image */
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    color: var(--cradat-blue); /* Le texte aura la même couleur que le logo */
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem; /* Taille du texte */
    line-height: 1.3;
}

/* Responsive pour Mobile (pour ne pas que le texte écrase le menu) */
@media (max-width: 992px) {
    .logo-text { font-size: 0.7rem; }
    .cradat-logo { max-height: 50px; }
}

/* Logo dans le Footer (Suppression du fond blanc) */
.footer-logo-wrapper {
    margin-bottom: 15px;
}
.footer-logo {
    max-height: 60px;
    width: auto;
}

/* =========================================================
   GRILLE DRAPEAUX (2 lignes de 9)
   ========================================================= */

.flags-grid-9 {
    display: grid;
    /* Force EXACTEMENT 9 colonnes de largeur égale */
    grid-template-columns: repeat(9, 1fr); 
    gap: 15px; /* Espace entre les drapeaux */
    margin: 20px auto 30px auto;
    max-width: 1000px; /* Limite la largeur pour que ça reste centré et élégant */
    text-align: center;
    align-items: start;
}

.flags-grid-9 .flag img {
    width: 100%;
    max-width: 55px; /* Taille idéale pour que 9 tiennent sur une ligne */
    height: auto;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto; /* Centre l'image dans sa colonne */
}

.flags-grid-9 .flag img:hover {
    transform: scale(1.1);
}

.flags-grid-9 .flag span {
    display: block;
    color: #ccc;
    font-size: 0.7rem;
    font-weight: 400;
    margin-top: 5px;
    line-height: 1.2;
}

/* Responsive : si l'écran est petit, on réduit à 6 colonnes, puis 3 */
@media (max-width: 992px) {
    .flags-grid-9 {
        grid-template-columns: repeat(6, 1fr); /* 6 colonnes sur tablette */
    }
}
@media (max-width: 600px) {
    .flags-grid-9 {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur mobile */
    }
}

/* Règle finale pour le responsive du Header */
@media (max-width: 768px) {
    .logo-text { display: none; } /* On cache le texte sur très petits écrans pour garder le menu propre */
}

/* --- BANDEAU DÉFILANT À LA UNE --- */
.ticker-container {
    background: #f8f9fa;
    border-bottom: 2px solid var(--cradat-blue);
    padding: 10px 0; /* Un petit espace en haut et en bas */
    width: 100%;
}

/* Flexbox pour aligner les 3 éléments sur UNE SEULE LIGNE */
.ticker-wrapper {
    display: flex;
    align-items: center;      /* Force l'alignement vertical au centre */
    justify-content: space-between;
    gap: 15px;                /* Espace entre les éléments */
    height: 40px;             /* HAUTEUR FIXE pour tout le bandeau */
}

/* Étiquette "À la une" */
.ticker-label {
    background: var(--cradat-blue);
    color: white;
    padding: 0 15px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 4px;
    height: 100%;             /* Prend toute la hauteur du parent */
    display: flex;
    align-items: center;      /* Centre le texte verticalement */
    flex-shrink: 0;
}

/* Conteneur du Marquee */
.ticker-track-wrapper {
    flex: 1;                  /* Prend tout l'espace disponible */
    overflow: hidden;
    height: 100%;             /* Prend toute la hauteur du parent */
    display: flex;
    align-items: center;
}

/* Réinitialisation du Marquee */
marquee {
    display: block;
    width: 100%;
    height: 100%;             /* CRUCIAL : Le marquee prend toute la hauteur */
    line-height: 40px;        /* Aligne parfaitement le texte au centre */
}

/* Les titres des actualités */
.ticker-item {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0 5px;
    transition: color 0.3s;
}

.ticker-item:hover {
    color: var(--cradat-blue);
}

.ticker-sep {
    color: #ccc;
    font-size: 1.2rem;
    margin: 0 5px;
}

/* Bouton "S'abonner" */
.ticker-subscribe {
    background: var(--accent-yellow);
    color: var(--cradat-blue);
    padding: 0 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    height: 100%;             /* Prend toute la hauteur du parent */
    display: flex;
    align-items: center;      /* Centre le texte verticalement */
    flex-shrink: 0;
    transition: 0.3s;
}

.ticker-subscribe:hover {
    background: #e0b300;
    transform: scale(1.05);
}

/* Responsive mobile pour le bandeau */
@media (max-width: 768px) {
    .ticker-wrapper { height: 32px; gap: 8px; }
    .ticker-label { font-size: 0.7rem; padding: 0 10px; }
    .ticker-item { font-size: 0.8rem; }
    .ticker-subscribe { font-size: 0.7rem; padding: 0 12px; }
    marquee { line-height: 32px; }
}

/* =========================================================
   NOUVEAU : BANDEROLE (Bannière Héro) 
   ========================================================= */
.hero-banner {
    background: linear-gradient(135deg, rgba(7, 27, 75, 0.9), rgba(7, 27, 75, 0.7)), url('../images/hero-bg.jpg'); /* Changez l'image selon vos besoins */
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

/* Si vous n'avez pas d'image de fond, utilisez ceci à la place :
.hero-banner {
    background: var(--cradat-blue);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}
*/

.hero-banner h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero-banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   NOUVEAU : CHEMIN DE NAVIGATION MODERNE
   ========================================================= */
.breadcrumb-section {
    background: #f0f2f5;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.breadcrumb-links {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

.breadcrumb-links a {
    color: var(--cradat-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-links a:hover {
    color: #0d2b6b;
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 10px;
    color: #999;
}

.breadcrumb-current {
    color: #666;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-banner { padding: 40px 0; }
    .hero-banner h1 { font-size: 2rem; }
    .hero-banner p { font-size: 1rem; }
}


/* =========================================================
   BANDEROLE PROMOTIONNELLE (Publicité)
   ========================================================= */
.promo-banner {
    width: 100%;
    background: #fff;
    padding: 10px 0;
    text-align: center;
}

.promo-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Coins légèrement arrondis pour un look moderne */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Une petite ombre légère pour faire ressortir l'image */
    display: block;
    margin: 0 auto;
}

/* Responsive pour mobile : on s'assure que l'image ne dépasse pas */
@media (max-width: 768px) {
    .promo-banner { padding: 5px 0; }
    .promo-img { border-radius: 4px; }
}

/* =========================================================
   SECTION MOT DU DIRECTEUR GÉNÉRAL
   ========================================================= */
.section-dg {
    padding: 60px 0;
    background: var(--white);
}

.dg-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.dg-content {
    flex: 2; /* Le texte prendra 2/3 de la largeur */
}

.dg-subtitle {
    font-size: 1.1rem;
    color: var(--cradat-blue);
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--cradat-blue);
    padding-bottom: 10px;
    display: inline-block;
}

.dg-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.dg-text p {
    margin-bottom: 15px;
}

.dg-photo-wrapper {
    flex: 1; /* La photo prendra 1/3 de la largeur */
    text-align: center;
}

.dg-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(7, 27, 75, 0.15);
    border: 4px solid var(--white); /* Effet cadre photo */
    /* Si vous voulez une photo ronde, remplacez border-radius: 12px; par border-radius: 50%; */
}

/* Responsive mobile */
@media (max-width: 768px) {
    .dg-wrapper {
        flex-direction: column-reverse; /* La photo passe au-dessus sur mobile */
        align-items: center;
        gap: 20px;
    }
    
    .dg-content {
        text-align: justify; /* Justifié sur mobile pour une meilleure lecture */
    }
    
    .dg-photo-wrapper {
        width: 100%;
    }
    
    .dg-photo {
        max-width: 200px;
    }
}

/* =========================================================
   MENU FLOTTANT RÉSEAUX SOCIAUX (GAUCHE)
   ========================================================= */
.social-sidebar {
    position: fixed;
    left: 15px;
    top: 50%;
    transform: translateY(-50%); /* Centre le menu verticalement sur l'écran */
    z-index: 9999; /* Toujours au-dessus de tout */
    display: flex;
    flex-direction: column;
    gap: 8px; /* Espace entre les icônes */
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Rond parfait */
    background: var(--cradat-blue); /* Fond bleu par défaut */
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Petite ombre */
}

/* Couleurs officielles au survol */
.social-btn.facebook:hover { background: #1877f2; transform: scale(1.1); }
.social-btn.youtube:hover { background: #ff0000; transform: scale(1.1); }
.social-btn.linkedin:hover { background: #0a66c2; transform: scale(1.1); }
.social-btn.x-twitter:hover { background: #000000; transform: scale(1.1); }
.social-btn.instagram:hover { background: #c32aa3; transform: scale(1.1); }

/* Petit texte décoratif en bas du menu */
.social-sidebar-label {
    margin-top: 10px;
    writing-mode: vertical-rl; /* Écriture verticale */
    font-size: 0.7rem;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    padding: 5px 0;
}

/* Responsive : On le cache sur mobile pour ne pas gêner */
@media (max-width: 768px) {
    .social-sidebar {
        display: none; /* Disparait sur mobile */
    }
}

/* =========================================================
   SECTION CHIFFRES CLÉS (Variant sur fond bleu)
   ========================================================= */
.section-stats .stat-item p { letter-spacing: normal; }
.counter { font-size: inherit; }

/* =========================================================
   SECTION DOMAINES D'EXCELLENCE
   ========================================================= */
.card-expertise {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
}

.card-expertise:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-bottom-color: var(--cradat-blue);
}

.expertise-icon {
    font-size: 2.5rem;
    color: var(--cradat-blue);
    margin-bottom: 15px;
}

.card-expertise h3 { font-size: 1.3rem; color: var(--cradat-blue); }
.card-expertise p { color: var(--text-light); margin-bottom: 20px; line-height: 1.6; }

/* =========================================================
   SECTION PARTENAIRES
   ========================================================= */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.partner-item {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.partner-item:hover { transform: scale(1.05); }

.partner-item img {
    width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%); /* Effet gris par défaut */
    transition: filter 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%); /* Couleur au survol */
}

/* =========================================================
   SERVICES : Amélioration des overlays
   ========================================================= */
.card-service .overlay p { opacity: 0; transition: opacity 0.3s ease; }
.card-service:hover .overlay p { opacity: 1; }



/* =========================================================
   SERVICES MODERNES (Grandes cartes avec overlay)
   ========================================================= */
.card-service-modern {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-service-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-img-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-service-modern:hover .service-img-wrapper img {
    transform: scale(1.05);
}

/* L'overlay (texte qui apparaît au survol) */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 27, 75, 0.85); /* Fond bleu semi-transparent */
    color: #fff;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-service-modern:hover .service-overlay {
    opacity: 1;
}

.service-overlay h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 10px;
}

.service-overlay p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #eee;
}

.service-detail {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.service-detail span i {
    margin-right: 5px;
    color: var(--accent-yellow);
}

.service-contact {
    background: var(--accent-yellow);
    color: var(--cradat-blue);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Le petit bandeau en bas de la carte */
.service-footer {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
    border-top: 1px solid #eee;
}

/* Responsive : ajustement de la hauteur sur mobile */
@media (max-width: 768px) {
    .service-img-wrapper { height: 220px; }
    .service-overlay { padding: 20px; }
    .service-overlay h3 { font-size: 1.1rem; }
    .service-overlay p { font-size: 0.85rem; }
}

/* =========================================================
   GRILLE DES BROCHURES (Page Formations)
   ========================================================= */
.brochure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.card-brochure {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid #eee;
}

.card-brochure:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.brochure-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.card-brochure h3 {
    font-size: 1.2rem;
    color: var(--cradat-blue);
    margin-bottom: 10px;
}

.card-brochure p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.brochure-badge {
    display: inline-block;
    background: var(--accent-yellow);
    color: var(--cradat-blue);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.btn-download {
    background: #e74c3c; /* Rouge pour attirer l'attention sur le PDF */
    color: #fff;
    border: none;
}
.btn-download:hover {
    background: #c0392b;
    transform: scale(1.05);
}

/* =========================================================
   GRILLE DES FORMATIONS RENTRÉE 2026 (Avec Logos)
   ========================================================= */
.grid-formation-2026 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.card-formation-2026 {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #eee;
}

.card-formation-2026:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.formation-img-wrapper {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fafafa;
    min-height: 120px;
}

.formation-img-wrapper img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.formation-actions {
    width: 100%;
    padding: 15px 20px 20px 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.btn-download {
    background: #e74c3c; /* Rouge attractif pour le bouton PDF */
    color: #fff;
    border: none;
    width: 100%;
    justify-content: center;
}
.btn-download:hover {
    background: #c0392b;
    transform: scale(1.02);
}

/* AFFICHE RENTREE */
.affiche-rentree-container {
    background: #f4f6f8; /* Fond gris clair pour la faire ressortir */
    padding: 20px 0;
    text-align: center;
}
.affiche-rentree-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Coins légèrement arrondis */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Ombre élégante */
}
@media (max-width: 768px) {
    .affiche-rentree-container { padding: 10px 0; }
}

/* =========================================================
   SECTION PARTENAIRES (DÉFILEMENT INFINI)
   ========================================================= */
.partners-scroll-wrapper {
    width: 100%;
    overflow: hidden; /* Cache ce qui dépasse */
    padding: 10px 0;
    position: relative;
}

.partners-scroll-track {
    display: flex;
    gap: 40px; /* Espace entre les logos */
    width: max-content; /* S'étend selon la longueur du contenu */
    animation: scroll-partners 30s linear infinite; /* 30s pour un tour */
}

.partners-scroll-track:hover {
    animation-play-state: paused; /* Met en pause le défilement au survol */
}

.partner-item {
    flex-shrink: 0;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.partner-item img {
    height: 60px; /* Taille uniforme pour tous les logos */
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%); /* Gris par défaut */
    transition: filter 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%); /* Couleur au survol */
}

/* Animation de défilement */
@keyframes scroll-partners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Se déplace de la moitié car on a doublé la liste */
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .partners-scroll-track { gap: 20px; }
    .partner-item img { height: 40px; }
    .partner-item { padding: 5px; }
}

/* =========================================================
   BARRE D'ACTIONS (Recherche + Bouton) EN DESSOUS DU MENU
   ========================================================= */
.header-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee; /* Ligne de séparation subtile */
    margin-top: 10px;
}

/* Formulaire de recherche */
.search-form {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 450px;
    background: #f4f6f8;
    border-radius: 50px;
    padding: 3px 3px 3px 20px;
    border: 1px solid #e0e0e0;
    transition: border-color 0.3s;
}

.search-form:focus-within {
    border-color: var(--cradat-blue);
    background: #fff;
}

.search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
}

.search-form button {
    background: var(--cradat-blue);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #0d2b6b;
}

/* Bouton S'inscrire en ligne (Aligned with search) */
.btn-header-action {
    margin-left: 15px;
    white-space: nowrap;
}

/* Ajustement du menu pour qu'il tienne sur une ligne */
.main-nav ul {
    display: flex;
    gap: 15px; /* Espace réduit pour les 8 éléments */
    flex-wrap: nowrap;
}

.main-nav a {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem; /* Taille légèrement réduite */
}
.main-nav a:hover {
    color: var(--cradat-blue);
}

/* Responsive Mobile */
@media (max-width: 992px) {
    .header-actions-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .search-form {
        max-width: 100%;
    }
    .btn-header-action {
        margin-left: 0;
        text-align: center;
        justify-content: center;
        width: 100%;
    }
    .main-nav ul { gap: 10px; flex-wrap: wrap; justify-content: center; }
}

/* =========================================================
   STYLES SPÉCIFIQUES À LA PAGE INSTITUT
   ========================================================= */
.page-banner h1, .page-banner p {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .page-banner { padding: 40px 0; }
    .page-banner h1 { font-size: 2rem; }
    .section .grid-2 { grid-template-columns: 1fr; }
}