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

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

html {
    font-size: 62.5%;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

:root {
    /* Couleurs */
    --color-bg: #0A0A0A;
    --color-accent: #B3E412;
    --color-text-primary: #F0F0F0;
    --color-text-secondary: #888888;
    --color-text-accent: #0A0A0A;

    /* Typographie — familles */
    --font-raleway: 'Raleway', sans-serif;
    --font-inter: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Typographie — tailles */
    --fs-header: clamp(6.4rem, 10vw, 16rem);
    --fs-title1: 4.8rem;
    --fs-title2: 2.4rem;
    --fs-body-hl: 1.8rem;
    --fs-body: 1.6rem;
    --fs-mono: 1.4rem;

    /* Typographie — poids */
    --fw-bold:      700;
    --fw-semibold:  600;
    --fw-regular:   400;
}

/* ============================================
   TYPOGRAPHIE & COULEURS GLOBALES
   ============================================ */

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-inter);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: 1.6;
}

h1 {
    font-family: var(--font-raleway);
    font-size: var(--fs-header);
    font-weight: var(--fw-bold);
    color: var(--color-text-primary);
    line-height: 1.2;
}

h2 {
    font-family: var(--font-raleway);
    font-size: var(--fs-title1);
    font-weight: var(--fw-bold);
    color: var(--color-text-primary);
    line-height: 1.2;
}

h3 {
    font-family: var(--font-raleway);
    font-size: var(--fs-title2);
    font-weight: var(--fw-semibold);
    color: var(--color-text-primary);
    line-height: 1.2;
}

.accent {
    color: var(--color-accent);
    font-style: italic;
}

code, pre {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    color: var(--color-text-primary);
}/* ============================================
   LAYOUT GLOBAL
   Espacement et structure à toutes les sections
   ============================================ */

section,
header,
footer {
    padding-inline: clamp(2rem, 8vw, 6.4rem);
}

section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    scroll-margin-top: 25rem;
}

.wrapper {
    overflow: clip;
}

/* ============================================
   HEADER & NAVIGATION
   Barre sticky avec blur, logo, liens, hamburger mobile
   ============================================ */

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--color-accent);
    transform-origin: left;
    transform: scaleX(0);
    animation: progress linear;
    animation-timeline: scroll();
}

header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(10,10,10,0.6);
    backdrop-filter: blur(10px);
    padding: 0.2rem clamp(2rem, 8vw, 6.4rem);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 18rem;
}

.nav-contact {
    display: none;
}

nav ul {
    display: flex;
    gap: 4rem;
}

nav ul li a {
    font-family: var(--font-inter);
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    color: var(--color-text-primary);
    transition: color 0.2s ease;
    position: relative;
}

nav ul li a:hover {
    color: var(--color-accent);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.nav-hamburger {
    display: none;
}

/* ============================================
   FOOTER
   Barre basse : copyright, réseaux, mention technique
   ============================================ */

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2.4rem;
    padding-bottom: 2.4rem;
    border-top: 1px solid #252525;
    margin-top: 0;
}

.footer-copyright {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    flex: 1;
}

.footer-copyright .accent {
    font-style: normal;
}

.footer-socials {
    display: flex;
    gap: 2.4rem;
    flex: 1;
    justify-content: center;
}

.footer-socials a {
    font-family: var(--font-inter);
    font-size: var(--fs-mono);
    font-weight: var(--fw-semibold);
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

.footer-socials a:hover {
    color: var(--color-accent);
}

.footer-legal {
    justify-content: flex-end;
}

.footer-built {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    flex: 1;
    text-align: right;
}

.footer-built .accent {
    color: var(--color-accent);
    font-style: normal;
}
/* ============================================
   BOUTONS
   ============================================ */

/* On déclare une propriété CSS animable — l'angle de rotation */
@property --angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.btn {
    position: absolute;
    bottom: 16rem;
    right: 9.6rem;
    background-color: var(--color-accent);
    color: var(--color-text-accent);
    font-family: var(--font-inter);
    font-weight: var(--fw-semibold);
    font-size: 1.8rem;
    padding: 1.6rem 3.2rem;
    border-radius: 10rem;

    /* La bordure animée via border-image */
    border: 2px solid transparent;
    background-clip: padding-box;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
    isolation: isolate;
}

.btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10rem;
    z-index: -1;

    /* Dégradé conique qui utilise --angle comme point de départ
       @property permet d'animer cet angle directement en CSS */

    background: conic-gradient(
            from var(--angle),
            transparent 0%,
            transparent 40%,
            white 50%,
            #b3e412 55%,
            transparent 65%,
            transparent 100%
    );

    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Fond intérieur pour cacher le centre */
.btn::after {
    content: '';
    position: absolute;
    inset: 2px;
    background-color: var(--color-accent);
    border-radius: 10rem;
    z-index: -1;
}

.btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(179, 228, 18, 0.5);
}

