/* */

/* CSS principal - Layout, navigation, hero, sections générales */

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'CourierPrime';
    src: url('../fonts/CourierPrime.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-stretch: condensed;
}

@font-face {
    font-family: 'CourierThin';
    src: url('../fonts/CourierThin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'MatrixZone';
    src: url('../fonts/MatrixZone.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'JMH Typewriter-Thin';
    src: url('../fonts/JMH Typewriter-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'VeteranTypewriter';
    src: url('../fonts/veteran typewriter.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SpecialElite';
    src: url('../fonts/SpecialElite.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body::-webkit-scrollbar {
    width: 1vh;
    position: sticky;
    top: 0;
}

body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

body::-webkit-scrollbar-thumb {
    background: rgba(255, 110, 199, 0.5);
    border-radius: 0.1vh;
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 110, 199, 0.7);
}

:root {
    --text-light: #f8d7da;
    --accent-pink: #ef87c0;
    --background: #000;
    
    /* === VARIABLES RESPONSIVE === */
    --scale-ratio: 1;
    --responsive-scale: 1;
    --responsive-margin-left: 0px;
    --responsive-margin-left2: 0px; /* Seulement pour main-style.css */
    --current-aspect: 1.78;
    --reference-aspect: 1.78;
    --vertical-scale: 1;
    --projects-margin-top: 850px;  /* AJOUT : 85vh par defaut */
    --background-position-y: -80px;  /* AJOUT : -8vh par defaut */
    --footer-margin-top: 10px;  /* AJOUT : valeur minimale */

}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background/bg_synthwave2.jpg');
    background-size: 100%;
    background-position-y: calc(-8vh * (var(--vertical-scale)));
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
}

body {
    font-family: 'CourierPrime', monospace;
    font-weight: 100;
    font-stretch: condensed;
    background-color: var(--background);
    color: var(--text-light);
    background-image: url('../images/background/bg_synthwave2.jpg');
    background-size: 100%;
    background-position-y: var(--background-position-y);
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: auto;
    min-height: 100vh;
    position: relative;
    overflow-x: clip;
}



/* Sur ultra-wide, le body reste normal */

/* Navigation - MODIFIÉE avec échelle responsive */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(var(--responsive-scale));
    transform-origin: top center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    height: 60px;
    width: 1560px;
}

.nav-brand {
    transition: all 0.3s ease;
}

.nav-brand:hover {
    transform: scale(1.1);
}

.nav-brand a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 18px;
    font-weight: 100;
    font-stretch: condensed;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 18px;
    font-weight: 100;
    font-stretch: condensed;
    transition: all 0.3s ease;

}

.nav-link:hover {
    transform: scale(1.2);
}

.nav-link.active {
    color: var( --accent-pink);
}

/* Main content - conteneur fixed avec scaling */
.main-content {
    padding: 0 40px;
    width: 1500px;
    position: fixed;
    margin: 0 auto;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(var(--responsive-scale));
    transform-origin: top center;
    z-index: 1;

}

/* Background sur un pseudo-élément pour éviter qu'il soit scalé */

/* Sur ultra-wide: retirer le transform du conteneur, le mettre sur le wrapper */
@media (min-aspect-ratio: 1781/1000) {

    body {
        background-image: none;
        overflow: hidden;
    }
    
    .background-wrapper {
        display: none;
    }
    
    .main-content {
        transform: translateX(-50%);
        transform-origin: top center;
        top: 0;
        bottom: auto;
        height: 103vh;
        width: 100vw;
        overflow-y: auto;
        overflow-x: hidden;
        
        background-image: url('../images/background/bg_synthwave2.jpg');
        background-size: 100vw auto;
        background-position-y: var(--background-position-y);  /* CHANGE */
        background-repeat: no-repeat;
        background-attachment: local;
    }
        
    /* Le wrapper intérieur reste centré avec sa largeur fixe */
    .main-content-wrapper {
        transform: scale(var(--responsive-scale));
        transform-origin: top center;
        width: 1500px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }

    .title-section {
    margin-left: var(--responsive-margin-left2);
    }
    
    /* Scrollbar du main-content identique à celle du body sur ultra-wide */
    .main-content::-webkit-scrollbar {
        width: 1vh;
        position: sticky;
        top: 0;
    }
    
    .main-content::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.3);
    }
    
    .main-content::-webkit-scrollbar-thumb {
        background: rgba(255, 110, 199, 0.5);
        border-radius: 0.1vh;
    }
    
    .main-content::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 110, 199, 0.7);
    }
    
    /* Déplacer le scaling sur le wrapper intérieur */
    
    /* Ajuster projects-section pour qu'elle reste collée au bas */
    .projects-section {
        /* Annuler le margin-top basé sur vertical-scale sur ultra-wide */
        margin-top: 0;
        /* Positionner directement après le contenu */
    }
}

