/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin-bottom: 2px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: #000000;
}

header {
    background: #0066cc;;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    box-shadow: 0 4px 6px rgba(rgb(15, 189, 180));
}

header .logo h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}


nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #f7f7f7;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #39dad1;
}

.hero {
    background: #b4b4b48e;
    color: #000000;
    padding: 60px 0;
    text-align: center;
    animation: fadeIn 2s ease-out;
}
#home {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-align: center;
}

/* 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;
}

/*        main           */

main {
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.site-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 800px;
}

.site-list li {
    background: #4f0770;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.site-list li:hover {
    transform: translateY(-7px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.site-list a {
    background-image: url('../images/img3.jpeg'); /* Chemin vers le drapeau */
    background-size: cover; /* Adapter le drapeau au bouton */
    background-position: center;
    text-decoration: none;
    padding: 1.7rem;
    display: block;
    font-size: larger;
    color: white;
    text-align: center;
    font-weight: bold;
}
.site-list #bissau {
    background-image: url('../images/ghinebissau.png'); /* Chemin vers le drapeau */
    background-size: cover; /* Adapter le drapeau au bouton */
    background-position: center;
    text-decoration: none;
    padding: 1.7rem;
    display: block;
    font-size: larger;
    color: rgb(0, 0, 0);
    text-align: center;
    font-weight: bold;
}
.site-list a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(54, 230, 31, 0.884);
    color: #000000;
    background-repeat: rgb(32, 167, 172);
}
.site-list #a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(54, 230, 31, 0.884);
    color: yellow;
    background-repeat: rgb(32, 167, 172);
}
/*    ----------------------------------------------------------------      *

/*                      SERVICES                            */
.services {
    background-repeat: rgb(32, 167, 172);
    /*    A VOIR URGENT FAIRE ANIMATION NOS SERVICES */
    padding: 60px 20px;
    text-align: center;
    background:  #b4b4b48e;
    box-shadow: 0 0 10px rgb(27, 62, 160);
}

.servicewelcome1 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: x-large;
    padding: 30px 10px;
    text-align: center;
    color: white;
    background: #4f0770;
    box-shadow: 0 0 10px rgb(89, 11, 233);
}

.services h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.service-item {
    display: inline-block;
    width: 30%;
    margin: 5%;
    background-color: #4f0770;
    color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px #3807be;
    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: #2427f1;
    /* Changer la couleur de fond */
    color: white;
    /* Changer la couleur du texte */
}

#linklus {
    color: white;
}

.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 */
}


/*           -------------------------------------------------------- */

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;
}


.gallery {
    padding: 30px 0;
    text-align: center;
    background: #eee;
}

.gallery h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/*                  images                                */
.zoom-image {
    width: 300px;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease; /* Animation lors du zoom */
    cursor: pointer;
}
#zoom:hover .zoom-image {
    transform: scale(1.4); /* Agrandit l'image au survol */
}

/*  ------------------------------------------------ */
.gallery-images {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}
.gallery-images img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    margin: 15px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(22, 19, 202, 0.801);
}

/*              VIDEO                                 */
.vid_sig {
    font-family: Arial, sans-serif;
    margin-left: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20%;
    height: 15%;
    background-color: #f0f0f0;
    cursor: crosshair;
}
video {
    max-width: 30%;
    max-height: 20%;
}
/*  ------------------------------------------------  */

.contact button:hover {
    background: #b40f0f;
    margin-right: center ;
}
/*             ---------------------       */

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: #0066cc;;
    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;
}


/* 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: rgb(6, 6, 138);
    color: #914F1E;
    padding: 10px 15px;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 156%;
    margin-right: 100%;
}

.cta-btn1 {
    background-color: rgb(6, 6, 138);
    color: #914F1E;
    padding: 10px 15px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 156%;
    margin-left: 10%;
}

.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: -4.5%;
    margin-right: 25px;
    position: absolute;
}
/* Logo */
.monlogo {
    width: 100px; /* Ajuste la taille du logo */
    height: auto;
    border-radius: 50%;
    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 */
    border-radius: 50%;
}
/* 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 */
}
/*  -----------------------------------------------------------  */


#footer {
    text-align: center;
    padding: 2rem;
    background: #333;
    color: white;
    font-size: 1.2rem;
}

.heart {
    color: red;
}

#remerciement {
    font-size: larger;
    text-align: center;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}