/*
Theme Name: KLX Theme
Description: Thème WordPress pour KLX ESM
Version: 1.0
*/

html { font-size: 85% !important; }   /* tous les rem/em suivent */

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    font-size: 14px; /* Au lieu de 16px */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00d4aa;
}


/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #00d4aa 100%);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: -0.5rem !important;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.flag {
    display: inline-block;
    margin: 0 5px;
    font-size: 1.2em;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #00d4aa;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    color: white;
    font-style: italic;
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: #00d4aa;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
    background: #00c399;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
    text-decoration: none;
    color: white;
}

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

.btn-secondary:hover {
    background: white;
    color: #1e3c72;
    text-decoration: none;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e3c72;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    color: #00d4aa;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e3c72;
}

/* Pricing Section */
.pricing {
    padding: 4rem 0;
    background: white;
    overflow: visible; /* Important pour les badges */
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem; /* Plus d'espace pour les badges */
    padding: 0 1rem;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: visible; /* Important pour les badges */
    max-width: 400px;
    margin: 0 auto;
    border: 3px solid #00d4aa;
    position: relative; /* Important pour le positionnement des badges */
}

.pricing-header {
    background: linear-gradient(135deg, #00d4aa, #00c399);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.pricing-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.price {
    margin: 1rem 0;
}

.currency {
    font-size: 1.2rem;
    vertical-align: top;
}

.amount {
    font-size: 3rem;
    font-weight: bold;
}

.period {
    font-size: 1rem;
    opacity: 0.8;
}

.pricing-description {
    opacity: 0.9;
    font-size: 1rem;
}

.pricing-features {
    padding: 2rem;
}

.feature-group {
    margin-bottom: 1.5rem;
}

.feature-group h4 {
    color: #1e3c72;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.feature-group ul {
    list-style: none;
    padding-left: 0;
}

.feature-group li {
    padding: 0.3rem 0;
    font-size: 0.95rem;
}

.price-example {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #00d4aa;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.pricing-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #eee;
}

/* Badge "Recommandé" - Fix principal */
.pricing-card[style*="border-color: #ff6b6b"] {
    border-color: #ff6b6b !important;
    transform: scale(1.05);
    z-index: 10;
    margin: 2rem auto 1rem auto; /* Plus d'espace en haut et en bas */
}

.pricing-card[style*="border-color: #ff6b6b"] .pricing-header {
    background: linear-gradient(135deg, #ff6b6b, #ff5252) !important;
}

/* Badge Recommandé positionné correctement */
.pricing-card div[style*="position: absolute"][style*="top: -15px"] {
    position: absolute !important;
    top: -20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #1e3c72 !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    z-index: 100 !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3) !important;
}

/* Comparison Section */
.comparison {
    padding: 4rem 0;
    background: #f8f9fa;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0 3rem 0;
}

.comparison-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.comparison-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.comparison-icon {
    font-size: 3rem;
    color: #00d4aa;
    margin-bottom: 1rem;
}

.comparison-item h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.comparison-stats {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-before {
    font-size: 0.9rem;
    color: #e74c3c;
    margin-bottom: 0.5rem;
    text-decoration: line-through;
}

.stat-after {
    font-size: 1rem;
    color: #00d4aa;
    font-weight: 600;
}

.benefits-table {
    margin-top: 3rem;
}

.benefits-table h3 {
    text-align: center;
    color: #1e3c72;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.benefits-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.benefits-table th {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 1rem;
    font-weight: 600;
    text-align: center;
}

.benefits-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.benefits-table tr:nth-child(even) {
    background: #f8f9fa;
}

.benefits-table .klx-column {
    background: #e8f8f5 !important;
    font-weight: 600;
    color: #00a085;
}

/* Why KLX Section */
.why-klx {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
}

.why-klx-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.why-klx-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.launch-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.launch-stat {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 15px;
    min-width: 200px;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.launch-stat h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.early-access {
    background: rgba(0,212,170,0.2);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #00d4aa;
    max-width: 600px;
    margin: 0 auto;
}

.early-access h3 {
    color: #00d4aa;
    margin-bottom: 1rem;
}

/* CTA Section */
.final-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #00d4aa 0%, #00c399 100%);
    color: white;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: #1e3c72;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .benefits-table {
        overflow-x: auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }

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

    .launch-stats {
        flex-direction: column;
        gap: 1rem;
    }

    /* Mobile: pas de scale sur les cartes pricing */
    .pricing-card[style*="border-color: #ff6b6b"] {
        transform: none !important;
        margin: 2rem auto !important;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
        margin-top: 3rem;
    }
	
	
	
  .pricing-grid .pricing-card:nth-child(1) {
    order: 2; /* Standard */
  }

  .pricing-grid .pricing-card:nth-child(2) {
    order: 1; /* Pro */
  }
	
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* Floating Demo Button */
.floating-demo {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* WordPress Blocks Compatibility */
.wp-block-group {
    margin-bottom: 0;
}

.wp-block-group__inner-container {
    max-width: none;
}

.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* WordPress Editor Styling */
.wp-block-heading {
    margin: 0 0 1rem 0;
}

.wp-block-paragraph {
    margin: 0 0 1rem 0;
}

.wp-block-buttons {
    justify-content: center;
}

.wp-block-button__link {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

/* Bouton flottant démo */
.floating-demo {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(30, 60, 114, 0.4);
    color: white;
    text-decoration: none;
}

.floating-demo i {
    font-size: 1.1rem;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .floating-demo {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Correction pour les pages avec header sticky */
body {
    padding-top: 80px; /* Espace pour le header fixe */
}

.site-main {
    padding-top: 2rem;
}

/* Ajustement pour le contenu des pages */
.page-content {
    margin-top: 0;
}

/* Correction pour les blocs Gutenberg qui remontent */
.wp-block-heading:first-child {
    margin-top: 0;
    padding-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 120px; /* Plus d'espace sur mobile car le menu est sur 2 lignes */
    }
}

/* Force plus d'espace pour le contenu sous le header fixe */
body {
    padding-top: 100px !important; /* Plus d'espace */
}

.site-main {
    padding-top: 2rem !important;
    margin-top: 0 !important;
}

.page-content {
    padding-top: 1rem !important;
}

/* Correction spécifique pour les premiers éléments de page */
.wp-block-heading:first-child,
h1:first-child {
    margin-top: 0 !important;
    padding-top: 2rem !important;
}

/* Responsive avec plus d'espace */
@media (max-width: 768px) {
    body {
        padding-top: 140px !important; /* Encore plus d'espace sur mobile */
    }
}
/* Fix définitif pour l'espacement du header */
.site-header {
    height: 70px; /* Hauteur fixe pour le calcul */
}

/* Espace pour le contenu principal */
.site-main {
    padding-top: 90px !important; /* Plus d'espace que la hauteur du header */
}

/* Correction pour les pages spécifiques */
.page .site-main {
    padding-top: 120px !important; /* Encore plus d'espace pour les pages */
}

/* Titre de page masqué - correction spéciale */
.page-title {
    margin-top: 2rem !important;
    padding-top: 1rem !important;
}


@media (max-width: 768px) {
    .site-header {
        height: 90px; /* Plus haut sur mobile */
    }
    
    .site-main {
        padding-top: 110px !important;
    }
    
    .page .site-main {
        padding-top: 140px !important;
    }
}

/* ==========================================================================
   HEADER MODERNE - DESIGN GLASSMORPHISM
   ========================================================================== */

/* Import de la police moderne */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header principal avec glassmorphism */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: rgba(30, 60, 114, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 20px rgba(30, 60, 114, 0.3) !important;
}

.header-nav {
    padding: 0.8rem 0 !important;
}

.nav-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 3rem !important;
}

/* Logo moderne avec gradient */
.site-branding .site-logo {
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.2rem !important;
    font-weight: 700 !important;
    font-size: 1.8rem !important;
    transition: all 0.3s ease !important;
}

.logo-text {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
}

.logo-accent {
    color: #64b5f6 !important;
    text-shadow: 0 0 10px rgba(100, 181, 246, 0.6) !important;
}

.site-logo:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.1) !important;
}

/* Menu principal moderne */
.main-navigation {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
}

.main-navigation .nav-menu {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0.5rem !important;
}

.main-navigation .nav-menu li {
    margin: 0 !important;
}

.main-navigation .nav-menu a {
    display: block !important;
    padding: 0.7rem 1.2rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.main-navigation .nav-menu a:hover {
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Current page highlight */
.main-navigation .nav-menu .current-menu-item a,
.main-navigation .nav-menu .current_page_item a {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Bouton CTA moderne */
.nav-cta {
    flex-shrink: 0 !important;
}

.cta-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.8rem 1.5rem !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    color: #1e3c72 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    border-radius: 25px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2) !important;
}

.cta-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3) !important;
    color: #1e3c72 !important;
    text-decoration: none !important;
}

/* Espacement pour le contenu */
body {
    padding-top: 80px !important;
}

/* Responsive pour le header moderne */
@media (max-width: 1024px) {
    .nav-container {
        gap: 2rem !important;
        padding: 2rem 1.5rem !important;
    }
    
    .main-navigation .nav-menu {
        gap: 0.3rem !important;
    }
    
    .main-navigation .nav-menu a {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 120px !important;
    }
    
    .nav-container {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 0 1rem !important;
    }
    
    .main-navigation {
        order: 2 !important;
        width: 100% !important;
    }
    
    .main-navigation .nav-menu {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.5rem !important;
    }
    
    .main-navigation .nav-menu a {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
    
    .nav-cta {
        order: 3 !important;
    }
    
    .cta-button {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem !important;
    }
    
    .site-logo {
        font-size: 1.6rem !important;
    }
}

/* Effet de scroll */
.site-header.scrolled {
    background: rgba(30, 60, 114, 0.95) !important;
    backdrop-filter: blur(25px) !important;
    box-shadow: 0 4px 30px rgba(30, 60, 114, 0.4) !important;
}

/* Animation d'entrée */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-header {
    animation: slideDown 0.6s ease-out !important;
}

/* ==========================================================================
   CORRECTION HEADER - TAILLE ET ESPACEMENT
   ========================================================================== */

/* Header plus grand et plus impactant */
.site-header {
    padding: 1.2rem 0 !important; /* Plus de padding vertical */
}

.header-nav {
    padding: 1rem 0 !important; /* Plus de padding */
}

/* Logo plus grand */
.site-branding .site-logo {
    font-size: 2.2rem !important; /* Logo plus grand */
}

.logo-text, .logo-accent {
    font-size: inherit !important;
}

/* Menu plus spacieux */
.main-navigation .nav-menu a {
    padding: 1rem 1.5rem !important; /* Plus de padding pour les liens */
    font-size: 1rem !important; /* Police légèrement plus grande */
}

/* Bouton CTA plus grand */
.cta-button {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
}

/* CORRECTION ESPACEMENT POUR LES PAGES */
/* Beaucoup plus d'espace pour compenser le header plus grand */
body {
    padding-top: 120px !important; /* Beaucoup plus d'espace */
}

/* Espacement spécifique pour les pages */
.site-main {
    padding-top: 3rem !important; /* Plus d'espace avant le contenu */
}


/* Correction pour tous les premiers éléments */
.wp-site-content > *:first-child,
.page-content > *:first-child,
.site-main > *:first-child {
    margin-top: -1rem;
}

/* Responsive avec header plus grand */
@media (max-width: 768px) {
    body {
        padding-top: 180px !important; /* Encore plus d'espace sur mobile */
    }
    
    .site-header {
        padding: 1rem 0 !important;
    }
    
    .site-logo {
        font-size: 2rem !important;
    }
    
    .main-navigation .nav-menu a {
        padding: 0.8rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 200px !important; /* Maximum d'espace pour les très petits écrans */
    }
}

/* Force l'espacement même si il y a des conflits CSS */
.page .site-main,
.single .site-main {
    padding-top: 4rem !important;
}

/* Correction spéciale pour les blocs Gutenberg */
.wp-block-group:first-child,
.wp-block-heading:first-child {
    margin-top: 3rem !important;
}

/* ==========================================================================
   CORRECTION HEADER - HAUTEUR BEAUCOUP PLUS GRANDE
   ========================================================================== */

/* Header BEAUCOUP plus haut pour contenir le menu */
.site-header {
    padding: 2rem 0 !important; /* Beaucoup plus de padding vertical */
    min-height: 100px !important; /* Hauteur minimum garantie */
}

.header-nav {
    padding: 1.5rem 0 !important; /* Plus de padding interne */
}

.nav-container {
    min-height: 60px !important; /* Hauteur minimum du container */
    padding: 1rem 2rem !important; /* Plus de padding */
}

/* Menu avec plus d'espace vertical */
.main-navigation .nav-menu {
    padding: 0.5rem 0 !important; /* Espace vertical pour les liens */
}

.main-navigation .nav-menu a {
    padding: 1.2rem 1.5rem !important; /* Beaucoup plus de padding vertical */
    font-size: 1rem !important;
    line-height: 1.2 !important; /* Hauteur de ligne contrôlée */
}

/* Logo et CTA avec plus d'espace */
.site-branding .site-logo {
    font-size: 2.5rem !important; /* Logo encore plus grand */
    padding: 0.5rem 0 !important;
}

.cta-button {
    padding: 1.2rem 2rem !important; /* Plus gros bouton CTA */
    font-size: 1rem !important;
}

/* AJUSTEMENT DE L'ESPACEMENT BODY POUR COMPENSER */
body {
    padding-top: 150px !important; /* Plus d'espace pour compenser le header plus grand */
}

/* Responsive avec header très grand */
@media (max-width: 768px) {
    .site-header {
        padding: 1.5rem 0 !important;
        min-height: 120px !important; /* Encore plus haut sur mobile */
    }
    
    body {
        padding-top: 200px !important; /* Beaucoup plus d'espace sur mobile */
    }
    
    .nav-container {
        padding: 1rem !important;
        min-height: 80px !important;
    }
    
    .main-navigation .nav-menu a {
        padding: 1rem 1.2rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 220px !important; /* Maximum d'espace pour très petits écrans */
    }
    
    .site-header {
        min-height: 140px !important;
    }
}

/* Force la hauteur même avec des conflits CSS */
.site-header::after {
    content: '';
    display: block;
    height: 20px; /* Espace supplémentaire en bas */
}

/* ==========================================================================
   CORRECTION ALIGNEMENT VERTICAL - MENU EN HAUT DU HEADER
   ========================================================================== */

/* Header avec hauteur fixe MAIS menu aligné en haut */
.site-header {
    padding: 0 !important; /* Supprime le padding qui centre le menu */
    min-height: 100px !important; /* Hauteur totale du header */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; /* Aligne le contenu en haut */
}

.header-nav {
    padding: 1rem 0 0 0 !important; /* Padding seulement en haut */
    flex-shrink: 0 !important; /* Empêche la compression */
}

.nav-container {
    min-height: auto !important; /* Laisse la hauteur naturelle */
    padding: 2rem 2rem !important; /* Padding horizontal seulement */
    display: flex !important;
    align-items: center !important; /* Centre verticalement le contenu */
    justify-content: space-between !important;
}

/* Menu aligné normalement */
.main-navigation .nav-menu {
    padding: 0 !important; /* Supprime le padding vertical excessif */
    margin: 0 !important;
}

.main-navigation .nav-menu a {
    padding: 0.8rem 1.2rem !important; /* Padding normal pour les liens */
    font-size: 1rem !important;
}

/* Logo et CTA taille normale */
.site-branding .site-logo {
    font-size: 2.2rem !important;
    padding: 0 !important; /* Supprime le padding qui décale */
}

.cta-button {
    padding: 0.9rem 1.8rem !important;
    font-size: 0.95rem !important;
}

/* Espace en bas du header pour la hauteur totale */
.site-header::after {
    content: '' !important;
    display: block !important;
    height: 30px !important; /* Espace en bas pour atteindre la hauteur totale */
    flex-grow: 1 !important;
}

/* Responsive avec même principe */
@media (max-width: 768px) {
    .site-header {
        min-height: 120px !important;
    }
    
    .site-header::after {
        height: 40px !important;
    }
    
    .header-nav {
        padding: 0.8rem 0 0 0 !important;
    }
    
    .nav-container {
        padding: 0.5rem 1rem !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
    }
    
    .main-navigation .nav-menu a {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .site-header {
        min-height: 140px !important;
    }
    
    .site-header::after {
        height: 50px !important;
    }
}

/* Force l'alignement même avec des conflits */
.site-header * {
    box-sizing: border-box !important;
}

/* ==========================================================================
   NAVIGATION MINIMALISTE - DESIGN UX OPTIMISÉ
   ========================================================================== */

/* SUPPRESSION des anciens styles d'encadrés */
.main-navigation .nav-menu a {
    /* Reset des anciens styles */
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    
    /* Nouveau design minimaliste */
    padding: 16px 20px !important; /* Plus d'espace horizontal */
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    white-space: nowrap !important; /* Empêche le passage à la ligne */
    
    /* Indicateur visuel en bas */
    border-bottom: 2px solid transparent !important;
    
    /* Transition fluide */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    
    /* Position relative pour les effets */
    position: relative !important;
    overflow: hidden !important;
}

/* Effet hover élégant */
.main-navigation .nav-menu a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-bottom-color: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-1px) !important;
    backdrop-filter: blur(8px) !important;
}

/* Page active */
.main-navigation .nav-menu .current-menu-item a,
.main-navigation .nav-menu .current_page_item a {
    color: #ffffff !important;
    border-bottom-color: #64b5f6 !important;
    background: rgba(255, 255, 255, 0.15) !important;
    font-weight: 100 !important;
}

/* Espacement uniforme du menu */
.main-navigation .nav-menu {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important; /* Espace minimal entre les liens */
    align-items: center !important;
}

.main-navigation .nav-menu li {
    margin: 0 !important;
    flex-shrink: 0 !important; /* Empêche la compression */
}

/* Responsive optimisé */
@media (max-width: 1200px) {
    .main-navigation .nav-menu a {
        padding: 14px 16px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 1024px) {
    .main-navigation .nav-menu a {
        padding: 12px 14px !important;
        font-size: 0.88rem !important;
    }
    
    .main-navigation .nav-menu {
        gap: 2px !important;
    }
}

@media (max-width: 768px) {
    /* Menu mobile - passage en colonnes */
    .main-navigation .nav-menu {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
        max-width: 100% !important;
    }
    
    .main-navigation .nav-menu a {
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
        min-width: auto !important;
    }
}

@media (max-width: 480px) {
    .main-navigation .nav-menu a {
        padding: 8px 10px !important;
        font-size: 0.8rem !important;
    }
}

/* Amélioration du focus pour l'accessibilité */
.main-navigation .nav-menu a:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8) !important;
    outline-offset: 2px !important;
    border-bottom-color: rgba(255, 255, 255, 0.8) !important;
}

/* Optimisation pour les longs textes */
.main-navigation .nav-menu a {
    text-overflow: ellipsis !important;
    max-width: 200px !important; /* Largeur maximum par lien */
}

@media (min-width: 1200px) {
    .main-navigation .nav-menu a {
        max-width: none !important; /* Pas de limite sur grand écran */
    }
}

/* ==========================================================================
   CORRECTION BANDEAU BLEU QUI SE SUPERPOSE AU HEADER
   ========================================================================== */

/* Masquer ou repositionner les titres qui créent des bandeaux superposés */
.page-title,
.entry-title,
.wp-block-heading:first-child {
    position: static !important; /* Supprime position fixed/absolute */
    z-index: auto !important; /* Supprime z-index élevé */
    background: none !important; /* Supprime fond bleu */
    top: auto !important; /* Reset position top */
    left: auto !important; /* Reset position left */
    right: auto !important; /* Reset position right */
    width: auto !important; /* Reset largeur */
    height: auto !important; /* Reset hauteur */
}

/* Correction spécifique pour les blocs Gutenberg qui remontent */
.wp-block-group:first-child,
.wp-block-heading[style*="position"],
.entry-header {
    position: static !important;
    z-index: auto !important;
    background: none !important;
    margin-top: 0 !important;
    padding-top: 2rem !important;
}

/* Sécurité : aucun élément ne doit passer au-dessus du header */
.site-main *,
.page-content *,
.entry-content * {
    z-index: auto !important;
    position: relative !important;
}

/* Exception pour les éléments qui doivent vraiment être positionnés */
.floating-demo,
.site-header,
.wp-admin-bar-top {
    /* Ces éléments gardent leur position et z-index */
}

/* Force le header à rester au-dessus */
.site-header {
    z-index: 9999 !important; /* Z-index très élevé pour le header */
    position: fixed !important;
}

/* Masquer spécifiquement le premier H1 s'il crée un bandeau */
.page .entry-title:first-child,
.page h1:first-of-type {
    display: none !important; /* Cache le H1 problématique */
}

/* Ou alternative : le repositionner correctement */
/* 
.page .entry-title:first-child,
.page h1:first-of-type {
    margin-top: 3rem !important;
    background: none !important;
    position: static !important;
    z-index: auto !important;
}
*/

/* Correction pour les blocs avec fond coloré qui remontent */
[class*="wp-block"]:first-child {
    margin-top: 2rem !important;
    position: static !important;
}

/* ==========================================================================
   CORRECTION ESPACEMENT - SUPPRESSION BANDE BLANCHE EXCESSIVE
   ========================================================================== */

/* Réduction drastique du padding body */
body {
    padding-top: 80px !important; /* Beaucoup moins d'espace */
}

/* Réduction de l'espacement du contenu principal */
.site-main {
    padding-top: 1rem !important; /* Minimal */
    margin-top: 0 !important;
}

/* Suppression des marges excessives des premiers éléments */
.page-content,
.wp-site-content,
.site-main > *:first-child {
    margin-top: 0 !important;
}

/* Correction pour les blocs Gutenberg */
.wp-block-group:first-child,
.wp-block-heading:first-child {
    margin-top: 1rem !important; /* Minimal */
    padding-top: 0 !important;
}

/* Responsive avec espacement réduit */
@media (max-width: 768px) {
    body {
        padding-top: 90px !important; /* Réduit sur mobile aussi */
    }
    
    .site-main {
        padding-top: 0.5rem !important;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 100px !important; /* Même sur très petit écran */
    }
}

/* Force la suppression des espaces même avec des conflits */
.page .site-main,
.single .site-main {
    padding-top: 1rem !important; /* Override les anciens styles */
}

/* Contenu directement sous le header */
.entry-content,
.page-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Suppression complète de l'espace blanc entre header et contenu */
.site-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Contenu directement collé au header */
.page-content,
.wp-site-content {
    margin-top: 0 !important;
}

/* Premier élément sans marge */
main > *:first-child,
.site-main > *:first-child {
    padding-top: 0 !important;
}

/* Blocs Gutenberg sans espacement */
.wp-block-group:first-child,
.wp-block-heading:first-child,
.wp-block-paragraph:first-child {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
    padding-top: 0 !important;
}

/* Override pour tous les éléments sous main */
main .wp-block-group,
main .wp-block-paragraph {
    margin-block-start: 0 !important;
}


/* Correction pour restaurer l'espacement du contenu principal */
.site-main {
    padding-top: 2rem !important; /* Espacement minimal mais visible */
    margin-top: 3rem !important;
}


/* Blocs Gutenberg avec espacement restauré */
.wp-block-group:first-child,
.wp-block-heading:first-child,
.wp-block-paragraph:first-child {
    margin-top: 1rem !important;
    margin-block-start: 1rem !important;
    padding-top: 1rem !important;
}

/* Override précédent annulé pour le contenu principal */
main .wp-block-group,
main .wp-block-paragraph {
    margin-block-start: 1rem !important;
}

/* Section hero avec espacement approprié */
.wp-block-group.hero-section,
.hero-section {
    padding-top: 2rem !important;
    margin-top: 1rem !important;
}


/* Restauration du style bold pour les H1 */
h1 {
    font-weight: bold !important;
    font-weight: 700 !important;
}

/* Styles spécifiques pour les H1 dans le contenu principal */
.site-main h1,
.page-content h1,
.entry-content h1 {
    font-weight: bold !important;
    font-weight: 700 !important;
}

/* Override pour tous les H1 peu importe le contexte */
main h1,
.wp-block-heading h1 {
    font-weight: bold !important;
    font-weight: 700 !important;
}


/* Styles pour le titre principal en héros */
.wp-site-content p:first-child {
    font-size: 3rem !important;
    font-weight: bold !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: white !important;
    margin-bottom: 1rem !important;
    line-height: 1.2 !important;
}

/* Style pour le sous-titre (deuxième paragraphe) */
.wp-site-content p:nth-child(2) {
    font-size: 1.2rem !important;
    text-align: center !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 2rem !important;
    line-height: 1.4 !important;
}



/* Responsive pour mobile */
@media (max-width: 768px) {
    .wp-site-content p:first-child {
        font-size: 2rem !important;
    }
    
    .wp-site-content p:nth-child(2) {
        font-size: 1rem !important;
    }
    
}


/* Correction des sélecteurs pour le titre principal */
main p:first-child {
    font-size: 3rem !important;
    font-weight: bold !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: white !important;
    margin-bottom: 1rem !important;
    line-height: 1.2 !important;
}

/* Style pour le sous-titre (deuxième paragraphe) */
main p:nth-child(2) {
    font-size: 1.2rem !important;
    text-align: center !important;
    color: #64b5f6 !important;
    margin-bottom: 2rem !important;
    line-height: 1.4 !important;
}

/* Section main avec fond dégradé */
main.wp-site-content {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%) !important;
}

/* Override des anciens styles incorrects */
.wp-site-content p:first-child,
.wp-site-content p:nth-child(2) {
    font-size: inherit !important;
    color: inherit !important;
    background: none !important;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    main p:first-child {
        font-size: 2rem !important;
    }
    
    main p:nth-child(2) {
        font-size: 1rem !important;
    }
    

}


/* Force absolue pour le titre principal */

/* Force absolue pour le sous-titre */
main.wp-site-content p:nth-of-type(2) {
    font-size: 1.4rem !important;
    font-weight: 400 !important;
    text-align: center !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 2.5rem !important;
    line-height: 1.5 !important;
    font-family: system-ui, -apple-system, sans-serif !important;
}

/* Section hero plus visible */
main.wp-site-content {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%) !important;
    text-align: center !important;
}