/* Au hover — on active l'animation */
.btn:hover::before {
    opacity: 1;
    animation: rotationAngle 1.5s linear infinite;
}

.btn-secondary {
    font-family: var(--font-inter);
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    color: var(--color-accent);
    transition: opacity 0.2s ease;
}

.btn-secondary:hover {
    opacity: 0.7;
}

@keyframes rotationAngle {
    from { --angle: 0deg;   }
    to   { --angle: 360deg; }
}

/* ============================================
   TAGS & BADGES
   ============================================ */

.tags {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.tags li {
    background-color: #1a1a1a;
    color: var(--color-accent);
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    padding: 0.8rem 1.6rem;
    border-radius: 10rem;
}

/* ============================================
   CARDS — SERVICES
   ============================================ */

.service-card {
    /* Ton layout existant */
    flex: 1;
    border: 1px solid #1a1a1a;
    padding: 3.2rem;
    border-radius: 0.8rem;
    cursor: pointer;

    /* Nécessaire pour le spotlight (pseudo-élément) */
    position: relative;
    overflow: hidden;

    /* On retire background-color de la transition
       car le spotlight gère maintenant l'effet de fond */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;

    transform-style: preserve-3d;
    will-change: transform;
}

/* SPOTLIGHT — pseudo-élément ::before
   Couche de dégradé qui suit la souris */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;

    /* Dégradé radial centré sur --souris-x et --souris-y
       mis à jour en temps réel par JS */
    background: radial-gradient(
            circle at var(--souris-x, 50%) var(--souris-y, 50%),
            rgba(179, 228, 18, 0.18) 0%,
            rgba(179, 228, 18, 0.06) 40%,
            transparent 70%
    );

    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

/* JS ajoute .card-active → spotlight visible */
.service-card.card-active::before {
    opacity: 1;
}

/* Ton ::after existant — la flèche ↗ — on le garde intact */
.service-card::after {
    content: '↗';
    position: absolute;
    top: 3.2rem;
    right: 3.2rem;
    font-size: 2rem;
    color: var(--color-accent);
    opacity: 0;
    transform: translate(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;

    /* Au dessus du spotlight */
    z-index: 2;
}

.service-card:hover::after {
    opacity: 1;
    transform: translate(0);
}

/* Ombre + légère bordure accent au hover */
.service-card:hover {
    box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(179, 228, 18, 0.2);
}

/* Tout le contenu de la card passe au dessus du spotlight */
.service-card > * {
    position: relative;
    z-index: 1;
}

/* Tes styles existants — inchangés */
.service-label {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    color: var(--color-text-secondary);
    margin-bottom: 1.6rem;
}

.service-card h3 {
    font-size: var(--fs-title2);
    font-weight: var(--fw-semibold);
    margin-bottom: 1.2rem;
}

.service-card p {
    font-size: var(--fs-body);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ============================================
   CARDS — PROJETS
   ============================================ */

.projet-card {
    flex: none;
    width: 40rem;
    border: 1px solid #252525;
    border-radius: 0.8rem;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.projet-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(179, 228, 18, 0.15);
}

.projet-card img {
    width: 100%;
    height: 22.5rem;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.projet-card:hover img {
    transform: scale(1.05);
}
.projet-info {
    padding: 2.4rem;
}

.projet-info h3 {
    font-size: var(--fs-title2);
    font-weight: var(--fw-semibold);
    margin-bottom: 1.2rem;
}

.projet-info p {
    font-size: var(--fs-body);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.projet-numero {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    color: var(--color-text-secondary);
    display: block;
    margin-bottom: 1.2rem;
}

.projet-tags {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.projet-tags li {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    color: var(--color-accent);
    background-color: #1a1a1a;
    padding: 0.4rem 1.2rem;
    border-radius: 10rem;
}

/* Coming soon card */
.projet-coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    border-color: #252525;
    min-height: 40rem;
}

.projet-coming-soon p {
    font-family: var(--font-mono);
    font-size: var(--fs-body-hl);
    color: var(--color-text-secondary);
}

/* ============================================
   CARDS — CV
   ============================================ */

.cv-card {
    min-width: 45rem;
    max-width: 45rem;
    height: clamp(55rem, calc(100vh - 15rem), 80rem);
    padding: clamp(2rem, 3vh, 3.2rem) 1.6rem;
    border: 1px solid #252525;
    background-color: #111111;
    border-radius: 0.8rem;
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.cv-card:hover {
    transform: translateY(-0.8rem);
    border-color: var(--color-accent);
    box-shadow:
            0 0 15px rgba(179, 228, 18, 0.4),
            0 0 40px rgba(179, 228, 18, 0.2),
            0 0 80px rgba(179, 228, 18, 0.1);
}

.cv-card ul li {
    font-size: var(--fs-body);
    color: var(--color-text-primary);
    line-height: 1.5;
    padding-top: clamp(0.7rem, 1.5vh, 1.2rem);
    padding-bottom: clamp(0.7rem, 1.5vh, 1.2rem);
    border-bottom: 1px dashed #252525;
}

.cv-card ul li:first-child { padding-top: 0; }
.cv-card ul li:last-child { border-bottom: none; padding-bottom: 0; }

.cv-card h3 {
    font-size: clamp(2.1rem, 3vh, 2.4rem);
    font-weight: var(--fw-bold);
    margin-bottom: 0.8rem;
}

/* Compétences — barre suffit */
.cv-competence ul li {
    border-bottom: none;
    padding-top: 0;
    padding-bottom: 0;
}

.cv-label {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    color: var(--color-accent);
    display: block;
    margin-bottom: clamp(1rem, 2vh, 1.6rem);
}

.cv-sublabel {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    color: var(--color-accent);
    display: block;
    margin-top: clamp(1.2rem, 2.5vh, 2rem);
    margin-bottom: 0.4rem;
}

/* Dates */
.cv-date {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.4rem;
}

/* Header card */
.cv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(0.6rem, 1.2vh, 1rem);
    padding-bottom: clamp(0.6rem, 1.2vh, 1rem);
    border-bottom: 1px solid #252525;
}

.cv-numero {
    font-family: var(--font-raleway);
    font-weight: var(--fw-bold);
    font-size: clamp(5.3rem, 8vh, 8rem);
    color: var(--color-accent);
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}
.cv-card:hover .cv-numero {
    transform: translateX(0.8rem);
    text-shadow:
            0 0 15px rgba(179, 228, 18, 0.6),
            0 0 30px rgba(179, 228, 18, 0.3);
}
.cv-header .cv-miniature {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 1.2vh, 1.2rem);
    color: var(--color-text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
}

.cv-card:hover .cv-header .cv-miniature {
    transform: translateX(0.8rem);
}

/* Texte outils et pro */
.cv-tools-main {
    font-size: var(--fs-body);
    color: var(--color-text-primary);
    margin-bottom: 0.4rem;
}

.cv-tools-desc {
    font-size: var(--fs-mono);
    color: var(--color-text-secondary);
    padding-bottom: clamp(1rem, 2vh, 1.6rem);
    margin-bottom: 0.4rem;
}

/* Séparateur uniquement dans outils */
.cv-outils .cv-tools-desc {
    border-bottom: 1px dashed #252525;
}

.cv-outils .cv-tools-desc:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

/* Barres de progression */
.barre-progress {
    height: 2px;
    background-color: #1a1a1a;
    border-radius: 10rem;
    margin-top: 0.4rem;
    margin-bottom: clamp(0.4rem, 1.5vh, 1.2rem);
}

.barre-fill {
    height: 100%;
    background-color: var(--color-accent);
    border-radius: 10rem;
}

/* ============================================
   TERMINAL / JSON / VIEWER
   ============================================ */

.json-viewer {
    flex: 1;
    background-color: var(--color-bg);
    border-radius: 0.8rem;
    overflow: hidden;
    border: 1px solid #1a1a1a;
    max-width: 120rem;
    max-height: 30rem;
}

.json-viewer pre {
    padding: 2.4rem;
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    line-height: 1rem;
}

.json-viewer::before {
    content: '~/Anas/profile.Json';
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: #555555;
    background-color: var(--color-bg);
    border: 1px solid #1a1a1a;
    padding: 1.2rem 8rem;

    background-image:
            radial-gradient(circle, #ff5f57 6px, transparent 6px),
            radial-gradient(circle, #febc2e 6px, transparent 6px),
            radial-gradient(circle, #28c840 6px, transparent 6px);

    background-repeat: no-repeat;
    background-position: 16px center, 36px center, 56px center;
    background-size: 12px 12px;
    height: 3.6rem;
}

.cmd {
    color: var(--color-text-secondary);
}

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--color-accent);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}


.prompt {
    color: var(--color-accent);
}

.key {
    color: #c792ea;
}

.val {
    color: var(--color-accent);
}

.val-bool {
    color: #4fc1ff
}/* ============================================
   HERO
   ============================================ */
section#hero {
    position: relative;
    overflow: hidden;
    min-height: 120rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 18rem;
    scroll-margin-top: 0;

    /* Dégradé de fond — noir vers accent très subtil */
    background:
        radial-gradient(ellipse at 80% 50%, rgba(179, 228, 18, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 50%, rgba(179, 228, 18, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(179, 228, 18, 0.04) 0%, transparent 50%);
}
.hero-surtitre {
    font-family: var(--font-raleway);
    font-size: var(--fs-header);
    font-weight: var(--fw-bold);
    color: var(--color-text-primary);
    margin-bottom: 4rem;
    line-height: 1;
}
.hero-soustitre {
    font-size: var(--fs-body-hl);
    color: var(--color-text-secondary);
    margin-bottom: 4rem;
}
section#hero h1 {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    color: var(--color-text-secondary);
    margin-bottom: 4rem;
}
.scroll-indicator {
    position: absolute;
    bottom: 10rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--color-text-secondary);
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
}
.scroll-arrow {
    font-size: 2.4rem;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--color-accent) 50%,
        transparent 100%
    );
    background-size: 100% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: scrollLight 3s ease-in-out infinite;
}
@keyframes scrollLight {
    0%   { background-position: 0% -100%; }
    100% { background-position: 0% 200%; }
}
/* ============================================
   SECTION STACK
   ============================================ */
#stack {
    padding-block: 0;
    height: 12rem;
    border-top: 1px solid #252525;
    border-bottom: 1px solid #252525;
    overflow: hidden;
    user-select: none;
    position: relative;
    visibility: hidden;
}
#stack ul {
    display: flex;
    align-items: center;
    gap: 3.2rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    padding-right: 3.2rem;
    will-change: transform;
}
#stack ul li {
    font-family: var(--font-raleway);
    font-weight: var(--fw-bold);
    font-size: 8.0rem;
    color: var(--color-text-primary);
    white-space: nowrap;
}
#stack ul li::before {
    content: "\2022";
    color: var(--color-accent);
    margin-right: 3.2rem;
}
/* ============================================
   SECTION À PROPOS
   ============================================ */

