@import url('https://fonts.cdnfonts.com/css/aquatico');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;500;700&display=swap');


/* DONATION BUTTON */

.fancy {
    background-color: transparent;
    border: 2px solid #11468F;
    border-radius: 0;
    box-sizing: content-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
    outline: none;
    overflow: visible;
    padding: 1.25em 2em;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    transition: all 0.3s ease-in-out;
    user-select: none;
    font-size: 13px;
}

.fancy::before {
    content: " ";
    width: 1.5625rem;
    height: 2px;
    background: #11468F;
    top: 50%;
    left: 1.5em;
    position: absolute;
    transform: translateY(-50%);
    transform-origin: center;
    transition: background 0.3s linear, width 0.3s linear;
}

.fancy .text {
    font-size: 1.125em;
    /* line-height: 1.33333em; */
    padding-left: 2em;
    top: 50%;
    display: block;
    text-align: left;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    text-decoration: none;
    color: #11468F;
}

.fancy .top-key {
    height: 2px;
    width: 1.5625rem;
    top: -2px;
    left: 0.625rem;
    position: absolute;
    background: #e8e8e8;
    transition: width 0.5s ease-out, left 0.3s ease-out;
}

.fancy .bottom-key-1 {
    height: 2px;
    width: 1.5625rem;
    right: 1.875rem;
    bottom: -2px;
    position: absolute;
    background: #e8e8e8;
    transition: width 0.5s ease-out, right 0.3s ease-out;
}

.fancy .bottom-key-2 {
    height: 2px;
    width: 0.625rem;
    right: 0.625rem;
    bottom: -2px;
    position: absolute;
    background: #e8e8e8;
    transition: width 0.5s ease-out, right 0.3s ease-out;
}

.fancy:hover {
    color: white;
    background: #11468F;
}

.fancy:hover::before {
    width: 0.9375rem;
    background: white;
}

.fancy:hover .text {
    color: white;
    padding-left: 1.5em;
}

.fancy:hover .top-key {
    left: -2px;
    width: 0px;
}

.fancy:hover .bottom-key-1,
.fancy:hover .bottom-key-2 {
    right: 0;
    width: 0;
}


/* underlining effect for the links */
li {
    position: relative;
    text-decoration: none;
}

li:after {
    content: "";
    position: absolute;
    background-color: #525252;
    height: 2px;
    width: 0;
    left: 0;
    bottom: 5px;
    transition: 0.3s;
}

li:hover:after {
    width: 100%;
}



/* overall changes */

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

nav {
    overflow: hidden;
    background-color: rgb(255, 255, 255);
    max-height: 89px;
    font-family: Aquatico;
    position: fixed;
    top: 0;
    z-index: 1;
    width: 100%;
    display: flex;
    list-style-type: none;
    justify-content: space-around;
    margin: auto;
    text-decoration: none;
}

/* Navigation Bar Changes */
nav h1 {
    color: #11468F;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 35px;
}

nav h1 a {
    text-decoration: none;
    color: #11468F;
}

nav li {
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative; /* Nécessaire pour l'utilisation de ::after */
}

nav li a {
    color: #11468F;
    text-decoration: none; /* Pour enlever toute soulignement initial */
}

nav li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px; /* Épaisseur de la barre */
    background-color: #11468F;
    transition: width 0.3s ease; /* Animation douce */
}

nav li:hover::after {
    width: 100%; /* La barre s'étend sur toute la largeur au survol */
}

nav .fancy {
    margin-top: 20px;
    margin-bottom: 15px;
}

nav img {
    margin-top: -5px;
    height: 25px;
    width: 35px;
}

nav input, nav label {
    display: none;
}

@media screen and (max-width: 900px){
    nav label {
        display: block;
    }
    
    nav {
        display: block;
        text-align: center;
        max-height: 110px;
    }
    
    nav img {
        margin-top: 0px;
        margin-bottom: 0px;
        padding: none;
    }
    
    nav li:after {
        content: "";
        position: absolute;
        height: 0px;
        transition: 0.3s;
    }
}


/* Slider */
.custom-slider {
    display: none;
}

.slide-container {
    width: 100%;
    height: 100%;
    position: relative;
    margin: auto;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.6s ease;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.slide-text {
    position: absolute;
    color: #ffffff;
    font-size: 15px;
    padding: 15px;
    bottom: 15px;
    width: 100%;
    text-align: center;
}

.slide-index {
    color: #ffffff;
    font-size: 13px;
    padding: 15px;
    position: absolute;
    top: 0;
}

.slide-img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    object-position: center;
}

