* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

@font-face {
    font-family: 'Boldonse' ;
    src: url(font/Boldonse-Regular.ttf);
}

@font-face {
    font-family: 'BebasNeue' ;
    src: url(font/BebasNeue-Regular.ttf);
}

/* BODY */
body {
    font-family: Arial, sans-serif; 
    background-color: #000; 
    color: #fff; 
}





/* HEADER */
header {
    background-color: #8C1C31; 
    max-width: 90%; 
    margin: 20px auto; 
    border-radius: 15px; 
    padding: 20px 30px;
}

nav {
    display: flex; 
    justify-content: space-between;
    align-items: center; 
}

.nav-logo {
    list-style: none; 
    margin: 0; 
    padding: 0; 
}


.nav-links {
    display: flex; 
    list-style: none; 
    margin: 0;
    padding: 0;
    font-family: 'Boldonse';
}

.nav-links li {
    margin-right: 20px;
}

.nav-links a {
    font-size: 18px; 
    color: white; 
    text-decoration: none;
    padding: 5px 10px; 
    transition: color 0.3s ease, background-color 0.3s ease; 
}

.nav-links a:hover {
    color: #000;
}

.nav-links li::after {
    content: ""; 
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #A4CEED; 
    transition: width 0.3s ease; 
}

.nav-links li:hover::after {
    width: 100%; 
}


.nav-logo {
    list-style: none; 
    margin: 0; 
    padding: 0; 
    margin-left: 20px; 
}

.nav-logo img{
    width: 3vw;
    height: auto;
}

.nav-logo li::after {
    content: ""; 
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #A4CEED; 
    transition: width 0.3s ease; 
}

.nav-logo li:hover::after {
    width: 100%;
}




/* BODY */
body{
    overflow-x: hidden;
}

.hero {
    position: relative;
    text-align: center;
    padding: 3rem 1rem;
    top: 7vh;
}

.hero h1{
    color: #8C1C31; 
    font-size: 9rem;
    line-height: 1.5;
    margin-top: 2%;
    font-family: 'Boldonse';
}

.hand {
    position: absolute; 
    top: 50%;
    transform: translateY(-50%); 
}

.left-hand {
    left: -50px; 
    z-index: 1; 
    width: 38%;
    top: 23vh;
}

.right-hand {
    right: -50px; 
    z-index: -1; 
    width: 38%;
    top: 45vh;
}

.arrow-down {
    display: flex;
    justify-content: center;
    margin-top: 1rem; 
    color: #A4CEED; 
    animation: bounce 1.5s infinite; 
    margin-top: 10vh;
}


@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}


/* Projet1 */

.projet{
    margin-top: 18vh;
    display: flex;
    flex-direction: column;
    gap: 6vh;
}

.projet__titre{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-bottom: 10vh;
}

.projet__titre h2{
    color: #8C1C31;
    text-align: center;
    font-size: 3rem;
    box-shadow: inset 0 -15px 0 rgba(164, 206, 237, 1);
    padding: 0 10px;
    width: fit-content;
    font-family: 'BebasNeue';
}

.projet__{
    align-items: center;

}


.projet__text{
    display: flex;
    flex-direction: column;
    gap: 3vh;
    width: 45%;
}

.projet__img{
    width: 30%;
}

.projet__img img{
    width: 100%;
    border-radius: 40px;
}

/* Bleu */
.projet__bloc__bleu{
    display: flex;
    justify-content: space-around;
    background-color: #A4CEED;
    border-radius: 40px;
    width: 80%;
    height: 55vh;
    margin: 0 auto;
    align-items: center;
}


.projet__titre__bleu{
    color: #000;
    font-size: 2rem;
    margin: 0;
}

.projet__texte__bleu{
    color: #000;
    font-size: 1.5rem;
    margin: 0;
}

.projet__btn__bleu{
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 10px;
    color: #000000;
    background-color: #8C1C31;
    transition: 0.5s;
    font-size: 1.5rem;
    width: fit-content;
}

.projet__btn__bleu:hover{
    color: #8C1C31;
    background-color: #A4CEED;
    box-shadow: 0 0 5px 5px #8C1C31;
    cursor: pointer;
}

.date_bleu{
    color: #000000;
    margin-top: -20px;
}


/* Rouge */
.projet__bloc__rouge{
    display: flex;
    justify-content: space-around;
    background-color: #8C1C31;
    border-radius: 40px;
    width: 80%;
    height: 55vh;
    margin: 0 auto;
    align-items: center;
}


.projet__titre__rouge{
    color: #fff;
    font-size: 2rem;
    margin: 0;
}

.projet__texte__rouge{
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
}

.projet__btn__rouge{
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 10px;
    color: #8C1C31;
    background-color: #fff;
    transition: 0.5s;
    font-size: 1.5rem;
    width: fit-content;
}

.projet__btn__rouge:hover{
    color: #fff;
    background-color: #8C1C31;
    box-shadow: 0 0 5px 5px #fff;
    cursor: pointer;
}

.date_rouge{
    color: #fff;
    margin-top: -20px;
}


/* Blanc */
.projet__bloc__blanc{
    display: flex;
    justify-content: space-around;
    background-color: #fff;
    border-radius: 40px;
    width: 80%;
    height: 55vh;
    margin: 0 auto;
    align-items: center;
}


.projet__titre__blanc{
    color: #8C1C31;
    font-size: 2rem;
    margin: 0;
}

.projet__texte__blanc{
    color: #8C1C31;
    font-size: 1.5rem;
    margin: 0;
}

.projet__btn__blanc{
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 10px;
    color: #8C1C31;
    background-color: #A4CEED;
    transition: 0.5s;
    font-size: 1.5rem;
    width: fit-content;
}

