/* CSS for Thomas LION Portfolio (LogoFolio Theme) */

:root {
    --bg-main: #0D0D0D;
    --bg-card: #151515;
    --text-main: #F3F3F3;
    --text-muted: #888888;
    --accent-color: #FFC107; /* Yellow/Gold accent based on screenshots */
    --border-color: rgba(255, 255, 255, 0.08);
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Istok Web', sans-serif;
    
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
    
    /* Custom Cursors */
    --cursor-dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='4' fill='%23ffc107' /%3E%3C/svg%3E") 8 8, auto;
    --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8' fill='none' stroke='%23ffc107' stroke-width='2' /%3E%3Ccircle cx='12' cy='12' r='2' fill='%23ffc107' /%3E%3C/svg%3E") 12 12, pointer;
}

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

html {
    scroll-behavior: smooth;
    cursor: var(--cursor-dot);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: var(--cursor-dot);
}

/* Interactive elements get the pointer cursor */
a, button, .btn, .card, .profile-card, .dimension-sparkle-wrapper, input, textarea, summary, .logo-carousel-track, .faq-question, .video-wrapper, .carousel-btn, .lightbox-close, .swiper-wrapper, .swiper-button-prev, .swiper-button-next, .swiper-pagination-bullet {
    cursor: var(--cursor-pointer) !important;
}

/* Ambient Glows */
.ambient-glow {
    position: fixed; /* Changed from absolute so it never cuts off behind the navbar when scrolling */
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,193,7,0.15) 0%, rgba(255,193,7,0) 70%); /* pure yellow fade */
    border-radius: 50%;
    z-index: 200; /* Sit on top of the navbar (100) to avoid being cut off */
    pointer-events: none;
    animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

.glow-top-right { top: -200px; right: -200px; }
.glow-middle-left { top: 40%; left: -300px; }
.glow-bottom-right { bottom: -200px; right: -100px; }

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.hero-split {
    display: flex;
    align-items: center;
    gap: 4rem;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 65%; /* Constrains text and forces tags to wrap */
}

.hero-image-slot {
    flex: 0 0 30%;
    /* Empty for now, waiting for the user's photo */
}

.hero-title {
    font-size: 4.5rem; /* Increased size to make it pop */
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-stats-inline {
    margin-bottom: 2rem;
}

.hero-stats-inline h2 {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-color);
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dimension-sparkle-wrapper {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.5rem;
    margin-top: -0.5rem;
    cursor: pointer;
    width: 56px;
    height: 56px;
}

.dimension-sparkle {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 12px rgba(255, 193, 7, 0.4));
    animation: rotateSparkle 8s linear infinite;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.sparkle-mini {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 6px rgba(255, 193, 7, 0.6));
    z-index: 1;
}

.dimension-sparkle-wrapper:hover .sparkle-1 {
    transform: translate(-200%, -150%) scale(1) rotate(45deg);
    opacity: 1;
    transition-delay: 0s;
}
.dimension-sparkle-wrapper:hover .sparkle-2 {
    transform: translate(120%, -180%) scale(1) rotate(15deg);
    opacity: 1;
    transition-delay: 0.05s;
}
.dimension-sparkle-wrapper:hover .sparkle-3 {
    transform: translate(80%, 120%) scale(1) rotate(75deg);
    opacity: 1;
    transition-delay: 0.1s;
}
.dimension-sparkle-wrapper:hover .dimension-sparkle {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(255, 193, 7, 0.8));
}

@keyframes rotateSparkle {
    from { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    to { transform: rotate(360deg) scale(1); }
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    cursor: default;
}

.tag:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.section-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-color);
    flex-shrink: 0;
}

