/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Template: generatepress
Author: Tom Usborne
Author URI: https://generatepress.com/about
Description: Personnalisation Premium Totale pour Portail Travaux Maison. Version 3.0.0 (Ultimate Zero-Cache Shield).
Version: 3.0.0
Updated: 2026-03-31
*/

/* --- DESIGN TOKENS --- */
:root {
    --gp-primary: #002E5D;
    --gp-secondary: #FF8A00;
    --gp-accent: #007AFF;
    --gp-bg-light: #F8FAFC;
    --gp-white: #FFFFFF;
    --gp-text-dark: #1E293B;
    --gp-text-body: #475569;
    --gp-radius: 8px;
    --gp-radius-pill: 50px;
    --gp-shadow-soft: 0 2px 10px rgba(0, 46, 93, 0.08);
    --gp-shadow-premium: 0 10px 25px -5px rgba(0, 46, 93, 0.15);
}

/* --- BASE STYLES --- */
body {
    font-family: 'Inter', sans-serif;
    color: var(--gp-text-body);
    background-color: var(--gp-white);
    line-height: 1.6;
    overflow-x: hidden;
    /* STOP GLOBAL HORIZONTAL SCROLL */
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--gp-text-dark);
}

/* =========================================================
   HEADER / NAV / CTA v6.0.0 (ELITE ARCHITECTURE)
   ========================================================= */

.premium-header,
.site-header {
    background: #ffffff !important;
    border-bottom: 3px solid var(--gp-secondary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    /* Sécurité maximale contre le bleed */
}

.premium-header .inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 24px;
}

.site-logo {
    flex: 0 0 auto;
}

.site-logo a,
.site-logo img {
    display: block;
}

.site-logo img {
    max-height: 88px;
    width: auto;
}

#site-navigation.main-navigation {
    margin-left: auto;
    position: relative;
    width: auto;
    background: transparent;
}

#site-navigation .inside-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    position: relative;
}

#site-navigation .main-nav {
    display: flex;
    align-items: center;
}

#site-navigation .main-nav>ul {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#site-navigation .main-nav>ul>li {
    margin: 0;
}

#site-navigation .main-nav>ul>li>a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--gp-primary);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

#site-navigation .main-nav>ul>li>a:hover {
    color: var(--gp-secondary);
}

/* CTA SÉPARÉ (STABILITÉ v6.0.0) */
.header-devis-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gp-secondary);
    color: var(--gp-white) !important;
    text-decoration: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(255, 138, 0, 0.35);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
    transform: none !important;
}

.header-devis-btn:hover,
.header-devis-btn:focus,
.header-devis-btn:active {
    color: var(--gp-white) !important;
    box-shadow: 0 6px 18px rgba(255, 138, 0, 0.4);
    transform: none !important;
}

/* Burger */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--gp-secondary);
    cursor: pointer;
}

.menu-toggle .gp-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Tablette */
@media (max-width: 1024px) {
    .premium-header .inside-header {
        padding: 12px 16px;
        gap: 16px;
    }

    .site-logo img {
        max-height: 76px;
    }

    .header-devis-btn {
        padding: 11px 16px;
        font-size: 0.84rem;
    }
}

