@font-face {
    font-family: 'Bahn';
    src: url('fonts/bahnschrift_reg.ttf');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Tomo';
    src: url('fonts/tomo.ttf');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    cursor: url('cursor.webp') 16 16, auto;
    font-family: Arial, Helvetica, sans-serif;
    background: #f2f2f2;
}
/* ================= NAVBAR ================= */
.logo-bold {
    font-family: 'Bahn', sans-serif;
    font-weight: 700;
}
.logo-light {
    font-family: 'Bahn', sans-serif;
}
.logo-link {
    text-decoration: none;
    color: inherit;
}
.logo-link:hover {
    cursor: url('cursor.webp') 16 16, auto;
}
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    padding: 18px 40px;
    background: rgba(66, 66, 66, 0.25);
    border-radius: 30px;
    z-index: 999;
}
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
nav {
    font-family: 'Bahn', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}
nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    padding: 0;
    margin: 0;
}
nav a {
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
    color: #000;
    padding: 6px 14px;
    border-radius: 20px;
    transition: background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}
nav a:hover {
    background: rgba(50, 50, 50, 0.55);
    color: #fff;
    cursor: url('cursor.webp') 16 16, auto;
}
.navbar.shrink nav {
    width: 100%;
    justify-content: center;
}
.navbar.shrink nav ul {
    justify-content: center;
}
.navbar.shrink {
    width: auto;
    padding: 10px 30px;
    top: 10px;
    border-radius: 40px;
}
.navbar.shrink .nav-inner {
    justify-content: center;
}
.navbar.shrink nav ul {
    gap: 25px;
}
            .hero {
                background: linear-gradient(180deg, #f2f2f2 0%, #f2f2f2 60%, #f2f2f2 100%);
                position: relative;
                height: 100vh;
                display: flex;
                justify-content: center;
                align-items: center;
                text-align: center;
                overflow: hidden;
            }
            .vhs-noise {
                position: absolute;
                inset: 0;
                opacity: 0.13;
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
                background-size: 300px 300px;
                pointer-events: none;
                z-index: 1;
            }
            .vhs-scanlines {
                position: absolute;
                inset: 0;
                background: repeating-linear-gradient(
                    0deg,
                    transparent,
                    transparent 1px,
                    rgba(180, 0, 255, 0.04) 1px,
                    rgba(180, 0, 255, 0.04) 2px
                );
                pointer-events: none;
                z-index: 1;
            }
            .vhs-scan-bar {
                position: absolute;
                left: 0;
                right: 0;
                height: 4px;
                background: rgba(66, 66, 66, 0.05);
                animation: vhsScan 3s linear infinite;
                pointer-events: none;
                z-index: 2;
            }
            @keyframes vhsScan {
                from { top: -4px; }
                to   { top: 100%; }
            }
            .vhs-glitch-line {
                position: absolute;
                left: 0;
                right: 0;
                height: 2px;
                background: rgba(66, 66, 66, 0.25);
                top: 40%;
                animation: glitchLine 6s ease-in-out infinite;
                pointer-events: none;
                z-index: 2;
            }
            @keyframes glitchLine {
                0%, 88%, 100% { opacity: 0; transform: scaleX(1); }
                89%  { opacity: 1; transform: scaleX(1.02) translateX(-3px); top: 38%; }
                90%  { opacity: 0.5; transform: scaleX(0.98) translateX(5px); top: 42%; }
                91%  { opacity: 1; transform: scaleX(1); top: 40%; }
                92%  { opacity: 0; }
            }
            .vhs-rec {
                position: absolute;
                top: 90px; 
                left: 32px;
                font-family: monospace;
                font-size: 13px;
                font-weight: 700;
                color: #000000;
                letter-spacing: 2px;
                display: flex;
                align-items: center;
                gap: 6px;
                z-index: 10;
            }
            .vhs-rec-dot {
                width: 8px;
                height: 8px;
                border-radius: 50%;
                background: #000000;
                animation: recBlink 1s step-end infinite;
            }
            @keyframes recBlink {
                0%, 100% { opacity: 1; }
                50%       { opacity: 0; }
            }
            .vhs-timecode {
                position: absolute;
                bottom: 28px;
                right: 28px;
                font-family: monospace;
                font-size: 12px;
                color: #000000;
                letter-spacing: 1px;
                z-index: 10;
            }
            .hero h1 {
                color: #000000;
                font-family: 'Tomo',sans-serif;
                font-size: 6rem;
                font-weight: 900;
                letter-spacing: 4px;
            }
            @keyframes heroChroma {
                0%,  100% { text-shadow:  2px 0 rgba(0,255,255,.4), -2px 0#f2f2f2; }
                50%        { text-shadow: -3px 0 rgba(0,255,255,.4),  3px 0 #f2f2f2; }
            }
            .hero h2 {
                color:#000000;
                font-family: 'Bahn', sans-serif;
                margin-top: 10px;
                font-size: 1rem;
            }
            .hero-content {
                position: relative;
                z-index: 10;
            }
/* ================= ABOUT ================= */
.about-section {
    height: 500vh;
    background: #6a6a6a;
    color: white;
    padding: 0 8%;
}
.about-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-grid {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 600px;
    display: flex;
    align-items: center;
}
.about-grid p {
    position: absolute;
    max-width: 420px;
    line-height: 1.8;
    font-family: 'Bahn', sans-serif;
    font-size: 1.2rem;
}
.left-top {
    top: 10%;
    left: 0;
}
.right-top {
    top: 25%;
    right: 0;
}
.left-bottom {
    top: 57%;
    left: 0;
}
.right-bottom {
    top: 72%;
    right: 0;
}
.fade-text .letter {
    opacity: 0.1;
    transition: opacity 0.1s ease;
}
/* ================= DESIGN ================= */
.works-section {
    position: relative;
}
.works-section h2{
    font-family: 'Tomo', sans-serif;
}
.design {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;  
    align-items: center;
}
.design h2 {
    position: absolute;
    top: 2rem;
    left: 2rem;
}
.three-d {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;  
    align-items: center;
    background: #6a6a6a ;
}
.three-d h2 {
    position: absolute;
    color:#F2f2f2;
    top: 2rem;
    left: 2rem;
}
.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 1.5rem 0;
  position: relative;
}
.carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scroll-left 20s linear infinite;
}
.carousel-track:hover { 
    animation-play-state: paused; }
@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.card {
  width: 270px;
  height: 350px;
  overflow: hidden;
  flex-shrink: 0;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.modal-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
}
/* ================= SKILLS ================= */
.skills-section {
    height: 100vh;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tv-wrapper {
    position: relative;
    width: 70vw;
}
.tv-img {
    position: relative;
    width: 100%;
    display: block;
    z-index: 2;
}
.tv-screen {
    position: absolute;
    top: 25%;
    left: 22%;
    width: 46%;
    height: 52%;
    overflow: hidden;
    border-radius: 40px;
    animation: flicker 8s infinite;
    z-index: 1;
}
.tv-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 11;
    border-radius: 12px;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.12) 2px,
        rgba(0, 0, 0, 0.12) 4px
    );
}
.tv-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    border-radius: 12px;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255, 255, 255, 0.45) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 75%, rgba(255,255,255,0.15) 0%, transparent 40%);
}
@keyframes flicker {
    0%, 94%, 100% { opacity: 1; }
    95% { opacity: 0.8; }
    96% { opacity: 1; }
    97% { opacity: 0.85; }
    98% { opacity: 1; }
}
.skills-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #0a0a0a;
    filter: saturate(0.8) brightness(0.9);
}
.skill-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.skill-icon:hover img {
    transform: scale(1.2);
}
.skill-tooltip {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff26;
    color: white;
    font-family: 'Bahn', sans-serif;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 99;
}
.skill-icon:hover .skill-tooltip {
    opacity: 1;
}
/* ================= CONTACT ================= */
.contact-section {
    height: 100vh;
    background: #6a6a6a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8%;
}
.contact-inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 40px;
    text-decoration: none;
    padding: 24px 0;
    border-top: 1px solid #F2f2f2;
    transition: padding-left 0.3s ease;
    cursor: url('cursor.webp') 16 16, auto;
}
.contact-item:last-child {
    border-bottom: 1px solid #f2f2f2;
    cursor: url('cursor.webp') 16 16, auto;
}
.contact-label {
    font-family: 'Bahn', sans-serif;
    font-size: 0.7rem;
    color:#f2f2f2;
    letter-spacing: 3px;
    min-width: 100px;
    cursor: url('cursor.webp') 16 16, auto;
}
.contact-value {
    font-family: 'Bahn', sans-serif;
    font-size: 1.1rem;
    color: #f2f2f2;
    transition: color 0.3s ease;
}
.contact-inner:hover .contact-value {
    cursor: url('cursor.webp') 16 16, auto;
}
.contact-item:hover .contact-value {
    color: #E5632B;
    cursor: url('cursor.webp') 16 16, auto;
}
.site-footer { background: #F2f2f2; border-top: 2px solid #5d5d5d; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; border-bottom: 2px solid #5d5d5d; }
.footer-col { padding: 32px 28px; }
.footer-col + .footer-col { border-left: 1.5px solid #5d5d5d; }
.col-title { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #1a1a1a; margin-bottom: 16px; }
.brand { font-family: 'Tomo';font-size: 22px; font-weight: 700; letter-spacing: 0.05em; color: #1a1a1a; line-height: 1.1; margin-bottom: 8px; }
.brand span { font-weight: 300; }
.copyright { font-size: 11px; color: #1a1a1a; margin-top: 20px; line-height: 1.7; }
.dino-area { border: 1.5px solid #1a1a1a; border-radius: 4px; overflow: hidden; }
.dino-score { display: flex; justify-content: flex-end; padding: 6px 10px; font-size: 11px; letter-spacing: 0.1em; color: #555; }
#dinoCanvas { display: block; width: 100%; height: 120px; }
.dino-hint { font-size: 10px; color: #1a1a1a; text-align: center; padding: 4px 0 6px; letter-spacing: 0.08em; }
.music-player { border: 1.5px solid #1a1a1a; border-radius: 4px; padding: 14px; }
.music-thumb img {
    width: 20%;
    height: 20%;
    object-fit: cover;
    border-radius: 3px;
}
.music-track { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.music-title { font-size: 12px; font-weight: 700; color: #1a1a1a; letter-spacing: 0.05em; }
.music-artist { font-size: 10px; color: #1a1a1a; }
.music-controls { display: flex; gap: 8px; }
.ctrl-btn { padding: 6px 12px; border: 1.5px solid #1a1a1a; background: #F5F0E8; border-radius: 3px; cursor: pointer; font-size: 13px; }
.ctrl-btn:hover { background: #1a1a1a; color: #F5F0E8; cursor: url('cursor.webp') 16 16, auto; }
.progress-bar { height: 3px; background: #ddd; border-radius: 2px; margin-top: 10px; }
.progress-fill { height: 100%; background: #1a1a1a; border-radius: 2px; width: 0%; transition: width 0.1s; }
.music-time { display: flex; justify-content: space-between; font-size: 10px; color: #1a1a1a; margin-top: 4px; }
.checkerboard { height: 40px; background-image: repeating-conic-gradient(#5d5d5d 0% 25%, #F5F0E8 0% 50%); background-size: 20px 20px; border-top: 2px solid #5d5d5d; border-bottom: 2px solid #5d5d5d; }
.footer-bottom { background: #5d5d5d; padding: 10px 28px; text-align: center; }
.footer-bottom span { font-size: 11px; color: #F2f2f2; letter-spacing: 0.15em; text-transform: uppercase; }
/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 480px) {
    /* --- NAVBAR --- */
    /* On simplifie la barre pour mobile */
    .navbar {
        width: 95%;
        padding: 10px 15px;
        top: 10px;
        left : 50%;
        transform: translateX(-50%)
    }
    .nav-inner {
        flex-direction: column;
        gap: 6px;
    }
    .logo {
        font-size: 0.9rem;
    }
    nav ul {
        gap: 2px;
    }
    nav a {
        font-size: 0.65rem;
        padding: 4px 8px;
    }
    /* --- HERO --- */
    .hero h1 {
        font-size: 3.5rem; /* Réduction du titre */
    }
    .vhs-timecode {
        font-size: 10px;
        left: 15px;
        bottom: 15px;
    }
    .vhs-rec {
    top: 80px;
    left: 15px;
}
    /* --- ABOUT --- */
    .about-section {
        height: auto; /* On désactive le scroll infini sur mobile pour plus de clarté */
        padding: 100px 5%;
    }
    .about-sticky {
        position: relative;
        height: auto;
    }
    .about-grid {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 40px;
    }
    .about-grid p {
        position: static; /* On remet les textes les uns sous les autres */
        max-width: 100%;
        font-size: 1.1rem;
        opacity: 1; /* On force l'opacité car le scroll interactif est difficile sur mobile */
    }
    .fade-text .letter {
        opacity: 1 !important;
    }
    /* --- WORKS --- */
    .design h2, .three-d h2 {
        font-size: 1.5rem;
        top: 1rem;
        left: 1rem;
    }
    .card {
        width: 180px; /* Cartes plus petites */
        height: 250px;
    }
/* --- SKILLS (La télé) --- */
.skills-section {
    height: 100vh;
    padding: 60px 5%;
    align-items: center;
}
.tv-wrapper {
    width: 100%;
}
.tv-img {
    display: none; /* Cache la télé */
}
.tv-screen {
    position: static; /* Sort du positionnement absolu */
    width: 100%;
    height: auto;
    border-radius: 0;
    overflow: visible;
    animation: none;
}
.tv-screen::before,
.tv-screen::after {
    display: none; /* Cache les effets écran */
}
.skills-container {
    background: transparent;
    filter: none;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 colonnes */
    gap: 16px;
    padding: 12px 0;
    position: static;
    width: 100%;
    height: auto;
}
.skill-icon {
    position: static; /* Annule le positionnement absolu du JS */
    width: auto;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}
.skill-icon img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.skill-tooltip {
    position: static;
    transform: none;
    opacity: 1 !important; /* Toujours visible */
    background: transparent;
    color: #1a1a1a;
    font-size: 0.75rem;
    padding: 0;
    white-space: nowrap;
    pointer-events: none;
}
/* --- CONTACT --- */
.contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 0;
}
.contact-label {
    font-size: 0.6rem;
}
.contact-value {
    font-size: 0.95rem;
}
    /* --- FOOTER & MINI JEU --- */
    /* Masquer le jeu Dino sur mobile comme demandé */
    .footer-col:has(.dino-area) {
        display: none;
    }
    /* --- FOOTER GLOBAL --- */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 10px;
    align-items: start;
}
/* --- SECTION MUSIQUE PLUS PETITE --- */
.music-player {
    background: rgba(0, 0, 0, 0.03);
    padding: 12px;
    border-radius: 12px;
    max-width: 100%; 
}
.music-track {
    gap: 10px;
    margin-bottom: 10px;
}
.music-thumb {
    width: 55px;  
    height: 55px;
    flex-shrink: 0;
}
.music-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}
.music-title {
    font-size: 0.75rem; 
    font-weight: bold;
}
.music-artist {
    font-size: 0.65rem;
}
.music-controls {
    gap: 8px;
    margin-bottom: 8px;
}
.ctrl-btn {
    font-size: 0.8rem;
    width: 34px;
    height: 34px;
     display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.music-time {
    font-size: 10px; 
}
    /* Ajustement des modales (images zoomées) */
    #modal-img, #modal-img-3d {
        width: 90%;
        height: auto;
    }
}
@media (min-width: 481px) and (max-width: 1024px) {
    .navbar {
        width: 92%;
        padding: 14px 30px;
    }
     .about-section {
        height: auto; /* On désactive le scroll infini sur mobile pour plus de clarté */
        min-height: 100vh;
        padding: 100px 5%;
    }
   .about-sticky {
    position: relative;
    height: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-grid {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 40px;
    justify-content: center;
}
.about-grid p {
    position: static;
    max-width: 100%;
    font-size: 1.1rem;
    opacity: 1;
}
.fade-text .letter {
    opacity: 1 !important;
}
    /* --- WORKS --- */
    .card {
        width: 220px;
        height: 300px;
    }
    /* --- SKILLS --- */
    .skills-section {
        height: 100vh;
    }
    .tv-wrapper {
        width: 80vw;
    }
    .skill-icon img{
        width: 80%;
        height: 80%;
    }
     .footer-col:has(.dino-area) {
        display: none;
    }
    .footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; 
    gap: 30px;
    align-items: start;
}
}