body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
    cursor: none;
}

a {
    cursor: none;
}

#custom-cursor {
    position: fixed;
    left: 0;
    top: 0;
    width: 12px;
    /* diamètre du cercle externe */
    height: 12px;
    border: 2px solid white;
    /* cercle non rempli */
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 1s ease, height 1s ease, border-radius 1s ease, background-color 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cursor-dot {
    width: 12px;
    /* taille du point central */
    height: 12px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#MainButton {
    width: 7.5vh;
    height: 7.5vh;

    position: fixed;
    left: 50vw;
    top: 95vh;
    translate: -50% -50%;

    color: white;
    font-size: 3vh;
    text-align: center;

    background-color: black;
    border: 1px solid rgb(100, 100, 100);
    border-radius: 50%;

    transition: font-size 0.15s ease, transform 0.25s ease;
    cursor: none;
}

#MainButton:hover {
    font-size: 4vh;
}

#MainDiv {
    width: 100vw;
    height: 100vh;

    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    /* auto */

    background-color: rgb(26, 26, 26);
    transition: transform 0.5s ease-in-out;
    transform: translateY(0%);
}

#MainDiv.hidden {
    transform: translateY(100%);
}

#TopPanel {
    width: 100%;
    /* pour qu’il couvre toute la largeur de l’écran */
    height: 10vh;
    /* plus fiable que 10%, car vh = % de la hauteur de la fenêtre */
    position: fixed;
    /* pour qu’il reste toujours en haut de la fenêtre */
    top: 0;
    /* collé en haut */
    left: 0;
    background-color: #f5f5f5;
    /* juste pour visualiser */
    z-index: 10;
    /* au-dessus des autres panels */
}

#LeftPanel {
    width: 50vh;
    height: 100%;
    left: calc(40vw - 50vh);
    position: absolute;
    margin-top: 10vh;
    pointer-events: none;
}

#RightPanel {
    width: 80vh;
    height: 100%;
    position: absolute;
    padding: 10vh calc(50vw - 50vh) 0 45vw;

    overflow-y: scroll;
    overflow-x: hidden;
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
    scrollbar-width: none;
    /* Firefox */
}

