body { font-family: 'Poppins', sans-serif; }

/* --- VARIABLES DE COULEURS ISPATec --- */
:root {
    --bleu-ispa: #001a41;
    --orange-ispa: #f37021;
    --blanc: #ffffff;
}

/* --- SUPERPOSITION DU HEADER --- */
header {
    background: transparent;
}

/* On force la navbar à être transparente pour voir le carrousel derrière */
.navbar {
    background-color: transparent !important;
    box-shadow: none; /* Retrait de l'ombre pour la superposition */
    padding: 15px 20px;
    z-index: 1000;
}

/* --- STYLE DES LIENS (BOUTONS) --- */
/* Note : J'ai mis les liens en blanc pour qu'ils soient lisibles sur les images sombres */
.navbar-light .navbar-nav .nav-link {
    color: var(--blanc) !important; 
    font-weight: 600;
    font-size: 1rem;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* Ombre légère pour la lisibilité */
}

/* Effet au survol : Texte en Orange pour contraster avec le bleu/image */
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--orange-ispa) !important;
}

/* Soulignement Orange dynamique */
.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--orange-ispa);
    transition: width 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
    width: 100%;
}

/* --- STYLE DU BOUTON CONTACT --- */
.btn-contact {
    background-color: var(--orange-ispa) !important;
    border: none;
    color: white !important;
    border-radius: 50px;
    padding: 8px 25px !important;
    font-weight: 600;
    transition: all 0.3s ease !important;
}

