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

:root {
    --black: #000000;
    --white: #ffffff;
    --gray: #fafafa;
    --violet: #8b5cf6;
    --violet-dark: #7c3aed;
    --text-gray: #666;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    background: var(--gray);
    color: var(--black);
    overflow-x: hidden;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.loader-logo {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--violet), var(--violet-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
    }
}

.loader-progress {
    width: 300px;
    height: 4px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--violet);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
    animation-duration: 1.5s;
    border-top-color: var(--violet);
}

.spinner-ring:nth-child(2) {
    animation-duration: 2s;
    border-top-color: var(--violet-dark);
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    animation-duration: 1.2s;
    border-top-color: var(--violet);
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--violet);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    padding: 120px 60px 60px;
    gap: 40px;
    max-width: 2000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 60px;
    padding-bottom: 60px;
    position: relative;
    z-index: 2;
}

.main-title {
    font-size: 120px;
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -4px;
    margin-bottom: 50px;
}

.title-line {
    display: block;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 50px;
    max-width: 500px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 80px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 2px solid var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--black);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-icon:hover {
    background: var(--violet);
    border-color: var(--violet);
    color: var(--white);
    transform: scale(1.1);
}

.social-icon:hover svg {
    fill: var(--white);
}

.stats {
    display: flex;
    flex-direction: row;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    max-width: 300px;
}

.stat-number,
.stat-slot-machine {
    font-size: 60px;
    font-weight: 900;
    font-style: italic;
    color: var(--black);
    margin-bottom: 10px;
}

/* Slot Machine Style */
.stat-slot-machine {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 80px;
    overflow: hidden;
}

.slot-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
    height: 80px;
    width: 60px;
    vertical-align: middle;
}

.slot-column {
    display: flex;
    flex-direction: column;
    transition: transform 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.slot-digit {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    font-weight: 900;
    font-style: italic;
}

.slot-symbol {
    display: inline-block;
    height: 80px;
    line-height: 80px;
    vertical-align: middle;
}

.stat-item p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-gray);
}

/* Hero Right - Violet Block */
.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Scrolling Background Text */
.scrolling-text-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.scrolling-text-content {
    display: flex;
    gap: 100px;
    white-space: nowrap;
    position: absolute;
    width: 100%;
}

.scrolling-text-content.line-1 {
    top: 15%;
    animation: scroll-left 40s linear infinite;
}

.scrolling-text-content.line-2 {
    top: 45%;
    animation: scroll-right 45s linear infinite;
}

.scrolling-text-content.line-3 {
    top: 75%;
    animation: scroll-left 50s linear infinite;
}

.scrolling-text-content span {
    font-size: 200px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.034);
    letter-spacing: -10px;
    font-style: italic;
    user-select: none;
    display: inline-block;
}

.scrolling-text-content.line-1 span {
    transform: rotate(-5deg);
}

.scrolling-text-content.line-2 span {
    transform: rotate(7deg);
}

