/*
Theme Name: BlackCar Services
Theme URI: https://blackcarservices.fr
Author: BlackCar Services
Author URI: https://blackcarservices.fr
Description: Thème WordPress premium pour service de transport privé avec chauffeur. 100% éditable via Gutenberg.
Version: 2.7.1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blackcar-services
Tags: transport, chauffeur, vtc, luxe, block-patterns, full-site-editing, gutenberg
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    --bc-black: #0a0a0a;
    --bc-black-soft: #111111;
    --bc-gold: #c9a84c;
    --bc-gold-light: #d4b85d;
    --bc-gold-dark: #b8973b;
    --bc-gray-dark: #1a1a1a;
    --bc-gray: #666666;
    --bc-gray-light: #f5f5f5;
    --bc-white: #ffffff;
    
    --bc-font-heading: 'Playfair Display', Georgia, serif;
    --bc-font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --bc-spacing-xs: 0.5rem;
    --bc-spacing-sm: 1rem;
    --bc-spacing-md: 2rem;
    --bc-spacing-lg: 4rem;
    --bc-spacing-xl: 6rem;
    
    --bc-container: 1200px;
    --bc-container-narrow: 800px;
    --bc-container-wide: 1400px;
    
    --bc-transition: 0.3s ease;
    --bc-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --bc-shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.3);
    --bc-radius: 8px;
    
    --bc-header-height: 90px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--bc-font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--bc-gray-dark);
    background-color: var(--bc-white);
}

/* Masquer le titre de page généré par WordPress sur la page d'accueil */
body.home .entry-title,
body.home .page-title,
body.home .wp-block-post-title,
body.page-template-default.home h1.wp-block-post-title,
.home #main-content > header,
.home #main-content > .entry-header,
/* Masquer aussi sur les pages qui commencent par un hero/cover */
#main-content > .entry-header:first-child,
#main-content > header.entry-header:first-child,
.page .entry-header {
    display: none !important;
}

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

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

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.wp-block-heading {
    font-family: var(--bc-font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--bc-black);
}

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

/* ==========================================================================
   Layout
   ========================================================================== */

.bc-container {
    width: 100%;
    max-width: var(--bc-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    transition: all var(--bc-transition);
}

.site-header.scrolled {
    background-color: rgba(10, 10, 10, 0.98);
    box-shadow: var(--bc-shadow);
}

/* Header transparent uniquement sur la page d'accueil avec hero */
body.home .site-header:not(.scrolled) {
    background-color: transparent;
    backdrop-filter: none;
}

/* Compenser le header fixe pour le contenu principal */
#main-content {
    /* Pas de padding-top ici car le hero prend tout l'écran */
}

/* Pour les pages sans hero (qui commencent par un header de page) */
#main-content > .bc-page-header:first-child,
#main-content > .wp-block-group.bc-page-header:first-child {
    padding-top: calc(var(--bc-header-height) + 4rem);
}

/* Pour les pages normales sans hero ni page-header */
#main-content > *:first-child:not(.bc-hero):not(.bc-page-header):not(.wp-block-cover) {
    margin-top: var(--bc-header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--bc-header-height);
    max-width: var(--bc-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-logo {
    font-family: var(--bc-font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bc-white);
    flex-shrink: 0;
}

.site-logo span {
    color: var(--bc-gold);
}

/* Navigation principale dans le header */
.header-inner > nav,
.header-inner > .menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu,
.header-inner nav ul {
    display: flex;
    align-items: center;
    gap: var(--bc-spacing-md);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a,
.header-inner nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--bc-white);
    padding: var(--bc-spacing-xs) 0;
    position: relative;
    text-decoration: none;
}

.nav-menu a::after,
.header-inner nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--bc-gold);
    transition: width var(--bc-transition);
}

.nav-menu a:hover::after,
.header-inner nav a:hover::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: var(--bc-spacing-md);
}

.header-phone {
    display: flex;
    align-items: center;
    gap: var(--bc-spacing-xs);
    color: var(--bc-white);
    font-weight: 600;
}

.header-phone:hover {
    color: var(--bc-gold);
}

.header-phone svg {
    width: 20px;
    height: 20px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--bc-white);
    transition: all var(--bc-transition);
}

/* Mobile nav - masqué par défaut sur desktop */
.mobile-nav {
    display: none !important;
}

.mobile-nav-overlay {
    display: none !important;
}

/* ==========================================================================
   Mobile Navigation Styles
   ========================================================================== */