.btn-contact:hover {
    background-color: var(--bleu-ispa) !important;
    border-color: var(--orange-ispa) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* --- DROPDOWN --- */
.dropdown-menu {
    border: none;
    border-top: 3px solid var(--orange-ispa);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- CARROUSEL --- */
.carousel-item {
    min-height: 450px;
}

.carousel-caption {
    bottom: 25%;
    text-align: left;
    z-index: 2;
}

.carousel-caption h2 {
    border-left: 5px solid var(--orange-ispa);
    font-size: 3rem;
    padding-left: 20px;
}

/* Overlay sombre pour la lisibilité du texte et du menu */
.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.hero-zoom {
    animation: zoom-effect 20s infinite alternate;
}

@keyframes zoom-effect {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* --- ANIMATION DU BOUTON CONTACT --- */
.animate__infinite {
    animation-iteration-count: infinite;
}


/* --- SECTION A PROPOS --- */
.about-section {
    background-color: #ffffff;
    overflow: hidden;
}

/* ANIMATION DYNAMIQUE DU TITRE (Effet Brillance Continue) */
/* --- NOUVEAU STYLE DE TITRE "WOW" --- */
.section-header {
    position: relative;
    margin-bottom: 60px;
    padding-top: 20px;
    z-index: 1;
}

/* Le petit texte au-dessus (ex: ACTUALITÉS) */
.section-subtitle {
    color: var(--orange-ispa);
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
    animation: fadeInDown 1s;
}

/* Le Grand Titre Principal */
.section-title-wow {
    font-size: 3rem; /* Très gros */
    font-weight: 900;
    color: var(--bleu-ispa); /* Bleu foncé */
    position: relative;
    display: inline-block;
    z-index: 2;
}

/* L'animation de soulignement dynamique */
.section-title-wow::after {
    content: '';
    position: absolute;
    width: 0%; /* Commence à 0 */
    height: 8px; /* Épaisseur */
    bottom: 5px;
    left: 0;
    background: var(--orange-ispa);
    opacity: 0.4; /* Semi-transparent pour effet "surligneur" */
    z-index: -1; /* Derrière le texte */
    transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Au survol de la section (ou via JS), la ligne grandit */
.section-header:hover .section-title-wow::after {
    width: 100%; /* S'étend jusqu'au bout */
}

/* Texte fantôme en arrière-plan (Effet Pro) */
.section-bg-text {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 6rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03); /* Très discret */
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    text-transform: uppercase;
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--orange-ispa);
    margin: 10px auto;
}

/* STYLE DE L'IMAGE DU DIRECTEUR */
.director-img-container {
    position: relative;
    padding: 15px;
}

/* Cadre décoratif derrière l'image */
.director-img-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 70%;
    border-left: 8px solid var(--bleu-ispa);
    border-top: 8px solid var(--bleu-ispa);
    z-index: 0;
}

.director-img-container img {
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.director-img-container:hover img {
    transform: scale(1.02);
}

/* Badge d'expérience flottant */
.experience-badge {
    position: absolute;
    bottom: -10px;
    right: 0;
    background-color: var(--orange-ispa);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(243, 112, 33, 0.3);
}

.experience-badge span {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
}

.experience-badge p {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
}


/* --- PAGE À PROPOS SPECIFIQUE --- */

.header-internal {
    background-color: var(--bleu-ispa) !important;
}

.header-internal .nav-link {
    color: white !important;
}

/* Hero Section Page */
.page-hero {
    height: 40vh;
    background: linear-gradient(rgba(0, 51, 141, 0.8), rgba(0, 51, 141, 0.8)), url('../img/isp-l3.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
}

.text-orange {
    color: var(--orange-ispa) !important;
}

/* Stack d'images dynamique */
.image-stack {
    position: relative;
    padding: 40px;
}

.secondary-img-wrapper {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    border: 5px solid white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.secondary-img-wrapper:hover {
    transform: translateY(-10px);
}

/* Stats Bar */
.stats-bar {
    background-color: var(--bleu-ispa);
    background-image: linear-gradient(45deg, var(--bleu-ispa) 0%, #001f54 100%);
}

.counter {
    font-size: 3rem;
    font-weight: 800;
    color: var(--orange-ispa);
}




/* Breadcrumb custom */
.breadcrumb-item + .breadcrumb-item::before {
    color: white;
}

/* --- ANIMATION DU TITRE (Gardez celle de l'index) --- */
.dynamic-title {
    background: linear-gradient(to right, var(--bleu-ispa) 20%, var(--orange-ispa) 40%, var(--orange-ispa) 60%, var(--bleu-ispa) 80%);
    background-size: 200% auto;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    font-weight: 800;
}

/* ============================================================
   AJOUTS SPÉCIFIQUES POUR LA PAGE À PROPOS ET LE FOOTER
   ============================================================ */

:root {
    --sombre-footer: #1a1a1a;
}

/* --- EN-TÊTE MODERNE (Effet Verre sur Page Interne) --- */
.modern-header {
    background: rgba(0, 51, 141, 0.9); /* Bleu ISPA avec transparence */
    backdrop-filter: blur(10px); /* Effet de flou moderne */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
}

.brand-logo { 
    width: 110px; 
    border-radius: 5px; 
    background: white; 
    padding: 5px; 
}

.btn-contact-modern {
    background: var(--orange-ispa);
    color: white !important;
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    border: none;
}

.btn-contact-modern:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(243, 112, 33, 0.4);
    background: #d65d1b;
}

/* --- NAVIGATION STYLE ACCUEIL --- */
.modern-header {
    background: var(--bleu-ispa) !important; /* Bleu principal */
    padding: 10px 0;
    transition: 0.4s;
}

.modern-header .nav-link {
    color: white !important; /* Texte blanc par défaut */
    font-weight: 600;
    margin: 0 15px;
    position: relative;
    transition: 0.3s;
}

.modern-header .nav-link:hover, 
.modern-header .nav-link.active {
    color: var(--orange-ispa) !important; /* Change en orange au survol */
}

/* Soulignement orange dynamique */
.modern-header .nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 3px; bottom: -5px; left: 0;
    background: var(--orange-ispa);
    transition: width 0.3s ease;
}

.modern-header .nav-link:hover::after, 
.modern-header .nav-link.active::after {
    width: 100%;
}

/* --- BOUTON CONTACT MODERNE --- */
.btn-contact-modern {
    background: var(--orange-ispa);
    color: white !important;
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    display: inline-block;
}

/* --- SYSTÈME PHOTOS SUPERPOSÉES (IMAGE STACK) --- */
.image-stack-container {
    position: relative;
    padding-bottom: 60px; /* Espace pour la petite photo */
}

.main-stack-img {
    width: 85%;
    display: block;
    margin-right: auto;
}

.secondary-stack-img {
    position: absolute;
    width: 55%;
    bottom: 0;
    right: 0;
    border: 8px solid white;
    z-index: 2;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.secondary-stack-img:hover {
    transform: translateY(-10px);
}

.experience-badge-stack {
    position: absolute;
    top: 10%;
    right: 10%;
    background: var(--orange-ispa);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    z-index: 3;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- FOOTER BLEU PRINCIPAL --- */
.main-footer { 
    background: var(--bleu-ispa) !important; 
    color: white !important;
    border-top: 4px solid var(--orange-ispa);
}

.footer-title { color: white !important; }
.footer-links a { color: rgba(255,255,255,0.8) !important; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--orange-ispa) !important; padding-left: 10px; }
.footer-bottom { background: rgba(0,0,0,0.2); }

/* --- HERO OVERLAY --- */
.hero-overlay {
    background: linear-gradient(rgba(0, 51, 141, 0.7), rgba(0, 0, 0, 0.7));
}

/* --- FOOTER PROFESSIONNEL BLEU ISPATec --- */
.main-footer { 
    background: var(--bleu-ispa) !important; /* Utilisation de votre bleu principal */
    color: rgba(255, 255, 255, 0.9); 
    position: relative;
    border-top: 5px solid var(--orange-ispa); /* Ligne orange pour le rappel de couleur */
}

/* On éclaircit un peu le bleu pour le bas du footer pour donner du relief */
.footer-bottom {
    background: rgba(0, 0, 0, 0.1);
    padding: 20px 0;
}

.footer-logo { 
    width: 120px; 
    background: white; /* On garde le fond blanc pour que le logo soit lisible sur le bleu */
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px; 
}

.footer-title { 
    color: white; 
    font-weight: 700; 
    margin-bottom: 25px; 
    position: relative; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-title::after {
    content: ''; 
    position: absolute; 
    left: 0; 
    bottom: -8px;
    width: 40px; 
    height: 3px; 
    background: var(--orange-ispa); /* Soulignement orange */
}

.footer-links li { margin-bottom: 12px; }

.footer-links a { 
    color: rgba(255, 255, 255, 0.8); 
    text-decoration: none; 
    transition: 0.3s ease; 
    font-size: 0.95rem;
}

.footer-links a:hover { 
    color: var(--orange-ispa) !important; 
    padding-left: 10px; 
}

.social-links a {
    width: 40px; 
    height: 40px; 
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 50%; 
    color: white; 
    margin-right: 10px; 
    transition: 0.3s;
    text-decoration: none;
}

.social-links a:hover { 
    background: var(--orange-ispa); 
    transform: translateY(-5px); 
    color: white;
}

.footer-contact i {
    width: 30px;
    color: var(--orange-ispa);
}

.footer-hr {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 30px 0 0 0;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}


/* --- SECTION FORMATIONS --- */
/* --- CORRECTION BANNIÈRE (Visibilité Titre) --- */
.carousel-caption {
    z-index: 10;
    bottom: 30%; /* Ajuste la position verticale */
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.8); /* Ombre portée pour la lisibilité */
    color: #ffffff !important;
}

.carousel-caption p {
    font-size: 1.5rem;
    text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.7);
    background: rgba(243, 112, 33, 0.7); /* Petit fond orange transparent derrière le texte secondaire */
    display: inline-block;
    padding: 5px 15px;
    border-radius: 5px;
}

/* --- STYLES CARTES FORMATIONS --- */
.formation-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Effet de levée au survol */
.formation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 51, 141, 0.15) !important;
}

/* Style de la boîte d'icône */
.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(0, 51, 141, 0.05); /* Fond bleu très pâle */
    color: var(--bleu-ispa);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
    transition: 0.4s ease;
}