/* Navbar */
.navbar {
    padding: 2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(12px);
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

.navbar.scrolled {
    background: rgba(13, 13, 13, 0.95);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.header-logo {
    height: 70px; /* Increased significantly */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
}

.btn-primary:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
}

.btn-yellow-to-white {
    background-color: var(--accent-color);
    color: var(--bg-main);
    border: 1px solid var(--accent-color);
}

.btn-yellow-to-white:hover {
    background-color: var(--text-main);
    color: var(--bg-main);
    border: 1px solid var(--text-main);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

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

.btn-outline-primary:hover {
    background-color: var(--text-main);
    color: var(--bg-main);
    border: 1px solid var(--text-main);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    padding: 12rem 0 4rem; /* Increased padding to clear fixed header and add more space */
}

.hero-title {
    font-size: 4.5rem;
    margin: 0 auto 1rem; /* Added auto horizontal margin to center the max-width block */
    max-width: 900px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Left-align titles on subpages (which use container hero-container) */
.hero-container .hero-title,
.hero-container .hero-subtitle {
    margin-left: 0;
    text-align: left;
}

/* Reduce bottom padding for subpage heroes (no CTA button needed) */
.hero:has(.hero-container) {
    padding-bottom: 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 5rem;
}

/* Client Logos */
/* Auto-scrolling Client Logos Marquee */
.logo-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    margin-top: 4rem;
    margin-bottom: 5rem; /* Space between carousel and stats */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.logo-carousel-track {
    display: flex;
    width: max-content;
    animation: scrollLogos 35s linear infinite;
}
.logo-carousel-container:hover .logo-carousel-track {
    animation-play-state: paused;
}
.logo-group {
    display: flex;
    align-items: center;
    gap: 8rem; /* Increased gap so fewer logos show on screen at once */
    padding-right: 8rem;
    flex-shrink: 0;
}
.logo-group img {
    height: 80px; /* Base height */
    width: 200px; /* Base width */
    object-fit: contain;
    flex-shrink: 0;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease, transform 0.3s ease;
    margin: 0; /* Reset any margins */
}
.logo-group img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* Sowell, Lactalis */
.logo-group img.logo-wide {
    transform: scale(2.4); /* Massive optical zoom to eat transparent padding */
}
.logo-group img.logo-wide:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(2.6) !important; /* Zoom even more on hover, do not shrink to 1.1! */
}

/* Datasulting */
.logo-group img.logo-datasulting {
    transform: scale(2.8);
}
.logo-group img.logo-datasulting:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(3.0) !important;
}

/* Mon Lycée */
.logo-group img.logo-monlycee {
    transform: scale(0.85);
}
.logo-group img.logo-monlycee:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(0.95) !important;
}

/* MHSC */
.logo-group img.logo-medium {
    transform: scale(1.3);
}
.logo-group img.logo-medium:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.4) !important;
}
@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.client-logos {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 5rem;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: var(--transition);
}

.client-logos:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.client-logos img {
    height: 30px;
    object-fit: contain;
}

/* Hero Stats */
.hero-stats h2 {
    font-size: 3.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-stats h2 span {
    color: var(--accent-color);
}

.hero-stats p {
    color: var(--text-muted);
    font-size: 1rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
}

/* Expertise Cards */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: rgba(255,193,7,0.5);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.05);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.card ul {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.card ul li {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.2rem;
}

.card ul li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
}

/* FAQ */
.faq-list {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
}

.faq-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 992px) {
    .faq-list {
        flex-direction: column;
        gap: 0;
    }
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    background-color: var(--bg-card);
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
}

.faq-item:hover, .faq-item.active {
    border-color: rgba(255, 193, 7, 0.6);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.15);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
}

.faq-question h4 {
    font-size: 1.1rem;
    font-weight: 500;
}

