/* ==========================================================
   RESET
========================================================== */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:Roboto,"Helvetica Neue",Arial,sans-serif;
    background:#000;
    color:#fff;
    overflow-x:hidden;
    line-height:1.6;
}

/* ==========================================================
   LIGNES ANIMÉES
========================================================== */

.lines-container{
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    pointer-events:none;
    z-index:1;
}

.line{
    position:absolute;
    width:1px;
    height:100%;
    background:#fff;
    opacity:.15;
    animation:moveLine 8s ease-in-out infinite;
}

.line.thick{
    width:2px;
    opacity:.25;
}

@keyframes moveLine{

    0%,100%{
        transform:translateX(0);
    }

    50%{
        transform:translateX(100px);
    }

}

/* ==========================================================
   CONTENEUR
========================================================== */

.container{
    position:relative;
    z-index:2;
    max-width:1200px;
    margin:auto;
    padding:0 40px;
}

/* ==========================================================
   HEADER
========================================================== */

header{
    padding:100px 0 80px;
    text-align:center;
}

.name{
    display:inline-flex;
    flex-direction:column;
    font-family:"Space Mono",monospace;
    font-size:4rem;
    line-height:1.05;
    letter-spacing:.10em;
}

.name span{
    display:block;
}

.subtitle{
    margin-top:20px;
    font-size:30px;
    font-weight:300;
    color:#fff;
    letter-spacing:4px;
    text-transform:uppercase;
}

/* ==========================================================
   PHOTO DE PROFIL
========================================================== */

.profile-picture{
    margin-bottom:35px;
}

.profile-picture img{
    width:200px;
    height:200px;
    object-fit:cover;
    border-radius:50%;
    border:1px solid #222;
    image-rendering:-webkit-optimize-contrast;
    image-rendering:crisp-edges;
}

/* ==========================================================
   TITRES
========================================================== */

h1{
    font-size:80px;
    font-weight:300;
    letter-spacing:20px;
    text-transform:uppercase;
}

h2{
    font-size:40px;
    font-weight:300;
    text-align:center;
    margin-bottom:80px;
    letter-spacing:10px;
    text-transform:uppercase;
}

/* ==========================================================
   NAVIGATION
========================================================== */

nav{
    text-align:center;
    margin:-30px 0 100px;
}

nav a{
    display:inline-block;
    margin:0 20px;
    text-decoration:none;
    color:#2ea523;
    font-size:30px;
    font-weight:300;
    letter-spacing:3px;
    text-transform:uppercase;
    transition:.3s;
}

nav a:hover{
    opacity:.6;
}

/* ==========================================================
   DROPDOWN
========================================================== */

.dropdown{
    position:relative;
    display:inline-block;
}

.dropbtn{
    cursor:pointer;
    padding:0 5px;
}

.dropdown-content{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    min-width:230px;
    background:#111;
    border:1px solid #333;
    backdrop-filter:blur(6px);
    z-index:999;
}

.dropdown-content a{
    display:block;
    padding:10px 14px;
    color:#fff;
    font-size:.9rem;
    text-decoration:none;
    transition:.25s;
}

.dropdown-content a:hover{
    background:#222;
    color:#6fcaac;
}

.dropdown:hover .dropdown-content{
    display:block;
}

/* ==========================================================
   SECTIONS
========================================================== */

section{
    margin-bottom:150px;
}

/* ==========================================================
   EXPERIENCES
========================================================== */

.experience-list{
    max-width:900px;
    margin:auto;
}

.experience-item{
    margin-bottom:80px;
    padding-bottom:80px;
    border-bottom:1px solid #333;
    transition:.3s;
}

.experience-item:last-child{
    border-bottom:none;
}

.experience-item:hover{
    opacity:.95;
}

.experience-header{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    flex-wrap:wrap;
    margin-bottom:20px;
}

.experience-number{
    font-size:60px;
    font-weight:300;
    color:#333;
    letter-spacing:3px;
}

