body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* .IAHSO {
  font-family: "Tahoma" Geneva, Verdana, sans-serif;
  font-size: 35px;
  font-weight: bold;
  color: #92278f;
  margin-left: 20px;
  letter-spacing: 5px;
} */

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
} */

body.no-scroll {
    overflow: hidden;
}

/* Top Header */
.top-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 20px;
    background-color: #92278f;
    font-size: 0.9em;
    color: #fff;
    flex-wrap: wrap;
}

.top-header-left,
.top-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-header-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.top-header-link:hover {
    color: #03c41d;
}

.social-icon {
    color: #ffffff;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #03c41d;
}

/* Langue */
.language-switcher {
    position: relative;
}

.language-dropdown {
    display: none;
    position: absolute;
    background-color: #fff;
    color: #000;
    top: 100%;
    left: 0;
    min-width: 60px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 10;
}

.language-switcher:hover .language-dropdown {
    display: block;
}

.language-dropdown li {
    list-style: none;
}

.language-dropdown li a {
    display: block;
    padding: 5px 10px;
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
}

.language-dropdown li a:hover {
    background-color: #f2f2f2;
    color: #03c41d;
}

/* Header */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    padding: 4px 20px;
    /* border-bottom: 2px solid #003366; */
    flex-wrap: wrap;
}

.header-logo-right,
.header-logo-left {
    height: 60px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 10px;
    transition: opacity 0.3s ease;
}

.header-text {
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #003366;
    line-height: 1.4;
    padding: 0 10px;
    min-width: 200px;
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        padding: 15px;
        text-align: center;
    }

    .header-logo-right,
    .header-logo-left {
        display: none; /* Masque les logos sur mobile */
    }

    .header-text {
        order: 0; /* Place le texte en premier */
        width: 100%;
        margin: 0;
        padding: 10px 0;
        font-size: 0.8rem; /* Taille de police légèrement réduite */
    }
}

@media (max-width: 480px) {
    .header-text {
        font-size: 0.75rem; /* Taille encore plus petite pour très petits écrans */
        line-height: 1.3;
    }
}

/* breaking news */
.breaking-news-bar {
    display: flex;
    align-items: center;
    background-color: #fcfcfc;
    border-bottom: 2px solid #0969b3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 6px 15px;
    font-weight: bold;
    overflow: hidden;
    font-size: 0.5rem;
}

.breaking-news-label {
    white-space: nowrap;
    margin-right: 20px;
    flex-shrink: 0;
    color: #0969b3;
    font-size: 1.1rem;
    font-style: italic;
}

.breaking-news-slider {
    overflow: hidden;
    position: relative;
    flex-grow: 1;
}

.breaking-news-list {
    display: flex;
    animation: slide-news 20s linear infinite;
    list-style: none;
    gap: 80px;
    padding: 0;
    margin: 0;
}

.breaking-news-list li {
    white-space: nowrap;
    font-size: 1rem;
}

.breaking-news-list li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
    font-style: italic;
}

.breaking-news-list li a:hover {
    color: #ff0000;
    text-decoration: underline;
}

.breaking-news-list li span:hover {
    color: #ff0000;
    text-decoration: underline;
}

/* Animation pause on hover */
.breaking-news-slider:hover .breaking-news-list {
    animation-play-state: paused;
}

/* Keyframes */
@keyframes slide-news {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Navbar principale */
.navbar {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0969b3;
    padding: 0.5rem 0.7rem;
    color: white;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
}

.navbar-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo IAHSO */
.IAHSO {
    font-family: "Poppins", sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4); /* ombre douce pour ressortir */
    user-select: none;
}

/* Menu principal */
.nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    transition: all 0.4s ease;
}

.nav-list > li {
    position: relative;
}

.nav-list a {
    text-decoration: none;
    color: white;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
}

.nav-list a:hover {
    color: #03c41d;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-list a i {
    margin-right: 6px;
    text-align: center;
    font-size: 0.85em;
}

/* Indicateur de sous-menu */
.has-submenu > a::after {
    content: "\25BE";
    font-size: 0.5em;
    margin-left: 0.2rem;
    transition: transform 0.3s ease;
}