.projet__btn__blanc:hover{
    color: #A4CEED;
    background-color: #fff;
    box-shadow: 0 0 5px 5px #A4CEED;
    cursor: pointer;
}

.date_blanc{
    color: #8C1C31;
    margin-top: -20px;
}


/* Délimitation image */
.del__img{
    margin-top: 20vh;
}

.del__img div{
    display: flex;
    justify-content: center;
    height: 43vh;
}

.del__img img{
    height: 100%;
}



/* Carousel */
.carousel__big{
    margin-top: 15vh;
    padding-bottom: 7vh;
}

.carousel__big__titre{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-bottom: 7vh;
}

.carousel__big__titre h2{
    color: #8C1C31;
    text-align: center;
    font-size: 3rem;
    box-shadow: inset 0 -15px 0 rgba(164, 206, 237, 1);
    padding: 0 10px;
    width: fit-content;
    font-family: 'BebasNeue';
}

.carousel-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.carousel {
    display: flex;
    gap: 20px;
    padding: 0 10%;
    position: relative;
}

.carousel-item {
    flex: 0 0 auto;
    width: 200px;
    height: 268px;
    cursor: pointer;
    position: relative;
    /* Animation uniquement sur la taille */
    transition: width 0.7s ease-in-out, 
               height 0.7s ease-in-out,
               opacity 0.7s ease-in-out;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-item.active {
    width: 400px;
    height: 536px;
    z-index: 2;
}

.carousel-item:not(.active) {
    opacity: 0.7;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 1);
    background: rgba(140, 28, 49, 1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 3;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}


/* FOOTER */

footer{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background-color: #8C1C31;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    height: 25vh;
    width: auto;
    align-items: flex-start;
}

.footer div{
    margin-top: 5vh;
}

.footer li{
    list-style: none;
}

.footer a{
    text-decoration: none;
    color: #fff;
}

.social__btn{
    display: flex;
    gap: 10px;
}

.social__btn img{
    width: 4vw;
    height: auto;
}

footer ul{
    padding-inline-start: 0;
}

footer h4 {
    color: #fff;
    margin-bottom: 20px; 
    position: relative; 
    font-size: 1.5rem;
    font-family: 'BebasNeue';
}

footer a{
    font-size: 1.2rem;
}

.footer h4::after {
    content: "";
    position: absolute;
    bottom: -10px; 
    left: 0; 
    width: 100%;
    height: 1px; 
    background-color: #fff;
}

/* ---------------- RESPONSIVE INDEX ---------------- */

/* Tablette (<= 1024px) */
@media screen and (max-width: 1024px) {
    /* Hero */
    .hero h1 {
        font-size: 6rem;
        text-align: center;
    }

    /* Projets */
    .projet__bloc__bleu,
    .projet__bloc__rouge,
    .projet__bloc__blanc {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 40px 20px;
        height: auto;
        width: 80%;
        margin: 0 auto 50px auto;
    }

    .projet__text {
        width: 80%;
        text-align: justify;
    }

    .projet__img {
        width: 60%;
    }

    /* Délimitations */

    .del__img {
        display: none;
    }


    /* Carousel */
    .carousel-container {
        height: auto;
        padding: 50px 0;
    }

    .carousel {
        gap: 20px;
    }

    .carousel-item {
        width: 180px;
        height: 240px;
    }

    .carousel-item.active {
        width: 280px;
        height: 380px;
    }
    

    /* Footer */
    footer {
        flex-wrap: wrap;
        height: auto;
        padding: 20px;
        text-align: center;
    }
    .footer div {
        margin-top: 20px;
        width: 100%;
    }
    .social__btn {
        justify-content: center;
    }
}

/* Mobile (<= 768px) */
@media screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 30px;
        margin-left: -10px;
    }

    .nav-logo img {
        width: 60px;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    /* Hero */
    .hero h1 {
        font-size: 2.5rem;
        text-align: center;
        margin-top: 5vh;
    }
    .hand {
        display: none; /* supprime les mains */
    }

    /* Projets */
    .projet__bloc__bleu,
    .projet__bloc__rouge,
    .projet__bloc__blanc {
        width: 90%;
        gap: 20px;
        align-items: baseline;
    }

    .projet__img {
        width: 80%;
    }

    .projet__text {
        width: 90%;
        font-size: 1rem;
        text-align: justify;
    }

    .projet__bloc__bleu a,
    .projet__bloc__rouge a,
    .projet__bloc__blanc a{
        font-size: 2rem;
        padding: 15px 20px;
    }

    /* Délimitations */

    .del__img {
        display: none;
    }

    /* Carousel */

    .carousel__big__titre h2{
        display: inline-block;   /* limite la largeur à celle du texte */

    }

    .affiches-container {
        gap: 10px;
    }

    .affiche {
        flex: 0 0 90%; /* toujours 75% */
        max-width: 90%;
    }

    .affiche img {
        border-radius: 12px;
    }

    .affiche-btn {
        font-size: 4rem;
        padding: 25px 35px;
    }


    /* Footer */
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .social__btn img {
        width: 40px;
    }
}


/* ---- MENU BURGER ---- */

.burger {
    display: none; /* caché sur PC */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.burger span {
    display: block;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    transition: 0.3s;
}

/* Mobile uniquement */
@media screen and (max-width: 768px) {
    .burger {
        display: flex; /* affiché */
    }

    .nav-links {
        z-index: 1;
        position: absolute;
        top: 160px;
        right: 60px;
        background: #8C1C31;
        border-radius: 10px;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        display: none; /* caché par défaut */
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        display: flex; /* affichage quand actif */
    }

    .nav-links a {
        font-size: 1.2rem;
        color: #fff;
    }
}

/* Animation burger → croix */
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}







































































































.img{height: 370px;}