section#apropos {
    margin-top: 15rem;
}
section#apropos .section-label {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    color: var(--color-accent);
    margin-bottom: 1.6rem;
}
.apropos-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 4rem;
    margin-bottom: 8rem;
}
.apropos-texte {
    flex: 1;
}
.apropos-accroche {
    font-size: var(--fs-body-hl);
    font-weight: var(--fw-semibold);
    color: var(--color-text-primary);
    margin-bottom: 2.4rem;
    line-height: 1.5;
}
.apropos-texte p:not(.apropos-accroche){
    font-size: var(--fs-body);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 3.2rem;
}
.services {
    display: flex;
    gap: 0;
}
/* ============================================
   SECTION PORTFOLIO
   ============================================ */
section#portfolio {
    margin-top: 15rem;
}
section#portfolio .section-label {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    color: var(--color-accent);
    margin-bottom: 1.6rem;
}
.projets-grid {
    display: flex;
    gap: 2.4rem;
    margin-top: 4rem;
}
/* ============================================
   SECTION CV
   ============================================ */
section#cv {
    margin-top: 22rem;
}
section#cv .section-label {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    color: var(--color-accent);
    margin-bottom: 1.6rem;
}
/* Le conteneur pin réserve de l'espace vertical pour le scroll
   5 cards × 100vh = assez de scroll pour traverser toutes les cards */