@media (max-width: 768px) {
    /* Overlay sombre */
    .mobile-nav-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.8) !important;
        z-index: 998 !important;
        display: none !important;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-nav-overlay.active {
        display: block !important;
        opacity: 1;
    }
    
    /* Menu mobile - panneau plein écran */
    .mobile-nav {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100% - 70px) !important;
        background-color: #0a0a0a !important;
        z-index: 999 !important;
        display: none !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-nav.active {
        display: flex !important;
    }
    
    /* Liens du menu - FORCER LE STYLE */
    .mobile-nav a,
    .mobile-nav .mobile-nav-link,
    .mobile-nav-link {
        display: block !important;
        padding: 18px 24px !important;
        color: #ffffff !important;
        font-size: 18px !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
        background-color: #0a0a0a !important;
        list-style: none !important;
        margin: 0 !important;
    }
    
    .mobile-nav a:hover,
    .mobile-nav a:active,
    .mobile-nav-link:hover,
    .mobile-nav-link:active {
        background-color: #1a1a1a !important;
        color: #c9a84c !important;
    }
    
    /* Supprimer tous les bullets et styles de liste */
    .mobile-nav,
    .mobile-nav ul,
    .mobile-nav li,
    .mobile-nav-menu,
    .mobile-nav-menu li {
        list-style: none !important;
        list-style-type: none !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    .mobile-nav li::before,
    .mobile-nav-menu li::before {
        content: none !important;
        display: none !important;
    }
    
    /* Footer du menu mobile */
    .mobile-nav-footer {
        margin-top: auto !important;
        padding: 24px !important;
        background-color: #0a0a0a !important;
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
    
    .mobile-nav-phone {
        display: block !important;
        padding: 16px !important;
        margin-bottom: 16px !important;
        color: #ffffff !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        text-align: center !important;
        text-decoration: none !important;
        background-color: #1a1a1a !important;
        border-radius: 4px !important;
        border-bottom: none !important;
    }
    
    .mobile-nav-btn {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 16px 24px !important;
        border-bottom: none !important;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.bc-btn,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--bc-spacing-xs);
    padding: 1rem 2rem;
    font-family: var(--bc-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all var(--bc-transition);
    text-decoration: none;
}

.bc-btn-primary,
.wp-block-button.is-style-fill .wp-block-button__link,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
    background-color: var(--bc-gold);
    color: var(--bc-black);
}

.bc-btn-primary:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
    background-color: var(--bc-gold-light);
    box-shadow: var(--bc-shadow-gold);
    transform: translateY(-2px);
}

.bc-btn-secondary {
    background-color: transparent;
    color: var(--bc-white);
    border: 2px solid var(--bc-white);
}

.bc-btn-secondary:hover {
    background-color: var(--bc-white);
    color: var(--bc-black);
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    color: var(--bc-gold);
    border: 2px solid var(--bc-gold);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--bc-gold);
    color: var(--bc-black);
}

/* ==========================================================================
   Block Patterns Styles
   ========================================================================== */

/* Hero Section - Compatible avec wp-block-cover */
.bc-hero,
.wp-block-cover.bc-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bc-black);
    overflow: hidden;
    /* Compenser le header fixe */
    padding-top: var(--bc-header-height);
}

/* Le contenu intérieur du Cover doit être centré verticalement */
.bc-hero .wp-block-cover__inner-container,
.wp-block-cover.bc-hero .wp-block-cover__inner-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - var(--bc-header-height));
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* Assurer que le hero prend bien tout l'écran */
.bc-hero.alignfull {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
}

.bc-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bc-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bc-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.5) 100%);
}

.bc-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: var(--bc-spacing-xl) 0;
}

.bc-hero .bc-subtitle {
    color: var(--bc-gold);
}

.bc-hero h1 {
    color: var(--bc-white);
    margin-bottom: var(--bc-spacing-md);
}

.bc-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.25rem;
    margin-bottom: var(--bc-spacing-lg);
}

/* Subtitle */
.bc-subtitle {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--bc-gold);
    margin-bottom: var(--bc-spacing-xs);
}

.bc-subtitle.has-text-align-center,
p.bc-subtitle.has-text-align-center {
    text-align: center !important;
}

/* Section Styles */
.bc-section {
    padding: var(--bc-spacing-xl) 0;
}

.bc-section-dark {
    background-color: var(--bc-black);
    color: var(--bc-white);
}

.bc-section-dark h2,
.bc-section-dark h3 {
    color: var(--bc-white);
}

.bc-section-gray {
    background-color: var(--bc-gray-light);
}