/* --- Responsive (mobile & tablettes) --- */
@media screen and (max-width: 1215px) {
    body {
        overflow-y: auto;
    }

    #LeftPanel,
    #RightPanel {
        position: absolute;
        width: 100%;
        left: 10px;
        height: auto;
        margin: 0;
        padding: 5vh 5vw;
        left: auto;
    }

    #LeftPanel {
        width: 30%;
        height: 100%;
        left: 0;
        margin-top: 6vh;
        /* pointer-events: none; */
        z-index: 9999;
    }

    #RightPanel {
        width: 50%;
        height: 100%;
        position: absolute;
        padding: 0 10vh 0 45vw;
        margin-top: 10vh;
        z-index: 0;
        overflow-y: scroll;
        overflow-x: hidden;
        -ms-overflow-style: none;
        /* Internet Explorer 10+ */
        scrollbar-width: none;
    }

    .NavContainer {
        position: relative;
        top: 0%;
        transform: translateY(0%);
    }

    .h1-name {
        font-size: 2.5vh;
        margin: 0 0 1vh 0;
        color: white;
        font-weight: bold;
        /* pointer-events: auto; */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /* nombre max de lignes */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .h2-name {
        font-size: 1.5vh;
        margin: 0 0 1vh 0;
        color: white;
        font-weight: bold;
        /* pointer-events: auto; */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /* nombre max de lignes */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .EPButton {
        background-color: black;
        width: 110px !important;
        height: 36px !important;
        font-size: 1.3vh;
        padding: 1px 3px 0 3px !important;
    }

    .h2-title {
        font-size: 2.5vh;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /* nombre max de lignes */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .p-job-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /* nombre max de lignes */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cardProjeta {
        flex: 0 0 99% !important;
    }
}

.p-name {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* nombre max de lignes */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-inspiration {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* nombre max de lignes */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* .h1-name {
    font-size: 5.5vh;
    margin: 0 0 1vh 0;
    color: white;
    font-weight: bold;
    pointer-events: auto;
}

.h2-name {
    font-size: 3vh;
    margin: 0 0 1.5vh 0;
    color: white;
    font-weight: normal;
    pointer-events: auto;
} */

#RightPanel::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

#MouseGlow {
    width: 30vmax;
    height: 30vmax;

    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;

    background-color: rgba(255, 167, 25, 0.25);
    border-radius: 50%;
}

#MouseGlowBlur {
    width: 100%;
    height: 100%;

    position: absolute;
    backdrop-filter: blur(12vmax);
}

h1 {
    font-size: 5.5vh;
    margin: 0 0 1vh 0;
    color: white;
    font-weight: bold;
    pointer-events: auto;
}

h2 {
    font-size: 3vh;
    margin: 0 0 1.5vh 0;
    color: white;
    font-weight: normal;
    pointer-events: auto;
}

.EPIntitule {
    font-size: 1.8vh;
    margin: 0 0 0.5vh 0;
    color: white;
    font-weight: bold;
    pointer-events: auto;
}

.EPDuree {
    font-size: 1.6vh;
    margin: 0 0 1vh 0;
    color: grey;
    font-weight: normal;
    pointer-events: auto;
}

.EPDescription {
    font-size: 1.6vh;
    margin: 0 0 1vh 0;
    line-height: 1.5;
    color: grey;
    font-weight: normal;
    pointer-events: auto;
}

.EPClassement {
    font-size: 1.6vh;
    margin: 0 0 0 0;
    color: grey;
    font-weight: normal;
    pointer-events: auto;
}

.EPLiDescription {
    font-size: 1.6vh;
    margin: 0 0 1vh 0;
    margin-left: 2vh;
    line-height: 1.5;
    color: grey;
    font-weight: normal;
    pointer-events: auto;
}

.EPButton {
    background-color: white;
    /* couleur de fond de base */
    color: black;
    /* couleur du texte */
    width: 230px;
    border: 2px solid white;
    border-radius: 25px;
    /* coins arrondis */
    padding: 10px 20px;
    /* taille du bouton */
    cursor: none;
    transition: all 0.3s ease;
    /* transition douce */
}

.STCardLogo {
    display: flex;
    flex-wrap: wrap;
    align-items: left;
    padding: 5px;
    gap: 10px;
}

.STImgcardLogo {
    display: flex;
    align-items: center;
    border: 1px solid white;
    border-radius: 15px;
    padding: 7px;
    width: 148px;
}

:hover.STImgcardLogo {
    background-color: white;
    border: black;
    transition: all 0.5s ease;
}

.STImgcardLogo:hover .STTextLogo {
    color: black;
    /* texte devient noir au survol */
    transition: all 0.5s ease;
}

.STImgLogo {
    width: 50px;
    height: 50px;
    object-fit: scale-down;
    /* garde les proportions et recadre si nécessaire */
    /* border-radius: 10px;        coins arrondis de l'image */
    flex-shrink: 0;
    /* empêche l’image de se réduire */
}

.STTextLogo {
    margin: 0 0 0 1vh;
    color: white
}

.cardCertificationContainer {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 0 0;
    padding: 0 0 0 0;
}

.cardCertification {
    display: flex;
    text-align: center;
    align-items: center;
    flex-direction: column;
    border: 1px solid white;
    justify-content: space-between;
    width: 23vh;
    height: 40vh;
    margin: 10px 10px 10px 10px;
    border-radius: 25px;
    cursor: none;
    transition: all 0.5s ease;
}

.imgCertificationLogo {
    display: flex;
    /*image à côté du texte*/
    display: inline-block;
    width: 7vh;
    height: 7vh;
    object-fit: scale-down;
    /* garde les proportions et recadre si nécessaire */
    padding: 5%;
    border-radius: 100%;
    /*coins arrondis de l'image*/
    flex-shrink: 0;
}

:hover.cardCertification {
    background-color: white;
    /* fond disparaît */
    color: black;
    transition: all 0.5s ease;
    transform: translateY(-5px);
    /* la carte “monte” légèrement */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    cursor: none;
    /* ombre plus marquée */
    ;
}

/* Effet au survol */
:hover.EPButton {
    background-color: transparent;
    /* fond disparaît */
    color: white;
    /* texte prend la couleur du contour */
}

.textCertificationTitre {
    font-size: 1.6vh;
    margin: 0 0 0vh 0;
    text-align: center;
    color: white;
    font-weight: normal;
    pointer-events: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.textCertificationDescription {
    font-size: 1.4vh;
    text-align: center;
    margin: 0 5px 0 5px;
    color: grey;
    font-weight: normal;
    pointer-events: auto;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.textCertificationFin {
    font-size: 1.4vh;
    margin-top: auto;
    /* colle en bas du cadre */
    text-align: center;
    color: grey;
    font-weight: bold;
}

.cardCertificationLink {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    /* enlève le soulignement */
    color: inherit;
    /* garde la couleur du texte du parent */
    width: 100%;
    height: 100%;
}

:hover.cardCertification .textCertificationTitre {
    color: black
}

.container {
    display: flex;
    justify-content: flex-end;
    /* aligne à droite */
    align-items: center;
    cursor: none;
    /* centre verticalement */
    padding-bottom: 20px;
}

p {
    font-size: 1.6vh;
    margin: 0;
    color: gray;
    line-height: 2.5vh;
    pointer-events: auto;
}

/*
m {
    font-weight: bold;
    color: rgb(145, 145, 145);
}
*/

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

.NavItem {
    display: flex;
    align-items: center;
    margin: 20px 0;
    cursor: none;
    pointer-events: auto;
}

.NavItemDot {
    width: 1.1vh;
    height: 1.1vh;
    border-radius: 50%;
    background-color: gray;
    transition: all 0.3s ease;
}

.NavItemText {
    margin-left: 1.1vh;
    font-size: 1.6vh;
    color: gray;
    transition: color 0.3s ease;
}

.NavItem.Active .NavItemDot {
    background-color: white;
    transform: scale(1.5);
}

.NavItem.Active .NavItemText {
    color: white;
}

.Section {
    margin-bottom: 10vh;
}

.TopPanelText {
    margin-left: 1.1vh;
    font-size: 1.6vh;
    color: white;
    transition: color 0.3s ease;
}

#So {
    position: absolute;
    top: 85vh;
    transform: translateY(-100%);

    display: flex;
    justify-content: flex-start;
    gap: 2.5vh;
}

#SocialsContainer {
    position: absolute;
    top: 80vh;
    transform: translateY(-100%);

    display: flex;
    justify-content: flex-start;
    gap: 2.5vh;
}

#SocialsContainer a {
    transform: scale(1);
    filter: invert(100%) brightness(50%);
    transition: all 0.1s ease;
    pointer-events: auto;
}

#SocialsContainer a:hover {
    transform: scale(1.1);
    filter: invert(100%) brightness(100%);
}

