@font-face{
    font-family: GamePolice;
    src: url('./assets/font/GamePlayed-vYL7.ttf') format(truetype);
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Permet d'afficher une police système en attendant le chargement */
}
@font-face{
    font-family: GamePoliceOutline;
    src: url('./assets/font/GamePlayedOutline-wrX8.ttf') format(truetype);
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Permet d'afficher une police système en attendant le chargement */
}

:root{
    /* Couleur principales*/
    --color-bg: #121212;
    --color-bg2: #050505;
    --color-card: #1f1e1e;
    --color-primary: #6DD2EE;
    --color-text-main: #D4F2FA;
    --couleur-svg: invert(0);
    --couleur-svg-black:invert(1);

    /* Typographie */
    --font-title: 'GamePolice', sans-serif;
    --font-prenom: 'GamePoliceOutline', sans-serif;
    --font-corps: 'Inter',  sans-serif;
}

/* Mode claire */
body.light-mode {

/* Couleurs principales Mode Clair */
    --color-bg: #d4F2FA;          
    --color-bg2: #ffffff;
    --color-card: #FFFFFF;        
    --color-primary: #121212;     
    --color-text-main: #050505;   
    --color-text-sub: #64748B;    
    --color-border: #E2E8F0;     
    --couleur-svg : invert(1);
    --couleur-svg-black: invert(0);
}

*{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    background-color: var(--color-bg);
}


/* ============== Header ====================*/
.navbar_container{
    padding: 30px 0;
    width: 100%;
    position:fixed;
    z-index: 999;
}
.navbar{
    width: 80%;
    margin: 0 auto;
    transition: all 3s ease;
}
.navbar_nav{
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
}
.item_nav{
    display: flex;
    justify-content: center;
    align-items: center;
}
.item_nav img {
    filter: var(--couleur-svg)
}
a{
    color: var(--color-text-main);
    text-decoration: none;
    font-family: var(--font-title);
    font-size: 0.9em;
}
a span {
    width: 0;                
    overflow: hidden;        /* Cache le texte qui dépasse */
    opacity: 0;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    transition: all 0.4s ease; 
    margin-left: 0;
    font-size: 1.2em;
}
a span:hover{
    color: var(--color-primary);
}
.navbar_container:hover a span {
    width: auto;           
    opacity: 1;
    margin-left: 10px;    
}

.navbar_container:hover .item_nav img {
    display: none;
}
.item_nav img {
    width: 20px;
    flex-shrink: 0;         /* Empêche le cercle de s'écraser */
}

/* a clone from joshwcomeau.com 
 */

.themeToggle {
  color: var(--color-primary);
}

.st-sunMoonThemeToggleBtn {
  position: relative;
  cursor: pointer;
}

.st-sunMoonThemeToggleBtn .themeToggleInput {
  opacity: 0;
  aspect-ratio: 1;
}

.st-sunMoonThemeToggleBtn svg {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
  transform: rotate(40deg);
}

.st-sunMoonThemeToggleBtn svg .sunMoon {
  transform-origin: center center;
  transition: inherit;
  transform: scale(1);
}

.st-sunMoonThemeToggleBtn svg .sunRay {
  transform-origin: center center;
  transform: scale(0);
}

.st-sunMoonThemeToggleBtn svg mask > circle {
  transition: transform 0.64s cubic-bezier(0.41, 0.64, 0.32, 1.575);
  transform: translate(0px, 0px);
}

.st-sunMoonThemeToggleBtn svg .sunRay2 {
  animation-delay: 0.05s !important;
}
.st-sunMoonThemeToggleBtn svg .sunRay3 {
  animation-delay: 0.1s !important;
}
.st-sunMoonThemeToggleBtn svg .sunRay4 {
  animation-delay: 0.17s !important;
}
.st-sunMoonThemeToggleBtn svg .sunRay5 {
  animation-delay: 0.25s !important;
}
.st-sunMoonThemeToggleBtn svg .sunRay5 {
  animation-delay: 0.29s !important;
}

.st-sunMoonThemeToggleBtn .themeToggleInput:checked + svg {
  transform: rotate(90deg);
}
.st-sunMoonThemeToggleBtn .themeToggleInput:checked + svg mask > circle {
  transform: translate(16px, -3px);
}
.st-sunMoonThemeToggleBtn .themeToggleInput:checked + svg .sunMoon {
  transform: scale(0.55);
}
.st-sunMoonThemeToggleBtn .themeToggleInput:checked + svg .sunRay {
  animation: showRay1832 0.4s ease 0s 1 forwards;
}

