@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');





/* ****************Header**************** */
html{

    overflow-x:hidden ;
}
header {height: 7rem;display: flex;justify-content: center;align-items: center;background: white;box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);padding: 0px 20px;}



nav {

    display: flex;

    align-items: center;

    max-width: 1900px;

    justify-content: space-between;

    position: relative;

    font-family: 'Ubuntu', sans-serif;

    font-weight: 400;

    font-size: 16px;

    width: 100%;

    height: 50px;

}





.logo img {height: 4rem;width: 5rem;}



/* Navigation Desktop */

.nav-links {

    display: flex;

    list-style: none;

    justify-content: center;

    align-items: center;

    flex-grow: 1;

    padding: 0;

    margin: 0;

}



.nav-links li a {

    padding: 20px;

    text-decoration: none;

    color: #334155;

    transition: transform 0.3s ease, color 0.3s ease;



}

.nav-links li a:hover {

    color: #500778;

}

.nav-links li {

    transition: transform 0.3s ease, color 0.3s ease;

}



.nav-links li:hover {

    transform: scale(1.1);

}



.nav-links li.selected a  {

    color: #500778;

    transform: scale(1.1);

}





/* Bouton "DONNER" */

.btn-donner {

    background: #500778;

    color: white;

    padding: 10px 20px;

    border-radius: 10px;

    text-decoration: none;

    font-weight: 500;

    font-family: 'Ubuntu', sans-serif;

    font-size: 16px;

    line-height: 16px;

}



/* Menu Burger */

.menu-toggle {

    display: none;

    font-size: 28px;

    background: none;

    border: none;

    cursor: pointer;

}



/* Bouton de fermeture */

.close-menu {

    display: none;

    font-size: 28px;

    background: none;

    border: none;

    cursor: pointer;

    position: absolute;

    top: 15px;

    right: 20px;

}



/* Afficher la flèche sur Desktop */

.dropdown {

    display: flex;

    align-items: center;

    position: relative;

    z-index: 20;

}



/* Afficher la flèche à côté de "NOS PROJETS" */

.dropdown-toggle {

    display: inline-block; /* Rend le bouton visible */

    background: none;

    border: none;

    cursor: pointer;

    font-size: 16px;

    margin-left: 5px;

    color: black; /* Assure que la flèche est visible */

}



.dropdown-menu {

    display: none;

    list-style: none;

    position: absolute;

    top: 100%;

    left: 0;

    background: white;

    width: 100vw;

    padding: 10px;

    border-radius: 5px;

    z-index: 1000;

}



.dropdown-menu li {

    text-align: left;

    padding: 15px 20px;

    border-bottom: 1px solid #ddd;

}



.dropdown-menu li:hover {

    transform: none;

}

.dropdown-menu li:first-child {

    padding-top: 20px;

}

.dropdown-menu li:last-child {

    border-bottom: none;

}



/* Afficher le menu déroulant au survol ou en mode actif */

.dropdown:hover .dropdown-menu,

.dropdown.active .dropdown-menu {

    display: block;

}







/* ***************************Footer**************************** */

footer {

    background: linear-gradient(90deg, #500778 0%, #7D1E9E 100%);

    color: white;

    padding: 40px 0;

    font-family: 'Poppins', sans-serif;

}



/* Container global du footer */

.footer-container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    max-width: 1100px;

    margin: 0 auto;

    padding: 0 30px;

}



/* Colonne gauche : informations de contact */

.footer-contact {

    text-align: left;

    flex: 1;

}



.footer-contact h3 {

    font-size: 18px;

    font-weight: 700;

}



.footer-contact p {

    margin: 5px 0;

    font-size: 14px;

}



.social-icons {

    margin-top: 10px;

}



.social-icons i {

    font-size: 18px;

    color: white;

    margin-right: 10px;

    cursor: pointer;

}



/* Ligne de séparation verticale entre les colonnes */

.footer-separator {

    width: 2px;

    height: 100px;

    background: white;

    margin: 0 20px;

}



/* Colonne droite : liens */

.footer-links {

    flex: 1;

    text-align: left;

}



.footer-links ul {

    list-style: none;

    padding: 0;

}



.footer-links ul li {

    font-size: 14px;

    margin: 5px 0;

}



