/*
Theme Name: Beepfake
Theme URI: https://beepfake.com
Description: Thème WordPress pixel-perfect basé sur le design React Barbara Kruger
Version: 2.0
Author: Beepfake Team
Text Domain: beepfake
*/

/* === VARIABLES CSS (Basées sur Tailwind Config) === */
:root {
    --color-primary: #C8102E; /* Rouge Barbara Kruger */
    --color-primary-foreground: #FFFFFF;
    --color-background: #FFFFFF;
    --color-foreground: #000000;
    --color-accent: #000000;
    --color-accent-foreground: #FFFFFF;
    --color-muted: #F5F5F5;
    --color-muted-foreground: #666666;
    --color-yellow: #FDB813;
    --color-blue: #0077BE;
    
    --font-main: 'Roboto Condensed', 'Oswald', 'Arial Narrow', sans-serif;
    --radius: 0.5rem;
}

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

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-foreground);
    background: var(--color-background);
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

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

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

ul {
    list-style: none;
}

/* === UTILITAIRES BARBARA KRUGER === */
.bg-primary { background-color: var(--color-primary); }
.text-primary { color: var(--color-primary); }
.text-primary-foreground { color: var(--color-primary-foreground); }

.bg-accent { background-color: var(--color-accent); }
.text-accent { color: var(--color-accent); }
.text-accent-foreground { color: var(--color-accent-foreground); }

.bg-muted { background-color: var(--color-muted); }
.text-muted-foreground { color: var(--color-muted-foreground); }

.font-black { font-weight: 900; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
}

/* === HEADER === */
.site-header {
    background: var(--color-background);
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 50;
    height: 64px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-logo img {
    height: 32px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.btn-contact {
    background: var(--color-primary);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}

.btn-contact:hover {
    background: #A00D24;
}

/* === HERO SECTION === */
.hero-section {
    padding: 5rem 0;
    border-bottom: 8px solid var(--color-primary);
    overflow: hidden;
}

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

@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
}

.hero-title {
    font-size: 3.75rem; /* 60px */
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.25rem; }
}

