﻿/* --- DESIGN SYSTEM & VARIABLES --- */
:root {
    --white: #ffffff;
    --off-white: #faf9f8;
    --beige-accent: #C4B299;
    --beige-dark: #C4B299;
    --text-main: #2A2A2A;
    --text-light: #666666;
    
    --font-main: 'Outfit', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 20px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 40px rgba(0,0,0,0.06);
}

/* --- RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--beige-accent);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- BUTTONS --- */
.btn-primary {
    display: inline-block;
    background-color: var(--beige-accent);
    color: var(--white);
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--beige-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.95rem;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-full);
    z-index: 1000;
    padding: 12px 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    width: 95%;
}

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



.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--beige-dark);
    letter-spacing: -0.5px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 40px; /* Taille par défaut, peut être ajustée selon les dimensions réelles du logo */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn-primary) {
    font-weight: 400;
    font-size: 1rem;
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--beige-dark);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

/* Gradient overlay for readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    animation: fadeInUp 1s ease-out forwards;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.35rem;
    color: var(--off-white);
    margin-bottom: 40px;
    font-weight: 400;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.service-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.placeholder-img {
    background-color: var(--beige-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-badge {
    background: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 500;
    color: var(--beige-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.service-info {
    padding: 32px;
}

.service-info h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.service-info p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.service-details {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--beige-dark) !important;
}

.service-list {
    margin-top: 16px;
}

.service-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--beige-accent);
    font-weight: bold;
}

/* --- GEOGRAPHY SECTION --- */
.geography {
    background-color: var(--white);
}

.geo-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
    text-align: center;
}

.geo-text h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.geo-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.geo-map {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    height: 500px;
    box-shadow: var(--shadow-sm);
}

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

/* --- CONTACT SECTION --- */
.contact-card {
    background-color: var(--white);
    border: 1px solid var(--beige-accent);
    border-radius: var(--radius-lg);
    padding: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.contact-text h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 24px;
}

.contact-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-email-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--off-white);
    padding: 24px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    border: 1px solid transparent;
}

.contact-email-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background-color: var(--white);
    border-color: var(--beige-accent);
}

.email-icon {
    background-color: var(--beige-accent);
    color: var(--white);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.email-text {
    display: flex;
    flex-direction: column;
}

.email-text span {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.email-text strong {
    font-size: 1.25rem;
    font-weight: 500;
}

.contact-socials-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--off-white);
    padding: 16px 32px;
    border-radius: var(--radius-md);
}

.contact-socials-card span {
    color: var(--text-light);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--text-main);
    transition: var(--transition);
    border: 1px solid transparent;
}

.social-btn:hover {
    border-color: var(--beige-accent);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .contact-card {
        grid-template-columns: 1fr;
        padding: 32px;
        gap: 32px;
    }
    .contact-socials-card {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* --- FOOTER --- */
.footer {
    background-color: var(--off-white);
    padding: 64px 0 24px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-brand p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--beige-dark);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.footer-socials a:hover {
    background-color: var(--beige-accent);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--text-light);
    font-size: 0.85rem;
}

/* --- INTERNAL PAGES --- */
.page-header {
    padding: 160px 0 80px;
    background-color: var(--white);
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Prestation Details */
.prestation-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 100px;
}

.prestation-detail.reverse {
    direction: rtl;
}

.prestation-detail.reverse > * {
    direction: ltr;
}

.prestation-text h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.prestation-text h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--beige-accent);
}

.prestation-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.prestation-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 400px;
}

.prestation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-img-large {
    background-color: var(--beige-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Legal Content */
.legal-content .text-container {
    max-width: 800px;
    background: var(--white);
    padding: 64px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.legal-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--text-light);
    margin-bottom: 16px;
}

/* --- TABS & MOSAICS --- */
.sub-navbar {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--beige-accent);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
    background: var(--beige-accent);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
    animation: fadeInUp 0.5s ease-out forwards;
}

.tab-content.active {
    display: block;
}

/* Mosaic Grid */
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.tile-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.tile-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

