/**
 * Custom CSS for Site Editor (FSE) + Front-end
 * Force Tailwind styles that don't apply via className
 * All selectors are doubled: with .editor-styles-wrapper for Site Editor, without for front-end
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Variables)
   Note: Brand colors, gradients, shadows, transitions
   are now defined in input.css (@theme block)
   ============================================ */
:root,
.editor-styles-wrapper {
    /* Fluid Typography - synchronized with theme.json */
    --fluid-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
    --fluid-sm: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
    --fluid-base: clamp(1rem, 0.9rem + 0.35vw, 1.125rem);
    --fluid-lg: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
    --fluid-xl: clamp(1.25rem, 1rem + 0.75vw, 1.75rem);
    --fluid-2xl: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
    --fluid-3xl: clamp(1.875rem, 1.5rem + 1.25vw, 2.5rem);
    --fluid-4xl: clamp(2.25rem, 1.75rem + 1.5vw, 3rem);
    --fluid-5xl: clamp(3rem, 2rem + 2vw, 4rem);
    --fluid-6xl: clamp(3.75rem, 2.5rem + 2.5vw, 5rem);

    /* Neutral Colors (not in Tailwind theme) */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --slate-700: #334155;
    --slate-800: #1e293b;
}

/* ============================================
   FORCE LIGHT MODE IN EDITOR
   ============================================ */

/* Override dark mode preference in Site Editor */
.editor-styles-wrapper,
.block-editor-block-list__layout,
.edit-site-visual-editor,
.edit-site-visual-editor__editor-canvas,
.editor-visual-editor {
    color-scheme: light !important;
    background-color: #ffffff !important;
    color: #1e293b !important; /* slate-800 */
}

/* Force light background on iframe canvas */
body.editor-styles-wrapper,
.editor-styles-wrapper body {
    background-color: #ffffff !important;
}

/* Override WordPress dark mode styles */
@media (prefers-color-scheme: dark) {
    .editor-styles-wrapper,
    .editor-styles-wrapper *:not(.wp-block-code):not(code):not(pre) {
        color-scheme: light !important;
    }

    .editor-styles-wrapper {
        background-color: #ffffff !important;
    }

    /* Keep text readable */
    .editor-styles-wrapper p,
    .editor-styles-wrapper h1,
    .editor-styles-wrapper h2,
    .editor-styles-wrapper h3,
    .editor-styles-wrapper h4,
    .editor-styles-wrapper h5,
    .editor-styles-wrapper h6,
    .editor-styles-wrapper span,
    .editor-styles-wrapper li {
        color: inherit;
    }
}

/* ============================================
   PRICING CARDS - EDITABLE FEATURES
   ============================================ */

/* Feature item styling - transforms paragraph into styled list item */
.feature-item,
.editor-styles-wrapper .feature-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    font-size: var(--fluid-sm) !important;
    line-height: 1.4 !important;
    padding: 0.25rem 0 !important;
    margin: 0 !important;
    transition: transform 0.15s ease !important;
    text-align: left !important;
}

.feature-item:hover,
.editor-styles-wrapper .feature-item:hover {
    transform: translateX(0.25rem);
}

/* Feature item with check icon - the ✓ becomes styled */
.feature-item::before,
.editor-styles-wrapper .feature-item::before {
    content: '✓';
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--isi-gradient-135);
    color: white;
    border-radius: 50%;
    font-size: 0.625rem;
    font-weight: bold;
    margin-top: 0.125rem;
}

/* Features section container - grows to fill space */
.pricing-card .flex-1,
.editor-styles-wrapper .pricing-card .flex-1 {
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

/* Features container - stack naturally */
.pricing-features,
.editor-styles-wrapper .pricing-features {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin-bottom: 0 !important;
}

/* Card footer - stick to bottom */
.pricing-card > .wp-block-group:last-child,
.editor-styles-wrapper .pricing-card > .wp-block-group:last-child {
    margin-top: auto !important;
}

/* Pricing card description - remove width and height constraints */
.pricing-card p.h-12,
.editor-styles-wrapper .pricing-card p.h-12,
.pricing-card .h-12,
.editor-styles-wrapper .pricing-card .h-12,
.pricing-card p.max-w-sm,
.editor-styles-wrapper .pricing-card p.max-w-sm {
    height: auto !important;
    min-height: auto !important;
    max-width: none !important;
}

/* Pricing badge styling */
.pricing-badge,
.editor-styles-wrapper .pricing-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 9999px !important;
    color: white !important;
    font-size: var(--fluid-sm) !important;
    font-weight: 600 !important;
}