/* Animation de l'icône au survol */
.formation-card:hover .icon-box {
    background: var(--orange-ispa); /* Devient orange */
    color: white;
    transform: rotateY(180deg); /* Rotation 3D sympa */
}

/* Rendre toute la carte cliquable */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* Petite flèche qui bouge au survol du lien */
.formation-card:hover .stretched-link i {
    transform: translateX(5px);
    transition: 0.3s;
}

/* --- DESIGN DES CARTES DE FILIÈRES --- */
/* --- FIX BANNIÈRE (Lisibilité Totale) --- */
.carousel-item {
    position: relative;
}

.carousel-item::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Voile protecteur pour le texte */
}

.carousel-caption {
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto !important;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    color: white !important;
}

/* --- STYLE DES 9 CARTES FORMATIONS --- */
.formation-card {
    transition: all 0.3s ease-in-out;
    border-radius: 15px;
    background: #ffffff;
}

.formation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 51, 141, 0.1) !important;
    border-bottom: 4px solid var(--orange-ispa);
}

.icon-box {
    width: 75px;
    height: 75px;
    background: rgba(0, 51, 141, 0.05);
    color: var(--bleu-ispa);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
    transition: 0.3s;
}

.formation-card:hover .icon-box {
    background: var(--bleu-ispa);
    color: white;
}