.scrolling-text-content.line-3 span {
    transform: rotate(-8deg);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.accent-block {
    background: var(--violet);
    border-radius: 40px;
    padding: 40px;
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 3/4;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

/* About Section */
.about-section {
    background: var(--black);
    color: var(--white);
    padding: 150px 60px;
    position: relative;
    min-height: 100vh;
}

.about-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.about-left {
    display: flex;
    justify-content: center;
}

.about-image-small {
    width: 300px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-title {
    font-size: 80px;
    font-weight: 900;
    letter-spacing: -3px;
    margin-bottom: 40px;
    line-height: 1;
}

.about-description {
    font-size: 18px;
    line-height: 1.8;
    color: #a1a1a6;
    max-width: 600px;
}

/* Corner Icons */
.corner-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.corner-target,
.corner-plus {
    position: absolute;
    font-size: 40px;
    color: var(--white);
    opacity: 0.5;
}

.top-left-icon {
    top: 80px;
    left: 80px;
}

.top-right-icon {
    top: 80px;
    right: 80px;
}

.bottom-left-icon {
    bottom: 80px;
    left: 80px;
}

.bottom-right-icon {
    bottom: 80px;
    right: 80px;
}

/* Portfolio Section */
.portfolio-section {
    padding: 150px 60px;
    background: var(--gray);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.filter-btn {
    padding: 12px 30px;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.filter-btn:hover {
    background: var(--violet);
    border-color: var(--violet);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.filter-btn.active {
    background: var(--violet);
    border-color: var(--violet);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-item.large-item {
    grid-column: 1 / -1; /* Prend toute la première ligne */
    aspect-ratio: 16/7; /* Format large pour mettre en valeur */
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(139, 92, 246, 0.9) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s;
    border-radius: 20px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item h3 {
    font-size: 36px;
    font-weight: 700;
    z-index: 2;
    position: relative;
    transition: all 0.5s;
    opacity: 0;
    transform: translateY(20px);
}

.portfolio-item:hover h3 {
    opacity: 1;
    transform: translateY(0);
    color: var(--white);
}

/* Styles pour les projets fermés */
.portfolio-item.closed-item {
    filter: grayscale(100%);
    position: relative;
}

.portfolio-item.closed-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    border-radius: 20px;
}

.closed-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 48px;
    font-weight: 900;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    z-index: 3;
    letter-spacing: 4px;
    pointer-events: none;
    opacity: 0.9;
}

.portfolio-item.closed-item h3 {
    z-index: 2;
}

/* Project Detail Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 10000;
    overflow-y: auto;
}

.project-modal.active {
    display: block;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    min-height: 100vh;
    background: var(--gray);
    z-index: 1;
}

.modal-close {
    position: fixed;
    top: 40px;
    right: 60px;
    background: var(--white);
    border: none;
    font-size: 60px;
    color: var(--black);
    cursor: pointer;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 10001;
    font-weight: 300;
}

.modal-close:hover {
    background: var(--violet);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-body {
    padding: 100px 60px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-detail-header {
    margin-bottom: 60px;
}

/* Bento Grid pour les images du projet */
.project-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 0;
}

.project-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-detail-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Configuration pour différentes quantités d'images */

/* 3 images - Blvck Crystal */
.project-grid-3 .grid-item-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

.project-grid-3 .grid-item-2 {
    grid-column: 3;
    grid-row: 1 / 3;
}

.project-grid-3 .grid-item-3 {
    grid-column: 1 / 3;
    grid-row: 2;
}

/* 4 images */
.project-grid-4 .grid-item-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.project-grid-4 .grid-item-2 {
    grid-column: 3;
    grid-row: 1;
    aspect-ratio: 1;
}

.project-grid-4 .grid-item-3 {
    grid-column: 3;
    grid-row: 2;
    aspect-ratio: 1;
}

.project-grid-4 .grid-item-4 {
    grid-column: 1 / 3;
    grid-row: 3;
}

/* 5 images - Rasso */
.project-grid-5 .grid-item-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.project-grid-5 .grid-item-2 {
    grid-column: 3;
    grid-row: 1;
    aspect-ratio: 1;
}

.project-grid-5 .grid-item-3 {
    grid-column: 3;
    grid-row: 2;
    aspect-ratio: 1;
}

.project-grid-5 .grid-item-4 {
    grid-column: 1;
    grid-row: 3;
    aspect-ratio: 1;
}

.project-grid-5 .grid-item-5 {
    grid-column: 2 / 4;
    grid-row: 3;
}

/* Configuration par défaut pour 1 image */
.project-grid-1 .grid-item-1 {
    grid-column: 1 / -1;
}

.project-detail-title {
    font-size: 80px;
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: -3px;
}

.project-detail-meta {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.project-meta-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.project-meta-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-meta-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
}

.project-detail-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
}

.tech-tag {
    padding: 10px 20px;
    background: var(--violet);
    color: var(--white);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Styles pour les projets fermés dans la modal */
.closed-project .project-detail-image {
    filter: grayscale(100%);
    opacity: 0.7;
}

.closed-badge-modal {
    position: absolute;
    top: 120px;
    right: 60px;
    transform: rotate(-15deg);
    font-size: 64px;
    font-weight: 900;
    color: var(--violet);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    letter-spacing: 6px;
    pointer-events: none;
    opacity: 0.8;
}

.project-detail-header {
    position: relative;
}

/* Styles pour les vidéos YouTube */
.project-video-container {
    margin-bottom: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: #000;
}

.project-video-iframe {
    width: 100%;
    aspect-ratio: 9 / 16;
    display: block;
    border: none;
}

.project-video-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: var(--violet);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.project-video-link:hover {
    background: var(--violet-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

@media (max-width: 1024px) {
    .modal-close {
        top: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
        font-size: 50px;
    }
    
    .modal-body {
        padding: 80px 30px 40px;
    }
    
    .project-detail-title {
        font-size: 60px;
    }
    
    .project-detail-meta {
        flex-direction: column;
        gap: 20px;
    }
    
    .project-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .project-video-iframe {
        aspect-ratio: 9 / 16;
    }
    
    /* Toutes les configurations en 2 colonnes sur tablette */
    .project-grid-3 .grid-item-1,
    .project-grid-3 .grid-item-2,
    .project-grid-3 .grid-item-3,
    .project-grid-4 .grid-item-1,
    .project-grid-4 .grid-item-2,
    .project-grid-4 .grid-item-3,
    .project-grid-4 .grid-item-4,
    .project-grid-5 .grid-item-1,
    .project-grid-5 .grid-item-2,
    .project-grid-5 .grid-item-3,
    .project-grid-5 .grid-item-4,
    .project-grid-5 .grid-item-5 {
        grid-column: auto;
        grid-row: auto;
    }
}

/* Games Section */
.games-section {
    padding: 0;
    overflow: hidden;
}

/* Grid Background for Games Section */
.grid-wrapper {
    min-height: 100%;
    width: 100%;
    position: relative;
    background-color: #f8fafc;
    padding: 150px 60px;
}

.grid-background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    background-image: linear-gradient(to right, #e2e8f0 1px, transparent 1px),
        linear-gradient(to bottom, #e2e8f0 1px, transparent 1px);
    background-size: 20px 30px;
    -webkit-mask-image: radial-gradient(
        ellipse 70% 60% at 50% 0%,
        #000 60%,
        transparent 100%
    );
    mask-image: radial-gradient(
        ellipse 70% 90% at 50% 0%,
        #000 90%,
        transparent 100%
    );
}

.games-section-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.games-header-wrapper {
    position: relative;
    margin-bottom: 60px;
}

.section-title {
    font-size: 60px;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 80px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.games-stats {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

/* Stickers déplaçables */
.draggable-sticker {
    position: absolute;
    width: 80px;
    height: 80px;
    object-fit: contain;
    cursor: grab;
    transition: transform 0.2s ease, filter 0.2s ease;
    z-index: 10;
    user-select: none;
    pointer-events: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.draggable-sticker:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

.draggable-sticker:active {
    cursor: grabbing;
    transform: scale(1.05);
}

/* Positions initiales des stickers */
.sticker-1 {
    top: -20px;
    left: 10%;
}

.sticker-2 {
    top: 50px;
    right: 15%;
}

.sticker-3 {
    bottom: -30px;
    left: 20%;
}

.sticker-4 {
    top: 100px;
    right: 5%;
}

.games-stats-content {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--violet), var(--violet-dark));
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.games-stats-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    animation: pulse 2s ease-in-out infinite;
}

.games-stats-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.games-stats-text {
    font-size: 16px;
    color: var(--white);
}

.games-stats-text strong {
    font-size: 20px;
    font-weight: 700;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.game-item {
    display: flex;
    flex-direction: column;
    background: var(--gray);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: var(--black);
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.game-item:hover {
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.2);
}

.game-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--gray);
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-item:hover .game-image {
    transform: scale(1.05);
}

/* Ancien style pour game-overlay - maintenant uniquement pour .portfolio-item */
.portfolio-item .game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(139, 92, 246, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .game-overlay {
    opacity: 1;
}

.game-info {
    padding: 30px;
}

.game-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.game-item:hover .game-name {
    color: var(--violet);
}

.game-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.game-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
}

.game-stat svg {
    width: 20px;
    height: 20px;
}

.game-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
}

.game-stat-label {
    font-size: 14px;
    color: var(--text-gray);
}

/* Game Card Styles */
.game-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.game-card {
    background: var(--gray);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 3px solid transparent;
}

.game-card:hover {
    border-color: var(--violet);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.3);
    transform: translateY(-10px) scale(1.05);
}

.game-card.closed-game:hover {
    transform: translateY(-5px) scale(1.02);
    cursor: not-allowed;
}

.game-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--violet), var(--violet-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.04);
    filter: brightness(1);
}

/* Styles pour les jeux fermés */
.game-card.closed-game .game-image img {
    filter: grayscale(100%) brightness(0.7);
}

.game-card.closed-game:hover .game-image img {
    filter: grayscale(100%) brightness(0.7);
    transform: scale(1);
}

.game-closed-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 48px;
    font-weight: 900;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    z-index: 3;
    letter-spacing: 4px;
    pointer-events: none;
    opacity: 0.9;
}

.game-card.closed-game .game-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.game-card .game-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.65) 100%);
    color: #fff;
    opacity: 1 !important;
}

.go-texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.go-title {
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.go-meta {
    font-size: 0.8rem;
    opacity: 0.9;
}

.go-stats {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 0 0 auto;
}

.go-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.35);
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 0.8rem;
    line-height: 1;
}