.bc-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--bc-spacing-lg);
}

/* Service Cards */
.bc-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--bc-spacing-md);
}

.bc-service-card {
    background-color: var(--bc-white);
    border-radius: var(--bc-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all var(--bc-transition);
}

.bc-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--bc-shadow);
}

.bc-service-card-image {
    height: 200px;
    overflow: hidden;
}

.bc-service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bc-service-card:hover .bc-service-card-image img {
    transform: scale(1.1);
}

.bc-service-card-content {
    padding: var(--bc-spacing-md);
}

.bc-service-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--bc-spacing-xs);
}

.bc-service-card p {
    color: var(--bc-gray);
    font-size: 0.9375rem;
    margin-bottom: var(--bc-spacing-sm);
}

.bc-service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bc-gold);
}

.bc-service-card-link:hover {
    gap: 0.75rem;
}

/* Reassurance Grid */
.bc-reassurance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--bc-spacing-md);
}

.bc-reassurance-item {
    text-align: center;
    padding: var(--bc-spacing-md);
}

.bc-reassurance-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(201, 168, 76, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--bc-spacing-sm);
    font-size: 2rem;
    transition: all var(--bc-transition);
}

.bc-reassurance-item:hover .bc-reassurance-icon {
    background-color: var(--bc-gold);
}

.bc-reassurance-item h3 {
    font-size: 1.125rem;
    margin-bottom: var(--bc-spacing-xs);
}

.bc-reassurance-item p {
    font-size: 0.9375rem;
    color: var(--bc-gray);
}

.bc-section-dark .bc-reassurance-item p {
    color: rgba(255,255,255,0.7);
}

/* CTA Section */
.bc-cta {
    position: relative;
    padding: var(--bc-spacing-xl) 0;
    background-color: var(--bc-black);
    text-align: center;
}

.bc-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bc-gold) 0%, transparent 50%);
    opacity: 0.1;
}

.bc-cta-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.bc-cta h2 {
    color: var(--bc-white);
}

.bc-cta p {
    color: rgba(255,255,255,0.8);
    font-size: 1.125rem;
    margin-bottom: var(--bc-spacing-md);
}

/* Contact Grid */
.bc-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--bc-spacing-xl);
}

.bc-contact-item {
    display: flex;
    gap: var(--bc-spacing-sm);
    margin-bottom: var(--bc-spacing-md);
    padding-bottom: var(--bc-spacing-md);
    border-bottom: 1px solid var(--bc-gray-light);
}

.bc-contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--bc-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.bc-contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.bc-contact-item a {
    color: var(--bc-gold);
    font-weight: 600;
}

/* Page Header */
.bc-page-header {
    padding: calc(var(--bc-header-height) + var(--bc-spacing-xl)) 0 var(--bc-spacing-xl);
    background-color: var(--bc-black);
    text-align: center;
}

.bc-page-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--bc-gold);
    margin: var(--bc-spacing-md) auto 0;
}

.bc-page-header h1 {
    color: var(--bc-white);
    margin-bottom: var(--bc-spacing-xs);
}

.bc-page-header p {
    color: rgba(255,255,255,0.7);
    font-size: 1.125rem;
}

/* Forms */
.bc-form {
    background-color: var(--bc-gray-light);
    border-radius: var(--bc-radius);
    padding: var(--bc-spacing-lg);
}

.bc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--bc-spacing-sm);
}

.bc-form-group {
    margin-bottom: var(--bc-spacing-sm);
}

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

.bc-form-group input,
.bc-form-group textarea,
.bc-form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: var(--bc-font-body);
    border: 2px solid var(--bc-white);
    border-radius: 4px;
    background-color: var(--bc-white);
    transition: border-color var(--bc-transition);
}

.bc-form-group input:focus,
.bc-form-group textarea:focus,
.bc-form-group select:focus {
    outline: none;
    border-color: var(--bc-gold);
}

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

/* Contact Form 7 Compatibility */
.wpcf7 input:not([type="submit"]),
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid var(--bc-gray-light);
    border-radius: 4px;
    transition: border-color var(--bc-transition);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--bc-gold);
}

.wpcf7 input[type="submit"] {
    display: inline-flex;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--bc-gold);
    color: var(--bc-black);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--bc-transition);
}

.wpcf7 input[type="submit"]:hover {
    background-color: var(--bc-gold-light);
    box-shadow: var(--bc-shadow-gold);
}

/* Custom Contact Form Styles */
.bc-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bc-contact-form .bc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.bc-contact-form .bc-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bc-contact-form label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bc-gray-dark);
}

