/*
Theme Name: JourDeCharge Premium V2 Optimized
Theme URI: https://jourdecharge.fr
Author: Alexandre H.
Description: Thème premium V2 optimisé - Icône recherche, voiture repositionnée, carrousel compact
Version: 2.1.0
*/

:root {
    --primary-dark: #1a1a1a;
    --primary-light: #ffffff;
    --accent-gold: #D4AF37;
    --accent-blue: #2B5F9E;
    --text-gray: #4a4a4a;
    --text-light: #6b6b6b;
    --border-subtle: #e5e5e5;
    --background-warm: #fafaf8;
    --background-light: #f5f5f3;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-light);
    color: var(--primary-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    /* Offset page content for the fixed header (value set in JS) */
    padding-top: var(--site-header-offset, 0px);
}

/* Prevent any horizontal overflow on small screens */
html,
body {
    overflow-x: hidden;
}

/* Prevent background scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Charging Progress Bar */
.charging-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(212, 175, 55, 0.1);
    z-index: 9999;
}

.charging-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-blue) 100%);
    width: 0%;
    transition: width 0.3s ease-out;
}

.charging-indicator {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
    animation: pulse-charge 2s ease-in-out infinite;
}

@keyframes pulse-charge {
    0%, 100% {
        box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
        transform: translateY(-50%) scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.9);
        transform: translateY(-50%) scale(1.2);
    }
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.4s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0; /* allow flex children to shrink */
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1001;
    min-width: 0; /* required for ellipsis in flex */
}

.logo-text {
    min-width: 0; /* required for ellipsis in flex */
}

.main-navigation {
    flex-shrink: 0; /* keep burger/search visible */
}

.site-logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    font-size: 2rem;
}

.logo-text h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
    margin: 0;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

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

/* Mega Menu */
.mega-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.mega-menu-item {
    position: relative;
}

.mega-menu-item > a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-gray);
    text-decoration: none;
    padding: 1rem 0;
    display: block;
    transition: color 0.3s ease;
}

.mega-menu-item > a:hover {
    color: var(--accent-gold);
}

/* Mega Dropdown */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 1rem;
    z-index: 1000;
}

.mega-menu-item:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    margin-top: 0.5rem;
}

.mega-dropdown-content {
    padding: 2rem;
}

.mega-dropdown-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.mega-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 500px;
    overflow-y: auto;
}

.mega-posts-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.mega-posts-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.mega-posts-list a {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.mega-posts-list .mega-thumb {
    flex: 0 0 auto;
}

/*
 * Mega menu: ensure the thumbnail badge is positioned on top of the thumbnail.
 * We force an explicit sizing + positioning context for the thumb wrapper,
 * and we re-assert absolute positioning for the badge.
 */
.mega-posts-list .jdc-thumb-wrap.mega-thumb {
    position: relative !important;
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 0;
}

.mega-posts-list a:hover {
    color: var(--accent-blue);
}

/* Only target the post thumbnail image (avoid affecting badge icons) */
.mega-posts-list .mega-thumb > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    display: block;
}

/* Make the badge discreet inside the mega menu thumbnail */
.mega-posts-list .jdc-post-badge {
    position: absolute !important;
    right: 6px;
    bottom: 6px;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.mega-posts-list .jdc-post-badge__icon {
    width: 12px;
    height: 12px;
}

.mega-posts-list strong {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.mega-posts-list span {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Search Toggle (Icon) */
.search-toggle-wrapper {
    position: relative;
}

.search-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--background-warm);
    border: 2px solid var(--border-subtle);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: scale(1.1);
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-search {
    display: flex;
    gap: 0.5rem;
}

.header-search input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.header-search input[type="search"]:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.header-search button {
    padding: 0.75rem 1.5rem;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-search button:hover {
    background: var(--accent-gold);
}

/* Electric Car Track - Sous le menu */
.electric-car-track {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 999;
    pointer-events: none;
    overflow: hidden;
}

.electric-car-moving {
    font-size: 2.5rem;
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    animation: drive-car 6s ease-in-out infinite;
}

@keyframes drive-car {
    0% {
        left: -60px;
    }
    50% {
        left: calc(50% - 30px);
    }
    100% {
        left: -60px;
    }
}

/* Featured Carousel - Réduit */
.featured-carousel {
    margin-top: 140px;
    padding: 2.5rem 2.5rem 3rem;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1e4d7e 100%);
    color: var(--primary-light);
    position: relative;
    overflow: hidden;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.carousel-slides {
    position: relative;
    min-height: 320px;
}

.carousel-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    opacity: 1;
}

.slide-image {
    display: block;
    text-decoration: none;
}

.slide-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.slide-image:hover img {
    transform: scale(1.02);
}

.slide-content {
    z-index: 2;
}

.slide-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-decoration: none;
    color: var(--primary-light);
    transition: all 0.3s ease;
}

.slide-category:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.slide-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.slide-content h2 a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.slide-content h2 a:hover {
    opacity: 0.9;
}

.slide-content p {
    font-size: 1.05rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.slide-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--accent-gold);
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.slide-button:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.carousel-prev,
.carousel-next {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.carousel-dots {
    display: flex;
    gap: 0.75rem;
}

.carousel-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent-gold);
    transform: scale(1.2);
}

/* Main Content */
.site-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 4rem 2.5rem;
}

/* Article Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.article-card {
    background: var(--primary-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    position: relative;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.article-thumbnail {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Thumbnail badge (video / actus) */
.jdc-thumb-wrap {
    position: relative;
    display: block;
}

.jdc-post-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    z-index: 2;
}

.jdc-post-badge__icon {
    width: 18px;
    height: 18px;
    display: block;
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .jdc-post-badge {
        right: 10px;
        bottom: 10px;
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }
    .jdc-post-badge__icon {
        width: 16px;
        height: 16px;
    }
}

.article-content {
    padding: 1.75rem;
}

.article-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.article-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--accent-blue);
}

.article-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: var(--accent-blue);
    color: var(--primary-light);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    background: var(--accent-gold);
    transform: translateX(4px);
}

/* Single Article */
.single-article {
    max-width: 920px;
    margin: 6rem auto 4rem;
    padding: 0 2.5rem;
}

.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.article-header .article-category {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.article-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.article-header .article-meta {
    justify-content: center;
    border: none;
    padding: 0;
}

.featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.article-body h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    color: var(--primary-dark);
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1.25rem;
    color: var(--primary-dark);
}

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

.article-body a {
    color: var(--accent-blue);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-body a:hover {
    color: var(--accent-gold);
}

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

.article-body blockquote {
    border-left: 4px solid var(--accent-gold);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
    font-size: 1.25rem;
}

.article-body ul, .article-body ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

/* Comments */
.comments-area {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--background-warm);
    border-radius: 12px;
}

.comments-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 3rem;
}

.comment {
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.comment-body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
}

.comment-author {
    grid-column: 2;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.comment-author img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    grid-column: 1;
    grid-row: 1 / 4;
}

.comment-meta {
    grid-column: 2;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.comment-content {
    grid-column: 2;
    line-height: 1.7;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background: var(--accent-gold);
}

#respond {
    margin-top: 3rem;
    padding: 3rem;
    background: white;
    border-radius: 12px;
}

#reply-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.comment-form p {
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

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

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 2.5rem 2rem;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--primary-light);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', Georgia, serif;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-section p {
    line-height: 1.7;
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.footer-email:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.footer-bottom {
    max-width: 1320px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: white;
}

.copyright {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 4rem 0 2rem;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--accent-blue);
    color: var(--primary-light);
    border-color: var(--accent-blue);
}

.pagination .current {
    background: var(--accent-gold);
    color: var(--primary-light);
    border-color: var(--accent-gold);
}

