/*==================================
=            Global               =
==================================*/

  * {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
}

body {
    font-family: 'Jua', sans-serif;
    background: #ADD4A7;
    color: #2F3A36;
    line-height: 1.5;
}

/*==================================
=            Header               =
==================================*/

header {
    height: 150px;
    width: 100vw;
}

/*==================================
=            Navbar               =
==================================*/

.navbar {
    position: absolute;
    padding: 30px;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.navbar .nav-links {
    margin: 0 auto;
}

.navbar .nav-links ul li a {
    color: #615959;
}

.navbar .logo-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-left: 100px;
}

.navbar .nav-links ul {
    display: flex
}

.navbar .nav-links ul li {
    margin: 0 45px;
}

.navbar .nav-links ul li.active a {
    text-decoration: underline;
}

.navbar .menu-hamburger {
    display: none;
    position: absolute;
    top: 65px;
    right: 50px;
    width: 35px;
}

@media screen and (max-width: 1199px) {
    .navbar {
        padding: 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.97);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.5s ease;
        z-index: 9999;
    }

    .nav-links.mobile-menu {
        transform: translateX(0);
    }

    .nav-links ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .nav-links ul li a {
        font-size: 1.3em;
        color: #615959;
        font-weight: bold;
    }

    .navbar .nav-links {
        margin: 0;
    }

    .navbar .menu-hamburger {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 35px;
        cursor: pointer;
        z-index: 10000;
    }

    .navbar .nav-links ul li {
        margin: 25px 0;
        font-size: 1.2em;
    }

}

/*==================================
=         Section Recherche       =
==================================*/
.search-section {
    background: #ADD4A7;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 1rem;
    gap: 1rem;
}

.search-section h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #615959;
    align-self: center;
    margin-left: 25px;
}

.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 400px;
}

.form-group {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 1rem;
    border: none;
    border-radius: 1.5rem;
    font-size: 1rem;
}

.form-group .icon,
.form-group img {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 1.2rem;
    width: 22px;
    height: auto;
    pointer-events: none;
}

.form-group input[type="datetime-local"] {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 1rem;
    border: none;
    border-radius: 1.5rem;
    font-size: 1rem; 
    appearance: none;
}

/* indicateur natif invisible mais toujours cliquable */
.form-group input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
    position: absolute;
    right: 0; top: 0;
    width: 3rem;
    height: 100%;
}

/* Firefox :  laisse la zone d’icône visible, il s’affichera quand on cliquera sur le champ */
.form-group input[type="datetime-local"]::-moz-focus-inner {
    border: 0;
}

.btn {
    background: #077A13;
    color: white;
    padding: 0.75rem 2rem;
    margin-top: 2rem;
    border: none;
    border-radius: 1.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #065f10;
}

/*==================================
=         Section Bienvenue       =
==================================*/

.welcome-section {
    background: #ADD4A7;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.welcome-card {
    background: #A2DB9A;
    border: 1px solid #222222;
    border-radius: 2rem;
    padding: 3rem 2rem;
    width: calc(100% - 4rem);      /* prend toute la largeur moins 2rem de chaque côté */
    max-width: 1200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    text-align: center;
}

.welcome-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #615959;
}

.welcome-card p {
    margin-bottom: 1.25rem;
    line-height: 1.6;
    color: #615959;
    font-size: 20px;
}

.welcome-card p:last-child {
    margin-bottom: 0;
}

/*==================================
=      Section Cartes Écologiques  =
==================================*/

.eco-cards-section {
    background: #93C798;
    padding: 4rem 1rem;
}

.eco-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #615959;
}

/*  force une seule colonne, une carte par ligne */
.eco-cards-container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    align-items: center;
    padding: 0 1rem;
}

.eco-card {
    background: #DEFCDF;        
    display: flex;
    border-radius: 6rem;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    overflow: hidden;
}

/* inverse l’ordre sur les cartes */
.eco-card:nth-child(even) {
    flex-direction: row-reverse;
}

.eco-card .card-text {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-text h3 {
    margin-bottom: 1rem;
    color: #1E2F23;
    font-size: 1.5rem;
    text-align: center;
}

.card-text p {
    margin-bottom: 1.25rem;
    line-height: 1.6;
    color: #1E2F23;
    font-size: 20px;
    text-align: center;
}

.card-img img {
    transition: transform 0.3s;
}

.eco-card .card-img {
    flex: 0 0 50%;
    overflow: hidden;
}

.eco-card .card-img img {
    border-radius: 0 6rem 6rem 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 810px) {
/* Chaque carte prend toute la largeur */
.eco-cards-container {
    padding: 0;
}

.eco-card {
    flex-direction: column !important; /* colonne : image au-dessus du texte */
    width: 100%;
    border-radius: 6rem;
    max-width: none;
}

/* L’image fait 100% de la largeur du conteneur */
.eco-card .card-img {
    flex: none;
    width: 100%;
    height: auto;
    border-radius: 6rem;
}

.eco-card .card-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: inherit;       /* hérite des coins */
}

/* Le bloc texte juste en dessous */
.eco-card .card-text {
    flex: none;
    padding: 1.5rem;
    border-radius: 0 0 2rem 2rem;
}

.card-text h3 {
    font-size: 1.3rem;
    }

.card-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    }
}

/*==================================
=        Section Équipe           =
==================================*/

.team-section {
    background: #ADD4A7;
    padding: 4rem 1rem;
    text-align: center;
}

.team-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #615959;
}

.team-card {
    display: inline-block;
    background: #DEFCDF;
    border-radius: 1rem;
    overflow: hidden;
    max-width: 600px;
}

.team-img {
    width: 100%;
    display: block;
}

.team-caption {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    color: #615959;
    background-color: #ADD4A7;
}

/*==================================
=            Footer               =
==================================*/

.footer {
    background: #FFFFFF;
    padding: 2rem 1rem;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icons img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-copy,
.footer-email {
    margin-bottom: 0.5rem;
    color: #2F3A36;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-nav a {
    text-decoration: none;
    color: black;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #065f10;
}