@import url('../TYPO/Satoshi/css/satoshi.css');

@font-face {
    font-family: 'Feroniapi';
    src: url(../TYPO/feroniapi/Feroniapi-MediumItalic.woff);
}

/* =====================
    RESET & BASE
===================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

    border: none !important;
 
}

:root {
    --fond: #d8d8d8;
    --violet: #6A00FF;
    --rouge: #E8001C;
    --blanc: #ffffff;
    --noir: #271718;
}

body {
    background-color: var(--fond);
    font-family: 'Satoshi-regular';

    min-height: 100vh;
    overflow-x: hidden;

    cursor: url("../IMG/curseur_croix.svg") 8 8, auto;


}

p {
    font-family: Satoshi-MediumItalic;
    font-size: 1.3rem;

    color: var(--noir);
}

a{
    text-decoration: none;
}

.lettre-initiale {
    font-family: 'Feroniapi';
    font-size: 2rem;
}

.phrase-phare{
    color: var(--violet);
    
}

.right {
    color: rgb(95, 87, 78);
    font-size: 0.8rem;
    margin: 0 0 1rem 3rem;
}

h2{
    text-transform: uppercase;
}

#timmy-balade {
    position: fixed;
    left: 0px;
    top: 0px;

    pointer-events: none;
}

/* =====================
    NAVIGATION
===================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;

    display: flex;
    justify-content: space-between;
    align-items: center;

    backdrop-filter: blur(4px);

    padding: 1rem 2rem;

    border-bottom: 2px solid transparent;
    transition: border-bottom-color 0.3s ease;

}

nav.nav-scrolled {
    border-bottom: 1.5px solid var(--noir);
}

.nav-logo svg {
    width: 2.75rem;
    height: 2.75rem;

    stroke: var(--violet);
    fill: none;
    stroke-width: 1.5;
}

.nav-liens {
    display: flex;
    gap: 5rem;

    list-style: none;
}

.nav-liens a {
    font-family: 'Satoshi-Medium';
    font-size: 1rem;

    color: var(--violet);
    text-decoration: none;
    text-transform: uppercase;

    transition: opacity 0.2s;
}

.nav-liens a:hover {
    opacity: 0.5;
    cursor: url("../IMG/curseur_hover.svg") 2 2 , auto;
}


/* =====================
    MAIN PAGE
===================== */

.main-page {
    display: grid;
    grid-template-columns: 2fr 3fr 2fr;
    grid-template-rows: 100vh;

    width: 100%;
    min-height: 100vh;

    border: 3px solid red; /* DEBUG */
}


/* =====================
    PARTIE GAUCHE
===================== */

.partie-gauche {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding-top: 5rem;
    padding-left: 2.5rem;

    border: 2px dashed blue; /* DEBUG */
}

.partie-gauche-nom {
    font-family: 'Feroniapi';
    font-size: 3rem;

    color: var(--violet);

    line-height: 1.0;
}

.Timmy {
    margin-top: 0.75rem;

    width: 3.25rem;
    height: 3.25rem;
}


/* =====================
    PARTIE CENTRE
===================== */

.partie-centre {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding-top: 3.75rem;

    border: 2px dashed green; /* DEBUG */
}

.annonce {
    font-family: Satoshi-Regular;
    font-size: 1.3rem;

    color: var(--violet);
    text-transform: uppercase;

    align-self: center;
    text-align: center;
    margin-bottom: 2rem;


    border: 1px dotted green; /* DEBUG */
}


/* PREVIEW (carré blanc) */

.partie-preview {
    width: 45rem;
    max-width: 100%;
    aspect-ratio: 16 / 10;

    position: relative;
    overflow: hidden;

    background-color: var(--fond);
    margin-bottom: 3.5rem;

    border: 2px dashed purple; /* DEBUG */
}

.partie-preview-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    opacity: 0;

    transition: opacity 0.4s ease;
}

.partie-preview-image.actif {
    opacity: 1;
}


/* =====================
    COMPÉTENCES (mots en bas)
===================== */

.partie-competences {
    display: flex;
    gap: 3rem;
    align-items: center;

    border: 1px dotted green; /* DEBUG */
}