.text-orange {
    color: var(--orange-ispa) !important;
}

/* --- SECTION IA MODÈLE TECH --- */
.ai-section-premium {
    background: #000b1d; /* Bleu très sombre, presque noir pour le contraste */
    padding: 80px 0;
    width: 100%;
    margin: 0;
}

.ai-glass-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 10%;
    position: relative;
}

.tech-tag {
    color: var(--orange-ispa);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.ai-title {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
}

.ai-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin: 30px 0;
    max-width: 600px;
}

.btn-ia-launch {
    background: linear-gradient(90deg, var(--orange-ispa), #ff8c42);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 5px; /* Carré arrondi pour un look plus "logiciel" */
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-ia-launch:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(243, 112, 33, 0.4);
    color: white;
}

.ai-status {
    color: #00ffcc;
    font-size: 0.8rem;
    margin-left: 20px;
    font-family: monospace;
}

.dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: #00ffcc;
    border-radius: 50%;
    margin-right: 5px;
    box-shadow: 0 0 10px #00ffcc;
}

/* --- ANIMATIONS VISUELLES DROITE --- */
.ai-visual-box {
    position: relative;
    width: 200px; height: 200px;
    display: flex;
    align-items: center; justify-content: center;
}

.ai-brain-icon {
    font-size: 5rem;
    color: white;
    z-index: 2;
    filter: drop-shadow(0 0 15px var(--orange-ispa));
}

.orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.orbit-1 { width: 150px; height: 150px; border-top: 2px solid var(--orange-ispa); }
.orbit-2 { width: 220px; height: 220px; border-left: 2px solid var(--bleu-ispa); animation-duration: 15s; }

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* SÉPARATION FOOTER */
.main-footer {
    background: #001a41 !important; /* Encore plus sombre que la section IA */
    color: white;
    padding-top: 60px;
    border-top: 1px solid #f37021
}


.main-footer {
    background: #001a41 !important; /* Bleu marine très sombre */
    color: white;
    padding-top: 80px;
    padding-bottom: 30px;
    border-top: 6px solid #f37021; /* Ta séparation orange */
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
    display: block;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: #f37021;
    padding-left: 5px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #f37021;
    transform: translateY(-3px);
}


/* --- SECTION ALUMNI (CORRIGÉE) --- */
.alumni-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%; /* Assure que toutes les cartes ont la même hauteur finale */
}

.alumni-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 51, 141, 0.15) !important;
}

/* LE CORRECTION EST ICI */
.alumni-img-wrapper {
    position: relative;
    height: 300px; /* Hauteur augmentée pour mieux accueillir les portraits */
    overflow: hidden;
}

.alumni-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit le cadre sans déformer */
    object-position: top center; /* FIX IMPORTANT : Centre l'image sur le haut (visage) pour éviter de couper les têtes */
    transition: transform 0.6s ease;
}

.alumni-card:hover .alumni-img-wrapper img {
    transform: scale(1.1); /* Léger zoom au survol */
}

/* Badge de filière orange sur la photo */
.alumni-filiere-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--orange-ispa);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.alumni-info .italic {
    font-style: italic;
    line-height: 1.6;
    opacity: 0.8;
}

/* Utilitaire couleur orange */
.text-orange {
    color: var(--orange-ispa) !important;
}