.hero-highlight {
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.5rem;
    background: var(--color-accent);
    color: white;
    padding: 1rem 1.5rem;
    display: inline-block;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .hero-buttons { justify-content: center; flex-direction: column; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 900;
    border-radius: var(--radius);
    cursor: pointer;
    border: none;
}

.btn-lg {
    padding: 1.5rem 2rem;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: #A00D24;
}

.btn-secondary {
    background: var(--color-muted);
    color: var(--color-foreground);
}

.btn-secondary:hover {
    background: #e5e5e5;
}

.hero-video {
    border: 4px solid var(--color-primary);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* === SECTIONS COMMUNES === */
.section {
    padding: 5rem 0;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 3.75rem;
    background: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    display: inline-block;
}

@media (max-width: 768px) {
    .section-title { font-size: 2.25rem; padding: 0.5rem 1rem; }
}

.section-title.accent {
    background: var(--color-accent);
}

/* === CARDS === */
.card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid #e5e5e5;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-header {
    padding: 1.5rem;
}

.card-content {
    padding: 1.5rem;
    padding-top: 0;
}

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

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

.service-card-header {
    position: relative;
    z-index: 10;
    padding: 1.5rem;
}

.service-icon {
    width: 3rem;
    height: 3rem;
    background: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.5rem;
    background: var(--color-foreground);
    color: white;
    padding: 0.5rem 1rem;
    text-align: center;
    display: block;
}

.service-subtitle {
    font-size: 0.875rem;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.service-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.check-icon {
    color: var(--color-primary);
    margin-top: 0.125rem;
}

/* === CIBLES === */
.target-card-header {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
}

.target-title-box {
    background: var(--color-primary);
    padding: 0.5rem 1rem;
    transform: skewY(-3deg);
    display: inline-block;
}

.target-title {
    color: white;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 900;
}

/* === METHODOLOGIE === */
.methodology-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.step-item {
    position: relative;
    padding-left: 3.5rem; /* Increased for better mobile spacing */
}

.step-number {
    position: absolute;
    left: -1rem;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* === EQUIPE === */
.team-section {
    background: var(--color-primary);
    color: white;
}

.team-title span {
    display: inline-block;
    font-style: italic;
    transform: skewY(-2deg);
}

.team-content {
    background: white;
    color: var(--color-foreground);
    padding: 3rem;
    position: relative;
}

.team-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.5rem;
    background: var(--color-accent);
}

/* === CONTACT FORM === */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e5e5;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.form-input:focus, .form-textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* === BLOG === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

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

.post-card {
    border: 1px solid #e5e5e5;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-date {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
    margin-bottom: 0.5rem;
    display: block;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.post-excerpt {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* === FOOTER === */
.site-footer {
    background: var(--color-background);
    border-top: 1px solid #e5e5e5;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

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

.footer-logo-text {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
}

.footer-menu h3 {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.footer-menu ul li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

.footer-menu a:hover {
    color: var(--color-foreground);
}

.footer-bottom {
    border-top: 1px solid #e5e5e5;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

/* === STRIPED BACKGROUNDS === */
.bg-striped-black {
    background: repeating-linear-gradient(90deg, #000 0px, #000 40px, #fff 40px, #fff 80px);
}

.bg-striped-yellow {
    background: repeating-linear-gradient(90deg, #FDB813 0px, #FDB813 40px, #fff 40px, #fff 80px);
}

.bg-striped-blue {
    background: repeating-linear-gradient(90deg, #0077BE 0px, #0077BE 40px, #fff 40px, #fff 80px);
}

.bg-striped-small {
    background: repeating-linear-gradient(90deg, #000 0px, #000 30px, #fff 30px, #fff 60px);
}

/* === HEADER CORRECTIONS === */
.site-header {
    background: var(--color-background);
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
    display: flex;
    align-items: center;
}

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

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
    width: 30px;
    height: 4px;
    background-color: var(--color-foreground);
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.hamburger-inner::before, .hamburger-inner::after {
    width: 30px;
    height: 4px;
    background-color: var(--color-foreground);
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
    content: "";
    display: block;
}

.hamburger-inner::before { top: -10px; }
.hamburger-inner::after { bottom: -10px; }

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: white;
        border-bottom: 1px solid #e5e5e5;
        padding: 1rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .main-navigation.is-open {
        transform: translateY(0);
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.125rem;
    }
    
    .btn-contact {
        display: inline-block;
        margin-top: 0.5rem;
    }
}

/* === SECTION TRIVIAL CORRECTIONS === */
.card.bg-primary {
    background-color: var(--color-primary) !important;
    color: var(--color-primary-foreground) !important;
}

.card.bg-primary p, 
.card.bg-primary .text-muted-foreground {
    color: var(--color-primary-foreground) !important;
    opacity: 0.9;
}

.card.bg-accent {
    background-color: var(--color-accent) !important;
    color: var(--color-accent-foreground) !important;
}

.card.bg-accent p,
.card.bg-accent .text-muted-foreground {
    color: var(--color-accent-foreground) !important;
    opacity: 0.9;
}

/* === FOOTER GRID CORRECTIONS === */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

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

/* === SECTION TRIVIAL & STATS CORRECTIONS === */
.card.bg-primary, 
.card.bg-accent {
    color: white !important;
}

.card.bg-primary p, 
.card.bg-accent p,
.card.bg-primary .text-muted-foreground,
.card.bg-accent .text-muted-foreground {
    color: white !important;
    opacity: 0.95;
}

/* === HERO VIDEO POSTER === */
video[poster] {
    object-fit: cover;
    background-color: black;
}

/* === IMAGE HEIGHT ADAPTATION (FLEXBOX) === */
.hero-grid {
    display: flex;
    flex-direction: row;
    align-items: stretch; /* Force la même hauteur */
    gap: 2rem;
}

.hero-grid > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.enjeux-image, 
.hero-video-wrapper {
    height: 100%;
}

.enjeux-image img,
.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit tout l'espace sans déformation */
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    .hero-grid {
        flex-direction: column;
    }
    
    .enjeux-image img,
    .hero-video video {
        height: auto;
        min-height: 300px;
    }
}

/* === V6 FIX: ADAPTIVE GRID === */
.adaptive-grid {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 2rem;
}

.adaptive-grid > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.adaptive-grid img,
.adaptive-grid video {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    border-radius: var(--radius);
    min-height: 100%;
}

@media (max-width: 768px) {
    .adaptive-grid {
        flex-direction: column !important;
    }
    .adaptive-grid img,
    .adaptive-grid video {
        height: auto;
        min-height: 300px;
    }
}

/* === V7 FIX: ABSOLUTE POSITIONING FOR PERFECT HEIGHT === */
@media (min-width: 769px) {
    .relative-container {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }

    .absolute-image-wrapper {
        position: relative; /* Fallback */
        flex: 1;
    }

    /* Cette règle force l'image à prendre la hauteur du conteneur parent (défini par le texte) */
    .absolute-image-wrapper img,
    .absolute-image-wrapper video,
    .absolute-image-wrapper .hero-video {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: var(--radius);
    }
    
    /* Cas spécifique pour le wrapper vidéo */
    .hero-video-wrapper.absolute-image-wrapper {
        position: relative; /* Nécessaire pour que l'enfant absolute se cale dessus */
    }
}

/* === V8 FIX: BACKGROUND COVER COLUMN === */
.bg-cover-column {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius);
    min-height: 300px; /* Hauteur minimale sur mobile */
    position: relative;
    overflow: hidden;
}

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

/* Sur desktop, la colonne prend toute la hauteur disponible (flex stretch) */
@media (min-width: 769px) {
    .bg-cover-column {
        height: auto; /* Laisse Flexbox gérer la hauteur */
        flex: 1;
    }
}

/* === FIXES V8 HERO === */
.adaptive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

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

.relative-container {
    position: relative;
    overflow: hidden;
}

.bg-cover-column {
    background-size: cover;
    background-position: center;
    min-height: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .bg-cover-column { min-height: 300px; }
}

.hero-video-wrapper {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Backgrounds rayés pour les services */
.bg-striped-black {
    background: repeating-linear-gradient(
        45deg,
        #000,
        #000 10px,
        #fff 10px,
        #fff 20px
    );
}

.bg-striped-yellow {
    background: repeating-linear-gradient(
        45deg,
        #FDB813,
        #FDB813 10px,
        #fff 10px,
        #fff 20px
    );
}

.bg-striped-blue {
    background: repeating-linear-gradient(
        45deg,
        #0077BE,
        #0077BE 10px,
        #fff 10px,
        #fff 20px
    );
}

/* === ULTIMATE VIDEO FIX === */
.hero-video-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 400px !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    background-size: cover !important;
    background-position: center !important;
}

.bg-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 1 !important;
    display: block !important;
}

.hero-video-overlay {
    z-index: 2 !important;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
}

/* Force grid height on desktop */
@media (min-width: 769px) {
    .adaptive-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        align-items: stretch !important;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-right: 2rem;
    }
}

/* === CORRECTED FIXES (V8.1) === */

/* 1. Rayures Verticales (90deg) comme à l'origine */
.bg-striped-black {
    background: repeating-linear-gradient(
        90deg,
        #000,
        #000 10px,
        #fff 10px,
        #fff 20px
    );
}

.bg-striped-yellow {
    background: repeating-linear-gradient(
        90deg,
        #FDB813,
        #FDB813 10px,
        #fff 10px,
        #fff 20px
    );
}

.bg-striped-blue {
    background: repeating-linear-gradient(
        90deg,
        #0077BE,
        #0077BE 10px,
        #fff 10px,
        #fff 20px
    );
}

/* 2. Fix Hero Video (Scoped) - Ne casse pas le reste du site */
.hero-section .adaptive-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    align-items: stretch !important;
}

@media (max-width: 768px) {
    .hero-section .adaptive-grid {
        grid-template-columns: 1fr !important;
    }
}

.hero-video-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 400px !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    background-size: cover !important;
    background-position: center !important;
}

.bg-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 1 !important;
    display: block !important;
}

.hero-video-overlay {
    z-index: 2 !important;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
}

/* 3. Reset Global Grid Override (Annule le !important précédent sur .adaptive-grid global) */
/* Note: En CSS, la spécificité plus haute de .hero-section .adaptive-grid l'emporte pour le hero.
   Pour les autres sections, on laisse le style par défaut défini plus haut dans le fichier. */

/* === FINAL CORRECTIONS (V8.2) === */

/* 1. Rayures Verticales Fines (Style V7) */
.bg-striped-black {
    background: repeating-linear-gradient(
        90deg,
        #000,
        #000 2px,
        #fff 2px,
        #fff 4px
    );
}

.bg-striped-yellow {
    background: repeating-linear-gradient(
        90deg,
        #FDB813,
        #FDB813 2px,
        #fff 2px,
        #fff 4px
    );
}

.bg-striped-blue {
    background: repeating-linear-gradient(
        90deg,
        #0077BE,
        #0077BE 2px,
        #fff 2px,
        #fff 4px
    );
}

/* 2. Rétablissement de la grille standard pour Équipe et Contact */
/* On annule le display:block qui cassait la mise en page */
.adaptive-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 3rem !important; /* Espacement standard rétabli */
    align-items: start !important;
}

@media (max-width: 768px) {
    .adaptive-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* 3. Exception pour le Hero (Pas d'espacement entre texte et vidéo) */
.hero-section .adaptive-grid {
    gap: 0 !important; /* Collé pour le hero */
    align-items: stretch !important;
}

/* 4. Correction spécifique pour la section Contact (Formulaire) */
#contact .adaptive-grid {
    align-items: start !important;
}

/* === PIXEL PERFECT REACT MATCH (V8.3) === */

/* 1. Rayures EXACTES du site React (Ligne 240 du Home.tsx) */
/* background: 'repeating-linear-gradient(90deg, #000 0px, #000 40px, #fff 40px, #fff 80px)' */
.bg-striped-black {
    background: repeating-linear-gradient(
        90deg,
        #000 0px,
        #000 40px,
        #fff 40px,
        #fff 80px
    ) !important;
}

.bg-striped-yellow {
    background: repeating-linear-gradient(
        90deg,
        #FDB813 0px,
        #FDB813 40px,
        #fff 40px,
        #fff 80px
    ) !important;
}

.bg-striped-blue {
    background: repeating-linear-gradient(
        90deg,
        #0077BE 0px,
        #0077BE 40px,
        #fff 40px,
        #fff 80px
    ) !important;
}

/* 2. Grille Services/Equipe EXACTE (gap-8 = 2rem = 32px) */
.services-grid, .adaptive-grid {
    display: grid !important;
    gap: 2rem !important; /* gap-8 Tailwind = 2rem */
}

/* 3. Grille Contact EXACTE (gap-12 = 3rem = 48px) */
#contact .adaptive-grid {
    gap: 3rem !important; /* gap-12 Tailwind = 3rem */
}

/* 4. Exception Hero (Toujours collé) */
.hero-section .adaptive-grid {
    gap: 3rem !important; /* gap-12 Tailwind = 3rem (Ligne 107 Home.tsx) */
    /* Note: Dans le React, le Hero a un gap-12 (3rem). 
       Je le remets à 3rem pour être fidèle au React, sauf si vous préférez collé.
       Le React dit: <div className="grid md:grid-cols-2 gap-12 ...">
       Donc je mets 3rem. */
}

/* === REDESIGN V8.4 (Team & Contact) === */

/* TEAM SECTION REDESIGN */
.team-section {
    background: var(--color-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Fond subtil pour donner de la texture */
.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.05) 0px,
        rgba(255,255,255,0.05) 2px,
        transparent 2px,
        transparent 10px
    );
    pointer-events: none;
}

.team-grid-redesign {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .team-grid-redesign {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

.team-lead {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.team-badges-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.expertise-badge {
    background: white;
    color: var(--color-primary);
    padding: 1.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.expertise-badge:hover {
    transform: translateX(10px);
}

@media (max-width: 768px) {
    .expertise-badge {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .expertise-badge:hover {
        transform: translateY(-5px);
    }
}

.badge-icon {
    font-size: 2.5rem;
    line-height: 1;
}

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

.badge-text strong {
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
}

.badge-text span {
    font-size: 0.875rem;
    color: var(--color-foreground);
    font-weight: 500;
}

/* CONTACT SECTION CLEAN */
.contact-wrapper-clean {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Style WPForms pour qu'il s'intègre bien */
div.wpforms-container-full .wpforms-form input[type=text],
div.wpforms-container-full .wpforms-form input[type=email],
div.wpforms-container-full .wpforms-form textarea {
    border-radius: var(--radius) !important;
    border: 1px solid #e5e5e5 !important;
    padding: 0.75rem !important;
}

div.wpforms-container-full .wpforms-form input:focus,
div.wpforms-container-full .wpforms-form textarea:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.1) !important;
}

div.wpforms-container-full .wpforms-form button[type=submit] {
    background-color: var(--color-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius) !important;
    padding: 1rem 2rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    width: 100% !important;
    transition: background 0.2s !important;
}

div.wpforms-container-full .wpforms-form button[type=submit]:hover {
    background-color: #A00D24 !important;
}

/* === V7 FOOTER & BLOG STYLES === */

/* BLOG GRID */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.post-content {
    padding: 1.5rem;
}

.post-date {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-title a {
    color: var(--color-foreground);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--color-primary);
}

.post-excerpt {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--color-primary);
    text-decoration: none;
    text-transform: uppercase;
}

.read-more:hover {
    text-decoration: underline;
}

/* FOOTER STYLES (V7) */
.site-footer {
    background: #000;
    color: white;
    padding: 5rem 0 2rem;
    border-top: 8px solid var(--color-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

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

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

.footer-logo-text {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
}

.footer-menu h3 {
    font-size: 0.875rem;
    font-weight: 900;
    color: var(--color-muted-foreground);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.social-links a:hover {
    color: var(--color-primary);
}

/* === CAROUSEL CIBLES (V9) === */
.target-carousel-container {
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 3rem; /* Espace pour les flèches */
}

.target-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.target-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 1rem;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none; /* Pour cliquer au travers si besoin */
}

.carousel-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.carousel-btn:hover {
    background: #A00D24;
}

/* === MOBILE MENU FIX (V9) === */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block; /* Afficher le burger */
    }

    .main-navigation {
        display: none; /* Caché par défaut */
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: white;
        border-bottom: 4px solid var(--color-primary);
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center; /* Centrage demandé */
    }

    .main-navigation.active {
        display: block; /* Affiché quand actif */
    }

    .nav-menu {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-menu a {
        font-size: 1.25rem; /* Plus gros pour le tactile */
        display: block;
    }
    
    /* Cacher tout autre menu parasite s'il existe */
    .mobile-menu-overlay, .off-canvas-menu {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none; /* Cacher le burger sur desktop */
    }
    
    .main-navigation {
        display: block !important; /* Toujours afficher sur desktop */
    }
}

/* === INTERACTIVE TABS (V9.1) === */
.tabs-container {
    display: flex;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .tabs-container {
        flex-direction: column;
    }
}

.tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.tab-btn {
    background: transparent;
    border: none;
    text-align: left;
    padding: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-text);
    cursor: pointer;
    border-left: 4px solid transparent;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: rgba(0,0,0,0.05);
}

.tab-btn.active {
    border-left-color: var(--color-primary);
    background: rgba(200, 16, 46, 0.05);
    color: var(--color-primary);
}

.tabs-content-wrapper {
    flex: 1;
    position: relative;
    min-height: 300px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

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

.tab-card {
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
}

.tab-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.tab-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.tab-list li {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

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

/* Remove old carousel styles if needed, or keep for fallback */

/* === RESPONSIVE FIXES V10 === */

/* Mobile Typography Scaling */
@media (max-width: 768px) {
    html { font-size: 14px; }
    h1, .hero-title { font-size: 2.5rem !important; }
    h2, .section-title { font-size: 2rem !important; }
    .hero-subtitle { font-size: 1.1rem !important; }
}

/* Better Stacking for Hero Section */
@media (max-width: 1024px) {
    .adaptive-grid {
        grid-template-columns: 1fr !important;
    }
    
    .hero-content {
        padding: 2rem !important;
        order: 2;
    }
    
    .bg-video, .bg-cover-column {
        height: 300px !important;
        min-height: 300px !important;
        order: 1;
    }
}

/* Services Grid Stacking */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Tabs Navigation Mobile Scroll */
@media (max-width: 768px) {
    .tabs-nav {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem !important;
    }
    
    .tab-btn {
        flex: 0 0 auto !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }
}

/* Team Section Mobile */
@media (max-width: 768px) {
    .team-content {
        padding: 1.5rem !important;
    }
    
    .services-grid .bg-muted {
        margin-bottom: 1rem;
    }
}

/* Footer Mobile Stacking */
@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