.partie-competences-mot {
    font-family: 'Satoshi-Medium';
    font-size: 1.375rem;

    color: var(--violet);
    cursor: url("../IMG/curseur_hover.svg") 2 2 , auto;
    user-select: none;

    transition: opacity 0.2s;
}

.partie-competences-mot:hover {
    opacity: 0.2;
}



/* =====================
    FLÈCHE BAS
===================== */

.fleche-bas {
    margin-top: 2rem;
    font-size: 2rem;

    font-family: 'Feroniapi';
    color: var(--violet);
    cursor: pointer;

    animation: rebond 2s infinite;
}

@keyframes rebond {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(0.375rem); }
}


/* =====================
    PARTIE IMAGE DROITE
===================== */

/* FIX : overflow hidden pour que l'image ne déborde pas,
   et l'image collée à droite grâce à flex justify-content: flex-end */
.partie-droite {
    display: flex;
    justify-content: flex-end;
    overflow: hidden;

    border: 2px dashed red; /* DEBUG */
}

.partie-droite-img {
    height: 100%;
    width: auto;

    object-fit: cover;
    object-position: left;
}


/* =====================
    PROJET
===================== */

.projet {
    width: 100%;

    padding: 6rem 2.5rem 4rem;
}

.projet-phare {
    margin-bottom: 3rem;

    border: 2px dashed rgb(0, 255, 30); /* DEBUG */
}

.projet-phare .projet-img {
    width: 100%;
    height: 70vh;

    object-fit: cover;
}

.projet-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 2rem;

    border: 2px dashed rgb(0, 255, 30); /* DEBUG */
}

.projet-work {
    display: flex;
    flex-direction: column;


    border: 2px dashed rgb(255, 23, 255); /* DEBUG */
}

.projet-link {
    text-decoration: none;
    cursor: url("../IMG/curseur_hover.svg") 2 2 , auto;
}

.projet-img {
    width: 100%;
    aspect-ratio: 16 / 10;

    object-fit: cover;
    display: block;

    transition: transform 0.4s ease;
}

.projet-img:hover {
    transform: scale(1.02);
  
    transition: 0.3s ease ;
}

.projet-titre {
    font-family: 'Satoshi-Medium';
    font-size: 1.7rem;

    color: var(--violet);
    text-transform: uppercase;

    margin-top: 0.5rem;
}

.projet-titre .lettre-initiale {
    font-size: 2.3rem;
    font-weight: bold;
}

.projet-titre p {
    font-family: 'Satoshi-MediumItalic';
    font-size: 1.2rem;

    color: var(--noir);
    text-transform: none;
}




/* =====================
    INFO PAGE
===================== */
 
.info-page {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    height: 100vh;
 
    padding: 5rem 2rem 2rem 2rem;
    gap: 3rem;
 
    border: 2px dashed rgb(255, 0, 0); /* DEBUG */
}
 
 
/* COLONNE GAUCHE */
 
.info-gauche {
    display: grid;
    grid-template-rows: auto 1fr auto;
 
    padding-top: 2rem;
    gap: 2rem;
 
    border: 2px dashed rgb(253, 135, 255); /* DEBUG */
}
 
.info-accroche {
    font-family: 'Satoshi-Bold';
    font-size: 2rem;
 
    color: var(--noir);
 
    line-height: 1.2;
}
 

.info-moiii {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 1.5rem;
 
    align-items: start;
}
 
.info-photo {
    border: 2px dashed rgb(7, 75, 51); /* DEBUG */
}
 
.info-photo-img {

    width: 100%;

    object-fit: cover;
    object-position: center top;
 
    display: block;
}
 
.info-bio {
    padding-top: 0.5rem;
}
 
.info-bio p {
    font-family: 'Satoshi-Regular';
    font-size: 0.9rem;

    padding-top: 4rem;
    padding-right: 14rem;
 
    color: var(--noir);
 
    line-height: 1.6;
}
 
/* Contact en bas */
.info-contact {
    border: 2px dashed rgb(89, 106, 142); /* DEBUG */
}
 
