/* --- 1. CONFIGURATION GÉNÉRALE & RESET --- */
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,900;400&family=Syne:wght@700;800&display=swap');

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

body {
    background-color: #0d0d0d;
    color: #ffffff;
    font-family: 'Helvetica', 'Arial', sans-serif;
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

section,
#projets-anchor {
    scroll-margin-top: 100px;
    /* Offset for fixed header */
}

a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* --- 2. HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    /* Transparent initially */
    backdrop-filter: none;
    /* No blur initially */
    -webkit-backdrop-filter: none;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
    transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s, padding 0.3s ease-out;
}

header.enable-transitions {
    transition: padding 0.3s ease-out, background-color 0.3s, box-shadow 0.3s;
}

header.scrolled {
    background-color: rgba(13, 13, 13, 0.95);
    /* Black on scroll */
    backdrop-filter: blur(10px);
    /* Blur on scroll */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.8);
    padding: 10px 40px;
    /* Shrink on scroll */
}

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

.logo img {
    height: 45px;
    width: auto;
    display: block;
    transition: none;
}

header.enable-transitions .logo img {
    transition: height 0.3s ease-out;
}

.tagline {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    color: #ff2a2a;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: none;
}

header.enable-transitions .tagline {
    transition: font-size 0.3s ease-out, opacity 0.3s;
}

nav a {
    margin-left: 30px;
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-weight: 300;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: none;
}


header.enable-transitions nav a {
    transition: font-size 0.3s ease-out;
}

/* Contact Button */
nav a.nav-btn-contact {
    background-color: transparent;
    /* No background initially */
    color: white;
    padding: 8px 16px;
    /* Reduced padding */
    border-radius: 50px;
    font-weight: 700;
    margin-left: 40px;
    transition: all 0.3s ease;
    border: 1px solid white;
    /* Thinner border */
}

nav a.nav-btn-contact:hover {
    background-color: white;
    /* White on hover */
    color: black;
    /* Black text */
    border-color: white;
    opacity: 1;
}


/* --- 3. HERO --- */
#hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: block;
}

#hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay */
    z-index: 1;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    /* Content on top */
    width: 100%;
    padding: 0 20px;
}

/* Hero Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.25rem, 3vw, 3rem);
    /* Reduced by half */
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1;
    opacity: 0;
    /* Start hidden */
    animation: fadeInUp 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
    animation-delay: 0.2s;

}

.hero-content .subtitle {
    font-family: 'Helvetica', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    margin: 0;
    letter-spacing: 1px;
    opacity: 0;
    /* Start hidden */
    animation: fadeInUp 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
    animation-delay: 0.4s;

}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 1s;
    /* Appear last */
}

.scroll-indicator .arrow {
    display: block;
    width: 30px;
    /* Increased size */
    height: 30px;
    /* Increased size */
    border-bottom: 2px solid white;
    /* Slightly thicker for visibility */
    border-right: 2px solid white;
    /* Slightly thicker for visibility */
    transform: rotate(45deg);
    margin: -10px 0;
    /* Adjusted overlap */
    animation: scrollBounce 2s infinite;
}

.scroll-indicator .arrow:nth-child(2) {
    animation-delay: -0.2s;
    /* Stagger animation */
}

/* Elegant Load More Button */
.btn-load-more {
    background: none;
    border: none;
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-load-more:hover {
    opacity: 0.8;
}

.arrow-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin-top: -4px;
}

.btn-load-more.expanded .arrow-icon {
    transform: rotate(225deg);
    margin-top: 4px;
}

@keyframes scrollBounce {
    0% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: rotate(45deg) translate(10px, 10px);
        opacity: 0;
    }
}

/* --- 4. MARQUEE CLIENTS --- */
.marquee-container {
    background-color: #000;
    color: #fff;
    padding: 20px 0 60px 0;
    /* Increased top gap */
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.marquee-content {
    display: flex;
    align-items: center;
    width: max-content;
    animation: defilement 80s linear infinite;
}

.marquee-content img {
    height: 55px;
    width: auto;
    margin: 0 50px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.marquee-content img[src*="client6.png"] {
    height: 20px;
}

.marquee-content img:hover {
    opacity: 1;
}

@keyframes defilement {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- 4b. STATIC BANNER TEXT --- */
.marquee-text-container {
    background-color: #000;
    color: #fff;
    padding: 60px 0 20px 0;
    /* Increased bottom gap */
    overflow: hidden;
    position: relative;
    z-index: 2;
    /* border-bottom removed */
    display: flex;
    justify-content: center;
}

.marquee-text-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 2%;
    box-sizing: border-box;
    overflow: hidden;
}

.marquee-text-content span {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 5rem);
    /* Increased min size for mobile */
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1;
    letter-spacing: -1px;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

/* --- 5. GALERIE --- */
#galerie {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: #333;
    gap: 1px;
    border-bottom: 1px solid #333;
    grid-auto-flow: dense;
    position: relative;
    z-index: 2;
}

.projet-video {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: #000;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projet-video.large {
    /* Reset pour grille uniforme */
    grid-column: span 1;
    grid-row: span 1;
}

.hover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 1;
    transform: translateZ(0);
    will-change: play-state;
}