/* Responsive */
@media (max-width: 768px) {


/* Styles spécifiques pour les classes hero */
.hero-subtitle {
    font-size: 4rem !important;
    font-weight: 900 !important;
    text-align: center !important;
    color: #ffffff !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.1 !important;
    font-family: system-ui, -apple-system, sans-serif !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

/* Si il y a aussi une classe hero-title */
.hero-title {
    font-size: 4rem !important;
    font-weight: 900 !important;
    text-align: center !important;
    color: #ffffff !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.1 !important;
    font-family: system-ui, -apple-system, sans-serif !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

/* Paragraphe avec classe hero */
p.hero-subtitle,
p.hero-title {
    font-size: 4rem !important;
    font-weight: 900 !important;
    text-align: center !important;
    color: #ffffff !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.1 !important;
    font-family: system-ui, -apple-system, sans-serif !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

/* Responsive pour les classes hero */
@media (max-width: 768px) {
    .hero-subtitle,
    .hero-title,
    p.hero-subtitle,
    p.hero-title {
        font-size: 2.5rem !important;
    }
}


/* Correction spécifique pour hero-subtitle uniquement */
p.hero-subtitle {
    font-size: 4rem !important;
    font-weight: 900 !important;
    text-align: center !important;
    color: #ffffff !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.1 !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

/* Restauration du style normal pour les autres paragraphes */
    font-family: inherit !important;
    text-shadow: none !important;
}


/* Responsive pour hero-subtitle */
@media (max-width: 768px) {
    p.hero-subtitle {
        font-size: 2.5rem !important;
    }
}


/* Correction de la couleur du texte pour la lisibilité */
    font-family: inherit !important;
    text-shadow: none !important;
}

/* Correction spécifique pour les sections */
.section-subtitle p,
.features p,
section p:not(.hero-subtitle) {
    color: #333 !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    text-align: left !important;
    line-height: 1.6 !important;
}

/* Couleur par défaut pour tous les paragraphes */

/* Override pour s'assurer que le hero-subtitle reste blanc */
p.hero-subtitle {
    color: #ffffff !important;
}


/* Styles spécifiques pour les sections de contenu */
.section-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
}

.section-subtitle {
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    color: #666 !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
    line-height: 1.5 !important;
}

.feature-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
}

.feature-card p {
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    color: #555 !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 2rem 1rem !important;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.6rem !important;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
    }
    
    .feature-title {
        font-size: 1.1rem !important;
    }
    
    .feature-card p {
        font-size: 0.9rem !important;
    }
    
    .container {
        padding: 1.5rem 0.75rem !important;
    }
}