.cv-pin-conteneur {
    height: 550vh;
    margin-top: 4rem;
    position: relative;
}
/* La zone sticky colle en haut du viewport pendant tout le scroll */
.cv-sticky {
    position: sticky;
    top: 11rem;
    height: calc(100vh - 11rem);
    display: flex;
    align-items: center;
}
/* Le track contient toutes les cards côte à côte */
.cv-track {
    display: flex;
    gap: 2.4rem;
    /* Padding pour que la card 01 commence au centre */
    padding-left: calc(50vw - 22.5rem);
    /* Padding fin pour que la card 05 finisse au centre */
    padding-right: calc(50vw - 22.5rem);
    will-change: transform;
}
/* ============================================
   SECTION FAQ
   ============================================ */
section#faq {
    margin-top: 15rem;
}
section#faq .section-label {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    color: var(--color-accent);
    margin-bottom: 1.6rem;
}
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-top: 4rem;
}
.faq-item {
    border: 1px solid #1a1a1a;
    border-radius: 0.8rem;
    padding: 3.2rem;
    transition: border-color 0.3s ease;
}
.faq-item:hover {
    border-color: var(--color-accent);
}
.faq-item h3 {
    font-size: var(--fs-body-hl);
    font-weight: var(--fw-semibold);
    color: var(--color-text-primary);
    margin-bottom: 1.6rem;
    line-height: 1.4;
}
.faq-item p {
    font-size: var(--fs-body);
    color: var(--color-text-secondary);
    line-height: 1.7;
}
.faq-item .accent {
    font-style: normal;
}
/* ============================================
   SECTION CONTACT
   ============================================ */
