/* ===========================================
   KOALA STUDIO - Style Sobre & Élégant
   Fond blanc avec vignettage
   =========================================== */

@import 'separator.css';
@import 'popup.css';
@import 'domain_details.css';
@import 'splash.css';

/* Variables CSS */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #666666;
    --accent-color: #000000;
    --bg-white: #ffffff;
    --bg-light: #f8f8f8;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #e5e5e5;
    --shadow-soft: 0 2px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 5px 40px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 150px; /* Increased buffer */
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Couleurs complémentaires KOALA */
:root {
    --koala-turquoise: #41B8A1;
    --koala-blue: #4159B8;
    --koala-red: #B84159;
    --koala-gold: #B8A041;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Remove glitch effect - keep class for compatibility */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    display: none;
}

/* ===========================================
   NAVIGATION
   =========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 60px;
    display: none; /* Hidden by default */
    justify-content: flex-start; /* Align items to start */
    align-items: center;
    gap: 40px; /* Standard gap between items */
    z-index: 9999; /* Increased Z-Index for visibility */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

body.splash-active .navbar {
    display: none !important; /* Ensure navbar is hidden when splashscreen is active */
}

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

.logo img {
    height: 55px;
    width: auto;
    transition: all 0.3s ease;
}

.logo:hover img {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    position: absolute; /* Absolute positioning for true centering */
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.nav-links li a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase; /* Uppercase for nav links */
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links li a:hover {
    color: var(--koala-turquoise);
    background: rgba(65, 184, 161, 0.2); /* Light background tint */
    transform: translateY(-5px); /* Lift effect */
    box-shadow: 0 4px 15px rgba(65, 184, 161, 0.2); /* Subtle shadow */
}

/* ... existing nav-links styles ... */

.nav-socials {
    display: flex;
    gap: 5px; /* Reduced gap */
    margin-left: auto; /* Push socials to far right */
}

.nav-socials a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
}

.nav-socials a:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* ===========================================
   NEW NAVBAR LOGO STRUCTURE
   =========================================== */
.nav-links {
    align-items: center; /* Ensure logo and text align */
}

.desktop-logo-img {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.nav-logo-link {
    padding: 0 !important; /* Remove padding for image item */
    display: flex;
    align-items: center;
}

.nav-logo-link:hover {
    background: transparent !important; /* No bg hover for logo */
    box-shadow: none !important;
    transform: translateY(0) !important;
}

.nav-logo-link:hover .desktop-logo-img {
    transform: scale(1.1);
}

/* Visibility Classes */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .nav-logo-link {
        display: none !important; /* Hide desktop logo inside menu */
    }
    
    .mobile-only {
        display: flex !important; /* Show main logo bar */
    }
}

/* ===========================================
   MOBILE MENU & DRAWER
   =========================================== */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 10001; /* Above side panel */
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Burger Animation to X */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .navbar {
        padding: 20px 25px;
        justify-content: space-between; /* Logo left, Burger right */
    }

    .menu-toggle {
        display: flex; /* Visible on mobile */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen right */
        width: 80%; /* Drawer width */
        max-width: 400px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        padding: 40px;
        z-index: 10000;
        left: auto; /* Reset any centering */
        transform: none; /* Reset transforms */
    }

    .nav-links.active {
        right: 0; /* Visible */
    }

    /* Links inside drawer */
    .nav-links li a {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--text-primary);
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }
    
    .nav-links li a:hover {
        color: var(--koala-turquoise);
        transform: translateX(5px);
        background: transparent;
        box-shadow: none;
    }

    .nav-socials {
        display: none; /* Hide desktop socials on mobile */
    }
    
    /* Ensure desktop logo inside menu is hidden on mobile */
    .nav-logo-link {
        display: none !important; 
    }
}

/* Footer cleanup */
.footer-content {
    display: flex;
    justify-content: center; /* Center content since logo/socials removed */
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

/* Remove footer-logo and social-links styles as they are moved */
.hero {
    min-height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-white);
    padding-top: 100px;
    padding-bottom: 10px;
}

.hero-bg,
.hero-grid {
    display: none;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 20px;
    max-width: 900px;
}