@keyframes showRay1832 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

/*=== mobile navbar ===*/
.bottom-nav {
    display: none;
}

@media (max-width: 1100px) {

    /* Cache le header desktop */
    .navbar_container {
        display: none;
    }

    /* Cache le hamburger si tu l'as ajouté */
    .hamburger {
        display: none;
    }

    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        background: var(--color-bg, #fff);
        border-radius: 40px;
        padding: 10px 5px;
        z-index: 999;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    }

    .bottom-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-decoration: none;
        color: var(--color-text-main);
        font-family: var(--font-title);
        font-size: 0.6em;
        position: relative;
        flex: 1;
    }

    .bottom-nav__circle {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        background: transparent;
    }

    .bottom-nav__circle img {
        width: 20px;
        height: 20px;
        filter: var(--couleur-svg-black);
        transition: all 0.3s ease;
    }

    /* Élément actif — cercle vert qui sort vers le haut */
    .bottom-nav__item.active .bottom-nav__circle {
        background: var(--color-primary);
        transform: translateY(-14px);
        box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
        width: 52px;
        height: 52px;
    }

    .bottom-nav__item.active .bottom-nav__circle img {
        filter: brightness(0) invert(1); /* icône blanche sur fond coloré */
    }

    .bottom-nav__item.active span {
        color: var(--color-primary);
        font-weight: bold;
    }
        #theme-toggle-mobile .themeToggle {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #theme-toggle-mobile .themeToggle svg {
        position: absolute;
        width: 20px;
        height: 20px;
    }

    /* Le cercle du toggle ne monte pas comme les autres items */
    #theme-toggle-mobile.active .bottom-nav__circle {
        background: transparent;
        transform: none;
        box-shadow: none;
    }
}
/*===fin mobile navbar ===/
/* ================fin header ===================*/

/* ================Accueil=======================*/
.accueil{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    scroll-snap-align: center;
}
.accueil_container{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: auto;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0; /* pour qu'il prenne tout l'écran */
}
.identity_container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 500px;
    gap: 90px;
}
.names{
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.names span:first-child{
    font-family: var(--font-title);
    color: var(--color-primary);
    display: block;
    font-size: 4rem;
    text-align: end;
}
.names span:last-child{
    font-family: var(--font-prenom);
    color: var(--color-text-main);
    display: block;
    font-size: 3.5rem;
    margin-top: -10px;
    text-align: end;
}

/* From Uiverse.io by javierBarroso */ 
.social-login-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  -webkit-box-reflect: below 5px linear-gradient(transparent, #00000055);
}
.social-login-icons svg {
  width: 40px;
}

.social-icon-2,
.social-icon-2-2,
.social-icon-3,
.social-icon-3-3,
.social-icon-4,
.social-icon-4-4 {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  margin: 20px 0 0px 0;
}

.icon svg {
  fill: var(--color-text-main);
}

.socialcontainer {
  height: 80px;
  overflow: hidden;
}



/* ANIMATION COMMUNE DES SVG */
.social-icon-2 svg,
.social-icon-3 svg,
.social-icon-4 svg {
  opacity: 0;
  transition-duration: 0.5s;
  transition-delay: 0.2s;
}

.socialcontainer:hover .social-icon-2 svg,
.socialcontainer:hover .social-icon-3 svg,
.socialcontainer:hover .social-icon-4 svg {
  opacity: 1;
}

/* INSTAGRAM 2 */
.social-icon-2 {
  transition-duration: 0.4s;
  transition-timing-function: cubic-bezier(0.46, -0.78, 0.5, 1.56);
  background: linear-gradient(
    72.44deg,
    #ff7a00 11.92%,
    #ff0169 51.56%,
    #d300c5 85.69%
  );
}
.socialcontainer:hover .social-icon-2 {
  transform: translateY(-70px);
}

/* LINKEDIN 3 (Anciennement Facebook) */
.social-icon-3 {
  transition-duration: 0.4s;
  transition-timing-function: cubic-bezier(0.46, -0.78, 0.5, 1.56);
  background: #0077b5; /* Bleu LinkedIn */
}
.socialcontainer:hover .social-icon-3 {
  transform: translateY(-70px);
}

/* GITHUB 4 */
.social-icon-4 {
  transition-duration: 0.4s;
  transition-timing-function: cubic-bezier(0.46, -0.78, 0.5, 1.56);
  background: linear-gradient(
    180deg,
    rgba(129, 34, 144, 1) 0%,
    rgba(77, 34, 124, 1) 91%
  );
}
.socialcontainer:hover .social-icon-4 {
  transform: translateY(-70px);
}
/*-----------------*/

.profilImg_container{
    position: relative;
    flex-shrink: 0;
}

.profilImg_container img{
    width: 300px;
}

.profilImg_container::after {
    content: "";
    position: absolute;
    top: 15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--color-primary);
    border-radius: 30px;
    z-index: -1; /* Place le cadre derrière la photo */
}