/* --- SECTION ACTUALITÉS DYNAMIQUES --- */

/* --- NOUVEAU STYLE ACTUALITÉS (CARTE MODERNE) --- */

.news-card-modern {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    border-bottom: 3px solid transparent; /* Prêt pour l'effet hover */
}

/* Effet au survol de la carte globale */
.news-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 51, 141, 0.15);
    border-bottom: 3px solid var(--orange-ispa);
}

/* Conteneur de l'image (pour masquer le débordement du zoom) */
.news-img-box {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease; /* Zoom fluide */
}

/* Zoom de l'image au survol */
.news-card-modern:hover .news-img-box img {
    transform: scale(1.1);
}

/* Badge de date flottant */
.date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--orange-ispa);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    line-height: 1;
}

/* Corps du texte */
.news-body {
    padding: 25px;
}

.news-category {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Lien "Lire plus" */
.read-more-link {
    color: var(--bleu-ispa);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 15px;
    display: inline-block;
    transition: 0.3s;
}

.read-more-link:hover {
    color: var(--orange-ispa);
    transform: translateX(5px); /* Petite animation vers la droite */
}

/* Couleurs utilitaires */
.text-bleu { color: var(--bleu-ispa); }
.text-orange { color: var(--orange-ispa); }



/* --- PAGE A PROPOS --- */

/* Cartes Valeurs */
.value-card {
    transition: transform 0.3s ease;
}
.value-card:hover {
    transform: translateY(-10px);
}
.border-bottom-orange {
    border-bottom: 4px solid var(--orange-ispa);
}
.text-bleu { color: var(--bleu-ispa); }

/* Cartes Équipe (Effet Overlay) */
.team-card img {
    transition: transform 0.5s ease;
}
.team-card:hover img {
    transform: scale(1.1);
}
.team-overlay {
    position: absolute;
    bottom: -100%; /* Caché par défaut en bas */
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 51, 141, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 30px;
    transition: bottom 0.4s ease;
}
.team-card:hover .team-overlay {
    bottom: 0; /* Apparaît au survol */
}

/* Infrastructure */
.border-orange-corner {
    border-bottom: 10px solid var(--orange-ispa);
    border-right: 10px solid var(--orange-ispa);
}



/* --- STYLE SPECIFIQUE CONTACT --- */

.contact-form-container {
    background: white;
    border-radius: 20px;
    border-top: 5px solid var(--orange-ispa);
}

.custom-input {
    border: 1px solid #eee;
    padding: 12px 20px;
    border-radius: 10px;
    transition: 0.3s;
    background: #f8f9fa;
}

.custom-input:focus {
    border-color: var(--orange-ispa);
    background: white;
    box-shadow: 0 0 10px rgba(243, 112, 33, 0.1);
    outline: none;
}

.contact-info-card .icon-box {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--bleu-ispa);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
}

.contact-info-card .d-flex:hover .icon-box {
    background: var(--orange-ispa);
    transform: rotate(10deg);
}

.map-section {
    line-height: 0;
    filter: grayscale(20%) contrast(110%);
    border-top: 4px solid var(--bleu-ispa);
}

/* On réutilise tes styles de réseaux sociaux du footer pour la page contact */
.social-links a {
    background: white;
    color: var(--bleu-ispa);
    border: 1px solid #eee;
}

.social-links a:hover {
    background: var(--orange-ispa);
    color: white;
    border-color: var(--orange-ispa);
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 30px !important;
    }
    .dynamic-title {
        font-size: 1.8rem;
    }
}
.custom-input:hover {
    border-color: rgba(243, 112, 33, 0.5);
    transform: translateX(5px);
}
/* --- STYLE PAGE INSCRIPTION --- */

.registration-form-container {
    border-radius: 20px;
    border: none;
}

.border-dashed {
    border: 2px dashed #ddd;
    cursor: pointer;
    transition: 0.3s;
}

.border-dashed:hover {
    border-color: var(--orange-ispa);
    background: rgba(243, 112, 33, 0.05);
}

.bg-bleu-ispa {
    background-color: var(--bleu-ispa) !important;
}

