/*
 * Untelephone — Contrast Fixes (v1.0)
 * Palette indigo #F97316 + teal #FACC15 sur fond dark #030712
 * Chargé en dernier (priorité 999) pour overrider le GP override
 */

/* ===== Fix expert-box — fond clair en thème dark ===== */
.expert-box,
.expert-box strong,
.expert-box p,
.expert-box li,
.expert-box h3,
.expert-box h4 {
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
}
.expert-box a {
    color: #F97316 !important;
    -webkit-text-fill-color: #F97316 !important;
}
.expert-box a:hover {
    color: #FB923C !important;
}

/* ===== Fix editor: h3 taille + couleur dans Gutenberg ===== */
.editor-styles-wrapper h3 {
    font-size: clamp(1.15rem, 1.6vw, 1.45rem) !important;
    color: var(--color-text, #E5E7EB) !important;
    background: none !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    font-weight: 600 !important;
}

/* ===== Fix 2: Boutons Gutenberg avec fond personnalisé ===== */
.wp-block-button__link.has-background,
.wp-block-button__link.has-background:hover,
.wp-block-button__link.has-background:focus {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

/* ===== Fix 2b: Lien .custom-button — contraste sur fond clair =====
 * ⚠️ FIX 03/10/2026 : la règle ciblait TOUS les `a.custom-button` → texte blanc
 * sur les cartes d'articles (fond clair #f8f9fa défini dans wp-custom-css) =
 * boutons « Lire l'article » illisibles (archives auteur, /blog/).
 * ⚠️ FIX 07/10/2026 (palette feu) : le CSS perso force `background:#f8f9fa!important`
 * sur `.custom-button` → au survol, le fond reste CLAIR (le hover du thème n'a pas
 * `!important`). Un texte blanc y était donc illisible (bug « Ajouter à mes sources
 * Google »). On force un texte FONCÉ sur les CTA à fond clair, et on garde le blanc
 * uniquement sur les boutons VPN/bridge à fond sombre. */
.affiliate-cta a.custom-button,
.affiliate-cta a.custom-button:hover,
.affiliate-cta a.custom-button:visited,
.affiliate-cta a.custom-button:focus {
    color: #1A1A1A !important;
    -webkit-text-fill-color: #1A1A1A !important;
    text-decoration: none !important;
}
a.custom-button.vpn-btn-proton,
a.custom-button.vpn-btn-proton:hover,
a.custom-button.vpn-btn-nord,
a.custom-button.vpn-btn-nord:hover,
a.custom-button.vpn-btn-semrush,
a.custom-button.vpn-btn-semrush:hover,
a.ute-bridge-btn,
a.ute-bridge-btn:hover,
a.ute-bridge-btn:visited,
a.ute-bridge-btn:focus {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

/* ===== Fix 3: Boutons footer — priorité sur .site-footer a ===== */
.site-footer a.ute-btn-primary,
.site-footer a.ute-btn-primary:visited,
.site-footer a.ute-btn-primary:hover,
.site-footer a.ute-btn-primary:focus,
.site-footer a.wp-block-button__link,
.site-footer a.wp-block-button__link:hover,
.site-footer a.wp-block-button__link:focus,
.site-footer a.footer-cta-btn,
.site-footer a.footer-cta-btn:hover,
.site-footer a.footer-cta-btn:focus {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

/* ===== Fix 4: Cartes #f8f9fa — texte lisible sur fond clair ===== */
.entry-content div[style*="f8f9fa"] span {
    color: #555 !important;
    -webkit-text-fill-color: #555 !important;
}

.entry-content div[style*="f8f9fa"] strong {
    color: #2563eb !important;
    -webkit-text-fill-color: #2563eb !important;
}

/* ===== Fix 5: Logo toujours visible + plus gros ===== */
.site-header {
    height: auto !important;
    min-height: 56px !important;
    overflow: visible !important;
}

.site-logo {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.site-logo img,
.header-image {
    display: block !important;
    max-height: 64px !important;
    width: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 480px) {
    .site-header {
        min-height: 52px !important;
    }
    .site-logo img,
    .header-image {
        max-height: 48px !important;
    }
}

/* ===== Fix 8: .note-color fond clair (pipelines DeepSeek) ===== */
.note-color[style*="f8fbff"] {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%) !important;
    border-left-color: #F97316 !important;
}

.note-color[style*="f8fbff"] h3 {
    color: #4338CA !important;
    -webkit-text-fill-color: #4338CA !important;
    background: none !important;
}

.note-color[style*="f8fbff"] a {
    color: #F97316 !important;
}

.note-color[style*="f8fbff"] a:hover {
    color: #EA580C !important;
}

.note-color[style*="f8fbff"] strong,
.note-color[style*="f8fbff"] b {
    color: #431407 !important;
}

/* ===== Fix 10: Catch-all — tout conteneur fond clair → texte foncé ===== */
.entry-content [style*="background"][style*="#f"] p,
.entry-content [style*="background"][style*="#f"] span,
.entry-content [style*="background"][style*="#f"] label,
.entry-content [style*="background"][style*="#f"] li,
.entry-content [style*="background"][style*="#f"] td {
    color: #333 !important;
    -webkit-text-fill-color: #333 !important;
}

.entry-content [style*="background"][style*="#f"] h2,
.entry-content [style*="background"][style*="#f"] h3,
.entry-content [style*="background"][style*="#f"] h4 {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
}

/* ===== Fix 10b: .reader-question + .community-block override dark theme ===== */
/* functions.php L229-230 force .entry-content { bg:#030712, color:#E5E7EB!important }
   sur TOUS les enfants, y compris .reader-question (fond parchemin #FAF7F2).
   On override avec body + .entry-content (spécificité 0,3,X) pour gagner.
   .community-block added (S10 2026-07-22) for forward compat. */

/* Conteneur lui-même + paragraphes (ancienne ET nouvelle structure) */
body .entry-content .reader-question,
body .entry-content .reader-question p,
body .entry-content .reader-question li,
body .entry-content .reader-question .reader-q,
body .entry-content .reader-question .reader-a,
body .entry-content .community-block,
body .entry-content .community-block p,
body .entry-content .community-block li {
    color: #3D3027 !important;
    -webkit-text-fill-color: #3D3027 !important;
}

/* H2 enfant de .reader-question / .community-block */
body .entry-content .reader-question h2,
body .entry-content .reader-question h3,
body .entry-content .community-block h2,
body .entry-content .community-block h3 {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: #5C4A3A !important;
    -webkit-text-fill-color: #5C4A3A !important;
}

/* H2 sibling AVANT .reader-question (ancienne structure — articles live existants).
   Le H2 est sur le fond de page (dark #030712) → on laisse le gradient natif
   visible. On retire juste le -webkit-text-fill-color si un fix antérieur
   l'avait écrasé. */
body .entry-content h2 + .reader-question,
body .entry-content h2 + .community-block {
    /* Pas de règle sur le H2 précédent (pas de previous-sibling selector).
       On nettoie juste le conteneur .reader-question si besoin. */
}

body .entry-content .reader-question a,
body .entry-content .community-block a {
    color: #8B6914 !important;
    -webkit-text-fill-color: #8B6914 !important;
}
body .entry-content .reader-question strong,
body .entry-content .reader-question b,
body .entry-content .community-block strong,
body .entry-content .community-block b {
    color: #B87333 !important;
    -webkit-text-fill-color: #B87333 !important;
}

/* ===== Fix 10c: .gap-perspective override dark theme (S10 2026-07-22) ===== */
body .entry-content .gap-perspective,
body .entry-content .gap-perspective p,
body .entry-content .gap-perspective li {
    color: #3D3027 !important;
    -webkit-text-fill-color: #3D3027 !important;
}
body .entry-content .gap-perspective h2,
body .entry-content .gap-perspective h3 {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: #C66B2A !important;
    -webkit-text-fill-color: #C66B2A !important;
}
body .entry-content .gap-perspective a {
    color: #A0522D !important;
    -webkit-text-fill-color: #A0522D !important;
}
body .entry-content .gap-perspective strong,
body .entry-content .gap-perspective b {
    color: #C66B2A !important;
    -webkit-text-fill-color: #C66B2A !important;
}

.entry-content [style*="background"][style*="#f"] a {
    color: #F97316 !important;
}

.entry-content [style*="background"][style*="#f"] strong,
.entry-content [style*="background"][style*="#f"] b {
    color: #431407 !important;
    -webkit-text-fill-color: #431407 !important;
}

/* ===== Fix D: Illustration contrast ===== */
/* Défense PRIMAIRE : publish_final_draft.py ajoute !important inline à chaque color: */
/* dans les blocs ILLU_START → les couleurs originales sont préservées et battent GP. */
/* Aucune règle CSS agressive ici — elles écraseraient les couleurs. */
/* Pour un article existant non passé par le pipeline : ajouter !important manuellement */
/* dans le HTML de l'illustration via WP Admin → mode Texte. */

/* ===== Fix 12: Submenu desktop — fond opaque + z-index (session 209) ===== */
.main-navigation .main-nav .sub-menu,
.main-navigation .main-nav ul ul {
    background: var(--color-surface) !important;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    z-index: 1001;
    padding: 0.5rem 0;
}

.main-navigation .main-nav .sub-menu li a,
.main-navigation .main-nav ul ul li a {
    color: var(--color-text-secondary);
    padding: 0.5rem 1rem;
}

.main-navigation .main-nav .sub-menu li a:hover,
.main-navigation .main-nav ul ul li a:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--color-accent);
}

/* ===== Fix 13b: Mobile menu UNTEL — hors media query, cible le <ul> absolute de GP ===== */
/* Le <ul> du #mobile-header est en position:absolute (GP sticky CSS) → flotte hors des conteneurs.
   Les règles sur #mobile-header/.main-nav/.inside-navigation ne le couvrent pas.
   Solution : fond dark directement sur le <ul> absolu. */
#mobile-header.toggled {
    background: rgba(17, 24, 39, 0.96) !important;
    position: relative;
    z-index: 1001;
}
#mobile-header.toggled .main-nav > ul {
    background: rgba(17, 24, 39, 0.96) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    border-radius: 0 0 12px 12px;
    border: 1px solid #1F2937;
    border-top: none;
}
#mobile-header.toggled .main-nav ul li a {
    color: #E5E7EB !important;
}
#mobile-header.toggled .main-nav ul li a:hover {
    color: #FFFFFF !important;
    background: rgba(249, 115, 22, 0.15) !important;
}
#mobile-header.toggled .main-nav ul li.current-menu-item > a {
    color: #FDBA74 !important;
}