.info-jpp {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
 
.info-contact-mail,
.info-contact-cv {
    font-family: 'Satoshi-Regular';
 
    color: var(--noir);
    text-decoration: none;

}
 
.info-contact-mail:hover,
.info-contact-cv:hover {
    opacity: 0.5;

    cursor: url("../IMG/curseur_hover.svg") 2 2 , auto;
}
 
 
/* COLONNE DROITE */
 
.info-grille {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 2rem;
 
    overflow-y: auto;
    padding-top: 2rem;
 
    border: 2px dashed rgb(234, 0, 255); /* DEBUG */
}
 
.info-sous-titre {
    font-family: 'Satoshi-medium';
    font-size: 1.5rem;
 
    color: var(--noir);
 
    margin-bottom: 1rem;
}
 

.info-item {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 0.5rem;
 
    margin-bottom: 1.25rem;
 
    border: 2px dashed rgb(185, 255, 23); /* DEBUG */
}
 
.info-item-date {
    font-family: 'Satoshi-Regular';
    font-size: 0.7rem;
 
    color: var(--noir);
 
    padding-top: 0.15rem;
}
 
.info-item-detail {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
 
.info-item-titre {
    font-family: 'Satoshi-bold';
    font-size: 1.1rem;
 
    color: var(--noir);
}
 

.info-item p {
    font-family: 'Satoshi-Regular';
    font-size: 1rem;
 
    color: var(--noir);
 
    line-height: 1.5;
}
 
.info-experiences {
    border: 2px dashed rgb(23, 77, 255); /* DEBUG */
}
 
.info-formations {
    border: 2px dashed rgb(255, 147, 23); /* DEBUG */
}
 
 
/* =====================
    INFO PAGE — RESPONSIVE
===================== */
 
/* Tablette */
@media (max-width: 64rem) {
 
    .info-page {
        grid-template-columns: 1fr;
        height: auto;
 
        padding: 5rem 1.5rem 3rem 1.5rem;
    }
 
    .info-gauche {
        grid-template-rows: auto;
    }
 
    .info-accroche {
        font-size: 1.5rem;
    }

        .info-moiii {
        grid-template-columns: 1fr;
    }
 
    .info-grille {
        grid-template-rows: auto auto;
        overflow-y: visible;
    }
}
 
/* Mobile */
@media (max-width: 30rem) {
 
    .info-page {
        padding: 4.5rem 1rem 2rem 1rem;
        gap: 2rem;
    }

    .info-bio p {
        padding-top: 1rem;
        padding-right: 1rem;
    }
 
    .info-accroche {
        font-size: 1.2rem;
    }
 
    .info-moiii {
        grid-template-columns: 1fr;
    }
 
    .info-item {
        grid-template-columns: 4rem 1fr;
    }
}



/* =====================
    RESPONSIVE MAIN PAGE
===================== */

/* Tablette — moins de 1024px */
@media (max-width: 64rem) {

    .main-page {
        grid-template-columns: 1fr;
        grid-template-rows: auto;

        min-height: 100vh;
    }

    .partie-droite {
        display: none;
    }

    .partie-gauche{
        padding-left: 0rem;
    }

    .partie-gauche-nom {
        font-size: 2.25rem;

        align-self: center;
        text-align: center;

    }

    .Timmy {

        align-self: center;
    }

    .partie-preview {
        width: 100%;
    }

    .partie-competences {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .partie-competences-mot {
        font-size: 1.1rem;
    }


    .projet-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile — moins de 480px */
@media (max-width: 30rem) {

    .main-page {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 3fr;
    }

    .partie-droite {
        display: none;
    }

    .partie-gauche {
        padding-top: 5rem;
        margin-top: 1rem;
        
    }

    .partie-gauche-nom {
        font-size: 1.75rem;
        align-self: center;
        text-align: center;
    }

    .Timmy {
        width: 2.5rem;
        height: 2.5rem;
        align-self: center;
    }

    .partie-centre {
        padding: 0 1rem 0 1rem;
    }

    .annonce {
        font-size: 0.55rem;
    }

    .partie-competences {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .partie-competences-mot {
        font-size: 0.85rem;
    }

    .nav-liens {
        gap: 1.5rem;
    }

    .nav-liens a {
        font-size: 0.8rem;
    }

    .projet {
        padding: 2rem 1rem;
    }

    .projet-titre{
        font-size: 1.4rem;
    }

    .projet-container {
        grid-template-columns: 1fr;
    }

    .projet-phare .projet-img {
        height: 16rem;
    }
}