/* Animation spécifique pour les labels de section */
.registration-form-container h6 {
    border-left: 3px solid var(--orange-ispa);
    padding-left: 10px;
    margin-top: 20px;
}

/* On réutilise les custom-input de la page contact */
/* --- COMPLÉMENT PAGE LICENCE --- */

.bg-bleu-ispa {
    background-color: var(--bleu-ispa) !important;
}

/* On personnalise les listes dans les cartes */
.formation-card ul li {
    padding: 5px 0;
    color: #444;
    font-weight: 500;
}

/* Effet de brillance au survol de la carte (rappel du style tech) */
.formation-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.formation-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(243, 112, 33, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: 0.5s;
    z-index: -1;
}

.formation-card:hover::before {
    opacity: 1;
}

/* Adaptation du style IA pour les icônes */
.ai-glass-container i {
    filter: drop-shadow(0 0 10px var(--orange-ispa));
}

/* Badge spécifique pour la durée */
.badge.bg-bleu-ispa {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
/* --- STYLE ACCORDEON FAQ --- */

.accordion-button:not(.collapsed) {
    background-color: rgba(0, 26, 65, 0.05); /* Bleu ISPA très clair */
    color: var(--bleu-ispa);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--orange-ispa);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f37021'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-item {
    transition: 0.3s;
    border: 1px solid #eee !important;
}

.accordion-item:hover {
    border-color: var(--orange-ispa) !important;
}



/* Style des boutons de filtre */
.btn-filter {
    border: 2px solid var(--bleu-ispa);
    color: var(--bleu-ispa);
    background: transparent;
    padding: 8px 20px;
    margin: 5px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-filter:hover, .btn-filter.active {
    background-color: var(--orange-ispa);
    border-color: var(--orange-ispa);
    color: white;
}

/* Gestion de l'affichage pour le filtrage */
.filter-item {
    display: none; /* Cacher par défaut */
}

.filter-item.show {
    display: block; /* Afficher les éléments sélectionnés */
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- STYLE SPECIFIQUE CONTACT --- */

.contact-form-container {
    background: white;
    border-radius: 20px;
    border-top: 5px solid var(--orange-ispa);
}

.custom-input {
    border: 1px solid #eee;
    padding: 12px 20px;
    border-radius: 10px;
    transition: 0.3s;
    background: #f8f9fa;
}

.custom-input:focus {
    border-color: var(--orange-ispa);
    background: white;
    box-shadow: 0 0 10px rgba(243, 112, 33, 0.1);
    outline: none;
}


/* --- GESTION DES SOUS-MENUS (DROPDOWN MULTI-NIVEAUX) --- */

/* Uniquement sur écran large (Desktop) */
@media (min-width: 992px) {
    
    /* Affiche le menu au survol */
    .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0; /* Évite le petit saut */
    }

    /* Gestion des sous-menus (dropend) */
    .dropend:hover > .dropdown-menu {
        display: block;
        position: absolute;
        top: 0;
        left: 100%; /* Affiche à droite du parent */
        margin-top: -5px; /* Ajustement vertical */
    }
}

/* Style des liens dans le dropdown */
.dropdown-item {
    padding: 10px 20px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background-color: rgba(243, 112, 33, 0.1); /* Fond orange très clair */
    color: var(--orange-ispa); /* Texte orange */
    border-left: 3px solid var(--orange-ispa); /* Petite barre orange à gauche */
    padding-left: 25px; /* Petit décalage vers la droite */
}

/* Flèche pour indiquer qu'il y a un sous-menu */
.dropend .dropdown-toggle::after {
    float: right;
    margin-top: 7px;
    margin-left: 10px;
    border-top: 0.35em solid transparent;
    border-bottom: 0.35em solid transparent;
    border-left: 0.35em solid; /* Flèche vers la droite */
    border-right: 0;
    vertical-align: middle;
}



/* --- STYLE CHATBOT ISPATec (MODERNE & FLOTTANT) --- */

/* 1. Bouton Flottant (En bas à droite) */
#ispa-chat-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--orange-ispa); /* Votre Orange */
    color: white;
    border-radius: 50px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(243, 112, 33, 0.4);
    z-index: 99999; /* Très haut pour être au-dessus de tout */
    transition: all 0.3s ease;
}