.go-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    opacity: 0.95;
}

@media (max-width: 600px) {
    .game-overlay { padding: 8px 10px; gap: 10px; }
    .go-title { font-size: 0.95rem; }
    .go-meta { font-size: 0.75rem; }
    .go-icon { padding: 5px 7px; font-size: 0.75rem; }
    .go-icon svg { width: 14px; height: 14px; }
}

/* Parcours Section */
.parcours-section {
    padding: 150px 60px;
    background: var(--gray);
}

.parcours-content {
    max-width: 1200px;
    margin: 0 auto;
}

.parcours-title {
    font-size: 80px;
    font-weight: 900;
    letter-spacing: -3px;
    margin-bottom: 80px;
    line-height: 1;
    text-align: center;
    color: var(--black);
}

.parcours-timeline {
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.parcours-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--violet), var(--violet-dark));
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 1;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    width: 100%;
    justify-content: space-between;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--violet);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
    z-index: 10;
    pointer-events: none;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 0 0 200px;
    font-size: 24px;
    font-weight: 700;
    color: var(--violet);
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
    position: relative;
    z-index: 2;
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-item:hover .timeline-year {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
}

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: calc(50% - 130px);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.timeline-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--black);
}

.timeline-subtitle {
    font-size: 18px;
    color: var(--violet);
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 150px 60px;
    text-align: center;
    background: var(--white);
}