/* Mobile (GRID LOCK v6.0.0) */
@media (max-width: 768px) {
    .premium-header .inside-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto auto !important;
        align-items: center !important;
        column-gap: 10px !important;
        padding: 10px 14px !important;
        min-height: 74px !important;
    }

    .site-logo {
        min-width: 0;
        margin: 0;
    }

    .site-logo img {
        max-height: 42px !important;
        width: auto !important;
    }

    #site-navigation.main-navigation {
        width: auto !important;
        margin: 0 !important;
        position: relative !important;
    }

    #site-navigation .inside-navigation {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        position: relative !important;
    }

    /* On masque la vraie nav tant que le menu est fermé */
    #site-navigation .main-nav>ul {
        display: none;
    }

    .header-devis-btn {
        display: inline-flex !important;
        /* Force le flex pour le centrage */
        align-items: center !important;
        justify-content: center !important;
        min-height: 44px;
        /* Légèrement plus haut pour l'ergonomie */
        padding: 0 20px !important;
        border-radius: 12px;
        font-size: 0.82rem;
        line-height: 0;
        /* Évite les décalages de police */
        text-transform: uppercase;
        font-weight: 800;
    }

    .menu-toggle {
        display: inline-flex !important;
        position: relative;
        z-index: 10001;
    }

    /* Menu ouvert (OVERLAY v6.0.0) */
    #site-navigation.toggled .main-nav {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        right: 0 !important;
        width: min(320px, calc(100vw - 28px)) !important;
        background: var(--gp-white) !important;
        border: 1px solid #E5E7EB !important;
        border-bottom: 3px solid var(--gp-secondary) !important;
        border-radius: 16px !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
        z-index: 10000 !important;
        overflow: hidden !important;
    }

    #site-navigation.toggled .main-nav>ul {
        display: block !important;
        padding: 8px 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    #site-navigation.toggled .main-nav>ul>li {
        display: block !important;
        margin: 0 !important;
        width: 100% !important;
    }

    #site-navigation.toggled .main-nav>ul>li>a {
        display: block !important;
        width: 100% !important;
        padding: 16px 22px !important;
        border-bottom: 1px solid #F1F5F9 !important;
        text-align: left !important;
    }

    #site-navigation.toggled .main-nav>ul>li:last-child>a {
        border-bottom: none !important;
    }

    /* TRANSFORMATION BURGER EN "X" */
    #site-navigation.toggled .menu-toggle .gp-icon {
        display: none !important;
    }

    #site-navigation.toggled .menu-toggle::before {
        content: "×";
        display: block;
        font-size: 36px;
        line-height: 1;
        color: var(--gp-secondary);
        font-weight: 300;
    }
}

/* =========================================================
   BREADCRUMBS ELITE (RankMath v1.1.0)
   ========================================================= */

.global-breadcrumbs-wrapper {
    padding: 12px 0;
    border-bottom: 1px solid #F1F5F9;
    background: #FBFCFE;
    /* Fond bleu givré protecteur */
}

.rank-math-breadcrumb,
.breadcrumbs-container {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #64748B;
}

.rank-math-breadcrumb p {
    margin-bottom: 0 !important;
    /* Supprime le décalage GP */
}

.rank-math-breadcrumb a,
.breadcrumbs-container a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rank-math-breadcrumb a:hover,
.breadcrumbs-container a:hover {
    color: var(--gp-secondary);
}

.rank-math-breadcrumb .separator,
.breadcrumbs-container .separator {
    margin: 0 8px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .global-breadcrumbs-wrapper {
        padding: 10px 20px;
    }

    .rank-math-breadcrumb {
        white-space: nowrap;
        overflow-x: auto;
        display: block;
        -webkit-overflow-scrolling: touch;
    }
}

/* --- PAGE & ARTICLE LAYOUT (v2.9.0) --- */
.single-article-container,
.single-page-container {
    max-width: 850px;
    margin: 40px auto;
}

.article-premium-main,
.page-premium-main {
    padding: 20px 0;
}

@media (max-width: 768px) {

    .article-premium-main,
    .page-premium-main {
        padding: 20px 25px;
    }
}

/* TITRES H1 ÉPURÉS */
.entry-title-premium,
.entry-title,
h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 700;
}

/* HERO ARTICLE (ZÉRO CONFLIT) */
.hero-premium-article {
    position: relative;
    width: 100%;
    height: 550px;
    background: var(--gp-primary);
    overflow: hidden;
    margin: 0;
    display: flex;
    align-items: flex-end;
}

.hero-background-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

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

.hero-premium-article .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 46, 93, 0.1) 0%, rgba(0, 46, 93, 0.9) 100%);
    z-index: 2;
}

.hero-premium-article .entry-header-premium {
    position: relative;
    z-index: 10;
    width: 100%;
    color: #fff;
    padding-bottom: 60px;
}

.hero-premium-article .entry-header-premium .grid-container {
    max-width: 850px !important;
    margin: 0 auto;
    padding: 0 25px;
}