.Project {
    margin-bottom: 0.5vh;
    padding: 0.75vh 0.75vh 0.75vh 0.75vh;
    border-radius: 0.75vh;

    display: flex;
    justify-content: space-between;
    text-decoration: none;
}

.Project:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.Project p {
    user-select: none;
    font-size: 1.4vh;
    color: gray;
}

.Separator {
    flex-grow: 1;
    border-bottom: 1px solid gray;
    margin: 0 0.75vh 0.75em 0.75vh;
}

/* Font :  */
@font-face {
    font-family: Montserrat-Thin;
    src: url(../Font/static/Montserrat-Thin.ttf);
}

@font-face {
    font-family: Montserrat-SemiBold;
    src: url(../Font/static/Montserrat-SemiBold.ttf);
}

@font-face {
    font-family: Montserrat-Light;
    src: url(../Font/static/Montserrat-Light.ttf);
}

@font-face {
    font-family: Montserrat-Regular;
    src: url(../Font/static/Montserrat-Regular.ttf);
}

@font-face {
    font-family: Montserrat-Bold;
    src: url(../Font/static/Montserrat-Bold.ttf);
}

.montserrat-thin {
    font-family: Montserrat-Thin, sans-serif;
    /* font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal; */
}

.montserrat-semibold {
    font-family: Montserrat-SemiBold, sans-serif;
}