.faq-question .icon {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 1.5rem; /* Only horizontal padding initially */
    padding-bottom: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.faq-answer p {
    margin-bottom: 0.5rem;
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
    margin-top: 4rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}
.footer-logo-img {
    height: 70px; /* Matched the massive header size */
    width: auto;
    object-fit: contain;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--accent-color);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    max-width: 600px;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

/* Page Content (Subpages) */
.page-content {
    min-height: 70vh;
}

.content-block {
    margin-top: 4rem;
    max-width: 800px;
}

.content-block h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.content-block p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.content-block ul {
    list-style: none;
}

.content-block ul li {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    position: relative;
    padding-left: 1.5rem;
}

.content-block ul li::before {
    content: '→';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* Instagram Stories Viewer */
.story-viewer-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.story-ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 35px 15px 10px;
    z-index: 15;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.story-progress-container {
    display: flex;
    gap: 4px;
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 2px;
}

/* Customizing Swiper Pagination */
.story-ui-overlay .swiper-pagination-bullet {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    opacity: 1;
    margin: 0 !important;
}

.story-ui-overlay .swiper-pagination-bullet-active {
    background: #fff;
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    color: white;
}

.story-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.story-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.story-username {
    font-weight: 600;
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.story-time {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.story-options {
    font-size: 18px;
    font-weight: bold;
}

.story-swiper {
    width: 100%;
    height: 100%;
}

.story-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

.story-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-prev, .story-next {
    color: rgba(255, 255, 255, 0.7) !important;
    transform: scale(0.6);
}
.story-prev {
    left: 2px !important;
}
.story-next {
    right: 2px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    .footer {
        padding: 2rem 0;
        margin-top: 2rem;
    }
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .nav-links {
        display: none;
    }
}

/* Animations Disabled per user request */
.reveal, .reveal-stagger > * {
    opacity: 1;
    transform: none;
}

/* --- Media Galleries --- */

/* Video Carousel */
.video-section {
    margin-top: 6rem;
    position: relative;
}
.video-section:first-of-type {
    margin-top: 2rem;
}
.video-section h2,
section.video-section h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 3rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    /* Normalize any inline SVG inside h2 */
}
.video-section h2 svg,
section.video-section h2 svg {
    width: 28px !important;
    height: 28px !important;
    color: var(--accent-color);
    fill: var(--accent-color);
    flex-shrink: 0;
    vertical-align: middle;
    position: static !important;
    top: auto !important;
    margin-right: 0 !important;
}
/* Swiper Carousel Styles */
.carousel-outer-wrapper {
    position: relative;
    width: 100%;
}

.swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
    overflow: visible !important; /* Allow side slides to spill out safely */
    
    /* Fade to background on the edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* Large Carousel (Sections 1 & 3) */
.carousel-large .swiper-slide {
    max-width: 1200px; /* Allow it to be a bit larger on huge screens */
}

/* Portrait Carousel (Section 2) */
.carousel-portrait {
    padding-top: 80px;
    padding-bottom: 80px;
}
.carousel-portrait .swiper-slide {
    /* Let Swiper handle width entirely */
}

.video-wrapper {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    cursor: pointer;
    
    /* Inactive State (Sides) */
    opacity: 0.3;
    filter: blur(5px);
    transform: scale(0.85); /* Slightly smaller side items */
    
    /* Fix for WebKit/Blink rendering tile seams on blurred elements */
    will-change: transform, filter, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Swiper automatically adds .swiper-slide-active to the centered slide */
.swiper-slide-active .video-wrapper,
.swiper-slide-active.video-wrapper {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.05); /* Make active video larger */
    border-color: var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    z-index: 10;
}
.swiper-slide-active .video-wrapper:hover,
.swiper-slide-active.video-wrapper:hover {
    transform: scale(1.1); /* Noticeable zoom on hover */
    border-color: rgba(255,193,7,0.5);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.05);
}

/* Portrait specific scaling to make the center video pop out more (Crescendo effect) */
/* By default, assume slides are "Outer Left" */
.carousel-portrait .swiper-slide.video-wrapper {
    transform: scale(0.85) translateX(-12%); 
    opacity: 0.15;
}

/* "Outer Right" (any slide after the active one) */
.carousel-portrait .swiper-slide-active ~ .swiper-slide.video-wrapper {
    transform: scale(0.85) translateX(12%); 
}

/* "Adjacent Left" */
.carousel-portrait .swiper-slide-prev.video-wrapper {
    transform: scale(0.95) translateX(-12%);
    opacity: 0.6;
}

/* "Adjacent Right" */
.carousel-portrait .swiper-slide-next.video-wrapper {
    transform: scale(0.95) translateX(12%);
    opacity: 0.6;
}

/* "Active Center" */
.carousel-portrait .swiper-slide-active.video-wrapper {
    transform: scale(1.1) translateX(0); 
    opacity: 1;
}

.carousel-portrait .swiper-slide-active.video-wrapper:hover {
    transform: scale(1.15) translateX(0);
    border-color: rgba(255,193,7,0.5);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.05);
}



.video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: transparent;
    border-radius: 12px;
    
    /* Fix for WebKit rendering artifacts */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    pointer-events: none;
}
.carousel-portrait .video-wrapper video {
    aspect-ratio: 9/16;
}

/* Swiper Navigation Buttons Override */
.swiper-button-prev,
.swiper-button-next {
    color: var(--accent-color) !important;
    text-shadow: none !important; /* Removed shadow */
    transition: var(--transition);
    width: 60px; 
    height: 100%;
    top: 0;
    margin-top: 0;
    opacity: 0.8;
}
.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 3rem !important;
    font-weight: 900 !important;
    transition: var(--transition);
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
    opacity: 1;
}
.swiper-button-prev:hover::after,
.swiper-button-next:hover::after {
    transform: scale(1.2);
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.4); /* Slight glow on hover only */
}
.swiper-button-prev {
    left: 5% !important;
}
.swiper-button-next {
    right: 5% !important;
}