.footer-links ul li a {

    color: white;

    text-decoration: none;

    font-weight: 400;

}



.footer-links ul li a:hover {

    text-decoration: underline;

}



/* Copyright en bas */

.footer-copyright {

    text-align: center;

    font-size: 12px;

    margin-top: 20px;

}





/* ********************Responsive*********************** */

@media (max-width: 1050px) and (min-width: 868px){

    header{

        padding: 0 10px;

    }

    .nav-links {
        justify-content: space-around;
    }
    .nav-links li a {

        padding: 8px;

    }

    .btn-donner {

        writing-mode: vertical-rl;

        text-orientation: upright;

        padding: 8px 15px;

        font-size: 14px;

        border-radius: 10px;

    }

}

/* @media (max-width: 1271px) {
    .nav-links {
        flex-wrap: wrap;
        row-gap: 30px;
        justify-content: flex-start;
    }

} */

@media (max-width: 867px) {



    header {

        padding: 10px 0;

    }

    nav {

        display: flex;

        align-items: center;

        justify-content: space-between;

        padding: 10px 20px;

        width: 90%;

        margin: 20px auto;

    }

    /* Bouton "DONNER" centré */

    .btn-donner {

        position: absolute;

        left: 50%;

        padding: 10px 20px;

        transform: translateX(-50%);

    }



    /* Menu burger à droite */

    .menu-toggle {

        display: block;

        font-size: 30px;

        background: none;

        border: none;

        cursor: pointer;

        color: #500778;

    }



    /* Masquer la navigation et afficher via JS */

    .nav-links {

        display: none;

        flex-direction: column;

        align-items: flex-start;

        border-top: 1px solid #00000029;

        text-align: start;

        font-size: 16px;

        background: white;

        width: 150%;

        position: absolute;

        top: 150%;

        left: -55px;

        z-index: 1000;

    }

    .nav-links li {

        width: 100%;

        padding: 12px 10px;

        background-color: white;

    }



    .nav-links li.selected {

        background-color:#f0f5fa;

    }

    .nav-links.open {

        display: flex;



    }



    .nav-links.open ~ .menu-toggle {

        display: none;

    }



    .nav-links.open ~ .close-menu {

        display: block;

    }

    .nav-links li:hover{

        transform: none !important;

    }

    .close-menu {

        display: none;

        position: absolute;

        top: 10px;

        right: 20px;

        font-size:40px;

        background: none;

        border: none;

        cursor: pointer;

        color: #500778;

    }



    .dropdown{

        width: 70%;

        display: flex;

        flex-direction: column;

        justify-content: space-between;

        align-items: flex-start;

        padding-right: 30px;

    }

    .dropdown div{

        width: 85%;

        height: 34px;

        display: flex;

        justify-content: space-between;

        align-items: center;

    }



    .dropdown-toggle {

        display: inline;

        background: none;

        cursor: pointer;

        font-size: 20px;

    }



    .dropdown-menu {

        position: relative;

        width: 100%;

        padding: 0px;

        margin-top: 10px;

        background: white;

        border-radius: 5px;

        z-index: 1000;

        overflow: hidden;

    }

    .dropdown-menu li:first-child {

        padding-top: 5px;

    }



    .dropdown.active .dropdown-menu {

        display: flex;

        flex-direction: column;

        justify-content: space-around;

    }

}

@media (max-width: 750px) {
    .nav-links {

        left: -38px;

    }
}

@media (max-width: 425px){

    .logo img {

        height:70px;

        width: 85px;

    }

    .nav-links {

        width: 110%;

        left: -25px;

    }

    .nav-links li {

        padding: 12px 12px;

    }

    .btn-donner {

        left: 60%;

    }

    .footer-container {

        gap: 20px;

        flex-direction: column-reverse;

    }

    .footer-separator {

        width: 250px;

        height: 2px;

    }

    .footer-links {
        text-align: center;
    }

    .footer-contact h3{
        text-align: center;
    }

    .social-icons{
        margin-top: 12px;
        display: flex;
        justify-content: space-around;
    }

}

@media (max-width: 375px){

    nav{

        padding: 10px;

    }

    .nav-links {

        width: 120%;

    }

    .btn-donner {

        left: 55%;

    }

}