.hero-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 25px;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.hero-title-small {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Charte graphique KOALA - réutilisable */
.koala-brand {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.koala-brand .bracket {
    color: #999;
}

.koala-brand .dash {
    color: var(--koala-turquoise);
}

.koala-brand .name {
    color: var(--text-primary);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

.hero-description-small {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 1000px; /* Increased width to fit the entire sentence on one line */
    margin: 0 auto 15px;
    line-height: 1.7;
    text-align: center;
}

.hero-description-small:first-of-type {
    margin-top: 20px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 20px;
    margin-bottom: 0;
}

.hero-separator {
    width: 300px;
    height: 2px;
    background: var(--border-color);
    margin: 15px auto 0; /* Spacing */
    opacity: 0.6;
    border-radius: 2px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 5px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-indicator .mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .wheel {
    width: 3px;
    height: 8px;
    background: var(--text-light);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* ===========================================
   SECTIONS COMMON
   =========================================== */
.section {
    padding: 120px 60px;
    position: relative;
}

.section-dark {
    background: var(--bg-light);
}

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

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 500;
}

.section-title-medium {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 0px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title-medium strong {
    font-weight: 900; /* Extra bold for numbers */
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    white-space: nowrap;
    margin-top: 0px;
    text-transform: uppercase; /* Added for global consistency */
}

/* ===========================================
   SERVICES SECTION
   =========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1300px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 45px 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===========================================
   PORTFOLIO SECTION
   =========================================== */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px 28px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
}

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

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

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

.portfolio-category {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.portfolio-title {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.portfolio-link:hover {
    opacity: 0.8;
}

/* ===========================================
   ABOUT / STUDIO SECTION
   =========================================== */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

.about-image::before {
    display: none;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    font-weight: 600;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 35px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item .icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.feature-item span {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* ===========================================
   PROCESS / METHODOLOGY
   =========================================== */
.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: var(--border-color);
}

.process-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 35px;
}

.process-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.process-item:nth-child(even) .process-content {
    text-align: left;
    padding-left: 50px;
    padding-right: 0;
}

.process-content {
    padding-right: 50px;
    text-align: right;
    max-width: 380px;
}

.process-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--koala-turquoise);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.process-item:hover .process-number {
    transform: translateX(-50%) scale(1.35) rotate(10deg);
}

.process-item:nth-child(1) .process-number {
    background: #F39C5A;
}

.process-item:nth-child(1):hover .process-number {
    box-shadow: 0 12px 35px rgba(243, 156, 90, 0.5);
}

.process-item:nth-child(2) .process-number {
    background: var(--koala-blue);
}

.process-item:nth-child(2):hover .process-number {
    box-shadow: 0 12px 35px rgba(65, 89, 184, 0.5);
}

.process-item:nth-child(3) .process-number {
    background: var(--koala-red);
}

.process-item:nth-child(3):hover .process-number {
    box-shadow: 0 12px 35px rgba(184, 65, 89, 0.5);
}

.process-item {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.process-content h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.process-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===========================================
   CLIENTS / SECTORS
   =========================================== */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.sector-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.sector-item:hover {
    border-color: var(--text-primary);
    transform: translateY(-3px);
}

.sector-item .icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.sector-item h4 {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ===========================================
   CONTACT SECTION
   =========================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item .icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-item-content h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-item-content p,
.contact-item-content a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-item-content a:hover {
    color: var(--text-primary);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 45px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    background: var(--bg-white);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===========================================
   BUTTONS
   =========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--koala-blue);
    color: #ffffff;
    border: none;
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-white);
}

.btn-glitch {
    position: relative;
}

.btn-glitch::before,
.btn-glitch::after {
    display: none;
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
    background: var(--bg-light);
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

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

.footer-logo img {
    height: 35px;
    width: auto;
    transition: all 0.3s ease;
}

.footer-logo:hover img {
    opacity: 0.7;
}

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

.social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 0;
    max-width: 1300px;
    margin: 0 auto;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.8rem;
}

.footer-bottom a {
    color: var(--text-secondary);
}

.footer-bottom a:hover {
    color: var(--text-primary);
}

/* ===========================================
   PAGE HEADER (for sub-pages)
   =========================================== */
.page-header {
    padding: 180px 60px 100px;
    text-align: center;
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-primary);
    font-weight: 600;
}

.page-header .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.page-header .breadcrumb a {
    color: var(--text-light);
}

.page-header .breadcrumb a:hover {
    color: var(--text-primary);
}

.page-header .breadcrumb span {
    color: var(--text-secondary);
}

/* ===========================================
   VIDEO PLAYER
   =========================================== */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 8px;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===========================================
   360 VIDEO SECTION
   =========================================== */
.vr-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
    .about-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .process-timeline::before {
        left: 20px;
    }

    .process-item,
    .process-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .process-item .process-content,
    .process-item:nth-child(even) .process-content {
        text-align: left;
        padding-left: 0;
        padding-right: 0;
    }

    .process-number {
        left: 20px;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 20px 25px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.3rem;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .section {
        padding: 80px 25px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

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

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .footer {
        padding: 50px 25px 25px;
    }
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */
.text-gradient {
    color: var(--text-primary);
}

.text-glow {
    color: var(--text-primary);
}

.neon-border {
    border: 1px solid var(--border-color);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

/* ===========================================
   FULLSCREEN IMAGE
   =========================================== */
.fullscreen-image {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

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

.fullscreen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}

/* ===========================================
   SHOWREEL VIDEO
   =========================================== */
.showreel-container {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.showreel-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

.showreel-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.showreel-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-top: 15px;
    margin-bottom: 20px;
}

/* Video Popup */
.video-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.video-popup-overlay.active {
    display: flex;
}

.video-popup-content {
    width: 90%;
    max-width: 1000px;
    position: relative;
}

.video-popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.video-popup-close:hover {
    opacity: 0.7;
}

/* ===========================================
   EXPERTISES GRID (horizontal)
   =========================================== */
.expertises-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 900px; /* Reduced width for 3 columns */
    margin: 0 auto;
}

.expertise-item {
    text-align: center;
    padding: 30px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    color: #ffffff;
}

/* Specific background colors for each item */
.expertise-item:nth-child(1) { background-color: #F39C5A; }
.expertise-item:nth-child(2) { background-color: var(--koala-turquoise); }
.expertise-item:nth-child(3) { background-color: var(--koala-blue); }
.expertise-item:nth-child(4) { background-color: var(--koala-red); }
.expertise-item:nth-child(5) { background-color: var(--koala-gold); }
.expertise-item:nth-child(6) { background-color: #8BC34A; }

.expertise-item.animate-ready {
    opacity: 0;
    transform: translateX(-30px);
}

.expertise-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.expertise-item:hover {
    transform: translateY(-5px) scale(1.05); /* Added scale effect */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Added shadow */
    z-index: 10;
}

.expertise-item .icon {
    font-size: 2.5rem;
    color: #ffffff; /* White icon */
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
    font-weight: 300;
}

.expertise-item:hover .icon {
    transform: scale(1.2) translateY(-20px); /* Reduced translateY */
}

/* Removed specific hover colors since background is now colored */
.expertise-item:nth-child(1):hover .icon,
.expertise-item:nth-child(2):hover .icon,
.expertise-item:nth-child(3):hover .icon,
.expertise-item:nth-child(4):hover .icon,
.expertise-item:nth-child(5):hover .icon,
.expertise-item:nth-child(6):hover .icon {
    color: #ffffff;
}

.expertise-item h4 {
    font-size: 1.31rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #ffffff; /* White text */
}

.expertise-item p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    line-height: 1.6;
    white-space: nowrap;
}

/* ===========================================
   DOMAINES COLORES (Modern Visual Card)
   =========================================== */
.domaines-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 800px; /* Reduced width for more compact centering */
    margin: 0 auto;
}

.domaine-item {
    position: relative;
    height: 140px; /* Fixed height for uniformity */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid var(--border-color);
}



/* Text Styling */
.domaine-item {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 1; /* Above the icon */
}

/* Hover Effects */
.domaine-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: transparent;
}



.domaine-item.animate-ready {
    opacity: 0;
    transform: translateY(30px);
}

.domaine-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Remove old border styles */
.domaine-item.outdoor, .domaine-item.corporate, .domaine-item.industries,
.domaine-item.culture, .domaine-item.patrimoine, .domaine-item.formation {
    border-bottom: 1px solid var(--border-color); /* Reset to standard border */
}

/* ===========================================
   CLIENTS SLIDER
   =========================================== */
.clients-slider-container {
    background: #ffffff;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}


.clients-slider {
    display: flex;
    width: max-content;
    animation: slide 60s linear infinite;
    gap: 40px;
}

.clients-slider.reverse {
    animation: slide-reverse 60s linear infinite;
    margin-bottom: 30px;
}

.clients-slider img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.clients-slider img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Specific Logo Sizes */
.clients-slider img.logo-small { height: 40px; max-height: 40px; }
.clients-slider img.logo-large { height: 80px; max-height: 80px; }
.clients-slider img.logo-xl { height: 100px; max-height: 100px; }

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% / 3)); }
}

@keyframes slide-reverse {
    0% { transform: translateX(calc(-100% / 3)); }
    100% { transform: translateX(0); }
}

/* Témoignages en ligne */
.testimonials-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.testimonial-card .quote-icon {
    color: var(--koala-turquoise);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.testimonial-card .role {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===========================================
   CONTACT COMPACT
   =========================================== */
.contact-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.contact-compact-info {
    padding: 0;
}

.contact-compact-info p.intro {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-compact-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-compact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-compact-item.align-top {
    align-items: flex-start;
}

/* Old icon style removed for new icon-box */

.contact-compact-item span,
.contact-compact-item a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-compact-item a:hover {
    color: var(--koala-turquoise);
}

.contact-compact-form {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-top: 4px solid #F39C5A; /* Orange accent */
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.contact-compact-form .form-group {
    margin-bottom: 20px;
}

.contact-compact-form input,
.contact-compact-form textarea {
    width: 100%;
    padding: 15px;
    background: #f9f9f9;
    border: 2px solid transparent;
    border-bottom: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-compact-form input:focus,
.contact-compact-form textarea:focus {
    outline: none;
    background: #ffffff;
    border-bottom-color: #F39C5A; /* Orange focus color */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-compact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-compact-form .btn-send {
    width: 100%;
    padding: 16px;
    background: #F39C5A; /* Solid orange */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-compact-form .btn-send:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(243, 156, 90, 0.3); /* Orange shadow */
    filter: brightness(1.1);
}

/* ===========================================
   STUDIO BLOCS (Two Panels Layout)
   =========================================== */
.studio-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.studio-blocs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.studio-bloc {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px; /* Reduced padding */
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease; /* Add transition back */
}

.studio-bloc:hover {
    transform: translateY(-10px) scale(1.01); /* Reduced zoom and lift */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); /* Reduced shadow intensity */
}

.studio-bloc-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-radius: 0;
    padding: 10px 10px; /* Reduced vertical padding */
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
    position: relative;
    z-index: 1;
    max-width: none;
    min-height: auto;
}

.studio-bloc-item:last-child {
    border-bottom: none;
}

.studio-bloc-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.studio-bloc-item:hover {
    transform: translateX(10px);
    background: rgba(0,0,0,0.05); /* More noticeable graying */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}

.studio-bloc-item i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: var(--bg-light);
    color: var(--text-secondary);
}

.studio-bloc-item span {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3; /* Reduced line-height */
}

.studio-card-content {
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Colored accent bars */
.studio-bloc:first-child {
    position: relative;
}

.studio-bloc:first-child::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: #F39C5A;
    z-index: 2;
}

.studio-bloc:last-child::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: var(--koala-blue);
    z-index: 2;
}

.studio-card-content h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
}

.studio-card-content.partner h4 {
    border-bottom-color: #F39C5A; /* Orange accent */
}

.studio-card-content.director h4 {
    border-bottom-color: var(--koala-blue); /* Blue accent */
}

/* Compact Domaines (Grid of small cards) overriding default card style */
.domaines-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 20px;
    max-width: 900px;
    margin: 40px auto 0;
}

.domaine-compact-item.domaine-item {
    padding: 20px 15px;
    height: 140px; /* Ensure height is set for the pseudo background to fill */
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    text-align: center;
    position: relative; /* Essential */
    overflow: hidden; /* Clip the blurred edges */
    isolation: isolate; /* Create stacking context for text */
    background: transparent; /* FIX: Was #1a1a1a, blocking the pseudo */
    transition: all 0.3s ease;
}

/* The Background Pseudo-element */
.domaine-compact-item.domaine-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1; /* Behind text */
    background-color: #1a1a1a; /* Fallback color */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), var(--bg-image) center/cover no-repeat;
    transition: filter 0.4s ease, transform 0.4s ease;
    will-change: filter, transform;
    transform: none; /* Force flat */
}

