*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

:root {
    --color-bg: #008efb18;
    --color-vert: rgb(0, 199, 0);
    --color-bg2: #0c76ba;
    --color-text: #fff;
    --color-text2: #cecece;
    --color-text3: #001d30;
    --color-primary: #0c76ba;
    --color-header: #0c76ba;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadows: 4px 4px 15px rgba(0, 0, 0, 0.08);
    --radius: 10px;
    --transition: 0.3s ease;
    --container-width: 1200px;
    --scroll-bg: #008efb18;
    --scroll-thumb: #0c76ba;
    --bg-opacity: #0f1126dc;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--color-bg);
    color: #001d30;
    /* transition: background var(--transition), color var(--transition); */
    transition: background 0.3s, color 0.3s;
}


/* ===== Gestion de barre defilement sur Chrome, Edge, Safari ===== */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: var(--scroll-bg);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb);
    border-radius: 10px;
    border: 1px solid var(--scroll-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ===== Firefox ===== */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb) var(--scroll-bg);
}


.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
.header {
    background: var(--color-header);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header.static {
    background: var(--color-header);
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    gap: 16px;
}

.logo {
    width: auto;
    height: 50px;
    border-radius: 100%;
    padding: 1px;
}


.nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav li {
    position: relative;
}

.nav li a {
    font-weight: 600;
    transition: var(--transition);
    color: var(--color-text);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
}

.nav a:hover {
    color: var(--color-text3);
}

.nav li a.moi {
    color: greenyellow;
}

.grp-btns-nav {
    display: flex;
    gap: 16px;
}

.grp-btns-nav a {
    text-decoration: none;
    font-weight: 600;
}

.grp-btns-nav a i {
    font-size: 24px;
    color: var(--color-text);
    transition: var(--transition);
}

/* ===== SOUS-MENU ===== */
/* Bouton submenu */
.submenu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 16px;
}

.submenu-toggle.postuler{
    background: var(--color-vert);
    padding: 10px 15px;
    border-radius: 5px;
}

.submenu-toggle:hover {
    color: var(--color-text3);
}

.submenu-toggle .arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Sous-menu caché */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--color-bg2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px !important;
}

/* Items sous-menu */
.submenu li {
    padding: 0;
    margin: 0;
    width: 100%;
    display: inline-block;
}

.submenu a {
    display: block;
    width: 100%;
    padding: 10px 15px;
        margin: 0;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
}

.submenu a:hover {
    background: #f5f5f5;
    color: var(--color-text3);
}

/* ===== SOUS-MENU MOBILE (JS) ===== */
.has-submenu.open .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative; /* important pour mobile */
    top: 10px;
}

.has-submenu.open .arrow {
    transform: rotate(180deg);
}

/* Affichage au hover (desktop) */
@media (min-width: 992px) {
    .has-submenu:hover .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .has-submenu:hover .arrow {
        transform: rotate(180deg);
    }
}

/* Mobile layout */
@media (max-width: 1050px) {
    .nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .submenu {
        box-shadow: none;
        background: transparent;
        padding-left: 15px;
    }

    .submenu a {
        padding: 8px 0;
    }
}


/* Burger */
.burger {
    width: 30px;
    height: 25px;
    display: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.burger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 4px;
    transition: 0.4s;
}

.burger span:nth-child(1) {
    top: 0;
}

.burger span:nth-child(2) {
    top: 11px;
}

.burger span:nth-child(3) {
    top: 22px;
}