/* Correction pour le nouveau HTML hero */
.hero h1 {
    font-size: 3.5rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    text-align: center !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.hero .hero-subtitle {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
}

.hero .hero-description {
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
    line-height: 1.5 !important;
}

/* Override les anciennes règles problématiques pour hero-subtitle */
p.hero-subtitle {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
}

/* Section hero background */
.hero {
    /* background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%) !important; */
    padding: 4rem 0 !important;
    text-align: center !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem !important;
    }
    
    .hero .hero-subtitle,
    p.hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .hero .hero-description {
        font-size: 1rem !important;
    }
    
    .hero {
        padding: 3rem 0 !important;
    }
}


/* === FIX D'URGENCE POUR LISIBILITÉ === */
/* Variables CSS pour système de couleurs cohérent */
:root {
  --klx-primary: #2563eb;
  --klx-primary-dark: #1d4ed8;
  --text-primary-dark: #1f2937;
  --text-secondary-dark: #4b5563;
  --text-primary-light: #ffffff;
  --bg-white: #ffffff;
}

/* Fix critique immédiat - toutes les sections sur fond blanc */

/* Fix pour tous les titres sur fond blanc */

/* Fix pour tous les paragraphes sur fond blanc */

/* Fix pour les liens */


/* Hero section reste sur gradient avec texte blanc */
.hero,
.hero * {
  /* color: var(--text-primary-light); */
}