/* ===== Fix 13: Mobile menu lisible — dark halo + texte clair ===== */
/* Cible TOUTES les variantes de nav mobile (toggle classique, mobile-header, slideout) */
/* Chargé en dernier (priority 999) → priorité absolue */
@media (max-width: 768px) {

    /* ── Conteneurs : fond dark + stacking context ── */
    .main-navigation.toggled,
    #site-navigation.toggled,
    #mobile-header.toggled {
        background: rgba(17, 24, 39, 0.96) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        position: relative;
        z-index: 1001;
    }

    /* ── Panneau .main-nav : fond dark, SANS toucher à position (GP gère absolute) ── */
    .main-navigation.toggled .main-nav,
    #site-navigation.toggled .main-nav,
    #mobile-header.toggled .main-nav {
        background: rgba(17, 24, 39, 0.96) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 1001;
        padding: 0.75rem 0;
        border-radius: 0 0 12px 12px;
        border: 1px solid #1F2937;
        border-top: none;
    }

    /* ── .inside-navigation : fond dark, SANS toucher à position ── */
    .main-navigation.toggled .inside-navigation,
    #site-navigation.toggled .inside-navigation,
    #mobile-header.toggled .inside-navigation {
        background: rgba(17, 24, 39, 0.96) !important;
    }

    /* Fond dark sur le <ul> absolu (GP sticky: position:absolute → flotte hors conteneurs) */
    .main-navigation.toggled .main-nav > ul {
        background: rgba(17, 24, 39, 0.96) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    .main-navigation.toggled .main-nav ul li a {
        color: #E5E7EB !important;
    }
    .main-navigation.toggled .main-nav ul li a:hover {
        color: #FFFFFF !important;
        background: rgba(249, 115, 22, 0.15) !important;
    }
    .main-navigation.toggled .main-nav ul li.current-menu-item > a {
        color: #FDBA74 !important;
    }
}