#ispa-chat-trigger:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(243, 112, 33, 0.6);
}

.trigger-icon { font-size: 1.5rem; }
.trigger-text { font-weight: 600; font-size: 1rem; }

/* 2. Fenêtre de Chat (Modal) */
#ispa-chat-modal {
    position: fixed;
    bottom: 100px; /* Juste au-dessus du bouton */
    right: 30px;
    width: 380px;
    height: 550px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    
    /* Animation Cachée par défaut */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Classe active pour afficher le chat */
#ispa-chat-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* 3. Header du Chat */
.chat-modal-header {
    background: var(--bleu-ispa); /* Votre Bleu */
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.header-avatar {
    position: relative;
    width: 45px; height: 45px;
    background: white;
    border-radius: 50%;
    padding: 2px;
    margin-right: 15px;
}
.header-avatar img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.online-badge {
    position: absolute; bottom: 0; right: 0;
    width: 12px; height: 12px;
    background: #2ecc71; /* Vert connecté */
    border: 2px solid white;
    border-radius: 50%;
}

.header-info h6 { margin: 0; font-weight: 700; font-size: 1.1rem; }
.header-info p { margin: 0; font-size: 0.8rem; opacity: 0.8; }

#close-chat-btn { background: none; border: none; color: white; font-size: 1.2rem; cursor: pointer; }

/* 4. Corps (Messages) */
.chat-modal-body {
    flex: 1;
    background: #f4f7f6;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-date { text-align: center; font-size: 0.75rem; color: #aaa; margin-bottom: 10px; }

.message-row { display: flex; flex-direction: column; max-width: 80%; }
.message-row.bot { align-self: flex-start; }
.message-row.user { align-self: flex-end; align-items: flex-end; }

.message-content {
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Style Bulles */
.bot .message-content {
    background: white;
    color: #333;
    border-bottom-left-radius: 2px;
}
.user .message-content {
    background: var(--bleu-ispa);
    color: white;
    border-bottom-right-radius: 2px;
}

.message-time { font-size: 0.7rem; color: #bbb; margin-top: 5px; }

/* 5. Footer (Input) */
.chat-modal-footer {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
}

#chat-form {
    display: flex;
    background: #f0f2f5;
    border-radius: 30px;
    padding: 5px 10px;
    align-items: center;
}

#user-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    outline: none;
    font-size: 0.95rem;
}

.send-btn {
    background: var(--orange-ispa);
    color: white;
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.send-btn:hover { background: #d65a12; transform: scale(1.1); }

/* Animation écriture */
.typing-indicator span {
    display: inline-block; width: 6px; height: 6px; background: #ccc;
    border-radius: 50%; margin: 0 2px;
    animation: typing 1.4s infinite;
}
@keyframes typing { 0%, 100% { transform: scale(0); } 50% { transform: scale(1); } }

/* Mobile Responsive */
@media (max-width: 480px) {
    #ispa-chat-modal { width: 90%; right: 5%; bottom: 90px; height: 60vh; }
    #ispa-chat-trigger .trigger-text { display: none; } /* Juste l'icône sur mobile */
    #ispa-chat-trigger { padding: 15px; border-radius: 50%; width: 60px; height: 60px; justify-content: center;}
}


/* STYLES MODALE SOPHISTIQUÉE */
.modal-xl-custom {
    max-width: 1140px; /* Plus large */
}

.modal-hero {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: flex-end;
}

.modal-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,26,65,0.2) 0%, rgba(0,26,65,0.9) 100%);
    border-radius: 15px 15px 0 0;
}

.modal-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 100%;
}

.program-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 10px;
}

.module-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--orange-ispa);
    margin-bottom: 10px;
    transition: transform 0.2s;
}
.module-card:hover {
    transform: translateX(5px);
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.career-tag {
    display: inline-block;
    background: #eef2ff;
    color: var(--bleu-ispa);
    padding: 8px 15px;
    border-radius: 8px;
    margin: 5px 5px 5px 0;
    font-weight: 600;
    font-size: 0.9rem;
}