section#contact {
    margin-top: 8rem;
}
section#contact .section-label {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    color: var(--color-accent);
    margin-bottom: 1.6rem;
}
section#contact h2 {
    font-size: var(--fs-header);
    line-height: 1.1;
    margin-bottom: 8rem;
}
section#contact h2 .arrow {
    font-size: 0.3em;
    font-style: normal;
    vertical-align: 4rem;
    display: inline-block;
    transition: transform 0.2s ease;
}
section#contact h2 a:hover .arrow {
    transform: translateY(-0.8rem);
}
section#contact h2 a {
    display: inline-block;
    transition: transform 0.2s ease;
}
section#contact h2 a:hover {
    transform: translateX(0.8rem);
}
.contact-infos {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #252525;
    padding-top: 4.8rem;
    padding-bottom: 4.8rem;
}
.contact-label {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    color: var(--color-text-secondary);
    display: block;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}
.contact-info-item a,
.contact-info-item p {
    font-size: var(--fs-body-hl);
    color: var(--color-text-primary);
}
.contact-info-item a:hover {
    color: var(--color-accent);
    transition: color 0.2s ease;
}
/* ============================================================
   ANIMATIONS & KEYFRAMES  ← toujours à la fin
   ============================================================ */
@keyframes wiggle {
    0%   { transform: rotate(0deg); }
    15%  { transform: rotate(-8deg); }
    30%  { transform: rotate(8deg); }
    45%  { transform: rotate(-6deg); }
    60%  { transform: rotate(6deg); }
    75%  { transform: rotate(-3deg); }
    90%  { transform: rotate(3deg); }
    100% { transform: rotate(0deg); }
}
.logo img:hover,
.footer-logo img:hover {
    animation: wiggle 0.6s ease;
    /* pas de infinite = s'arrête après 1 cycle */
}
@keyframes progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
/* ============================================================
   MARQUEE — Bandeau défilement infini
   ============================================================ */
   /* L'animation : on translate de 0% à -100% sur l'axe X
   = la liste glisser vers la gauche de toute sa largeur
   Quand elle atteint -100%, elle repart à 0% -> boucle invisible */