.info-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 15px;
    background-color: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.projet-video:hover .info-hover {
    opacity: 1;
}

.pill-container {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pill {
    background-color: white;
    color: black;
    font-family: 'Helvetica', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.projet-video:hover .pill-container {
    opacity: 1;
    transform: translateY(0);
}

.flag-emoji {
    font-size: 2em;
    position: absolute;
    top: 15px;
    right: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    line-height: 1;
}

.case-texte {
    background-color: #080808;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    aspect-ratio: 16 / 9;
    text-align: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    width: 100%;
    grid-column: span 1;
    grid-row: span 1;
}

.parallax-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.case-texte h3 {
    font-family: 'Bodoni Moda', serif;
    font-size: 2.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin: 0;
    line-height: 1.1;
    color: #ff2a2a;
    font-style: italic;
    will-change: transform;
}

.case-texte p {
    font-family: 'Helvetica', sans-serif;
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.5;
    text-align: center;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: 80%;
    will-change: transform;
}

/* --- 6. TEAM --- */
#team {
    padding: 50px 40px 100px 40px;
    background-color: #0d0d0d;
    overflow: hidden;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.team-header {
    text-align: center;
    margin-bottom: 80px;
}

.team-header h2 {
    font-family: 'Bodoni Moda', serif;
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin: 0;
    font-style: italic;
}

.team-header .subtitle {
    font-family: 'Helvetica', sans-serif;
    color: #666;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.team-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    will-change: transform;
    opacity: 0;
    /* Hidden initially */
    transform: translateY(50px);
    /* Pushed down initially */
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.team-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 40px;
    position: relative;
    background-color: #1a1a1a;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    /* Fix for Safari border-radius clipping */
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(100%);
}

.image-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.team-card:hover .image-wrapper video {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-card:hover .image-wrapper img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* New Team Overlay Styles */
.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: left;
    box-sizing: border-box;
    /* Ensure padding doesn't affect width */
}

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

.team-overlay h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: white;
    margin: 0 0 5px 0;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.team-card:hover .team-overlay h4 {
    transform: translateY(0);
}

.team-overlay .role {
    font-family: 'Helvetica', sans-serif;
    font-size: 0.85rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
    /* Slight delay */
}

.team-card:hover .team-overlay .role {
    transform: translateY(0);
}

.team-overlay .description {
    font-family: 'Helvetica', sans-serif;
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.4;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
    /* More delay */
}

.team-card:hover .team-overlay .description {
    opacity: 1;
    transform: translateY(0);
}


/* --- 6b. NOTRE HISTOIRE --- */
#notre-histoire {
    padding: 100px 40px;
    background-color: #0d0d0d;
    overflow: hidden;
    position: relative;
    z-index: 2;
    text-align: center;
}

#notre-histoire h2 {
    font-family: 'Bodoni Moda', serif;
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin: 0 0 30px 0;
    font-style: italic;
}

#notre-histoire p {
    font-family: 'Helvetica', sans-serif;
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}


/* --- 7. FOOTER MARQUEE --- */
.footer-marquee-container {
    background-color: #0d0d0d;
    color: #fff;
    padding: 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
    border-top: 1px solid #1a1a1a;
}

.footer-marquee-content {
    display: flex;
    white-space: nowrap;
    animation: defilementFooter 80s linear infinite;
}

.footer-marquee-content span {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 8.5vw;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-right: 50px;
    opacity: 0.9;
}

@keyframes defilementFooter {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* ========================================= */
/* --- 8. SECTION FORMULAIRE (TIROIR) --- */
/* ========================================= */
#contact-form-section {
    background-color: #0d0d0d;
    max-height: 0;
    /* Caché */
    overflow: hidden;
    transition: max-height 1s cubic-bezier(0.19, 1, 0.22, 1);
    border-bottom: 1px solid #222;
}

#contact-form-section.open {
    max-height: 8000px;
}

