* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Medium.ttf') format('woff2'),;
         /* url('../fonts/MyFont.woff') format('woff'), */
         /* url('../fonts/MyFont.ttf') format('truetype'); */
    font-weight: normal;
    font-style: normal;
}

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
}

header{
    display: flex;
    align-items: center;
    justify-content: space-around;
    width:100%;
    background-color: rgba(255, 255, 255, 0.151);
    color: black;
    position: fixed;
    top: 0;
    z-index: 999;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Preloader container */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white; /* or dark mode background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Spinner animation */
.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ccc;
    border-top: 6px solid rgb(23, 68, 23);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Keyframes for spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

h1{
    font-family:poppins;
    font-weight:bold;
    font-size: 30px;
}

header.scrolled {
    background-color: rgb(255, 255, 255);
}

header:hover{
    background-color: rgb(255, 255, 255);
}

#logo{
    z-index:99;
}

#search {
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 99;
}

#search button {
    background-color:rgb(23, 68, 23);
    color: white;
    border: none;
    padding: 7px 7px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    /* gap: 0px; */
}

/* #search button:last-of-type{
    display:none;
    padding: 8px 8px;
    border-radius: 100px;
} */

#search input{
    display:none;
    background-color: rgba(0, 0, 0, 0.062);
    padding: 10px 25px;
    border: none;
    border-radius: 20px;
    transition: translateX(100%) 0.3 ease background-color 0.3 ease;
}

#search.open input{
    display:flex;
}

/* #search:hover input{
    display:flex;
}

#search:active input{
    display:flex;
} */

.social-icons a {
    color: #014421;
    font-size: 16px;
    margin-left: 8px;
    text-decoration: none;
}

.social-icons a:hover {
    color: #000;
}

.menu ul{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    list-style: none;
    padding-right: 50px;
    font-size:14px;
}

.menu ul li a {
    text-decoration: none;
    color: black;
    font-family: poppins;
    justify-content: center;
    padding:5px 0;
    margin:15px;
    /* background-color: rgba(255, 255, 255, 0); */
    transition: background-color 0.3s ease;
}

.menu ul li a.scrolled {
    background-color: rgb(255, 255, 255);
}

.menu-item {
    position:sticky;
}

.menu-item:hover > a{
    /* color: rgb(23, 68, 23); */
    background-color:rgba(209, 253, 209, 0.048);
    border-bottom: 2px solid rgb(23, 68, 23);
}

.menu-item:active > a{
    color: rgb(23, 68, 23);
}

.menu-item > .sublist {
    display: none;
    opacity:0.5;
    position:relative;
    /* top: 50px; */
    background-color: rgb(255, 255, 255);
    padding: 70px 20px;
    text-align: left;
    gap: 30px;
    z-index: -1;
    width: 100vw;
    left: 0;
    border-bottom: 2px solid rgb(23, 68, 23);
    border-radius:0px 0px 150px 150px;
    transition: opacity 0.3s ease-out, top 0.3s ease;
}

.menu-item:hover > .sublist {
    display: flex;
    position: fixed;
    /* top:100px; */
    opacity:1;
    z-index: -1;
}

.menu ul li:first-child { /* for About which is first li */
    position: relative; /* establish stacking context */
    z-index: 10;        /* high enough to be above submenu */
}

.submenu-item {
    display: flex;
    flex-direction: column;
    min-width: 150px;
    font-family: Poppins;
    font-size: 10px;
    font-weight:bold;
    border-right: 1px solid grey;
    /* height: 80px; */
    top:0;
    justify-content: first baseline;
    /* text-align: justify; */
    padding:0 20px;
}

.submenu-item > ul {
    margin-top: 10px;
    display: flex;
    flex-direction:column;
    font-weight:lighter;
    /* gap: 5px; */
    /* text-align:left; */
    text-decoration: none;
}

.sublist2 > li {
    padding:5px;
    list-style:square;
}

.submenu-item a {
    text-decoration: none;
    border-bottom: 2px solid white;
    /* padding:; */
    color: black;
    font-size: 13px;
    text-align:left;
}

.submenu-item a:hover {
    /* padding:0%; */
    color: rgb(23, 68, 23);
    border-bottom: 2px solid rgb(23, 68, 23);
}

:root{
    --primary: rgba(255, 255, 255, 0);
    --secondary: rgba(23, 68, 23, 0.116);
    --tertiary: rgb(18, 58, 18);
}