/* Remove old icon styles if any remain */
/* Hover Effects */
.domaine-compact-item.domaine-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    z-index: 5;
}

.domaine-compact-item.domaine-item:hover::before {
    filter: blur(4px); /* The requested blur */
    transform: scale(1.1); /* Slight zoom to prevent blurred edges showing white */
}

.domaine-compact-item.domaine-item > span:first-child {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    margin-bottom: 5px;
}

.domaine-compact-item.domaine-item .domaine-subtitle {
    font-size: 0.85rem; /* Smaller explanation */
    font-weight: 400; /* Lighter weight */
    opacity: 0.95;
    margin-top: 0;
    text-transform: none;
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* ===========================================
   SUB-NAVBAR (STUDIO PAGE)
   =========================================== */
.sub-navbar-container {
    position: sticky;
    top: 81px; /* Adjust based on main navbar height */
    z-index: 900;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sub-navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sub-navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 15px 0;
    gap: 30px;
    flex-wrap: wrap;
}

.sub-navbar ul li a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sub-navbar ul li a:hover {
    /* color: var(--koala-turquoise); Removed generic color hover to let specifics shine */
    background: rgba(65, 184, 161, 0.1);
}

/* Specific Colors for Sub-Navbar Links */
.sub-navbar ul li:nth-child(1) a { color: var(--koala-turquoise); }
.sub-navbar ul li:nth-child(2) a { color: #F39C5A; }
.sub-navbar ul li:nth-child(3) a { color: var(--koala-red); }
.sub-navbar ul li:nth-child(4) a { color: var(--koala-blue); }
.sub-navbar ul li:nth-child(5) a { color: #8BC34A; }

.sub-navbar ul li:nth-child(1) a:hover { background: rgba(65, 184, 161, 0.1); }
.sub-navbar ul li:nth-child(2) a:hover { background: rgba(243, 156, 90, 0.1); }
.sub-navbar ul li:nth-child(3) a:hover { background: rgba(184, 65, 89, 0.1); }
.sub-navbar ul li:nth-child(4) a:hover { background: rgba(65, 89, 184, 0.1); }
.sub-navbar ul li:nth-child(5) a:hover { background: rgba(139, 195, 74, 0.1); }

/* Logo Icon in Nav */
.nav-logo-icon {
    transition: transform 0.3s ease;
}

.nav-links a:hover .nav-logo-icon {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .sub-navbar-container {
        top: 70px; /* Adjust for smaller mobile header */
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .sub-navbar ul {
        padding: 10px 0;
        gap: 15px;
        justify-content: flex-start; /* Scrollable on mobile */
    }
    
    .sub-navbar ul li {
        flex-shrink: 0;
    }
}

/* Contact Page Animations */
.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-compact-item:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.contact-compact-item {
    transition: transform 0.3s ease;
    padding: 10px;
    border-radius: 8px;
}

.contact-compact-item:hover {
    background: var(--bg-light);
    transform: translateX(10px);
}

@keyframes floatRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

@keyframes floatDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.floating-arrow-right {
    animation: floatRight 2s infinite ease-in-out;
    display: inline-block;
}

.floating-arrow-down {
    animation: floatDown 2s infinite ease-in-out;
    display: inline-block;
}

.fixed-arrow-size {
    font-size: 1.1rem !important; /* Standardize arrow size */
}

.contact-separator-dynamic {
    height: 2px;
    width: 0; /* Start at 0 for animation */
    max-width: 100%;
    background: var(--koala-blue);
    margin: 20px auto; /* Centered between blocks */
    border-radius: 2px;
    animation: expandWidth 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 100%; }
}

.contact-compact-list.tight {
    display: flex;
    flex-direction: column;
    gap: 0 !important;
}

.contact-compact-list.tight .contact-compact-item {
    padding: 4px 10px; /* Very tight padding */
}
@media (max-width: 1024px) {
    .expertises-row,
    .domaines-row {
        grid-template-columns: repeat(3, 1fr); /* Keep 3 cols for tablets */
    }

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

    .studio-blocs {
        grid-template-columns: 1fr; /* Stack panels on smaller screens */
    }
}

@media (max-width: 768px) {
    .navbar {
        justify-content: space-between;
        padding: 15px 20px;
    }

    .logo img {
        height: 40px; /* Smaller logo on mobile */
    }

    .nav-socials {
        display: none; /* Hide socials on mobile header */
    }

    .expertises-row,
    .domaines-row {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 15px;
    }

    .testimonials-row {
        grid-template-columns: 1fr;
    }

    .contact-compact {
        grid-template-columns: 1fr;
    }

    .domaines-compact {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 15px;
    }

    .domaine-compact-item.domaine-item {
        padding: 20px; /* Comfortable touch target */
        font-size: 0.8rem;
    }
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--text-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: none;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--koala-turquoise);
    transform: translateY(-3px);
}
