* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'El Messiri';
}

/* 🌈 BACKGROUND SIMPLE */
body {
    min-height: 100vh;
    background: linear-gradient(135deg, #ffffff, #eef3ff);
}

.menuElement {
    color: #0f172a;
    font-size: xlarge; 
    font-family: 'El Messiri';
}

.clickable {
    cursor: pointer; /* indique que c’est cliquable */
}

.clickable:hover img {
    filter: blur(3px);
}

/* ===================== */
/* 🔥 NAVBAR GLASS CLEAN */
/* ===================== */

.navbar {
    position: fixed;
    top: 15px;
    right: 50%;
    transform: translateX(50%);

    width: 90%;
    height: 65px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 20px;

    background: rgba(14, 37, 172, 0.158);
    backdrop-filter: blur(15px);

    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 18px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);

    z-index: 1000;
}

/* LOGO */
.logo {
    font-size: 20px;
    font-weight: bold;
    color: #0f172a;
}

/* ===================== */
/* MENU DESKTOP */
/* ===================== */

.menu {
    display: flex;
    gap: 25px;
    flex-direction: row-reverse;
    width: 100%;
}

.menu a {
    text-decoration: none;
    font-size: 16px;
    color: #1f2a44;
    transition: 0.3s;
}

.menu a:hover {
    color: #1d4ed8;
    background: skyblue;
    rotate: 5deg;
    transition: 0.3s;
}

/* ===================== */
/* 🍔 HAMBURGER */
/* ===================== */

#menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    width: 30px;
    height: 22px;
    cursor: pointer;
    position: relative;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: #1f2a44;
    border-radius: 5px;
    transition: 0.4s;
}

.hamburger span:nth-child(1){ top:0; }
.hamburger span:nth-child(2){ top:9px; }
.hamburger span:nth-child(3){ top:18px; }

/* animation X */
#menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

#menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* ===================== */
/* CONTENT */
/* ===================== */

main {
    padding-top: 120px;
}

.section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 2rem;
    color: #0f172a;
}

/* ===================== */
/* 📱 MOBILE + TABLET */
/* ===================== */

@media (max-width: 768px) {

    .hamburger {
        display: block;
    }

    .menu {
        position: absolute;
        top: 75px;
        right: 0;

        width: 100%;

        flex-direction: column;
        text-align: center;

        background: rgba(255,255,255,0.7);
        backdrop-filter: blur(15px);

        border-radius: 18px;

        display: none;
        padding: 10px 0;
    }

    .menu a {
        padding: 15px;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    #menu-toggle:checked + .hamburger + .menu {
        display: flex;
    }
}

/* ===================== */
/* 💻 DESKTOP IMPROVEMENT */
/* ===================== */

@media (min-width: 1200px) {

    .navbar {
        width: 80%;
    }

    .menu a {
        font-size: 18px;
    }
}

.footer {
    background: linear-gradient(135deg, #0f172a, #111827);
    color: #e5e7eb;
    padding: 50px 20px;

    box-shadow: 0 -10px 30px rgba(0,0,0,0.3);

    opacity: 0;
    transform: translateY(60px);
    transition: 0.8s ease;
}

/* animation active */
.footer.show {
    opacity: 1;
    transform: translateY(0);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

/* boxes */
.footer-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}

.footer-box h3 {
    margin-bottom: 10px;
    color: #60a5fa;
}

.footer-box a {
    color: #e5e7eb;
    text-decoration: none;
    transition: 0.3s;
}

.footer-box a:hover {
    color: #60a5fa;
}

/* 📱 responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* hero
/* HERO BACKGROUND */
.hero {
    position: relative;
    min-height: 65vh;

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 20px;
    background: url("../img/hero-bg.jpg") center/cover no-repeat;
    overflow: hidden;
}

/* overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 42, 24, 0.65);
    z-index: 1;
    padding: 25px 25px;
}

/* CONTENT CENTERED */
.hero-content {
    position: relative;
    z-index: 2;
    margin: 2% auto;

    text-align: center;
    max-width: 700px;

    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(18px);

    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;

    padding: 40px;

    color: white;

    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* TEXT */
.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 25px;
}

/* BUTTONS */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Comme background-size: cover */
    z-index: 1;
}

.btn {
    padding: 12px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn.primary {
    background: #1d4ed8;
    color: white;
}

.btn.primary:hover {
    background: #1e40af;
}

.btn.secondary {
    border: 1px solid white;
    color: white;
}

.btn.secondary:hover {
    background: white;
    color: #0f172a;
}

/* 📱 RESPONSIVE */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
}

/* ===================== */
/* HERO BOXES */
/* ===================== */