/* Remplace le bloc .form-container par celui-ci */
.form-container {
    max-width: 1000px;
    margin: 0 auto;
    /* J'ai passé le padding du bas de 100px à 150px pour la sécurité */
    padding: 100px 40px 150px 40px;
}

.form-group {
    margin-bottom: 80px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#contact-form-section.open .form-group {
    opacity: 1;
    transform: translateY(0);
}

#contact-form-section.open .form-group:nth-child(2) {
    transition-delay: 0.1s;
}

#contact-form-section.open .form-group:nth-child(3) {
    transition-delay: 0.2s;
}

#contact-form-section.open .form-group:nth-child(4) {
    transition-delay: 0.3s;
}

#contact-form-section.open .form-group:nth-child(5) {
    transition-delay: 0.4s;
}

.form-group label {
    display: block;
    font-family: 'Helvetica', sans-serif;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.form-number {
    color: #333;
    margin-right: 15px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    color: white;
    font-family: 'Bodoni Moda', serif;
    font-size: 3rem;
    padding: 10px 0;
    outline: none;
    border-radius: 0;
    transition: border-color 0.3s;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #333;
    opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #fff;
}

/* STYLE DES PASTILLES (PILLS) */
.pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.form-pill {
    background-color: #ffffff;
    color: #0d0d0d;
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    transform: scale(1);
}

.form-pill:hover {
    opacity: 1;
    transform: scale(1.05);
}

.form-pill.selected {
    opacity: 1;
    background-color: #00FA9A;
    color: #0d0d0d;
    box-shadow: 0 0 20px rgba(0, 250, 154, 0.3);
}

.form-submit-wrapper {
    margin-top: 50px;
    text-align: right;
}

#submit-btn {
    background-color: #00FA9A;
    color: #0d0d0d;
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 20px 40px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.2;
    pointer-events: none;
}

#submit-btn.active {
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 0 20px rgba(0, 250, 154, 0.4);
}

#submit-btn.active:hover {
    transform: scale(1.05);
    background-color: white;
}


/* ========================================= */
/* --- 9. FOOTER --- */
/* ========================================= */
footer {
    background-color: #0d0d0d;
    padding: 80px 40px 60px;
    position: relative;
    z-index: 2;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1600px;
    margin: 0 auto;
}

.footer-statement {
    font-family: 'Helvetica', sans-serif;
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 300;
    color: #fff;
}

.mt-large {
    margin-top: 60px;
}

.circled-word {
    position: relative;
    display: inline-block;
    padding: 0 8px;
    font-family: 'Bodoni Moda', serif;
    font-weight: 900;
    font-style: italic;
    z-index: 1;
}

.circled-word::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 105%;
    height: 110%;
    transform: translate(-50%, -50%) rotate(-4deg);
    border: 2px solid #ff2a2a;
    border-radius: 65% 35% 55% 45% / 45% 55% 35% 65%;
    z-index: -1;
    pointer-events: none;
}

.hit-us-up {
    color: #ff2a2a;
    text-decoration: underline;
    text-underline-offset: 6px;
    font-weight: 700;
}

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

.map-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.map-wrapper iframe {
    width: 100%;
    height: 220px;
    border-radius: 20px;
    filter: grayscale(100%) invert(90%) contrast(85%);
    opacity: 0.8;
    transition: opacity 0.3s, filter 0.3s;
}

.map-wrapper iframe:hover {
    opacity: 1;
    filter: grayscale(0%) invert(0%);
}

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

