/* ===== VARIABLES ===== */
:root {
    --primary-color: #196abd;
    --secondary-color: rgb(27, 52, 85);
    --overlay-color: rgba(0, 0, 0, 0.6);
    --nav-height: 76px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


    :root {
        --iecp-green: #2f7d5a;
        --iecp-green-dark: #225c42;
        --iecp-blue: #3f789d;
        --iecp-orange: #c7833e;
        --iecp-dark: #17231e;
        --iecp-light: #f5f7f5;
        --iecp-border: #e5eae6;
    }


    /* =========================================================
       GLOBAL
    ========================================================= */

    .py-6 {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .section-kicker {
        display: inline-block;
        margin-bottom: 15px;
        color: var(--iecp-green);
        font-size: .75rem;
        font-weight: 700;
        letter-spacing: .18em;
        text-transform: uppercase;
    }

    .section-heading {
        max-width: 760px;
    }

    .section-heading h2 {
        margin-bottom: 18px;
        color: var(--iecp-dark);
        font-size: clamp(2rem, 4vw, 3.25rem);
        line-height: 1.08;
        font-weight: 700;
        letter-spacing: -.03em;
    }

    .section-heading p {
        margin: 0;
        color: #69746e;
        font-size: 1.05rem;
        line-height: 1.7;
    }


    /* =========================================================
       HERO
    ========================================================= */

    .home-hero {
        min-height: calc(100vh - 110px);
    }

    .hero-slide {
        min-height: calc(100vh - 110px);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .hero-overlay {
        position: absolute;
        inset: 0;
        background:
            linear-gradient(
                90deg,
                rgba(10, 25, 19, .78) 0%,
                rgba(10, 25, 19, .55) 45%,
                rgba(10, 25, 19, .15) 100%
            );
    }

    .hero-content {
        max-width: 760px;
        padding: 70px 0;
    }

    .hero-kicker {
        display: inline-block;
        margin-bottom: 25px;
        padding-left: 15px;
        border-left: 3px solid rgba(255,255,255,.8);
        font-size: .75rem;
        font-weight: 700;
        letter-spacing: .2em;
    }

    .hero-title {
        margin: 0 0 35px 0;
        font-size: clamp(2.4rem, 5vw, 4.8rem);
        line-height: 1.04;
        font-weight: 700;
        letter-spacing: -.035em;
    }

    .hero-btn {
        border: 0;
        color: var(--iecp-dark);
        transition: all .25s ease;
    }

    .hero-btn:hover {
        transform: translateY(-3px);
    }

    .hero-scroll {
        position: absolute;
        z-index: 10;
        left: 50%;
        bottom: 25px;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 8px;
        color: rgba(255,255,255,.85);
        font-size: .75rem;
        letter-spacing: .12em;
        text-transform: uppercase;
    }


    /* =========================================================
       MISSIONS
    ========================================================= */

    .missions-section {
        background: #fff;
    }

    .mission-card {
        position: relative;
        padding: 38px;
        background: #fff;
        border: 1px solid var(--iecp-border);
        transition:
            transform .25s ease,
            box-shadow .25s ease;
    }

    .mission-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 45px rgba(25, 45, 35, .08);
    }

    .mission-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 58px;
        height: 58px;
        margin-bottom: 30px;
        border-radius: 50%;
        font-size: 1.25rem;
    }

    .mission-icon-green {
        background: #e5f1ea;
        color: var(--iecp-green);
    }

    .mission-icon-blue {
        background: #e5eff5;
        color: var(--iecp-blue);
    }

    .mission-icon-orange {
        background: #f7ede2;
        color: var(--iecp-orange);
    }

    .mission-card h3 {
        margin-bottom: 14px;
        color: var(--iecp-dark);
        font-size: 1.5rem;
    }

    .mission-card p {
        margin: 0;
        color: #6b756f;
        line-height: 1.7;
    }


    /* =========================================================
       RESEARCH / THÉMATIQUES
    ========================================================= */

    .research-section {
        background: var(--iecp-light);
    }

    /*
     * Les 4 thématiques ont exactement la même taille :
     * 2 colonnes × 2 lignes.
     */
    .research-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 320px);
        gap: 18px;
    }

    .research-tile {
        position: relative;
        display: block;
        overflow: hidden;
        min-height: 0;
        color: #fff;
    }

    .research-tile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s ease;
    }

    .research-tile:hover img {
        transform: scale(1.06);
    }

    .research-overlay {
        position: absolute;
        inset: 0;
        background:
            linear-gradient(
                180deg,
                transparent 30%,
                rgba(8, 20, 14, .8) 100%
            );
    }

    .research-content {
        position: absolute;
        right: 30px;
        bottom: 28px;
        left: 30px;
    }