/* Responsive */
@media (max-width: 1024px) {
    .mega-dropdown {
        min-width: 350px;
    }
}

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

    /* Keep logo + burger on one line without overflow */
    .site-logo {
        flex: 1 1 auto;
    }

    .logo-text h1 {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .logo-text h1 {
        font-size: 1.25rem;
    }
    
    .logo-text p {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(100vw, 400px);
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        transition: right 0.4s ease;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .nav-wrapper.active {
        right: 0;
    }
    
    .mega-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .mega-menu-item {
        width: 100%;
        border-bottom: 1px solid var(--border-subtle);
    }
    
    .mega-menu-item > a {
        padding: 1.5rem 0;
        font-size: 1.1rem;
    }
    
    .mega-dropdown {
        position: static;
        transform: none;
        min-width: 100%;
        box-shadow: none;
        border-radius: 0;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    
    .mega-menu-item.mobile-open .mega-dropdown {
        max-height: 800px;
        opacity: 1;
        visibility: visible;
    }
    
    .mega-dropdown-content {
        padding: 1rem 0;
    }
    
    .mega-posts-list {
        max-height: none;
    }
    
    .search-toggle-wrapper {
        width: 100%;
        margin-top: 2rem;
    }
    
    .search-toggle {
        width: 100%;
        border-radius: 8px;
    }
    
    .search-dropdown {
        position: static;
        min-width: 100%;
        margin-top: 1rem;
    }
    
    .header-search {
        flex-direction: column;
    }
    
    .header-search button {
        width: 100%;
    }
    
    .electric-car-track {
        top: 70px;
        height: 50px;
    }
    
    .electric-car-moving {
        font-size: 2rem;
    }
    
    .featured-carousel {
        margin-top: 120px;
        padding: 2rem 1.5rem;
    }
    
    .carousel-slide.active {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .slide-image img {
        height: 250px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .carousel-slides {
        min-height: auto;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .single-article {
        padding: 0 1.5rem;
        margin-top: 5rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .comments-area {
        padding: 2rem 1.5rem;
    }
    
    #respond {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
/* Electric Car Track - Positioned under menu */
.electric-car-track {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    height: 60px;
    background: transparent;
    z-index: 999;
    pointer-events: none;
    overflow: hidden;
}

.electric-car-moving {
    font-size: 2rem;
    position: absolute;
    left: -60px;
    top: 15px;
    animation: drive-left-to-right 6s ease-in-out infinite;
}

@keyframes drive-left-to-right {
    0% {
        left: -60px;
    }
    50% {
        left: 40%;
    }
    100% {
        left: -60px;
    }
}

/* Featured Carousel - Reduced Size */
.featured-carousel {
    margin-top: 140px; /* 80px header + 60px car track */
    padding: 2rem 2.5rem 2.5rem; /* Réduit de 4rem à 2rem */
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1e4d7e 100%);
    color: var(--primary-light);
    position: relative;
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    min-height: 320px; /* Réduit de 400px à 320px */
}

.carousel-slide.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem; /* Réduit de 3rem à 2rem */
    align-items: center;
    opacity: 1;
}

.slide-image img {
    width: 100%;
    height: 320px; /* Réduit de 400px à 320px */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.slide-image:hover img {
    transform: scale(1.02);
}

.slide-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem; /* Réduit de 2.5rem à 2rem */
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.slide-content h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.slide-content h2 a:hover {
    color: var(--accent-gold);
}

.slide-content p {
    font-size: 1rem; /* Réduit de 1.125rem à 1rem */
    opacity: 0.95;
    margin-bottom: 1.5rem; /* Réduit de 2rem à 1.5rem */
    line-height: 1.6;
}

.slide-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.slide-category:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* Search Toggle - Just Icon */
.search-toggle-wrapper {
    position: relative;
}

.search-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.search-toggle:hover {
    transform: scale(1.1);
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    min-width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-search {
    display: flex;
    gap: 0.5rem;
}

.header-search input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-subtle);
    border-radius: 6px;
    font-size: 1rem;
}

.header-search input[type="search"]:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.header-search button {
    padding: 0.75rem 1.5rem;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.header-search button:hover {
    background: var(--accent-gold);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem; /* Réduit de 2rem à 1.5rem */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .electric-car-track {
        height: 50px;
    }
    
    .electric-car-moving {
        font-size: 1.5rem;
        top: 10px;
    }
    
    .featured-carousel {
        padding: 1.5rem 1.5rem 2rem;
        margin-top: 130px;
    }
    
    .carousel-slide.active {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .slide-image img {
        height: 220px;
    }
    
    .carousel-slides {
        min-height: auto;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .search-dropdown {
        min-width: 300px;
        right: -1rem;
    }
}

/* Electric Car Animation in Carousel */
.electric-car-animation {
    position: absolute;
    top: 2rem;
    font-size: 3rem;
    animation: drive-across-carousel 8s ease-in-out infinite;
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

@keyframes drive-across-carousel {
    0% {
        left: -80px;
    }
    50% {
        left: calc(100% - 60px);
    }
    100% {
        left: -80px;
    }
}

/* Footer Electric Car Charging Animation */
.footer-car-animation {
    position: relative;
    height: 80px;
    max-width: 1320px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.charging-station {
    font-size: 3rem;
    animation: pulse-charging 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

@keyframes pulse-charging {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
    }
    50% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.9));
    }
}

.footer-electric-car {
    font-size: 2.5rem;
    position: relative;
    animation: car-bounce 2s ease-in-out infinite;
}

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

.charging-cable {
    position: absolute;
    left: calc(50% - 1rem);
    top: 50%;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(255, 215, 0, 0.8) 0%, 
        rgba(212, 175, 55, 0.8) 50%, 
        rgba(255, 215, 0, 0.8) 100%);
    border-radius: 2px;
    animation: energy-flow 1.5s linear infinite;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

@keyframes energy-flow {
    0% {
        opacity: 0.3;
        transform: scaleX(0.5);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
    100% {
        opacity: 0.3;
        transform: scaleX(0.5);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .electric-car-animation {
        font-size: 2rem;
        top: 1rem;
    }
    
    .footer-car-animation {
        height: 60px;
        gap: 1rem;
    }
    
    .charging-station {
        font-size: 2rem;
    }
    
    .footer-electric-car {
        font-size: 1.8rem;
    }
    
    .charging-cable {
        width: 40px;
    }
}

/* Electric Car Track - Above Carousel in White Space */
.electric-car-track {
    position: relative;
    height: 80px;
    max-width: 1320px;
    margin: 80px auto 0; /* 80px = hauteur du header */
    background: white;
    overflow: hidden;
}

.electric-car-moving {
    font-size: 3rem;
    position: absolute;
    top: 20px;
    left: -80px;
    transform: scaleX(-1); /* Capot à droite */
    animation: car-left-to-right 8s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

@keyframes car-left-to-right {
    0% {
        left: -80px;
    }
    50% {
        left: calc(100% - 60px);
    }
    100% {
        left: -80px;
    }
}

/* Update Featured Carousel - No more top margin */
.featured-carousel {
    margin-top: 0; /* Pas de marge, suit directement la track */
    padding: 2rem 2.5rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1e4d7e 100%);
    color: var(--primary-light);
    position: relative;
    overflow: hidden;
}

/* Remove old animation from carousel */
.electric-car-animation {
    display: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .electric-car-track {
        height: 60px;
        margin-top: 70px;
    }
    
    .electric-car-moving {
        font-size: 2rem;
        top: 15px;
    }
}

/* Header Car Animation - Discrete & Under Menu */
.header-car-animation {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 0 2.5rem;
    background: transparent;
}

.charging-station-header {
    font-size: 1.5rem;
    position: absolute;
    right: 120px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
    animation: pulse-station 2s ease-in-out infinite;
}

@keyframes pulse-station {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.7));
    }
}

.mini-car {
    font-size: 1.5rem;
    position: absolute;
    left: 2.5rem;
    transform: scaleX(-1);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.mini-car.driving {
    animation: drive-to-station 12s ease-in-out forwards;
}

@keyframes drive-to-station {
    0% {
        left: 2.5rem;
    }
    80% {
        left: calc(100% - 180px);
    }
    100% {
        left: calc(100% - 180px);
    }
}

.replay-animation {
    position: absolute;
    right: 2.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent-gold);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
}

.replay-animation:hover {
    background: var(--accent-blue);
    transform: scale(1.05);
}

.replay-animation:active {
    transform: scale(0.95);
}

/* Hide old animations */
.electric-car-track,
.electric-car-moving,
.electric-car-animation {
    display: none !important;
}

/* Update carousel margin */
.featured-carousel {
    margin-top: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .header-car-animation {
        padding: 0 1.5rem;
        height: 35px;
    }
    
    .charging-station-header {
        font-size: 1.2rem;
        right: 80px;
    }
    
    .mini-car {
        font-size: 1.2rem;
        left: 1.5rem;
    }
    
    @keyframes drive-to-station {
        0% {
            left: 1.5rem;
        }
        80% {
            left: calc(100% - 130px);
        }
        100% {
            left: calc(100% - 130px);
        }
    }
    
    .replay-animation {
        right: 1.5rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* FIX V3.1 - Header Car Animation Corrections */
.header-car-animation {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    height: 35px; /* Réduit de 40px à 35px */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 0 2.5rem;
    background: white;
    overflow: hidden; /* Important pour ne pas déborder */
}

.charging-station-header {
    font-size: 1.3rem; /* Réduit de 1.5rem */
    position: absolute;
    right: 100px; /* Ajusté de 120px */
    top: 50%;
    transform: translateY(-50%);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
    animation: pulse-station 2s ease-in-out infinite;
    z-index: 2;
}

.mini-car {
    font-size: 1.3rem; /* Réduit de 1.5rem */
    position: absolute;
    right: calc(100% - 150px); /* Commence à droite sous les menus */
    top: 50%;
    transform: translateY(-50%) scaleX(-1);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    z-index: 1;
}

.mini-car.driving {
    animation: drive-to-station-right 12s ease-in-out forwards;
}

@keyframes drive-to-station-right {
    0% {
        right: calc(100% - 150px); /* Démarre sous les menus à droite */
    }
    80%, 100% {
        right: 150px; /* S'arrête à la borne */
    }
}

.replay-animation {
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.4rem 0.9rem;
    background: var(--accent-gold);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
}

.replay-animation:hover {
    background: var(--accent-blue);
    transform: translateY(-50%) scale(1.05);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .header-car-animation {
        padding: 0 1.5rem;
        height: 30px;
    }
    
    .charging-station-header {
        font-size: 1.1rem;
        right: 70px;
    }
    
    .mini-car {
        font-size: 1.1rem;
        right: calc(100% - 120px);
    }
    
    @keyframes drive-to-station-right {
        0% {
            right: calc(100% - 120px);
        }
        80%, 100% {
            right: 110px;
        }
    }
    
    .replay-animation {
        right: 1.5rem;
        padding: 0.3rem 0.7rem;
        font-size: 0.75rem;
    }
}

/* FIX - Carousel spacing */
.site-header {
    margin-bottom: 0 !important;
}

.featured-carousel {
    margin-top: 0 !important;
    padding-top: 2rem;
}
/* ===== ANIMATION VOITURE HEADER - VERSION CORRIGÉE ===== */

/* Container - Bande discrète sous le header */
.header-car-animation {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    height: 30px;
    padding: 0 2.5rem;
    background: transparent;
    overflow: visible;
    display: flex;
    align-items: center;
}

/* Borne de recharge - Position fixe à droite */
.charging-station-header {
    position: absolute;
    right: 90px;
    top: 5px;
    font-size: 1.2rem;
    z-index: 3;
    animation: pulse-station 2s ease-in-out infinite;
}

@keyframes pulse-station {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.4));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
    }
}

/* Voiture - Démarre à droite, va vers la borne */
.mini-car {
    position: absolute;
    top: 5px;
    right: calc(100% - 200px);
    font-size: 1.2rem;
    transform: scaleX(-1);
    z-index: 2;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
}

/* Animation appliquée via JavaScript */
.mini-car.driving {
    animation: car-to-station 12s ease-in-out forwards;
}

@keyframes car-to-station {
    0% {
        right: calc(100% - 200px);
    }
    85%, 100% {
        right: 140px;
    }
}

/* Bouton replay */
.replay-animation {
    position: absolute;
    right: 2.5rem;
    top: 2px;
    padding: 0.35rem 0.8rem;
    background: #D4AF37;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.75rem;
    z-index: 4;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.replay-animation:hover {
    background: #2B5F9E;
    transform: scale(1.05);
}

/* Spacing pour éviter que ça cache le carrousel */
.site-header {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: white;
}

.featured-carousel {
    margin-top: 110px !important;
    padding-top: 2rem;
}

/* Mobile */
@media (max-width: 768px) {
    .header-car-animation {
        height: 25px;
        padding: 0 1.5rem;
    }
    
    .mini-car {
        font-size: 1rem;
        right: calc(100% - 150px);
        top: 3px;
    }
    
    @keyframes car-to-station {
        0% {
            right: calc(100% - 150px);
        }
        85%, 100% {
            right: 100px;
        }
    }
    
    .charging-station-header {
        right: 70px;
        font-size: 1rem;
        top: 3px;
    }
    
    .replay-animation {
        right: 1.5rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .featured-carousel {
        margin-top: 95px !important;
    }
}
/* ===================================
   ANIMATION VOITURE HEADER - CLEAN
   ================================= */

/* Remove all old car animations */
.electric-car-track,
.electric-car-moving,
.electric-car-animation {
    display: none !important;
}

/* Header Car Animation Container */
.header-car-animation {
    position: relative !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    height: 30px !important;
    padding: 0 2.5rem !important;
    background: transparent !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
}

/* Charging Station - Fixed position */
.charging-station-header {
    position: absolute !important;
    right: 90px !important;
    top: 5px !important;
    font-size: 1.2rem !important;
    z-index: 3 !important;
    animation: pulse-station 2s ease-in-out infinite !important;
}

@keyframes pulse-station {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.4));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
    }
}

/* Mini Car - Start position */
.mini-car {
    position: absolute !important;
    top: 5px !important;
    right: calc(100% - 200px) !important;
    font-size: 1.2rem !important;
    transform: scaleX(-1) !important;
    z-index: 2 !important;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15)) !important;
}

/* Animation when driving class is added */
.mini-car.driving {
    animation: car-to-station 12s ease-in-out forwards !important;
}

@keyframes car-to-station {
    0% {
        right: calc(100% - 200px);
    }
    85%, 100% {
        right: 140px;
    }
}

/* Replay Button */
.replay-animation {
    position: absolute !important;
    right: 2.5rem !important;
    top: 2px !important;
    padding: 0.35rem 0.8rem !important;
    background: #D4AF37 !important;
    color: white !important;
    border: none !important;
    border-radius: 15px !important;
    cursor: pointer !important;
    font-size: 0.75rem !important;
    z-index: 4 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}

.replay-animation:hover {
    background: #2B5F9E !important;
    transform: scale(1.05) !important;
}

/* Header spacing */
.site-header {
    position: fixed !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    background: white !important;
}

/* Carousel spacing */
.featured-carousel {
    margin-top: 110px !important;
    padding-top: 2rem !important;
}

/* Mobile */
@media (max-width: 768px) {
    .header-car-animation {
        height: 25px !important;
        padding: 0 1.5rem !important;
    }
    
    .mini-car {
        font-size: 1rem !important;
        right: calc(100% - 150px) !important;
        top: 3px !important;
    }
    
    @keyframes car-to-station {
        0% {
            right: calc(100% - 150px);
        }
        85%, 100% {
            right: 100px;
        }
    }
    
    .charging-station-header {
        right: 70px !important;
        font-size: 1rem !important;
        top: 3px !important;
    }
    
    .replay-animation {
        right: 1.5rem !important;
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem !important;
    }
    
    .featured-carousel {
        margin-top: 95px !important;
    }
}
/* =============================================
   ANIMATION VOITURE - VERSION FINALE PROPRE
   ============================================= */

/* Remove ALL old definitions */
.header-car-animation {
    position: relative !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    height: 30px !important;
    padding: 0 2.5rem !important;
    background: transparent !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
}

/* Charging Station */
.charging-station-header {
    position: absolute !important;
    right: 90px !important;
    top: 5px !important;
    font-size: 1.2rem !important;
    z-index: 3 !important;
    animation: pulse-station 2s ease-in-out infinite !important;
}

/* Mini Car - INITIAL position */
.mini-car {
    position: absolute !important;
    top: 5px !important;
    right: calc(100% - 200px) !important;
    font-size: 1.2rem !important;
    transform: scaleX(-1) !important;
    z-index: 2 !important;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15)) !important;
    transition: none !important;
}