.nav-col h4 {
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.nav-col a {
    display: block;
    font-family: 'Helvetica', sans-serif;
    font-size: 1rem;
    color: white;
    margin-bottom: 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-col a:hover {
    opacity: 1;
}

.smart-data {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.8rem;
    color: #ff2a2a;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #00ff00;
    border-radius: 50%;
    margin-top: 5px;
    box-shadow: 0 0 8px #00ff00;
    animation: blink 2s infinite;
}

.copyright {
    display: block;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #444;
}


/* --- MODULE "LET'S CHAT" STYLE IOS (V7 FINAL) --- */
.chat-wrapper {
    margin-top: 60px;
}

.unfold-chat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 420px;
    padding: 22px 35px;
    background-color: #ffffff;
    border: none;
    border-radius: 20px;
    color: #000000;
    text-decoration: none;
    will-change: transform, background-color;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-text-wrapper {
    position: relative;
    height: 1.5rem;
    overflow: hidden;
    flex-grow: 1;
}

.btn-text-wrapper span {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.4s ease;
}

.text-default {
    transform: translateY(0);
    opacity: 1;
}

.text-hover {
    transform: translateY(150%);
    opacity: 0;
    color: #ffffff;
}

.btn-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 50%;
    transition: background-color 0.4s ease, transform 0.4s ease;
    overflow: visible;
    margin-left: 20px;
}

.icon-state {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-arrow svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

.icon-rocket {
    opacity: 0;
    font-size: 2.2rem;
    transform: translate(-100%, 50%) scale(0.5) rotate(-45deg);
    pointer-events: none;
}

.icon-arrow {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* HOVER BUTTON (Vert #00FA9A + Opacité Force 1) */
.unfold-chat-btn:hover {
    background-color: #00FA9A;
    opacity: 1;
    /* Fix opacité */
    border-color: #00FA9A;
    color: #000000;
    transform: scale(1.03);
    box-shadow: none;
}

.unfold-chat-btn:hover .text-default {
    transform: translateY(-150%);
    opacity: 0;
}

.unfold-chat-btn:hover .text-hover {
    transform: translateY(0);
    opacity: 1;
    color: #000000;
}

.unfold-chat-btn:hover .btn-icon-container {
    background-color: transparent;
    transform: rotate(0deg);
}

.unfold-chat-btn:hover .icon-arrow {
    opacity: 0;
    transform: translate(50%, -100%) scale(0.5);
}

.unfold-chat-btn:hover .icon-rocket {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2) rotate(0deg);
}


/* --- 10. MEDIA QUERIES --- */
@media (max-width: 1200px) {
    .tagline {
        display: none;
    }

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

    .footer-marquee-content span {
        font-size: 12vw;
    }
}

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

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-nav-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px;
    }

    #galerie {
        grid-template-columns: 1fr;
    }

    .projet-video.large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .case-texte h3 {
        font-size: 2rem;
    }

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

    .footer-marquee-content span {
        font-size: 18vw;
    }

    .footer-nav-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 1.8rem;
    }
}

/* --- 11. EXTRAS --- */
#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border: 1px solid #ff2a2a;
    background: transparent;
    color: #ff2a2a;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 1500;
}

#back-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:hover {
    background-color: #ff2a2a;
    color: #fff;
}

@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }

    a,
    button,
    .projet-video {
        cursor: none;
    }

    #custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 12px;
        height: 12px;
        background-color: white;
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        mix-blend-mode: difference;
        transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1), height 0.3s cubic-bezier(0.19, 1, 0.22, 1), background-color 0.3s;
        will-change: transform, width, height;
    }

    #custom-cursor.active {
        width: 20px;
        height: 20px;
        background-color: #ff2a2a;
        mix-blend-mode: normal;
    }
}

@media (hover: none),
(pointer: coarse) {
    #custom-cursor {
        display: none;
    }
}

#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.video-wrapper {
    width: 80%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

#lightbox iframe {
    width: 100%;
    height: 100%;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: #ccc;
    transform: rotate(90deg);
}

/* --- MOBILE NAVIGATION --- */
.burger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu div {
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    header.scrolled {
        padding: 10px 20px;
    }

    .burger-menu {
        display: block;
    }

    nav {
        position: fixed;
        right: 0px;
        top: 0px;
        height: 100vh;
        width: 100%;
        background-color: #0d0d0d;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1000;
    }

    nav.nav-active {
        transform: translateX(0%);
    }

    nav a {
        opacity: 0;
        margin: 20px 0;
        font-size: 24px;
        font-family: 'Syne', sans-serif;
        font-weight: 700;
        animation: navLinkFade 0.5s ease forwards 0.3s;
    }

    /* Adjustions spacing mobile */
    .hero-content h1 {
        font-size: 2rem;
    }

    section {
        padding: 60px 20px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .projet-video.large {
        grid-column: span 1;
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- 7. NOTRE HISTOIRE (BENTO GRID) --- */
#notre-histoire {
    padding: 100px 40px;
    background-color: #0d0d0d;
    display: flex;
    justify-content: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);


    .more-clients {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #333;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: -10px;
        font-size: 0.8rem;
        border: 2px solid #1a1a1a;
    }

    /* Responsive */
    @media (max-width: 1024px) {
        .bento-grid {
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: auto;
        }

        .main-text {
            grid-column: span 2;
        }

        .stat-card {
            grid-column: span 1;
        }

        .media-card {
            grid-column: span 2;
            height: 300px;
        }

        .social-card {
            grid-column: span 2;
            flex-direction: row;
            justify-content: space-around;
        }
    }

    @media (max-width: 768px) {
        .bento-grid {
            display: flex;
            flex-direction: column;
        }

        .media-card {
            height: 250px;
        }
    }