.bc-contact-form input,
.bc-contact-form textarea,
.bc-contact-form select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--bc-font-body);
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    background-color: var(--bc-white);
    transition: border-color var(--bc-transition), box-shadow var(--bc-transition);
}

.bc-contact-form input:focus,
.bc-contact-form textarea:focus,
.bc-contact-form select:focus {
    outline: none;
    border-color: var(--bc-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.bc-contact-form input::placeholder,
.bc-contact-form textarea::placeholder {
    color: #999;
}

.bc-contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.bc-contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.bc-contact-form button[type="submit"] {
    margin-top: 0.5rem;
}

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

/* Check List */
.bc-check-list {
    list-style: none;
    padding: 0;
}

.bc-check-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--bc-spacing-sm);
    margin-bottom: var(--bc-spacing-sm);
}

.bc-check-list li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--bc-gold);
    color: var(--bc-black);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Legal Content */
.bc-legal-content h2 {
    font-size: 1.5rem;
    margin-top: var(--bc-spacing-lg);
    padding-top: var(--bc-spacing-md);
    border-top: 1px solid var(--bc-gray-light);
}

.bc-legal-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: var(--bc-black);
    color: var(--bc-white);
    padding-top: var(--bc-spacing-xl);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--bc-spacing-lg);
    padding-bottom: var(--bc-spacing-lg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .site-logo {
    margin-bottom: var(--bc-spacing-sm);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
}

.footer-title {
    font-family: var(--bc-font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--bc-spacing-md);
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: var(--bc-spacing-xs);
}

.footer-menu a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--bc-spacing-xs);
    margin-bottom: var(--bc-spacing-sm);
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--bc-spacing-md) 0;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

.footer-legal {
    display: flex;
    gap: var(--bc-spacing-md);
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
}

.footer-legal a:hover {
    color: var(--bc-gold);
}

/* ==========================================================================
   WhatsApp Float
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--bc-transition);
}

.whatsapp-float a:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .bc-reassurance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --bc-header-height: 70px;
    }
    
    /* Header mobile */
    .header-inner > nav,
    .header-inner .nav-menu,
    .header-inner > .header-cta {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Hero mobile */
    .bc-hero .wp-block-cover__inner-container,
    .wp-block-cover.bc-hero .wp-block-cover__inner-container {
        padding: 1rem;
    }
    
    .bc-hero h1 {
        font-size: 2rem !important;
    }
    
    .bc-hero p {
        font-size: 1rem;
    }
    
    .bc-hero .wp-block-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .bc-hero .wp-block-button {
        width: 100%;
    }
    
    .bc-hero .wp-block-button__link {
        width: 100%;
        justify-content: center;
    }
    
    /* Sections mobile */
    .bc-section {
        padding: 3rem 0;
    }
    
    .bc-section-header {
        padding: 0 1rem;
    }
    
    .bc-services-grid {
        grid-template-columns: 1fr !important;
        padding: 0 1rem;
    }
    
    .bc-reassurance-grid {
        grid-template-columns: 1fr;
    }
    
    .bc-contact-grid {
        grid-template-columns: 1fr;
    }
    
    .bc-form-row {
        grid-template-columns: 1fr;
    }
    
    /* Columns mobile */
    .wp-block-columns {
        flex-direction: column !important;
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
    }
    
    /* Buttons mobile */
    .wp-block-buttons {
        flex-direction: column;
    }
    
    .wp-block-button {
        width: 100%;
    }
    
    .wp-block-button__link {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* Page header mobile */
    .bc-page-header {
        padding-top: calc(var(--bc-header-height) + 2rem) !important;
        padding-bottom: 2rem !important;
    }
    
    .bc-page-header h1 {
        font-size: 1.75rem !important;
    }
    
    /* Footer mobile */
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-contact {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--bc-spacing-sm);
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* WhatsApp mobile */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float a {
        width: 55px;
        height: 55px;
    }
    
    /* Typography mobile */
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    
    /* Legal pages mobile */
    .bc-legal-content {
        padding: 0 1rem;
    }
    
    .bc-legal-content h2 {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Gutenberg Alignments
   ========================================================================== */

.alignwide {
    max-width: var(--bc-container-wide);
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* ==========================================================================
   Single Article Page - Global Styles
   ========================================================================== */

/* Force le contenu des articles à être centré et limité */
body.single-post .wp-site-blocks {
    padding-top: 0;
}

body.single-post .wp-site-blocks > * {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

body.single-post .wp-site-blocks > header,
body.single-post .wp-site-blocks > footer,
body.single-post #site-header,
body.single-post #site-footer {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* Style du contenu article */
body.single-post .entry-content,
body.single-post .wp-site-blocks > main,
body.single-post article {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1.5rem 4rem;
}

body.single-post h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--bc-black);
}

body.single-post h2 {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--bc-black);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bc-gold);
}

body.single-post h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--bc-black);
    margin: 2rem 0 0.75rem;
}