/* Mini Car - ANIMATION when driving */
.mini-car.driving {
    animation: car-to-station 12s ease-in-out forwards !important;
}

/* Keyframes for car animation */
@keyframes car-to-station {
    0% {
        right: calc(100% - 200px);
    }
    85%, 100% {
        right: 140px;
    }
}

/* Replay button */
.replay-animation {
    position: absolute !important;
    right: 2.5rem !important;
    top: 2px !important;
    padding: 0.35rem 0.8rem !important;
    background: #D4AF37 !important;
    color: white !important;
    border: none !important;
    border-radius: 15px !important;
    cursor: pointer !important;
    font-size: 0.75rem !important;
    z-index: 4 !important;
    transition: all 0.3s ease !important;
}

.replay-animation:hover {
    background: #2B5F9E !important;
    transform: scale(1.05) !important;
}

/* Mobile */
@media (max-width: 768px) {
    .mini-car {
        font-size: 1rem !important;
        right: calc(100% - 150px) !important;
    }
    
    @keyframes car-to-station {
        0% {
            right: calc(100% - 150px);
        }
        85%, 100% {
            right: 100px;
        }
    }
}
/* ============================================
   ANIMATION VOITURE - VERSION TRANSFORM
   Plus fiable que right pour les animations
   ============================================ */