.body{
    width:100%;
    position:relative;
}

/* Default: hide hamburger, show menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: black;
    z-index: 1000;
}

/* Mobile View */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

    #search button {
        display:none;
    }

    #search button:last-of-type{
        display:flex;
    }

    .menu {
        display: none;
        flex-direction: column;
        background-color: white;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 20px;
        z-index: 900;
    }

    .menu.active {
        display: flex;
    }

    .menu ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }

    .menu ul li {
        margin: 10px 0;
    }

    .menu ul a {
        margin: 5px 0;
        padding: 10px;
        width: 100%;
    }

    /* Optionally collapse submenus on mobile */
    .menu-item > .sublist {
        position: static;
        border-radius: 0;
        padding: 0;
        flex-direction: column;
        width: 100%;
        height:77vh;
        align-items:center;
        background-color: #f9f9f9;
        display: none;
        left: 0;
        top: 100px;
        z-index: 1000;
    }

    .menu-item:hover > .sublist {
        top:60px;
        /* opacity:100%; */
        /* z-index: 100; */
    }

    .menu-item:active > .sublist {
        display: block;
        opacity: 1;
        top:60px;
    }

    .submenu-item {
        border: none;
    }

    .bg-video {
        max-width: 100%;
    }
}

/* hero{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width:100%;
    min-width: 100vw;
    background: linear-gradient(var(--primary), var(--secondary), var(--tertiary)),
                url('../data/champ.PNG') no-repeat center center / cover;
    height:100vh;
} */

hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 0 0 100px 100px;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -1;
}

hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(var(--primary), var(--secondary), var(--tertiary));
    opacity: 0.5; /* adjust as needed */
    z-index: 0;
}

.about{
    display:block;
    /* flex-direction: column; */
    align-items:flex-start;
    justify-content:flex-start;
    font-family:poppins;
    padding:50px;
    text-align:center;
    /* background-color: rgb(23, 68, 23); */
    color:white;
    /* border-radius: 10px; */
    /* text-align: center; */
    max-width: 800px;
    z-index: 1;
}

.about h3{
    font-family:poppins;
    font-weight:500 ;
    text-align: justify center;
}
.entreprises{
    display:flex;
    padding:5%;
    align-items:center;
    justify-content:space-between;
    flex-direction:column;
    font-family:poppins;
    text-align:justify;
    /* border:1px solid rgb(23, 68, 23); */
    margin: 10px;

}

.entreprises > h1 {
    margin-bottom: 20px;
}

.enterprises-container{
    display: flex;
    gap:40px;
    justify-content:center;
    flex-wrap:wrap;
    text-align:center;
}

.enterprises-container > div{
    background-color: #ffffff;
    padding:20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.185);
    /* opacity: 0; */
    transform: translateX(0);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    max-width: 300px;
}

.entreprises-container > .animate {
    opacity: 1;
    transform: translateX(50px);
}

.entreprises-container > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.entreprises-container img {
    margin-bottom: 15px;
    max-width: 100%;
    height: auto;
}

.entreprises-container h1,
.entreprises-container h2 {
    margin: 10px 0;
    color: #0b330b;
}

.entreprises-container h4 {
    font-weight: lighter;
    font-size: 0.95rem;
    color: #333;
}

/* .entreprises,
.partners,
.enterprises-container {
    width: 100%;
    max-width: 100%;
    padding: 5% 10px;
    box-sizing: border-box;
} */

#sec_1 h1{
    font-weight:bold;
    font-size: 30px;
}

.photos{
    background-color: antiquewhite;
}

.partners{
    display: flex;
    justify-content:space-around;
    flex-direction:column;
    align-items: center;
    /* justify-content: space-around;
    align-items: center;
    padding:15px 100px; */
}

.logo_part{
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding:15px 100px;
}
section h3{
    font-weight:lighter;
}

/* Footer Styles */
footer {
  background: url('../data/green_design-03-03.jpg') no-repeat center / cover; 
  color: #ffffff;
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
  position:relative;
  width:100%;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

footer h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #ffffff;
}

/* .social-icons a i {
    color: white;
} */

.social-icons2 a i {
    color: white;
}


footer p,
footer a {
  font-size: 14px;
  color: #cccccc;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
  color: #ffffff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #2c5e4e;
  padding-top: 20px;
  font-size: 13px;
  color: #aaaaaa;
}