.burger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Mobile nav */
@media(max-width:1050px) {
    .header-content {
        padding: 16px 0;
    }

    .nav ul {
        display: flex;
        gap: 0px;
        list-style: none;
        align-items: start;
        justify-content: start;
        flex-direction: column;
    }

    .nav {
        display: none;
        position: absolute;
        top: 80px;
        right: 0;
        background: var(--bg-opacity);
        width: 100%;
        min-width: 300px;
        height: 100vh;
        padding: 16px;
        border-radius: 0 0 0 0;
        /* Animation */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: 
            opacity 0.3s ease,
            transform 0.3s ease,
            visibility 0.3s ease;
    }

    /* NAV OUVERTE */
    .nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav li{
        width: 100%;
    }

    .nav li a {
        border-bottom: 1px solid var(--color-text);
        padding: 10px 0;
        display: inline-block;
        width: 100%;
    }

    .submenu-toggle {
        border-bottom: 1px solid var(--color-text);
        padding: 10px 0;
        display: inline-block;
        width: 100%;
        text-align: left;
        margin: 5px 0;
    }

    .submenu-toggle:hover {
        color: var(--color-text);
    }

    .nav a:hover {
        color: var(--color-text);
    }

    .submenu li a {
        border-bottom: 1px solid var(--color-text);
        padding: 10px 20px;
        display: inline-block;
        width: 100%;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 12px;
    }

    .burger {
        display: block;
    }
}




/* CODE HERO */
/* CODE HERO */
.hero {
    width: 100%;
    background: linear-gradient(135deg, #001d30, var(--color-bg2),#001d30);
    padding: 80px 5%;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
}

/* SLIDE */
.hero-slide {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    position: absolute;
    inset: 0;

       /* Ajout */
    pointer-events: none;  /* désactive clic sur les slides non-actifs */
    z-index: 1;    
}

.hero-slide.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;

        /* Ajout */
    pointer-events: auto;  /* active le clic uniquement sur le slide actif */
    z-index: 2;            /* slide actif au-dessus des autres */
}

/* CONTENT */
.hero-content {
    color: #fff;
    max-width: 600px;
    position: relative;
    z-index: 10;
}

.hero-date {
    font-size: 14px;
    opacity: 0.8;
    display: inline-block;
    margin-bottom: 10px;
}

.hero-date i {
    color: var(--color-text);
}

.hero-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-description {
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 24px;
}

.hero-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--color-vert);
    color: #000;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s ease;
        position: relative;
    z-index: 20; /* bouton toujours au-dessus */
}

.hero-btn i{
    color: #000;
}

.hero-btn:hover {
    opacity: 0.8;
}

/* IMAGE */
.hero-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    padding: 2px;
    background-color: white;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-slide {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image img {
        display: none;
    }
}




/* Code aprppos */
.about-section {
    padding: 100px 0;
    background: white;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* IMAGE */
.about-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* CONTENT */
.about-content {
    color: var(--color-text, black);
}

.about-subtitle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text3, black);
    display: inline-block;
    margin-bottom: 12px;
}

.about-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-text3, black);
}

.about-description {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 30px;
    color: var(--color-text3);
}

/* BOUTON */
.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 24px;
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-text3, black);
    font-weight: 600;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.about-btn i {
    font-size: 20px;
}

.about-btn:hover {
    background: var(--color-text3, black);
    color: var(--color-primary);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .about-image img {
        height: 300px;
    }

    .about-btn {
        justify-content: center;
    }
}



/* BLOC Objectif */
.objectifs-section {
    padding: 100px 0;
    background: transparent;
}

/* BLOC HAUT */
.objectifs-header {
    display: flex;
    gap: 40px;
    margin-bottom: 70px;
    align-items: flex-start;
}

.objectifs-title h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
}

.objectifs-description p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.85;
}

/* BLOC BAS */
.objectifs-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* CARTE */
.objectif-card {
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    text-align: center;
    transition: 0.3s ease;
    border: 1px solid var(--color-vert);
}

.objectif-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

/* ICONE */
.objectif-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--color-vert);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.objectif-icon i {
    font-size: 32px;
    color: var(--color-text, white);
}

/* TEXTE */
.objectif-card h3 {
    font-size: 20px;
    margin-bottom: 14px;
    font-weight: 600;
}

.objectif-card p {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.85;
}

