/* =========================================================
   VARIABLES GLOBALES
   ========================================================= */
:root {
    /* ======== FONTS ======== */
    --font-main: "Plus Jakarta Sans", sans-serif;

    /* ======== COLORS ======== */
    --white: #ffffff;
    --gray: #999999;
    --lightgray: #aaaaaa;
    --black: #000000;

    /* ======== GRADIENTS ======== */
    --gradient-main: linear-gradient(90deg,
            var(--white) 0.15%,
            var(--gray) 48.63%);

    /* ======== BACKGROUNDS ======== */
    --bg-body: #151515;
    --bg-header: #151515;

    /* ======== TEXT ======== */
    --text-main: var(--white);
    --text-secondary: var(--gray);

    /* ======== TRANSITIONS ======== */
    --ease-fast: 0.25s ease;
    --ease-medium: 0.5s ease;
}

@font-face {
  font-family: 'Advercase';
  src: url('./Advercase-Font/Web Fonts/advercasefont-regular-webfont.woff2') format('woff2'),
       url('./Advercase-Font/Web Fonts/advercasefont-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}



/* =========================================================
   RESET & BASE
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

html,
body {
    min-height: 100%;
    font-family:
        var(--font-main), "Segoe UI Emoji", "Apple Color Emoji",
        "Noto Color Emoji", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    scroll-behavior: smooth;
    cursor: none;
}



.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 160px 0px 80px 0px;
    gap: 100px;
    max-width: 1280px;
    margin: 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

a:visited {
    color: inherit;
}

a:hover {
    opacity: 0.8;
    /* ou autre effet */
    text-decoration: none;
}

a:focus {
    outline: none;
    box-shadow: none;
}



/* Pour les écrans petits / mobiles */
@media (max-width: 768px) {
    .main-container {
        padding: 80px 16px 32px 16px;
        gap: 50px;
        /* éventuellement réduire le gap pour mobile */
    }
}

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

.header-site {
    display: flex;
    max-width: 1280px;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    padding: 10px 0px;
    background-color: var(--bg-header);
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Header avatar */
.header-avatar {
    width: 32px;       
    height: 32px;
    border-radius: 50%;
    overflow: hidden;     
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-avatar img {
    width: auto;
    height: 100%;
    min-width: 100%;
    object-fit: cover;  
    object-position: center;
    display: block;
}

@media (max-width: 768px) {
    .header-avatar {
        width: 28px;
        height: 28px;
    }
}


.header-name,
.nav-link {
    font-weight: 400;
    font-size: 16px;
    line-height: 40px;
    letter-spacing: 0.02em;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: opacity var(--ease-fast);
}

.header-name {
    user-select: none;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link:hover {
    opacity: 0.8;
}

/* --- Responsive Header --- */
@media (max-width: 768px) {
    .header-site {
        padding: 16px 16px;
    }

    .header-nav {
        gap: 16px;
    }

    .nav-link {
        font-size: 14px;
    }

    .header-name {
        display: none;
    }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 32px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    line-height: 48px;
    text-align: left;
}

.hero-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin-right: 32px;
    border-radius: 48px;
    object-fit: cover;
}

.hero-title {
    font-family: 'Advercase', sans-serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 150%;
    letter-spacing: 4.8px;
    margin: 0;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text {
    color: var(--lightgray);
    font-size: clamp(1rem, 2vw, 1.375rem);
    font-weight: 300;
    line-height: 48px;
    letter-spacing: 0.02em;

}

.hero-line {
    display: inline-block;
    /* pour que le span se comporte comme du texte */
    background: linear-gradient(46deg, white 0%, #aaaaaa 100%);
    -webkit-background-clip: text;
    /* clip le background au texte */
    -webkit-text-fill-color: transparent;
    font-size: 18px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 100;
    line-height: 20px;
    word-wrap: break-word;
    opacity: 20%;
}

.hero-line::before {
    content: "";
    display: inline-block;
    width: 48px;
    height: 1px;
    /* Épaisseur du trait */
    background: linear-gradient(46deg, white 0%, #aaaaaa 100%);
    margin-right: 10px;
    vertical-align: middle;
}

.hero-highlight {
    font-weight: 600;
    text-decoration: underline;
    color: var(--white);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.hero-text i {
    color: #555;
    margin: 0 6px;
    font-size: 1.1em;
    vertical-align: middle;
}

.fi {
    width: 20px;
    height: 14px;
    vertical-align: middle;
    margin: 0 4px;
    border-radius: 2px;
}

.hero-see-more {
    background: linear-gradient(90deg,
            #151515 0%,
            var(--gray) 90%,
            #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    display: inline-block !important;
    width: auto !important;
    max-width: fit-content !important;
    position: relative;

    font-weight: 400;
    font-size: 22px;
    line-height: 48px;
    letter-spacing: 0.02em;
    text-align: left;
    margin-left: 20px;

    transition: 0.3s ease;
    /* pour l’effet smooth */
}

/* underline blanc animé */
.hero-see-more::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 100%;
    height: 1px;
    background: #fff;

    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
    pointer-events: none;
}

/* hover : underline + texte blanc */
.hero-see-more:hover::after {
    transform: scaleX(1);
}

.hero-see-more:hover {
    background: none;
    /* on retire le dégradé */
    -webkit-text-fill-color: #ffffff;
    /* texte blanc */
    color: #ffffff;
    /* fallback pour Firefox */
}

.hero-see-more.hidden {
    opacity: 0;
    /* rend invisible */
    pointer-events: none;
    /* empêche le hover / clic */
    transition: opacity 0.3s ease;
    /* fade out */
}



/* animation pour faire apparaître ligne par ligne */
.hero-line-anim {
    opacity: 1;
    /* Start visible to prevent FOUC */
    transform: translateY(0);
    /* Start in final position */
    display: block;
    transition:
        opacity 0.6s ease-out,
        transform 0.6s ease-out;
}

/* classe qui déclenche l'animation */
.hero-line-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   HERO - MOBILE OPTIMIZED
   ========================================================= */

/* Tablette */
@media (max-width: 992px) {
    .hero {
        gap: 8px;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 4rem);
        /* un peu plus petit que desktop */
        letter-spacing: 1.2px;
        line-height: 1.25;
    }

    .hero-text {
        font-size: clamp(0.9rem, 1.8vw, 1.25rem);
        line-height: 1.5;
    }

    @media (max-width: 600px) {
        .hero-see-more {
            font-size: 14px;
            line-height: 32px;
            display: inline-block;
            /* garder l'inline-block */
            text-align: left;
            /* rester à gauche */
            margin-left: 0;
            /* ou 16px si tu veux un petit décalage */
            margin-top: 16px;
            padding: 0;
        }
    }

}

/* Mobile */
@media (max-width: 600px) {
    .hero {
        align-items: left;
        padding: 16px;
    }

    .hero-content {
        flex-direction: row;
        /* <-- mettre sur la même ligne */
        text-align: left;
        /* ou center si tu veux centrer horizontalement le bloc */
        gap: 16px;
        /* espace entre avatar et texte */
        align-items: center;
        /* aligne verticalement */
        justify-content: flex-start;
        padding-bottom: 20px;
        /* ou center si tu veux centrer le tout */
    }

    .hero-avatar {
        width: 60px;
        height: 60px;
        margin: 0;
        /* plus besoin de margin-bottom */
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 3rem);
        letter-spacing: 0.8px;
        line-height: 1.2;
        flex: 1;
        /* prend le reste de l'espace disponible */
    }

    .hero-text {
        font-size: clamp(0.875rem, 4vw, 1.1rem);
        line-height: 32px;
        letter-spacing: 0.02em;
    }

    .hero-highlight {
        font-size: 1rem;
        text-decoration-thickness: 1.5px;
        text-underline-offset: 2px;
    }

    .hero-text i {
        font-size: 1em;
        margin: 0 4px;
    }

    .fi {
        width: 16px;
        height: 12px;
        margin: 0 2px;
    }

}

.hero-text img.emoji {
    width: 1em;
    /* taille du texte */
    height: 1em;
    /* garde les proportions */
    vertical-align: middle;
    /* aligne avec le texte */
}

/* ===============================
   CAROUSSEL
================================= */
.carousel-section {
    position: relative;
    overflow: hidden;
    max-width: 1120px;
    margin: 0 auto;
    background: var(--bg-body);
    padding: 0;
}

/* Fades latéraux uniformes */
.carousel-fade-left,
.carousel-fade-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 10%;
    pointer-events: none;
    z-index: 2;
}

/* Dégradé gauche éclairci */
.carousel-fade-left {
    left: 0;
    background: linear-gradient(to right,
            var(--bg-body) 0%,
            rgba(21, 21, 21, 0.7) 40%,
            /* Avant : 0.5 */
            rgba(21, 21, 21, 0.1) 99%,
            /* Avant : 0.2 */
            rgba(21, 21, 21, 0) 100%);
}

/* Dégradé droit éclairci */
.carousel-fade-right {
    right: 0;
    background: linear-gradient(to left,
            var(--bg-body) 0%,
            rgba(21, 21, 21, 0.7) 40%,
            /* Avant : 0.5 */
            rgba(21, 21, 21, 0.6) 70%,
            /* Avant : 0.2 */
            rgba(21, 21, 21, 0) 100%);
}


.carousel-track {
    display: flex;
    align-items: center;
    gap: 80px;
    will-change: transform;
    padding: 0;
    margin: 0;
}

.carousel-track img {
    height: 180px;
    flex-shrink: 0;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.carousel-track img:hover {
    transform: scale(1.05);
}

/* ===============================
   CAROUSSEL MOBILE OPTIMIZED
================================= */
@media (max-width: 768px) {
    .carousel-section {
        width: 100%;
        padding: 0;
    }

    .carousel-track {
        gap: 25px;
    }

    .carousel-track img {
        flex-shrink: 0;
        transition:
            transform 0.3s ease,
            filter 0.3s ease;
        filter: brightness(1);
        /* sombre par défaut */
        height: 80px;
        pointer-events: none;
    }


    .carousel-fade-left,
    .carousel-fade-right {
        background: linear-gradient(to right, var(--bg-body) 0%);
    }

    .carousel-fade-right {
        background: linear-gradient(to left, var(--bg-body) 0%);
    }
}

/* ===============================
   PROJECTS
================================= */
.projects-section {
    width: 100%;
    padding-top: 40px;
    padding-left: 20px;
    padding-right: 20px;
    /* ou la couleur de ton background */
}

.projects-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
    opacity: 1;
}

/* Top label */
.projects-top {
    background: linear-gradient(41deg, var(--white) 0%, var(--gray) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* nécessaire Chrome/Safari */
    background-clip: text;
    /* Firefox */
    color: transparent;
    /* Firefox */
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.96px;
    word-wrap: break-word;
}

/* Projet */
.project {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-logo {
    width: auto;
    height: 200px;
}

/* Titre du projet */
/* .project-title {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 80px;
  font-weight: 600;
  letter-spacing: 1.60px;
  word-wrap: break-word;
}

.projects-extra .project-title {
  cursor: default;
  pointer-events: none;
} */
.project-title {
    position: relative;
    /* important pour pseudo-élément */
    display: inline-block;
    font-size: 80px;
    font-weight: 400;
line-height: 150%;

    letter-spacing: 1.6px;

    background: linear-gradient(90deg,
            var(--gray) 0%,
            var(--gray) 40%,
            var(--white) 50%,
            var(--gray) 60%,
            var(--gray) 100%);
    background-size: 200% 100%;
    background-position: 0% 0;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-family: 'Advercase', 'Plus Jakarta Sans';
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: 0% 0;
    }
}

h2 {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

a:hover .project-title {
    -webkit-text-fill-color: #FFF;
    color: #FFF;
}

h2::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0.3) 100%);
    background-size: 200% 100%;
    background-position: 200% 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientMoveHero 1s linear infinite;
    pointer-events: none;
    transition: none;
    /* pas besoin de transition ici */
}



@keyframes gradientMoveHero {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: 0% 0;
    }
}

a:hover h2::after {
    left: 125%;
    opacity: 1;
}

/* Date du projet */
.project-date {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 1.12px;
    word-wrap: break-word;
}

/* Nom de l’entreprise */
.project-company {
    color: white;
    font-size: 80px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 600;
    letter-spacing: 1.6px;
    word-wrap: break-word;
}

.project-description-row {
    display: flex;
    align-items: center;
}

.project-line {
    display: inline-block;
    width: 50px;
    height: 1px;
    background-color: var(--gray);
    margin: 0 8px;
}



/* Description */
.project-description {
  position: relative;
  padding-left: 60px;
}

.project-description::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 50px;
  height: 1px;
  background-color: var(--gray);
}

/* 🔑 le gradient reste UNIQUEMENT sur le texte */
.project-description-text {
  background: linear-gradient(46deg, var(--white) 0%, #aaaaaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  font-size: 18px;
  line-height: 32px;
  letter-spacing: 1.44px;
}



.archives-section .project {
    margin-bottom: 40px;
}

.archives-section .project-title {
    pointer-events: none;
    cursor: default;
}

.project-gap {
    margin-bottom: 60px;
}


/* ===============================
   PROJECTS - MOBILE OPTIMIZED
================================= */
@media (max-width: 768px) {
    .projects-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .projects-wrapper {
        gap: 36px;
        /* Espacement plus réduit pour mobile */
    }

    .projects-top {
        font-size: 10px;
        letter-spacing: 0.5px;
        line-height: 14px;
        margin-bottom: 12px;
    }

    .project {
        gap: 6px;
        /* réduire le gap entre titre, date et description */
    }

    .project-logo {
        width: 200px;
        height: auto;
    }

    .project-title {
        font-size: 30px;
        line-height: 38px;
        letter-spacing: 0.8px;
        font-weight: 800;

        /* gradient animé subtil */
        background: linear-gradient(90deg,
                var(--gray) 0%,
                var(--gray) 40%,
                var(--white) 50%,
                var(--gray) 60%,
                var(--gray) 100%);
        background-size: 200% 100%;
        background-position: -100% 0;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;

        animation: gradientMove 3s linear infinite;
    }

    @keyframes gradientMove {
        0% {
            background-position: -100% 0;
        }

        100% {
            background-position: 100% 0;
        }
    }

    .project-date {
        font-size: 12px;
        line-height: 18px;
        letter-spacing: 0.6px;
        color: rgba(255, 255, 255, 0.85);
    }

    .project-company {
        font-size: 20px;
        line-height: 24px;
        letter-spacing: 0.8px;
        font-weight: 600;
    }

  .project-description {
    padding-left: 30px;
    font-size: 12px;
    line-height: 20px;
  }

  .project-description::before {
    width: 18px;
    top: 0.8em;
  }



    .project-description-row p {
  margin-left: 6px;
}

.project-line {
    margin-bottom: 20px;
}


    /* Pour les projets supplémentaires */
    .projects-extra {
        display:flex;
        flex-direction: column;
        gap: 32px;
    }

    /* Ajustement des animations / scroll reveal si nécessaire */
    .scroll-reveal-V {
        opacity: 1;
        transform: none;
    }

    .project-gap {
    margin-bottom: 36px;
}
    
}

/* ===============================
  SERVICES
================================= */

.services-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    /* gap entre les services */
    width: 100%;
    padding: 20px;
    /* padding top/bottom et left/right */
    box-sizing: border-box;
}

.services-wrapper {
    display: flex;
    flex-direction: column;
    gap: 80px;
    width: 100%;
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-title {
    font-family: 'Advercase', "Plus Jakarta Sans", sans-serif;
    font-weight: 200;
    font-style: normal;
    /* ExtraLight est déjà couvert par font-weight */
    font-size: 56px;
    line-height: 120%;
    letter-spacing: 2%;
    width: fit-content;
    height: auto;
    padding-bottom: 20px;

    background: linear-gradient(90deg,
            var(--white, #fff) 0.15%,
            #999999 48.63%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    /* gap horizontal entre les items */
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    border: 1px solid rgba(170, 170, 170, 0.2);
    border-radius: 50px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 34px;
    height: 34px;
    /* hug */
    width: fit-content;
    /* hug */
    gap: 24px;
    transition: all 0.3s ease;
}


/* ===============================
   SERVICES - MOBILE OPTIMIZED
================================= */
@media (max-width: 768px) {
    .services-section {
        gap: 40px;
        padding: 16px;
        align-items: flex-start;
    }

    .services-wrapper {
        gap: 40px;
    }

    .service-card {
        gap: 12px;
    }

    .service-title {
        font-size: 26px;
        line-height: 36px;
        letter-spacing: 1px;
        padding-bottom: 12px;
    }

    .service-items {
        flex-wrap: wrap;
        gap: 6px;
    }

    .service-item {
        font-size: 11px;
        line-height: 20px;
        padding: 6px 16px;
        height: auto;
        gap: 12px;
    }
}

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

.site-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    justify-content: left;
}

.little-text-grad {
    display: inline-block;
    /* important */
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* pour Firefox */
    font-weight: 400;
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: 0.08em;
    font-family: 'Advercase', sans-serif;
    /* remplacer 8% par em */
    text-transform: uppercase;
}

.wrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px;
}

.footer-avatar {
    width: 80px; /* Taille du cercle desktop */
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.footer-avatar img {
    width: auto;
    height: 100%;
    min-width: 100%;
    border-radius: 50%;
    object-fit: cover; /* garde le ratio et crop si nécessaire */
    object-position: center; /* centre l'image dans le cercle */
    display: block;
}

/* Mobile */
@media (max-width: 768px) {
    .footer-avatar {
        width: 54px; /* cercle réduit pour mobile */
        height: 54px;
        margin-bottom: 20px;
    }
}


.footer-message {
    font-family: 'Advercase', 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    font-size: 64px;
    line-height: 104px;
    letter-spacing: 4.8px;
    background: linear-gradient(89.51deg, #ffffff 0.15%, #999999 48.63%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 40px;
}

.footer-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /* espace uniquement entre les 2 blocs */
    width: 100%;
    flex-wrap: nowrap;
    /* empêche le bouton de passer à la ligne */
    gap: 12px;
    /* garde un petit gap interne si besoin */
}

.footer-bottom.hero-line-anim {
    opacity: 1;
    /* Start visible to prevent FOUC */
    transform: translateY(0);
    /* Start in final position */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    height: 56px;
    transition:
        opacity 0.6s ease-out,
        transform 0.6s ease-out;
}

.footer-bottom.hero-line-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray);
    border-radius: 50%;
    /* cercle parfait */
    background-color: transparent;
    /* fond transparent */
    color: var(--white);
    /* couleur icône */
    font-size: 20px;
    /* taille icône à l'intérieur du cercle */
    margin-right: 12px;
    /* espacement entre les bulles */
    transition:
        color 0.2s,
        border-color 0.2s;
    text-decoration: none;
}

.social-icons a:last-child {
    margin-right: 0;
}

.social-icons a:hover {
    color: var(--lightgray);
    /* couleur icône au hover */
    border-color: var(--lightgray);
    /* bordure au hover */
}

.btn {
    background-color: transparent;
    color: var(--white, #fff);
    border: 1px solid rgba(153, 153, 153, 0.2);
    padding: 0px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: 48px;
    /* 218.182% */
    letter-spacing: 0.44px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--white);
    color: var(--bg-body, #ffffff);
}

/* ===============================
   FOOTER - MOBILE OPTIMIZED
================================= */
@media (max-width: 768px) {
    .site-footer {
        display: flex;
        flex-direction: column;
        /* centré pour mobile */
        padding: 40px 16px;
        /* moins d'espace sur mobile */
        width: 100%;
        text-align: center;
        /* centralisé le texte */
    }

    .little-text-grad {
        background: linear-gradient(41deg,
                var(--white, #fff) 0%,
                var(--gray, #999) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 400;
        font-size: 10px;
        line-height: 1.4;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        margin-bottom: 20px;
        display: flex;
        justify-content: flex-start;
    }

    .footer-avatar img {
        width: 54px;
        /* réduit pour mobile */
        height: 60px;
        border-radius: 50%;
        margin-bottom: 20px;
    }

    .footer-message {
        font-weight: 600;
        font-size: 20px;
        /* réduit drastiquement pour mobile */
        line-height: 36px;
        letter-spacing: 0.02em;
        background: linear-gradient(89.51deg, #ffffff 0.15%, #999999 48.63%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 30px;
        padding: 0 10px;
        /* padding pour éviter overflow */
    }

    .mobile-footer-message {
        display: flex;
        flex-direction: row;
    }

    .footer-bottom {
        display: flex;
        flex-direction: row;
        /* empile sur mobile */
        gap: 12px;
        align-items: center;
        width: 100%;
    }

    .mobile-footer-message {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        text-align: left;
    }

    .footer-message {
        text-align: left;  
        padding: 0;
    }

    .social-icons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: 1px solid var(--gray);
        border-radius: 50%;
        background-color: transparent;
        color: var(--white);
        font-size: 18px;
        text-decoration: none;
        transition:
            color 0.2s,
            border-color 0.2s;
    }

    .social-icons a:hover {
        color: var(--lightgray);
        border-color: var(--lightgray);
    }

    .btn {
        background-color: transparent;
        color: #fff;
        border: 1px solid var(--gray);
        padding: 0px 12px;
        /* un peu moins large pour mobile */
        font-weight: 600;
        font-size: 14px;
        border-radius: 50px;
        display: inline-flex;
        /* flex mais inline pour ne pas prendre toute la largeur */
        align-items: center;
        gap: 6px;
        white-space: nowrap;
        /* 🔥 empêche le retour à la ligne */
        overflow: hidden;
        /* coupe si trop long */
        text-overflow: ellipsis;
        /* ... si texte dépasse */
        transition: background 0.3s;
    }

    .btn:hover {
        background-color: var(--lightgray);
        color: #000;
    }
}

/* =========================================================
  OTHERS STYLES
   ========================================================= */

.scroll-reveal-H {
    transform: translateX(-50px) scale(0.7) rotateY(-5deg);
    opacity: 0;
    transition:
        transform 2s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 2s ease-out;
    will-change: transform, opacity;
}

.scroll-reveal-H.revealed {
    transform: translateX(0) scale(1) rotateY(0deg);
    opacity: 1;
}

/* Optional: staggered delay for multiple elements */
.scroll-reveal-H:nth-child(1).revealed {
    transition-delay: 0.1s;
}

.scroll-reveal-H:nth-child(2).revealed {
    transition-delay: 0.2s;
}

.scroll-reveal-H:nth-child(3).revealed {
    transition-delay: 0.3s;
}

.scroll-reveal-H:nth-child(4).revealed {
    transition-delay: 0.4s;
}

.scroll-reveal-V {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease-out,
        transform 1.2s ease-out;
}

.scroll-reveal-H.show {
    transform: translateX(0);
    opacity: 1;
}

.scroll-reveal-V.show {
    transform: translateY(0);
    opacity: 1;
}

.hero-extra,
.projects-extra {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition:
        max-height 1.5s ease,
        /* plus lent que 0.6s */
        opacity 1.5s ease,
        /* plus lent */
        transform 1.5s ease;
    /* plus lent */
    margin-top: 20px;
}

.hero-extra.show,
.projects-extra.show {
    max-height: 1300px;
    opacity: 1;
    transform: translateY(0);
}

.projects-extra .project {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

.projects-extra.show .project {
    opacity: 1;
    transform: translateY(0);
}

.projects-extra.show .project:nth-child(1) {
    transition-delay: 0.1s;
}

.projects-extra.show .project:nth-child(2) {
    transition-delay: 0.2s;
}

.projects-extra.show .project:nth-child(3) {
    transition-delay: 0.3s;
}

.projects-extra.show .project:nth-child(4) {
    transition-delay: 0.4s;
}

.projects-extra.show .project:nth-child(5) {
    transition-delay: 0.5s;
}

/* ===============================
   ANIMATIONS HEADER & FOOTER & IMAGES
================================= */

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.fade-in-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox background */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.25s ease;
    cursor: zoom-out;
    z-index: 9999;
}

/* When visible */
#lightbox.active {
    visibility: visible;
    opacity: 1;
}

/* Image style */
#lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    cursor: auto;
}

/* hover ne déclenche pas de changement de couleur */

.no-hover-color {
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

.no-hover-color,
.no-hover-color:visited,
.no-hover-color:hover,
.no-hover-color:active,
.no-hover-color:focus {
    color: inherit !important;
    opacity: 1 !important;
    /* empêche l'effet de hover */
    text-decoration: none !important;
}





/* Cacher le curseur personnalisé sur mobile */
@media (max-width: 768px) {
    .custom-cursor {
        display: none !important;
    }
}

/* Curseur personnalisé */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Point central */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

/* Animation sur hover des éléments interactifs */
a:hover~.custom-cursor,
button:hover~.custom-cursor,
.clickable:hover~.custom-cursor {
    width: 28px;
    height: 28px;
    border-color: #fff;
}

.custom-cursor.cursor-hover {
    width: 64px;
    height: 64px;
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease-out;
}

.ltg-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px; /* espace entre le texte et la ligne */
}

/* Ta ligne déjà définie */
.line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.line-footer {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 80px;
}

