/* Reset de base */

header {
    background: #10078ac4;
    color: #fff;
    text-align: center;
    padding: 10px 0; 
    margin-top: 2px;
    box-shadow: 0 4px 6px rgb(40, 113, 197);
}

header .logo h1 {
    font-size: 2.1rem;
    margin-bottom: 6px;
}

#map {
    margin-bottom: 15px;
    margin-top: 20px;
    width: 100%;
    height: 80%;
    padding: 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #4F6F52;
}


/* Animation de l'en-tête */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    animation: slideIn 1s ease-out;
}


/*           -------------------------------------------------------- */


/*      ------------------------------          */
/* Styles Responsive */
@media (max-width: 768px) {
    .service-item {
        width: 100%;
        margin: 10px 0;
    }

    nav ul {
        flex-direction: column;
    }

    .carousel-container img {
        width: 100%;
    }
}





/*                    */
/* Animation de fade-in lors du défilement  --> welcome */
.fade-in {
    color: #000000;
    margin-top: 5%;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajout d'un effet de décalage lors du défilement */
.fade-in:nth-child(1) {
    animation-delay: 0.3s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.6s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.9s;
}



/*                    MON LOGO MAROC                       */
/* Conteneur du logo */
.logo-container {
    margin-top: -3.5%;
    margin-right: 25px;
    position: absolute;
}
/* Logo */
.monlogo {
    width: 100px; /* Ajuste la taille du logo */
    height: auto;
    transition: transform 0.3s ease-in-out; /* Transition pour l'effet de zoom */
}
/* Animation au survol */
.logo-container:hover .logo {
    transform: scale(1.2) rotate(15deg); /* Zoom et rotation au survol */
}
/* Animation de la rotation continue du logo */
@keyframes rotateLogo {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* Applique une rotation continue au logo */
.logo-container {
    animation: rotateLogo 10s linear infinite; /* Rotation continue toutes les 10 secondes */
}
/*  -----------------------------------------------------------  */