/* --- HORIZONTAL TILES (Décoration) --- */
.horizontal-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.horizontal-card {
    display: flex;
    flex-direction: row;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--beige-light);
    height: 380px; /* Same height as portrait images */
}

.horizontal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.horizontal-img {
    flex: 0 0 350px; /* Fixed width for the image part */
    position: relative;
}

.horizontal-info {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-header {
    border-bottom: 1px solid var(--beige-light);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.info-header h4 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.info-details {
    color: var(--text-light);
    line-height: 1.8;
}

.info-details p {
    margin-bottom: 8px;
}

.info-details strong {
    color: var(--text-main);
    font-weight: 500;
}

@media (max-width: 900px) {
    .horizontal-card {
        flex-direction: column;
        height: auto;
    }
    
    .horizontal-img {
        flex: none;
        width: 100%;
    }
    
    .horizontal-img .tile-carousel {
        height: 400px;
    }
}

/* --- CAROUSEL & FILTERS --- */
.filter-navbar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--beige-dark);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--text-main);
    color: var(--white);
    border-color: var(--text-main);
}

.tile-carousel {
    position: relative;
    height: 380px;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.carousel-track img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-main);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 1rem;
    z-index: 10;
}

.tile-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn.prev {
    left: 8px;
}

.carousel-btn.next {
    right: 8px;
}

.carousel-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

/* Hide original tile-img as it's replaced by carousel */
.tile-img {
    height: 380px; /* Adapté pour les photos verticales */
    width: 100%;
    overflow: hidden;
}

.tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.tile-card:hover .tile-img img {
    transform: scale(1.05);
}

.tile-info {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.tile-info h4 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Global Price Badge for Cards */
.price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--beige-dark);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    margin: 0;
    backdrop-filter: blur(4px);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

.game-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.game-img {
    height: 450px; /* Adapté pour les photos verticales */
}

.game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.game-info {
    padding: 32px;
    text-align: center;
}

.game-info h4 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 12px;
}



.game-info .game-desc {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.6;
}

.game-info .price {
    display: inline-block;
    background: var(--off-white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--beige-dark);
    font-weight: 600;
}

/* --- ANIMATIONS & RESPONSIVE --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        padding: 20px;
        gap: 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
        animation: dropDown 0.3s ease-out forwards;
    }

    @keyframes dropDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links li {
        margin: 12px 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .geo-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .prestation-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .prestation-detail.reverse {
        direction: ltr;
    }
    
    .prestation-image {
        height: 250px;
    }

    .tile-img {
        height: 320px;
    }

    .game-img {
        height: 380px;
    }
}

/* --- PRODUCT MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    max-height: 800px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-main);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--beige-dark);
}

.modal-gallery {
    width: 60%;
    background: var(--off-white);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-gallery img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
}

.modal-gallery img.active {
    display: block;
}

.modal-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.modal-gallery-nav:hover {
    background: rgba(255, 255, 255, 1);
}

.modal-prev { left: 15px; }
.modal-next { right: 15px; }

.modal-details {
    width: 40%;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.modal-details h3 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.modal-details .modal-desc {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.modal-details .modal-desc p {
    margin-bottom: 8px;
}

.modal-details .modal-price {
    margin-top: auto;
    font-size: 1.3rem;
    color: var(--beige-dark);
    font-weight: 600;
}

/* Make sure tile-cards look clickable */
.tile-card, .game-card {
    cursor: pointer;
}

/* Mobile Modal Layout */
@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        height: 90vh;
    }
    .modal-gallery {
        width: 100%;
        height: 50%;
    }
    .modal-details {
        width: 100%;
        height: 50%;
        padding: 24px;
    }
    .modal-close {
        color: var(--white);
        text-shadow: 0 0 5px rgba(0,0,0,0.5);
    }
}
.footer-seo-text {
    font-size: 0.6rem;
    color: var(--text-light);
    text-align: center;
    max-width: 1000px;
    margin: 24px auto 0 auto;
    line-height: 1.5;
    opacity: 0.5;
}