.slide-dot {
    text-align: center;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 2px;
    background-color: #999999;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active,
.dot:hover {
    background-color: #111111;
}

.fade {
    animation-name: fade;
    animation-duration: 1s;
}

@keyframes fade {
    from {
        opacity: 0
    }
    
    to {
        opacity: 1
    }
}




.slider {
    margin-top: 89px;
    margin-bottom: 23px;
}




/* footer */
footer {
    margin-top: 80px;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #11468F;
    text-align: center;
    justify-content: center;
    align-items: center;
    position: static;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

footer .brand h1 {
    font-family: "Aquatico";
    font-size: 200%;
}

footer .brand i {
    font-size: 45px;
}

footer .more {
    font-family: 'Montserrat';
}

footer h1, footer .sn i, footer .more {
    color: rgb(205, 205, 205);
}

footer .sn {
    padding: 0.4rem;
    width: 100%;
}

.footer-container {
    
    display: flex;
    justify-content: center; /* Centrer les colonnes */
    align-items: stretch; /* Assure que toutes les colonnes ont la même hauteur */
    padding: 20px;
    background-color: #11468F;
    gap: 30px; /* Espacement entre les colonnes */
}

.footer-container > div {
    padding: 0 20px;
    border-left: 1px solid #ccc; /* Barres verticales fines */
    flex-grow: 1; /* Chaque colonne prend le même espace */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrer verticalement le contenu */
    align-items: center; /* Centrer horizontalement le contenu */
}

.footer-container > div:first-child {
    border-left: none; /* Pas de barre à gauche du premier élément */
}


footer h1, footer h4, footer p {
    color: white;
    margin: 0;
    padding-bottom: 10px;
    font-family: 'Montserrat';
}

footer a {
    text-decoration: none;
    color: white;
    font-family: 'Montserrat';
}

footer a:hover {
    text-decoration: underline;
}

/* Partie du copyright */
.footer-legal {
    width: 100%;
    padding-top: 20px;
    text-align: center;
}

footer .legal p {
    color: white;
    margin: 0;
    font-family: 'Montserrat';
    font-size: 17px;
    line-height: 1.6;
}

/* Ajuste la largeur des colonnes */
footer .brand, footer .more, footer .parteners {
    width: 15%;
    height: 100%; /* Assure que toutes les colonnes remplissent la hauteur du conteneur */
}



/* Désactivation du défilement horizontal global */
body {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Menu Hamburger pour tablette et téléphone */
@media screen and (max-width: 300px) {
    /* Icône du menu hamburger visible sur tablette et téléphone */
    nav label.hamburger {
        display: block;
    }
    
    nav ul.nav-list {
        display: none;
        flex-direction: column;
        text-align: center;
        width: 100%;
        background-color: white;
    }
    
    nav ul.nav-list li {
        margin: 15px 0;
    }
    
    /* Lorsque le menu est ouvert, il devient visible */
    nav input[type="checkbox"]:checked + ul.nav-list {
        display: flex;
    }
    
    /* Ajustement du style pour la barre de navigation */
    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Slider pour tablette */
@media screen and (max-width: 1024px) {
    .slide-img {
        height: 400px; /* Taille du slider pour tablette */
    }
}

/* Slider pour téléphone */
@media screen and (max-width: 768px) {
    .slide-img {
        height: 300px; /* Taille du slider pour téléphone */
    }
}

/* Footer */
.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px;
    width: 100%; /* Assurer que le footer prend toute la largeur de la page */
    box-sizing: border-box; /* S'assurer que le padding ne dépasse pas la largeur */
    overflow-x: hidden; /* Empêcher le débordement horizontal */
}

.footer-container > div {
    flex-grow: 1;
    padding: 20px;
    border-left: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box; /* S'assurer que la largeur inclut bien le padding */
    max-width: 100%; /* Limiter la largeur des éléments pour éviter tout débordement */
}

@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        width: 100%; /* S'assurer que le footer n'a pas de débordement */
    }
    
    .footer-container > div {
        border-left: none;
        border-top: 1px solid #ccc; /* Lignes horizontales pour le format mobile */
        width: 100%; /* S'assurer que la largeur ne dépasse pas la taille de l'écran */
    }
    
    .footer-container > div:first-child {
        border-top: none;
    }
}

footer {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Empêcher le débordement lié aux paddings/marges */
    width: 100%; /* Assurer que le footer ne dépasse pas la largeur de la page */
    overflow-x: hidden; /* Empêcher le débordement horizontal du footer */
}