/* LISTE DATES */
.dates-list {
    list-style: none;
    padding: 0;
    margin-top: 16px;
    text-align: left;
}

.dates-list li {
    font-size: 15px;
    margin-bottom: 10px;
    padding-left: 10px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .objectifs-header {
        flex-direction: column;
        text-align: center;
    }

    .objectifs-cards {
        grid-template-columns: 1fr;
    }

    .dates-list {
        text-align: center;
    }
}




.apply-section {
    padding: 100px 0;
    background: white;
}

/* HEADER */
.apply-header {
    text-align: center;
    margin-bottom: 60px;
}

.apply-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--color-text3);
}

.apply-header p {
    color: var(--color-text3);
    max-width: 600px;
    margin: 12px auto 0;
    line-height: 1.7;
}

/* STEPS */
.apply-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* CARD */
.apply-card {
    background: var(--color-bg);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--color-primary);
}

.apply-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: var(--transition);
}

.apply-card:hover {
    transform: translateY(-10px);
}

.apply-card:hover::before {
    border-color: var(--color-primary);
}

/* CARD HEADER */
.apply-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.step-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
    background-color: red;
    padding: 10px;
    border-radius: 8px;
}

.apply-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text3);
}

/* TEXT */
.apply-card p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text3);
}

.apply-action {
    margin-top: 60px;
    text-align: center;
}

.apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 40px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.apply-btn i {
    font-size: 20px;
    color: white;
}

.apply-btn:hover {
    background: var(--color-bg2);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}


/* RESPONSIVE */
@media (max-width: 992px) {
    .apply-steps {
        grid-template-columns: 1fr;
    }

    .apply-card {
        text-align: center;
    }

    .apply-card-header {
        justify-content: center;
    }
}






.stats-section {
    padding: 100px 5%;
        background: linear-gradient(135deg, #001d30, var(--color-bg2),#001d30);
    color: var(--color-text);
}

/* HEADER */
.stats-header {
    text-align: center;
    margin-bottom: 60px;
}

.stats-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
}

/* CARDS */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* CARD */
.stat-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* ICON */
.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--color-header);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 32px;
    color: var(--color-text);
}

/* NUMERO */
.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: red;
}

/* TITRE */
.stat-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-header);
}

/* DESCRIPTION */
.stat-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text3);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .stats-cards {
        grid-template-columns: 1fr;
        text-align: center;
    }
}



/* Bloc actualite */
.news-section {
    padding: 100px 0;
    background: white;
    color: var(--color-text3);
}

/* HEADER */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.news-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
}

.news-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.news-btn:hover {
    background: var(--color-bg2);
}

.news-btn i{
    color: #fff;
    font-size: 16px;
}

/* CAROUSEL */
.news-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 10px 50px;
}

.news-carousel {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}


.news-item {
    flex: 0 0 100%;
    margin-right: 30px; /* ESPACEMENT MAÎTRISÉ */
    background: rgba(12, 118, 186, 0.05);
    box-shadow: var(--shadow);
    padding: 20px;
    border: 1px solid #0c77ba59;
    box-sizing: border-box;
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.news-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.news-meta {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 12px;
}

.news-item p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: var(--color-text3);
}

.read-more {
    font-weight: 600;
    text-decoration: none;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more:hover {
    color: var(--color-bg2);
}

/* BOUTONS CAROUSEL */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 210;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--color-bg2);
}

.carousel-btn i{
    color: #fff;
}

.carousel-btn.prev {
    left: 10px; /* à l’intérieur du wrapper */
}

.carousel-btn.next {
    right: 10px;
}

/* RESPONSIVE */
/* TABLET */
@media (min-width: 601px) and (max-width: 992px) {
    .news-item {
        flex: 0 0 calc(50% - 15px);
    }
}

/* DESKTOP */
@media (min-width: 993px) {
    .news-item {
        flex: 0 0 calc(33.333% - 20px);
    }
}

