/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#body {
    line-height: 1.6;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}
#headerinfo {
    background-color: #1565b6;
    color: white;
    padding: 20px 0;
    margin-top: 40px;
    box-shadow: 0 4px 6px rgba(rgb(255, 166, 0));
    text-align: center;
}
h1 {
    font-size: 2.5em;
}

section {
    padding: 20px;
    margin: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}






/*header {
    background: #638C6D;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    box-shadow: 0 4px 6px rgba(rgb(255, 166, 0));
}*/

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: #000000;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: 4F6F52;
}

.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);
    }
}

header {
    animation: slideIn 1s ease-out;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 10px;
}

/*                      SERVICES    --> NOS SERVICES + AFFICHAGE + OBJECTIF         */
.services {
    background-repeat: RED;
    /*    A VOIR URGENT FAIRE ANIMATION NOS SERVICES */
    padding: 60px 20px;
    text-align: center;
    background: 4F6F52;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.services h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.service-item {
    display: inline-block;
    width: 30%;
    margin: 5%;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    transform: scale(1.05);
    /* Agrandissement de l'élément */
    background-color: #DF6D2D;
    /* Changer la couleur de fond */
    color: white;
    /* Changer la couleur du texte */
}

.service-item h3,
.service-item p {
    transition: transform 0.3s ease;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    transform: translateY(-10px);
    /* Déplacer le titre vers le haut */
}

.service-item:hover p {
    transform: translateY(10px);
    /* Déplacer la description vers le bas */
}


/*           -------------------------------------------------------- */


/*  corousel = images; */
.carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.carousel-container {
    display: flex;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.carousel-container img {
    width: 100%;
    max-width: 600px;
    height: auto;
    transition: transform 0.5s ease;
}

button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}

.gallery {
    padding: 50px 0;
    text-align: center;
    background: #7723c7;
}

.gallery h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/*                  images de carte taghazout                           */
.zoom-image {
    width: 100px;
    height: 50px;
    object-fit: cover;
    transition: transform 0.3s ease; /* Animation lors du zoom */
    cursor: pointer;
}
#zoom:hover .zoom-image {
    transform: scale(1.1); /* Agrandit l'image au survol */
}

/*  ------------------------------------------------ */
.gallery-images {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}
.gallery-images img {
    width: 700px;
    height: 500px;
    object-fit: cover;
    margin-left: 25%;
    margin-right: 20%;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}



.gallery1 {
    padding: 50px 0;
    text-align: center;
    background: #7723c7;
}
.gallery-images1 {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}
.gallery-images1 img {
    width: 1000px;
    height: 140px;
    object-fit: cover;
    margin-left: 65px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.zoom-image1 {
    width: 100px;
    height: 50px;
    object-fit: cover;
    transition: transform 0.3s ease; /* Animation lors du zoom */
    cursor: pointer;
}
#zoom1:hover .zoom-image1 {
    transform: scale(1.1); /* Agrandit l'image au survol */
}

#h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1565b6;
    margin-left: 550px;
}
#h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1565b6;
    margin-left: 480px;
}
#h4 {
    margin-left: 580px;
}
#h5 {
    margin-left: 680px;
}
#margetable{
    margin-left: 380px;
}
#note {
    color: #0d053a;
    font-size: large;
    border: solid rgb(92, 71, 2);
    background-color: rgb(233, 137, 27);
    margin-left: 110px;
    margin-right: 90px;
}
/*              VIDEO                                 */
.vid_taghaz {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
    margin-left: 280px;
    background-color: #f0f0f0;
    cursor: crosshair;
}
video {
    max-width: 80%;
    max-height: 80%;
}
/*  ------------------------------------------------  */


/*            contact              */
.contact {
    padding: 60px 20px;
    text-align: center;
    background: #fff;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact button {
    width: 15%;
    padding: 15px;
    background-color: #914F1E;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
    margin-top: 135%;
    margin-right: center ;
}

.contact button:hover {
    background: #b40f0f;
    margin-right: center ;
}
/*             ---------------------       */

#footer {
    background: #003366;
    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: #1565b6;
}


/* Animation des services */
.service-item {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.service-item:nth-child(1) {
    animation-delay: 0.3s;
}

.service-item:nth-child(2) {
    animation-delay: 0.6s;
}

.service-item:nth-child(3) {
    animation-delay: 0.9s;
}


/*  bouton de quiz */
.cta {
    background-color: #F7DCB9;
    padding: 40px 0;
    text-align: center;
    color: #914F1E;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-btn {
    background-color: #DEAC80;
    color: #914F1E;
    padding: 10px 15px;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 146%;
    margin-right: 100%;
}

.cta-btn1 {
    background-color: #DEAC80;
    color: #914F1E;
    padding: 10px 15px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 146%;
    margin-left: 9%;
}

.cta-btn:hover {
    background-color: #638C6D;
    color: #E7FBB4;
}

.cta-btn1:hover {
    background-color: #914F1E;
    color: #F7DCB9;
}

/*      ------------------------------          */



/*      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%;
    }
}





/*                    */
/* 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;
}

/*        arcgis etudiant lus           */
#arcgis{
    background-color: #409242de; 
    color: white;
    background: A4BE7B;
    color: #000000;
    padding: 15px 0;
    text-align: center;
    font-size: x-large;
}
/*    pROF MEHDI        */
.btn_arcgis2{
    color: black;
    background: linear-gradient(45deg, #52b953de, #E7FBB4);
    transform: scale(2.05);
    padding: 2px 0;
    margin-left: 45%;
    font-size: large;
}
.btn_arcgis1{
    background: linear-gradient(45deg, #E7FBB4, #52b953de);
    color: black;
    transform: scale(2.05);
    padding: 1px 0;
    margin-left: 16%;
    font-size: large;
}
.btn_arcgis3{
    background: linear-gradient(45deg, #52b953de, #E7FBB4);
    color: black;
    transform: scale(2.05);
    padding: 1px 0;
    margin-left: 16.5%;
    font-size: large;   
}
.btn_arcgis4{
    background: linear-gradient(45deg, #52b953de, #E7FBB4);
    color: black;
    transform: scale(2.05);
    padding: 1px 0;
    margin-left: 18.5%;
    font-size: large;   
}
.btn_arcgis5{
    background: linear-gradient(45deg, #52b953de, #E7FBB4);
    color: black;
    transform: scale(2.05);
    padding: 1px 0;
    margin-left: 13.5%;
    font-size: large;   
}
.btn_arcgis6{
    background: linear-gradient(45deg, #52b953de, #E7FBB4);
    color: black;
    transform: scale(2.05);
    padding: 1px 0;
    margin-left: 10.5%;
    font-size: large;   
}



/*                    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;
    border-radius: 60%;
    display: block;
    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 */
}
/*  -----------------------------------------------------------  */