/* Wrapper - simple conteneur par défaut */
.main-content-wrapper {
    width: 100%;
    height: auto;
}

.title-section {
    text-align: center;
    padding: 105px 0px 50px 75px;
    z-index: 1;
    width: 1500px;
}

.main-title {
    font-family: 'MatrixZone', 'CourierPrime', monospace;
    font-size: 4.5rem;
    font-weight: normal;
    line-height: 1.1;
    position: relative;
    letter-spacing: 0.5em;
    z-index: 1;
}



.description {
    font-family: 'CourierThin', 'CourierPrime', monospace;
    font-size: 1.1rem;
    font-weight: 100;
    line-height: 1.6;
    color: var(--text-light);
    text-align: justify;
    flex-grow: 1;
}


.title-arthur,
.title-schick {
    background: linear-gradient(45deg, #f8d7da, #f4a6cd, #ff91d1, #ffb3e6);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

.title-superscript {
    font-size: 2rem;
    color: var(--accent-pink);
    vertical-align: 1.3em;
    margin-left: -50px;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    position: relative;
    z-index: 0;
    bottom: 0%;
}

.hero-content {
    display: grid;
    grid-template-columns: 350px 400px;
    gap: 70px;
    width: 100%;
    align-items: flex-end;
    justify-content: center;
}

.profile-section {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
}

.clickable-container {
    position: relative;
    display: inline-block;
}

.profile-image {
    width: 350px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: -50px;
    margin-left: -60px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 0;
}

.clickable-svg {
    position: absolute;
    top: -23px;
    left: -60px;
    width: 121.5%;
    height: 121.5%;
    pointer-events: none;
    z-index: 500;
}

.clickable-path {
    pointer-events: fill;
    cursor: pointer;
    transition: all 0.3s ease;
}

.text-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-left:-10px;
    align-items: flex-start;
    height: auto;
    align-self: center;
    width: 438px;
    margin-top: -10px;
}

.description {
    font-family: 'CourierThin', 'CourierPrime', monospace;
    font-size: 1.1rem;
    font-weight: 100;
    line-height: 1.6;
    color: var(--text-light);
    text-align: justify;
    flex-grow: 1;
}

.description-superscript {
    font-family: 'CourierThin', 'CourierPrime', monospace !important;
    font-size: 0.8rem !important;
    color: var(--text-light) !important;
    vertical-align: super;
    font-weight: 100 !important;
    margin-right: 7px;
}

.learn-more-btn {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    padding: 8px 20px;
    font-family: 'CourierPrime', monospace;
    font-weight: 100;
    font-stretch: condensed;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 500;
}

.learn-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-pink);
    color: var(--accent-pink);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 110, 199, 0.3);
}

.scroll-to-reel {
    margin-top: -270px;
    position: absolute;
}

.reel-projects-section {
    background-image: url('../images/background/bg_4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 150px 0px 0px 0px;
    position: relative;
    z-index: 2;
    margin-top: var(--projects-margin-top);
    width: 1550px;
    margin-left: var(--responsive-margin-left);
    transform: scale(var(--responsive-scale));
    transform-origin: top center;
    overflow-x: clip
}

.reel-projects-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(0, 0, 0, 0.3) 15%, 
        rgba(0, 0, 0, 0.7) 30%, 
        rgba(0, 0, 0, 0.9) 40%, 
        rgba(0, 0, 0, 1.0) 50%, 
        rgba(0, 0, 0, 0.9) 60%, 
        rgba(0, 0, 0, 0.7) 70%, 
        rgba(0, 0, 0, 0.3) 85%, 
        transparent 100%);
    pointer-events: none;
    z-index: 900;
}

.reel-projects-section::after {
    /* Background pour la zone projects - du divider jusqu'en bas */
    content: '';
    position: absolute;
 /* Commence où ::before finit */
    left: 0;
    width: 100%;
    height: 64.5%;
    top: 35.5%;
    background-image: url('../images/background/bg_2.jpg');
    background-size: cover;
    background-position: center;
    transform: scaleX(-1);
    background-repeat: no-repeat;
    z-index: -2;
}

.reel-content {
    margin: 0 auto;
    text-align: center;
    margin-bottom: 300px;
}

