/* --- VARIABLES --- */
:root {
    --primary: #002157;
    --secondary: #00a18c;
    --accent: #0056b3;
    --white: #ffffff;
    --bg-light: #f4f7f6;
    --text-dark: #333;
    --text-light: #777;
    --header-height: 80px;
    --container-width: 1200px;
}
/*---- POP UP ------*/


.popup {
    display: none; /* 🔥 IMPORTANT */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    margin: 20px;
}

.popup-content button {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    background: #0f172a;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .popup-content {
        padding: 20px;
    }

    .popup-content button {
        width: 100%;
    }
}


/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: var(--header-height);
}

/* --- CONTAINER --- */
.container {
    max-width: var(--container-width);
    margin: auto;
    padding: 0 20px;
}
.container-nav {
    position: relative;
    z-index: 9999;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background: var(--bg-light);
}

/* --- HEADER --- */
header {
 position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    z-index: 99999; /* très élevé */
}
.container-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logogroupe-img {
    /* Si ta barre fait 80px, baisse le logo à 60px pour laisser 10px de marge en haut et en bas */
    height: 7em; 
    width: auto;
    display: block;
    object-fit: contain; /* Garde les proportions propres */
    text-align:center;
}

/* --- NAV --- */
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    margin-left: 25px;
    text-decoration: none;
    color: var(--primary);
    font-size: 0.95rem;
}

.nav-links li a:hover {
    color: var(--secondary);
}

/* --- MENU MOBILE --- */
.menu-toggle {
    display: none;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 25px;
    height: 3px;
    background: var(--primary);
    display: block;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* --- HERO --- */
.hero {
    height: calc(100vh - var(--header-height));
    background: 
        linear-gradient(120deg, rgba(0,33,87,0.85), rgba(0,161,140,0.6)),

url('images/teamgemc2.png');


    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

/* TAGS */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.hero-tags span {
    background: rgba(255,255,255,0.15);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    margin: 10px;
}

.btn-alt {
    background: transparent;
    border: 2px solid white;
}

/* --- GRID --- */
.grid-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}



/* ===== SECTION GROUP UPGRADE ===== */

#group .container {
    text-align: center;
}

#group .grid-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

#group .about-text {
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
}

#group .values {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#group .value {
    background: white;
    padding: 25px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;

    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
}

#group .value strong {
    display: block;
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

#group .value:hover {
    transform: translateY(-5px);
}

#group h2 {
    margin-bottom: 10px;
}

#group .subtitle {
    margin-bottom: 20px;
    color: var(--text-light);
}


/* ===== SECTION MISSION UPGRADE ===== */

#mission {
    background: linear-gradient(to bottom, #f9fbfb, #ffffff);
}

#mission .container {
    text-align: center;
}

#mission .subtitle {
    margin-bottom: 50px;
    color: var(--text-light);
}

/* GRID */
#mission .grid-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* BLOCS */
#mission .grid-about > div {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* LIGNES MISSION */
#mission .grid-about p {
    background: white;
    padding: 18px 20px;
    border-radius: 10px;

    text-align: left;
    font-size: 1rem;

    border-left: 4px solid var(--secondary);

    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

/* MOTS IMPORTANTS */
#mission strong {
    color: var(--primary);
}

/* HOVER */
#mission .grid-about p:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
#mission {
    background: linear-gradient(
        135deg,
        rgba(0, 33, 87, 0.12),
        rgba(0, 161, 140, 0.18)
    );
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}



/* ===== ECOSYSTEME MODERNE ===== */

#ecosysteme .container {
    text-align: center;
}

#ecosysteme .subtitle {
    margin-bottom: 50px;
    color: var(--text-light);
}

/* GRID */
#ecosysteme .entities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* CARDS */
#ecosysteme .entity-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* HOVER */
#ecosysteme .entity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* LOGOS */
#ecosysteme .entity-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;

    filter: grayscale(100%);
    opacity: 0.8;
    transition: 0.3s;
}

#ecosysteme .entity-card:hover .entity-logo {
    filter: grayscale(0%);
    opacity: 1;
}

/* TITRES */
#ecosysteme h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* TEXTE */
#ecosysteme .entity-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

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

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





/* RESPONSIVE */
@media (max-width: 768px) {

    #mission .grid-about {
        grid-template-columns: 1fr;
    }

    #mission .grid-about p {
        text-align: center;
    }
}


/* RESPONSIVE */
@media (max-width: 768px) {

    #group .grid-about {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    #group .about-text {
        text-align: center;
    }

    #group .values {
        align-items: center;
    }

    #group .value {
        width: 100%;
        max-width: 300px;
    }
}



/* ===== CAROUSEL PROPRE ===== */


.partners-carousel {
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0; /* espace au-dessus */
 margin-bottom: 40px; /* 👈 espace AVANT le carousel */
    border-radius: 10px; /* léger arrondi */
   z-index: 0;
}

/* TRACK CENTRÉE */
.partners-track {
    display: flex;
    align-items: center;
    gap: 40px;

    width: max-content;
    margin: 0 auto; /* 🔥 centre visuellement */

    animation: scroll 30s linear infinite;
}

/* ITEMS */
.partner-item {
    flex: 0 0 150px; /* largeur fixe = rendu propre */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* LOGOS */
.partner-item img {
    height: 60px;
    width: auto;
    object-fit: contain;

    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s;
}

.partner-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* FADE DES CÔTÉS (EFFET PRO) */
.partners-carousel::before,
.partners-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;

    pointer-events: none;
}

.partners-carousel::before {
    left: 0;
    background: linear-gradient(to right, #f4f7f6, transparent);
}

.partners-carousel::after {
    right: 0;
    background: linear-gradient(to left, #f4f7f6, transparent);
}
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .partners-carousel {
        max-width: 100%;
        padding: 0 10px;
    }
}

@media (max-width: 768px) {

    .partners-track {
        gap: 20px;
        animation-duration: 15s;
    }

    .partner-item {
        flex: 0 0 100px;
    }

    .partner-item img {
        height: 40px;
    }
}
/* Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
@media (max-width: 768px) {

    .partners-track {
        gap: 25px;
        animation-duration: 15s;
    }

    .partner-item {
        min-width: 120px;
    }

    .partner-item img {
        max-width: 90px;
    }
}


/*-------CONTACT -------*/


.contact-logo {
    height: 8em; /* 🔥 taille propre */
    width: auto;
    margin: 15px 0 15px;

    object-fit: contain;
}

/**----POP UP ----*/
.alert {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.alert.success {
    background: #d4edda;
    color: #155724;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
}





/* --- CTA --- */
.cta-section {
    background: linear-gradient(to right, var(--primary), var(--accent));
    color: white;
    text-align: center;
    padding: 60px 20px;
}

/* --- CONTACT --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.contact-form button {
    width: 100%;
}

/* --- FOOTER --- */
footer {
    background: #111;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 20px;
}

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

/* TABLET */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.3rem;
    }

    .grid-about {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* MOBILE */
@media (max-width: 768px) {

    :root {
        --header-height: 70px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: var(--header-height);
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: 0.4s;
    }

    .nav-links.nav-open {
        right: 0;
    }

    .nav-links li a {
        margin: 20px 0;
    }

    .hero {
        height: auto;
        padding: 80px 20px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-tags {
        justify-content: center;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .btn {
        width: 100%;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }
}