/* ===== Fix 11: Pagination archives — full-width block (bloque GP Premium columns) ===== */
body.archive .generate-pagination,
body.category .generate-pagination,
body.archive .generate-columns-container,
body.category .generate-columns-container,
body.archive .generate-columns,
body.category .generate-columns {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    grid-column: 1 / -1 !important;
}

/* ── [affiliate_cta type="protonvpn"] variant — porté depuis DGEDL Fix 5 ── */
.affiliate-cta--protonvpn .affiliate-cta-button-wrap {
    text-align: center;
    margin-top: 1rem;
}
.affiliate-cta--protonvpn .affiliate-cta-disclaimer {
    font-size: 0.85em;
    opacity: 0.7;
    text-align: center;
    margin-top: 0.5rem;
}

/* ===== Pricing grid — 2 colonnes desktop, 1 mobile (porté depuis DGEDL Fix 13a) ===== */
.pricing-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 30px 0;
}
.pricing-grid > br {
    display: none;
}
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Fix ILLUS: Micro-icônes SVG sur H2 — rotation 3 thèmes (V1) ===== */
/* Icône subtile en haut à droite du H2 via ::before (libre).
   Ne touche pas au ::after existant (barrette décorative).
   SVG encodés en base64 — compatibilité Firefox/Safari/Chrome. */