/* Suppression des overrides problématiques précédents */

/* Si on a besoin d'un style spécial pour le hero, on le fait spécifiquement */
.hero .hero-content p:first-of-type,
.hero p.hero-subtitle {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    color: var(--text-primary-light) !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.4 !important;
}


/* Correction du font-weight trop gras */
.hero .hero-content p:first-of-type,
.hero p.hero-subtitle {
    font-weight: 600 !important; /* Semi-bold au lieu de 900 */
}

.hero h1 {
    font-weight: 700 !important; /* Bold normal au lieu de 900 */
}


/* Correction 1: Suppression du background-color forcé */

/* Correction 2: Annulation de la règle qui cache les H1 */
.page .entry-title:first-child,
.page h1:first-of-type {
    display: block !important; /* Réaffiche les H1 cachés */
}

/* On garde seulement le H1 hero visible avec ses styles */
.hero h1 {
    display: block !important;
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    color: var(--text-primary-light) !important;
    text-align: center !important;
    line-height: 1.2 !important;
}


/* Correction 1: Suppression de la couleur #00d4aa sur les titres */


/* Seul le hero garde son gradient */
.hero {
    /* background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%) !important; */
}


/* Annulation spécifique des gradients sur main et wp-site-content */
main.wp-site-content {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
     /* Padding réduit */
    text-align: left !important; /* Alignement normal */
}