/* RESPONSIVE HEADER */
@media(max-width: 768px) {
    .news-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
        .carousel-btn.prev { left: 5px; }
    .carousel-btn.next { right: 5px; }
}






/* SECTION TEMOIGNAGES */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #000000, #2f2f2f, #000000);
    color: #fff;
}

/* HEADER */
.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 15px;
}

.testimonials-header p {
    color: #cecece;
}

/* CAROUSEL */
.testimonials-carousel-wrapper {
    overflow: hidden;
}

.testimonials-carousel {
    display: flex;
    transition: transform 0.6s ease;
}

/* ITEM */
.testimonial-item {
    flex: 0 0 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.05);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

.testimonial-item:first-child{
    border-right: 1px solid white;
}

.testimonial-item:last-child{
    border-left: 1px solid white;
}
/* spacing visuel interne */
.testimonial-item > * {
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-icon {
    font-size: 48px;
}

.user-info h4 {
    margin: 0;
    font-size: 16px;
}

.user-info span {
    font-size: 14px;
    opacity: .7;
}

/* TABLET */
@media (min-width: 601px) and (max-width: 992px) {
    .testimonial-item {
        flex: 0 0 50%;
    }
}

/* DESKTOP */
@media (min-width: 993px) {
    .testimonial-item {
        flex: 0 0 33.3333%;
    }
}




.members-section {
    padding: 100px 0;
    background: #fff;
    color: #001d30;
}

.members-header {
    text-align: center;
    margin-bottom: 60px;
}

.members-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 15px;
}

.members-header p {
    font-size: 16px;
    color: var(--color-text3);
}

/* CAROUSEL */
.members-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.members-carousel {
    display: flex;
    padding: 0 15px;
    transition: transform 0.8s ease-in-out;
    will-change: transform;
}

.member-item {
    flex: 0 0 100%;
    margin-right: 30px; /* spacing contrôlé */
    background: linear-gradient(
        135deg,
        var(--color-primary),
        var(--color-vert)
    );
    padding: 40px 20px;
    border-radius: 0 50px 0 50px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--color-primary);
    box-sizing: border-box;
}

.member-item img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    padding: 5px;
    border: 3px solid white;
}

.member-item h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.member-item span {
    font-size: 14px;
    color: var(--color-text);
}

/* TABLET */
@media (min-width: 601px) and (max-width: 992px) {
    .member-item {
        flex: 0 0 calc(50% - 15px);
    }
}

/* DESKTOP */
@media (min-width: 993px) {
    .member-item {
        flex: 0 0 calc(33.333% - 20px);
    }
}



.countries-section {
    padding: 100px 0;
    color: #001d30;
}

.countries-header {
    text-align: center;
    margin-bottom: 60px;
}

.countries-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 15px;
}

.countries-header p {
    font-size: 16px;
    color: var(--color-text3);
    max-width: 700px;
    margin: 0 auto;
}

/* GRILLE PAYS */
.countries-carousel {
    position: relative;
    overflow: hidden;
}

.countries-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

/* ITEM */
.country-item {
    min-width: calc(100% / 4 - 20px);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 20px;
    background: #fafafa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.country-item:hover {
    box-shadow: var(--shadow);
}

/* Alternance bordures */
.country-item:nth-child(odd) {
    border-top: 6px solid red;
    border-bottom: 6px solid red;
}

.country-item:nth-child(even) {
    border-top: 6px solid var(--color-vert);
    border-bottom: 6px solid var(--color-vert);
}

/* IMAGE */
.country-item img {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
    border-radius: 8px;
}

/* TEXTES */
.country-item h4 {
    font-size: 24px;
    font-weight: 700;
}

.representative-name {
    font-weight: 700;
    font-size: 18px;
    color: #000;
}