.single-post .entry-content h2::before,
.page .entry-content h2::before {
    content: '';
    position: absolute;
    top: 4px;
    right: 12px;
    width: 26px;
    height: 26px;
    background-color: var(--color-teal);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

.single-post .entry-content h2:hover::before,
.page .entry-content h2:hover::before {
    opacity: 0.65;
}

/* Exclure les conteneurs à fond clair (expert-box, note-color, formulaires) */
.expert-box h2::before,
.note-color h2::before,
.contact-form-light h2::before,
#dgl-contact-form h2::before {
    display: none !important;
}

/* Rotation 1/3 : Smartphone */
.single-post .entry-content h2:nth-of-type(3n+1)::before,
.page .entry-content h2:nth-of-type(3n+1)::before {
    mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHJlY3QgeD0iOSIgeT0iMSIgd2lkdGg9IjE0IiBoZWlnaHQ9IjMwIiByeD0iMyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+PGxpbmUgeDE9IjEzIiB5MT0iNCIgeDI9IjE5IiB5Mj0iNCIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPjxjaXJjbGUgY3g9IjE2IiBjeT0iMjciIHI9IjEuNSIgZmlsbD0id2hpdGUiIG9wYWNpdHk9IjAuNiIvPjwvc3ZnPg==");
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHJlY3QgeD0iOSIgeT0iMSIgd2lkdGg9IjE0IiBoZWlnaHQ9IjMwIiByeD0iMyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+PGxpbmUgeDE9IjEzIiB5MT0iNCIgeDI9IjE5IiB5Mj0iNCIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPjxjaXJjbGUgY3g9IjE2IiBjeT0iMjciIHI9IjEuNSIgZmlsbD0id2hpdGUiIG9wYWNpdHk9IjAuNiIvPjwvc3ZnPg==");
}