.img_crop {
    width: 400px;  /* Largeur de ta fenêtre de vue */
    height: 350px; /* Hauteur de ta fenêtre de vue */
    border-radius: 30px; 
    overflow: hidden;    
    position: relative;
}

.profil_img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* Remplit le cadre sans déformer l'image */
    transform: scale(1.8); 
    
    /* LE CADRAGE (CROP manuel) : */
    object-position: center 80%; 

    transition: transform 0.5s ease; 
}

.img_crop:hover .profil_img {
    transform: scale(1.7);
}

@media (max-width: 900px) {
    .accueil_container {
        flex-direction: column-reverse; /* L'image passe au dessus du texte */
        justify-content: center;
        padding-right: 0;
        gap: 30px;
    }
    
    .identity_container {
        min-width: 100%;
        align-items: center; /* Centre le texte sur mobile */
        text-align: center;
        gap: 20px;
    }
    .img_crop {
        width: 320px;  /* Largeur de ta fenêtre de vue */
        height: 280px; /* Hauteur de ta fenêtre de vue */
    }
    .names span:first-child{
        font-size: 3.2rem;
    }
    .names span:last-child{
        font-size: 2.8rem;
    }

}
/*===================fin Accueil========================*/

/*=================== Présentation ======================*/
.presentation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--color-bg2);
    z-index: 10;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.presentation_container {
    width: 85%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: center;
}

/* ---- Colonne gauche ---- */
.pres_eyebrow {
    font-family: var(--font-title);
    color: var(--color-primary);
    font-size: 0.78rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin: 0 0 18px 0;
    opacity: 0.7;
}

.pres_name {
    font-family: var(--font-title);
    color: var(--color-text-main);
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    line-height: 1.1;
    margin: 0 0 20px 0;
    letter-spacing: 2px;
    min-height: 2.4em; /* Évite le layout shift pendant le typewriter */
}

.pres_name_static {
    display: block;
}

.highlight { color: var(--color-primary); }

/* Curseur typewriter */
.typewriter::after {
    content: '|';
    color: var(--color-primary);
    animation: blink 0.75s step-end infinite;
}

.typewriter.done::after {
    display: none;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Ligne animée sous le titre */
.pres_line_anim {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
    border-radius: 2px;
    margin-bottom: 40px;
    transition: width 1s ease 0.5s;
}

.pres_line_anim.visible {
    width: 100%;
}

/* Stats */
.pres_stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat_item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat_item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat_num {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--color-text-main);
    line-height: 1;
}

.stat_num sup {
    font-size: 0.5em;
    color: var(--color-primary);
}