/* BOUTONS */
.carousel-btn-c {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.carousel-btn-c:hover {
    background: #000;
}

.carousel-btn-c i{
    color: var(--color-text);
}

.carousel-btn-c.prev {
    left: 1px;
}

.carousel-btn-c.next {
    right: 1px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .country-item {
        min-width: calc(100% / 2 - 15px);
    }
}

@media (max-width: 576px) {
    .country-item {
        min-width: 100%;
    }

    .carousel-btn {
        display: none;
    }
}





.site-footer {
    padding: 60px 20px 20px;
    font-family: 'Poppins', sans-serif;
    background: var(--color-header);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo{
    display: flex;
    justify-content: start;
    flex-direction: column;
    align-items: center;
}

.footer-logo img {
    max-width: 100px;
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-text);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--color-text);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links ul li a i{
    color: var(--color-text);
}

.footer-links ul li a:hover {
    color: var(--color-text3);
}

.footer-links ul li a:hover i {
    color: var(--color-text3);
}

.footer-links-postuler{
    background-color: var(--color-vert);
    padding: 10px 20px 10px 0;
    border-radius: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--color-text);
}

.footer-contact i {
    margin-right: 8px;
    font-size: 16px;
    color: var(--color-text);
}

.footer-social{
    display: flex;
    flex-direction: column;
}

.footer-social a {
    margin-right: 15px;
    transition: 0.3s;
    text-decoration: none;
    color: var(--color-text);
}

.footer-social a i {
    color: var(--color-text);
    font-size: 18px;
}

.footer-social a:hover {
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.274);
    text-align: center;
    padding: 15px 0;
    font-size: 13px;
    margin-top: 40px;
    color: var(--color-text);
}

.footer-bottom a {
    color: #00ff40;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}



/* Btn retour */
.scroll-btn {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 100;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-text3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-10rem);
    transition: all 0.5s ease-in-out;
}

.scroll-btn.active {
    opacity: 1;
    transition: all 0.5s ease-in-out;
    transform: translateY(0);
}

.scroll-btn i {
    font-size: 18px;
    color: white;
}





/* Overlay fullscreen */
/* ============================
   OVERLAY SEARCH FULLSCREEN
============================ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 9999;
}

/* Actif */
.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================
   WRAPPER (BOX + RESULTATS)
============================ */
.search-wrapper {
    width: 600px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
}

/* ============================
   SEARCH BOX
============================ */
.search-box {
    border: 1px solid var(--color-primary);
    background: rgb(var(--color-bg2) / var(--color-bg));
    padding: 14px 18px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

/* Icône */
.search-box i {
    font-size: 20px;
    color: var(--color-text3);
}

/* Input */
.search-box input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--color-text3);
}

.search-box input::placeholder{
    color:  var(--color-text3);
}
/* ============================
   SEARCH RESULTS
============================ */
.search-results {
    background: rgb(var(--color-bg2) / var(--color-bg));
    border: 1px solid var(--color-primary);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

/* Masquer si vide */
.search-results:empty {
    display: none;
}

/* Liens */
.search-results a {
    display: block;
    padding: 12px 18px;
    color: var(--color-text3);
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.search-results a:last-child {
    border-bottom: none;
}

.search-results a:hover {
    background: rgba(255, 255, 255, 0.733);
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 480px) {
    .search-wrapper {
        width: 100%;
        padding: 0 15px;
    }
}







/* LOADER GLOBAL */
#page-loader {
    position: fixed;
    inset: 0;
    background: #0f1126;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* CONTENU */
.loader-content {
    text-align: center;
    color: #fff;
}

/* TEXTE */
.loader-content h1 {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.loader-content .welcome {
    color: #fff;
    animation: fadeUp 1.2s ease forwards;
}

.loader-content .slash {
    color: var(--color-vert);
    margin: 0 6px;
    animation: blink 1s infinite;
}

.loader-content .brand {
    color: var(--color-primary);
    animation: fadeUp 1.2s ease forwards;
}

/* BARRE LOADING */
.loader-bar {
    width: 220px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar span {
    display: block;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--color-primary),
        var(--color-vert)
    );
    animation: loading 1.4s infinite ease-in-out;
}

/* ANIMATIONS */
@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}





.title-page-header {
    padding: 10px 0;
    background-color: var(--color-bg);
}

.title-page-header .title-page {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
}

.title-page-header .title-page h1 {
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    letter-spacing: 1px;
    color: var(--color-primary);
}

.title-page-header .title-page div a,
i {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all .3s ease;
}

.title-page-header .title-page div a:hover {
    opacity: 0.8;
}





.story-section {
    padding: 100px 0;
    color: #001d30;
}

.story-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 70px;
}