/* Rotation 2/3 : Signal */
.single-post .entry-content h2:nth-of-type(3n+2)::before,
.page .entry-content h2:nth-of-type(3n+2)::before {
    mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTQgMjIgUTE2IDQgMjggMjIiIGZpbGw9Im5vbmUiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMi41IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48cGF0aCBkPSJNOSAyMiBRMTYgMTAgMjMgMjIiIGZpbGw9Im5vbmUiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMi41IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48cGF0aCBkPSJNMTQgMjIgUTE2IDE2IDE4IDIyIiBmaWxsPSJub25lIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9zdmc+");
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTQgMjIgUTE2IDQgMjggMjIiIGZpbGw9Im5vbmUiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMi41IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48cGF0aCBkPSJNOSAyMiBRMTYgMTAgMjMgMjIiIGZpbGw9Im5vbmUiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMi41IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48cGF0aCBkPSJNMTQgMjIgUTE2IDE2IDE4IDIyIiBmaWxsPSJub25lIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9zdmc+");
}

/* Rotation 3/3 : Batterie */
.single-post .entry-content h2:nth-of-type(3n)::before,
.page .entry-content h2:nth-of-type(3n)::before {
    mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHJlY3QgeD0iNyIgeT0iOSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE0IiByeD0iMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+PHJlY3QgeD0iMjMiIHk9IjEzIiB3aWR0aD0iMyIgaGVpZ2h0PSI2IiByeD0iMSIgZmlsbD0id2hpdGUiLz48cmVjdCB4PSIxMCIgeT0iMTIiIHdpZHRoPSIxMCIgaGVpZ2h0PSI4IiBmaWxsPSJ3aGl0ZSIgb3BhY2l0eT0iMC42Ii8+PC9zdmc+");
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHJlY3QgeD0iNyIgeT0iOSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE0IiByeD0iMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+PHJlY3QgeD0iMjMiIHk9IjEzIiB3aWR0aD0iMyIgaGVpZ2h0PSI2IiByeD0iMSIgZmlsbD0id2hpdGUiLz48cmVjdCB4PSIxMCIgeT0iMTIiIHdpZHRoPSIxMCIgaGVpZ2h0PSI4IiBmaWxsPSJ3aGl0ZSIgb3BhY2l0eT0iMC42Ii8+PC9zdmc+");
}

/* ===== Fix 16: Légendes d'images lisibles sur fond dark (BUG-FIX S290) ===== */
.entry-content figcaption,
.wp-block-image figcaption,
.wp-block-gallery figcaption,
.entry-content .wp-caption-text {
    color: #9CA3AF !important;
    opacity: 1 !important;
}

/* Responsive : icône plus petite sur mobile */
@media (max-width: 768px) {
    .single-post .entry-content h2::before,
    .page .entry-content h2::before {
        width: 20px;
        height: 20px;
        right: 8px;
    }
}

/* ===== Fix: Bouton NordVPN CTA — texte blanc sur fond bleu ===== */
/* Le plugin affiliate-cta-inserter genere la classe vpn-btn-nord.
   Le theme inline a{color:...!important} peut ecraser le blanc.
   Cible specifique: <a> direct avec classe vpn-btn-nord. */
a.vpn-btn-nord,
a.vpn-btn-nord:hover,
a.vpn-btn-nord:visited,
a.vpn-btn-nord:focus {
    color: #FFFFFF !important;
    text-decoration: none !important;
    background: #4687ff !important;
}
a.vpn-btn-nord:hover {
    background: #3575e8 !important;
}

/* Table responsive — prevents overflow in gap/community blocks (S42, 2026-08-04) */
body .entry-content .gap-perspective .custom-table2,
body .entry-content .community-block .custom-table2,
body .entry-content .gap-perspective table,
body .entry-content .community-block table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* ═══════════ FOOTER UNTEL (main-footer-v9) — calqué sur DGEDL, palette feu ═══════════ */
/* Le contenu du footer est un bloc GenerateBlocks (éditeur WP) ; ce CSS le met en forme.
   Palette feu : accent orange #F97316, accent secondaire jaune #FACC15. */

