/* === RESET & VARIABLES === */
@font-face {
    font-family: 'Psilograph';
    src: url('../fonts/Psilograph-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #ffffff;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.container-full {
    width: 100%;
    padding: 0 40px;
}

/* === CURSOR PERSONNALISÉ === */
.cursor,
.cursor-follower {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor {
    background-color: white;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    border: 2px solid white;
    background-color: transparent;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

body:hover .cursor-follower {
    width: 40px;
    height: 40px;
}

/* === HIRE ME BUTTON === */
.hire-me-btn {
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 1000;
    width: 140px;
    height: 140px;
    text-decoration: none;
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}

.get-back-btn {
    right: 100px;
    left: auto;
}

.hire-me-btn:hover {
    transform: scale(1.1);
}

.hire-me-btn:hover .hire-me-icon {
    opacity: 0;
}

/* Curseur personnalisé pour Hire Me */
.hire-me-custom-cursor {
    position: fixed;
    width: 50px;
    height: 50px;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    display: none;
}

.hire-me-circle {
    width: 100%;
    height: 100%;
    animation: rotate 10s linear infinite;
}

.circle-text {
    font-size: 13px;
    font-weight: 600;
    fill: #1a1a1a;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hire-me-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0) 100%);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Psilograph', 'Arial Black', sans-serif;
    font-size: 70px;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    letter-spacing: 2px;
}

.logo:hover {
    opacity: 0.7;
}

.nav-right {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    text-transform: lowercase;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 500px;
    overflow: hidden;
}

/* Vidéo de fond à 10% d'opacité */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0.25;
}

/* Videos desktop/mobile */
.hero-video-mobile,
.hero-mask-mobile {
    display: none;
}

.hero-video-desktop,
.hero-mask-desktop {
    display: block;
}

/* SVG Masque pour révéler la vidéo à 100% à travers le texte */
.hero-video-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.mask-title {
    font-family: 'Psilograph', 'Arial Black', sans-serif;
    font-size: clamp(170px, 30vw, 500px);
    font-weight: 900;
    letter-spacing: clamp(2px, 0.4vw, 8px);
    text-transform: uppercase;
    transform: scaleY(1.5);
    transform-origin: center;
    dominant-baseline: middle;
}

.mask-subtitle {
    font-family: 'Psilograph', 'Arial Black', sans-serif;
    font-size: clamp(90px, 10vw, 250px);
    font-weight: 900;
    letter-spacing: clamp(4px, 1.2vw, 20px);
    text-transform: uppercase;
    dominant-baseline: middle;
}



/* Buttons Below SVG Text */
.hero-buttons-below {
    position: absolute;
    bottom: clamp(30px, 4.17vw, 80px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(12px, 1.04vw, 20px);
    animation: fadeInUpSimple 1s ease-out 0.3s backwards;
    width: 95%;
    max-width: 1200px;
}

.hero-buttons-row {
    display: flex;
    gap: clamp(12px, 1.04vw, 20px);
    flex-wrap: wrap;
    justify-content: center;
}

.btn-hero-large {
    padding: 1em 0.5em;
    border: none;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: clamp(1px, 0.13vw, 2.5px);
    text-transform: uppercase;
    cursor: pointer;
    color: #c5ff4d;
    transition: all 1000ms;
    font-size: clamp(9px, 0.835vw, 16px);
    position: relative;
    overflow: hidden;
    outline: 1px solid #c5ff4d;
    background-color: transparent;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    width: clamp(140px, 14.585vw, 280px);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hero-large:hover {
    color: #0a0a0a;
    transform: scale(1.05);
    outline: 1px solid #d4ff6d;
    box-shadow: 4px 5px 17px -4px #c5ff4d;
}

.btn-hero-large::before {
    content: "";
    position: absolute;
    left: -50px;
    top: 0;
    width: 0;
    height: 100%;
    background-color: #c5ff4d;
    transform: skewX(45deg);
    z-index: -1;
    transition: width 1000ms;
}

.btn-hero-large:hover::before {
    width: 250%;
}

.btn-hero-small {
    padding: 0.7em 1em;
    border: none;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: clamp(1px, 0.13vw, 2.5px);
    text-transform: uppercase;
    cursor: pointer;
    color: #c5ff4d;
    transition: all 1000ms;
    font-size: clamp(10px, 0.83vw, 16px);
    position: relative;
    overflow: hidden;
    outline: 1px solid #c5ff4d;
    background-color: transparent;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    width: auto;
    min-width: clamp(90px, 9.375vw, 180px);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hero-small:hover {
    color: #0a0a0a;
    transform: scale(1.05);
    outline: 1px solid #d4ff6d;
    box-shadow: 4px 5px 17px -4px #c5ff4d;
}

.btn-hero-small::before {
    content: "";
    position: absolute;
    left: -50px;
    top: 0;
    width: 0;
    height: 100%;
    background-color: #c5ff4d;
    transform: skewX(45deg);
    z-index: -1;
    transition: width 1000ms;
}

.btn-hero-small:hover::before {
    width: 250%;
}

/* Bouton Showreel plus haut */
.btn-hero-showreel {
    padding: 1em 1em;
    font-size: clamp(11px, 0.9vw, 18px);
}

/* === FILTER SECTION === */
.filter-section {
    padding: 60px 0 40px;
    background-color: var(--primary-bg);
}

/* === BIO SECTION === */
.filter-section {
    padding: 60px 0 40px;
    background-color: var(--primary-bg);
}

.filter-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    background: #c5ff4d;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 0.6em 1.3em;
    font-weight: 700;
    font-size: 16px;
    border: 3px solid black;
    border-radius: 0.4em;
    box-shadow: 0.1em 0.1em;
    color: #0a0a0a;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.1s ease;
}

/* === SHOWREEL BUTTON === */
.btn-showreel {
    cursor: pointer;
}

/* === RESPONSIVE HERO === */

/* === FILTER SECTION === */
.filter-section {
    padding: 60px 0 40px;
    background-color: var(--primary-bg);
    width: 100%;
    display: flex;
    justify-content: center;
}

/* === SWITCH TOGGLE === */
.switch {
    --_switch-bg-clr: #2a2a2a;
    --_switch-padding: 4px;
    --_slider-bg-clr: rgba(197, 255, 77, 0.65);
    --_slider-bg-clr-on: rgba(197, 255, 77, 1);
    --_slider-txt-clr: #0a0a0a;
    --_label-padding: 1rem 2.5rem;
    --_switch-easing: cubic-bezier(0.47, 1.64, 0.41, 0.8);
    
    color: white;
    width: fit-content;
    display: flex;
    justify-content: center;
    position: relative;
    border-radius: 9999px;
    cursor: pointer;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: relative;
    isolation: isolate;
    background-color: var(--_switch-bg-clr);
    padding: var(--_switch-padding);
}

.switch input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.switch > span {
    display: grid;
    place-content: center;
    transition: color 500ms ease-in-out;
    padding: var(--_label-padding);
    position: relative;
    z-index: 2;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
}

.switch::before {
    content: "";
    position: absolute;
    width: calc(50% - var(--_switch-padding) * 2);
    height: calc(100% - var(--_switch-padding) * 2);
    left: var(--_switch-padding);
    top: var(--_switch-padding);
    z-index: 1;
    border-radius: 9999px;
    background-color: var(--_slider-bg-clr);
    transition: transform 500ms var(--_switch-easing),
                background-color 500ms ease-in-out;
}

.switch:has(input[type="checkbox"]:checked)::before {
    transform: translateX(100%);
    background-color: var(--_slider-bg-clr-on);
}

.switch:has(input[type="checkbox"]:checked) > span:first-of-type,
.switch > span:last-of-type {
    color: rgba(255, 255, 255, 0.4);
}

.switch:has(input[type="checkbox"]:checked) > span:last-of-type,
.switch > span:first-of-type {
    color: var(--_slider-txt-clr);
}

/* === FILTER BUTTONS OLD - REMOVE === */
.filter-buttons {
    display: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.scroll-indicator span {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--text-secondary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* === MARQUEE === */
.marquee {
    position: absolute;
    bottom: 0;
    width: 100%;
    overflow: hidden;
    background-color: var(--secondary-bg);
    padding: 20px 0;
    border-top: 1px solid #222;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
    padding-right: 50px;
    color: var(--text-secondary);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeInUpSimple {
    from {
        opacity: 0;
        margin-top: 30px;
    }
    to {
        opacity: 1;
        margin-top: 0;
    }
}

/* === WORK SECTION === */
.work-section {
    padding: 40px 0 120px;
    background-color: var(--primary-bg);
}

.section-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    margin-bottom: 80px;
    letter-spacing: -2px;
    padding: 0 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
    aspect-ratio: 16/10;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.project-item.hidden {
    display: none;
}

.project-item.large {
    grid-column: span 3;
    aspect-ratio: 21/9;
}

.project-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--secondary-bg);
}

.project-image video,
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(1);
}

.project-item:hover .project-image video,
.project-item:hover .project-image img {
    transform: scale(1.05);
    filter: brightness(1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    font-size: 48px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.project-overlay p {
    display: none;
}

/* === ABOUT SECTION === */
.about-section {
    padding: 120px 0;
    background-color: var(--secondary-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-role {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.about-description {
    margin-bottom: 50px;
}

.about-description p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.skills h4 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    padding: 10px 20px;
    background-color: var(--primary-bg);
    border: 1px solid #333;
    border-radius: 25px;
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
}

.skill-tag:hover {
    background-color: var(--text-primary);
    color: var(--primary-bg);
    border-color: var(--text-primary);
}

.about-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.image-placeholder {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 80px;
    font-weight: 700;
    color: #444;
    letter-spacing: -2px;
}

/* Buttons in About Section */
.about-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* Showreel Button - Animated Style */
.btn-showreel {
    position: relative;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #0a0a0a;
    background: #c5ff4d;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.btn-showreel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-showreel:hover::before {
    left: 100%;
}

.btn-showreel:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(197, 255, 77, 0.4);
}

.btn-showreel:active {
    transform: translateY(-1px);
}

.btn-showreel-text {
    position: relative;
    z-index: 1;
}

/* Small Buttons Row */
.about-buttons-small {
    display: flex;
    gap: 15px;
}

/* CV and LinkedIn Buttons */
.btn-about-small {
    position: relative;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #c5ff4d;
    background: transparent;
    border: 2px solid #c5ff4d;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: inline-block;
}

.btn-about-small::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: #c5ff4d;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn-about-small:hover::before {
    width: 300px;
    height: 300px;
}

.btn-about-small:hover {
    color: #0a0a0a;
    border-color: #c5ff4d;
}

.btn-about-small span {
    position: relative;
    z-index: 1;
}

/* === CONTACT SECTION === */
.contact-section {
    padding: 120px 0 80px;
    background-color: #f5f5f5;
    text-align: center;
}

.contact-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.contact-email {
    font-size: clamp(28px, 4vw, 56px);
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 400;
    font-style: italic;
    position: relative;
    display: inline-block;
    margin-bottom: 60px;
    transition: var(--transition);
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 5px;
}

.contact-email:hover {
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.social-link {
    color: #1a1a1a;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    transform: translateY(-5px);
    opacity: 0.7;
}

/* === FOOTER === */
.footer {
    padding: 30px 0;
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.footer p {
    color: #666;
    font-size: 14px;
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px;
    z-index: 2001;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 40px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2002;
}

.modal-close:hover {
    transform: rotate(90deg);
    opacity: 0.7;
}

.modal-body {
    background-color: var(--secondary-bg);
    padding: 60px;
    border-radius: 12px;
}

.modal-title {
    font-size: 48px;
    margin-bottom: 30px;
}

.modal-video {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.modal-video video {
    width: 100%;
    height: auto;
}

.modal-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Grands écrans (au-dessus de 1920x1080) */
@media (min-width: 1921px) {
    .mask-subtitle {
        transform: translateY(40px);
    }
}

/* Tablettes et écrans moyens (1366px - 1024px) */
@media (max-width: 1366px) {
    .container {
        padding: 0 40px;
    }
    
    .hero {
        padding: 40px;
    }
}

/* Tablettes (1024px et moins) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-item.large {
        grid-column: span 2;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .image-placeholder {
        width: 280px;
        height: 280px;
    }
    
    .navbar {
        padding: 12px 40px;
    }
}

/* Tablettes portrait et grands mobiles (768px et moins) */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .container-full {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 0px 20px;
    }
    
    .logo {
        font-size: 60px;
    }
    
    .nav-right {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 20px;
    }
    
    .hero {
        padding: 80px 15px 0px;
    }
    
    .mask-title {
        font-size: clamp(170px, 30vw, 500px);
    }
    
    .mask-subtitle {
        font-size: clamp(90px, 10vw, 250px);
    }
    
    /* Switch to mobile video */
    .hero-video-desktop,
    .hero-mask-desktop {
        display: none;
    }
    
    .hero-video-mobile,
    .hero-mask-mobile {
        display: block;
    }
    
    .hero-buttons-row {
        flex-direction: row;
        gap: 10px;
        max-width: 500px;
    }
    
    .btn-hero-showreel {
        padding: 0.9em 1em;
        font-size: clamp(10px, 1.5vw, 14px);
    }
    
    .section-title {
        padding: 0 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .project-item.large {
        grid-column: span 1;
    }
    
    .project-overlay {
        padding: 25px;
    }
    
    .project-overlay h3 {
        font-size: 32px;
    }
    
    .project-overlay p {
        display: none;
    }
    
    .about-content {
        gap: 30px;
    }
    
    .image-placeholder {
        width: 250px;
        height: 250px;
        font-size: 60px;
    }
    
    .about-image {
        gap: 25px;
    }
    
    .btn-showreel {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .btn-about-small {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .modal-content {
        margin: 15px;
        padding: 15px;
    }
    
    .modal-body {
        padding: 25px;
    }
    
    .modal-title {
        font-size: 32px;
    }
    
    .modal-description {
        font-size: 16px;
    }
    
    .hire-me-btn {
        display: none;
    }
    
    .hire-me-icon {
        width: 35px;
        height: 35px;
    }
    
    .hire-me-custom-cursor {
        width: 35px;
        height: 35px;
    }
    
    .circle-text {
        font-size: 22px;
        letter-spacing: 0px;
    }
}

/* Petits mobiles (480px et moins) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 0px 15px;
    }
    
    .logo {
        font-size: 50px;
    }
    
    .nav-link {
        font-size: 18px;
    }
    
    .hero {
        padding: 60px 10px 0px;
    }
    
    .mask-title {
        font-size: clamp(170px, 30vw, 500px);
    }
    
    .mask-subtitle {
        font-size: clamp(90px, 10vw, 250px);
    }
    
    /* Switch to mobile video */
    .hero-video-desktop,
    .hero-mask-desktop {
        display: none;
    }
    
    .hero-video-mobile,
    .hero-mask-mobile {
        display: block;
    }
    
    .hero-buttons-below {
        width: 100%;
        padding: 0 10px;
        max-width: 350px;
    }
    
    .hero-buttons-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }
    
    .btn-hero-showreel {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 50%;
        justify-self: center;
        padding: 0.5em 0.3em;
        font-size: clamp(10px, 3vw, 13px);
        margin-bottom: 2px;
    }
    
    .btn-hero-small {
        width: 100%;
        font-size: clamp(9px, 2.5vw, 11px);
        padding: 0.5em 0.3em;
    }
    
    /* About Section Mobile Layout */
    .about-content {
        display: flex;
        flex-direction: column;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .image-placeholder {
        width: 120px;
        height: 120px;
        font-size: 40px;
        flex-shrink: 0;
    }
    
    .about-buttons {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
        width: auto;
    }
    
    .btn-showreel {
        padding: 10px 15px;
        font-size: 11px;
        letter-spacing: 1px;
        white-space: nowrap;
    }
    
    .about-buttons-small {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-about-small {
        padding: 8px 12px;
        font-size: 10px;
        letter-spacing: 1px;
        white-space: nowrap;
    }
    
    .about-description p {
        font-size: 16px;
    }
    
    .contact-title {
        font-size: 24px;
    }
    
    .social-links {
        gap: 20px;
    }
    
    .hire-me-btn {
        display: none;
    }
    
    .hire-me-custom-cursor {
        display: none !important;
    }
    
    body {
        cursor: auto;
    }
    
    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* Très petits mobiles (360px et moins) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .navbar {
        padding: 8px 10px;
    }
    
    .logo {
        font-size: 28px;
    }
    
    .nav-right {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 11px;
    }
    
    .section-title {
        padding: 0 10px;
    }
    
    .switch {
        --_label-padding: 0.8rem 2rem;
    }
    
    .switch > span {
        font-size: 14px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 28px;
    }
}