.contact-section h2 {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 50px;
    letter-spacing: -2px;
}

.contact-link {
    font-size: 24px;
    color: var(--violet);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.contact-link:hover {
    transform: translateY(-5px);
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 60px 30px;
    margin-top: 100px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--white);
}

.footer-tagline {
    font-size: 16px;
    color: #a1a1a6;
    line-height: 1.6;
}

.footer-copyright {
    font-size: 14px;
    color: #666;
}

.footer-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-column a {
    color: #a1a1a6;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--violet);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid #333;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #666;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 100px 30px;
    }
    
    .hero-left {
        padding-right: 0;
        padding-bottom: 40px;
    }
    
    .main-title {
        font-size: 80px;
    }
    
    .stat-number,
    .stat-slot-machine {
        font-size: 40px;
    }
    
    .slot-container {
        width: 40px;
        height: 60px;
    }
    
    .slot-digit {
        height: 60px;
        min-height: 60px;
    }
    
    .slot-symbol {
        height: 60px;
        line-height: 60px;
    }
    
    .stat-slot-machine {
        height: 60px;
    }
    
    .stats {
        flex-direction: column;
        gap: 40px;
    }
    
    .portfolio-filters {
        gap: 15px;
        margin-bottom: 40px;
    }
    
    .filter-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-item.large-item {
        grid-column: 1 / -1;
        aspect-ratio: 16/7;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
    
    .grid-wrapper {
        padding: 100px 60px;
    }
    
    .section-title {
        font-size: 50px;
        margin-bottom: 60px;
    }
    
    .about-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-small {
        width: 250px;
        height: 320px;
    }
    
    .about-title {
        font-size: 60px;
    }
    
    .parcours-section {
        padding: 100px 30px;
    }
    
    .parcours-title {
        font-size: 50px;
        margin-bottom: 60px;
    }
    
    .parcours-timeline {
        gap: 40px;
    }
    
    .parcours-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        gap: 30px;
    }
    
    .timeline-item::after {
        left: 30px;
        transform: translate(-50%, -50%);
    }
    
    .timeline-content {
        max-width: calc(100% - 150px);
    }
    
    .timeline-year {
        flex: 0 0 120px;
        font-size: 18px;
        padding: 15px;
    }
    
    .timeline-content {
        padding: 30px;
    }
    
    .timeline-title {
        font-size: 24px;
    }
    
    .timeline-subtitle {
        font-size: 16px;
    }
    
    .timeline-description {
        font-size: 14px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-right {
        gap: 50px;
    }
    
}