.wp-site-content {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
     /* Padding minimal */
}

/* Override pour être sûr */
main {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}


/* Exception spécifique pour final-cta */
.final-cta {
    padding: 4rem 0 !important;
    background: linear-gradient(135deg, #00d4aa 0%, #00c399 100%) !important;
    background-color: #00d4aa !important; /* Fallback */
    color: white !important;
    text-align: center !important;
}

.final-cta h1,
.final-cta h2,
.final-cta h3,
.final-cta h4,
.final-cta h5,
.final-cta h6 {
    color: white !important;
}

.final-cta p {
    color: white !important;
}

.final-cta a {
    color: white !important;
}


/* Version sans !important pour final-cta */
.final-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #00d4aa 0%, #00c399 100%);
    background-color: #00d4aa; /* Fallback */
    color: white;
    text-align: center;
}

.final-cta h1,
.final-cta h2,
.final-cta h3,
.final-cta h4,
.final-cta h5,
.final-cta h6 {
    color: white;
}

.final-cta p {
    color: white;
}

.final-cta a {
    color: white;
}


/* === NETTOYAGE GLOBAL - SUPPRESSION DES !IMPORTANT EXCESSIFS === */

/* Reset des couleurs sans !important */

/* Paragraphes normaux sans !important */

/* Liens sans !important */