/* Sous-menus principaux */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #055fa4;
    min-width: 220px;
    max-width: 400px; /* Ajoutez une largeur maximale */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border-radius: 4px;
    padding: 0.5rem 0;
    list-style: none;
    white-space: normal; /* Permet le retour à la ligne */
    word-wrap: break-word; /* Force le retour à la ligne pour les longs mots */
}

/* Sous-sous-menus */
.submenu li.has-submenu {
    position: relative;
}

/* Corriger la position verticale du sous-sous-menu */
.sub-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #014c97;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 1002;
    border-radius: 4px;
    padding: 0.5rem 0;
    list-style: none;
}

.submenu li a,
.sub-submenu li a {
    padding: 0.6rem 1.5rem;
    white-space: normal; /* Changé de nowrap à normal */
    font-weight: 400;
    font-size: 0.85rem;
    color: #e0e0e0;
    justify-content: flex-start;
    word-break: break-word; /* Ajouté pour gérer les longs textes */
}

@media (max-width: 768px) {
    .submenu,
    .sub-submenu {
        max-width: 100%; /* Prend toute la largeur disponible */
        left: 0 !important;
        right: auto !important;
    }

    .sub-submenu {
        position: static;
        margin-left: 1rem;
        border-left: 2px solid rgba(255, 255, 255, 0.1);
    }
}

/* Affichage du sous-sous-menu au survol */
.submenu li.has-submenu:hover > .sub-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Animation d'affichage */
.has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu .has-submenu:hover > .sub-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu .has-submenu:hover > .sub-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Styles des items de sous-menu */
.submenu li a,
.sub-submenu li a {
    padding: 0.6rem 1.5rem;
    white-space: nowrap;
    font-weight: 400;
    font-size: 0.85rem;
    color: #e0e0e0;
    justify-content: flex-start;
}

.submenu li a i,
.sub-submenu li a i {
    font-size: 0.85em;
}

.submenu li a:hover,
.sub-submenu li a:hover {
    color: #03c41d;
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 1.7rem;
}

/* Menu mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Styles responsifs */
@media (max-width: 1200px) {
    .nav-list a {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
    }

    .IAHSO {
        font-size: 1.8rem;
        margin-right: 1rem;
    }
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #003366;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
        overflow-y: auto;
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list > li {
        width: 100%;
        margin: 0;
    }

    .nav-list a {
        padding: 0.8rem 1.5rem;
        justify-content: flex-start;
        font-size: 0.9rem;
    }

    .submenu,
    .sub-submenu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.2);
        display: none;
        padding: 0;
    }

    .submenu.active,
    .sub-submenu.active {
        display: block;
    }

    .submenu li a,
    .sub-submenu li a {
        padding: 0.7rem 2rem;
    }

    .has-submenu > a::after {
        content: "\25B8";
        margin-left: auto;
    }

    .IAHSO {
        font-size: 1.5rem;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        padding: 15px;
    }

    .header-logo-right,
    .header-logo-left {
        margin: 10px 0;
    }

    .header-text {
        order: -1;
        margin-bottom: 15px;
    }

    .top-header-top {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .top-header-left,
    .top-header-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .breaking-news-bar {
        /* flex-direction: column; */
        align-items: flex-start;
        padding: 8px 10px;
    }

    .breaking-news-label {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .breaking-news-slider {
        width: 100%;
    }

    .breaking-news-list {
        gap: 40px;
        animation: slide-news 15s linear infinite;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.7rem 1rem;
    }

    .IAHSO {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .header-text {
        font-size: 0.8rem;
    }

    .top-header-link {
        font-size: 0.8rem;
    }

    .breaking-news-label,
    .breaking-news-list li {
        font-size: 0.9rem;
    }
}

#savoir {
    margin-left: 10px;
    text-decoration: none;
}

/* carousel */
.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.carousel-caption h1 {
    font-size: 2.5rem;
    color: #fff;
    font-weight: bold;
}

.carousel-caption h1 a {
    font-size: 2.5rem;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.carousel-caption p {
    font-size: 1.2rem;
    color: #f8f9fa;
}

.carousel-inner img {
    height: auto;
    object-fit: cover;
}

.carousel-caption h1 a {
    position: relative;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.carousel-caption h1 a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #92278f; /* Couleur de surlignement */
    transition: width 0.4s ease;
}

.carousel-caption h1 a:hover {
    color: #92278f;
}

.carousel-caption h1 a:hover::after {
    width: 100%;
}

/*--------la chaire IAHSO------------------- */

.about-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.text-justify {
    text-align: justify;
}

.about-section .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #003366;
}

#savoir {
    display: inline-flex;
    align-items: center;
    color: #002244;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 16px;
    margin-top: 10px;
}

