html {
    scroll-behavior: smooth;
}


body {
    font-family: "poppins";
    background-color: #EEEEEE;
    color: #1b2730;
    margin: 0;
    overflow-x: hidden;
}


header {
    background-color: #E8E8E8;
    text-align: center;
    color: #0f4c81;
    padding: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1.6px 4.8px grey;
}

header a,
footer a {
    text-decoration: none;
}

:is(header a, footer a):hover {
    text-decoration: underline;
}


.nav {
    display: flex;
    align-items: center;
    height: 1.25rem;
    justify-content: center;
}

.navpage {
    display: flex;
    justify-content: center;
}


.navpagesection h2 {
    color: white;
    padding: .3125rem 1.25rem;
    margin: .625rem 0rem;
    border-radius: 1.25rem;
    align-self: flex-end;
    background-color: #737373;
}



.navpage li {
    font-size: 1.875rem;
    font-weight: bold;
    margin: 0 1.25rem;
}


h2 {
    color: #484848;
    text-align: center;
    font-size: 3.125rem;
    margin-bottom: 0;
    scroll-margin-top: 5rem;
}


ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    color: white;
    padding: .3125rem 1.25rem;
    margin: .625rem 0rem;
    font-size: 1.25rem;
    border-radius: 1.25rem;
    align-self: flex-end;
}


.tag:not(:last-of-type) {
    margin-right: .625rem;

}

.scolaire {
    background-color: #FD8282;
}

.gestion {
    background-color: #17B20C;
}

.communication {
    background-color: #F582FD;
}

.personnel {
    background-color: #FF0000;
}

.video {
    background-color: #8299FD;
}

.marketing {
    background-color: #EEB931;
}

.collage {
    background-color: darkred;
}

a {
    color: #484848;
}


footer {
    background-color: #D9D9D9;
    display: flex;
    text-align: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.25rem;
}

footer p {
    margin: .3125rem;
    padding: 0;
}

/* Page projet */

.titre {
    border: 3px solid #5F5F5F;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.4),
        0 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.loneadtitre {
    background: linear-gradient(90deg, rgba(245, 184, 0, 1) 0%, rgba(28, 169, 201, 1) 100%);

}

.traildelacroixtitre {
    background: linear-gradient(90deg, rgb(85, 12, 12) 0%, rgb(20, 23, 24) 100%);
}

.auxfrontieresdureeltitre {
    background: linear-gradient(90deg, rgb(17, 122, 241) 0%, rgb(9, 192, 79) 100%);
}

.triplesfrancetitre {
    background: linear-gradient(90deg, rgb(7, 14, 152) 0%, rgb(225, 8, 8) 100%);
}

.geekdaystitre {
    background: linear-gradient(90deg, rgb(22, 173, 215) 0%, rgb(170, 122, 176) 100%);
}

.titreprojet {
    font-size: 100px;
    text-align: center;
    color: white;
    flex-grow: 1;
    margin: 0;
    padding: 0;
}


.projetgros {
    flex-wrap: wrap;
    height: 100%;
    margin: 30px 60px;
    position: relative;
    overflow: hidden;
    border: 3px solid #5F5F5F;
    border-radius: 10px;
    z-index: 1;
}

.loneadgros {

    background-image:
        linear-gradient(150deg, rgba(245, 184, 0, 1), transparent),
        linear-gradient(100deg, rgba(28, 169, 201, 1), transparent),
        linear-gradient(10deg, rgba(28, 169, 201, 1), transparent);
}

.traildelacroixgros {

    background-image:
        linear-gradient(150deg, rgb(255, 0, 0), transparent),
        linear-gradient(100deg, rgb(8, 18, 20), transparent),
        linear-gradient(10deg, rgb(40, 45, 46), transparent);

}

.auxfrontieresdureelgros {
    background-image:
        linear-gradient(150deg, rgb(69, 187, 241), transparent),
        linear-gradient(100deg, rgb(115, 216, 57), transparent),
        linear-gradient(10deg, rgb(52, 209, 65), transparent);
}

.triplesfrancegros {
    background-image:
        linear-gradient(150deg, rgb(9, 12, 166), transparent),
        linear-gradient(100deg, rgb(255, 255, 255), transparent),
        linear-gradient(10deg, rgb(224, 8, 8), transparent);
}

.geekdaysgros {
    background-image:
        linear-gradient(150deg, rgb(131, 100, 154), transparent),
        linear-gradient(100deg, rgb(130, 104, 126), transparent),
        linear-gradient(10deg, rgb(72, 162, 210), transparent);
}


.projetgros::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.5),
        0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 0;
    border-radius: inherit;
}

.projetgros * {
    position: relative;
    z-index: 1;
}


.projetgros p {
    color: white;
    font-weight: 400;
    font-size: 25px;
    text-align: justify;
    margin: 15px 50px;
}


.descriptionprojet h3 {
    color: white;
    text-align: center;
    font-size: 2.65rem;
    margin-bottom: 0;
    scroll-margin-top: 5rem;

}

.titre p {
    text-align: center;
    margin: 0;
        font-weight: 700;
}

.flechedroite {
    left: 90%;
    top: 30%;
    position: absolute;
}

.flechegauche {
    rotate: 180deg;
    right: 90%;
    top: 30%;
    position: absolute;
}

iframe {
    width: 60%;
    height: 30rem;
    border: none;
    border-radius: 8px;
}


.iframecentre {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
}


h4 {
    color: white;
    text-align: center;
    font-size: 1.9rem;
    margin-bottom: 0;
    margin: auto;
}


/*GALLERIE TEST*/
/* --- CONTENEUR GLOBAL --- */
.image-thumbnail-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px; /* Ajuste selon tes besoins */
    margin: 2rem auto;
    gap: 1.5rem;
}

/* --- ZONE AFFICHAGE PRINCIPAL --- */
.image-display {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: #333;
}

.screen {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Wrapper pour l'image et l'overlay de texte */
.main-display-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.main-display-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Garde l'image entière sans la couper */
}

/* L'overlay qui apparaît au hover en bas */
.main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 1.2rem;
    font-family: 'Poppins', sans-serif;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    backdrop-filter: blur(5px);
}

.main-display-wrapper:hover .main-overlay {
    transform: translateY(0);
}

/* --- CARROUSEL DES MINIATURES --- */
.thumbnail-carousel {
    display: flex;
    align-items: center;
    width: 100%; /* Prend toute la largeur du parent max-width */
    background: rgba(39, 39, 39, 0.4);
    border-radius: 15px;
    padding: 10px;
    gap: 10px;
}

.carousel__btn {
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    padding: 5px;
}

.carousel__btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.arrow-icon {
    width: 30px;
    height: 30px;
    fill: white;
    transition: transform 0.2s;
}

.carousel__btn:hover:not(:disabled) .arrow-icon {
    transform: scale(1.2);
}

/* Le slider qui s'étale */
.carousel__slider {
    flex: 1; /* Force le slider à prendre TOUT l'espace entre les flèches */
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Cache la barre sur Firefox */
    padding: 5px;
    justify-content: center;
}

.carousel__slider::-webkit-scrollbar {
    display: none; /* Cache la barre sur Chrome/Safari */
}

/* Style des miniatures */
.carousel__slide {
    flex: 0 0 auto;
    cursor: pointer;
    border-radius: 10px;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    padding: 2px; /* Espace pour la bordure bleue */
}

.carousel__slide.active {
    border-color: #5d75f5; /* Ton bleu de sélection */
    transform: translateY(-2px);
}

.thumbnail {
    width: 90px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}