/* Backgrounds sans !important */

main.wp-site-content {
    background: transparent;
    background-color: transparent;
    background-image: none;
    text-align: left;
}

.wp-site-content {
    background: transparent;
    background-color: transparent;
    background-image: none;
}

/* Override des règles de reset précédentes */
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    color: var(--text-primary-light) !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%) !important;
}


/* Suppression des règles problématiques sur les titres */


/* Correction de .feature-title avec !important */
.feature-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #1e3c72 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
}


/* Remontée de page-content-area pour compenser le page-header masqué */
.page-content-area {
    margin-top: -2rem;
}


/* Masquage complet du page-header */
.page-header {
    display: none !important;
}


/* Remontée supplémentaire de page-content-area */
.page-content-area {
    margin-top: -4rem !important;
}



.menu-toggle:hover {
    color: #64b5f6 !important;
}

/* Menu mobile fermé par défaut */
@media (max-width: 768px) {
    /* Afficher le bouton burger sur mobile */
    .menu-toggle {
        display: block !important;
        order: 3 !important; /* Après le logo et avant le CTA */
    }
    
    /* Menu principal masqué par défaut sur mobile */
    .main-navigation .nav-menu {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(30, 60, 114, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        padding: 1rem 0 !important;
        box-shadow: 0 4px 20px rgba(30, 60, 114, 0.4) !important;
        border-radius: 0 0 15px 15px !important;
        z-index: 999 !important;
    }
    
    /* Menu mobile ouvert */
    .main-navigation.menu-open .nav-menu {
        display: flex !important;
    }
    
    /* Liens du menu mobile */
    .main-navigation .nav-menu a {
        padding: 1rem 2rem !important;
        text-align: center !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        width: 100% !important;
        max-width: none !important;
    }
    
    /* Container mobile ajusté */
    .nav-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative !important;
    }
    
    /* Logo mobile */
    .site-branding {
        order: 1 !important;
    }
    
    /* CTA mobile */
    .nav-cta {
        order: 2 !important;
    }
    
    /* Navigation mobile */
    .main-navigation {
        order: 4 !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }
}

/* Animation du menu burger */
.menu-toggle.active {
    color: #64b5f6 !important;
}

/* Responsive pour très petits écrans */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.5rem 1rem !important;
    }
    
    .menu-toggle {
        font-size: 1.3rem !important;
    }
    
    .main-navigation .nav-menu a {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}





/* ==========================================================================
   CORRECTION MENU RESPONSIVE - BOUTON BURGER ET FONCTIONNALITÉ
   ========================================================================== */

/* Bouton burger moderne */
.menu-toggle {
    display: none !important; /* Masqué par défaut sur desktop */
    background: none !important;
    border: none !important;
    color: white !important;
    font-size: 1.8rem !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    z-index: 1001 !important;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #64b5f6 !important;
}

.menu-toggle:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8) !important;
    outline-offset: 2px !important;
}

/* Animation du bouton burger quand actif */
.menu-toggle.active {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #64b5f6 !important;
    transform: rotate(90deg) !important;
}