body.single-post p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
}

body.single-post strong {
    color: var(--bc-black);
}

body.single-post a:not(.bc-btn) {
    color: var(--bc-gold);
    text-decoration: underline;
    transition: color 0.3s ease;
}

body.single-post a:not(.bc-btn):hover {
    color: #b8973f;
}

/* Style pour les encarts/citations */
body.single-post p[style*="background-color"],
body.single-post blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 4px solid var(--bc-gold);
    background-color: #fff8e7 !important;
    border-radius: 0 4px 4px 0;
}

body.single-post blockquote p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Article Cards (Blog/Actualités)
   ========================================================================== */

.bc-article-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.bc-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.bc-article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bc-article-card:hover img {
    transform: scale(1.05);
}

.bc-article-card .wp-block-post-title a {
    color: var(--bc-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.bc-article-card .wp-block-post-title a:hover {
    color: var(--bc-gold);
}

/* Query pagination styles */
.wp-block-query-pagination {
    gap: 0.5rem;
}

.wp-block-query-pagination-numbers .page-numbers,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
    padding: 0.75rem 1rem;
    background-color: var(--bc-white);
    border: 1px solid var(--bc-gray);
    border-radius: 4px;
    color: var(--bc-black);
    text-decoration: none;
    transition: all 0.3s ease;
}

.wp-block-query-pagination-numbers .page-numbers:hover,
.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover,
.wp-block-query-pagination-numbers .page-numbers.current {
    background-color: var(--bc-gold);
    border-color: var(--bc-gold);
    color: var(--bc-black);
}

/* ==========================================================================
   Single Article Page
   ========================================================================== */

.bc-single-article {
    background-color: var(--bc-white);
}

/* Article Header */
.bc-article-header {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.bc-article-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bc-article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bc-article-hero-no-image {
    background: linear-gradient(135deg, var(--bc-black) 0%, #2a2a2a 100%);
}

.bc-article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.bc-article-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Article Meta */
.bc-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bc-article-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background-color: var(--bc-gold);
    color: var(--bc-black);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.bc-article-category:hover {
    background-color: #b8973f;
    color: var(--bc-black);
}

.bc-article-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.bc-article-date svg {
    opacity: 0.7;
}

/* Article Title */
.bc-article-title {
    color: var(--bc-white);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Article Container */
.bc-article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

/* Article Content */
.bc-article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
}

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

.bc-article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bc-black);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bc-gold);
}

.bc-article-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--bc-black);
    margin: 2rem 0 0.75rem;
}

.bc-article-content strong {
    color: var(--bc-black);
}

.bc-article-content a {
    color: var(--bc-gold);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.bc-article-content a:hover {
    color: #b8973f;
}

.bc-article-content ul,
.bc-article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.bc-article-content li {
    margin-bottom: 0.5rem;
}

.bc-article-content blockquote,
.bc-article-content p[style*="background-color"] {
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 4px solid var(--bc-gold);
    background-color: #fff8e7;
    border-radius: 0 4px 4px 0;
}

.bc-article-content blockquote p:last-child,
.bc-article-content p[style*="background-color"]:last-child {
    margin-bottom: 0;
}

.bc-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 2rem 0;
}