#savoir i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

#savoir:hover {
    color: #92278f;
    /* text-decoration: underline; */
}

#savoir:hover i {
    transform: translateX(4px);
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.about-section .btn-primary {
    background-color: #003366;
    border-color: #003366;
}

.about-section .btn-primary:hover {
    background-color: #0055aa;
    border-color: #0055aa;
}

/* Section Chiffres clés */
.nos-objectifs .objectif-icon {
    color: white;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nos-objectifs .objectif-box:hover .objectif-icon {
    transform: scale(1.2);
    color: rgb(146, 39, 143);
}

.nos-objectifs h2 {
    font-size: 2.2rem;
    letter-spacing: 0.5px;
}

.nos-objectifs h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.nos-objectifs p {
    font-size: 0.95rem;
    padding: 0 5px;
}

/* --------- Section Projets & Actualités ---------- */
#projet-envenement {
    margin-left: 35px;
    margin-right: 35px;
}

/* Titres stylisés */
.sec-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
}

.title-separator {
    display: inline-block;
    position: relative;
    width: 280px;
    height: 2px;
}

.title-separator::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 50%,
        #92278f 50%,
        #92278f 100%
    );
    background-size: 10px 2px; /* Ajustez 10px pour l'espacement */
    background-repeat: repeat-x;
}

.title-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    padding: 0 10px;
}

/* Pour le titre sans séparateurs */
.sec-title:not(:has(.title-separator)) .title-text {
    border-bottom: 2px solid #92278f;
    padding-bottom: 5px;
}

/* --------- Carrousel Actualités ---------- */
.actu-card-side {
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
}

.actu-side-banner {
    background-color: #0969b3;
    width: 40%;
    height: 100%;
}

.actu-side-img {
    width: 60%;
    object-fit: cover;
    height: 100%;
}

/* Boutons custom positionnés sur l'image */
.carousel-custom-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.carousel-custom-controls .btn {
    background-color: #92278f;
    color: #fff;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    transition: background-color 0.3s ease;
}

.carousel-custom-controls .btn:hover {
    background-color: #92278f;
    color: #fff;
}

/* --------- Timeline Projets ---------- */
.projects-timeline {
    position: relative;
    margin-left: 10px;
    padding-left: 20px;
    border-left: 3px solid #92278f;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 10px;
    animation: fadeInUp 0.6s ease both;
}

/* .timeline-item::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 5px;
  width: 16px;
  height: 16px;
  background-color: #e67e22;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
  z-index: 1;
} */

.timeline-icon {
    display: inline-block;
    vertical-align: top;
    margin-right: 10px;
}

.timeline-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 1px solid rgb(43, 88, 117);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content {
    display: inline-block;
    vertical-align: top;
    max-width: calc(100% - 70px);
}

.timeline-item:hover .timeline-thumb {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.timeline-content a {
    font-size: 0.95rem;
    text-decoration: none;
    color: #000000;
    position: relative;
    transition: color 0.3s ease;
}

.timeline-content a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -2px;
    background-color: #92278f;
    transition: width 0.3s ease;
}

.timeline-content a:hover {
    color: #92278f;
}

.timeline-content a:hover::after {
    width: 100%;
}