/* Fond du conteneur footer — ⚠️ OBLIGATOIRE : le bloc GenerateBlocks utilise
   `backgroundColor: var(--contrast)`, or sur UNTEL `--contrast` = #F5F5F5 (clair)
   → fond BLANC. On force ici un gradient sombre feu (indépendant de GenerateBlocks,
   qui ne génère pas le CSS du conteneur). */
.gb-container-main-footer-untel-v1 {
    background: linear-gradient(235deg, #1a0f08 0%, #3d1f0a 100%) !important;
    color: #f5f5f5 !important;
    margin-top: -30px;
}
.gb-container-main-footer-untel-v1 > .gb-inside-container {
    padding: 50px 30px 80px;
    /* ⚠️ `!important` OBLIGATOIRE : GenerateBlocks génère sa propre règle
       `.gb-container-main-footer-untel-v1 > .gb-inside-container { max-width: var(--gb-container-width) }`
       (= 2000px) avec la MÊME spécificité, chargée après → sans `!important`,
       c'est elle qui gagne et le footer s'étale sur toute la largeur.
       Largeur 1200px = identique au footer DGEDL (--gb-container-width: 1200px). */
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ⚠️ CSS du GRID footer — GenerateBlocks ne le génère PAS sur UNTEL (contrairement
   à DGEDL). Sans ça, les colonnes n'ont pas de display:flex → elles s'empilent et
   prennent toute la largeur. On reproduit le CSS que GenerateBlocks génère sur DGEDL. */
.gb-grid-wrapper-footer-grid-untel-v1 {
    display: flex;
    flex-wrap: wrap;
    align-items: top;
    row-gap: 45px;
}
.gb-grid-wrapper-footer-grid-untel-v1 > .gb-grid-column {
    box-sizing: border-box;
}
.gb-grid-column-left-untel-v1 { width: 46%; }
.gb-grid-column-right-untel-v1 { width: 54%; }
.gb-grid-wrapper-footer-bottom-grid-untel-v1 {
    display: flex;
    flex-wrap: wrap;
    align-items: top;
}
.gb-grid-wrapper-footer-bottom-grid-untel-v1 > .gb-grid-column {
    box-sizing: border-box;
}
.gb-grid-column-footer-bottom-left-untel-v1 { width: 50%; }
.gb-grid-column-footer-bottom-right-untel-v1 { width: 50%; }
@media (max-width: 768px) {
    .gb-grid-column-left-untel-v1,
    .gb-grid-column-right-untel-v1,
    .gb-grid-column-footer-bottom-left-untel-v1,
    .gb-grid-column-footer-bottom-right-untel-v1 { width: 100%; }
}

.untel-footer-title {
    color: var(--color-text, #F5F5F5);
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    letter-spacing: 0.01em;
}
.untel-footer-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: var(--color-accent, #F97316);
    margin-top: 0.5rem;
    border-radius: 2px;
}
.untel-footer-search {
    margin-top: 1rem;
    max-width: 400px;
}
.untel-footer-search-form {
    position: relative;
    display: flex;
    align-items: stretch;
}
.untel-footer-search-input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid var(--color-border-strong, #404040);
    border-right: none;
    border-radius: var(--radius-sm, 8px) 0 0 var(--radius-sm, 8px);
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-text, #F5F5F5);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.9rem;
    height: 48px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
}
.untel-footer-search-input::placeholder {
    color: var(--color-text-secondary, #A3A3A3);
}
.untel-footer-search-input:focus {
    border-color: var(--color-accent, #F97316);
}
.untel-footer-search-btn {
    background: linear-gradient(to top, #EA580C, #F97316);
    color: #1A1A1A;
    border: none;
    border-radius: 0 var(--radius-sm, 8px) var(--radius-sm, 8px) 0;
    padding: 0 22px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    height: 48px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.02em;
}
.untel-footer-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}
.untel-footer-social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.untel-footer-social li {
    margin: 0;
    padding: 0;
}
.untel-footer-social li::before {
    content: '' !important;
    display: none;
}
.untel-footer-social a {
    color: var(--color-text-secondary, #A3A3A3);
    text-decoration: none;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.95rem;
    padding: 0.35rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: color 0.2s ease;
}
.untel-footer-social a:hover {
    color: var(--color-accent, #F97316);
}
.untel-footer-social a::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-accent, #F97316);
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
.untel-footer-social a:hover::before {
    opacity: 1;
}
.untel-footer-pricing {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--color-border, #262626);
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    font-family: var(--font-body, 'Inter', sans-serif);
}
.untel-footer-pricing td {
    padding: 14px 18px;
    color: var(--color-text, #F5F5F5);
    border-bottom: 1px solid var(--color-border, #262626);
    font-size: 0.95rem;
}
.untel-footer-pricing tr:last-child td {
    border-bottom: none;
}
.untel-footer-pricing td:first-child {
    font-weight: 500;
}
.untel-footer-pricing td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--color-accent, #F97316);
    font-variant-numeric: tabular-nums;
}
.untel-footer-cta {
    display: block;
    text-align: center;
    background: linear-gradient(to top, #EA580C, #F97316);
    color: #1A1A1A;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm, 8px);
    text-decoration: none;
    font-size: 0.95rem;
    margin: 1.5rem 0 0.75rem 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}
.untel-footer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.25);
    color: #1A1A1A;
}
.untel-footer-cta-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-secondary, #A3A3A3);
    margin: 0;
    font-family: var(--font-body, 'Inter', sans-serif);
}
.untel-footer-contact-link {
    color: var(--color-accent, #F97316);
    text-decoration: none;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}
.untel-footer-contact-link:hover {
    color: var(--color-accent-light, #FDBA74);
}
.untel-footer-contact-link::after {
    content: '→';
    transition: transform 0.2s ease;
}
.untel-footer-contact-link:hover::after {
    transform: translateX(3px);
}
.untel-footer-bottom {
    border-top: 1px solid var(--color-border, #262626);
    padding-top: 1.5rem;
    margin-top: 3rem;
    font-family: var(--font-body, 'Inter', sans-serif);
}
.untel-footer-copy {
    color: var(--color-text-secondary, #A3A3A3);
    font-size: 0.85rem;
    margin: 0;
}
.untel-footer-copy a {
    color: var(--color-text, #F5F5F5);
    text-decoration: none;
    transition: color 0.2s ease;
}
.untel-footer-copy a:hover {
    color: var(--color-accent, #F97316);
}
.untel-footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    justify-content: flex-end;
}
.untel-footer-nav li {
    margin: 0;
    padding: 0;
}
.untel-footer-nav li::before {
    content: '' !important;
    display: none;
}
.untel-footer-nav a {
    color: var(--color-text-secondary, #A3A3A3);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}
.untel-footer-nav a:hover {
    color: var(--color-accent, #F97316);
}
.untel-footer-disclaimer {
    font-size: 0.78rem;
    color: var(--color-text-secondary, #A3A3A3);
    line-height: 1.6;
    margin: 1.5rem 0 0 0;
    font-style: italic;
    opacity: 0.75;
}
@media (max-width: 768px) {
    .untel-footer-nav {
        justify-content: flex-start;
        margin-top: 1rem;
    }
    .untel-footer-copy {
        margin-bottom: 1rem;
    }
}
/* Overrides thème — functions.php force a{color:#FB923C!important;text-decoration:underline!important} */
.site-footer .untel-footer-cta,
.site-footer .untel-footer-cta:visited,
.site-footer .untel-footer-cta:hover,
.site-footer .untel-footer-cta:focus {
    color: #1A1A1A !important;
    -webkit-text-fill-color: #1A1A1A !important;
    text-decoration: none !important;
}
.site-footer .untel-footer-nav a,
.site-footer .untel-footer-social a,
.site-footer .untel-footer-copy a,
.site-footer .untel-footer-contact-link {
    text-decoration: none !important;
}