.experience-date{
    font-size:14px;
    color:#fff;
    letter-spacing:2px;
    text-transform:uppercase;
}

.experience-title{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:12px;

    font-size:28px;
    font-weight:600;
    letter-spacing:2px;
    text-transform:uppercase;
}

.experience-company-block{
    display:flex;
    align-items:center;
    gap:18px;
    margin:18px 0;
}

.experience-logo{
    width:auto;
    height:80px;
    object-fit:contain;
}

.experience-company{
    margin:0;
    font-size:18px;
    color:#4ba7ff;
    letter-spacing:1px;
}

.experience-description{
    margin-top:20px;
    font-size:16px;
    color:#f0f0f0;
    line-height:1.9;
}

/* ==========================================================
   TAGS
========================================================== */

.experience-tags{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:20px;
    list-style:none;
}

.experience-tags li{
    padding:6px 12px;

    border-radius:30px;

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.15);

    color:#6fcaac;

    font-size:.85rem;

    letter-spacing:.5px;
}

/* ==========================================================
   A PROPOS
========================================================== */

.about-content{
    max-width:850px;
    margin:auto;

    text-align:center;

    font-size:18px;

    line-height:2;

    color:#e8e8e8;

    font-weight:300;

    letter-spacing:.5px;
}

/* ==========================================================
   CONTACT
========================================================== */

.contact-info{
    padding:80px 0;
    text-align:center;
}

.contact-link{

    color:#fff;

    text-decoration:none;

    font-size:40px;

    font-weight:300;

    letter-spacing:5px;

    transition:.3s;
}

.contact-link:hover{

    opacity:.55;

}

/* ==========================================================
   BOUTONS
========================================================== */

.youtube-button{

    display:inline-block;

    margin-top:20px;

    padding:10px 20px;

    border:1px solid #fff;

    color:#fff;

    text-decoration:none;

    letter-spacing:1px;

    transition:.3s;
}

.youtube-button:hover{

    background:#fff;

    color:#000;

}

/* ==========================================================
   FOOTER
========================================================== */

footer{

    text-align:center;

    padding:80px 0 40px;

    color:#555;

    font-size:12px;

    letter-spacing:2px;

}
/* ==========================================================
   PROJETS
========================================================== */

#projets{
    margin-top:60px;
    padding:40px 0;
}

#projets h2{
    margin-bottom:50px;
}

/* ==========================================================
   MENU DES ONGLETS
========================================================== */

.projects-menu{

    display:flex;

    flex-wrap:wrap;

    gap:2rem;

    margin-bottom:60px;

    padding-bottom:20px;

    border-bottom:1px solid #333;

}

.tab-button{

    background:none;

    border:none;

    color:#fff;

    cursor:pointer;

    font-size:.9rem;

    letter-spacing:.20em;

    text-transform:uppercase;

    opacity:.45;

    transition:.3s;

}

.tab-button:hover{

    opacity:1;

}

.tab-button.active{

    opacity:1;

    border-bottom:1px solid #fff;

    padding-bottom:8px;

}

/* ==========================================================
   CONTENU ONGLET
========================================================== */

.tab-content{

    display:none;

    animation:fadeIn .4s ease;

}

.tab-content.active{

    display:block;

}

@keyframes fadeIn{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}

/* ==========================================================
   SOUS-CATEGORIES
========================================================== */

.subsection{

    margin-top:80px;

}

.subsection h3{

    margin-bottom:35px;

    padding-bottom:10px;

    border-bottom:1px solid #333;

    font-size:1.1rem;

    letter-spacing:2px;

    text-transform:uppercase;

}

/* ==========================================================
   GRILLES
========================================================== */

.project-grid,
.project-list,
.film-grid,
.music-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:35px;

}

/* ==========================================================
   CARTES
========================================================== */

.project-item{

    transition:.35s;

}

.project-item:hover{

    transform:translateY(-6px);

}

/* ==========================================================
   MINIATURE
========================================================== */