.timeline-content p {
    font-size: 0.8rem;
    color: #555;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------- Responsive ---------- */
@media (max-width: 992px) {
    #projet-envenement {
        margin-left: 15px;
        margin-right: 15px;
    }

    .sec-title {
        flex-direction: column;
        gap: 8px;
    }

    .title-separator {
        width: 60px;
    }

    .title-text {
        font-size: 1.3rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .actu-card-side {
        flex-direction: column;
        height: auto;
    }

    .actu-side-banner,
    .actu-side-img {
        width: 100%;
    }

    .actu-side-banner {
        padding: 20px;
    }

    .carousel-custom-controls {
        position: static;
        justify-content: center;
        margin: 15px 0;
    }

    /* Stack les colonnes sur mobile */
    .projets-en-cours .row {
        flex-direction: column;
    }

    .projects-timeline {
        margin-top: 30px;
        padding-left: 30px;
    }
}

@media (max-width: 576px) {
    .title-text {
        font-size: 1.1rem;
    }

    .actu-side-banner h5 {
        font-size: 1rem;
    }

    .actu-side-banner p {
        font-size: 0.9rem;
    }
}

/* ========== Section Partenaires ========== */
.partenaires-section {
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.section-header {
    position: relative;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2b587d;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Solution pour 5 colonnes égales en desktop */
@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* Styles des cartes partenaires */
.partenaire-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.partenaire-link:hover {
    transform: translateY(-5px);
}

.partenaire-card {
    position: relative;
    height: 120px; /* Hauteur légèrement augmentée */
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px; /* Plus large que haut */
    margin: 0 auto;
}

.partenaire-logo-container {
    padding: 5px 15px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.partenaire-logo {
    max-height: 70px; /* Taille augmentée */
    max-width: 100%;
    width: auto;
    transition: all 0.3s ease;
}

/* Overlay au hover */
.partenaire-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 88, 125, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 10px 15px;
    text-align: center;
}

.partenaire-logo-hover {
    max-height: 50px; /* Taille du logo au survol */
    margin-bottom: 10px;
    width: auto;
}

.partenaire-name {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Effets au hover */
.partenaire-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.partenaire-card:hover .partenaire-overlay {
    opacity: 1;
}

/* Bouton "Devenir Partenaire" */
.btn-partenaire {
    padding: 10px 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    background: #0969b3;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(9, 105, 179, 0.3);
    transition: all 0.3s ease;
}

.btn-partenaire:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(9, 105, 179, 0.4);
    background: #1893f1;
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .partenaire-card {
        height: 110px;
    }
    .partenaire-logo {
        max-height: 60px;
    }
}

@media (max-width: 768px) {
    .partenaire-card {
        height: 100px;
    }
    .partenaire-logo {
        max-height: 50px;
    }
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .partenaire-card {
        height: 90px;
    }
    .partenaire-logo {
        max-height: 40px;
    }
    .section-title {
        font-size: 1.6rem;
    }
}

/* FOOTER */
* Footer principal */ .site-footer {
    position: relative;
}

.footer-main {
    background-color: #0969b3;
    color: #ccc;
    font-size: 1rem;
}

.site-footer h5 {
    color: #92278f;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.site-footer h5::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #ffffff;
}

.footer-text {
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.footer-links {
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
    list-style: none;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.2rem 0;
}

.footer-links a:hover {
    color: #000000;
    /* transform: translateX(5px); */
}

.footer-links i {
    transition: transform 0.3s ease;
    margin-top: 5px;
}

.footer-links a:hover i {
    transform: rotate(90deg);
}

.footer-social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.footer-social-icons a:hover {
    color: #ffffff;
    background-color: #92278f;
    transform: translateY(-3px);
}

.footer-newsletter input[type="email"] {
    padding: 0.75rem;
    border-radius: 4px;
    border: none;
    width: 100%;
    margin-bottom: 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid #ffffff;
}

.footer-newsletter input[type="email"]::placeholder {
    color: #ffffff;
}

.footer-newsletter button {
    width: 100%;
    padding: 0.75rem;
    font-weight: 600;
    background-color: #ffffff;
    color: #92278f;
    border: none;
    transition: all 0.3s ease;
}

.footer-newsletter button:hover {
    background-color: #dbdbdb;
    color: #92278f;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    color: white;
    font-size: 0.9rem;
}

.footer-contact i {
    /* color: #e67e22; */
    width: 20px;
}

/* Footer bottom avec fond violet */
.footer-bottom {
    background-color: #92278f; /* Violet comme demandé */
    width: 100%;
}

.footer-bottom-content {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-main .row > div {
        margin-bottom: 2rem;
    }

    .site-footer h5::after {
        width: 40px;
    }

    .footer-social-icons {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .footer-main {
        text-align: center;
    }

    .site-footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-social-icons {
        justify-content: center;
    }

    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact p {
        justify-content: center;
    }
}

/* Titres avec ligne */
.sec-title.has-line {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.sec-title.has-line::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    background-color: #e67e22;
    margin: 8px auto 0;
    border-radius: 2px;
}

/* ============ FORMATION SECTION ============ */
/* --------- Section Formation ---------- */
#formation {
    padding-left: 35px;
    padding-right: 35px;
}

/* Titres stylisés */
.sec-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
}

.title-separator {
    display: inline-block;
    position: relative;
    width: 280px;
    height: 2px;
}

.title-separator::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 50%,
        #92278f 50%,
        #92278f 100%
    );
    background-size: 10px 2px; /* Ajustez 10px pour l'espacement */
    background-repeat: repeat-x;
}

.title-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    padding: 0 10px;
}