.story-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 15px;
}

.story-header p {
    font-size: 16px;
    color: var(--color-text3);
    line-height: 1.7;
}

/* GRID */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

/* CARD */
.story-card {
    background: #fafafa;
    padding: 35px 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-6px);
}

/* ICON */
.story-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--color-primary),
        var(--color-vert)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.story-icon i {
    font-size: 26px;
    color: #fff;
}

/* TITRE */
.story-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* TEXTE */
.story-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text3);
    margin-bottom: 12px;
}

/* LISTE PARTENAIRES */
.story-card ul {
    padding-left: 18px;
    margin-bottom: 15px;
}

.story-card ul li {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--color-text3);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .story-section {
        padding: 70px 0;
    }
}




.consortium-section {
    padding: 50px 0;
    background: #ffffff;
}

.consortium-title {
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: #001d30;
}

/* LOGOS */
.consortium-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    align-items: center;
    gap: 30px;
}

.consortium-logos img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    margin: 0 auto;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.consortium-logos img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

/* MOBILE */
@media (max-width: 576px) {
    .consortium-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .consortium-logos img {
        max-width: 100px;
        max-height: 50px;
    }
}




.contact-section {
    padding: 100px 0;
    background: white;
    color: var(--color-text3);
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
}

/* GRID */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ITEM */
.contact-item {
    text-align: center;
    padding: 40px 25px;
    border-radius: var(--radius);
    border: 2px solid var(--color-vert);
    background: rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

/* ICONE */
.contact-item i {
    font-size: 56px;
    color: var(--color-vert);
    margin-bottom: 20px;
}

/* TITRE */
.contact-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #001d30;
}

/* DETAILS */
.contact-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text3);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-item {
        padding: 30px 20px;
    }

    .contact-item i {
        font-size: 48px;
    }
}





/* Section Actualités02 */
.actualites02-section {
    padding: 80px 0;
    color: #001d30;
}

.actualites02-search {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    gap: 10px;
}

.actualites02-input {
    padding: 12px 15px;
    width: 50%;
    border: 1px solid var(--color-primary);
    border-radius: 6px;
    outline: none;
    font-size: 16px;
}

.actualites02-btn {
    padding: 12px 18px;
    background: var(--color-primary);
    border: none;
    color: #fff;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.actualites02-btn i{
    color: var(--color-text);
}

.actualites02-btn:hover {
    background: #064d26;
}

/* GRID ACTUALITÉS */
.actualites02-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.actualites02-item {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-end;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    text-decoration: none;
}

.actualites02-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.actualites02-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.349);
    transition: background 0.3s ease;
}

.actualites02-item:hover .actualites02-overlay {
    background: rgba(0,0,0,0.5);
}

.actualites02-info {
    position: relative;
    padding: 20px;
    color: #fff;
}

.actualites02-date {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-bottom: 8px;
    gap: 5px;
    opacity: 0.9;
}

.actualites02-date i{
    color: white;
}