.hero-premium-article .entry-title-premium {
    color: #fff !important;
    font-size: 3.8rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hero-premium-article {
        height: 420px;
    }

    .hero-premium-article .entry-title-premium {
        font-size: 2.7rem !important;
    }
}

/* PROTECTION HERO : Suppression ultra-agressive (v3.0.0) */
body.home .featured-image.page-header-image,
body.home .featured-image,
body.home .page-header-image,
body.home .post-image,
.hero-premium-article+.featured-image,
.hero-premium-article+.page-header-image {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* SIDEBAR TITLES ELITE */
.sidebar .wp-block-heading {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--gp-primary) !important;
    border-left: 4px solid #F57C00 !important;
    padding-left: 15px !important;
    margin-bottom: 25px !important;
}

/* =========================
   HERO HOME PROPRE (v2.9.0)
   ========================= */
.hero-premium {
    position: relative !important;
    overflow: hidden;
    isolation: isolate;
    min-height: 480px;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-color: var(--gp-primary);
    border-bottom: 5px solid #F57C00;
}

.hero-premium.has-background {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-premium .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 46, 93, 0.8) 0%, rgba(0, 46, 93, 0.6) 100%);
    z-index: 0;
    pointer-events: none;
}

.hero-premium .grid-container {
    position: relative;
    z-index: 1;
    max-width: 900px !important;
}

.hero-premium h1 {
    color: #fff !important;
    font-size: 3.2rem !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    line-height: 1.1;
    border: none !important;
}

.hero-premium p {
    font-size: 1.2rem !important;
    color: rgba(255, 255, 255, 0.92) !important;
    max-width: 700px;
    margin: 0 auto 35px !important;
}

.hero-actions .button.cta-orange {
    background-color: #F57C00 !important;
    color: #fff !important;
    padding: 20px 45px !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 35px rgba(245, 124, 0, 0.35) !important;
}

@media (max-width: 768px) {
    .hero-premium {
        padding: 60px 0;
        min-height: 400px;
    }

    .hero-premium h1 {
        font-size: 2.2rem !important;
    }
}

/* FORMULAIRES & STATUTS */
body #lms-contact-form input,
body #lms-lead-form input,
body #lms-lead-form select {
    width: 100% !important;
    padding: 16px 20px !important;
    border: 2px solid #CBD5E1 !important;
    border-radius: 12px !important;
    margin-bottom: 22px !important;
    display: block !important;
}

.lms-form-status {
    min-height: 20px;
}

/* TABLE PROTECTION */
.entry-content-premium table {
    width: 100% !important;
    display: block !important;
    overflow-x: auto !important;
}

/* POST META */
.cat-links a,
.tags-links a {
    background-color: #F1F5F9 !important;
    color: var(--gp-primary) !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-links a:hover,
.tags-links a:hover {
    background-color: var(--gp-primary) !important;
    color: #fff !important;
}

/* Retrait des icônes par défaut pour un look épuré */
.cat-links:before,
.tags-links:before,
.comments-link:before {
    display: none !important;
}

.entry-footer {
    margin-top: 30px !important;
    padding-top: 20px !important;
    border-top: 1px solid #F1F5F9 !important;
}

/* SIGNATURE TITLES (Orange Bar on H2) */
h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin: 50px 0 25px;
    border-left: 8px solid var(--gp-secondary);
    /* THE ORANGE BAR IS NOW HERE */
    padding-left: 25px;
    font-weight: 700;
}

/* FEATURED IMAGE PREMIUM (v2.1.0) */
.featured-image-premium {
    margin-bottom: 40px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--gp-shadow-premium);
    display: block !important;
    width: 100%;
}

.featured-image-premium img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* META DATA ARTICLE */
.entry-meta-premium {
    font-size: 0.9rem;
    color: #94A3B8;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
}

.breadcrumbs-premium {
    font-size: 0.85rem;
    color: #64748B;
    margin-bottom: 20px;
}

/* --- PREMIUM TABLES (v3.1.0 - TABLEAU COMPARATIF ELITE) --- */
figure.wp-block-table {
    margin: 50px 0 !important;
    overflow-x: auto !important;
    border-radius: 16px !important;
    width: 100% !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    border: none !important;
}