/* Container */
.header-car-animation {
    position: relative !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    height: 30px !important;
    padding: 0 2.5rem !important;
    overflow: visible !important;
}

/* Charging Station - Position fixe */
.charging-station-header {
    position: absolute !important;
    right: 90px !important;
    top: 5px !important;
    font-size: 1.2rem !important;
    z-index: 3 !important;
    animation: pulse-station 2s ease-in-out infinite !important;
}

@keyframes pulse-station {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Mini Car - Position de départ À DROITE */
.mini-car {
    position: absolute !important;
    left: auto !important;
    right: 100px !important;  /* Démarre à droite, près du bord */
    top: 5px !important;
    font-size: 1.2rem !important;
    transform: scaleX(-1) !important;  /* Capot à droite */
    z-index: 2 !important;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15)) !important;
}

/* Animation avec TRANSFORM au lieu de right */
.mini-car.driving {
    animation: car-drive 12s ease-in-out forwards !important;
}

@keyframes car-drive {
    0% {
        transform: translateX(0) scaleX(-1);  /* Démarre à droite */
    }
    85%, 100% {
        transform: translateX(calc(-100vw + 250px)) scaleX(-1);  /* Va vers la gauche (borne) */
    }
}

/* Replay Button */
.replay-animation {
    position: absolute !important;
    right: 2.5rem !important;
    top: 2px !important;
    padding: 0.35rem 0.8rem !important;
    background: #D4AF37 !important;
    color: white !important;
    border: none !important;
    border-radius: 15px !important;
    cursor: pointer !important;
    font-size: 0.75rem !important;
    z-index: 4 !important;
}

.replay-animation:hover {
    background: #2B5F9E !important;
    transform: scale(1.05) !important;
}

/* Mobile */
@media (max-width: 768px) {
    .header-car-animation {
        height: 25px !important;
    }
    
    .mini-car {
        font-size: 1rem !important;
        right: 80px !important;
    }
    
    @keyframes car-drive {
        0% {
            transform: translateX(0) scaleX(-1);
        }
        85%, 100% {
            transform: translateX(calc(-100vw + 180px)) scaleX(-1);
        }
    }
    
    .charging-station-header {
        right: 70px !important;
        font-size: 1rem !important;
    }
}
/* ========================================
   ANIMATION VOITURE SIMPLE - DANS CARROUSEL
   Retour à ce qui fonctionnait !
   ======================================== */

/* Reset toutes les anciennes animations */
.header-car-animation,
.mini-car,
.charging-station-header,
.replay-animation,
.electric-car-track {
    display: none !important;
}

/* Carrousel avec marge normale */
.featured-carousel {
    margin-top: 80px !important;
    position: relative;
    overflow: hidden;
}

