* {
    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; 
    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%;
}

.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%; 
}


/* 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: 30%;
    top: 25vh;
}

.right-hand {
    right: -50px; 
    z-index: 1; 
    width: 30%;
    top: 62vh;
    overflow: hidden;
}

.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);
    }
}


/* Presentation */
.presentation-section{
    margin-top: 18vh;
    position: relative;
}


.titre__pres{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

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


.texte__pres{
    width: 50%;
    margin-left: 10vh;
    margin-top: 15vh;
    position: relative;
    z-index: 2;
}

.texte__pres p{
    margin-bottom: 5vh;
    font-size: 1.6rem;
}

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

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


.image__pres{
    position: relative;
    width: 100%;
    margin-top: -50vh;
    z-index: 1;
}

.image__pres img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* Compétences */
.competence-section{
    padding-top: 30vh;
}

.titre__compet{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

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

.marquee-w {
    position: relative;
    display: block;
    width: 1250px;
    height: 140px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    margin-top: 15vh;
    
}
.marquee {
    position: absolute;
    display: block;
    margin: auto auto;
    white-space: nowrap;
    overflow: hidden;
    min-width: 100%;
    height: 100%;
}
.marquee span {
    display: inline-block;
    padding-left: 100%;
    font-family: 'poppinsbold';
    text-align: center;
    white-space: nowrap;
    min-width: 100%;
    height: 100%;
    line-height: 140px;
    font-size: 85px;
    animation: marquee 14.0625s linear infinite;
}
.marquee2 span {
    animation-delay: 7.03125s;
}
@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100%, 0);
    }
}

.marqui-w {
    position: relative;
    display: block;
    width: 1250px;
    height: 140px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    margin-top: 20vh;
    margin-top: -2vh;
    
}

.marqui {
    position: absolute;
    display: block;
    margin: auto auto;
    white-space: nowrap;
    overflow: hidden;
    min-width: 100%;
    height: 100%;
}

.marqui span {
    display: inline-block;
    padding-left: 100%;
    font-family: 'poppinsbold';
    text-align: center;
    white-space: nowrap;
    min-width: 100%;
    height: 100%;
    line-height: 140px;
    font-size: 85px;
    animation: marqui 14.0625s linear infinite;
}

.marqui2 span {
    animation-delay: 7.03125s;
}

@keyframes marqui {
    0% {
        transform: translate(-100%, 0);
    }
    100% {
        transform: translate(0, 0);
    }
}


/* Projets */
.projet-section{
    padding-top: 30vh;
}

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

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

.img_pres{
    display: flex;
    justify-content: center;
    gap: 20px;
}

.img_pres div{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn__projet{
    padding-top: 5vh;
    padding-bottom: 15vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn__projet a{
    align-items: center;
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 10px;
    color: #fff;
    background-color: #8C1C31;
    transition: 0.5s;
    font-size: 1.5rem;
}

.btn__projet a:hover{
    color: #8C1C31;
    background-color: #000;
    box-shadow: 0 0 5px 5px #8C1C31;
    cursor: pointer;
}


/* 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 ---------------- */

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

    .nav-links a {
        font-size: 16px;
    }

    .texte__pres {
        width: 80%;
        margin: 5vh auto;
        text-align: center;
    }

    .texte__pres p {
        font-size: 1.5rem;
    }

    .image__pres {
        margin-top: 0;
    }

    .marquee span,
    .marqui span {
        font-size: 50px;
        line-height: 100px;
    }

    .img_pres {
        flex-direction: column;
        align-items: center;
    }
    .img_pres div {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .img_pres img {
        max-width: 45%;
    }

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

/* Mobile (max 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 h1 {
        font-size: 2.5rem;
    }
    .hand {
        display: none; /* supprime les mains sur petit écran */
    }

    .texte__pres {
        width: 90%;
        font-size: 1rem;
        text-align: justify;
    }
    .btn__pres {
        font-size: 1.2rem;
        padding: 10px 15px;
    }

    .marquee span,
    .marqui span {
        font-size: 30px;
        line-height: 0px;
    }

    .img_pres img {
        max-width: 90%;
    }

    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .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);
}