.stat_label {
    font-family: var(--font-corps);
    font-size: 0.68rem;
    color: var(--color-text-main);
    opacity: 0.45;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.stat_divider {
    width: 1px;
    height: 36px;
    background: var(--color-primary);
    opacity: 0.2;
}

/* ---- Colonne droite ---- */
.pres_right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

.pres_right.visible {
    opacity: 1;
    transform: translateX(0);
}

.bloc_presentation {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
    font-family: var(--font-corps);
    color: var(--color-text-main);
    background: var(--color-bg);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(109, 210, 238, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Bordure lumineuse tournante */
.bloc_glow_border {
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: conic-gradient(
        from var(--angle, 0deg),
        transparent 0%,
        var(--color-primary) 10%,
        transparent 20%
    );
    opacity: 0;
    z-index: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.bloc_presentation::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--color-bg);
    border-radius: 23px;
    z-index: 1;
}

.bloc_presentation > *:not(.bloc_glow_border) {
    position: relative;
    z-index: 2;
}

.bloc_presentation:hover .bloc_glow_border {
    opacity: 1;
    animation: rotate-border 3s linear infinite;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotate-border {
    to { --angle: 360deg; }
}

/* Lueur statique dans le coin */
.bloc_presentation::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(109, 210, 238, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
}

.icons_presentation {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icons_presentation img {
    filter: var(--couleur-svg);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.icons_presentation img:hover {
    opacity: 1;
}

.pres_bio {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
    opacity: 0.88;
}

.pres_bio strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* Tags */
.pres_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pres_tags span {
    padding: 6px 16px;
    background: rgba(109, 210, 238, 0.06);
    border: 1px solid rgba(109, 210, 238, 0.2);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.73rem;
    font-family: var(--font-title);
    letter-spacing: 1px;
    cursor: default;
    transition: background 0.25s ease, transform 0.2s ease;
}

.pres_tags span:hover {
    background: rgba(109, 210, 238, 0.15);
    transform: translateY(-2px);
}

/* ---- Responsive ---- */
@media (max-width: 850px) {
    .presentation_container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pres_right {
        transform: translateX(0);
        opacity: 0;
    }

    .bloc_presentation {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .presentation_container { width: 90%; }
    .pres_stats { gap: 16px; }
    .pres_bio { font-size: 1rem; }
}

/* ---- Animations scroll (améliorées) ---- */
@supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
        html { scroll-snap-type: y proximity; }
        .accueil, .presentation { scroll-snap-align: center; }

        .accueil { view-timeline: --section-accueil; }
        .presentation { view-timeline: --section-pres; }

        .accueil_container {
            position: fixed;
            animation: scale-and-move both linear, fade-out both linear;
            animation-timeline: --section-accueil;
            animation-range: exit 0% exit 50%, exit 0% exit 25%;
            transform-origin: 50% 0;
            z-index: 0;
        }

        .presentation {
            will-change: clip-path;
            clip-path: ellipse(120% 120% at 50% 200%);
            animation: unclip both cubic-bezier(0.16, 1, 0.3, 1);
            animation-timeline: --section-pres;
            animation-range: entry 0% entry 100%;
        }

        @keyframes scale-and-move {
            to { translate: 0 -5%; scale: 0.85; }
        }
        @keyframes fade-out {
            to { opacity: 0; }
        }
        @keyframes unclip {
            0%   { clip-path: ellipse(120% 120% at 50% 200%); }
            60%  { clip-path: ellipse(130% 130% at 50% 120%); }
            90%  { clip-path: ellipse(140% 140% at 50% 108%); }
            100% { clip-path: none; }
        }
    }
}
/*================ Fin Présentation =====================*/

/*================Compétence============================*/
.competence {
    position: relative;
    min-height: 100vh;
    z-index: 20;
    background-color: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -50px;
    scroll-snap-align: center;
}

.competence_container {
    width: 85%;
    max-width: 1200px;
}

.titre_section {
    font-family: var(--font-title);
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 80px;
}

.competence_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

/* ---- Card container ---- */
.card-container {
    height: 220px;
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: var(--color-card);
    border: 1px solid rgba(109, 210, 238, 0.1);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    /* Invisible par défaut pour l'animation scroll */
    opacity: 0;
    transform: translateY(40px);
}

.card-container:hover {
    border-color: rgba(109, 210, 238, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 30px rgba(109, 210, 238, 0.05);
    transform: translateY(-6px);
}

/* Numéro en filigrane */
.card-container::before {
    content: attr(data-num);
    position: absolute;
    bottom: -10px;
    right: 10px;
    font-family: var(--font-title);
    font-size: 5rem;
    font-weight: 900;
    color: var(--color-primary);
    opacity: 0.05;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.4s ease;
}

.card-container:hover::before {
    opacity: 0.08;
}

/* ---- Card ---- */
.card {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

/* Façade */
.card .front-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.55s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
}

.card .front-content p {
    font-family: var(--font-prenom);
    font-size: 1.6rem;
    color: var(--color-text-main);
    letter-spacing: 3px;
    transition: all 0.55s cubic-bezier(0.23, 1, 0.32, 1);
    margin: 0;
}

/* Petite ligne déco sous le titre façade */
.card .front-content::after {
    content: '';
    width: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: width 0.4s ease 0.1s;
}

.card:hover .front-content::after {
    width: 40px;
}

/* Contenu qui slide depuis le haut */
.card .content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    background: var(--color-bg);
    color: #fff;
    border-radius: 28px;
    transform: translateY(-102%);
    transition: all 0.55s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    z-index: 2;
    padding: 24px;
    box-sizing: border-box;
}

/* Ligne lumineuse en haut du panel */
.card .content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--color-primary);
    border-radius: 0 0 2px 2px;
    opacity: 0.8;
}

.card .content .heading {
    font-family: var(--font-title);
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin: 0;
    color: var(--color-primary);
}

.card_list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-corps);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    text-align: start;
    gap: 6px;
}