/* Responsive mobile */
@media (max-width: 768px) {
    /* Affichage du bouton burger sur mobile */
    .menu-toggle {
        display: block !important;
    }
    
    /* Container mobile ajusté */
    .nav-container {
        position: relative !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    
    /* Logo reste à gauche */
    .site-branding {
        order: 1 !important;
        flex-shrink: 0 !important;
    }
    
    /* Bouton burger au centre/droite */
    .menu-toggle {
        order: 3 !important;
        flex-shrink: 0 !important;
    }
    
    /* Navigation principale - menu déroulant */
    .main-navigation {
        order: 4 !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: rgba(30, 60, 114, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        box-shadow: 0 8px 30px rgba(30, 60, 114, 0.4) !important;
        border-radius: 0 0 15px 15px !important;
        z-index: 1000 !important;
        transform: translateY(-10px) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    /* Menu ouvert */
    .main-navigation.menu-open {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Menu liste sur mobile */
    .main-navigation .nav-menu {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0.5rem 0 !important;
        width: 100% !important;
    }
    
    /* Liens du menu mobile */
    .main-navigation .nav-menu li {
        width: 100% !important;
        margin: 0 !important;
    }
    
    .main-navigation .nav-menu a {
        display: block !important;
        width: 100% !important;
        padding: 1rem 2rem !important;
        text-align: left !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        background: none !important;
        border-radius: 0 !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        max-width: none !important;
        white-space: normal !important;
        transition: background 0.2s ease !important;
    }
    
    .main-navigation .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        border-bottom-color: rgba(255, 255, 255, 0.2) !important;
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Page active sur mobile */
    .main-navigation .nav-menu .current-menu-item a,
    .main-navigation .nav-menu .current_page_item a {
        background: rgba(100, 181, 246, 0.2) !important;
        border-bottom-color: #64b5f6 !important;
    }
    
    /* Dernier lien sans bordure */
    .main-navigation .nav-menu li:last-child a {
        border-bottom: none !important;
    }
}

/* Responsive pour très petits écrans */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.5rem 1rem !important;
    }
    
    .menu-toggle {
        font-size: 1.6rem !important;
        padding: 0.4rem !important;
    }
    
    .main-navigation .nav-menu a {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    .site-branding .site-logo {
        font-size: 1.8rem !important;
    }
}

/* Animation d'ouverture/fermeture du menu */
@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* Overlay pour fermer le menu en cliquant ailleurs */
.main-navigation.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
}


/* ==========================================================================
   CORRECTIONS COMPLÈTES - HEADER + MENUS + PRICING
   ========================================================================== */

/* 1. HEADER MOBILE COMPACT */
@media (max-width: 768px) {
    .site-header {
        padding: 0 !important;
        min-height: 60px !important;
    }
    
    .site-header::after {
        height: 0 !important;
    }
    
    .header-nav {
        padding: 0 !important;
    }
    
    .nav-container {
        padding: 0.6rem 1rem !important;
        min-height: auto !important;
        height: 60px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .site-branding .site-logo {
        font-size: 1.6rem !important;
        padding: 0 !important;
    }
    
    .menu-toggle {
        font-size: 1.4rem !important;
        padding: 0.3rem !important;
    }
    
    body {
        padding-top: 60px !important;
    }
    
    .main-navigation {
        top: 60px !important;
    }
}

@media (max-width: 480px) {
    .site-header {
        min-height: 55px !important;
    }
    
    .nav-container {
        height: 55px !important;
        padding: 0.5rem 0.8rem !important;
    }
    
    .site-branding .site-logo {
        font-size: 1.4rem !important;
    }
    
    .menu-toggle {
        font-size: 1.3rem !important;
        padding: 0.25rem !important;
    }
    
    body {
        padding-top: 55px !important;
    }
    
    .main-navigation {
        top: 55px !important;
    }
}

/* 2. MENU DROPDOWN/SUBMENU */
.nav-menu {
    position: relative;
}

.menu-item {
    position: relative;
}

.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.menu-item-has-children.is-open > a::after {
    transform: rotate(180deg);
}

/* Desktop Dropdowns */
@media (min-width: 769px) {
    .sub-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        min-width: 220px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-radius: 12px !important;
        padding: 8px 0 !important;
        margin-top: 8px !important;
        box-shadow: 
            0 10px 40px rgba(30, 60, 114, 0.15),
            0 4px 12px rgba(0, 0, 0, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-10px) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1000 !important;
        list-style: none !important;
    }

    .menu-item-has-children:hover .sub-menu,
    .menu-item-has-children:focus-within .sub-menu,
    .menu-item-has-children.is-open .sub-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .sub-menu li {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        opacity: 0 !important;
        transform: translateY(10px) !important;
        transition: all 0.3s ease !important;
    }

    .menu-item-has-children:hover .sub-menu li,
    .menu-item-has-children:focus-within .sub-menu li,
    .menu-item-has-children.is-open .sub-menu li {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .sub-menu li:nth-child(1) { transition-delay: 0.1s !important; }
    .sub-menu li:nth-child(2) { transition-delay: 0.2s !important; }
    .sub-menu li:nth-child(3) { transition-delay: 0.3s !important; }

    .sub-menu a {
        display: block !important;
        padding: 12px 20px !important;
        color: #1e3c72 !important;
        text-decoration: none !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        border-radius: 8px !important;
        margin: 0 8px !important;
        transition: all 0.3s ease !important;
        background: none !important;
        border: none !important;
        max-width: none !important;
        white-space: nowrap !important;
    }

    .sub-menu a:hover,
    .sub-menu a:focus {
        background: linear-gradient(135deg, #64b5f6 0%, #1e3c72 100%) !important;
        color: white !important;
        transform: translateX(4px) !important;
        box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3) !important;
    }

    .main-navigation .nav-menu .sub-menu a {
        padding: 12px 20px !important;
        margin: 0 8px !important;
        border-bottom: none !important;
        border-radius: 8px !important;
        color: #1e3c72 !important;
        font-size: 14px !important;
        text-align: left !important;
        width: auto !important;
    }
}

/* Mobile Submenus */
@media (max-width: 768px) {
    .sub-menu {
        background: rgba(0, 0, 0, 0.2) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        margin-top: 0 !important;
        border-radius: 0 0 12px 12px !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        list-style: none !important;
        padding: 0 !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        z-index: auto !important;
        box-shadow: none !important;
        border: none !important;
    }

    .menu-item-has-children.is-open .sub-menu {
        max-height: 200px !important;
    }

    .sub-menu li {
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .sub-menu a {
        display: block !important;
        padding: 14px 20px 14px 40px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        background: none !important;
        border: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        text-align: left !important;
        max-width: none !important;
        white-space: normal !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .sub-menu a:before {
        content: '→' !important;
        position: absolute !important;
        left: 20px !important;
        opacity: 0 !important;
        transform: translateX(-10px) !important;
        transition: all 0.3s ease !important;
    }

    .sub-menu a:hover,
    .sub-menu a:focus {
        background: rgba(100, 181, 246, 0.15) !important;
        color: #64b5f6 !important;
        padding-left: 45px !important;
        transform: none !important;
        box-shadow: none !important;
        border-bottom: none !important;
    }

    .sub-menu a:hover:before,
    .sub-menu a:focus:before {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    .menu-item-has-children > a {
        position: relative !important;
        cursor: pointer !important;
    }

    .menu-item-has-children > a::after {
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
}

/* 3. OFFRE STANDARD EN GRIS */
.pricing-card:nth-child(1) {
    border-color: #6c757d !important;
}

.pricing-card:nth-child(1) .pricing-header {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
    color: white !important;
}

.pricing-card:nth-child(1) div[style*="position: absolute"][style*="top: -15px"] {
    background: #495057 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(73, 80, 87, 0.3) !important;
}

.pricing-card:nth-child(1) .btn-primary {
    background: #6c757d !important;
    border-color: #6c757d !important;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3) !important;
}

.pricing-card:nth-child(1) .btn-primary:hover {
    background: #5a6268 !important;
    border-color: #5a6268 !important;
    box-shadow: 0 6px 20px rgba(90, 98, 104, 0.4) !important;
}

.pricing-card.standard-grey {
    border-color: #6c757d !important;
}

.pricing-card.standard-grey .pricing-header {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
    color: white !important;
}

.pricing-card.standard-grey div[style*="position: absolute"],
.pricing-card.standard-grey .pricing-badge {
    background: #495057 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(73, 80, 87, 0.3) !important;
}

.pricing-card.standard-grey .btn-primary {
    background: #6c757d !important;
    border-color: #6c757d !important;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3) !important;
}

.pricing-card.standard-grey .btn-primary:hover {
    background: #5a6268 !important;
    border-color: #5a6268 !important;
    box-shadow: 0 6px 20px rgba(90, 98, 104, 0.4) !important;
}

/* 4. CENTRAGE DES BOUTONS PRICING */
.pricing-footer {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 1.5rem 2rem !important;
}

.pricing-footer .btn {
    margin: 0 auto !important;
    display: inline-block !important;
}

.pricing-footer a {
    margin: 0 auto !important;
    display: inline-block !important;
}

@media (max-width: 768px) {
    .pricing-footer {
        text-align: center !important;
        padding: 1rem 1.5rem !important;
    }
    
    .pricing-footer .btn {
        width: auto !important;
        margin: 0 auto !important;
    }
}

/* 5. ACCESSIBILITÉ ET SUPPORT */
.menu-item a:focus,
.sub-menu a:focus {
    outline: 2px solid #64b5f6 !important;
    outline-offset: 2px !important;
}

@media (prefers-contrast: high) {
    .sub-menu {
        background: white !important;
        border: 2px solid #1e3c72 !important;
    }
    
    .sub-menu a {
        color: #1e3c72 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sub-menu,
    .sub-menu li,
    .menu-item > a,
    .sub-menu a {
        transition: none !important;
    }
}


/* ==========================================================================
   MODAL LIGHTBOX POUR LES IMAGES - DESIGN MODERNE
   ========================================================================== */

/* Structure du modal */
.klx-image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.klx-image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Contenu du modal */
.klx-modal-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    margin: auto;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.klx-image-modal.active .klx-modal-content {
    transform: scale(1);
}

/* Image dans le modal */
.klx-modal-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* Bouton de fermeture */
.klx-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.klx-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    color: #ff6b6b;
}

/* Caption/titre de l'image */
.klx-modal-caption {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 1.5rem;
    text-align: center;
    border-radius: 8px;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Indicateurs de navigation */
.klx-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    user-select: none;
}

.klx-modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.klx-modal-prev {
    left: -80px;
}

.klx-modal-next {
    right: -80px;
}

/* Indicateur de chargement */
.klx-modal-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #00d4aa;
    border-radius: 50%;
    animation: klx-spin 1s linear infinite;
}

@keyframes klx-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Styles pour les images cliquables */
.klx-clickable-image {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.klx-clickable-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    filter: brightness(1.05);
}

/* Badge "Cliquer pour agrandir" */
.klx-image-container {
    position: relative;
    display: inline-block;
}

.klx-image-container::after {
    content: "🔍 Cliquer pour agrandir";
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
}

.klx-image-container:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive mobile */
@media (max-width: 768px) {
    .klx-modal-content {
        max-width: 98%;
        max-height: 98%;
    }
    
    .klx-modal-image {
        max-height: 80vh;
        border-radius: 8px;
    }
    
    .klx-modal-close {
        top: -40px;
        right: -10px;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
    
    .klx-modal-caption {
        bottom: -80px;
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
    
    .klx-modal-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .klx-modal-prev {
        left: -60px;
    }
    
    .klx-modal-next {
        right: -60px;
    }
    
    /* Badge plus petit sur mobile */
    .klx-image-container::after {
        font-size: 0.7rem;
        padding: 3px 6px;
        bottom: 4px;
        right: 4px;
    }
}

/* Animation d'entrée */
@keyframes klx-modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Gestion du focus pour l'accessibilité */
.klx-image-modal:focus {
    outline: none;
}

.klx-modal-close:focus,
.klx-modal-nav:focus {
    outline: 2px solid #00d4aa;
    outline-offset: 2px;
}

/* Support pour les images sans lien */
.wp-content img:not([class*="emoji"]):not(.no-lightbox) {
    cursor: pointer;
}