.actualites02-title {
    font-size: 18px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 992px) {
    .actualites02-grid {
        grid-template-columns: 1fr;
    }
    .actualites02-input {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .actualites02-item {
        height: auto;
        min-height: 200px;
    }
}




/* Section Detail Actualité */
.detail-actualite-section {
    padding: 80px 0 40px;
    color: #001d30;
}

.detail-actualite-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

/* Bloc principal */
.detail-actualite-main {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-actualite-image img {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    object-fit: cover;
}

.detail-actualite-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.detail-actualite-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--color-text3, #666);
}


.detail-actualite-description {
    font-size: 16px;
    line-height: 1.8;
    color: #333;

    max-width: 100%;
    overflow-x: auto;
    word-break: break-word;
    overflow-wrap: anywhere;
}


/* Titres */
.detail-actualite-description h1,
.detail-actualite-description h2,
.detail-actualite-description h3,
.detail-actualite-description h4,
.detail-actualite-description h5,
.detail-actualite-description h6 {
    margin: 20px 0 10px;
    font-weight: 600;
    line-height: 1.3;
}

/* Paragraphes */
.detail-actualite-description p {
    margin-bottom: 15px;
}

/* Liens */
.detail-actualite-description a {
    color: #0066cc;
    text-decoration: underline;
}
.detail-actualite-description a:hover {
    color: #004999;
}

/* Images */
.detail-actualite-description img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 6px;
}

/* Listes */
.detail-actualite-description ul,
.detail-actualite-description ol {
    margin: 15px 0 15px 25px;
}

.detail-actualite-description li {
    margin-bottom: 8px;
}

/* Citations */
.detail-actualite-description blockquote {
    padding: 15px 20px;
    margin: 20px 0;
    background: #f9f9f9;
    border-left: 4px solid #ccc;
    font-style: italic;
}

/* Tableaux */
.detail-actualite-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    table-layout: fixed;
    word-wrap: break-word;
}

.detail-actualite-description table th,
.detail-actualite-description table td {
    border: 1px solid #ddd;
    padding: 10px;
}

/* Code (si l’éditeur en génère) */
.detail-actualite-description pre {
    background: #1e1e1e;
    color: #fff;
    padding: 15px;
    overflow-x: auto;
    border-radius: 6px;
}

.detail-actualite-description code {
    background: #eee;
    padding: 2px 5px;
    border-radius: 4px;
}


/* Bloc Actualités récentes */
.detail-actualite-recent {
    flex: 1;
}

.detail-actualite-recent h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.recent-actualites-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-actualite-item {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text3);
}

.recent-actualite-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.recent-actualite-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.recent-actualite-info {
    display: flex;
    flex-direction: column;
}

.recent-actualite-date {
    font-size: 12px;
    color: var(--color-text3, #666);
    margin-bottom: 5px;
}

.recent-actualite-title {
    font-size: 14px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .detail-actualite-container {
        flex-direction: column;
    }
    .detail-actualite-recent {
        margin-top: 40px;
    }

    .detail-actualite-image img {
        height: auto    ;
    }
}





/* Section Publications */
.publications-section {
    padding: 80px 0;
    color: #001d30;
}

.publications-search {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.publications-search input {
    flex: 1;
    max-width: 400px;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--color-primary);
    font-size: 16px;
}

.publications-search button {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease;
}

.publications-search button i{
    color: white;
}

.publications-search button:hover {
    background: #1e7e34;
}

/* Grille Publications */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.publication-item {
    background: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text3);
    max-width: 300px;
}

.publication-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background-color: var(--color-bg);
}

.publication-icon i {
    font-size: 50px;
    color: red;
    margin-bottom: 15px;
}

.publication-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.publication-date {
    font-size: 14px;
    color: var(--color-text3, #666);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .publications-search {
        flex-direction: column;
        gap: 15px;
    }
}





/* Section Candidature */
.candidature-section {
    padding: 80px 0;
    color: #001d30;
}

.candidature-header {
    text-align: center;
    margin-bottom: 50px;
}

.candidature-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 10px;
}