.thumbnail-wrapper{

    position:relative;

    overflow:hidden;

    border-radius:16px;

    cursor:pointer;

    background:#111;

    box-shadow:0 0 20px rgba(255,255,255,.08);

    transition:.35s;

}

.thumbnail-wrapper:hover{

    box-shadow:0 0 28px rgba(255,255,255,.18);

}

.thumbnail-wrapper img{

    display:block;

    width:100%;

    aspect-ratio:16/9;

    object-fit:cover;

    transition:.45s;

}

.thumbnail-wrapper:hover img{

    transform:scale(1.05);

    filter:brightness(1.1);

}

/* ==========================================================
   OVERLAY
========================================================== */

.overlay{

    position:absolute;

    inset:0;

    display:flex;

    align-items:flex-end;

    padding:18px;

    background:linear-gradient(
        transparent 45%,
        rgba(0,0,0,.80)
    );

    opacity:0;

    transition:.35s;

}

.thumbnail-wrapper:hover .overlay{

    opacity:1;

}

.caption{

    color:#fff;

    font-size:.95rem;

    line-height:1.5;

}

/* ==========================================================
   PLAY ICON
========================================================== */

.play-icon{

    position:absolute;

    top:50%;

    left:50%;

    transform:translate(-50%,-50%);

    font-size:3rem;

    color:#fff;

    opacity:.8;

    transition:.35s;

    text-shadow:0 0 20px rgba(255,255,255,.7);

}

.thumbnail-wrapper:hover .play-icon{

    transform:translate(-50%,-50%) scale(1.18);

    opacity:1;

}

/* ==========================================================
   TITRES
========================================================== */

.project-title,
.music-title,
.film-title{

    margin-top:18px;

    font-size:1.25rem;

    font-weight:500;

    color:#fff;

    letter-spacing:.5px;

}

.project-description,
.music-description,
.film-description{

    margin-top:10px;

    color:#d8d8d8;

    line-height:1.7;

    font-size:.97rem;

}
/* ==========================================================
   MODALE YOUTUBE
========================================================== */

.modal{

    display:none;

    position:fixed;

    inset:0;

    z-index:1000;

    align-items:center;

    justify-content:center;

    background:rgba(0,0,0,.92);

    backdrop-filter:blur(5px);

}

.modal-content{

    position:relative;

    width:80%;

    max-width:900px;

    aspect-ratio:16/9;

}

.modal-content iframe{

    width:100%;

    height:100%;

    border:none;

    border-radius:12px;

}

.close{

    position:absolute;

    top:-45px;

    right:-10px;

    color:#fff;

    font-size:2.5rem;

    cursor:pointer;

    transition:.3s;

}

.close:hover{

    transform:scale(1.2);

    opacity:.7;

}


/* ==========================================================
   LIGHTBOX IMAGES
========================================================== */

#lightbox{

    display:none;

    position:fixed;

    inset:0;

    z-index:2000;

    align-items:center;

    justify-content:center;

    flex-direction:column;

    padding:20px;

    background:rgba(0,0,0,.95);

}

#lightbox img{

    max-width:90%;

    max-height:80%;

    border-radius:10px;

}

#lightbox-caption{

    margin-top:20px;

    color:#fff;

    text-align:center;

    font-size:1rem;

}

#lightbox-close{

    position:absolute;

    top:25px;

    right:35px;

    color:#fff;

    font-size:2.5rem;

    cursor:pointer;

}


/* ==========================================================
   RESPONSIVE TABLETTE / MOBILE
========================================================== */