.research-content h3 {
    margin: 0;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    text-transform: capitalize;
}


    /* =========================================================
       VOCE
    ========================================================= */

    .voce-section {
        padding: 100px 0;
        background: #fff;
    }

    .voce-block {
        overflow: hidden;
        background: #eaf1ed;
    }

    .voce-intro {
        height: 100%;
        padding: 55px;
    }

    .voce-intro h2 {
        margin-bottom: 25px;
        color: var(--iecp-dark);
        font-size: clamp(2rem, 4vw, 3.5rem);
        line-height: 1.05;
        letter-spacing: -.03em;
    }

    .voce-intro p {
        max-width: 520px;
        color: #5e6963;
        line-height: 1.75;
    }

    .voce-image {
        position: relative;
        height: 100%;
        min-height: 420px;
        overflow: hidden;
    }

    .voce-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .voce-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px;
        background: #fff;
    }

    .voce-logo img {
        width: 75%;
        height: auto;
        object-fit: contain;
    }

    .voce-caption {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        padding: 25px;
        color: #fff;
        background:
            linear-gradient(
                transparent,
                rgba(0,0,0,.75)
            );
    }

    .voce-caption span {
        display: block;
        margin-bottom: 5px;
        font-size: .7rem;
        text-transform: uppercase;
        letter-spacing: .15em;
    }

    .voce-caption strong {
        display: block;
        font-size: 1.1rem;
    }


    /* =========================================================
       ABOUT
    ========================================================= */

    .about-section {
        background: var(--iecp-light);
    }

    .about-image {
        position: relative;
    }

    .about-image img {
        width: 100%;
        min-height: 500px;
        object-fit: cover;
    }

    .about-image-label {
        position: absolute;
        right: 25px;
        bottom: 25px;
        padding: 18px 22px;
        color: #fff;
        background: var(--iecp-green-dark);
    }

    .about-image-label span {
        display: block;
        margin-bottom: 4px;
        font-size: .7rem;
        letter-spacing: .12em;
        text-transform: uppercase;
        opacity: .8;
    }

    .about-image-label strong {
        font-size: 1rem;
    }

    .about-content h2 {
        max-width: 650px;
        margin-bottom: 25px;
        color: var(--iecp-dark);
        font-size: clamp(2rem, 4vw, 3.3rem);
        line-height: 1.08;
        letter-spacing: -.03em;
    }

    .about-content p {
        max-width: 680px;
        color: #68736d;
        font-size: 1.05rem;
        line-height: 1.8;
    }


    /* =========================================================
       SOCIAL / ACTUALITÉS
    ========================================================= */

    .social-section {
        background: #fff;
    }


    /* =========================================================
       RESPONSIVE
    ========================================================= */

    @media (max-width: 991.98px) {

        .py-6 {
            padding-top: 75px;
            padding-bottom: 75px;
        }

        .hero-slide {
            min-height: 75vh;
        }

        .home-hero {
            min-height: 75vh;
        }

        .hero-title {
            font-size: clamp(2.3rem, 7vw, 4rem);
        }

        .research-grid {
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: repeat(2, 280px);
        }

        .voce-intro {
            padding: 40px;
        }

    }


    @media (max-width: 767.98px) {

        .py-6 {
            padding-top: 60px;
            padding-bottom: 60px;
        }

        .hero-slide {
            min-height: 72vh;
        }

        .home-hero {
            min-height: 72vh;
        }

        .hero-content {
            padding: 40px 15px;
        }

        .hero-title {
            margin-bottom: 30px;
            font-size: 2.5rem;
        }

        .hero-scroll {
            display: none;
        }

        /*
         * Sur mobile, on passe naturellement à une seule colonne.
         * Les 4 cartes restent donc toutes de même hauteur.
         */
        .research-grid {
            grid-template-columns: 1fr;
            grid-template-rows: repeat(4, 240px);
        }

        .voce-image {
            min-height: 300px;
        }

        .about-image img {
            min-height: 350px;
        }

        .about-image-label {
            right: 15px;
            bottom: 15px;
        }

    }

/* ===== TYPOGRAPHIE ===== */
body {
    font-family: 'IBM Plex Sans', sans-serif;
    color: #2d3748;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 0;
}

h2, h3, h4, h6 {
    font-weight: 500;
    line-height: 1.3;
    color: #1a202c;
}

h1 {
    font-weight: 600;
    color: #ffffff;
}

h2 {
    font-weight: 500;
    letter-spacing: -0.5px;
}

h3, h4 {
    font-weight: 500;
}

h5 {
    font-weight: 500;
    color: #fdfdfd;
}
h5, h6 {
    font-weight: 400;
}

.display-4, .display-5 {
    font-weight: 500;
    letter-spacing: -1px;
}

.fw-bold {
    font-weight: 500 !important;
}

.lead {
    font-size: 1.15rem;
    font-weight: 300;
    color: #51689a;
}

.lead-title {
    font-size: 1.15rem;
    font-weight: 300;
    color: #ffffff;
}

/* ===== HEADER & NAVIGATION ===== */
.header-modern {
    position: relative;
    z-index: 2000;
}