figure.wp-block-table table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid #F1F5F9 !important;
    background: var(--gp-white) !important;
    table-layout: auto !important;
}

figure.wp-block-table table.has-fixed-layout {
    table-layout: fixed !important;
}

/* Header Style - Ghost Grey */
figure.wp-block-table th {
    background-color: #F8FAFC !important;
    color: #475569 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 22px 20px !important;
    text-align: center !important;
    border-bottom: 1px solid #F1F5F9 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* Cells Style */
figure.wp-block-table td {
    padding: 20px !important;
    text-align: center !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    color: #334155 !important;
    border-bottom: 1px solid #F1F5F9 !important;
    border-left: none !important;
    border-right: none !important;
    line-height: 1.5 !important;
}

figure.wp-block-table tr:last-child td {
    border-bottom: none !important;
}

/* Scrollbar Style pour mobile */
figure.wp-block-table::-webkit-scrollbar {
    height: 6px;
}

figure.wp-block-table::-webkit-scrollbar-track {
    background: #F1F5F9;
}

figure.wp-block-table::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}

/* --- FOOTER PREMIUM v3.3.0 (CHIRURGICAL FIX) --- */
.premium-footer {
    background: #001C38 !important;
    /* Navy plus profond et unique pour éviter la bande */
    color: var(--gp-white) !important;
    border-top: 5px solid var(--gp-secondary);
    padding: 0 !important;
}

.footer-bar {
    background: transparent !important;
    /* On retire l'overlay pour éviter le contraste de bande */
    padding: 50px 0;
    margin-top: 0 !important;
}

.footer-layout-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-branding {
    text-align: left;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    max-height: 85px !important;
    /* Enhanced for 2:1 ratio clarity */
    width: auto;
    display: block;
    opacity: 0.95;
    transition: all 0.3s ease;
}