/* Pour le titre sans séparateurs */
.sec-title:not(:has(.title-separator)) .title-text {
    border-bottom: 2px solid #92278f;
    padding-bottom: 5px;
}

/* Images des formations */
.formation-img {
    max-width: 320px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Texte des formations */
.formation-description {
    max-width: 600px;
    line-height: 1.5;
}

.formation-date {
    font-size: 0.9rem;
}

/* Séparateur entre formations */
.formation-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
}

/* Colonne "À voir aussi" */
.aside-voir-aussi {
    border-left: 3px solid #92278f;
    background-color: #fff;
}

.voir-aussi-list li {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

.voir-aussi-list li i {
    min-width: 24px;
    text-align: center;
    color: #024991;
    transition: color 0.3s ease;
}

/* Effets hover */
.hover-orange {
    position: relative;
    color: #000000 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hover-orange::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -2px;
    background-color: #92278f;
    transition: width 0.3s ease;
}

.hover-orange:hover {
    color: #92278f !important;
}

.hover-orange:hover::after {
    width: 100%;
}

.voir-aussi-list li a:hover i {
    color: #92278f;
}

/* --------- Responsive ---------- */
@media (max-width: 1199px) {
    #formation {
        padding-left: 25px;
        padding-right: 25px;
    }
}

@media (max-width: 991px) {
    .title-text {
        font-size: 1.3rem;
    }

    .formation-item h5 a {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    #formation {
        padding-left: 15px;
        padding-right: 15px;
    }

    .sec-title {
        flex-direction: column;
        gap: 8px;
    }

    .title-separator {
        width: 60px;
    }

    .formation-item {
        text-align: center !important;
    }

    .formation-item .ms-lg-4 {
        margin-left: 0 !important;
        margin-top: 1rem;
    }

    .aside-voir-aussi {
        border-left: none;
        border-top: 3px solid #92278f;
        margin-top: 2rem;
    }

    .voir-aussi-list li {
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .title-text {
        font-size: 1.1rem;
    }

    .formation-img {
        max-width: 100% !important;
    }

    .formation-description {
        font-size: 0.9rem;
    }
}

/* Sticky aside sur desktop */
@media (min-width: 992px) {
    .aside-voir-aussi {
        /* position: sticky; */
        top: 80px;
    }
}

/* barre de recherche */
/* Overlay plein écran */
#search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* cacher par défaut, à gérer avec JS */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#search-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Conteneur recherche */
.search-container {
    position: relative;
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

/* Bouton fermer */
#close-search {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    transition: color 0.2s ease;
}
#close-search:hover {
    color: #92278f;
}

/* Input recherche */
.search-container input[type="text"] {
    flex-grow: 1;
    font-size: 1.1rem;
    padding: 0.6rem 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}
.search-container input[type="text"]:focus {
    outline: none;
    border-color: #92278f;
    box-shadow: 0 0 5px #92278f;
}

/* Bouton rechercher */
.btn-search {
    background-color: #92278f;
    color: white;
    border: none;
    padding: 0.65rem 1.3rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-search:hover {
    background-color: #92278f;
}

/* Bouton Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #bb2cb6;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.back-to-top:hover {
    background: #d321cd;
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(230, 126, 34, 0.4);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-3px);
}

/* Animation pour le défilement doux */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}