@keyframes defiler {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}
/* ============================================================
   TEXT REVEAL — Apparition au scroll
   ============================================================ */
/* --- Effet 1 : slide depuis la droite → gauche --- */
.reveal {
    opacity: 0;
    /* On décale l'élément de 80px vers la droite au départ */
    transform: translateX(80px);
    /* La transition anime le passage vers l'état "visible" */
    transition: opacity 0.8s ease, transform 0.8s ease
}
/* État final : quand JS ajoute la classe "visible" */
.reveal.visible {
    opacity: 1;
    transform: translateX(0);
}
/* --- Effet 2 : bas vers haut, prononcé et lent --- */
.section-label {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.1s ease, transform 1.1s ease;
}
.section-label.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ============================================================
   CURSOR — Luciole lumineux
   ============================================================ */
/* Cache le curseur natif sur toute la page */
* {
    cursor: none !important;
}
.curseur-luciole {
    /* Taille de base de la luciole */
    width: 12px;
    height: 12px;
    /* Position fixe = reste dans le viewport même en scrollant */
    position: fixed;
    /* Centrage - le point d'ancrage est au centre de la luciole */
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #b3e412;
    /* Halos lumineux — plusieurs couche de box-shadows */
    box-shadow:
        0 0 8px 3px #b3e412,
        0 0 20px 6px rgba(179, 228, 18, 0.5),
        0 0 40px 10px rgba(179, 228, 18, 0.2);

    /* Passe au-dessus de tout */
    z-index: 9999;
    /* Ne bloque pas les clics sur les élémenta en dessous */
    pointer-events: none;
    /* Transition smooth pour le zoom */
    transition: width 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
}
/* État agrandi - survol d'un élément cliquable */
.curseur-luciole.curseur-agrandi {
    width: 28px;
    height: 28px;
    /* Halo plus intense */
    box-shadow:
        0 0 12px 5px #b3e412,
        0 0 30px 10px rgba(179, 228, 18, 0.6),
        0 0 60px 15px rgba(179, 228, 18, 0.3);
}
/* ============================================================
   FIREFLIES — Lucioles hero
   ============================================================ */
.luciole-hero {
    position: absolute;
    border-radius: 50%;
    background: #b3e412;
    pointer-events: none;
    /* Halo Lumineux */
    box-shadow:
        0 0 6px 2px #b3e412,
        0 0 14px 4px rgba(179, 228, 18, 0.4);

    /* Animation clignotement — utilise nos variables CSS */
    animation: clignoter var(--duree) var(--delai) infinite ease-in-out;
    /* Transition smooth pour le mouvement entre positions */
    transition: left 2.5s ease-in-out, top 2.5s ease-in-out;
}
@keyframes clignoter {
    0%, 100% { opacity: 0.15; transform: scale(0.8); }
    50%       { opacity: 1;   transform: scale(1.3); }
}
/* ============================================================
   RESPONSIVE MOBILE
   ============================================================ */