.candidature-header p {
    font-size: 16px;
    color: var(--color-text3, #555);
    margin: 0 auto;
    text-align: left;
}

/* Accordion */
.candidature-accordion {
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid var(--color-vert, #28a745);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background: #fff;
}

.accordion-header {
    width: 100%;
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
    background: #f0fdf4;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #e2f5e9;
}

.accordion-icon {
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* padding horizontal seulement pour éviter de bloquer l'animation */
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-body p {
    margin: 15px 0;
    font-size: 16px;
    color: var(--color-text3);
}

.accordion-body ul {
    margin: 15px 15px 20px;
}

/* When open */
.accordion-item.active .accordion-body {
    padding: 15px 20px;
    max-height: 500px; /* adjust if content is bigger */
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}




/* DETAIL PROGRAMMES */
.detail-programmes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 50px 20px;
}

.bloc-programmes {
    background: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.bloc-programmes:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.bloc-programmes i {
    font-size: 40px;
    color: var(--color-vert, #28a745);
    margin-bottom: 15px;
}

.bloc-programmes h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #001d30;
}

.bloc-programmes h5 {
    font-size: 14px;
    font-weight: 400;
    color: #555;
    margin-bottom: 15px;
}

.bloc-programmes ul {
    list-style: none;
    padding-left: 0;
}

.bloc-programmes ul h6 {
    font-size: 15px;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #001d30;
}

.bloc-programmes ul li {
    font-size: 14px;
    color: #444;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.bloc-programmes ul li::before {
    content: "\f111"; /* petit cercle line-awesome */
    font-family: "Line Awesome Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8px;
    color: var(--color-vert, #28a745);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .detail-programmes {
        grid-template-columns: 1fr;
        padding: 30px 15px;
    }
    .bloc-programmes h3 {
        font-size: 20px;
    }
    .bloc-programmes h5 {
        font-size: 13px;
    }
}





/* ======= Section Galerie ======= */
.gallery-section {
    padding: 0 0 80px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 10px;
    color: #001d30;
}

.gallery-header p {
    font-size: 16px;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* Grille responsive */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Hover effect */
.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover::after {
    opacity: 0.2;
}

/* Option overlay sombre si besoin */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0;
    transition: opacity 0.3s ease;
}




.newsletter-section {
    margin-top: 20px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.newsletter-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(6px);
}

@media screen and (max-width: 400px) {
    .newsletter-container {
        max-width: 100%;
    }
}

.newsletter-container h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text);
}

/* INPUT + BUTTON */
.newsletter-input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    overflow: hidden;
    background: white;
}

.newsletter-input-group input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--color-text3);
}

.newsletter-input-group button {
    background: var(--color-vert);
    border: none;
    padding: 14px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-input-group button:hover {
    opacity: 0.7;
}

.newsletter-input-group button i{
    color: #fff;
    font-size: 16px;
}

/* GDPR CHECK */
.gdpr-check {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gdpr-check input {
    accent-color: var(--color-primary);
}


/* Message de succès */
.newsletter-success {      /* vert clair */
    color: var(--color-vert);     
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
    background-color: white;
    border-radius: var(--radius);
}

/* Messages d'erreur */
.error {
    display: block;
    color: #dc3545;                  /* rouge vif */
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
        background-color: rgba(255, 255, 255, 0.644);
    border-radius: var(--radius);
}

/* Animation d'apparition */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}




/* Pagination *//* Wrapper */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
}

.pagination .page-item {
    margin: 0 3px;
}

.pagination .page-link {
    display: block;
    padding: 8px 12px;
    border-radius: 5px;
    background-color: var(--color-primary);
    color: var(--color-text);
    cursor: pointer;
    min-width: 40px;
    text-align: center;
    border: none;
    transition: all 0.2s ease;
}

.pagination .page-item.active .page-link {
    background-color: var(--color-primary);
    color: #fff;
    font-weight: bold;
    cursor: default;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .page-link:hover:not(:disabled):not(.active) {
    background-color: var(--color-primary);
    color: #fff;
}

/* Responsive */
@media screen and (max-width: 576px) {
    .pagination .page-link {
        padding: 6px 8px;
        min-width: 30px;
        font-size: 14px;
    }
}