/* Badge color variants */
.pricing-badge-starter,
.editor-styles-wrapper .pricing-badge-starter {
    background: linear-gradient(to right, #3B82F6, #3B82F6dd) !important;
}

.pricing-badge-popular,
.editor-styles-wrapper .pricing-badge-popular {
    background: linear-gradient(to right, #22C55E, #22C55Edd) !important;
}

.pricing-badge-premium,
.editor-styles-wrapper .pricing-badge-premium {
    background: linear-gradient(to right, #8B5CF6, #8B5CF6dd) !important;
}

/* Badge paragraphs - no margin */
.pricing-badge p,
.editor-styles-wrapper .pricing-badge p {
    margin: 0 !important;
    color: white !important;
}

/* Pricing grid - equal height cards */
.pricing-grid,
.editor-styles-wrapper .pricing-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    align-items: stretch !important;
    gap: 2rem !important;
}

/* Mobile: 1 colonne */
@media (max-width: 1023px) {
    .pricing-grid,
    .editor-styles-wrapper .pricing-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Reset margins on pricing cards */
.pricing-grid > .wp-block-group,
.editor-styles-wrapper .pricing-grid > .wp-block-group,
.pricing-grid > .pricing-card,
.editor-styles-wrapper .pricing-grid > .pricing-card {
    margin: 0 !important;
}

/* Pricing card base styles */
.pricing-card,
.editor-styles-wrapper .pricing-card {
    display: flex !important;
    flex-direction: column !important;
    background: linear-gradient(to bottom right, #ffffff, #f9fafb) !important;
    border-radius: 1.5rem !important;
    border: 1px solid var(--gray-200) !important;
    box-shadow: var(--shadow-lg) !important;
    overflow: hidden !important;
    transition: var(--transition-base) !important;
}

.pricing-card:hover,
.editor-styles-wrapper .pricing-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-xl) !important;
}

/* Popular card highlight - sans scale pour alignement parfait */
.pricing-card-popular,
.editor-styles-wrapper .pricing-card-popular {
    border: 2px solid rgb(34, 197, 94) !important;
    box-shadow: 0 25px 50px -12px rgba(34, 197, 94, 0.25), 0 10px 20px -5px rgba(34, 197, 94, 0.15) !important;
    position: relative;
    z-index: 10;
}

.pricing-card-popular:hover,
.editor-styles-wrapper .pricing-card-popular:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 30px 60px -12px rgba(34, 197, 94, 0.3), 0 15px 30px -5px rgba(34, 197, 94, 0.2) !important;
}

/* Prix principal - grand, gradient bleu */
.price-main,
.editor-styles-wrapper .price-main {
    background: var(--isi-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    line-height: 1.1 !important;
}

/* Option annuelle - petit, gris */
.price-annual-option,
.editor-styles-wrapper .price-annual-option {
    font-size: var(--fluid-sm) !important;
    color: var(--gray-500) !important;
    font-weight: 500 !important;
    margin-top: 0.5rem !important;
}

/* Highlight box in cards */
.pricing-highlight,
.editor-styles-wrapper .pricing-highlight {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
    border-radius: 0.75rem !important;
    margin-bottom: 1.5rem !important;
}

/* CTA button in pricing cards - Reset complet + style unifié */
.pricing-cta-button,
.editor-styles-wrapper .pricing-cta-button {
    width: 100% !important;
    margin-top: 0 !important;
}

/* Reset WordPress default button styles first */
.pricing-cta-button .wp-block-button__link,
.editor-styles-wrapper .pricing-cta-button .wp-block-button__link {
    background: var(--isi-gradient) !important;
    /* Layout */
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 1rem 2rem !important;
    /* Typography */
    color: white !important;
    font-weight: 600 !important;
    font-size: var(--fluid-base) !important;
    /* Border & shape */
    border-radius: 0.75rem !important;
    border: none !important;
    /* Animation */
    transition: var(--transition-base) !important;
    box-shadow: var(--shadow-md) !important;
}

.pricing-cta-button .wp-block-button__link:hover,
.editor-styles-wrapper .pricing-cta-button .wp-block-button__link:hover {
    box-shadow: var(--shadow-blue) !important;
    transform: translateY(-2px);
}


/* ============================================
   HEADER STYLES
   ============================================ */

/* Level 1: Fixed header container (outermost) */
/* Dans Site Editor: position relative pour permettre l'édition */
.editor-styles-wrapper header > .wp-block-group:first-child {
    position: relative !important;
    padding-top: 1.25rem !important;
    padding-bottom: 1.5rem !important; /* Space for shadow */
    background: transparent !important;
    max-width: 1152px !important; /* max-w-6xl */
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: visible !important;
}

/* Sur le front-end: position fixed */
header > .wp-block-group:first-child {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 50 !important;
    padding-top: 1.25rem !important;
    padding-bottom: 1.5rem !important; /* Space for shadow */
    background: transparent !important;
    max-width: 1152px !important; /* max-w-6xl */
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: visible !important;
}

/* Level 2: Inner container with horizontal padding */
.editor-styles-wrapper header > .wp-block-group:first-child > .wp-block-group,
header > .wp-block-group:first-child > .wp-block-group {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    background: transparent !important;
    overflow: visible !important;
}

/* Header element itself - allow shadow overflow */
.editor-styles-wrapper header,
header {
    overflow: visible !important;
}

/* Level 3: Navbar with rounded design, backdrop blur and shadow */
.navbar-blur,
.editor-styles-wrapper .navbar-blur {
    position: relative !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: 9999px !important;
    padding: 1rem 1.5rem !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1.5rem !important;
    transition: var(--transition-smooth) !important;
    /* Backdrop blur - plus intense pour meilleure transparence */
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    /* Ombre subtile */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Logo + Site Title Group - pas de bordure ni ombre, complètement transparent */
.editor-styles-wrapper header .wp-block-group.flex.items-center,
header .wp-block-group.flex.items-center,
.editor-styles-wrapper header .wp-block-group.flex.items-center.gap-3,
header .wp-block-group.flex.items-center.gap-3 {
    flex-shrink: 0 !important;
    gap: 0.75rem !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Force transparent sur tous les enfants du logo group */
.editor-styles-wrapper header .wp-block-group.flex.items-center *,
header .wp-block-group.flex.items-center * {
    background: transparent !important;
}

/* Logo - fixed width */
.editor-styles-wrapper header .wp-block-site-logo,
header .wp-block-site-logo {
    width: 40px !important;
    flex-shrink: 0;
}

.editor-styles-wrapper header .wp-block-site-logo img,
header .wp-block-site-logo img {
    width: 40px !important;
    height: auto !important;
    max-width: 40px !important;
}

/* Site Title - next to logo */
.editor-styles-wrapper header .wp-block-site-title,
header .wp-block-site-title {
    font-size: var(--fluid-xl) !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.editor-styles-wrapper header .wp-block-site-title a,
header .wp-block-site-title a {
    color: var(--slate-700) !important; /* slate-700 */
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.editor-styles-wrapper header .wp-block-site-title a:hover,
header .wp-block-site-title a:hover {
    color: var(--isi-blue) !important; /* isiforecast-blue */
}

/* ============================================
   NAVIGATION - Mobile First Approach
   ============================================ */

/* Base - s'applique à toutes les tailles */
.editor-styles-wrapper header .wp-block-navigation,
header .wp-block-navigation {
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
}

/* ============================================
   MOBILE NAVIGATION - Custom JavaScript Dropdown
   ============================================ */

@media (max-width: 1023px) {
    /* Hide CTA button on mobile */
    header .wp-block-buttons {
        display: none !important;
    }

    /* Hide WordPress default navigation links on mobile (we use JS dropdown) */
    header .wp-block-navigation__responsive-container,
    header .wp-block-navigation__responsive-container-open {
        display: none !important;
    }

    /* Menu is now sibling of navbar-blur, positioned by JS on parent */

    /* Custom hamburger button (created by mobile-nav.js) */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0.5rem;
        background: transparent;
        border: none;
        border-radius: 0.5rem;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        gap: 5px;
    }

    .mobile-menu-toggle:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .hamburger-line {
        display: block;
        width: 22px;
        height: 2px;
        background-color: var(--slate-700, #334155);
        border-radius: 1px;
        transition: all 0.3s ease;
    }

    /* Hamburger animation when open */
    .mobile-menu-toggle.is-active .hamburger-line-1 {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle.is-active .hamburger-line-2 {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-menu-toggle.is-active .hamburger-line-3 {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Mobile dropdown menu (created by mobile-nav.js) */
    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 0.75rem;
        padding: 1.25rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 1rem;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        border: 1px solid rgba(0, 86, 150, 0.1);
        z-index: 9999;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }

    .mobile-menu.is-open {
        display: block;
        animation: slideDown 0.3s ease;
    }

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

    .mobile-menu-inner {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .mobile-menu-link {
        display: block;
        padding: 1rem;
        font-size: 1rem;
        font-weight: 600;
        color: var(--slate-700, #334155);
        text-decoration: none;
        text-align: center;
        border: 2px solid rgba(0, 86, 150, 0.1);
        border-radius: 0.75rem;
        background-color: rgba(255, 255, 255, 0.9);
        transition: all 0.2s ease;
    }

    .mobile-menu-link:hover {
        background-color: var(--isi-blue, #005696);
        border-color: var(--isi-blue, #005696);
        color: white;
    }

    .mobile-menu-cta {
        display: block;
        margin-top: 0.5rem;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        color: white;
        text-decoration: none;
        text-align: center;
        background: linear-gradient(135deg, var(--isi-blue, #005696), var(--isi-cyan, #40b1a1));
        border-radius: 0.75rem;
        transition: all 0.2s ease;
    }

    .mobile-menu-cta:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 86, 150, 0.3);
    }
}

/* DESKTOP: Menu horizontal classique */
@media (min-width: 1024px) {
    /* Cacher le hamburger et menu mobile custom sur desktop */
    .mobile-menu-toggle,
    .mobile-menu {
        display: none !important;
    }

    /* Cacher le hamburger WordPress sur desktop */
    .editor-styles-wrapper header .wp-block-navigation__responsive-container-open,
    header .wp-block-navigation__responsive-container-open {
        display: none !important;
    }

    .editor-styles-wrapper header .wp-block-navigation,
    header .wp-block-navigation {
        justify-content: center !important;
    }

    .editor-styles-wrapper header .wp-block-navigation__responsive-container,
    .editor-styles-wrapper header .wp-block-navigation__container,
    header .wp-block-navigation__responsive-container,
    header .wp-block-navigation__container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 1.5rem !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .editor-styles-wrapper header .wp-block-navigation-item,
    header .wp-block-navigation-item {
        margin: 0 !important;
    }

    /* nav-link-desktop styles */
    .editor-styles-wrapper header .wp-block-navigation-item__content,
    header .wp-block-navigation-item__content {
        position: relative;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        border-radius: 1rem;
        font-weight: 500;
        text-decoration: none;
        transition: var(--transition-smooth);
        min-height: 2.75rem;
        padding: 0.5rem 1rem;
        color: rgb(51 65 85);
        white-space: nowrap;
    }

    .editor-styles-wrapper header .wp-block-navigation-item__content:hover,
    header .wp-block-navigation-item__content:hover {
        background-color: var(--isi-blue) !important;
        color: white !important;
    }

    .editor-styles-wrapper header .wp-block-navigation-item__content:focus,
    header .wp-block-navigation-item__content:focus {
        outline: 2px solid var(--isi-yellow) !important;
        outline-offset: 2px;
    }
}

/* CTA Button - gradient button with original styles */
.editor-styles-wrapper header .wp-block-buttons,
header .wp-block-buttons {
    flex-shrink: 0;
}

.editor-styles-wrapper header .wp-block-button,
header .wp-block-button {
    border-radius: 9999px !important;
}

.editor-styles-wrapper header .wp-block-button__link,
header .wp-block-button__link {
    /* btn-nav-desktop */
    min-height: 2.75rem;
    padding: 0.75rem 1.5rem !important;
    font-size: var(--fluid-sm) !important;

    /* btn-nav-base */
    position: relative;
    z-index: 60;
    white-space: nowrap;
    flex-shrink: 0;
    overflow: hidden;

    /* btn-cta */
    background: var(--isi-gradient-135) !important; /* primary to accent (blue to cyan) */
    color: white !important;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 10%);

    border-radius: 9999px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: var(--transition-smooth) !important;
    border: none !important;
}

/* Shine effect on hover */
.editor-styles-wrapper header .wp-block-button__link::before,
header .wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 20%), transparent);
    transition: left 0.6s;
}

.editor-styles-wrapper header .wp-block-button__link:hover,
header .wp-block-button__link:hover {
    box-shadow: 0 10px 25px -3px rgb(0 86 150 / 30%) !important;
}

.editor-styles-wrapper header .wp-block-button__link:hover::before,
header .wp-block-button__link:hover::before {
    left: 100%;
}

.editor-styles-wrapper header .wp-block-button__link:focus,
header .wp-block-button__link:focus {
    outline: 3px solid var(--isi-yellow) !important; /* warning/yellow */
    outline-offset: 3px;
    box-shadow: 0 0 0 1px #fff !important;
}

/* Mobile - hide CTA button */
@media (max-width: 1023px) {
    .editor-styles-wrapper header .wp-block-buttons,
    header .wp-block-buttons {
        display: none;
    }
}

/* ============================================
   FOOTER STYLES
   ============================================ */

/* Footer gradient background */
.editor-styles-wrapper footer .wp-block-group:first-child,
footer .wp-block-group:first-child {
    background: linear-gradient(to bottom right, #f9fafb, #f3f4f6);
    border-top: 1px solid var(--gray-200);
    padding-top: 3rem;
    padding-bottom: 1.5rem;
    margin-top: 4rem;
}

/* Footer headings - ISIForecast blue with yellow border */
.editor-styles-wrapper footer .wp-block-heading,
footer .wp-block-heading {
    color: var(--isi-blue) !important; /* isiforecast-blue */
    font-size: var(--fluid-lg) !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid var(--isi-yellow) !important; /* isiforecast-yellow */
}

/* Footer links */
.editor-styles-wrapper footer a,
footer a {
    color: var(--gray-600); /* gray-600 */
    transition: color 0.2s ease;
    text-decoration: none;
}

.editor-styles-wrapper footer a:hover,
footer a:hover {
    color: var(--isi-blue); /* isiforecast-blue */
}

/* Footer text */
.editor-styles-wrapper footer .wp-block-paragraph,
footer .wp-block-paragraph {
    color: var(--gray-600); /* gray-600 */
    font-size: var(--fluid-sm);
}

/* Footer Navigation - réduire les écarts entre les liens */
footer .wp-block-navigation,
.editor-styles-wrapper footer .wp-block-navigation {
    gap: 0.5rem !important;
}

footer .wp-block-navigation-item,
.editor-styles-wrapper footer .wp-block-navigation-item {
    margin: 0 !important;
    padding: 0.125rem 0 !important;
}

/* Footer Images - contraindre la taille dans l'éditeur */
footer .wp-block-image img,
.editor-styles-wrapper footer .wp-block-image img {
    max-height: 5rem !important;
    width: auto !important;
    object-fit: contain !important;
}

footer .wp-block-image,
.editor-styles-wrapper footer .wp-block-image {
    margin: 0 !important;
}

/* Footer Social Links */
footer .wp-block-social-links,
.editor-styles-wrapper footer .wp-block-social-links {
    margin-top: 1rem !important;
}

footer .wp-block-social-link,
.editor-styles-wrapper footer .wp-block-social-link {
    background-color: var(--isi-blue) !important; /* isiforecast-blue */
}

footer .wp-block-social-link:hover,
.editor-styles-wrapper footer .wp-block-social-link:hover {
    background-color: var(--isi-cyan) !important; /* isiforecast-cyan */
}

/* ============================================
   GENERAL EDITOR IMPROVEMENTS
   ============================================ */

/* Ensure Tailwind classes work in editor */
.editor-styles-wrapper .rounded-full {
    border-radius: 9999px !important;
}

.editor-styles-wrapper .shadow-lg {
    box-shadow: var(--shadow-lg), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.editor-styles-wrapper .sticky {
    position: sticky !important;
}

.editor-styles-wrapper .z-50 {
    z-index: 50 !important;
}

/* ============================================
   HERO SECTION STYLES
   ============================================ */

/* Hero animated text container */
.editor-styles-wrapper .hero-animated-text,
.hero-animated-text {
    min-height: 3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .editor-styles-wrapper .hero-animated-text,
    .hero-animated-text {
        min-height: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .editor-styles-wrapper .hero-animated-text,
    .hero-animated-text {
        min-height: 5rem;
    }
}

/* Typed text styling */
.editor-styles-wrapper .hero-animated-text #typed-text,
.hero-animated-text #typed-text,
.editor-styles-wrapper .hero-animated-text .typed-text,
.hero-animated-text .typed-text {
    color: rgb(31, 41, 55); /* gray-800 */
    font-size: var(--fluid-3xl);
    font-weight: 600;
}

@media (min-width: 768px) {
    .editor-styles-wrapper .hero-animated-text #typed-text,
    .hero-animated-text #typed-text,
    .editor-styles-wrapper .hero-animated-text .typed-text,
    .hero-animated-text .typed-text {
        font-size: var(--fluid-4xl);
    }
}

@media (min-width: 1024px) {
    .editor-styles-wrapper .hero-animated-text #typed-text,
    .hero-animated-text #typed-text,
    .editor-styles-wrapper .hero-animated-text .typed-text,
    .hero-animated-text .typed-text {
        font-size: var(--fluid-5xl);
    }
}

/* Cursor styling */
.editor-styles-wrapper .hero-animated-text #cursor,
.hero-animated-text #cursor,
.editor-styles-wrapper .hero-animated-text .typing-cursor,
.hero-animated-text .typing-cursor {
    color: var(--isi-blue); /* isiforecast-blue */
    font-size: var(--fluid-3xl);
    animation: blink 1s steps(1) infinite;
}

@media (min-width: 768px) {
    .editor-styles-wrapper .hero-animated-text #cursor,
    .hero-animated-text #cursor,
    .editor-styles-wrapper .hero-animated-text .typing-cursor,
    .hero-animated-text .typing-cursor {
        font-size: var(--fluid-4xl);
    }
}

/* Note: @keyframes blink is defined in input.css */

/* CTA Button containers - allow shadow overflow on ALL parent levels */
.editor-styles-wrapper main:has(.wp-block-button.shimmer-effect),
main:has(.wp-block-button.shimmer-effect),
.editor-styles-wrapper .wp-block-group:has(.wp-block-button.shimmer-effect),
.wp-block-group:has(.wp-block-button.shimmer-effect),
.editor-styles-wrapper .wp-block-buttons:has(.shimmer-effect),
.wp-block-buttons:has(.shimmer-effect),
.editor-styles-wrapper .wp-block-button.shimmer-effect,
.wp-block-button.shimmer-effect {
    overflow: visible !important;
}

/* CTA Button - gradient with shimmer effect (global) */
.editor-styles-wrapper .wp-block-button.shimmer-effect .wp-block-button__link,
.wp-block-button.shimmer-effect .wp-block-button__link {
    position: relative;
    overflow: hidden;
    background: var(--isi-gradient) !important;
    color: white !important;
    padding: 1.25rem 2.5rem !important;
    font-size: var(--fluid-lg) !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
    box-shadow: var(--shadow-lg) !important;
    transition: var(--transition-base)-in-out !important;
    border: none !important;
}

/* Shimmer effect */
.editor-styles-wrapper .wp-block-button.shimmer-effect .wp-block-button__link::before,
.wp-block-button.shimmer-effect .wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.editor-styles-wrapper .wp-block-button.shimmer-effect .wp-block-button__link:hover,
.wp-block-button.shimmer-effect .wp-block-button__link:hover {
    box-shadow: var(--shadow-blue-lg) !important;
}

.editor-styles-wrapper .wp-block-button.shimmer-effect .wp-block-button__link:hover::before,
.wp-block-button.shimmer-effect .wp-block-button__link:hover::before {
    left: 100%;
}

/* ============================================
   PROBLEM-SOLUTION SECTION
   ============================================ */

/* Points clés de la solution en bleu */
.problem-solution-section p strong,
.editor-styles-wrapper .problem-solution-section p strong {
    color: var(--isi-blue) !important; /* isiforecast-blue */
    font-weight: 600 !important;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

/* Fond gris clair */
.features-section,
.editor-styles-wrapper .features-section {
    background-color: rgb(249, 250, 251) !important; /* gray-50 */
}

/* Reset des styles WordPress par défaut sur les boutons */
.features-section .wp-block-button.shimmer-effect .wp-block-button__link,
.editor-styles-wrapper .features-section .wp-block-button.shimmer-effect .wp-block-button__link {
    background: var(--isi-gradient) !important;
    color: white !important;
    border: none !important;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

/* Fond gris clair */
.testimonial-section,
.editor-styles-wrapper .testimonial-section {
    background-color: rgb(249, 250, 251) !important; /* gray-50 */
}

/* ============================================
   WHY-US SECTION - Tableau comparatif
   ============================================ */

/* Container principal */
.why-us-section,
.editor-styles-wrapper .why-us-section {
    background-color: white !important;
}

/* Table container */
.why-us-table,
.editor-styles-wrapper .why-us-table {
    overflow-x: auto !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

/* RESET COMPLET - Utiliser CSS Grid pour alignement parfait */
.why-us-table .wp-block-columns,
.editor-styles-wrapper .why-us-table .wp-block-columns {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    gap: 0 !important;
    /* CSS Grid pour colonnes parfaitement égales */
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
}

/* Support pour 5 colonnes si l'utilisateur en ajoute */
.why-us-table .wp-block-columns:has(.wp-block-column:nth-child(5)),
.editor-styles-wrapper .why-us-table .wp-block-columns:has(.wp-block-column:nth-child(5)) {
    grid-template-columns: repeat(5, 1fr) !important;
}

/* Support pour 6 colonnes */
.why-us-table .wp-block-columns:has(.wp-block-column:nth-child(6)),
.editor-styles-wrapper .why-us-table .wp-block-columns:has(.wp-block-column:nth-child(6)) {
    grid-template-columns: repeat(6, 1fr) !important;
}

.why-us-table .wp-block-column,
.editor-styles-wrapper .why-us-table .wp-block-column {
    margin: 0 !important;
    padding: 1rem 1.25rem !important;
    /* Reset WordPress width */
    flex-basis: auto !important;
    width: auto !important;
    max-width: none !important;
    /* Centrer verticalement le contenu */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

/* Première colonne (critères) : aligné à gauche */
.why-us-table .why-us-data-row .wp-block-column:first-child,
.editor-styles-wrapper .why-us-table .why-us-data-row .wp-block-column:first-child {
    align-items: flex-start !important;
    text-align: left !important;
}

/* Header row - padding plus grand */
.why-us-table .why-us-header-row .wp-block-column,
.editor-styles-wrapper .why-us-table .why-us-header-row .wp-block-column {
    padding: 1.25rem 1.5rem !important;
}

/* Paragraphes sans marge dans le tableau */
.why-us-table p,
.editor-styles-wrapper .why-us-table p {
    margin: 0 !important;
}

/* Header row */
.why-us-header-row,
.editor-styles-wrapper .why-us-header-row {
    gap: 0 !important;
    margin-bottom: 0 !important;
}

/* Data rows */
.why-us-data-row,
.editor-styles-wrapper .why-us-data-row {
    gap: 0 !important;
    margin-bottom: 0 !important;
    transition: background-color 0.2s ease !important;
}

/* Hover effect sur les lignes de données */
.why-us-data-row:hover,
.editor-styles-wrapper .why-us-data-row:hover {
    background-color: rgba(249, 250, 251, 0.5) !important;
}

/* Colonnes ISIFORECAST - bordure bleue */
.why-us-data-row .wp-block-column:nth-child(2),
.editor-styles-wrapper .why-us-data-row .wp-block-column:nth-child(2) {
    background-color: rgba(0, 86, 150, 0.05) !important;
    border-left: 4px solid rgb(0, 86, 150) !important;
}

/* Colonnes Excel - bordure rouge */
.why-us-data-row .wp-block-column:nth-child(3),
.editor-styles-wrapper .why-us-data-row .wp-block-column:nth-child(3) {
    background-color: rgba(239, 68, 68, 0.05) !important;
    border-left: 4px solid rgb(239, 68, 68) !important;
}

/* Colonnes Solutions génériques - bordure orange */
.why-us-data-row .wp-block-column:nth-child(4),
.editor-styles-wrapper .why-us-data-row .wp-block-column:nth-child(4) {
    background-color: rgba(249, 115, 22, 0.05) !important;
    border-left: 4px solid rgb(249, 115, 22) !important;
}

/* Fix pour les couleurs de texte des indicateurs */
.why-us-section .text-green-600,
.editor-styles-wrapper .why-us-section .text-green-600 {
    color: rgb(22, 163, 74) !important;
}

.why-us-section .text-red-500,
.editor-styles-wrapper .why-us-section .text-red-500 {
    color: rgb(239, 68, 68) !important;
}

.why-us-section .text-orange-500,
.editor-styles-wrapper .why-us-section .text-orange-500 {
    color: rgb(249, 115, 22) !important;
}

/* Mobile responsive - colonnes empilées */
@media (max-width: 781px) {
    /* Override grid vers une seule colonne */
    .why-us-table .wp-block-columns,
    .editor-styles-wrapper .why-us-table .wp-block-columns {
        grid-template-columns: 1fr !important;
    }

    .why-us-header-row .wp-block-column,
    .editor-styles-wrapper .why-us-header-row .wp-block-column,
    .why-us-data-row .wp-block-column,
    .editor-styles-wrapper .why-us-data-row .wp-block-column {
        border-left: none !important;
        border-top: 1px solid rgba(229, 231, 235, 0.5) !important;
    }

    /* Premier élément sans bordure top */
    .why-us-data-row .wp-block-column:first-child,
    .editor-styles-wrapper .why-us-data-row .wp-block-column:first-child {
        border-top: none !important;
    }

    /* Label visible sur mobile pour chaque colonne */
    .why-us-data-row .wp-block-column:nth-child(2)::before,
    .editor-styles-wrapper .why-us-data-row .wp-block-column:nth-child(2)::before {
        content: "ISIFORECAST";
        display: block;
        font-size: var(--fluid-xs);
        font-weight: 600;
        color: var(--isi-blue);
        margin-bottom: 0.25rem;
    }

    .why-us-data-row .wp-block-column:nth-child(3)::before,
    .editor-styles-wrapper .why-us-data-row .wp-block-column:nth-child(3)::before {
        content: "Excel";
        display: block;
        font-size: var(--fluid-xs);
        font-weight: 600;
        color: rgb(239, 68, 68);
        margin-bottom: 0.25rem;
    }

    .why-us-data-row .wp-block-column:nth-child(4)::before,
    .editor-styles-wrapper .why-us-data-row .wp-block-column:nth-child(4)::before {
        content: "Solutions génériques";
        display: block;
        font-size: var(--fluid-xs);
        font-weight: 600;
        color: rgb(249, 115, 22);
        margin-bottom: 0.25rem;
    }
}

/* ============================================
   ENTERPRISE QUOTE SECTION
   ============================================ */

/* Carte conteneur avec padding interne forcé */
.enterprise-quote-section .bg-gradient-to-br,
.editor-styles-wrapper .enterprise-quote-section .bg-gradient-to-br {
    padding: 2rem !important;
}

@media (min-width: 768px) {
    .enterprise-quote-section .bg-gradient-to-br,
    .editor-styles-wrapper .enterprise-quote-section .bg-gradient-to-br {
        padding: 3rem !important;
    }
}

/* Forcer les marges sur les colonnes features */
.enterprise-quote-section .wp-block-columns,
.editor-styles-wrapper .enterprise-quote-section .wp-block-columns {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
    gap: 0.75rem !important;
}

@media (min-width: 768px) {
    .enterprise-quote-section .wp-block-columns,
    .editor-styles-wrapper .enterprise-quote-section .wp-block-columns {
        margin-left: 2rem !important;
        margin-right: 2rem !important;
        gap: 1rem !important;
    }
}

/* Style des cartes features */
.enterprise-quote-section .wp-block-column,
.editor-styles-wrapper .enterprise-quote-section .wp-block-column {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 1rem !important;
    background-color: white !important;
    border-radius: 0.5rem !important;
    border: 1px solid rgb(243, 244, 246) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: var(--transition-base) !important;
}

.enterprise-quote-section .wp-block-column:hover,
.editor-styles-wrapper .enterprise-quote-section .wp-block-column:hover {
    box-shadow: var(--shadow-md) !important;
    border-color: rgb(229, 231, 235) !important;
}

/* Paragraphes dans les features */
.enterprise-quote-section .wp-block-column p,
.editor-styles-wrapper .enterprise-quote-section .wp-block-column p {
    margin: 0 !important;
}

/* ============================================
   CTA SECTION - Ligne décorative
   ============================================ */

/* Bouton CTA avec dégradé */
.demo-cta .wp-block-button__link,
.editor-styles-wrapper .demo-cta .wp-block-button__link {
    position: relative;
    overflow: hidden;
    background: var(--isi-gradient) !important;
    color: white !important;
    padding: 1rem 2rem !important;
    font-size: var(--fluid-lg) !important;
    font-weight: 600 !important;
    border-radius: 9999px !important;
    box-shadow: var(--shadow-lg) !important;
    transition: var(--transition-base)-in-out !important;
    border: none !important;
}

.demo-cta .wp-block-button__link::before,
.editor-styles-wrapper .demo-cta .wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.demo-cta .wp-block-button__link:hover,
.editor-styles-wrapper .demo-cta .wp-block-button__link:hover {
    box-shadow: var(--shadow-blue-lg) !important;
    transform: translateY(-2px);
}

.demo-cta .wp-block-button__link:hover::before,
.editor-styles-wrapper .demo-cta .wp-block-button__link:hover::before {
    left: 100%;
}

/* Ligne gradient en haut du CTA */
.cta-section::before,
.editor-styles-wrapper .cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12.5rem; /* w-50 = 200px */
    height: 0.25rem; /* h-1 */
    background: var(--isi-gradient); /* from-isiforecast-blue to-isiforecast-cyan */
    border-radius: 0.125rem; /* rounded-sm */
    z-index: 10;
}

/* ============================================
   CASE STUDY BLOCKS - EDITOR STYLES
   Parité éditeur/frontend pour les blocs études de cas
   ============================================ */

/* Force full-width backgrounds for all case study blocks */
.case-study-header,
.case-study-problem,
.case-study-objectives,
.case-study-solution,
.case-study-results,
.case-study-testimonial,
.case-study-conclusion,
.editor-styles-wrapper .case-study-header,
.editor-styles-wrapper .case-study-problem,
.editor-styles-wrapper .case-study-objectives,
.editor-styles-wrapper .case-study-solution,
.editor-styles-wrapper .case-study-results,
.editor-styles-wrapper .case-study-testimonial,
.editor-styles-wrapper .case-study-conclusion {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    box-sizing: border-box !important;
}

/* Single etude-cas specific - reduce body padding and force no extra spacing */
body.single-etude-cas {
    padding-top: 70px !important; /* Réduit pour études de cas */
}

/* FORCE remove pt-32 from WordPress skip-link target */
#wp--skip-link--target,
.single-etude-cas #wp--skip-link--target,
.single-etude-cas main,
.single-etude-cas .wp-block-group,
.single-etude-cas .wp-block-post-content,
.wp-block-post-content,
.entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Override any pt-* classes on main */
main.pt-32,
main.pt-24,
main.pt-20,
main.pt-16,
.single-etude-cas main[class*="pt-"] {
    padding-top: 0 !important;
}

/* ----- HEADER BLOCK ----- */
.case-study-header,
.editor-styles-wrapper .case-study-header {
    background-color: #ffffff !important; /* blanc */
    padding: 0.5rem 0 3rem 0 !important;
    margin-top: 0 !important;
}

@media (min-width: 768px) {
    .case-study-header,
    .editor-styles-wrapper .case-study-header {
        padding: 0.75rem 0 4rem 0 !important;
    }
}

/* Ensure inner container has no extra spacing */
.case-study-header > .max-w-6xl,
.case-study-header > div:first-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Breadcrumb */
.case-study-header .breadcrumb,
.editor-styles-wrapper .case-study-header .breadcrumb {
    margin-bottom: 2rem !important;
}

.case-study-header .breadcrumb ol,
.editor-styles-wrapper .case-study-header .breadcrumb ol {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: var(--fluid-sm) !important;
    color: var(--gray-500) !important;
}

.case-study-header .breadcrumb a,
.editor-styles-wrapper .case-study-header .breadcrumb a {
    color: var(--gray-500) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.case-study-header .breadcrumb a:hover,
.editor-styles-wrapper .case-study-header .breadcrumb a:hover {
    color: var(--isi-blue) !important;
}

/* Badges informatifs */
.case-study-header .inline-flex,
.editor-styles-wrapper .case-study-header .inline-flex {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    background-color: white !important;
    border-radius: 9999px !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid var(--gray-200) !important;
    font-size: var(--fluid-sm) !important;
    font-weight: 500 !important;
    color: var(--gray-700) !important;
}

/* Badge durée (bleu) */
.case-study-header .bg-isiforecast-blue\/10,
.editor-styles-wrapper .case-study-header .bg-isiforecast-blue\/10 {
    background-color: rgba(0, 86, 150, 0.1) !important;
    border: none !important;
    color: var(--isi-blue) !important;
}

/* Logo container */
.case-study-header .rounded-2xl.shadow-lg,
.editor-styles-wrapper .case-study-header .rounded-2xl.shadow-lg {
    padding: 1.5rem !important;
    background-color: white !important;
    border-radius: 1rem !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid #f3f4f6 !important;
}

/* ----- PROBLEM BLOCK ----- */
.case-study-problem,
.editor-styles-wrapper .case-study-problem {
    background-color: var(--gray-50) !important; /* gray-50 */
    padding: 3rem 0 !important;
}

@media (min-width: 768px) {
    .case-study-problem,
    .editor-styles-wrapper .case-study-problem {
        padding: 4rem 0 !important;
    }
}

/* Titre section problème */
.case-study-problem h2,
.editor-styles-wrapper .case-study-problem h2 {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    font-size: var(--fluid-2xl) !important;
    font-weight: 700 !important;
    color: var(--slate-700) !important; /* slate-700 */
    margin-bottom: 2rem !important;
}

@media (min-width: 768px) {
    .case-study-problem h2,
    .editor-styles-wrapper .case-study-problem h2 {
        font-size: var(--fluid-3xl) !important;
    }
}

/* Icon square in h2 */
.case-study-problem h2 .rounded-xl,
.editor-styles-wrapper .case-study-problem h2 .rounded-xl {
    width: 3rem !important;
    height: 3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #fee2e2 !important; /* red-100 */
    border-radius: 0.75rem !important; /* rounded-xl = carré avec coins arrondis */
    flex-shrink: 0 !important;
}

.case-study-problem h2 svg,
.editor-styles-wrapper .case-study-problem h2 svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    color: #dc2626 !important; /* red-600 */
}

/* Liste problèmes (style simple avec tirets) */
.case-study-problem ul,
.editor-styles-wrapper .case-study-problem ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-bottom: 2rem !important;
    list-style: none !important;
    padding-left: 0 !important;
}

.case-study-problem li,
.editor-styles-wrapper .case-study-problem li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    color: var(--gray-700) !important; /* gray-700 */
}

/* Impact box */
.case-study-problem .bg-red-100,
.editor-styles-wrapper .case-study-problem .bg-red-100 {
    background-color: #fee2e2 !important;
    border-radius: 0.75rem !important;
    padding: 1.5rem !important;
    border-left: 4px solid #ef4444 !important;
}

/* ----- OBJECTIVES BLOCK ----- */
.case-study-objectives,
.editor-styles-wrapper .case-study-objectives {
    background-color: white !important;
    padding: 3rem 0 !important;
}

@media (min-width: 768px) {
    .case-study-objectives,
    .editor-styles-wrapper .case-study-objectives {
        padding: 4rem 0 !important;
    }
}

.case-study-objectives h2,
.editor-styles-wrapper .case-study-objectives h2 {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    font-size: var(--fluid-2xl) !important;
    font-weight: 700 !important;
    color: var(--slate-700) !important; /* slate-700 */
    margin-bottom: 2rem !important;
}

@media (min-width: 768px) {
    .case-study-objectives h2,
    .editor-styles-wrapper .case-study-objectives h2 {
        font-size: var(--fluid-3xl) !important;
    }
}

/* Icon square in h2 */
.case-study-objectives h2 .rounded-xl,
.editor-styles-wrapper .case-study-objectives h2 .rounded-xl {
    width: 3rem !important;
    height: 3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #dbeafe !important; /* blue-100 */
    border-radius: 0.75rem !important; /* rounded-xl = carré avec coins arrondis */
    flex-shrink: 0 !important;
}

.case-study-objectives h2 svg,
.editor-styles-wrapper .case-study-objectives h2 svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    color: #2563eb !important; /* blue-600 */
}

/* Liste objectifs (style simple avec tirets) */
.case-study-objectives ul,
.editor-styles-wrapper .case-study-objectives ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-bottom: 2rem !important;
    list-style: none !important;
    padding-left: 0 !important;
}

.case-study-objectives li,
.editor-styles-wrapper .case-study-objectives li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    color: var(--gray-700) !important; /* gray-700 */
}

.case-study-objectives .bg-blue-100,
.editor-styles-wrapper .case-study-objectives .bg-blue-100 {
    background-color: #dbeafe !important;
    border-radius: 0.75rem !important;
    padding: 1.5rem !important;
    border-left: 4px solid #3b82f6 !important;
}

/* ----- SOLUTION BLOCK ----- */
.case-study-solution,
.editor-styles-wrapper .case-study-solution {
    background-color: var(--gray-50) !important; /* gray-50 */
    padding: 3rem 0 !important;
}

@media (min-width: 768px) {
    .case-study-solution,
    .editor-styles-wrapper .case-study-solution {
        padding: 4rem 0 !important;
    }
}

.case-study-solution h2,
.editor-styles-wrapper .case-study-solution h2 {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    font-size: var(--fluid-2xl) !important;
    font-weight: 700 !important;
    color: var(--slate-700) !important; /* slate-700 */
    margin-bottom: 2rem !important;
}

@media (min-width: 768px) {
    .case-study-solution h2,
    .editor-styles-wrapper .case-study-solution h2 {
        font-size: var(--fluid-3xl) !important;
    }
}

.case-study-solution h2 .rounded-xl,
.editor-styles-wrapper .case-study-solution h2 .rounded-xl {
    width: 3rem !important;
    height: 3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #d1fae5 !important;
    border-radius: 0.75rem !important; /* carré avec coins arrondis */
    flex-shrink: 0 !important;
}

.case-study-solution h2 svg,
.editor-styles-wrapper .case-study-solution h2 svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    color: #059669 !important;
}

/* Modules grid */
.case-study-solution .grid,
.editor-styles-wrapper .case-study-solution .grid {
    display: grid !important;
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 0.75rem !important;
    margin-bottom: 2rem !important;
}

@media (min-width: 640px) {
    .case-study-solution .grid,
    .editor-styles-wrapper .case-study-solution .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .case-study-solution .grid,
    .editor-styles-wrapper .case-study-solution .grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Module item */
.case-study-solution .bg-emerald-50,
.editor-styles-wrapper .case-study-solution .bg-emerald-50 {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem !important;
    background-color: #ecfdf5 !important;
    border-radius: 0.5rem !important;
}

.case-study-solution .bg-emerald-500,
.editor-styles-wrapper .case-study-solution .bg-emerald-500 {
    width: 2rem !important;
    height: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #10b981 !important;
    border-radius: 9999px !important;
    flex-shrink: 0 !important;
}

.case-study-solution .bg-emerald-500 svg,
.editor-styles-wrapper .case-study-solution .bg-emerald-500 svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    color: white !important;
}

.case-study-solution .bg-emerald-100,
.editor-styles-wrapper .case-study-solution .bg-emerald-100 {
    background-color: #d1fae5 !important;
    border-radius: 0.75rem !important;
    padding: 1.5rem !important;
    border-left: 4px solid #10b981 !important;
}

/* ----- RESULTS BLOCK ----- */
.case-study-results,
.editor-styles-wrapper .case-study-results {
    background-color: white !important;
    padding: 3rem 0 !important;
}

@media (min-width: 768px) {
    .case-study-results,
    .editor-styles-wrapper .case-study-results {
        padding: 4rem 0 !important;
    }
}

.case-study-results h2,
.editor-styles-wrapper .case-study-results h2 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    font-size: var(--fluid-2xl) !important;
    font-weight: 700 !important;
    color: var(--slate-700) !important;
    margin-bottom: 2.5rem !important;
    text-align: center !important;
}

@media (min-width: 768px) {
    .case-study-results h2,
    .editor-styles-wrapper .case-study-results h2 {
        font-size: var(--fluid-3xl) !important;
    }
}

.case-study-results h2 .rounded-xl,
.editor-styles-wrapper .case-study-results h2 .rounded-xl {
    width: 3rem !important;
    height: 3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: rgba(0, 86, 150, 0.1) !important;
    border-radius: 0.75rem !important; /* carré avec coins arrondis */
    flex-shrink: 0 !important;
}

.case-study-results h2 svg,
.editor-styles-wrapper .case-study-results h2 svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    color: var(--isi-blue) !important;
}

/* Metrics grid */
.case-study-results .grid,
.editor-styles-wrapper .case-study-results .grid {
    display: grid !important;
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 1.5rem !important;
    margin-bottom: 2.5rem !important;
}

@media (min-width: 640px) {
    .case-study-results .grid,
    .editor-styles-wrapper .case-study-results .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .case-study-results .grid,
    .editor-styles-wrapper .case-study-results .grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Metric card */
.case-study-results .rounded-2xl.shadow-lg,
.editor-styles-wrapper .case-study-results .rounded-2xl.shadow-lg {
    background-color: white !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid #f3f4f6 !important;
    text-align: center !important;
    transition: transform 0.3s ease !important;
}

.case-study-results .rounded-2xl.shadow-lg:hover,
.editor-styles-wrapper .case-study-results .rounded-2xl.shadow-lg:hover {
    transform: scale(1.05) !important;
}

/* Metric value */
.case-study-results [data-metric-value],
.editor-styles-wrapper .case-study-results [data-metric-value] {
    font-size: var(--fluid-3xl) !important;
    font-weight: 700 !important;
    color: var(--isi-blue) !important;
    margin-bottom: 0.5rem !important;
}

@media (min-width: 768px) {
    .case-study-results [data-metric-value],
    .editor-styles-wrapper .case-study-results [data-metric-value] {
        font-size: var(--fluid-4xl) !important;
    }
}

/* Metric label */
.case-study-results .uppercase,
.editor-styles-wrapper .case-study-results .uppercase {
    font-size: var(--fluid-sm) !important;
    font-weight: 500 !important;
    color: var(--gray-500) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* ----- TESTIMONIAL BLOCK ----- */
.case-study-testimonial,
.editor-styles-wrapper .case-study-testimonial {
    background-color: var(--gray-50) !important; /* gray-50 */
    padding: 3rem 0 !important;
}

@media (min-width: 768px) {
    .case-study-testimonial,
    .editor-styles-wrapper .case-study-testimonial {
        padding: 4rem 0 !important;
    }
}

.case-study-testimonial h2,
.editor-styles-wrapper .case-study-testimonial h2 {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    font-size: var(--fluid-2xl) !important;
    font-weight: 700 !important;
    color: var(--slate-700) !important; /* slate-700 */
    margin-bottom: 2rem !important;
}

@media (min-width: 768px) {
    .case-study-testimonial h2,
    .editor-styles-wrapper .case-study-testimonial h2 {
        font-size: var(--fluid-3xl) !important;
    }
}

.case-study-testimonial h2 .rounded-xl,
.editor-styles-wrapper .case-study-testimonial h2 .rounded-xl {
    width: 3rem !important;
    height: 3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f3e8ff !important; /* purple-100 */
    border-radius: 0.75rem !important; /* carré avec coins arrondis */
    flex-shrink: 0 !important;
}

.case-study-testimonial h2 svg,
.editor-styles-wrapper .case-study-testimonial h2 svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    color: #9333ea !important; /* purple-600 */
}

/* Blockquote */
.case-study-testimonial blockquote,
.editor-styles-wrapper .case-study-testimonial blockquote {
    position: relative !important;
}

/* Decorative quote */
.case-study-testimonial .text-8xl,
.editor-styles-wrapper .case-study-testimonial .text-8xl {
    position: absolute !important;
    top: -1rem !important;
    left: -1rem !important;
    font-size: 6rem !important;
    color: #e9d5ff !important; /* purple-200 */
    font-family: serif !important;
    line-height: 1 !important;
    user-select: none !important;
}

/* Quote box */
.case-study-testimonial .bg-purple-50,
.editor-styles-wrapper .case-study-testimonial .bg-purple-50 {
    position: relative !important;
    background-color: #faf5ff !important; /* purple-50 */
    border-radius: 1rem !important;
    padding: 2rem !important;
    border: 1px solid #f3e8ff !important; /* purple-100 */
    border-left: 4px solid #9333ea !important; /* purple-600 - accent left */
}

@media (min-width: 768px) {
    .case-study-testimonial .bg-purple-50,
    .editor-styles-wrapper .case-study-testimonial .bg-purple-50 {
        padding: 2.5rem !important;
    }
}

/* Quote text */
.case-study-testimonial .text-xl,
.case-study-testimonial .text-2xl,
.editor-styles-wrapper .case-study-testimonial .text-xl,
.editor-styles-wrapper .case-study-testimonial .text-2xl {
    font-size: var(--fluid-xl) !important;
    color: var(--gray-700) !important; /* gray-700 */
    line-height: 1.75 !important;
    font-style: italic !important;
    margin-bottom: 2rem !important;
}

@media (min-width: 768px) {
    .case-study-testimonial .text-xl,
    .case-study-testimonial .text-2xl,
    .editor-styles-wrapper .case-study-testimonial .text-xl,
    .editor-styles-wrapper .case-study-testimonial .text-2xl {
        font-size: var(--fluid-2xl) !important;
    }
}

/* Witness info */
.case-study-testimonial footer,
.editor-styles-wrapper .case-study-testimonial footer {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}

.case-study-testimonial .w-16.h-16,
.editor-styles-wrapper .case-study-testimonial .w-16.h-16 {
    width: 4rem !important;
    height: 4rem !important;
    border-radius: 9999px !important;
    flex-shrink: 0 !important;
}

.case-study-testimonial .w-16.h-16.rounded-full,
.editor-styles-wrapper .case-study-testimonial .w-16.h-16.rounded-full {
    background-color: #f3e8ff !important; /* purple-100 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.case-study-testimonial .w-16.h-16.rounded-full svg,
.editor-styles-wrapper .case-study-testimonial .w-16.h-16.rounded-full svg {
    width: 2rem !important;
    height: 2rem !important;
    color: #a855f7 !important; /* purple-500 */
}

.case-study-testimonial .w-16.h-16 img,
.editor-styles-wrapper .case-study-testimonial .w-16.h-16 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 9999px !important;
    border: 2px solid #d8b4fe !important; /* purple-300 */
}

.case-study-testimonial .text-lg.font-semibold,
.editor-styles-wrapper .case-study-testimonial .text-lg.font-semibold {
    font-size: var(--fluid-lg) !important;
    font-weight: 600 !important;
    color: var(--slate-700) !important; /* slate-700 */
}

.case-study-testimonial .text-sm.text-gray-500,
.editor-styles-wrapper .case-study-testimonial .text-sm.text-gray-500 {
    font-size: var(--fluid-sm) !important;
    color: var(--gray-500) !important; /* gray-500 */
}

/* ----- CONCLUSION BLOCK ----- */
.case-study-conclusion,
.editor-styles-wrapper .case-study-conclusion {
    background-color: white !important;
    padding: 3rem 0 !important;
}

@media (min-width: 768px) {
    .case-study-conclusion,
    .editor-styles-wrapper .case-study-conclusion {
        padding: 4rem 0 !important;
    }
}

.case-study-conclusion h2,
.editor-styles-wrapper .case-study-conclusion h2 {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    font-size: var(--fluid-2xl) !important;
    font-weight: 700 !important;
    color: var(--slate-700) !important; /* slate-700 */
    margin-bottom: 2rem !important;
}

@media (min-width: 768px) {
    .case-study-conclusion h2,
    .editor-styles-wrapper .case-study-conclusion h2 {
        font-size: var(--fluid-3xl) !important;
    }
}

.case-study-conclusion h2 .rounded-xl,
.editor-styles-wrapper .case-study-conclusion h2 .rounded-xl {
    width: 3rem !important;
    height: 3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #fef3c7 !important;
    border-radius: 0.75rem !important; /* carré avec coins arrondis */
    flex-shrink: 0 !important;
}

.case-study-conclusion h2 svg,
.editor-styles-wrapper .case-study-conclusion h2 svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    color: #d97706 !important;
}

.case-study-conclusion .bg-amber-100,
.editor-styles-wrapper .case-study-conclusion .bg-amber-100 {
    background-color: #fef3c7 !important;
    border-radius: 0.75rem !important;
    padding: 1.5rem !important;
    border-left: 4px solid #f59e0b !important;
}

/* CTA final */
.case-study-conclusion .mt-12.text-center,
.editor-styles-wrapper .case-study-conclusion .mt-12.text-center {
    margin-top: 3rem !important;
    text-align: center !important;
}

.case-study-conclusion .mt-12 .rounded-2xl,
.editor-styles-wrapper .case-study-conclusion .mt-12 .rounded-2xl {
    background-color: white !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid #f3f4f6 !important;
}

.case-study-conclusion .mt-12 h3,
.editor-styles-wrapper .case-study-conclusion .mt-12 h3 {
    font-size: var(--fluid-2xl) !important;
    font-weight: 700 !important;
    color: var(--slate-700) !important;
    margin-bottom: 1rem !important;
}

.case-study-conclusion .mt-12 a,
.editor-styles-wrapper .case-study-conclusion .mt-12 a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 1rem 2rem !important;
    background: var(--isi-gradient) !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: 9999px !important;
    box-shadow: var(--shadow-lg) !important;
    text-decoration: none !important;
    transition: var(--transition-base) !important;
}

.case-study-conclusion .mt-12 a:hover,
.editor-styles-wrapper .case-study-conclusion .mt-12 a:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 86, 150, 0.3) !important;
}

/* ----- COMMON UTILITIES FOR CASE STUDY BLOCKS ----- */

/* Max width containers - tous les blocs utilisent max-w-6xl */
.case-study-header .max-w-6xl,
.case-study-problem .max-w-6xl,
.case-study-objectives .max-w-6xl,
.case-study-solution .max-w-6xl,
.case-study-results .max-w-6xl,
.case-study-testimonial .max-w-6xl,
.case-study-conclusion .max-w-6xl,
.editor-styles-wrapper .case-study-header .max-w-6xl,
.editor-styles-wrapper .case-study-problem .max-w-6xl,
.editor-styles-wrapper .case-study-objectives .max-w-6xl,
.editor-styles-wrapper .case-study-solution .max-w-6xl,
.editor-styles-wrapper .case-study-results .max-w-6xl,
.editor-styles-wrapper .case-study-testimonial .max-w-6xl,
.editor-styles-wrapper .case-study-conclusion .max-w-6xl {
    max-width: 72rem !important; /* 1152px */
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

@media (min-width: 640px) {
    .case-study-header .max-w-6xl,
    .case-study-problem .max-w-6xl,
    .case-study-objectives .max-w-6xl,
    .case-study-solution .max-w-6xl,
    .case-study-results .max-w-6xl,
    .case-study-testimonial .max-w-6xl,
    .case-study-conclusion .max-w-6xl,
    .editor-styles-wrapper .case-study-header .max-w-6xl,
    .editor-styles-wrapper .case-study-problem .max-w-6xl,
    .editor-styles-wrapper .case-study-objectives .max-w-6xl,
    .editor-styles-wrapper .case-study-solution .max-w-6xl,
    .editor-styles-wrapper .case-study-results .max-w-6xl,
    .editor-styles-wrapper .case-study-testimonial .max-w-6xl,
    .editor-styles-wrapper .case-study-conclusion .max-w-6xl {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

@media (min-width: 1024px) {
    .case-study-header .max-w-6xl,
    .case-study-problem .max-w-6xl,
    .case-study-objectives .max-w-6xl,
    .case-study-solution .max-w-6xl,
    .case-study-results .max-w-6xl,
    .case-study-testimonial .max-w-6xl,
    .case-study-conclusion .max-w-6xl,
    .editor-styles-wrapper .case-study-header .max-w-6xl,
    .editor-styles-wrapper .case-study-problem .max-w-6xl,
    .editor-styles-wrapper .case-study-objectives .max-w-6xl,
    .editor-styles-wrapper .case-study-solution .max-w-6xl,
    .editor-styles-wrapper .case-study-results .max-w-6xl,
    .editor-styles-wrapper .case-study-testimonial .max-w-6xl,
    .editor-styles-wrapper .case-study-conclusion .max-w-6xl {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

/* Prose styles for content */
.case-study-problem .prose,
.case-study-objectives .prose,
.case-study-solution .prose,
.case-study-results .prose,
.case-study-conclusion .prose,
.editor-styles-wrapper .case-study-problem .prose,
.editor-styles-wrapper .case-study-objectives .prose,
.editor-styles-wrapper .case-study-solution .prose,
.editor-styles-wrapper .case-study-results .prose,
.editor-styles-wrapper .case-study-conclusion .prose {
    font-size: var(--fluid-lg) !important;
    line-height: 1.75 !important;
    color: var(--gray-700) !important;
}

.case-study-problem .prose p,
.case-study-objectives .prose p,
.case-study-solution .prose p,
.case-study-results .prose p,
.case-study-conclusion .prose p,
.editor-styles-wrapper .case-study-problem .prose p,
.editor-styles-wrapper .case-study-objectives .prose p,
.editor-styles-wrapper .case-study-solution .prose p,
.editor-styles-wrapper .case-study-results .prose p,
.editor-styles-wrapper .case-study-conclusion .prose p {
    margin-bottom: 1rem !important;
}

/* SVG icons in blocks */
.case-study-header svg,
.case-study-problem svg,
.case-study-objectives svg,
.case-study-solution svg,
.case-study-results svg,
.case-study-testimonial svg,
.case-study-conclusion svg,
.editor-styles-wrapper .case-study-header svg,
.editor-styles-wrapper .case-study-problem svg,
.editor-styles-wrapper .case-study-objectives svg,
.editor-styles-wrapper .case-study-solution svg,
.editor-styles-wrapper .case-study-results svg,
.editor-styles-wrapper .case-study-testimonial svg,
.editor-styles-wrapper .case-study-conclusion svg {
    flex-shrink: 0 !important;
}

/* ============================================
   TIMELINE ITEM - EDITOR STYLES
   Parité éditeur/frontend pour le badge année
   ============================================ */

.timeline-item,
.editor-styles-wrapper .timeline-item {
    position: relative !important;
    padding-left: 6rem !important;
    margin-bottom: 3rem;
}

/* Year badge - positioned outside the card */
.timeline-item > .timeline-item-year,
.editor-styles-wrapper .timeline-item > .timeline-item-year {
    display: flex !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 4.5rem !important;
    height: 2.5rem !important;
    background: linear-gradient(135deg, #2563eb, #06b6d4) !important;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3) !important;
    border-radius: 0.5rem !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: var(--fluid-base) !important;
    font-weight: 700 !important;
    color: white !important;
    z-index: 10 !important;
}

/* Card */
.timeline-item .timeline-item-card,
.editor-styles-wrapper .timeline-item .timeline-item-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

/* ============================================
   PAGE CONTACT - Ajustements
   ============================================ */

/* Hero section - plus d'espace en haut, moins en bas */
.contact-hero,
.editor-styles-wrapper .contact-hero {
    padding-top: var(--spacing-3xl) !important; /* clamp(4rem, 6vw, 6rem) */
    padding-bottom: var(--spacing-md) !important; /* clamp(1rem, 2vw, 1.5rem) */
}

/* Contact content - moins d'espace en haut */
.contact-content,
.editor-styles-wrapper .contact-content {
    padding-top: var(--spacing-sm) !important; /* clamp(0.75rem, 1.5vw, 1rem) */
}

/* Formulaire et sidebar - ombre visible en haut et en bas */
.contact-form-column > div,
.contact-sidebar > div,
.editor-styles-wrapper .contact-form-column > div,
.editor-styles-wrapper .contact-sidebar > div {
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08), 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   PAGE FONCTIONNALITES - Tout en blanc
   ============================================ */

.site-main > .wp-block-group,
.editor-styles-wrapper .site-main > .wp-block-group,
.site-main .features-content-area,
.editor-styles-wrapper .site-main .features-content-area,
.site-main .cta-section,
.editor-styles-wrapper .site-main .cta-section {
    background: white !important;
}

/* Feature cards grid - Même hauteur pour toutes les cartes */
.wp-block-group:has(> .feature-card),
.editor-styles-wrapper .wp-block-group:has(> .feature-card),
.wp-block-group.grid:has(.feature-card),
.editor-styles-wrapper .wp-block-group.grid:has(.feature-card) {
    align-items: stretch !important;
}

/* Cartes normales - hauteur fixe */
.feature-card article,
.editor-styles-wrapper .feature-card article {
    height: 100%;
    min-height: 420px;
}

/* Featured card - prend 2 colonnes */
/* Frontend: .feature-card-featured EST l'élément grid */
.feature-card-featured {
    grid-column: span 2 !important;
}

/* Éditeur: le WRAPPER (.wp-block) est l'élément grid, pas notre bloc */
/* On utilise :has() pour cibler le parent qui contient .feature-card-featured */
.editor-styles-wrapper .wp-block:has(> .feature-card-featured),
.editor-styles-wrapper .block-editor-block-list__block:has(> .feature-card-featured),
.editor-styles-wrapper [data-type="acf/feature-card"]:has(.feature-card-featured) {
    grid-column: span 2 !important;
}

/* Featured card - même hauteur que les autres */
.feature-card-featured article,
.editor-styles-wrapper .feature-card-featured article {
    min-height: 420px !important;
    max-height: 420px !important;
    height: 420px !important;
}

/* Reset margins sur TOUS les enfants des grilles - évite le décalage du premier élément */
.wp-block-group.grid > *,
.editor-styles-wrapper .wp-block-group.grid > *,
.wp-block-group:has(> .feature-card) > *,
.editor-styles-wrapper .wp-block-group:has(> .feature-card) > *,
.wp-block-group:has(> .advantage-card) > *,
.editor-styles-wrapper .wp-block-group:has(> .advantage-card) > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Advantage cards grid - Responsive (ciblé par parent DIRECT de .advantage-card) */
.wp-block-group:has(> .advantage-card),
.editor-styles-wrapper .wp-block-group:has(> .advantage-card) {
    display: grid !important;
    grid-template-columns: 1fr !important; /* Mobile: 1 colonne */
    gap: 1.5rem !important;
    max-width: 1152px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    align-items: start !important; /* Aligner tous les éléments en haut */
}

@media (min-width: 768px) {
    .wp-block-group:has(> .advantage-card),
    .editor-styles-wrapper .wp-block-group:has(> .advantage-card) {
        grid-template-columns: repeat(2, 1fr) !important; /* Tablette: 2 colonnes */
    }
}

@media (min-width: 1024px) {
    .wp-block-group:has(> .advantage-card),
    .editor-styles-wrapper .wp-block-group:has(> .advantage-card) {
        grid-template-columns: repeat(4, 1fr) !important; /* Desktop: 4 colonnes */
    }
}

/* ============================================
   PARTNER LOGOS - AUTOMATIC STYLING
   Style automatique pour toutes les images dans le conteneur
   ============================================ */

/* Container flex - gap responsive */
.partner-logos-container,
.editor-styles-wrapper .partner-logos-container {
    gap: 1rem !important;
}

@media (min-width: 640px) {
    .partner-logos-container,
    .editor-styles-wrapper .partner-logos-container {
        gap: 1.5rem !important;
    }
}

@media (min-width: 768px) {
    .partner-logos-container,
    .editor-styles-wrapper .partner-logos-container {
        gap: 2rem !important;
    }
}

/* TOUTES les images dans le container = cartes blanches automatiquement */
.partner-logos-container .wp-block-image,
.editor-styles-wrapper .partner-logos-container .wp-block-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.25rem !important;
    background-color: white !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e5e7eb !important;
    transition: var(--transition-smooth);
    flex: 0 0 200px !important;
    width: 200px !important;
    height: 7rem !important;
}

@media (min-width: 640px) {
    .partner-logos-container .wp-block-image,
    .editor-styles-wrapper .partner-logos-container .wp-block-image {
        flex: 0 0 240px !important;
        width: 240px !important;
    }
}

@media (min-width: 768px) {
    .partner-logos-container .wp-block-image,
    .editor-styles-wrapper .partner-logos-container .wp-block-image {
        flex: 0 0 280px !important;
        width: 280px !important;
        height: 8rem !important;
    }
}

/* Placeholder dans l'éditeur : flexible pour les boutons d'upload */
.editor-styles-wrapper .partner-logos-container .wp-block-image .components-placeholder,
.editor-styles-wrapper .partner-logos-container .wp-block-image .block-editor-media-placeholder {
    min-height: 10rem !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hover effect sur les cartes */
.partner-logos-container .wp-block-image:hover,
.editor-styles-wrapper .partner-logos-container .wp-block-image:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 86, 150, 0.1), 0 4px 6px -2px rgba(0, 86, 150, 0.05) !important;
}

/* Styling des images */
.partner-logos-container .wp-block-image img,
.editor-styles-wrapper .partner-logos-container .wp-block-image img {
    max-height: 4rem !important;
    width: auto !important;
    object-fit: contain !important;
    filter: grayscale(0.2);
    opacity: 0.9;
    transition: var(--transition-smooth);
}

@media (min-width: 768px) {
    .partner-logos-container .wp-block-image img,
    .editor-styles-wrapper .partner-logos-container .wp-block-image img {
        max-height: 5rem !important;
    }
}

/* Hover effect sur les images */
.partner-logos-container .wp-block-image:hover img,
.editor-styles-wrapper .partner-logos-container .wp-block-image:hover img {
    filter: grayscale(0);
    opacity: 1;
}