/* Custom Play Button Overlay */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 60px;
    height: 60px;
    background: rgba(255,193,7,0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}
.video-wrapper:hover .play-overlay,
.bento-item:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}
.play-overlay svg {
    width: 24px;
    height: 24px;
    fill: #2a2a2a; /* Softer black */
    stroke: #2a2a2a;
    stroke-width: 3px;
    stroke-linejoin: round; /* Rounds the corners of the play triangle */
    margin-left: 2px; /* Adjusted visual centering */
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
}
.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
}
.lightbox-content video {
    width: 100%;
    height: 100%;
    max-height: 90vh;
    outline: none;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-radius: 8px;
    border: 1px solid var(--border-color); /* Added border to distinguish from black background */
}
.lightbox-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

/* Portrait specific lightbox sizing */
.lightbox-content.lightbox-portrait {
    max-width: 55vh; /* Force a vertical aspect ratio constraint */
}
.lightbox-content.lightbox-portrait video {
    object-fit: cover;
    aspect-ratio: 9 / 16;
}
.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}
.lightbox-close:hover {
    color: var(--accent-color);
}

/* Image Masonry / Grid */
.gallery-section {
    margin-top: 4rem;
}
.gallery-section h2,
.da-section h2,
.graphisme-section h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.video-section h2::after,
.gallery-section h2::after,
.da-section h2::after,
.graphisme-section h2::after {
    content: '';
    display: block;
    width: 28px;
    flex-shrink: 0;
}

.gallery-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: left;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--accent-color);
}

.gallery-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 3rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* For specific layouts */
.gallery-grid.grid-large {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.gallery-grid.grid-5-cols {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .gallery-grid.grid-5-cols {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 992px) {
    .gallery-grid.grid-5-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 576px) {
    .gallery-grid.grid-5-cols {
        grid-template-columns: minmax(0, 1fr);
    }
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}
.gallery-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255,193,7,0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.03);
}

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

/* --- Profile Card Component --- */
.gallery-item.carousel-wrapper {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible; 
}

.gallery-item.carousel-wrapper:hover {
    transform: translateY(-5px);
    border: none;
    box-shadow: none;
}

.insta-carousel {
    width: 100%;
    height: 100%;
    padding-bottom: 35px; /* Space for pagination outside */
    -webkit-mask-image: none !important;
    mask-image: none !important;
    overflow: hidden !important;
}

.insta-carousel .swiper-slide {
    overflow: hidden;
    border-radius: 12px;
}

.insta-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Ensure the hover scale applies to the swiper image correctly */
.gallery-item:hover .insta-carousel .swiper-slide img {
    transform: scale(1.03);
}

.insta-carousel .swiper-button-next,
.insta-carousel .swiper-button-prev {
    color: rgba(255, 255, 255, 0.9);
    height: auto !important;
    top: calc(50% - 17px) !important; /* Adjusted for new padding */
    transform: translateY(-50%) scale(0.6);
    margin-top: 0;
}

.insta-carousel .swiper-pagination {
    bottom: 0 !important;
}

.insta-carousel .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.4;
}
.insta-carousel .swiper-pagination-bullet-active {
    opacity: 1;
}
.hero-image-slot {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* Align the image to the right */
    align-items: center;
    min-width: 300px;
}

.profile-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    background-color: var(--bg-card);
    transition: transform 0.4s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 12px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.profile-card:hover .profile-img {
    filter: grayscale(0%);
    transform: scale(1.08); /* Zoom effect on hover */
}

/* Radial Yellow Glow */
.profile-glow {
    position: absolute;
    bottom: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 70%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.4) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.profile-card:hover .profile-glow {
    opacity: 1;
}

/* Gradient Overlay for Text Readability */
.profile-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* Text Container */
.profile-text {
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 3;
    pointer-events: none;
    transition: transform 0.4s ease;
}

.profile-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #fff;
    letter-spacing: 0.5px;
}

.profile-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* Instagram Button Overlay */
.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-card:hover .profile-overlay {
    opacity: 1;
}

.btn-instagram {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid rgba(255, 193, 7, 0.6);
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(2px);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3), inset 0 0 10px rgba(255, 193, 7, 0.1);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-instagram:hover {
    background: rgba(255, 193, 7, 0.2);
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.5), inset 0 0 15px rgba(255, 193, 7, 0.2);
    transform: scale(1.05);
}

/* =========================================
   CONTACT PAGE FORM
   ========================================= */
