/* De Préférence® - Modern Design 2025 */

:root {
    --primary-dark: #0a0a1a;
    --secondary-dark: #121225;
    --accent-red: #e31837;
    --accent-red-hover: #ff2d4d;
    --text-white: #ffffff;
    --text-gray: #a0a0b0;
    --text-light-gray: #d0d0d8;
    --gradient-dark: linear-gradient(135deg, #0a0a1a 0%, #1a1a35 100%);
    --gradient-accent: linear-gradient(135deg, #e31837 0%, #ff4d6d 100%);
    --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(227, 24, 55, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.8;
}

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

a:hover {
    color: var(--accent-red);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.75rem 0;
    background: rgba(10, 10, 26, 0.98);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.logo span {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.header-social {
    display: flex;
    gap: 1rem;
}

.header-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.header-social a:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: translateY(-2px);
}

.header-social img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-white);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    background: var(--gradient-dark);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('rc_images/sans_titre1b_1200x596.png') center/cover no-repeat;
    opacity: 0.15;
    filter: blur(2px);
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(227, 24, 55, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge span {
    color: var(--accent-red);
}

.hero h1 {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero h1 .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light-gray);
    max-width: 600px;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--text-white);
    box-shadow: 0 4px 20px rgba(227, 24, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(227, 24, 55, 0.5);
    color: var(--text-white);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-white);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-red);
    color: var(--text-white);
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
}

/* Stats Section */
.stats {
    background: var(--secondary-dark);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* About Section */
.about {
    background: var(--primary-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.service-tag {
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.service-tag:hover {
    border-color: var(--accent-red);
    background: rgba(227, 24, 55, 0.1);
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(227, 24, 55, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* Services Grid */
.services {
    background: var(--secondary-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    box-shadow: var(--shadow-glow);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.service-card h4 {
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
}

/* Clients Section */
.clients {
    background: var(--primary-dark);
}

.clients-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.client-tag {
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.client-tag:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Team Section */
.team {
    background: var(--secondary-dark);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.team-member {
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    border-color: var(--accent-red);
    background: rgba(227, 24, 55, 0.05);
}

.team-member a {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Map Section */
.location {
    background: var(--primary-dark);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.location-info h3 {
    margin-bottom: 1.5rem;
}

.location-info p {
    margin-bottom: 1rem;
}

.location-info .address {
    font-size: 1.1rem;
    color: var(--text-light-gray);
    margin-bottom: 0.5rem;
}

.location-info .transport {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 0.9rem;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background: var(--secondary-dark);
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0;
}

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

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-logo span {
    color: var(--accent-red);
}

.footer-copyright {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Studio 360 Page Specific */
.studio-hero {
    min-height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 10rem 2rem 6rem;
    background: var(--gradient-dark);
}

.studio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('rc_images/background.png') center/cover no-repeat;
    opacity: 0.2;
}

.studio-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.studio-title {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.studio-title h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.studio-title .accent {
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.studio-hero p {
    font-size: 1.25rem;
    color: var(--text-light-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.studio-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.feature-item::before {
    content: '✓';
    color: var(--accent-red);
    font-weight: bold;
}

/* Video Section */
.video-section {
    background: var(--secondary-dark);
    padding: 6rem 0;
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.video-container video {
    width: 100%;
    display: block;
}

.video-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Specs Section */
.specs {
    background: var(--primary-dark);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.spec-category {
    padding: 2.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
}

.spec-category.spec-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spec-category h3 {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-red);
}

.spec-item {
    margin-bottom: 2rem;
}

.spec-item:last-child {
    margin-bottom: 0;
}

.spec-item h4 {
    color: var(--accent-red);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.spec-item p {
    font-size: 0.95rem;
}

/* Gallery Section */
.gallery {
    background: var(--secondary-dark);
}

.gallery-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
    position: relative;
}

.gallery-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(10, 10, 26, 0.95));
}

.gallery-caption h4 {
    margin-bottom: 0.5rem;
}

.gallery-caption p {
    font-size: 0.9rem;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(10, 10, 26, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-white);
    font-size: 1.25rem;
}

.gallery-nav:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.gallery-nav.prev {
    left: 1rem;
}

.gallery-nav.next {
    right: 1rem;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-dot.active,
.gallery-dot:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

/* Instagram Feed */
.instagram-section {
    background: var(--secondary-dark);
    padding: 4rem 0;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .stats-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .specs-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 4rem 0;
    }

    .stats-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 7rem 1.5rem 3rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .studio-features {
        flex-direction: column;
        gap: 1rem;
    }

    .gallery-slide img {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .video-cta {
        flex-direction: column;
        align-items: center;
    }
}