@media (max-width: 768px) {
    .navbar {
        padding: 20px 30px;
    }
    
    .nav-links {
        display: none;
    }
    
    .main-title {
        font-size: 60px;
    }

    .about-title {
        font-size: 60px;
    }
    
    .corner-icons {
        display: none;
    }
    
    .portfolio-filters {
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .filter-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-item.large-item {
        grid-column: 1;
        aspect-ratio: 1;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .grid-wrapper {
        padding: 80px 30px;
    }
    
    .section-title {
        font-size: 40px;
        margin-bottom: 50px;
    }
    
    .games-stats-content {
        padding: 12px 24px;
    }
    
    .games-stats-icon {
        width: 22px;
        height: 22px;
    }
    
    .games-stats-text {
        font-size: 14px;
    }
    
    .games-stats-text strong {
        font-size: 16px;
    }
    
    .project-images-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .project-images-grid .project-detail-image:nth-child(n) {
        grid-column: 1;
        grid-row: auto;
    }
    
    .contact-section h2 {
        font-size: 40px;
    }
    
    .footer {
        padding: 40px 30px 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-right {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-section {
        padding: 100px 30px;
    }
    
    .about-title {
        font-size: 40px;
    }
    
    .about-image-small {
        width: 200px;
        height: 260px;
    }
    
    .about-description {
        font-size: 16px;
    }
    
    .parcours-section {
        padding: 80px 20px;
    }
    
    .parcours-title {
        font-size: 40px;
        margin-bottom: 50px;
    }
    
    .parcours-timeline {
        gap: 30px;
    }
    
    .parcours-timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        gap: 20px;
    }
    
    .timeline-item::after {
        left: 20px;
        transform: translate(-50%, -50%);
        width: 16px;
        height: 16px;
        border-width: 3px;
    }
    
    .timeline-content {
        max-width: calc(100% - 120px);
    }
    
    .timeline-year {
        flex: 0 0 100px;
        font-size: 14px;
        padding: 12px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-title {
        font-size: 20px;
    }
    
    .timeline-subtitle {
        font-size: 14px;
    }
    
    .timeline-description {
        font-size: 13px;
    }
    
    .hero-left {
        padding-bottom: 30px;
    }
    
    .scrolling-text-content span {
        font-size: 120px;
    }
    
    .scrolling-text-content.line-1 span {
        transform: rotate(-3deg);
    }
    
    .scrolling-text-content.line-2 span {
        transform: rotate(4deg);
    }
    
    .scrolling-text-content.line-3 span {
        transform: rotate(-4deg);
    }
}

/* Ajout pour le séparateur des statistiques de jeux */
.games-stats-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    font-weight: 700;
    margin: 0 4px;
}

/* Responsive pour les statistiques de jeux */
@media (max-width: 768px) {
    .games-stats-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .games-stats-separator {
        display: none;
    }
    
    .games-stats-text {
        font-size: 13px;
    }
    
    .games-stats-text strong {
        font-size: 15px;
    }
}