.navbar {
    transition: var(--transition);
    backdrop-filter: blur(20px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-size: 1.1rem;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.brand-text {
    color: var(--primary-color);
    transition: var(--transition);
}

.navbar-brand:hover .brand-text {
    color: var(--secondary-color);
}

/* Navigation Links */
.navbar-nav .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2d3748;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

/* Dropdown */
.dropdown-menu-modern {
    border-radius: 12px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    animation: fadeInDown 0.3s ease;
}

.dropdown-menu-modern .dropdown-item {
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
    margin-bottom: 2px;
}

.dropdown-menu-modern .dropdown-item:hover {
    background: linear-gradient(135deg, #f0f7f2 0%, #e8f5e9 100%);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-header {
    font-size: 0.7rem;
    letter-spacing: 1px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
}

.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Dropdown Mega Menu */
.dropdown-menu-mega {
    min-width: 280px;
    max-height: 500px;
    overflow-y: auto;
}

.dropdown-menu-mega::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu-mega::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dropdown-menu-mega::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Dropdown au survol (desktop) */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeInDown 0.3s ease;
    }

    .navbar-nav .dropdown-menu {
        margin-top: 0;
        border-top: 3px solid var(--primary-color);
    }
}

/* ===== BOUTONS ===== */
.btn {
    font-weight: 500;
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 4px 15px rgba(44, 122, 63, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 122, 63, 0.4);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.9);
    color: white;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.navbar-nav .btn-primary {
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
}

.navbar-nav .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 122, 63, 0.3);
}

/* ===== SLIDER / HERO ===== */
.home-slider {
    position: relative;
}

.home-slider .slider-item {
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    min-height: 70vh;
}

.home-slider .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 99, 99, 0.7) 0%, rgba(124, 120, 120, 0.4) 100%);
}

.home-slider .slider-item .container {
    position: relative;
    z-index: 1;
}

.home-slider h1 {
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease;
    color: #fafbfc;
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    background: white;
}

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

.card-body {
    padding: 1.5rem;
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12) !important;
}

.card-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

/* ===== SECTIONS ===== */
section {
    position: relative;
    overflow: hidden;
}

.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.section-pattern {
    background-image:
        linear-gradient(30deg, rgba(44, 122, 63, 0.02) 12%, transparent 12.5%, transparent 87%, rgba(44, 122, 63, 0.02) 87.5%, rgba(44, 122, 63, 0.02)),
        linear-gradient(150deg, rgba(44, 122, 63, 0.02) 12%, transparent 12.5%, transparent 87%, rgba(44, 122, 63, 0.02) 87.5%, rgba(44, 122, 63, 0.02));
    background-size: 80px 140px;
}

/* ===== IMAGES ===== */
.position-relative img {
    transition: var(--transition);
    border-radius: 12px;
}

.position-relative:hover img {
    transform: scale(1.08);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== BADGES ===== */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
}

/* ===== ALERTS ===== */
.alert {
    border: none;
    border-radius: 12px;
    border-left: 4px solid;
    backdrop-filter: blur(10px);
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border-left-color: #17a2b8;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

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

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.rotate-180 {
    transform: rotate(180deg);
}

/* Effet shine */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.shine-effect:hover::before {
    left: 100%;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(3px);
}

/* ===== UTILITAIRES ===== */
.shadow-soft {
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.shadow-lg {
    box-shadow: 0 15px 45px rgba(0,0,0,0.12) !important;
}

.rounded-xl {
    border-radius: 16px !important;
}

.rounded-2xl {
    border-radius: 24px !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1.5rem;
        background: white;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .navbar-nav .btn-primary {
        margin-top: 1rem;
        width: 100%;
    }

    .home-slider .slider-item {
        min-height: 70vh;
    }

    .display-4 {
        font-size: 2rem;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 0;
        border-top: none !important;
    }

    .dropdown-menu-mega {
        width: 100%;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}
/* ===== GLASS EFFECT + SHINE POUR INFO LEAFLET ===== */
.info, .info2 {
    position: relative; /* nécessaire pour le shine */
    padding: 10px 12px;
    font: 14px/16px Arial, Helvetica, sans-serif;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    color: #1a202c;
    overflow: hidden; /* pour le shine */
    transition: all 0.3s ease;
}

.info h4, .info2 h4 {
    color: #28a745;
    margin-bottom: 8px;
}

/* Effet shine au survol */
.info::before, .info2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease-in-out;
}

.info:hover::before, .info2:hover::before {
    left: 125%;
}

.legend {
		text-align: left;
		line-height: 18px;
		color: #555;
}
.legend i {
		width: 18px;
		height: 18px;
		float: left;
		margin-right: 8px;
		opacity: 0.7;
}

.mycluster {
	width: 20px;
	height: 20px;
	background-color: #FFF;
	text-align: center;
	font-size: 12px;
	border-radius:50%;
}

.mycluster b{
	padding-top: 2px;
}

.info2 {
		padding: 6px 8px;
		font: 14px/16px Arial, Helvetica, sans-serif;
		background: white;
		background: rgba(255,255,255,0.7);
		box-shadow: 0 0 15px rgba(0,0,0,0.2);
		border-radius: 5px;
}

.info2 h4 {
		color: #777;
}

.legend25 {
		text-align: left;
		line-height: 18px;
		color: #555;
}

.legend25 i {
		width: 18px;
		height: 18px;
		float: left;
		margin-right: 8px;
		opacity: 0.7;
}

.mfp-bg {
    z-index: 2100 !important;
}
.mfp-wrap {
    z-index: 2200 !important;
}