@media(max-width:900px){


    .container{

        padding:0 25px;

    }


    h1{

        font-size:55px;

        letter-spacing:10px;

    }


    .name{

        font-size:3rem;

    }


    .subtitle{

        font-size:22px;

        letter-spacing:3px;

    }


    h2{

        font-size:32px;

        letter-spacing:6px;

    }


    nav{

        margin-bottom:60px;

    }


    nav a{

        display:block;

        margin:20px 0;

        font-size:22px;

    }


    .projects-menu{

        flex-direction:column;

        gap:20px;

    }


    .project-grid,
    .project-list,
    .film-grid,
    .music-grid{

        grid-template-columns:1fr;

    }


    .experience-header{

        flex-direction:column;

        align-items:flex-start;

    }


    .experience-number{

        font-size:42px;

    }


    .experience-title{

        font-size:22px;

        flex-wrap:wrap;

    }


    .experience-company-block{

        flex-direction:column;

        align-items:flex-start;

    }


    .experience-logo{

        height:60px;

    }


    .contact-link{

        font-size:24px;

        letter-spacing:3px;

    }


    .profile-picture img{

        width:150px;

        height:150px;

    }

}


@media(max-width:480px){


    .container{

        padding:0 15px;

    }


    header{

        padding:60px 0;

    }


    .name{

        font-size:2.2rem;

        letter-spacing:.08em;

    }


    h1{

        font-size:40px;

    }


    h2{

        font-size:26px;

    }


    .experience-description{

        font-size:15px;

    }


}
/* ==========================================================
   CARTES DE PUBLICATIONS / LIENS
========================================================== */

.link-card{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:25px;

    padding:25px 30px;

    margin-bottom:20px;

    background:rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.15);

    border-radius:14px;

    text-decoration:none;

    color:#fff;

    transition:.35s ease;

}


.link-card:hover{

    transform:translateY(-5px);

    background:rgba(255,255,255,.08);

    border-color:#fff;

}


/* Texte carte */

.link-card-content{

    flex:1;

}


.link-card-title{

    font-size:1.3rem;

    letter-spacing:2px;

    text-transform:uppercase;

    margin-bottom:8px;

}


.link-card-description{

    color:#ccc;

    font-size:.95rem;

    line-height:1.6;

}


/* Icône / flèche */

.link-card-icon{

    font-size:2rem;

    color:#6fcaac;

    transition:.3s;

}


.link-card:hover .link-card-icon{

    transform:translateX(8px);

}



/* ==========================================================
   LIENS EXTERNES
========================================================== */

.external-link{

    display:inline-flex;

    align-items:center;

    gap:10px;

    margin-top:20px;

    padding:10px 20px;

    border:1px solid #fff;

    color:#fff;

    text-decoration:none;

    text-transform:uppercase;

    letter-spacing:2px;

    font-size:.85rem;

    transition:.3s;

}


.external-link:hover{

    background:#fff;

    color:#000;

}



/* ==========================================================
   SEPARATEURS VISUELS
========================================================== */

.section-line{

    width:100%;

    height:1px;

    background:#333;

    margin:60px 0;

}



/* ==========================================================
   LIENS GENERAUX
========================================================== */

a{

    transition:.3s ease;

}


a:hover{

    opacity:.8;

}



/* ==========================================================
   SCROLLBAR PERSONNALISEE
========================================================== */

::-webkit-scrollbar{

    width:8px;

}


::-webkit-scrollbar-track{

    background:#000;

}


::-webkit-scrollbar-thumb{

    background:#333;

    border-radius:10px;

}


::-webkit-scrollbar-thumb:hover{

    background:#666;

}



/* ==========================================================
   SELECTION TEXTE
========================================================== */

::selection{

    background:#fff;

    color:#000;

}



/* ==========================================================
   PETITES CORRECTIONS FINALES
========================================================== */


/* évite que les images débordent */

img{

    max-width:100%;

}


/* meilleure lecture des longs textes */

p{

    max-width:900px;

}



/* alignement propre des boutons */

button{

    font-family:inherit;

}

.experience-photo {
    margin-top: 16px;
    height: 120px;       
    width: auto;
    border-radius: 6px;
    object-fit: contain;
    opacity: 0.85;
    display: block;
    transition: opacity 0.3s ease;
}

.experience-photo:hover {
    opacity: 1;
}