.card_list li {
    opacity: 0.85;
    position: relative;
    padding-left: 14px;
    color: var(--color-text-main);
}

.card_list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    opacity: 0.7;
}

.content img {
    width: 30px;
    opacity: 0.6;
    margin-top: 4px;
    filter: var(--couleur-svg-black);
}

/* Hover : slide du panel vers le bas */
.card:hover .content {
    transform: translateY(0);
    opacity: 1;
}

.card:hover .front-content {
    transform: translateY(60%);
    opacity: 0;
}

/* ---- Animation scroll (corrigée) ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-container.visible {
    animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .competence_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .titre_section { font-size: 3rem; }
}

@media (max-width: 600px) {
    .competence_grid {
        grid-template-columns: 1fr;
    }

    .titre_section { font-size: 2.5rem; }

    .card-container { height: 180px; }
}
/*=============Fin Compétence =======================*/



/* ==============language & outils= ============*/

.language_outils {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-bg2);
    padding: 150px 0;
    position: relative;
    z-index: 20;
    mask-image: linear-gradient(to top, black 95%, transparent 100%);
    scroll-snap-align: center;


}

.language_outils_container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

.skills_grid_unified {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
}

/* Design de chaque petite carte */
.skill_card {
    background-color: var(--color-bg);
    border: 1px solid rgba(109, 210, 238, 0.15); 
    border-radius: 20px;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* L'icône SVG */
.skill_icon {
    width: 45px;
    height: 45px;
    margin-bottom: 15px;
    object-fit: contain;
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Le Nom */
.skill_name {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--color-primary);
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

/* La petite description */
.skill_desc {
    font-family: var(--font-corps);
    font-size: 0.8rem;
    color: var(--color-text-main); 
    margin: 0;
    line-height: 1.4;
}

/* hover*/
.skill_card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 25px rgba(109, 210, 238, 0.15); 
}

/* Fait un petit bond de l'icône au survol */
.skill_card:hover .skill_icon {
    transform: scale(1.15) translateY(-5px);
}

#monochrome{
    filter: var(--couleur-svg-black) ;
}


/*================== Projets ====================*/
.projets {
    min-height: 100vh;
    background-color: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 120px 0;
    position: relative;
    z-index: 20;
}

.projets_container {
    width: 85%;
    max-width: 1200px;
}

.projets_eyebrow {
    font-family: var(--font-title);
    color: var(--color-primary);
    font-size: 0.78rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    opacity: 0.7;
}

/* ---- Grille ---- */
.projets_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

/* ---- Carte projet ---- */
.projet_card {
    background: var(--color-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(109, 210, 238, 0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    opacity: 0;
    transform: translateY(30px);
}

.projet_card.visible {
    opacity: 1;
    transform: translateY(0);
}

.projet_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(109, 210, 238, 0.3);
}

.projet_card_img {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
}

.projet_card_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.projet_card:hover .projet_card_img img {
    transform: scale(1.05);
}

.projet_card_img.placeholder_img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        45deg,
        #1a1a1a,
        #1a1a1a 10px,
        #1e1e1e 10px,
        #1e1e1e 20px
    );
}

.projet_card_img.placeholder_img > span {
    font-family: var(--font-title);
    font-size: 0.75rem;
    color: rgba(109, 210, 238, 0.25);
    letter-spacing: 3px;
    text-transform: uppercase;
    z-index: 1;
}

/* Overlay tags au hover */
.projet_card_overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.projet_card:hover .projet_card_overlay {
    opacity: 1;
}