@media (max-width: 992px) {
    /* curseur luciole désacctivé sur mobile */
    .curseur-luciole {
        display: none;
    }
    * {
        cursor: auto !important;
    }
    .logo img {
        height: 8rem;
    }
    header {
        position: fixed;
        padding: 0.8rem clamp(2rem, 8vw, 6.4rem);
        background-color: rgba(10, 10, 10, 0.92);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    section#hero {
        overflow: visible;
        min-height: auto;
        
        background: none;
    }
    .btn {
        position: relative;
        margin-top: 4rem;
        align-self: flex-start;
        display: inline-block;
        width: auto;
        background-clip: border-box;
        bottom: auto;
        right: auto;
    }
    .scroll-indicator {
        display: none;
    }
    #stack ul li {
        font-size: 3.2rem;
    }
    /* JSON */
    .json-viewer {
        max-width: 100%;
        overflow-x: auto;
    }
    .json-viewer pre {
        font-size: 1.1rem;
    }
    /* Services */
    .services {
        flex-direction: column;
    }
    .projets-grid {
        flex-direction: column;
    }
    .projet-card {
        width: 100%;
    }
    .cv-pin-conteneur {
        height: auto !important;
    }
    .cv-sticky {
        position: static !important;
        height: auto !important;
    }
    .cv-track {
        flex-direction: column;
        padding-left: 0;
        padding-right: 0;
    }
    .cv-card {
        min-width: 100%;
        max-width: 100%;
        height: auto;
        overflow: visible;
    }
    .contact-infos {
        flex-direction: column;
        gap: 2.4rem;
    }
    section {
        scroll-margin-top: 8rem;
    }
    section#contact h2 {
        font-size: clamp(4.8rem, 15vw, 8rem);
        margin-bottom: 4rem;
    }
    footer {
        flex-direction: column;
        gap: 1.6rem;
        text-align: center;
    }
    .footer-copyright {
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
  /* -- NAVIGATION --- */
    .nav-hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        padding: 0.8rem;
        cursor: pointer;
        z-index: 200;
        position: relative;
    }
    .nav-hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--color-text-primary);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
  /* Animation hamburger -> croix quand .open */
    nav.open .nav-hamburger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    nav.open .nav-hamburger span:nth-child(2) {
        opacity: 0;
    }
    nav.open .nav-hamburger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .logo {
        position: relative;
        z-index: 200;
    }
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.8rem;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(10, 10, 10, 0.98);
        padding: 0 clamp(2rem, 8vw, 6.4rem);
        z-index: 150;
        display: flex;
        transform: translateY(-100%);
        transition: transform 0.4s ease;
        overflow: hidden;
    }
    /* Menu ouvert */
    nav.open ul {
        transform: translateY(0);
        display: flex;
    }
    nav ul li a {
        font-size: clamp(3.2rem, 5vw, 6.4rem);
        font-weight: var(--fw-bold);
    }
    .nav-contact {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 4rem;
        margin-top: 2.4rem;
        border-top: 1px solid #252525;
        padding-top: 2.4rem;
    }
    .nav-contact a {
        font-family: var(--font-mono);
        font-size: 1.1rem;
        color: var(--color-text-secondary);
        text-transform: lowercase;
    }
    .nav-contact p {
        font-family: var(--font-mono);
        font-size: 1.1rem;
        color: var(--color-text-secondary);
    }
    section#contact h2 .arrow {
        vertical-align: 1rem;
        font-size: 0.4em;
    }
    .wrapper {
        overflow-x: hidden;
    }
}
/* ============================================================
   RESPONSIVE TABLETTE
   ============================================================ */
@media (min-width: 993px) and (max-width: 1279px) {
    .cv-pin-conteneur {
        height: auto !important;
    }
    .cv-sticky {
        position: static !important;
        height: auto !important;
    }
    .cv-track {
        flex-direction: column;
        padding-left: 0;
        padding-right: 0;
    }
    .cv-card {
        min-width: 100%;
        max-width: 100%;
        height: auto;
        overflow: visible;
    }
    .curseur-luciole {
        display: none;
    }
    * {
        cursor: auto !important;
    }
    section#hero {
        background: none;
        padding-top: 10rem;
        min-height: 80rem;
    }
}
/* ============================================================
   RESPONSIVE LAPTOP
   ============================================================ */
@media (min-width: 1280px) and (max-width: 1920px) {
    section#hero {
        padding-top: 4rem;
        min-height: 80rem;
    }
    section {
        scroll-margin-top: 10rem;
    }
    .logo img {
        height: 11rem;
    }
}
/* ============================================================
   AJUSTEMENT MARGES — GRAND ÉCRAN UNIQUEMENT
   ============================================================ */
@media (min-width: 1921px) {
    section#cv {
        margin-top: 26rem; /* était 22rem */
    }

    section#contact {
        margin-top: 22rem; /* était 8rem */
    }
}
/* ============================================
   COMPENSATION HEADER FIXED (mobile)
   Remplace l'ancien calcul JS (header.offsetHeight) qui lisait une
   propriété géométrique à chaque 'load'/'resize' et forçait un reflow.
   Hauteur déterministe sur mobile : logo (8rem) + 2 x padding header (0.8rem).
   Si tu changes la taille du logo ou le padding du header dans la media
   query (max-width: 992px), mets cette valeur à jour.
   ============================================ */
@media (max-width: 992px) {
    body {
        padding-top: 9.6rem;
    }
}