/* Article Navigation */
.bc-article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.bc-nav-prev,
.bc-nav-next {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background-color: #f9f9f9;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bc-nav-prev:hover,
.bc-nav-next:hover {
    background-color: var(--bc-black);
}

.bc-nav-prev:hover .bc-nav-label,
.bc-nav-prev:hover .bc-nav-title,
.bc-nav-next:hover .bc-nav-label,
.bc-nav-next:hover .bc-nav-title {
    color: var(--bc-white);
}

.bc-nav-next {
    text-align: right;
}

.bc-nav-label {
    font-size: 0.8125rem;
    color: var(--bc-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
    transition: color 0.3s ease;
}

.bc-nav-title {
    font-size: 1rem;
    color: var(--bc-black);
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bc-nav-placeholder {
    display: block;
}

/* Article Back Button */
.bc-article-back {
    text-align: center;
    margin-top: 2.5rem;
}

.bc-btn-outline {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: transparent;
    color: var(--bc-black);
    border: 2px solid var(--bc-black);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.bc-btn-outline:hover {
    background-color: var(--bc-black);
    color: var(--bc-white);
}

/* Responsive Single Article */
@media (max-width: 768px) {
    .bc-article-header {
        min-height: 320px;
    }
    
    .bc-article-title {
        font-size: 1.75rem;
    }
    
    .bc-article-header-content {
        padding: 2rem 1rem;
    }
    
    .bc-article-container {
        padding: 2rem 1rem 3rem;
    }
    
    .bc-article-content {
        font-size: 1rem;
    }
    
    .bc-article-content h2 {
        font-size: 1.5rem;
    }
    
    .bc-article-navigation {
        grid-template-columns: 1fr;
    }
    
    .bc-nav-next {
        text-align: left;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-gold { color: var(--bc-gold); }
.text-white { color: var(--bc-white); }
.bg-black { background-color: var(--bc-black); }
.bg-gray { background-color: var(--bc-gray-light); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.py-section { padding-top: var(--bc-spacing-xl); padding-bottom: var(--bc-spacing-xl); }

/* ==========================================================================
   Form Validation & Autocomplete
   ========================================================================== */

/* Autocomplete Wrapper */
.bc-autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.bc-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bc-white);
    border: 1px solid var(--bc-gray);
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.bc-autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.9375rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.bc-autocomplete-item:last-child {
    border-bottom: none;
}

.bc-autocomplete-item:hover,
.bc-autocomplete-item.active {
    background-color: #f8f8f8;
}

.bc-autocomplete-item.active {
    background-color: var(--bc-gold);
    color: var(--bc-black);
}

/* Field Validation States */
.bc-contact-form input,
.bc-contact-form select,
.bc-contact-form textarea,
.bc-devis-form input,
.bc-devis-form select,
.bc-devis-form textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bc-field-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

.bc-field-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.bc-field-error-message {
    display: block;
    color: #dc3545;
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    padding-left: 0.25rem;
}

/* Form Messages */
.bc-form-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    animation: bcSlideIn 0.3s ease;
}

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

.bc-form-message-hide {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.bc-form-message-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: bold;
    flex-shrink: 0;
}

.bc-form-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bc-form-message-success .bc-form-message-icon {
    background-color: #28a745;
    color: white;
}

.bc-form-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.bc-form-message-error .bc-form-message-icon {
    background-color: #dc3545;
    color: white;
}

/* Submit Button Loading State */
.bc-contact-form button[disabled],
.bc-devis-form button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Required Field Indicator */
.bc-form-group label[for] {
    position: relative;
}

/* Focus states enhancement */
.bc-contact-form input:focus,
.bc-contact-form select:focus,
.bc-contact-form textarea:focus,
.bc-devis-form input:focus,
.bc-devis-form select:focus,
.bc-devis-form textarea:focus {
    outline: none;
    border-color: var(--bc-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

/* Spinner */
.bc-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bcSpin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes bcSpin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Success Modal
   ========================================================================== */

.bc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.bc-modal.active {
    display: flex;
}

.bc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: bcFadeIn 0.3s ease;
}

@keyframes bcFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bc-modal-content {
    position: relative;
    background: var(--bc-white);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: bcSlideUp 0.4s ease;
}

@keyframes bcSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bc-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: bcPulse 0.6s ease;
}

@keyframes bcPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.bc-modal-icon svg {
    width: 40px;
    height: 40px;
}

.bc-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bc-black);
    margin: 0 0 1rem;
}

.bc-modal-message {
    font-size: 1.0625rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.bc-modal-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.bc-modal-details p {
    margin: 0.5rem 0;
    font-size: 0.9375rem;
    color: #333;
}

.bc-modal-details p:first-child {
    margin-top: 0;
}

.bc-modal-details p:last-child {
    margin-bottom: 0;
}

.bc-modal-details a {
    color: var(--bc-gold);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bc-modal-details a:hover {
    color: #b8973f;
    text-decoration: underline;
}

.bc-modal-close {
    min-width: 180px;
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Mobile Modal */
@media (max-width: 480px) {
    .bc-modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .bc-modal-title {
        font-size: 1.5rem;
    }
    
    .bc-modal-icon {
        width: 64px;
        height: 64px;
    }
    
    .bc-modal-icon svg {
        width: 32px;
        height: 32px;
    }
}