.montserrat-bold {
    font-family: Montserrat-SemiBold, sans-serif;
}

.montserrat-light {
    font-family: Montserrat-Light, sans-serif;
}

.montserrat-regular {
    font-family: Montserrat-Regular, sans-serif;
}

.carousel-container {
    position: relative;
    width: 100%;
    margin: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    /* 🟢 empile track + dots verticalement */
    align-items: center;
    /* centre horizontalement */
    justify-content: flex-start;
    /* plus de centrage vertical */
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    /*align-items: center;
    justify-content: center; flèches bien centrées verticalement */
    overflow: hidden;
}

/* Track = cartes alignées horizontalement */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    justify-content: flex-start;
    /* 🟢 remet les cartes à gauche */
}

.cardProjet {
    display: flex;
    text-align: center;
    align-items: center;
    flex-direction: column;
    border: 1px solid white;
    justify-content: space-between;
    width: 37.3vh;
    height: 41vh;
    margin: 10px;
    border-radius: 25px;
    cursor: none;
    transition: all 0.5s ease;
    overflow: hidden;
}

.cardProjet:hover {
    transform: scale(1.03);
}

/* Boutons gauche/droite */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: none;
    color: white;
    background: none;
    border: none;
    font-size: 3rem;
    padding: 5px 5px;
    border-radius: 50%;
    z-index: 10;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.2);
}

.prev {
    left: -40px;
}

.next {
    right: -40px;
}

/* Dots en dessous */
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: gray;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: none;
}

.carousel-dot.active {
    background-color: white;
    transform: scale(1.3);
}

.projetText {
    font-size: 1.8vh;
    margin: 0 0 1vh 0;
    color: white;
    font-weight: normal;
    pointer-events: auto;
}

.cardProjetTitre {
    margin: 10px 0 0 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cardProjetParagraphe {
    margin: 5px 5px 0 5px;
    flex-grow: 1;
    /* prend l’espace restant pour pousser le bas */
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cardProjetTop {
    position: relative;
    height: 58%;
    /* 40% de la carte */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* bouton au-dessus de l'image */
    align-items: center;
}

.cardProjetBottom {
    position: relative;
    height: 42%;
    /* 40% de la carte */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* bouton au-dessus de l'image */
    align-items: center;
}

.cardProjetButton {
    position: absolute;
    background-color: #37353E;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 15px;
    margin-bottom: 10px;
    cursor: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cardProjetButton:hover {
    background-color: white;
    color: black;
    transform: translateY(-2px);
}

.cardProjetImage {
    width: 100%;
    height: auto;
    overflow: hidden;
    /* border-radius: 25px; */
    object-fit: cover;
}

.cardProjetButtonLink {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    height: 100%;
}


/* Responsive Design sur les projets : */
.carousel-containera {
    position: relative;
    /* ajuste à ton design */
    margin: 0 auto;
    overflow: visible;
    /* masque ce qui dépasse */
}

.carousel-wrappera {
    position: relative;
    width: 100%;
    max-width: 1200px;
    /* ajuste à ton design */
    margin: 0 auto;
    overflow: hidden;
    /* masque ce qui dépasse */
}

.carousel-tracka {
    display: flex;
    gap: 2%;
    /* ou 10px */
    transition: transform 0.5s ease;
}

.cardProjeta {
    flex: 0 0 calc(50% - 1%);
    /* ✅ deux cartes visibles en même temps */
    box-sizing: border-box;
    padding: 0px;
    border: 1px solid white;
    border-radius: 25px;
    /* margin: 1%; */
    /* margin-left: 1%;
    margin-right: 1%; */
    height: 41vh;
    flex-direction: column;
    justify-content: space-between;
    cursor: none;
    transition: all 0.5s ease;
    overflow: hidden;
    display: flex;
    text-align: center;
    align-items: center;
    /* margin: 5px; */
}

/*
    display: flex;
    text-align: center;
    align-items: center;
    flex-direction: column;
    border: 1px solid white;
    justify-content: space-between;
    width: 37.3vh;
    height: 41vh;
    margin: 10px;
    border-radius: 25px;
    cursor: none;
    transition: all 0.5s ease;
    overflow: hidden;*/