/* HERO BOXES */
.hero-boxes {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* BOX */
.hero-box {
    background: rgba(15, 80, 155, 0.945);
    backdrop-filter: blur(15px);
    width: 100%;

    border: 1px solid rgba(9, 109, 71, 0.2);
    border-radius: 15px;

    padding: 20px;

    color: white;
    text-align: center;

    transition: 0.4s;

    opacity: 0;
    transform: translateY(30px);

    animation: fadeUp 0.8s ease forwards;
}

.hero-box h2 {
    font-size: xlarge; 
    font-family: 'El Messiri';
}

/* delay animation */
.hero-box:nth-child(1){ animation-delay: 0.1s; }
.hero-box:nth-child(2){ animation-delay: 0.3s; }
.hero-box:nth-child(3){ animation-delay: 0.5s; }
.hero-box:nth-child(4){ animation-delay: 0.7s; }

/* hover */
.hero-box:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255,255,255,0.2);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* ICON */
.icon {
    font-size: 28px;
    margin-bottom: 10px;

    animation: float 3s ease-in-out infinite;
}

/* TEXT */
.hero-box h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.hero-box p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}

/* ===================== */
/* ✨ ANIMATIONS */
/* ===================== */

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ===================== */
/* 📱 RESPONSIVE */
/* ===================== */

@media (max-width: 992px) {
    .hero-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero-boxes {
        grid-template-columns: 1fr;
    }
}
    .hero {
    overflow: visible;
}


/* ===================== */
/* 🔥 STATS SECTION */
/* ===================== */

.stats {
    padding: 80px 20px;

    display: flex;
    justify-content: center;

    background: linear-gradient(135deg,  #fffffe, #eeffee, #fffffe);
}

/* container */
.stats-container {
    width: 90%;
    max-width: 1100px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* box */
.stat-box {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);

    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 15px;

    padding: 25px;
    text-align: center;

    transition: 0.3s;
}

/* hover */
.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* number */
.stat-box h2 {
    font-size: 2rem;
    color: #1d4ed8;
    margin-bottom: 10px;
}

/* text */
.stat-box p {
    color: #334155;
}

/* 📱 responsive */
@media (max-width: 992px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
}
/* ===================== */
/* 🔥 ZONES SECTION */
/* ===================== */

.zones {
    padding: 80px 5px;

    display: flex;
    justify-content: center;

    background: linear-gradient(135deg, #ffffee, #ffffff, #ffffee);
}

/* container */
.zones-container {
    width: 90%;
    max-width: 75%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* box */
.hero-box {
    background: rgba(3, 79, 245, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 15px;

    padding: 25px;
    text-align: center;

    transition: 0.3s;
}

/* hover */
.hero-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    color: #1d4ed8;
}

/* number */
.zone-box h2 {
    font-size: 2rem;
    color: #1d4ed8;
    margin-bottom: 10px;
}

/* text */
.zone-box p {
    color: #334155;
}

/* 📱 responsive */
@media (max-width: 992px) {
    .zones-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .zones-container {
        grid-template-columns: 1fr;
    }
}

/* ===================== */
/* DROPDOWN */
/* ===================== */

.dropdown {
    position: relative;
}

/* menu caché */
.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0; /* RTL */

    min-width: 180px;

    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(15px);

    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);

    box-shadow: 0 10px 30px rgba(0,0,0,0.1);

    display: flex;
    flex-direction: column;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: 0.3s;

    z-index: 1000;
}

/* liens */
.dropdown-menu a {
    padding: 12px;
    text-decoration: none;
    color: #1f2a44;
    transition: 0.3s;
}

.dropdown-menu a:hover {
    background: rgba(29,78,216,0.1);
    color: #1d4ed8;
}

/* 🔥 SHOW ON HOVER */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===================== */
/* 📸 GALLERY SECTION */
/* ===================== */

.gallery {
    padding: 80px 20px;
    text-align: center;
}

/* title */
.gallery h2 {
    font-size: 2rem;

    color: #0f172a;
}

/* grid */
.gallery-container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    margin-bottom: 2%;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
}

/* image */
.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;

    transition: 0.4s;
}

/* overlay */
.gallery-item .overlay {
    position: absolute;
    inset: 0;

    background: rgba(15, 23, 42, 0.6);

    display: flex;
    justify-content: center;
    align-items: center;

    color: white;
    font-size: 1.2rem;

    opacity: 0;
    transition: 0.4s;
}

/* hover effects */
.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* ===================== */
/* 📱 RESPONSIVE */
/* ===================== */

@media (max-width: 992px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 5%;
    }
}

@media (max-width: 576px) {
    .gallery-container {
        grid-template-columns: 1fr;
        margin-bottom: 5%;
    }

    .hero-content h1 {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 25px;
}
}