/* Voiture dans le carrousel - Simple et qui marche */
.electric-car-carousel {
    position: absolute;
    top: 2rem;
    left: -80px;
    font-size: 3rem;
    z-index: 10;
    animation: car-drive-simple 8s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

@keyframes car-drive-simple {
    0% {
        left: -80px;
    }
    50% {
        left: calc(100% - 60px);
    }
    100% {
        left: -80px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .electric-car-carousel {
        font-size: 2rem;
        top: 1rem;
    }
}
/* ============================================
   ANIMATION VOITURE - SOUS LES MENUS UNIQUEMENT
   ============================================ */

/* Hide all old car animations */
.electric-car-carousel,
.mini-car,
.header-car-animation,
.electric-car-track {
    display: none !important;
}

/* Zone d'animation - Alignée avec les menus */
.car-animation-zone {
    /* Full-width strip under the menus so the car can reach the screen edge */
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    height: 35px;
    padding: 0;
    background: white;
    overflow: hidden;
}

/* Voiture (par défaut: garée à droite). L'animation ne démarre que via la classe .is-animating */
.car-moving {
    position: absolute;
    /* Use a size variable so the end position is accurate */
    --car-size: 2.2rem;
    /* Parked by default at the computed end position (fallback: right edge) */
    left: var(--car-end, calc(100% - var(--car-size)));
    top: 5px;
    font-size: 1.3rem;
    transform: scaleX(-1); /* Capot à droite */
    animation: none;
    will-change: left;
    cursor: pointer;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* Active: drive once then stay parked on the right */
.car-moving.is-animating {
    left: var(--car-start, calc(var(--car-size) * -1));
    /* Slower by default; duration can be overridden via --car-duration */
    animation: drive-icon-to-icon var(--car-duration, 6.5s) ease-out 1 forwards;
}

/* Animation: from computed start to computed end */
@keyframes drive-icon-to-icon {
    0% { left: var(--car-start, calc(var(--car-size) * -1)); }
    100% { left: var(--car-end, calc(100% - var(--car-size))); }
}


/* Borne de recharge (apparaît à la fin du parcours) */
.charger-station {
    position: absolute;
    --charger-size: 1.9rem;
    width: var(--charger-size);
    height: var(--charger-size);
    top: 6px;
    left: var(--charger-left, calc(100% - var(--charger-size)));
    opacity: 0;
    transform: translateY(0) scale(0.95);
    transition: opacity 220ms ease, transform 220ms ease;
    pointer-events: none;
    /* SVG mirrored so the cable/arm is on the LEFT (car arrives from the left) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg transform='translate(64 0) scale(-1 1)'%3E%3Crect x='18' y='6' width='28' height='52' rx='6' fill='%232b2b2b'/%3E%3Crect x='22' y='12' width='20' height='16' rx='3' fill='%23ffffff' opacity='0.9'/%3E%3Cpath d='M28 46h8c3 0 6-3 6-6v-6' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M42 34l8 0c4 0 6 2 6 6v10' fill='none' stroke='%232b2b2b' stroke-width='4'/%3E%3Cpath d='M56 50h-4v10h4z' fill='%232b2b2b'/%3E%3Ccircle cx='32' cy='36' r='3' fill='%23f4c542'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
}

/* Affiche la borne quand la voiture est arrivée (ou sur les pages non-home: voiture garée) */
.car-animation-zone.car-arrived .charger-station,
body:not(.home):not(.front-page) .car-animation-zone .charger-station {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Carrousel spacing */
.featured-carousel {
    /* No extra offset needed: body padding-top handles the fixed header */
    margin-top: 0 !important;
}

/* Mobile */
@media (max-width: 768px) {
    .car-animation-zone {
        height: 30px;
        padding: 0;
    }
    
    .car-moving {
        font-size: 1.1rem;
        top: 3px;
    }

    .charger-station {
        --charger-size: 1.6rem;
        top: 4px;
    }
}

/* Désactive le badge sur le carrousel */
.featured-carousel .jdc-post-badge{display:none!important;}


/* ============================================
   NEWSLETTER BREVO - INTEGRATION
   ============================================ */

/* Newsletter Homepage - Full Width Section */
.newsletter-homepage {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1e4d7e 100%);
    padding: 4rem 2.5rem;
    color: white;
    margin: 0;
}

.newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.newsletter-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.newsletter-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.95;
    color: white;
}

/* Newsletter Article - Sidebar Box */
.newsletter-article {
    max-width: 920px;
    margin: 3rem auto;
    padding: 0 2.5rem;
}

.newsletter-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--accent-gold);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.newsletter-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.newsletter-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.newsletter-box p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Brevo Form Styling - Homepage */
.newsletter-homepage .sib-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.newsletter-homepage .sib-email-area,
.newsletter-homepage .sib-form-block {
    margin-bottom: 1rem;
}

.newsletter-homepage input[type="email"],
.newsletter-homepage input[name="email"],
.newsletter-homepage .entry__field input {
    width: 100% !important;
    padding: 1rem !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    transition: border-color 0.3s ease !important;
    box-sizing: border-box !important;
}

.newsletter-homepage input[type="email"]:focus,
.newsletter-homepage input[name="email"]:focus,
.newsletter-homepage .entry__field input:focus {
    border-color: var(--accent-blue) !important;
    outline: none !important;
}

.newsletter-homepage input[type="submit"],
.newsletter-homepage button[type="submit"],
.newsletter-homepage .sib-form-block__button {
    width: 100% !important;
    padding: 1rem 2rem !important;
    background: var(--accent-gold) !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

.newsletter-homepage input[type="submit"]:hover,
.newsletter-homepage button[type="submit"]:hover,
.newsletter-homepage .sib-form-block__button:hover {
    background: var(--accent-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Brevo Form Styling - Article */
.newsletter-article .sib-form {
    text-align: left;
}

.newsletter-article input[type="email"],
.newsletter-article input[name="email"],
.newsletter-article .entry__field input {
    width: 100% !important;
    padding: 0.875rem !important;
    border: 2px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 0.95rem !important;
    margin-bottom: 1rem !important;
    transition: border-color 0.3s ease !important;
    box-sizing: border-box !important;
}

.newsletter-article input[type="email"]:focus,
.newsletter-article input[name="email"]:focus,
.newsletter-article .entry__field input:focus {
    border-color: var(--accent-gold) !important;
    outline: none !important;
}

.newsletter-article input[type="submit"],
.newsletter-article button[type="submit"],
.newsletter-article .sib-form-block__button {
    width: 100% !important;
    padding: 0.875rem 1.5rem !important;
    background: var(--accent-blue) !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

.newsletter-article input[type="submit"]:hover,
.newsletter-article button[type="submit"]:hover,
.newsletter-article .sib-form-block__button:hover {
    background: var(--accent-gold) !important;
    transform: translateY(-2px);
}

/* Labels */
.newsletter-homepage label,
.newsletter-article label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.newsletter-homepage .entry__field,
.newsletter-article .entry__field {
    margin-bottom: 1rem;
}

/* Success/Error Messages */
.newsletter-homepage .sib-form-message-panel,
.newsletter-article .sib-form-message-panel {
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
}

.newsletter-homepage .sib-form-message-panel--active,
.newsletter-article .sib-form-message-panel--active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Hide Brevo styling we override */
.newsletter-homepage .sib-form *,
.newsletter-article .sib-form * {
    box-sizing: border-box;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .newsletter-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .newsletter-homepage {
        padding: 3rem 1.5rem;
    }
    
    .newsletter-content h2 {
        font-size: 2rem;
    }
    
    .newsletter-content p {
        font-size: 1rem;
    }
    
    .newsletter-article {
        padding: 0 1.5rem;
    }
    
    .newsletter-box {
        padding: 1.5rem;
    }
    
    .newsletter-box h3 {
        font-size: 1.5rem;
    }
}

/* ============================================
   NEWSLETTER FOOTER - STYLE UNIFIÉ
   ============================================ */

/* Footer Newsletter Section */
.footer-newsletter {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(43, 95, 158, 0.1) 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
    padding: 1.5rem !important;
}

.footer-newsletter h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.footer-newsletter p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Brevo Form in Footer */
.footer-newsletter .sib-form {
    margin-top: 1rem;
}

.footer-newsletter input[type="email"],
.footer-newsletter input[name="email"],
.footer-newsletter .entry__field input {
    width: 100% !important;
    padding: 0.75rem !important;
    border: 2px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 0.95rem !important;
    margin-bottom: 0.75rem !important;
    transition: border-color 0.3s ease !important;
    box-sizing: border-box !important;
}

.footer-newsletter input[type="email"]:focus,
.footer-newsletter input[name="email"]:focus,
.footer-newsletter .entry__field input:focus {
    border-color: var(--accent-gold) !important;
    outline: none !important;
}

.footer-newsletter input[type="submit"],
.footer-newsletter button[type="submit"],
.footer-newsletter .sib-form-block__button {
    width: 100% !important;
    padding: 0.75rem 1.5rem !important;
    background: var(--accent-blue) !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

.footer-newsletter input[type="submit"]:hover,
.footer-newsletter button[type="submit"]:hover,
.footer-newsletter .sib-form-block__button:hover {
    background: var(--accent-gold) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Labels */
.footer-newsletter label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.footer-newsletter .entry__field {
    margin-bottom: 0.75rem;
}

/* Success/Error Messages */
.footer-newsletter .sib-form-message-panel {
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-newsletter .sib-form-message-panel--active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Ensure proper box-sizing */
.footer-newsletter .sib-form *,
.footer-newsletter .sib-form {
    box-sizing: border-box;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .footer-newsletter {
        padding: 1.25rem !important;
    }
    
    .footer-newsletter h3 {
        font-size: 1.2rem;
    }
    
    .footer-newsletter p {
        font-size: 0.9rem;
    }
}

/* ============================================
   NEWSLETTER & FOOTER IMPROVEMENTS
   ============================================ */

/* Footer Newsletter - Improved Display */
.footer-newsletter {
    background: rgba(212, 175, 55, 0.05) !important;
    border: 2px solid var(--accent-gold) !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
}

.footer-newsletter h3 {
    color: white !important;
    margin-bottom: 0.75rem !important;
    font-size: 1.25rem !important;
}

.footer-newsletter p {
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 1rem !important;
}

/* Brevo Form Styling - Better Visibility */
.footer-newsletter .sib-form,
.footer-newsletter form {
    margin-top: 1rem;
}

.footer-newsletter input[type="email"],
.footer-newsletter input[name="email"],
.footer-newsletter .entry__field input,
.footer-newsletter .sib-email-area input {
    width: 100% !important;
    padding: 0.75rem !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 4px !important;
    font-size: 0.95rem !important;
    margin-bottom: 0.75rem !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.footer-newsletter input[type="email"]::placeholder,
.footer-newsletter input[name="email"]::placeholder,
.footer-newsletter .entry__field input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.footer-newsletter input[type="email"]:focus,
.footer-newsletter input[name="email"]:focus,
.footer-newsletter .entry__field input:focus {
    border-color: var(--accent-gold) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    outline: none !important;
}

.footer-newsletter input[type="submit"],
.footer-newsletter button[type="submit"],
.footer-newsletter .sib-form-block__button,
.footer-newsletter .sib-default-btn {
    width: 100% !important;
    padding: 0.875rem 1.5rem !important;
    background: var(--accent-blue) !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: block !important;
    margin-top: 0.5rem !important;
}

.footer-newsletter input[type="submit"]:hover,
.footer-newsletter button[type="submit"]:hover,
.footer-newsletter .sib-form-block__button:hover {
    background: var(--accent-gold) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Labels */
.footer-newsletter label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Hide Brevo container padding */
.footer-newsletter .sib-form-container {
    padding: 0 !important;
}

/* Success Messages */
.footer-newsletter .sib-form-message-panel {
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-newsletter .sib-form-message-panel--active {
    background: rgba(212, 237, 218, 0.2);
    color: #d4edda;
    border: 1px solid rgba(195, 230, 203, 0.5);
}

/* Footer Bottom - Email Contact */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-email-contact {
    margin-top: 0.5rem;
}

.footer-email-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-email-contact a:hover {
    color: var(--accent-gold);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-newsletter {
        padding: 1.25rem !important;
        margin-top: 2rem;
    }
    
    .footer-newsletter h3 {
        font-size: 1.15rem !important;
    }
    
    .footer-newsletter p {
        font-size: 0.85rem !important;
    }
    
    .footer-newsletter input[type="email"],
    .footer-newsletter input[name="email"],
    .footer-newsletter .entry__field input {
        font-size: 0.9rem !important;
        padding: 0.7rem !important;
    }
    
    .footer-newsletter input[type="submit"],
    .footer-newsletter button[type="submit"] {
        font-size: 0.95rem !important;
        padding: 0.8rem 1.25rem !important;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .footer-bottom-left {
        align-items: center;
    }
    
    .footer-email-contact {
        margin-top: 0.25rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr !important;
    }
    
    .footer-newsletter {
        margin-top: 1.5rem;
    }
}

/* ============================================
   ARTICLE PAGE - REDUCED SPACING
   ============================================ */

/* Reduce top margin of article page */
.single-article {
    margin: 3rem auto 4rem !important;
}

/* Reduce space before category */
.article-header {
    margin-bottom: 1.5rem !important;
}

/* Reduce space after featured image */
.featured-image {
    margin-bottom: 1.5rem !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .single-article {
        margin: 2rem auto 3rem !important;
        padding: 0 1.5rem !important;
    }
    
    .article-header {
        margin-bottom: 1.25rem !important;
    }
    
    .featured-image {
        margin-bottom: 1.25rem !important;
    }
}

/* ============================================
   NEWSLETTER FIXES - V4.6
   ============================================ */

/* Fix white square on button click */
.footer-newsletter input[type="submit"]:focus,
.footer-newsletter button[type="submit"]:focus,
.footer-newsletter .sib-form-block__button:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3) !important;
}

.footer-newsletter input[type="submit"]:active,
.footer-newsletter button[type="submit"]:active,
.footer-newsletter .sib-form-block__button:active {
    outline: none !important;
    transform: translateY(0) !important;
}

/* Hide Brevo default focus elements */
.footer-newsletter .sib-form *:focus {
    outline: none !important;
}

/* Fix confirmation/error messages visibility */
.footer-newsletter .sib-form-message-panel {
    padding: 1rem !important;
    border-radius: 6px !important;
    margin-top: 1rem !important;
    text-align: center !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
}

/* Success message - Green readable */
.footer-newsletter .sib-form-message-panel--active,
.footer-newsletter .sib-form-message-panel.sib-form-message-panel--active {
    background: #28a745 !important;
    color: white !important;
    border: 2px solid #218838 !important;
}

/* Error message - Red readable */
.footer-newsletter .sib-form-message-panel--error,
.footer-newsletter .sib-form-message-panel.sib-form-message-panel--error {
    background: #dc3545 !important;
    color: white !important;
    border: 2px solid #c82333 !important;
}

/* Info message */
.footer-newsletter .sib-form-message-panel--info {
    background: var(--accent-blue) !important;
    color: white !important;
    border: 2px solid #1e4d7e !important;
}

/* Remove any white backgrounds from Brevo */
.footer-newsletter .sib-form-message-panel * {
    background: transparent !important;
    color: inherit !important;
}

/* Reduce space before footer on homepage */
.home .featured-carousel,
.blog .featured-carousel {
    margin-bottom: 2rem !important;
}

/* Reduce space after pagination */
.pagination {
    margin-bottom: 2rem !important;
}

/* Reduce overall page bottom spacing */
.site-main {
    padding-bottom: 1rem !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .home .featured-carousel,
    .blog .featured-carousel {
        margin-bottom: 1.5rem !important;
    }
    
    .pagination {
        margin-bottom: 1.5rem !important;
    }
}

/* ============================================
   V4.7 - FIXES ULTRA SPÉCIFIQUES
   ============================================ */

/* BOUTON - Force removal of white square with ALL selectors */
.footer-newsletter button,
.footer-newsletter input[type="submit"],
.footer-newsletter input[type="button"],
.footer-newsletter .sib-form button,
.footer-newsletter .sib-form input[type="submit"],
.footer-newsletter .sib-default-btn,
.footer-newsletter .sib-form-block__button {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
}

.footer-newsletter button:focus,
.footer-newsletter input[type="submit"]:focus,
.footer-newsletter .sib-form button:focus,
.footer-newsletter .sib-form input[type="submit"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.4) !important;
    -webkit-tap-highlight-color: transparent !important;
}

.footer-newsletter button:active,
.footer-newsletter input[type="submit"]:active,
.footer-newsletter .sib-form button:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* MESSAGES - Ultra specific selectors for visibility */
.footer-newsletter .sib-form__declaration,
.footer-newsletter .sib-form-message-panel,
.footer-newsletter div[class*="message"],
.footer-newsletter div[class*="error"],
.footer-newsletter div[class*="success"] {
    padding: 1.25rem !important;
    border-radius: 6px !important;
    margin-top: 1rem !important;
    text-align: center !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

/* Success - GREEN background, WHITE text */
.footer-newsletter .sib-form-message-panel--active,
.footer-newsletter [class*="success"],
.footer-newsletter .entry__error.entry__error--primary {
    background-color: #28a745 !important;
    background: #28a745 !important;
    color: #ffffff !important;
    border: 2px solid #1e7e34 !important;
}

.footer-newsletter .sib-form-message-panel--active *,
.footer-newsletter [class*="success"] * {
    color: #ffffff !important;
    background: transparent !important;
}

/* Error - RED background, WHITE text */
.footer-newsletter .sib-form-message-panel--error,
.footer-newsletter [class*="error"]:not(.entry__error--primary),
.footer-newsletter .entry__error {
    background-color: #dc3545 !important;
    background: #dc3545 !important;
    color: #ffffff !important;
    border: 2px solid #bd2130 !important;
}

.footer-newsletter .sib-form-message-panel--error *,
.footer-newsletter [class*="error"] * {
    color: #ffffff !important;
    background: transparent !important;
}

/* ESPACES PAGE D'ACCUEIL - Force smaller margins */
body.home main,
body.blog main,
body.home .site-main,
body.blog .site-main {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

body.home .featured-carousel,
body.blog .featured-carousel,
body.home .article-grid,
body.blog .article-grid {
    margin-bottom: 1rem !important;
    padding-bottom: 0 !important;
}

body.home .pagination,
body.blog .pagination {
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0 !important;
}

/* Force footer to be closer */
.site-footer {
    margin-top: 0 !important;
    padding-top: 3rem !important;
}

/* Mobile - even tighter */
@media (max-width: 768px) {
    body.home .featured-carousel,
    body.blog .featured-carousel {
        margin-bottom: 0.5rem !important;
    }
    
    body.home .pagination,
    body.blog .pagination {
        margin-bottom: 0.5rem !important;
    }
    
    .site-footer {
        padding-top: 2rem !important;
    }
}

/* ============================================
   V4.8 - ÉLIMINATION TOTALE CARRÉ FOCUS
   ============================================ */

/* Supprime TOUS les éléments de focus possibles dans le formulaire newsletter */
.footer-newsletter *,
.footer-newsletter *:before,
.footer-newsletter *:after {
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    -webkit-tap-highlight-color: transparent !important;
    tap-highlight-color: transparent !important;
}

/* Tous les boutons et inputs */
.footer-newsletter button,
.footer-newsletter input,
.footer-newsletter input[type="submit"],
.footer-newsletter input[type="button"],
.footer-newsletter [type="submit"],
.footer-newsletter .sib-form button,
.footer-newsletter .sib-form input[type="submit"],
.footer-newsletter .sib-default-btn,
.footer-newsletter .sib-form-block__button {
    outline: 0 !important;
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* États focus, active, visited */
.footer-newsletter button:focus,
.footer-newsletter button:active,
.footer-newsletter button:hover,
.footer-newsletter input:focus,
.footer-newsletter input:active,
.footer-newsletter input[type="submit"]:focus,
.footer-newsletter input[type="submit"]:active,
.footer-newsletter .sib-form button:focus,
.footer-newsletter .sib-form button:active,
.footer-newsletter .sib-form input[type="submit"]:focus,
.footer-newsletter .sib-form input[type="submit"]:active {
    outline: 0 !important;
    outline: none !important;
    outline-width: 0 !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
}

/* Supprime les pseudo-éléments qui pourraient créer le carré */
.footer-newsletter button::before,
.footer-newsletter button::after,
.footer-newsletter input[type="submit"]::before,
.footer-newsletter input[type="submit"]::after {
    display: none !important;
    content: none !important;
}

/* Force le style du bouton au clic */
.footer-newsletter button:active,
.footer-newsletter input[type="submit"]:active {
    background: var(--accent-blue) !important;
    transform: none !important;
    transition: none !important;
}

/* Supprime le focus-visible (nouveau standard) */
.footer-newsletter button:focus-visible,
.footer-newsletter input:focus-visible,
.footer-newsletter input[type="submit"]:focus-visible {
    outline: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Supprime les anneaux de focus Firefox */
.footer-newsletter button::-moz-focus-inner,
.footer-newsletter input[type="submit"]::-moz-focus-inner {
    border: 0 !important;
    padding: 0 !important;
    outline: 0 !important;
}

/* ============================================
   V4.9 - ESPACES CARROUSEL ET ARTICLES
   ============================================ */

/* Ajouter espace entre flèches et fond bleu du carrousel */
.carousel-controls {
    margin-top: 1.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Alternative si les flèches sont dans le carrousel */
.featured-carousel .carousel-controls {
    margin-top: 1.5rem !important;
}

/* Réduire l'espace avant les blocs d'articles */
.article-grid {
    margin-top: 2rem !important;
    padding-top: 0 !important;
}

/* Si section avec titre */
.home .article-grid,
.blog .article-grid {
    margin-top: 1.5rem !important;
}

/* Titre de section si présent */
.section-title {
    margin-bottom: 1.5rem !important;
    margin-top: 2rem !important;
}

/* Mobile - espaces encore plus réduits */
@media (max-width: 768px) {
    .carousel-controls {
        margin-top: 1.25rem !important;
    }
    
    .article-grid {
        margin-top: 1.5rem !important;
    }
    
    .section-title {
        margin-top: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
}

/* ============================================
   V4.10 - RÉDUCTION MAXIMALE ESPACES ARTICLES
   ============================================ */

/* Réduire drastiquement l'espace avant les articles */
.article-grid {
    margin-top: 0.5rem !important;
    padding-top: 0 !important;
}

.home .article-grid,
.blog .article-grid {
    margin-top: 0.5rem !important;
}

/* Si titre de section présent */
.section-title {
    margin-top: 1rem !important;
    margin-bottom: 0.75rem !important;
}

/* Carrousel - réduire l'espace après */
.featured-carousel {
    margin-bottom: 0.5rem !important;
    padding-bottom: 0 !important;
}

/* Container principal page accueil */
.home main,
.blog main {
    padding-top: 0 !important;
}

/* Mobile - encore plus serré */
@media (max-width: 768px) {
    .article-grid {
        margin-top: 0.25rem !important;
    }
    
    .featured-carousel {
        margin-bottom: 0.25rem !important;
    }
    
    .section-title {
        margin-top: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* ============================================
   BLOC CATÉGORIES + NEWSLETTER - HARMONISÉ
   ============================================ */

/* Bloc principal - fond blanc/bleu très léger */
.categories-newsletter-block {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 1rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    border: 2px solid #e3f2fd;
    border-radius: 12px;
}

/* Section Catégories (gauche) */
.categories-section {
    padding-right: 2rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.section-title::before {
    content: "RUBRIQUES";
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #2B5F9E;
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Grille des catégories - 2 colonnes */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Carte de catégorie */
.category-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #e3f2fd;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(43, 95, 158, 0.15);
    border-color: var(--accent-blue);
    background: #f8fbff;
}

.category-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    display: block;
}

.category-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

/* Section Newsletter (droite) */
.newsletter-section {
    display: flex;
    align-items: stretch;
}

.newsletter-box {
    background: linear-gradient(135deg, #2B5F9E 0%, #1e4d7e 100%);
    padding: 2.5rem;
    border-radius: 12px;
    color: white;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: 0 8px 24px rgba(43, 95, 158, 0.2);
}

.newsletter-box h3 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.newsletter-box h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: white;
}

/* Formulaire Newsletter */
.newsletter-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.newsletter-form .sib-form {
    background: transparent !important;
    padding: 0 !important;
}

.newsletter-form input[type="email"],
.newsletter-form input[name="email"],
.newsletter-form .entry__field input {
    width: 100% !important;
    padding: 1rem !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
}

.newsletter-form input[type="email"]::placeholder,
.newsletter-form input[name="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.newsletter-form input[type="email"]:focus,
.newsletter-form input[name="email"]:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.newsletter-form input[type="submit"],
.newsletter-form button[type="submit"],
.newsletter-form .sib-form-block__button {
    width: 100% !important;
    padding: 1rem 2rem !important;
    background: var(--accent-gold) !important;
    color: var(--primary-dark) !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.newsletter-form input[type="submit"]:hover,
.newsletter-form button[type="submit"]:hover {
    background: #FFD700 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .categories-newsletter-block {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .categories-section {
        padding-right: 0;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-box {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .categories-newsletter-block {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-box h4 {
        font-size: 1.5rem;
    }
}

/* Fix label email invisible */
.newsletter-form label,
.newsletter-form .entry__field label,
.newsletter-form .sib-form label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
}

.newsletter-form .entry__error,
.newsletter-form .sib-form__declaration {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ============================================
   FORCER LABEL EMAIL BLANC - MAXIMUM SPÉCIFICITÉ
   Le plugin Brevo écrase le CSS, on cible TOUS les sélecteurs possibles
   ============================================ */

/* Tous les labels possibles dans la newsletter */
.newsletter-form label,
.newsletter-form .entry__field label,
.newsletter-form .sib-form label,
.newsletter-form .sib-form-block label,
.newsletter-form .sib-form-block__label,
.newsletter-form .entry__label,
.newsletter-box label,
.newsletter-box .entry__field label,
.newsletter-box .sib-form label,
.newsletter-box .sib-form-block label,
.newsletter-box .sib-form-block__label,
.newsletter-box .entry__label,
.newsletter-section label,
.newsletter-section .entry__field label,
.newsletter-section .sib-form label,
.newsletter-section .sib-form-block label,
.newsletter-section .sib-form-block__label,
.newsletter-section .entry__label,
.categories-newsletter-block label,
.categories-newsletter-block .entry__field label,
.categories-newsletter-block .sib-form label,
.categories-newsletter-block .sib-form-block label,
.categories-newsletter-block .sib-form-block__label,
.categories-newsletter-block .entry__label,
.newsletter-form label[for],
.newsletter-box label[for],
.newsletter-section label[for],
.categories-newsletter-block label[for] {
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    visibility: visible !important;
    display: block !important;
}

/* Wrapper du champ */
.newsletter-form .entry__field,
.newsletter-box .entry__field,
.newsletter-section .entry__field,
.categories-newsletter-block .entry__field {
    color: white !important;
}

/* Tous les éléments Brevo */
.newsletter-form .sib-form-block label,
.newsletter-form .sib-form-block__label,
.newsletter-form .sib-input,
.newsletter-box .sib-form-block label,
.newsletter-box .sib-form-block__label,
.newsletter-box .sib-input,
.newsletter-section .sib-form-block label,
.newsletter-section .sib-form-block__label,
.newsletter-section .sib-input,
.categories-newsletter-block .sib-form-block label,
.categories-newsletter-block .sib-form-block__label,
.categories-newsletter-block .sib-input {
    color: white !important;
    opacity: 1 !important;
}

/* Déclarations et erreurs */
.newsletter-form .sib-form__declaration,
.newsletter-form .entry__error,
.newsletter-box .sib-form__declaration,
.newsletter-box .entry__error,
.newsletter-section .sib-form__declaration,
.newsletter-section .entry__error,
.categories-newsletter-block .sib-form__declaration,
.categories-newsletter-block .entry__error {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ============================================
   SECTION POPULAIRES + RÉCENTS (AVANT FOOTER)
   ============================================ */

.popular-recent-posts {
    background: #f8f9fa;
    padding: 2rem 2rem;
    margin-top: 1rem;
}

.popular-recent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Headers de section */
.section-header {
    margin-bottom: 2rem;
}

.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
    margin: 0;
}

/* Articles Populaires (gauche) */
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.popular-post-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.popular-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e3f2fd;
}

.popular-post-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1e4d7e 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.popular-post-content {
    flex: 1;
}

.popular-post-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.popular-post-title a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-post-title a:hover {
    color: var(--accent-blue);
}

.popular-post-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Articles Récents (droite) */
.recent-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recent-post-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-blue);
    transition: all 0.3s ease;
    position: relative;
}

.recent-post-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.recent-post-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
}

.recent-post-title a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-title a:hover {
    color: var(--accent-blue);
}

.recent-post-excerpt {
    font-size: 0.9375rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.recent-post-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 968px) {
    .popular-recent-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .popular-recent-posts {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .section-heading {
        font-size: 1.75rem;
    }
    
    .popular-post-number {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }
    
    .popular-post-title,
    .recent-post-title {
        font-size: 1rem;
    }
}

/* ============================================
   FORCER LABEL EMAIL BLANC - ULTRA MEGA AGRESSIF
   Solution finale pour le plugin Brevo
   ============================================ */

/* Tous les labels dans la newsletter - MAXIMUM PRIORITY */
.newsletter-form label,
.newsletter-form .entry__field label,
.newsletter-form .sib-form label,
.newsletter-form .sib-form-block label,
.newsletter-form .sib-form-block__label,
.newsletter-form .entry__label,
.newsletter-form label[for],
.newsletter-form label[for="email"],
.newsletter-form label[for="EMAIL"],
.newsletter-box label,
.newsletter-box .entry__field label,
.newsletter-box .sib-form label,
.newsletter-box .sib-form-block label,
.newsletter-box .sib-form-block__label,
.newsletter-box .entry__label,
.newsletter-box label[for],
.newsletter-box label[for="email"],
.newsletter-box label[for="EMAIL"],
.newsletter-section label,
.newsletter-section .entry__field label,
.newsletter-section .sib-form label,
.newsletter-section .sib-form-block label,
.newsletter-section .sib-form-block__label,
.newsletter-section .entry__label,
.newsletter-section label[for],
.newsletter-section label[for="email"],
.newsletter-section label[for="EMAIL"],
.categories-newsletter-block label,
.categories-newsletter-block .entry__field label,
.categories-newsletter-block .sib-form label,
.categories-newsletter-block .sib-form-block label,
.categories-newsletter-block .sib-form-block__label,
.categories-newsletter-block .entry__label,
.categories-newsletter-block label[for],
.categories-newsletter-block label[for="email"],
.categories-newsletter-block label[for="EMAIL"] {
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    visibility: visible !important;
    display: block !important;
    font-size: 1rem !important;
}

/* Forcer tous les éléments de texte dans le formulaire Brevo */
.newsletter-form *[class*="label"],
.newsletter-box *[class*="label"],
.newsletter-section *[class*="label"],
.categories-newsletter-block *[class*="label"],
.newsletter-form *[class*="entry"],
.newsletter-box *[class*="entry"],
.newsletter-section *[class*="entry"],
.categories-newsletter-block *[class*="entry"] {
    color: white !important;
}

/* Spécifiquement pour les divs conteneurs */
.newsletter-form .sib-form-block,
.newsletter-box .sib-form-block,
.newsletter-section .sib-form-block,
.categories-newsletter-block .sib-form-block {
    color: white !important;
}

/* Forcer le wrapper du champ */
.newsletter-form .entry__field,
.newsletter-box .entry__field,
.newsletter-section .entry__field,
.categories-newsletter-block .entry__field,
.newsletter-form div[class*="entry"],
.newsletter-box div[class*="entry"],
.newsletter-section div[class*="entry"],
.categories-newsletter-block div[class*="entry"] {
    color: white !important;
}

/* ============================================
   LABEL EMAIL BLANC - FORCE MAXIMALE ABSOLUE
   ============================================ */

/* Cibler TOUS les labels possibles dans le formulaire newsletter */
.newsletter-section label,
.newsletter-section label *,
.newsletter-section .sib-form label,
.newsletter-section .sib-form-block label,
.newsletter-section .entry__field label,
.newsletter-box label,
.newsletter-box label *,
.newsletter-box .sib-form label,
.newsletter-box .sib-form-block label,
.newsletter-box .entry__field label,
.newsletter-form label,
.newsletter-form label *,
.newsletter-form .sib-form label,
.newsletter-form .sib-form-block label,
.newsletter-form .entry__field label,
.categories-newsletter-block label,
.categories-newsletter-block label *,
.categories-newsletter-block .sib-form label,
.categories-newsletter-block .sib-form-block label,
.categories-newsletter-block .entry__field label,
.sib-form label,
.sib-form-block label,
.entry__field label,
label[for="EMAIL"],
label[for="email"],
.newsletter-section .sib-input-label,
.newsletter-box .sib-input-label,
.newsletter-form .sib-input-label {
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    visibility: visible !important;
    display: block !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Forcer aussi sur les wrappers */
.newsletter-section .entry__field,
.newsletter-box .entry__field,
.newsletter-form .entry__field,
.categories-newsletter-block .entry__field {
    color: white !important;
}

/* Surcharge ultra-spécifique pour Brevo */
.newsletter-section .sib-form .sib-form-block label,
.newsletter-box .sib-form .sib-form-block label,
.newsletter-form .sib-form .sib-form-block label,
.categories-newsletter-block .sib-form .sib-form-block label {
    color: white !important;
    opacity: 1 !important;
}