.contact-form-wrapper {
    max-width: 800px; /* Increased from 600px */
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    text-align: left;
}

.input-group {
    position: relative;
    margin-bottom: 35px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 16px 16px 16px 0;
    font-size: 1.1rem;
    color: #fff;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    outline: none;
    transition: var(--transition);
    font-family: inherit;
    resize: vertical;
}

.input-group > label {
    position: absolute;
    top: 16px;
    left: 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: var(--accent-color);
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -12px;
    font-size: 0.85rem;
    color: var(--accent-color);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

/* Chip Group Selector */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chip {
    cursor: var(--cursor-pointer);
}

.chip input[type="radio"] {
    display: none;
}

.chip span {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: var(--transition);
}

.chip input[type="radio"]:checked + span {
    background: rgba(255, 193, 7, 0.15);
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.2);
}

.chip:hover span {
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
.testimonials {
    padding: 6rem 0 2rem;
    overflow: hidden;
}

.testimonials-carousel {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

/* Gradient fades on the edges */
.testimonials-carousel::before,
.testimonials-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}
.testimonials-carousel::before {
    left: 0;
    background: linear-gradient(to right, rgba(13, 13, 13, 1), transparent);
}
.testimonials-carousel::after {
    right: 0;
    background: linear-gradient(to left, rgba(13, 13, 13, 1), transparent);
}

.testimonials-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll-testimonials 75s linear infinite;
    padding: 15px 0; /* padding for hover scale */
}

/* Pause on hover */
.testimonials-track:hover {
    animation-play-state: paused;
}

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

@keyframes scroll-testimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

.testimonial-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    width: 600px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: scale(1.05);
    border-color: rgba(255, 193, 7, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(255, 193, 7, 0.1);
    z-index: 10;
}

.testimonial-card .stars {
    display: flex;
    gap: 4px;
    color: var(--accent-color);
    margin-bottom: 20px;
}
.testimonial-card .stars svg {
    width: 18px;
    height: 18px;
}

.testimonial-title {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 30px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================================
   PRICING SECTION
   ========================================= */
.pricing {
    padding: 6rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: center; /* Center aligns them so the middle one can be taller */
}

.pricing-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(180deg, rgba(30,30,30,1) 0%, rgba(255, 193, 7, 0.2) 100%);
    border-color: rgba(255, 193, 7, 0.3);
    box-shadow: 0 0 40px rgba(255, 193, 7, 0.15);
}

/* Default highlight for the first card, which disappears if ANY card is hovered */
.pricing-grid:not(:has(.pricing-card:hover)) .pricing-card.default-highlight {
    background: linear-gradient(180deg, rgba(30,30,30,1) 0%, rgba(255, 193, 7, 0.2) 100%);
    border-color: rgba(255, 193, 7, 0.3);
    box-shadow: 0 0 40px rgba(255, 193, 7, 0.15);
}

.pricing-tag {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1;
}

.pricing-price span {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.6);
}

.pricing-desc {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    min-height: 70px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    flex-grow: 1;
}

.pricing-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.pricing-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.5);
}

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

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- YouTube Grid Section --- */
section.video-section {
    margin-top: 4rem;
    position: relative;
}
.youtube-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
}

.yt-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.yt-item:hover {
    transform: translateY(-5px);
}

.yt-thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
}

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

.yt-item:hover .yt-thumbnail {
    transform: scale(1.05);
}

/* Play button hover for youtube grid */
.yt-thumbnail-wrapper .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.yt-item:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
}

.yt-info {
    padding: 0 5px;
}

.yt-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.yt-item:hover .yt-info h4 {
    color: var(--accent-color);
}

.yt-views {
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .youtube-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
}

@media (max-width: 600px) {
    .youtube-grid {
        grid-template-columns: 1fr;
        gap: 30px 0;
    }
}

/* --- Direction Artistique V3 --- */

/* Tabbed Interface (Reused for Chartes & Logos) */
.da-tab-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .da-tab-container {
        flex-direction: row;
        align-items: stretch; /* Stretches display area to match tabs column */
    }
}

.da-tabs {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 15px;
    scrollbar-width: none;
}

@media (min-width: 768px) {
    .da-tabs {
        flex-direction: column;
        flex: 0 0 250px;
        overflow-x: visible;
        padding-bottom: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 20px;
    }
}

.da-tabs::-webkit-scrollbar {
    display: none;
}

.da-tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    text-align: left;
    transition: all 0.3s ease;
}

