/* Reset général */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background-color: #4db6ac;
    color: white;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .logo img {
    height: 90px;
    width: auto;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar li {
    margin: 0 20px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: black;
}

.nav-links{
    text-align: center;
}

/* Footer */
.footer {
    background-color: #4db6ac;
    color: white;
    text-align: center;
    padding: 20px;
    width: 100%; /* S'assure que le footer occupe toute la largeur */
    position: relative;
    bottom: 0;
    margin-top: auto; /* Cela permet au footer de rester en bas de page */
}
/* Section Réalisation */
.realization-section {
    margin-top: 120px;
    padding: 50px 20px;
    display: grid;
    grid-template-areas: 
        "tools description"
        "gallery gallery";
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    flex: 1; /* Assure que cette section prend de la place */
}

.box {
    padding: 20px;
    background: white;
    border-radius: 12px; /* Coins arrondis */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Ajoute un effet au survol */
    position: relative;
}

.box {
    padding: 20px;
    background: white;
    border-radius: 12px; /* Coins arrondis */
    transition: transform 0.3s ease; /* Animation au survol, sans ombre */
    position: relative;
}



/* Titres des sections */
.box h2 {
    font-size: 1.5rem;
    color: white;
    background-color: #3a9188;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* Logiciels utilisés */
.tools-box ul {
    list-style: none;
    padding: 0;
    display: flex; /* Affiche les logos en ligne */
    gap: 15px; /* Ajoute de l'espace entre les logos */
    justify-content: center; /* Centre les logos dans la box */
    margin-top: 35px;
}

.tools-box li img {
    width: 80px; /* Taille uniforme pour tous les logos */
    height: auto; /* Respecte les proportions */
    border-radius: 8px; /* Coins légèrement arrondis */
    transition: transform 0.3s ease; /* Animation douce au survol */
}

.tools-box li img:hover {
    transform: scale(1.1); /* Légère mise en avant au survol */
}


/* Description du projet */
.description-box {
    grid-area: description;
    background-color: #fff4e6;
    border-left: 6px solid #407ec9;
    max-width: 800px; /* Limite la largeur de la description */
    margin: 0 auto; /* Centrer la box horizontalement */
}

.description-box p {
    margin-top: 20px;
    line-height: 1.8;
}

/* Galerie */
.gallery-box {
    grid-area: gallery;
    background-color: #eef7ff;
    border-left: 6px solid #407ec9;
    height: 450px; /* Augmente la hauteur de la galerie */
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow-y: auto;
    padding: 20px;
    position: relative;
}

.sliding-gallery img {
    width: auto;
    height: 100%;
    object-fit: cover; /* Ajustement sans déformation */
    border-radius: 10px; /* Coins arrondis */
    /* Supprimer la ligne suivante */
    /* box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); */
}



.sliding-gallery {
    position: relative;
    overflow: hidden; /* Cache tout ce qui dépasse de la box */
    width: 100%;
    height: 50%; /* Assure que la galerie occupe tout l'espace disponible */
    background: #eef7ff;
}

.sliding-gallery-track {
    display: flex;
    gap: 15px; /* Ajoute un espace de 15px entre chaque image */
    transform: translateX(0);
    will-change: transform;
}

.sliding-gallery img {
    width:90%; /* Ajustement automatique en largeur */
    height: 100%; /* Les images remplissent toute la hauteur */
    border-radius: 10px; /* Ajoute des coins arrondis */
}

.sliding-gallery::-webkit-scrollbar {
    display: none; /* Cache la barre de scroll sous Webkit (Chrome, Safari, etc.) */
}

.sliding-gallery {
    -ms-overflow-style: none; /* Cache la barre de scroll sous Internet Explorer/Edge */
    scrollbar-width: none; /* Cache la barre de scroll sous Firefox */
}

@keyframes slide-continuous {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.video-box {
    grid-area: gallery;
    background-color: #eef7ff;
    border-left: 6px solid #407ec9;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}


.video-box video {
    width: 100%; /* La vidéo prend toute la largeur disponible */
    height: auto; /* Ajuste la hauteur proportionnellement */
    border-radius: 12px; /* Coins arrondis */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Ombre légère pour la vidéo */
}

