@font-face {
  font-family: "MarketFelt";
  src: url("/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --main-color: rgb(36, 36, 36);
  --second-color: rgba(95, 91, 91, 0.384);


  --rappel-color:rgba(87, 164, 184, 0.205);
    --rappel-color-hover:rgba(87, 164, 184, 0.105);

  --main-text-color:rgb(205, 207, 207);
    --active-text-color:rgb(125, 158, 165);
  --main-border-radius : 15px;
}


::-webkit-scrollbar-track{
    background:var(--second-color);
    border-radius: var(--main-border-radius);
}

::-webkit-scrollbar-thumb{

        background:var(--rappel-color-hover);
    border-radius: var(--main-border-radius);
}

::-webkit-scrollbar-thumb:hover{
    background:var(--active-text-color);
}

::-webkit-scrollbar{
    width:10px;
}

body{
    background-color:var(--main-color);
    text-align: center;
    padding-top:12.5vw;
    font-family: "MarketFelt", system-ui, sans-serif;

}

html, body {
    overflow-x: hidden;
}




h1{
    font-size: clamp(2rem, 5vw, 5rem);
    margin-top:0;
}

p{
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
}

strong{
    color: var(--active-text-color);
}

p, h1, a{
    -webkit-background-clip: text;
    background-clip: text;
    color:var(--main-text-color);
    text-decoration: none;
}


.presentation:hover, .project:hover, .profil:hover{
box-shadow: 1px 1px 25px -2px rgba(255,255,255,1);
-webkit-box-shadow: 1px 1px 25px -2px rgba(255,255,255,1);
-moz-box-shadow: 1px 1px 25px -2px rgba(255,255,255,1);
}

.ProjectTitle{
    position:absolute;
    background-color: var(--second-color);
    border-radius: var(--main-border-radius);
    padding:0em 1em;
    transform:translateY(-110%);

    opacity:0;
    transition: 0.25s ease;
}


.projectHighLight:hover .ProjectTitle {

    opacity:1;
}

.langues{
    position:fixed;
    top:0;
    right:0;
    margin:1em 2em;
    padding:1em;
    display:flex;
    flex-direction: row;
        z-index: 10;

    border-radius: var(--main-border-radius);
    background-color: var(--second-color);
}

.langues p{
    -webkit-background-clip: revert;
    margin:0px;
    padding:0.5em 1em;
    color:var(--main-text-color);
    border-radius: var(--main-border-radius);
    cursor: pointer;
    transition:all 0.3s;
}

.langues p:hover:not(.langue-active){
    background-color: var(--rappel-color-hover);
}
.langues .langue-active{
    background-color: var(--rappel-color);
}



.overlay{
        position: fixed;
    inset: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;


}

.overlay-show{
    opacity: 1;
    pointer-events: all;;
}
.calendar {
    transform-origin: center;
}

.social {
    display: grid;
    align-items: center;
    width: 100%;
    margin-top:5em;
    margin-bottom:3em;
    overflow: hidden;
}

.link{
    display:grid;
    gap:10px;
}

.profil .link a {
    all:unset;
    display:inline-flex;

    border-radius: var(--main-border-radius);
    background: var(--rappel-color);
    color: var(--main-text-color);

    font-size:1.5vw;
    width:10em;
    margin:auto;

    padding:0.3em 1em 0.3em 1em;
    

}
.profil .link a img {
    width: 1vw;
    height: 1vw;
    object-fit: contain;
    margin:0px;
    margin-right:3em;
    transition:all 0.2s;
}

.profil .link a:hover {
    transform: scale(0.95);
    transition:all 0.2s;
}




.calendar{
    transform: scale(0.7);
    margin-bottom: -7em;
    overflow: hidden;
    border-radius: var(--main-border-radius);
    background-color: var(--second-color);
    display: inline-block;

}


.calendar .contrib-number, .hide-sm.hide-md.hide-lg.tmp-p-3.color-bg-accent-emphasis.color-fg-on-emphasis.show-on-focus, .contrib-column.table-column, .calendar span, .sr-only, 
.float-right.color-fg-muted.d-flex.flex-items-center {
    display: none;
}

.calendar .ContributionCalendar-day {
    rx: 3;
    ry: 3;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.calendar .ContributionCalendar-day:hover {
    transform: scale(1.3);
    opacity: 1;
}


.scrollBar{
    border : 7px solid var(--rappel-color);
    border-radius: var(--main-border-radius);
    margin:20px;
    padding:20px;
    height:auto;
    font-size:25px;
    overflow: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.scrollBar-image{
    grid-column: 1 / -1; /* prend toute la largeur */
    display:grid;
    grid-template-columns:repeat(80,1fr);
}

.profil .scrollBar-image img{
    padding: 5px;
    margin: 0px;
    height:100px;
    object-fit:contain;
}


.profil{
    background-color:var( --second-color);
    border-radius: var(--main-border-radius);

    width: 60vw;
    padding:2vw;
    margin:auto;
    margin-bottom: 10em;

    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);

    transition: transform 0.25s ease, box-shadow 0.25s ease;

}

.profil-header{
    display:flex;
    align-items:center;
    gap:2vw;
    margin-right:10em;
}



.profil-text p{
    font-size:1.3vw;
    opacity:0.8;
}
.profil p{
    color:var( --main-text-color);
    background : transparent;
}


.profil h1{
    color:var( --main-text-color);
    background: transparent;
    font-size: 3vw;
    color:var(--active-text-color);
}

.profil h2{
    color:var( --main-text-color);
    background: transparent;
    font-size: 2.5vw;
    margin:0px;
    padding:0px;
    color:var(--active-text-color);
}

.profil img{
    width:8vw;
    height:12vw;
    display: block;
    margin-right: auto; /* aligne à droite */
    margin-left:3vw;
    align-self: center;
    object-fit: cover;
    border-radius: var(--main-border-radius);
    -webkit-filter: grayscale(100%);
    transition:all 0.5s;

}

.profil img:hover, .profil-header img{
    -webkit-filter: grayscale(0%);
    transition:all 0.5s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.skill{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
}

.menu{
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);

    display:grid;
    grid-template-columns: auto auto auto;

    padding: 2% 5%;
    border-radius: var(--main-border-radius);
    background: rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

    z-index: 1;
}

.menu a{
    display: inline-flex;
    text-decoration:none;

    align-items: center;
    justify-content: center;
    line-height: 1.2;
    padding: 5px 25px;


    background: transparent;
    border: none;
    color: white;
    font-size: 25px;

    cursor: pointer;

    transition: background 0.2s ease, transform 0.2s ease;
}

.menu a:hover, .menu .menu-selected{
    color: var(--active-text-color);
}
.menu a:hover{
    transform:translateY(-5px);
}

.menu a:active{
    transform:translateY(0);
}

.project{
    background:var(--second-color);
    border-radius: var(--main-border-radius);
    width: 60vw;
    transform: translateX(20vw);
    align-self: center;
    display:flex;

    margin:0vw 0vw 3vw 0vw;
}


.project h1{
    background: transparent;
    font-size: 5vw;
    margin-right: 5vw;
    margin-top:40px;
}

.project:hover h1{
    color:var(--active-text-color);
}

.project img{
    width:8vw;
    height:8vw;
    display: block;
    margin-right: auto; /* aligne à droite */
    padding-left:1vw;
    align-self: center;
    object-fit: cover;
}

.project:hover{

    transform: translate(20vw, -5px);
}

.project:active{

    transform: translate(20vw, 0px);
}

.presentation{
    background:var(--second-color);
    border-radius: var(--main-border-radius);
    width: 60vw;
    transform: translateX(20vw);
    align-self: center;
    padding: 1vw;
    margin:3vw 0vw 3vw 0vw;
    color: rgba(255,255,255, 0.5);

    scroll-margin-top: 8vw;
}

.presentation:hover h1, .presentation:hover h2{
    color:var(--active-text-color);
}
.presentation h1 .presentation h2{
    color: rgba(255,255,255, 0.65);
    padding: 1vw;
    background:var(--rappel-color);
    border-radius: var(--main-border-radius);
    width: 50%;
    margin: 0 auto;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}
.presentation h1{
    font-size: 5vw;
}

.presentation h3, .presentation h2, .presentation p{
    font-size: 2vw;
}



.presentation li, .profil li{
        display: inline-flex;            /* active Flexbox */
    justify-content: center;  /* centre horizontalement */
    align-items: center;   
    font-size: 1.5vw;
    font-weight: bold;
    text-decoration: none;
    background: var(--rappel-color);
    padding: 1vw 1.5vw;

    border-radius:  var(--main-border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
    color: var( --main-text-color);

    text-align: center;
}

.presentation li:hover, .profil li:hover{
    transform: translateX(0.5vw);
    background: var(--rappel-color-hover);
    color:var(--active-text-color);
}

.presentation li:active, .profil li:active{
    transform:scale(0.9);
}

.presentation ul, .profil ul {
    list-style-position: inside;

    width: fit-content;
    margin: 2vw auto;
    padding: 0;
    list-style: none;

    display:grid;
    
    grid-template-columns: repeat(2, 1fr);
    gap: 1vw;
    width: 70%;
}


.presentation a,.profil a {
    all: unset;
    cursor: pointer;
    display: inline-block;

    color: rgb(15, 15, 151);
    text-decoration: underline;

    font-size: clamp(14px, 1.2vw, 18px);
    line-height: 1.4;

    max-width: 30rem;   /* limite la largeur */
}

.description{
    position:fixed;
    background: black;
    border-radius: var(--main-border-radius);
    background-color: black;
    color: white;
    width:50%;
    height: 30%;
    top:70%;
    left:25%;

    z-index:10;

    display: block;
    padding: 2em;
    text-align: center;
    
    transform:translateY(100%);
        backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(10px);

    transition: all 0.5s ease;
    overflow: hidden; 

    background-color:var(--rappel-color);

        background-clip: border-box;
    -webkit-background-clip: border-box;


    padding-left:2em;
    padding-right:2em;
}


.description-show{
    transform:translateY(0%);


}

.description-show-big{
    transform:translateY(0%);
    width:40%;
    height: 80%;
    top: 6px;%;
    left:30%;
}

.description h1, .description a{
    display:none;
}

.description-show-big h1, .description-show-big a{
    display:block;

    color:var(--active-text-color);
        margin:1em;
}

.description-show-big h1{
    display:block;
    font-size:4em;
    margin:0px;
}

.description-show-big p{

    font-size:1.7em;
}
.description-show-big a:hover{
    color:var(--rappel-color-hover);

}


.description p{
        display: block;   
    text-align: center;

    word-wrap: break-word; 
    overflow-wrap: break-word;
    line-height: 1.4;
    margin:0.25em;

}



.table{
    color: transparent;
    background:linear-gradient(270deg, #807f7f, #2b2929);
    border-radius: var(--main-border-radius);
    position : fixed;
    left:0vw;
    top:10vw;
    height:31vw;
    width: 15vw;
    transform:translateX(1.5vw);
    overflow: hidden;
    cursor: pointer;

        display: flex;


    transition: width 0.5s ease, color 0.5s ease 0.3s, transform 0.5s ease;;
}

.table-hide{
    width: 1.5vw;
    transform:translateX(0vw);
    border-radius: 0px 15px 15px 0px;
}

.table:hover{
    box-shadow: 1px 1px 25px -2px rgba(255,255,255,1);
    -webkit-box-shadow: 1px 1px 25px -2px rgba(255,255,255,1);
    -moz-box-shadow: 1px 1px 25px -2px rgba(255,255,255,1);
}

.table-hide:hover{
    height:31vw;
    width: 15vw;
    border-radius:  var(--main-border-radius);
    transform:translateX(1.5vw);
}

.table a{
    color: white; 
    text-decoration: none;;
}

.table li{
    text-align: center;
    opacity: 1;
    transform: translateX(0px); 
    transition: opacity 0.3s ease 0.3s, transform 0.3s ease 0.3s;
    padding: 0.75em;
font-size: clamp(0.75em, 1.25vw, 2em);
    font-weight: bold;
}

.table a:hover{
    color: rgb(141, 139, 139); 
}

.table ul{
    list-style-type: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    
}


.table-hide li{
    opacity: 0;
    transform: translateX(-20px); 
}

.table-hide:hover li{
    opacity: 1; 
    transform: translateX(0);
}


#slide {
    max-width: 90%;

    height: 20em;
    object-fit: contain; /* très important pour vidéos et images */
    margin: auto;
    margin-top:1%;
}
.prev, .next{
    position:absolute;

    background-color: transparent;
    font-weight: bold;
    font-size: 7em;
    border:0px;
    top:50%;
    transform: translateY(-50%);

    transition:font-size 0.2s ease;
}

.prev:active, .next:active{
    font-size: 4em;
}

.dots
{
    margin-top: 1em;
    display:grid;

    width:40%;
    margin-left:30%;
}

.dot{
    width: 30%;
    height: 1em;
    background-color: black;
    border-radius: 999px;
 
    margin:auto;
}

.prev{left:1%;}
.next{right:1%;}


@media (max-width: 768px){

    body{
        padding-top:25vw;
    }

    h1, p{
        margin:50px 0 75px 0;
    }
    h1:first-of-type{
        margin:125px 0 75px 0;
    }
    p{
        font-size: 12.5px;
    }


    .project {
        width: 80vw;
        transform: translateX(10vw);
        padding: 15px 0px 15px 0px;
        
        margin:0vw 0vw 6vw 0vw;
    }

    .profil, .presentation, .project {
        width: 80vw;
    }

    .profil-header {
        flex-direction: column;
         margin-right: 0;
    }
    .profil img {
        width: 30vw;
        height: 40vw;
        margin: auto;
        margin-top:1em;
    }

    .profil-header h1, .profil-header p { 
        font-size: 6vw;
        margin:25px;
    }
    
  .profil h2 { font-size: 5vw; }
  .profil-text p { font-size: 3.5vw; }

    .description-show-big {
    width: 70%;
    left: 7.5%;
    height: 70%;
    top: 10%;
  }

    .description-show-big h1{
        font-size:3em;
        margin:0.5em;
    }

    .description-show-big p{
        font-size:1.2em;
    }


    .project h1{
        margin:20px 20px 20px 20px;
        
    }


    #home{
        width: 40px;
        height: 40px;
        border-radius: 5px;
    }



    .menu{
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);

        display:grid;
        grid-template-columns: auto auto auto;

        padding: 3% 1.5%;
        border-radius: var(--main-border-radius);

    }

    .menu a{
        display: inline-flex;
        text-decoration:none;

        align-items: center;
        justify-content: center;
        line-height: 0.7;
        padding: 5px 12.5px;


        background: transparent;
        border: none;
        color: white;
        font-size: 15px;

        cursor: pointer;

        transition: background 0.2s ease, transform 0.2s ease;
    }

    .table{

        top:150px;
        height:250px;
        width:100px;
    }

    .table ul{
        padding-left:5px;
    }

    
.table-hide{
    width: 10px;
    transform:translateX(0vw);
    border-radius: 0px 15px 15px 0px;
}

.presentation{
    background:linear-gradient(270deg, #807f7f, #2b2929);
    border-radius: var(--main-border-radius);
    width: 60vw;
    transform: translateX(30vw);
    align-self: center;
    padding: 1vw;
    margin:3vw 0vw 3vw 0vw;
    color: rgba(255,255,255, 0.5);

    scroll-margin-top: 8vw;

    transition: transform 1s ease;
}

.table-hide ~ .presentation{
    transform: translateX(18vw) scaleX(1.1);
}




    


.presentation:hover{
box-shadow: 1px 1px 25px -2px rgba(255,255,255,1);
-webkit-box-shadow: 1px 1px 25px -2px rgba(255,255,255,1);
-moz-box-shadow: 1px 1px 25px -2px rgba(255,255,255,1);
}

.presentation h1{
    color: rgba(255,255,255, 0.65);
    font-size: 5vw;
    padding: 1vw;
    background:linear-gradient(70deg, #14133375, #2e2c3554);
    border-radius: var(--main-border-radius);
    width: 50%;
    margin: 0 auto;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

.presentation h2{
    color: rgba(255,255,255, 0.65);
    font-size: 2vw;
    padding: 1vw;
    background:linear-gradient(70deg, #14133375, #2e2c3554);
    border-radius: var(--main-border-radius);
    width: 50%;
    margin: 0 auto;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}
.presentation h3{
    font-size: 2vw;
}

.presentation p{
    font-size: 2vw;
    color: rgba(255,255,255, 0.75);
}


.presentation li{
        display: inline-flex;            /* active Flexbox */
    justify-content: center;  /* centre horizontalement */
    align-items: center;   
    font-size: 1.5vw;
    font-weight: bold;
    text-decoration: none;
    background: rgba(255,255,255, 0.1);
    padding: 1vw 1.5vw;

    border-radius:  var(--main-border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
    color: rgba(255,255,255, 0.65);;

    text-align: center;
}

.presentation li:hover{
    transform: translateX(0.5vw);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(0,0,0, 0.5);
}

.presentation li:active{
    transform:scale(0.9);
}

.presentation ul {
    list-style-position: inside;

    width: fit-content;
    margin: 2vw auto;
    padding: 0;
    list-style: none;

    display:grid;
    
    grid-template-columns: repeat(2, auto);
    gap: 1vw;
    width: 70%;
}

.presentation a{
    all: unset;
    cursor: pointer;       /* si tu veux que ce soit cliquable */
    display: inline-block;
    text-decoration:underline;
    color:rgb(15, 15, 151);
    font-size: 1.5vw;
    width: 30vw;
    margin-left:5vw;
}


.presentation li, .profil li{
    font-size: 3vw;

    padding: 2vw 3vw;

}

.presentation ul, .profil ul {
    width: 90%;
}

.social {
    margin-top:1em;
    margin-bottom:1em;
            display: flex;
        flex-direction: column;
        align-items: center;
    

}
    .link {
        margin: 1em auto;
        justify-content: center;
    }

    .profil .link a {
        font-size: 4vw;
        width: auto;
        padding: 0.6em 1.5em;
    }

    
    .profil .link a img {
        width: 4vw;
        height: 4vw;
        margin-right: 1em;
    }


    .calendar{
        margin:0px;
        padding:0px;
        margin: -5em 0; 
        transform:  scale(0.35);
        overflow: visible; /* ou supprime overflow:hidden */
    }

    .profil .scrollBar-image img {
        height: 35px;
    }

    .langues {
    top: 10px;
    right: 10px;
    margin: 0;
    padding: 0.75em;

    flex-direction: column; /* ⬅️ passe en vertical */
    gap: 5px;



    font-size: 12px;
}

}