.da-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.da-tab-btn.active {
    background: var(--accent-color);
    color: #111;
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.da-display-area {
    flex: 1;
    background: #e9ecef; /* Neutral light gray background */
    border-radius: 16px;
    padding: 40px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.05);
}

.da-tab-content {
    display: none;
    width: 100%;
    animation: tabFadeIn 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

/* Logos Grid (Inside Tab Content) */
.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.logo-img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 250px;
    min-height: 180px;
}

.logo-img-wrapper img {
    max-width: 250px;
    max-height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

/* Chartes Grid (Inside Tab Content) */
.charte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.charte-grid-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.charte-grid-item:hover {
    transform: scale(1.03);
}

.charte-grid-item img {
    width: 100%;
    display: block;
    border-radius: 12px;
}

/* Bannières YouTube (Swiper) */
.banner-swiper {
    width: 100%;
    /* We use padding so the pagination dots sit below the image */
    padding-bottom: 40px; 
}

.banner-swiper .swiper-slide {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    background: #111;
}

.banner-swiper img {
    width: 100%;
    display: block;
    /* object-fit isn't strictly necessary if we don't set a height, but ensures no stretching */
    object-fit: contain; 
}

/* Adjust arrows to center over the image, not the padding */
.banner-swiper .swiper-button-next,
.banner-swiper .swiper-button-prev {
    top: calc(50% - 20px);
}
/* --- Before / After Toggle --- */
.ba-toggle-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.ba-toggle-btns {
    display: inline-flex;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 5px;
    gap: 4px;
    margin-bottom: 28px;
}

.ba-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 32px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.03em;
}

.ba-toggle-btn.active {
    background: var(--accent-color);
    color: #111;
    box-shadow: 0 4px 15px rgba(255,193,7,0.3);
}

.ba-display {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
}

.ba-switch-img {
    width: 100%;
    height: auto;
    display: none;
    border-radius: 12px;
}

.ba-switch-img.active {
    display: block;
}

/* --- Device Mockups for UI/UX --- */

/* Mac Browser Mockup */
.mac-mockup {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    transition: transform 0.4s ease;
}

.mac-mockup:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.3);
}

.mac-header {
    height: 30px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mac-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.mac-dot.red { background-color: #ff5f56; }
.mac-dot.yellow { background-color: #ffbd2e; }
.mac-dot.green { background-color: #27c93f; }

.mac-content {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    position: relative;
}

.mac-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* iPhone Mockup */
.iphone-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.iphone-mockup {
    position: relative;
    border-radius: 40px;
    padding: 12px; /* Bezel width */
    background: #111; /* Bezel color */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 0 2px #333;
    transition: transform 0.4s ease;
}

.iphone-mockup:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(255, 193, 7, 0.2), inset 0 0 0 2px var(--accent-color);
}

/* iPhone Notch */
.iphone-notch {
    position: absolute;
    top: 12px; /* matches padding */
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 25px;
    background: #111;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.iphone-content {
    border-radius: 28px; /* Inner radius */
    overflow: hidden;
    width: 100%;
    aspect-ratio: 9 / 19.5; /* Modern phone aspect ratio */
    background: #000;
}

.iphone-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ui-title {
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-color);
}

.mac-container {
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .iphone-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .iphone-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 992px) {
    .logo-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; justify-items: center; align-items: center; }
    .logo-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; justify-items: center; align-items: center; }
    .logo-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px; justify-items: center; align-items: center; }
    .logo-grid-coaventure { display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr 1fr; gap: 30px; justify-items: center; align-items: center; }
}

/* --- Mobile Nav & Hero Fixes --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

.hamburger span {
    display: block;
    width: 2rem;
    height: 0.25rem;
    background: #ffffff; /* fallback if var fails */
    background: var(--text-color, #ffffff);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

@media (max-width: 992px) {
    /* Navbar / Menu */
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 99;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        gap: 2rem;
    }

    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links a {
        font-size: 1.5rem;
    }
    
    .logo {
        margin-right: auto;
    }

    .navbar .btn {
        display: inline-block; /* Show it again */
        order: 2;
        margin-right: 20px;
    }
    
    .hamburger {
        order: 3;
    }

    .nav-links {
        order: 4;
    }

    /* Hamburger animation */
    .hamburger.active span:first-child {
        transform: rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    /* Hero */
    .hero-split {
        flex-direction: column-reverse; /* Text below image, or text above image. Let's do text above image (column) */
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-tags {
        justify-content: center;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
    }

    .hero-image-slot {
        width: 100%;
        max-width: 400px;
    }
}