.projet_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.projet_tags span {
    padding: 3px 10px;
    background: rgba(109, 210, 238, 0.15);
    border: 1px solid rgba(109, 210, 238, 0.4);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.7rem;
    font-family: var(--font-title);
    letter-spacing: 1px;
}

.projet_card_body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.projet_card_body h3 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    color: var(--color-text-main);
    margin: 0;
    letter-spacing: 1px;
}

.projet_card_body p {
    font-family: var(--font-corps);
    font-size: 0.85rem;
    color: var(--color-text-main);
    opacity: 0.7;
    margin: 0;
    line-height: 1.6;
}

.projet_btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid rgba(109, 210, 238, 0.25);
    color: var(--color-primary);
    font-family: var(--font-title);
    font-size: 0.72rem;
    letter-spacing: 2px;
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
    align-self: flex-start;
    margin-top: 4px;
}

.projet_btn:hover {
    background: rgba(109, 210, 238, 0.08);
    border-color: var(--color-primary);
    gap: 12px;
}

/* ---- Panel latéral ---- */
.projet_panel {
    z-index: 9999;
    position: fixed;
    top: 0;
    right: -100%;
    width: 480px;
    max-width: 100vw;
    height: 100vh;
    background: var(--color-bg);
    border-left: 1px solid rgba(109, 210, 238, 0.15);
    transition: right 0.45s cubic-bezier(0.23, 1, 0.32, 1);
    overflow-y: auto;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
}

.projet_panel.open {
    right: 0;
}

.projet_panel_inner {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-height: 100%;
    box-sizing: border-box;
}

.projet_panel_close {
    align-self: flex-end;
    background: rgba(109, 210, 238, 0.07);
    border: 1px solid rgba(109, 210, 238, 0.2);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-main);
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.projet_panel_close:hover {
    background: rgba(109, 210, 238, 0.15);
}

.projet_panel_img {
    border-radius: 16px;
    overflow: hidden;
    height: 220px;
    background: #1a1a1a;
}

.projet_panel_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.projet_panel_content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.panel_header h2 {
    font-family: var(--font-title);
    font-size: 1.6rem;
    color: var(--color-text-main);
    margin: 0 0 14px 0;
    letter-spacing: 2px;
}

.panel_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.panel_tags span {
    padding: 4px 14px;
    background: rgba(109, 210, 238, 0.07);
    border: 1px solid rgba(109, 210, 238, 0.25);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.72rem;
    font-family: var(--font-title);
    letter-spacing: 1px;
}

.panel_section {
    border-top: 1px solid rgba(109, 210, 238, 0.08);
    padding-top: 20px;
}

.panel_section h4 {
    font-family: var(--font-title);
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 10px 0;
}

.panel_section p {
    font-family: var(--font-corps);
    font-size: 0.9rem;
    color: var(--color-text-main);
    opacity: 0.8;
    line-height: 1.7;
    margin: 0;
}

.panel_links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.panel_link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    font-family: var(--font-title);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.panel_link.github {
    background: rgba(109, 210, 238, 0.07);
    border: 1px solid rgba(109, 210, 238, 0.25);
    color: var(--color-primary);
}

.panel_link.demo {
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: var(--color-bg);
}

.panel_link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Overlay */
.projet_overlay {
    z-index: 7999;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.projet_overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .projets_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projets_grid {
        grid-template-columns: 1fr;
    }

    .projet_panel {
        width: 100vw;
        border-left: none;
        border-top: 1px solid rgba(109, 210, 238, 0.15);
        top: auto;
        bottom: -100%;
        right: 0;
        height: 90vh;
        border-radius: 20px 20px 0 0;
        transition: bottom 0.45s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .projet_panel.open {
        bottom: 0;
        right: 0;
    }

    .projet_panel_inner {
        padding: 24px 20px;
    }
}
/*================== Fin Projets ====================*/

/*================== Contact ====================*/
.contact {
    min-height: 100vh;
    background-color: var(--color-bg2);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 0;
    position: relative;
    z-index: 20;
}

.contact_container {
    width: 85%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

.contact_eyebrow {
    font-family: var(--font-title);
    color: var(--color-primary);
    font-size: 0.78rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    opacity: 0.7;
}

.contact_intro {
    font-family: var(--font-corps);
    color: var(--color-text-main);
    opacity: 0.75;
    line-height: 1.7;
    margin: 20px 0 36px 0;
    font-size: 0.95rem;
}

/* Email */
.contact_email {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-corps);
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity 0.2s ease, color 0.2s ease;
    margin-bottom: 32px;
}

.contact_email:hover {
    opacity: 1;
    color: var(--color-primary);
}

/* Réseaux sociaux */
.contact_socials {
    display: flex;
    gap: 14px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.social_link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(109, 210, 238, 0.06);
    border: 1px solid rgba(109, 210, 238, 0.2);
    border-radius: 30px;
    color: var(--color-text-main);
    text-decoration: none;
    font-family: var(--font-title);
    font-size: 0.72rem;
    letter-spacing: 1px;
    transition: all 0.25s ease;
}

.social_link:hover {
    background: rgba(109, 210, 238, 0.12);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* CV */
.contact_cv {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--color-primary);
    color: var(--color-bg);
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-title);
    font-size: 0.75rem;
    letter-spacing: 2px;
    transition: all 0.25s ease;
}