.reel-title {
    font-family: 'MatrixZone', monospace !important;
    font-size: 4rem;
    color: var(--accent-pink);
    margin-bottom: -10px;
    letter-spacing: 0.3em;
    font-weight: normal !important;
    background: linear-gradient(45deg, #ff6ec7, #f4a6cd, #ff91d1, #ffb3e6);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

.reel-video-wrapper {
    flex: 1;
    display: flex;
    margin-top: 120px;
    justify-content: center;
}

.reel-video-player {
    aspect-ratio: 16/9;
    max-width: 900px;
    margin: 0 auto;
    border: 3px solid rgba(255, 110, 199, 0.5);
    border-left: 4.5px solid rgba(255, 110, 199, 0.5);
    border-right: 4.5px solid rgba(255, 110, 199, 0.5);
    border-radius: 7px;
    background: #000;
    display: block;
    width: 100%;
    position: relative;
    z-index: 2;
}

.iframe-touch-shield {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: transparent;
    cursor: pointer;
}

.scroll-to-projects {
    margin-top: -250px;
    position: absolute;
}

.reel-projects-divider {
    margin-top: -1204px;
    margin-left: -1140px;
    position: absolute;
    transform: scale(0.9);
    z-index: -1;
    pointer-events: none;
    display: flex;
    overflow: clip;
}

.projects-content {
    margin: 0 auto;
    text-align: center;
    margin-top: 400px;
}

.projects-title {
    font-family: 'MatrixZone', monospace !important;
    font-size: 4rem;
    color: var(--accent-pink);
    margin-bottom: 40px;
    letter-spacing: 0.3em;
    font-weight: normal !important;
    background: linear-gradient(45deg, #ff6ec7, #f4a6cd, #ff91d1, #ffb3e6);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

.projects-subtitle {
    font-family: 'CourierThin', 'CourierPrime', monospace;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 100;
}

.projects-description {
    font-family: 'CourierThin', 'CourierPrime', monospace;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 60px;
    opacity: 0.8;
    font-weight: 100;
    margin-bottom: 100px;
}

.projects-grid {
    display: grid;
    gap: 25px;
    margin: 60px 60px 0 100px;
    margin-bottom: -430px;
    justify-content: center;
    width: calc(100% - 160px);
    /* Grille fixe : 3 colonnes logiques = 6 colonnes CSS */
    grid-template-columns: repeat(6, 225px);
}

/* Centrage des orphelins pour 3 colonnes logiques */
.project-card:last-child:nth-child(3n - 1) {
    grid-column-end: -2;
}

.project-card:nth-last-child(2):nth-child(3n + 1) {
    grid-column-end: 4;
}

.project-card:last-child:nth-child(3n - 2) {
    grid-column-end: 5;
}

/* Chaque carte span 2 colonnes = 3 colonnes logiques */
.project-card {
    grid-column: span 2;
    width: 430px !important;
    height: 580px !important;
    margin-bottom: 50px;
    transform: scale(0.95);
}

/* Navigation entre projets - Flèches avec texte centrées */
.project-navigation {
    position: fixed;
    top: 50%;
    z-index: 9999;
}

/* Position simple gauche/droite */
.project-nav-left { 
    left: 20px;
    transform: translateY(-50%);
}

.project-nav-right { 
    right: 20px;
    transform: translateY(-50%);
}

.project-nav-arrow {
    background: rgba(0, 0, 0, 0.01);
    color: white;
    border: white;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    padding: 10px 15px;
    font-family: 'CourierPrime', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Flèche gauche : flèche + texte */
.project-nav-left .project-nav-arrow {
    flex-direction: row;
    gap: 12px;
}

.project-nav-left .project-nav-arrow .arrow-symbol {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    transform: scaleY(3);
    width: 20px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-nav-left .project-nav-arrow .arrow-text {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    font-weight: normal;
    line-height: 1.2;
    text-align: center;
}

/* Flèche droite : texte + flèche */
.project-nav-right .project-nav-arrow {
    flex-direction: row;
    gap: 12px;
}

.project-nav-right .project-nav-arrow .arrow-symbol {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    transform: scaleY(3);
    width: 20px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-nav-right .project-nav-arrow .arrow-text {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    font-weight: normal;
    line-height: 1.2;
    text-align: center;
}

/* États hover */
.project-nav-arrow:hover {
    background: rgba(0, 0, 0, 0.01);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.project-nav-arrow:disabled {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

footer {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(255, 235, 237, 0.2);
    padding: 28.5px 30px;
    margin-top: var(--footer-margin-top);  /* CHANGE */
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background/bg_5.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(5px);
    z-index: -1;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-left: 20px;
}

.footer-copyright {
    font-family: 'CourierPrime', monospace;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 100;
    margin-left: 30px;
}

.contact-button-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 0 0px 0;
    margin-bottom: -80px;
    margin-top: 30px;
    margin-right: -20px;
    width: 1500px;
}

.contact-btn {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    padding: 3px 20px;
    font-family: 'CourierPrime', monospace;
    font-weight: 100;
    font-stretch: condensed;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 260px;
    text-align: center;
    position: relative;
    text-decoration: none !important;
    z-index: 500;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-pink);
    color: var(--accent-pink);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 110, 199, 0.3);
}

