/* Reset de base */
/* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
    */




header .logo h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}/*
#name1{
    margin-left: 35%;
}
#name2{
    margin-left: 40%;
}
#text1{
    font-family: Arial, Helvetica, sans-serif;
    font-size: large;
    margin-left: 90px;
    margin-right: 90px;
    text-align: center;
    padding: 20px 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: #d1b726;
}

.hero {
    background: 79AC78;
    color: #000000;
    padding: 60px 0;
    text-align: center;
    animation: fadeIn 2s ease-out;
}

/* Animation de l'en-tête */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* style d'information quiz         */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin-bottom: 350px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;

    line-height: 1.6;
    background-color: #E5D9B6;
    color: #000000;
}

header {
    background: #638C6D;
    color: #ece929;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
    box-shadow: 0 2px 3px rgba(rgb(235, 156, 10));
    
    animation: slideIn 1s ease-out;
}


h1, h2 {
    color: #333;
    text-align: center;
}

.identification-container, .quiz-container, .results-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 80%;
    max-width: 600px;
}

label {
    display: block;
    margin-bottom: 10px;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #638C6D;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
}

button:hover {
    background-color: #2b13b3;
}

.question {
    margin-bottom: 20px;
}

.quiz-container, .results-container {
    display: none;
}











footer {
    background: #914F1E;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.back-to-top {
    position: fixed;
    bottom: 10px;
    right: 20px;
    background-color: #638C6D;
    color: white;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 50%;
    display: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.back-to-top:hover {
    background-color: #0056b3;
}



/*      OPTIMISATION FOR MOBILE     */
@media (max-width: 768px) {
    .service-item {
        width: 100%;
        margin: 10px 0;
    }

    nav ul {
        flex-direction: column;
    }
}

/* Styles Responsive */
@media (max-width: 768px) {
    .service-item {
        width: 100%;
        margin: 10px 0;
    }

    nav ul {
        flex-direction: column;
    }

    .carousel-container img {
        width: 100%;
    }
}



/*                    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 */
}
/*  -----------------------------------------------------------  */