.contact_cv:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(109, 210, 238, 0.25);
    opacity: 0.9;
}

/* Formulaire */
.contact_form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form_group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form_group label {
    font-family: var(--font-title);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
    opacity: 0.8;
}

.form_group input,
.form_group textarea {
    background: var(--color-card);
    border: 1px solid rgba(109, 210, 238, 0.12);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--color-text-main);
    font-family: var(--font-corps);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    resize: none;
    width: 100%;
    box-sizing: border-box;
}

.form_group input::placeholder,
.form_group textarea::placeholder {
    opacity: 0.35;
    color: var(--color-text-main);
}

.form_group input:focus,
.form_group textarea:focus {
    border-color: rgba(109, 210, 238, 0.4);
    box-shadow: 0 0 0 3px rgba(109, 210, 238, 0.06);
}

/* Bouton submit */
.contact_submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--color-primary);
    color: var(--color-bg);
    border: none;
    border-radius: 30px;
    font-family: var(--font-title);
    font-size: 0.78rem;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.contact_submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(109, 210, 238, 0.25);
}

.contact_submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Message statut */
.form_status {
    font-family: var(--font-corps);
    font-size: 0.85rem;
    margin: 0;
    min-height: 20px;
    transition: all 0.3s ease;
}

.form_status.succes {
    color: rgb(34, 197, 94);
}

.form_status.erreur {
    color: rgb(239, 68, 68);
}

/* Responsive */
@media (max-width: 850px) {
    .contact_container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 480px) {
    .contact { padding: 80px 0; }
    .contact_container { width: 90%; }
}
/*================== Fin Contact ====================*/

/*================== Galerie ====================*/
.galerie {
    min-height: 100vh;
    background-color: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 120px 0;
    position: relative;
    z-index: 20;
}

.galerie_container {
    width: 85%;
    max-width: 1200px;
}

.galerie_header {
    margin-bottom: 60px;
}

.galerie_eyebrow {
    font-family: var(--font-title);
    color: var(--color-primary);
    font-size: 0.78rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    opacity: 0.7;
}

/* ---- Masonry ---- */
.masonry_grid {
    columns: 3;
    column-gap: 20px;
}

.masonry_item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    /* Entrée au scroll */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.masonry_item.visible {
    opacity: 1;
    transform: translateY(0);
}

.masonry_item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Overlay au hover */
.masonry_overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    color: #fff;
    border-radius: 16px;
}

.masonry_item:hover img {
    transform: scale(1.04);
}

.masonry_item:hover .masonry_overlay {
    opacity: 1;
}

/* ---- Lightbox ---- */
.lightbox {
    z-index: 9999;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(6px);
}

.lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 85vw;
    max-height: 90vh;
}

.lightbox_content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transition: opacity 0.25s ease;
}

.lightbox_content img.switching {
    opacity: 0;
}

/*
.lightbox_legende {
    font-family: var(--font-corps);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin: 0;
}*/

/* Boutons lightbox */
.lightbox_close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s ease;
}

.lightbox_close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.lightbox_nav {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.lightbox_nav:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.08);
}

/* Compteur */
.lightbox_counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-title);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 3px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .masonry_grid { columns: 2; }
}

@media (max-width: 500px) {
    .masonry_grid { columns: 1; }

    .lightbox_nav { display: none; }

    .galerie { padding: 80px 0; }
}
/*================== Fin Galerie ====================*/