.footer-logo img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-copyright {
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-menu-items {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu-items li {
    margin-left: 25px;
}

.footer-menu-items li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-menu-items li a:hover {
    color: var(--gp-white);
    text-decoration: underline;
}

/* RESPONSIVE FOOTER ELITE */
@media (max-width: 768px) {
    .premium-footer {
        padding: 40px 0 0;
    }

    .footer-layout-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-branding {
        margin-bottom: 30px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .footer-logo {
        text-align: center !important;
        width: 100% !important;
        margin-bottom: 25px !important;
        display: block !important;
    }

    .footer-logo img {
        margin: 0 auto !important;
        display: block !important;
        float: none !important;
        /* Évite tout flottement résiduel */
    }

    .footer-menu-items {
        flex-direction: column;
        gap: 15px;
    }

    .footer-menu-items li {
        margin-left: 0;
    }

    .footer-menu-items li a {
        font-size: 1rem;
        display: block;
        padding: 5px 0;
    }

    .footer-bar {
        padding: 20px 0;
    }
}

/* --- NEW COMPONENTS (v1.9.0) --- */

/* BLOCKQUOTES PREMIUM */
blockquote {
    border-left: 6px solid var(--gp-primary);
    /* Navy Authority */
    background-color: rgba(0, 46, 93, 0.04);
    padding: 30px 40px;
    margin: 40px 0;
    font-style: italic;
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    color: var(--gp-primary);
    border-radius: 0 12px 12px 0;
    position: relative;
}

blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 4rem;
    color: var(--gp-primary);
    /* Navy Accent */
    opacity: 0.15;
    font-family: 'Poppins';
}

/* EN-BREF (RESUME ARTICLE) */
.en-bref {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-left: 10px solid var(--gp-secondary);
    padding: 35px;
    margin: 45px 0;
    border-radius: 4px 14px 14px 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.en-bref::before {
    content: "L'ESSENTIEL EN 1 MINUTE";
    display: block;
    font-family: 'Poppins', sans-serif;
    color: var(--gp-secondary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
}

.en-bref p,
.en-bref li {
    font-size: 1.1rem;
    color: var(--gp-text-dark);
    margin-bottom: 10px;
    line-height: 1.5;
}

/* TULIPE / TIPS (CONSEILS EXPERTS) v2.7.0 */
.tips {
    position: relative;
    background: #FFFBF2;
    /* Soft amber */
    border-left: 6px solid var(--gp-secondary);
    padding: 25px 30px 25px 70px;
    margin: 40px 0;
    border-radius: 4px 14px 14px 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.tips::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 25px;
    width: 35px;
    height: 35px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF8A00'%3E%3Cpath d='M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7zm2.85 11.1l-.85.6V16h-4v-2.3l-.85-.6A4.997 4.997 0 0 1 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.06-2.15 3.9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.tips p {
    margin-bottom: 0;
    font-style: italic;
    color: #444;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .tips {
        padding: 20px 20px 20px 60px;
    }

    .tips::before {
        left: 15px;
        width: 30px;
        height: 30px;
    }
}

/* CTA ORANGE GLOBAL */
.cta-orange,
.menu-item-cta a {
    background-color: var(--gp-secondary) !important;
    color: var(--gp-white) !important;
    border-radius: var(--gp-radius);
    padding: 12px 28px !important;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(255, 138, 0, 0.3);
}

/* =========================================================
   SOMMAIRE ELITE (TOC) v1.1.0
   ========================================================= */

.toc-premium {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-left: 5px solid var(--gp-secondary);
    padding: 25px 30px;
    margin: 40px 0;
    border-radius: 4px 12px 12px 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    max-width: 100%;
}

.toc-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gp-primary);
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-title::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23FF8A00'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h16M4 12h16M4 18h7' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.toc-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.toc-list li {
    margin: 0 0 12px 0 !important;
    line-height: 1.4;
}

.toc-list li:last-child {
    margin-bottom: 0 !important;
}

.toc-list li a {
    text-decoration: none;
    color: var(--gp-text-body);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.toc-list li a:hover {
    color: var(--gp-secondary);
    padding-left: 5px;
}

/* Indentation des sous-titres H3 */
.toc-list li.toc-level-3 {
    margin-left: 25px !important;
}

.toc-level-3 a {
    font-size: 0.95rem;
    opacity: 0.9;
}

.toc-level-3::before {
    content: "•";
    color: var(--gp-secondary);
    margin-right: 8px;
    font-weight: bold;
}

/* Smooth Scroll Global */
html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .toc-premium {
        padding: 20px;
        margin: 30px 0;
    }
}

/* =========================================================
   IMAGES & MÉDIAS ELITE v1.0.0
   ========================================================= */

.entry-content img,
.wp-block-image img,
img.alignnone,
img.aligncenter {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 45px !important;
    /* Laisse enfin respirer le contenu dessous */
    border-radius: 12px;
    /* Look pro moderne */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    /* Profondeur subtile */
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

/* Petit effet au survol pour le dynamisme */
.entry-content img:hover {
    transform: scale(1.005);
}

/* Gestion des légendes (captions) sous les images */
.wp-block-image figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #64748B;
    margin-top: -30px;
    margin-bottom: 45px;
    font-style: italic;
}

/* =========================================================
   SEARCH WIDGET ELITE (v1.0.0)
   ========================================================= */
.widget_search .wp-block-search__label {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gp-primary);
    margin-bottom: 15px;
    display: block;
}

.widget_search .wp-block-search__inside-wrapper {
    display: flex;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: var(--gp-shadow-soft);
    padding: 0 !important;
}

.widget_search .wp-block-search__inside-wrapper:focus-within {
    border-color: var(--gp-primary);
    box-shadow: 0 0 0 4px rgba(0, 46, 93, 0.05);
}

.widget_search .wp-block-search__input {
    border: none !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    flex-grow: 1;
    background: transparent !important;
    outline: none !important;
    margin: 0 !important;
    height: auto !important;
}

.widget_search .wp-block-search__button {
    background-color: var(--gp-primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 0 25px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    transition: background 0.3s ease !important;
    border-radius: 0 !important;
    /* Fusion complète avec le wrapper */
    cursor: pointer;
    margin: 0 !important;
}

.widget_search .wp-block-search__button:hover {
    background-color: var(--gp-secondary) !important;
}

/* Ajustement pour les widgets dans la sidebar */
.sidebar .widget_search {
    margin-bottom: 40px;
}