/* ============================================================
   Xibar Native — xn.css
   Tokens CSS + composants de base
   Préfixe classes : .xn-*
   ============================================================ */

/* ── 1. TOKENS ─────────────────────────────────────────────── */
:root {
    /* Couleurs marque */
    --xn-color-blue:         #2740B2;
    --xn-color-blue-dark:    #1c2e8a;
    --xn-color-blue-light:   #e8ecfa;
    --xn-color-green:        #42A418;
    --xn-color-green-dark:   #327d12;
    --xn-color-red:          #d32f2f;

    /* Neutres */
    --xn-color-black:        #111111;
    --xn-color-dark:         #222222;
    --xn-color-gray-dark:    #444444;
    --xn-color-gray:         #555555;   /* ticker */
    --xn-color-gray-mid:     #888888;
    --xn-color-gray-light:   #cccccc;
    --xn-color-border:       #e5e5e5;
    --xn-color-bg:           #f5f5f5;
    --xn-color-white:        #ffffff;

    /* Typographie */
    --xn-font-heading:       'Montserrat', sans-serif;
    --xn-font-body:          'Inter', sans-serif;
    --xn-font-sans:          'Inter', system-ui, -apple-system, sans-serif;
    --xn-font-size-base:     16px;
    --xn-line-height:        1.6;
    --xn-font-weight-normal: 400;
    --xn-font-weight-medium: 500;
    --xn-font-weight-bold:   700;

    /* Espacement */
    --xn-space-xs:   4px;
    --xn-space-sm:   8px;
    --xn-space-md:   16px;
    --xn-space-lg:   24px;
    --xn-space-xl:   40px;
    --xn-space-2xl:  64px;

    /* Layout */
    --xn-container:  1380px;
    --xn-sidebar-w:  300px;
    --xn-gap:        24px;
    --xn-radius:     4px;

    /* Ombres */
    --xn-shadow-sm:  0 1px 3px rgba(0,0,0,.08);
    --xn-shadow-md:  0 4px 12px rgba(0,0,0,.12);

    /* Transitions */
    --xn-transition: 150ms ease;
}

/* ── 2. RESET MINIMAL ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: var(--xn-font-size-base); scroll-behavior: smooth; }
body  { font-family: var(--xn-font-body); color: var(--xn-color-dark); background: var(--xn-color-bg); line-height: var(--xn-line-height); }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--xn-font-heading);
    font-weight: 800;
    letter-spacing: -.2px;
}
p, .xn-card__excerpt, .xn-single__content p {
    font-family: var(--xn-font-body);
    font-size: 16px;
    line-height: 1.85;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--xn-color-blue); text-decoration: none; }
a:hover { color: var(--xn-color-blue-dark); }
ul { list-style: none; }

/* ── 3. LAYOUT ─────────────────────────────────────────────── */
.xn-container {
    max-width: var(--xn-container);
    margin-inline: auto;
    padding-inline: var(--xn-space-md);
}

.xn-scope {
    /* Scope isolation — tous les composants thème vivent ici */
}

/* Grille principale : contenu + sidebar */
.xn-layout {
    display: grid;
    grid-template-columns: 1fr var(--xn-sidebar-w);
    gap: var(--xn-gap);
    align-items: start;
}
@media (max-width: 768px) {
    .xn-layout { grid-template-columns: 1fr; }
}

/* ── 4. TOPBAR ─────────────────────────────────────────────── */
.xn-topbar {
    background: var(--xn-color-blue);
    color: var(--xn-color-white);
    font-size: 13px;
    padding: var(--xn-space-xs) 0;
}
.xn-topbar a { color: var(--xn-color-white); }

.xn-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.xn-topbar__left {
    display: flex;
    align-items: center;
    gap: var(--xn-space-sm);
}
.xn-topbar__date { color: var(--xn-color-white); text-transform: capitalize; }
.xn-topbar__radio-toggle {
    background: none;
    border: none;
    color: var(--xn-color-white);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    opacity: .8;
    transition: opacity var(--xn-transition);
    line-height: 1;
}
.xn-topbar__radio-toggle:hover { opacity: 1; }
.xn-topbar__socials {
    display: flex;
    align-items: center;
    gap: 12px;
}
.xn-topbar__socials a {
    color: rgba(255, 255, 255, .8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: var(--xn-radius);
    transition: color var(--xn-transition);
}
.xn-topbar__socials a:hover { color: var(--xn-color-white); }
.xn-topbar__socials svg { width: 16px; height: 16px; display: block; }

/* ── 5. TICKER ─────────────────────────────────────────────── */
/* Le badge est SORTI du track scrollant : flex container parent,
   badge fixe a gauche (z-index:2), zone de scroll a droite. */
.xn-ticker {
    background: var(--xn-color-white);
    border-bottom: 1px solid var(--xn-color-border);
    color: var(--xn-color-gray);
    font-size: 13px;
    padding: var(--xn-space-xs) 0;
}
.xn-ticker__inner {
    display: flex;
    align-items: center;
    gap: var(--xn-space-sm);
}
.xn-ticker__label {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    background: var(--xn-color-blue) !important;
    color: var(--xn-color-white);
    padding: 2px var(--xn-space-sm);
    font-weight: var(--xn-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.xn-ticker__scroll {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}
.xn-ticker__track {
    display: inline-block;
    animation: xn-scroll 40s linear infinite;
}
.xn-ticker__track a { color: var(--xn-color-gray); margin-right: var(--xn-space-xl); }
.xn-ticker__track a:hover { color: var(--xn-color-blue); }
@keyframes xn-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── 6. NAVBAR ─────────────────────────────────────────────── */
.xn-navbar {
    background: var(--xn-color-white);
    border-bottom: 3px solid var(--xn-color-blue);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--xn-shadow-sm);
}
.xn-navbar__inner {
    display: flex;
    align-items: center;
    padding: var(--xn-space-sm) 0;
    position: relative; /* containing block du dropdown recherche */
}
.xn-navbar__logo { flex-shrink: 0; }
.xn-navbar__logo img {
    height: 44px;
    width: auto;
    max-width: 180px;
}
.xn-navbar__logo span { font-size: 22px; font-weight: var(--xn-font-weight-bold); color: var(--xn-color-blue); }

/* Menu centre entre logo et loupe */
.xn-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 4px;
    list-style: none;
}
.xn-nav a {
    display: block;
    padding: var(--xn-space-sm) var(--xn-space-md);
    font-size: 13px;
    font-weight: var(--xn-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--xn-color-dark);
    border-radius: var(--xn-radius);
    transition: background var(--xn-transition), color var(--xn-transition);
}
.xn-nav a:hover,
.xn-nav .current-menu-item > a,
.xn-nav .current-menu-ancestor > a { background: var(--xn-color-blue); color: var(--xn-color-white); }

/* Bouton recherche (a droite, taille fixe) */
.xn-search-toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--xn-color-border);
    background: var(--xn-color-white);
    color: var(--xn-color-dark);
    cursor: pointer;
    transition: background var(--xn-transition), color var(--xn-transition), border-color var(--xn-transition);
}
.xn-search-toggle:hover,
.xn-search-toggle[aria-expanded="true"] {
    background: var(--xn-color-blue);
    border-color: var(--xn-color-blue);
    color: var(--xn-color-white);
}

/* Dropdown recherche compact (positionne dans la navbar a droite)
   La .xn-navbar est position:sticky, ce qui sert deja de containing block
   pour les descendants absolus. */
.xn-search-bar {
    position: absolute;
    right: 0;
    top: 100%;
    width: 320px;
    background: var(--xn-color-white);
    border: 1px solid var(--xn-color-border);
    border-radius: var(--xn-radius);
    padding: 12px;
    box-shadow: var(--xn-shadow-md);
    z-index: 200;
}
.xn-search-bar[hidden] { display: none; }
/* Le form interne utilise les classes BEM .xn-searchform definies plus
   bas (searchform.php override WP defaut). Les anciennes regles
   .xn-search-bar input / .search-field / .search-submit (~28 lignes)
   sont supprimees — devenues obsoletes avec le nouveau form Xibar. */

@media (max-width: 480px) {
    .xn-search-bar { width: calc(100vw - var(--xn-space-md) * 2); right: var(--xn-space-md); }
}

/* ── 7. CARDS (grille articles : homepage / archives / search) ─ */
/* Base : card verticale moderne (image 16:9 + badge categorie overlay
   + titre + extrait + meta date). Variante horizontale .xn-card--list
   definie dans xn-layout.css (sections CAT D / CAT E). */
.xn-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--xn-color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--xn-shadow-sm);
    transition: transform var(--xn-transition), box-shadow var(--xn-transition);
}
.xn-card::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: var(--xn-color-blue);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--xn-transition);
}
.xn-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(39, 64, 178, .12), 0 4px 10px rgba(15, 23, 42, .08);
}
.xn-card:hover::after { transform: scaleX(1); }

.xn-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--xn-color-blue-light);
}
.xn-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 380ms cubic-bezier(.2, .7, .2, 1);
}
.xn-card:hover .xn-card__media img { transform: scale(1.05); }
.xn-card__img--placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--xn-color-blue-light);
}

.xn-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--xn-color-blue);
    color: var(--xn-color-white);
    font-size: 11px;
    font-weight: var(--xn-font-weight-bold);
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: var(--xn-radius);
    line-height: 1;
}
.xn-card__badge--sport,
.xn-card__badge--sports        { background: var(--xn-color-green); }
.xn-card__badge--culture       { background: #b9450b; }
.xn-card__badge--economie,
.xn-card__badge--eco           { background: #1f2937; }

.xn-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding: 16px 16px 18px;
}
.xn-card__title {
    margin: 0;
    font-size: 17px;
    font-weight: var(--xn-font-weight-bold);
    line-height: 1.3;
    color: var(--xn-color-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--xn-transition);
}
.xn-card__title a { color: inherit; text-decoration: none; }
.xn-card:hover .xn-card__title,
.xn-card:hover .xn-card__title a { color: var(--xn-color-blue); }

.xn-card__excerpt {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: var(--xn-color-gray-mid);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xn-card__meta {
    margin-top: auto;
    padding-top: 8px;
    font-size: 12px;
    color: var(--xn-color-gray-mid);
    display: flex;
    align-items: center;
    gap: 6px;
}
.xn-card__meta-icon { width: 12px; height: 12px; flex-shrink: 0; }

/* Legacy : badge categorie inline (utilise dans .xn-hero-list__overlay). */
.xn-card__cat {
    display: inline-block;
    background: var(--xn-color-green);
    color: var(--xn-color-white);
    font-size: 11px;
    font-weight: var(--xn-font-weight-bold);
    padding: 2px 8px;
    border-radius: var(--xn-radius);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: var(--xn-space-xs);
}

/* Reset variante horizontale (.xn-card--list defini dans xn-layout.css).
   La liste n'utilise ni le lift au hover, ni la barre accent, ni le radius. */
.xn-card--list {
    flex-direction: row;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.xn-card--list::after { content: none; }
.xn-card--list:hover { transform: none; box-shadow: none; }
.xn-card--list:hover .xn-card__title,
.xn-card--list:hover .xn-card__title a { color: var(--xn-color-blue); }

/* ── 8. GRILLE ARTICLES ────────────────────────────────────── */
.xn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--xn-gap);
}

/* ── 9. ARTICLE SINGLE ─────────────────────────────────────── */
/* Fond blanc cible UNIQUEMENT sur le contenu article — la regle
   precedente sur body.single + .xn-container blanchissait aussi le
   footer et faisait perdre le fond a la sidebar. Le body conserve
   var(--xn-color-bg) #f5f5f5, le footer son propre dark bg, la
   sidebar son aspect d origine. Seule la carte article (.xn-single)
   et la colonne centrale eventuelle (.xn-home__main, utile si la
   single passe un jour sur une grille home-like) passent en blanc. */
body.single .xn-single {
    background: #ffffff;
    padding: 24px;
    border-radius: 0;
}
body.single .xn-home__main,
body.single .xn-single__content {
    background: #ffffff;
}

/* Pubs leaderboard (avant/apres article) — fond blanc + padding leger
   pour ne pas casser l effet 'plaque blanche' du contenu article. */
body.single .xn-ad,
body.single .xn-ad--leaderboard {
    background: #ffffff;
    padding: 12px 0;
}

/* Barre de partage reseaux sociaux (.xn-share — classe reelle, pas
   .xn-single__share). Le defaut etait fond gris (var --xn-color-bg) ;
   on aligne sur la couleur de la plaque article. */
body.single .xn-share {
    background: #ffffff;
    padding: 16px;
}

/* Articles similaires — les cards utilisent maintenant le partial
   card-article (refactor single.php), donc .xn-card global s applique
   (Badge C + Meta C + bg blanc). Filet de secu sur les selecteurs
   historiques au cas ou un override traine. */
body.single .xn-similaires__item,
body.single .xn-similaires .xn-card {
    background: #ffffff;
}

/* Fil Disqus : #disqus_thread est l ID emis par le script Disqus
   (apres dsq_embed_forum). Le wrapper .xn-single__comments n existe
   pas dans le markup actuel mais reste liste au cas ou il serait
   ajoute. Cible aussi la .comment-list / #respond du fallback WP
   natif (quand le plugin Disqus n est pas actif). */
body.single #disqus_thread,
body.single .xn-single__comments,
body.single .comment-list,
body.single #respond {
    background: #ffffff;
    padding: 24px;
    margin-top: 24px;
}

.xn-single__header { margin-bottom: var(--xn-space-lg); }
.xn-single__title { font-size: clamp(22px, 4vw, 32px); font-weight: var(--xn-font-weight-bold); line-height: 1.25; margin-bottom: var(--xn-space-sm); }

/* Breadcrumb (fil d'Ariane) — single, archive, search.
   Genere par xibar_breadcrumb() inc/template-tags.php avec JSON-LD
   BreadcrumbList Schema.org pour rich snippets Google.
   Separateur : icone Tabler ti-chevron-right. Dernier item (page
   courante) : color gray-mid + aria-current="page". */
.xn-breadcrumb {
    margin-bottom: var(--xn-space-sm);
    font-family: var(--xn-font-body);
    font-size: 13px;
}
.xn-breadcrumb__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.xn-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.xn-breadcrumb__link {
    color: var(--xn-color-blue);
    text-decoration: none;
    transition: color var(--xn-transition);
}
.xn-breadcrumb__link:hover {
    color: var(--xn-color-blue-dark);
    text-decoration: underline;
}
.xn-breadcrumb__current {
    color: var(--xn-color-gray-mid);
}
.xn-breadcrumb__separator {
    color: var(--xn-color-gray-mid);
    font-size: 14px;
    line-height: 1;
}

/* Categorie(s) article single — badges Combo A pentagone bleu +
   accent vert gauche. get_the_category_list('') sans separateur pour
   pas de virgule entre badges (single.php wrapper .xn-single__cat). */
.xn-single__cat {
    margin-bottom: var(--xn-space-sm);
}
.xn-single__cat a {
    display: inline-block;
    background: var(--xn-color-blue);
    color: var(--xn-color-white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 4px 20px 4px 8px;
    border-left: 3px solid var(--xn-color-green);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
    margin-right: 4px;
    text-decoration: none;
    transition: background var(--xn-transition);
}
.xn-single__cat a:hover {
    background: var(--xn-color-blue-dark);
    color: var(--xn-color-white);
}

/* Header partage archives + recherche (archive.php, search.php).
   .xn-archive__title etait reference sans style defini (bug session
   8) — desormais stylee comme .xn-single__title pour coherence.
   .xn-archive__title-term met en avant le terme recherche en bleu. */
.xn-archive-header {
    margin-bottom: var(--xn-space-lg);
}
.xn-archive__title {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: var(--xn-font-weight-bold);
    line-height: 1.25;
    margin-bottom: var(--xn-space-sm);
    color: var(--xn-color-dark);
}
.xn-archive__title-term {
    color: var(--xn-color-blue);
}
.xn-archive__desc {
    font-size: 15px;
    color: var(--xn-color-gray);
    line-height: 1.55;
    margin: 0;
}
.xn-archive-header__form {
    margin-top: var(--xn-space-md);
    max-width: 520px;
}

/* Cas zero resultat recherche — wrapper centre stylé. */
.xn-search-empty {
    text-align: center;
    padding: var(--xn-space-2xl) var(--xn-space-md);
    max-width: 520px;
    margin: 0 auto;
}
.xn-search-empty__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--xn-color-dark);
    margin-bottom: var(--xn-space-sm);
}
.xn-search-empty__hint {
    font-size: 14px;
    color: var(--xn-color-gray-mid);
    margin-bottom: var(--xn-space-lg);
}
.xn-search-empty__form {
    margin-top: var(--xn-space-md);
}

/* Formulaire de recherche unifie — searchform.php override WP par defaut.
   Utilise par tous les get_search_form() du theme (search.php navbar
   dropdown, .xn-search-empty, etc.). Design Xibar : input bordure 1px
   focus bleu, bouton bleu hover plus fonce. */
.xn-searchform {
    display: flex;
    flex-direction: row;
    gap: var(--xn-space-sm);
    max-width: 520px;
    width: 100%;
}
.xn-searchform__input {
    flex: 1;
    min-width: 0;
    background: var(--xn-color-white);
    border: 1px solid var(--xn-color-border);
    border-radius: 4px;
    padding: 10px 16px;
    font-family: var(--xn-font-body);
    font-size: 14px;
    color: var(--xn-color-dark);
    transition: border-color var(--xn-transition);
}
.xn-searchform__input::placeholder {
    color: var(--xn-color-gray-mid);
}
.xn-searchform__input:focus {
    outline: none;
    border-color: var(--xn-color-blue);
}
/* Style C — outline bleu : transparent par defaut, fill au hover. */
.xn-searchform__submit {
    flex-shrink: 0;
    background: transparent;
    color: var(--xn-color-blue);
    border: 2px solid var(--xn-color-blue);
    border-radius: 6px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--xn-transition), color var(--xn-transition);
}
.xn-searchform__submit:hover,
.xn-searchform__submit:focus {
    background: var(--xn-color-blue);
    color: var(--xn-color-white);
    outline: none;
}
/* Desktop : icone Tabler du bouton submit cachee (texte "Rechercher"
   suffit). En mobile < 480px : inversion (cf bloc 17b plus bas). */
.xn-searchform__submit-icon { display: none; }
.xn-single__thumb {
    width: 100%;
    margin-top: 20px;
    margin-bottom: var(--xn-space-lg);
    border-radius: var(--xn-radius);
    overflow: hidden;
}
.xn-single__thumb img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
    border-radius: var(--xn-radius);
}
.xn-single__content { font-size: 17px; line-height: 1.75; color: var(--xn-color-dark); }
.xn-single__content h2, .xn-single__content h3 { margin: var(--xn-space-lg) 0 var(--xn-space-sm); font-weight: var(--xn-font-weight-bold); }
.xn-single__content p { margin-bottom: var(--xn-space-md); }
.xn-single__content a { color: var(--xn-color-blue); text-decoration: underline; }
.xn-single__content blockquote { border-left: 4px solid var(--xn-color-blue); padding-left: var(--xn-space-md); color: var(--xn-color-gray); font-style: italic; margin: var(--xn-space-lg) 0; }

/* ── BOUTONS PARTAGE ──────────────────────────────────────── */
.xn-share {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: var(--xn-space-xl) 0 var(--xn-space-lg);
    padding: var(--xn-space-md);
    background: var(--xn-color-bg);
    border-radius: var(--xn-radius);
}
.xn-share__label {
    font-weight: 700;
    font-size: 13px;
    margin-right: 4px;
}
.xn-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity var(--xn-transition);
}
.xn-share__btn:hover { opacity: .85; }
.xn-share__btn--fb { background: #1877f2; color: var(--xn-color-white); }
.xn-share__btn--tw { background: var(--xn-color-black); color: var(--xn-color-white); }
.xn-share__btn--wa { background: #25d366; color: var(--xn-color-white); }
.xn-share__btn--copy {
    background: var(--xn-color-gray-light);
    color: var(--xn-color-dark);
}
.xn-share__btn.is-copied {
    background: var(--xn-color-green);
    color: var(--xn-color-white);
}
.xn-share__btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── ARTICLES SIMILAIRES (single) ──────────────────────────── */
.xn-similaires { margin: var(--xn-space-xl) 0; }
.xn-similaires__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--xn-gap);
    margin-top: var(--xn-space-md);
}
.xn-similaires__thumb {
    display: block;
    overflow: hidden;
    border-radius: var(--xn-radius) var(--xn-radius) 0 0;
}
.xn-similaires__thumb img,
.xn-similaires__thumb .xn-thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.xn-similaires .xn-card__title { font-size: 14px; }
.xn-similaires .cat-links a {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--xn-color-blue);
    margin-bottom: 4px;
}
@media (max-width: 1024px) {
    .xn-similaires__grid { grid-template-columns: repeat(3, 1fr); }
}
/* Mobile (< 768px) : grille 2x2 fixe — pas de retombee 1 col. Q3 session
   9bis : evite le saut brutal 1 -> 2 cols a 480px et garde une lecture
   dense sur 4 articles similaires. */
@media (max-width: 768px) {
    .xn-similaires__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Similaires — auteur masque, date + commentaires tiennent sur une ligne */
.xn-similaires .xn-card__author {
    display: none;
}

/* ── COMMENTAIRES SINGLE ───────────────────────────────────── */
.comment-list {
    list-style: none;
    padding: 0;
    margin: var(--xn-space-lg) 0;
}
.comment-list .children {
    list-style: none;
    padding-left: var(--xn-space-lg);
    margin-top: var(--xn-space-md);
}
.comment-body {
    background: var(--xn-color-white);
    border-radius: var(--xn-radius);
    padding: var(--xn-space-md);
    margin-bottom: var(--xn-space-md);
    box-shadow: var(--xn-shadow-sm);
    border-left: 3px solid var(--xn-color-blue);
}
.comment-author { display: flex; align-items: center; gap: var(--xn-space-sm); margin-bottom: 4px; }
.comment-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}
.comment-author .fn {
    font-weight: 700;
    font-size: 14px;
    color: var(--xn-color-dark);
    font-style: normal;
}
.comment-metadata {
    font-size: 12px;
    color: var(--xn-color-gray-mid);
    margin-bottom: var(--xn-space-sm);
}
.comment-metadata a { color: inherit; }
.comment-content { font-size: 14px; line-height: 1.6; }
.reply { margin-top: var(--xn-space-sm); }
.reply .comment-reply-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--xn-color-blue);
}

#respond {
    background: var(--xn-color-white);
    padding: var(--xn-space-lg);
    border-radius: var(--xn-radius);
    box-shadow: var(--xn-shadow-sm);
    margin-top: var(--xn-space-lg);
}
#respond h3,
#respond .comment-reply-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--xn-space-md);
    color: var(--xn-color-blue);
}
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--xn-color-border);
    border-radius: var(--xn-radius);
    font-family: var(--xn-font-sans);
    font-size: 14px;
    margin-bottom: var(--xn-space-sm);
    background: var(--xn-color-white);
    color: var(--xn-color-dark);
    transition: border-color var(--xn-transition);
}
.comment-form input[type="checkbox"] { width: auto; margin-right: 6px; }
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--xn-color-blue);
}
.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}
.comment-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--xn-color-dark);
}
.comment-form .submit {
    background: var(--xn-color-blue);
    color: var(--xn-color-white);
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background var(--xn-transition);
}
.comment-form .submit:hover {
    background: var(--xn-color-blue-dark);
}
.comments-title {
    font-size: 20px;
    font-weight: 700;
    margin: var(--xn-space-lg) 0 var(--xn-space-md);
    color: var(--xn-color-dark);
}

/* ── 10. MÉTADONNÉES ───────────────────────────────────────── */
/* Meta article (date, auteur, cat, vues) — utilisee par single.php,
   slider-hero.php, section-hero-list.php. Icones Tabler dans le markup
   (xibar_post_meta() inc/template-tags.php) — anciennes regles ::before
   emoji (📅 ✍️) supprimees. Style V2 single applique en scope ci-dessous. */
.xn-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--xn-space-sm);
    font-size: 13px;
    color: var(--xn-color-gray-mid);
    margin-bottom: var(--xn-space-sm);
}
.xn-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Style V2 single — border-left bleu + items separes par bordures fines.
   Scope .xn-single (post_class 'xn-single' applique sur l article single.php)
   pour ne pas impacter les usages slider/hero-list overlay. */
.xn-single .xn-meta {
    border-left: 3px solid var(--xn-color-blue);
    padding-left: 12px;
    font-size: 12px;
    color: var(--xn-color-gray-mid);
    gap: 0;
}
.xn-single .xn-meta > span {
    padding: 0 12px;
    border-right: 1px solid var(--xn-color-border);
}
.xn-single .xn-meta > span:first-child {
    padding-left: 0;
}
.xn-single .xn-meta > span:last-child {
    border-right: none;
}

/* ── 11. THUMB PLACEHOLDER ─────────────────────────────────── */
.xn-thumb { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.xn-thumb--placeholder { background: var(--xn-color-blue-light); }

/* ── 12. SIDEBAR ───────────────────────────────────────────── */
.xn-sidebar { display: flex; flex-direction: column; gap: var(--xn-gap); }
.xn-widget { background: var(--xn-color-white); border-radius: var(--xn-radius); padding: var(--xn-space-md); box-shadow: var(--xn-shadow-sm); }
.xn-widget__title { font-size: 14px; font-weight: var(--xn-font-weight-bold); text-transform: uppercase; letter-spacing: .08em; color: var(--xn-color-blue); border-bottom: 2px solid var(--xn-color-blue); padding-bottom: var(--xn-space-xs); margin-bottom: var(--xn-space-md); }

/* ── 14. FOOTER (style H24) ────────────────────────────────── */
.xn-footer {
    /* Bleu tres sombre H24, distinct du dark des sections */
    --xn-footer-bg:    #0d1b2a;
    --xn-footer-fg:    rgba(255, 255, 255, .75);
    --xn-footer-muted: rgba(255, 255, 255, .65);
    --xn-footer-rule:  rgba(255, 255, 255, .15);

    background: var(--xn-footer-bg);
    color: var(--xn-footer-fg);
    margin-top: var(--xn-space-2xl);
    padding: var(--xn-space-xl) 0 0;
    font-size: 14px;
}
.xn-footer a { color: var(--xn-footer-muted); transition: color var(--xn-transition); }
.xn-footer a:hover { color: var(--xn-color-white); }

.xn-footer__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--xn-color-white);
    border-bottom: 1px solid var(--xn-footer-rule);
    padding-bottom: var(--xn-space-xs);
    margin-bottom: var(--xn-space-md);
}

/* Colonne 1 : brand */
.xn-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: var(--xn-space-sm);
    margin-bottom: var(--xn-space-sm);
    text-decoration: none;
}
.xn-footer__logo-img { height: 36px; width: auto; max-width: 60px; }
.xn-footer__logo-text {
    font-weight: 800;
    color: var(--xn-color-white);
    font-size: 28px;
    letter-spacing: .02em;
    line-height: 1;
}
.xn-footer__tagline { font-size: 13px; color: var(--xn-footer-muted); margin: 4px 0 var(--xn-space-md); }

.xn-footer__socials { display: flex; gap: var(--xn-space-sm); margin-top: var(--xn-space-md); }
.xn-footer__socials a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35);
    color: var(--xn-color-white);
    font-size: 14px; font-weight: 700;
    background: transparent;
    transition: background var(--xn-transition), border-color var(--xn-transition);
}
.xn-footer__socials a:hover { background: var(--xn-color-blue); border-color: var(--xn-color-blue); }

/* Colonne 2 : nav menu */
.xn-footer__menu { display: flex; flex-direction: column; gap: 6px; list-style: none; padding: 0; margin: 0; }
.xn-footer__menu a { font-size: 13px; color: var(--xn-footer-muted); }
.xn-footer__menu a:hover { color: var(--xn-color-white); padding-left: 4px; transition: padding var(--xn-transition), color var(--xn-transition); }

/* Colonne 3 : contact + infos */
.xn-footer__col--contact p { font-size: 13px; margin-bottom: var(--xn-space-sm); line-height: 1.5; }
.xn-footer__col--contact strong { color: var(--xn-color-white); font-weight: 600; }
.xn-footer__staff,
.xn-footer__host {
    margin-top: var(--xn-space-sm);
    padding-top: var(--xn-space-sm);
    border-top: 1px solid var(--xn-footer-rule);
}

/* Texte "A propos" — colonne brand (sous le tagline). Setting Customizer
   xibar_footer_about. nl2br applique en PHP pour preserver les retours
   ligne saisis. */
.xn-footer__about {
    font-size: 13px;
    color: var(--xn-footer-muted);
    line-height: 1.5;
    margin: 4px 0 var(--xn-space-md);
}

/* Bandeau Partenaires — pleine largeur sous le grid 3 colonnes, juste
   avant la .xn-footer__bar. Setting Customizer xibar_footer_partners.
   Border-top rgba blanc 10% pour separer du grid sans creer un trait
   trop appuye (la .xn-footer__bar a un border similaire en dessous). */
.xn-footer__partners {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: var(--xn-space-md) 0;
    margin-top: var(--xn-space-md);
}
.xn-footer__partners .xn-footer__title {
    text-align: center;
    margin-bottom: var(--xn-space-sm);
    border-bottom: none;
    padding-bottom: 0;
}
.xn-footer__partners-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--xn-space-sm) var(--xn-space-md);
    padding: 0;
    margin: 0;
    list-style: none;
}
.xn-footer__partners-list a {
    color: var(--xn-footer-muted);
    font-size: 13px;
    transition: color var(--xn-transition);
}
.xn-footer__partners-list a:hover {
    color: var(--xn-color-white);
}

/* Barre bottom : copyright + liens legaux */
.xn-footer__bar {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: var(--xn-space-lg);
    padding: var(--xn-space-md) 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
}
.xn-footer__bar a { color: rgba(255, 255, 255, .65); }
.xn-footer__bar a:hover { color: var(--xn-color-white); }
.xn-footer__bar span { margin: 0 6px; opacity: .4; }

/* ── BARRE RADIO FIXE BAS ─────────────────────────────────── */
.xn-radio-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1000;
    height: 52px;
    display: flex;
    align-items: center;
    gap: var(--xn-space-md);
    padding: 0 var(--xn-space-md);
    background: var(--xn-color-dark);
    color: var(--xn-color-white);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .25);
    font-size: 13px;
}
.xn-radio-bar.is-hidden { display: none; }

.xn-radio-bar__play {
    width: 36px; height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--xn-color-blue);
    color: var(--xn-color-white);
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--xn-transition);
}
.xn-radio-bar__play:hover { background: var(--xn-color-blue-dark); }
.xn-radio-bar__icon-pause { display: none; }
.xn-radio-bar.is-playing .xn-radio-bar__icon-play  { display: none; }
.xn-radio-bar.is-playing .xn-radio-bar__icon-pause { display: inline; }

.xn-radio-bar__label {
    flex-shrink: 0;
    font-weight: 600;
    letter-spacing: .02em;
}
.xn-radio-bar__progress {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, .18);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    min-width: 60px;
}
.xn-radio-bar__progress-bar {
    position: absolute;
    inset: 0;
    width: 30%;
    background: var(--xn-color-blue);
    border-radius: inherit;
    animation: xn-radio-pulse 2.5s ease-in-out infinite;
}
.xn-radio-bar:not(.is-playing) .xn-radio-bar__progress-bar { animation: none; opacity: .4; }
@keyframes xn-radio-pulse {
    0%   { width: 10%; }
    50%  { width: 75%; }
    100% { width: 10%; }
}

.xn-radio-bar__volume-icon { font-size: 16px; flex-shrink: 0; }
.xn-radio-bar__volume {
    width: 100px;
    flex-shrink: 0;
    accent-color: var(--xn-color-blue);
    cursor: pointer;
}
.xn-radio-bar__close {
    margin-left: auto;
    width: 32px; height: 32px;
    border: none;
    background: transparent;
    color: var(--xn-color-white);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: .7;
    transition: opacity var(--xn-transition);
    flex-shrink: 0;
}
.xn-radio-bar__close:hover { opacity: 1; }

/* Eviter que le contenu page soit masque par la barre radio */
body:has(.xn-radio-bar:not(.is-hidden)) { padding-bottom: 52px; }

/* FAB radio (bouton flottant bottom-right, visible quand barre cachee) */
.xn-radio-fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--xn-color-blue);
    color: var(--xn-color-white);
    border: none;
    cursor: pointer;
    box-shadow: var(--xn-shadow-md);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: transform var(--xn-transition), background var(--xn-transition);
}
.xn-radio-fab:hover {
    background: var(--xn-color-blue-dark);
    transform: scale(1.1);
}
.xn-radio-fab.is-visible { display: flex; }

@media (max-width: 600px) {
    .xn-radio-bar { gap: var(--xn-space-sm); padding: 0 var(--xn-space-sm); font-size: 12px; }
    .xn-radio-bar__volume { width: 70px; }
    .xn-radio-bar__label { display: none; }
}

/* ── 15. PAGINATION ────────────────────────────────────────── */
.xn-pagination { margin: var(--xn-space-xl) 0; }
.xn-pagination ul { display: flex; gap: var(--xn-space-xs); justify-content: center; }
.xn-pagination a, .xn-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 var(--xn-space-sm);
    border: 1px solid var(--xn-color-border);
    border-radius: var(--xn-radius);
    font-size: 14px;
    transition: all var(--xn-transition);
}
.xn-pagination a:hover { background: var(--xn-color-blue); color: var(--xn-color-white); border-color: var(--xn-color-blue); }
.xn-pagination .current { background: var(--xn-color-blue); color: var(--xn-color-white); border-color: var(--xn-color-blue); }

/* ── PUB / LEADERBOARD ─────────────────────────────────────── */
.xn-ad {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    overflow: visible;
}
.xn-ad--leaderboard {
    text-align: center;
    background: var(--xn-color-bg);
    padding: var(--xn-space-sm) 0;
    margin: 20px 0;
    min-height: 90px;
    max-width: 100%;
    overflow: hidden;
}
.xn-ad--leaderboard img,
.xn-ad--leaderboard iframe { margin-inline: auto; max-width: 100%; }

.xn-ad--single-before {
    margin-top: 24px;
    margin-bottom: 24px;
}
.xn-single .xn-ad--leaderboard {
    margin-bottom: 20px;
}

.xn-ad--top {
    width: 100%;
    background: var(--xn-color-bg);
    text-align: center;
    padding: 8px 0;
}

/* Centrage universel toutes zones pub (regle .xn-ad principale ci-dessus) */
.xn-ad > * {
    display: block;
    flex-shrink: 1;
    max-width: 100%;
    min-width: 0;
}
.xn-ad img {
    display: block;
    max-width: 100%;
    height: auto;
}
.xn-ad--sidebar {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin: 8px 0;
    overflow: hidden;
}
.xn-ad--sidebar img,
.xn-ad--sidebar iframe {
    margin-inline: auto;
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

/* Sidebar article single — coins carres (cohorence avec le reste du
   theme post-session 7 ou tous les widgets ont border-radius:0). Le
   .xn-widget global (L853) garde son radius pour les autres usages
   eventuels — scope strict .xn-sidebar--single ici. */
.xn-sidebar--single .xn-widget,
.xn-sidebar--single .xn-recent-item__thumb img,
.xn-sidebar--single .xn-recent-item__thumb .xn-thumb,
.xn-sidebar--single .xn-recent-item__thumb .xn-thumb--placeholder {
    border-radius: 0;
}

/* Alignement du top de la sidebar single avec le main — F2 conditionnelle.
   Le 1er enfant de la sidebar etait decale de ~24px par rapport au main :
   8px (margin .xn-ad--sidebar L1156) + 16px (padding-top interne .xn-widget
   L880). Le main demarre a 0px (<article> sans margin, <h1> direct).

   Cas 1 : 1er enfant = pub (.xn-widget--ad) → supprime margin-top ET
   padding-top (la pub remplit son wrapper, pas besoin de gouttiere interne).
   Cas 2 : 1er enfant = widget non-pub (ex. Articles recents si pub
   desactivee) → supprime juste le margin-top, garde le padding-top pour
   ne pas coller le titre du widget au bord. */
.xn-sidebar--single > .xn-widget--ad:first-child {
    margin-top: 0;
    padding-top: 0;
}
.xn-sidebar--single > :first-child:not(.xn-widget--ad) {
    margin-top: 0;
}

/* Sidebar single sticky desktop — pattern editorial standard : la
   sidebar suit le scroll quand on lit l article. Desktop uniquement
   (en mobile, .xn-layout passe en 1 colonne, sidebar empilee sous
   le main — sticky inutile). top:var(--xn-space-md) = 16px de marge
   sous le header. align-self:start requis pour que sticky fonctionne
   dans un grid container. */
@media (min-width: 769px) {
    .xn-sidebar--single {
        position: sticky;
        top: var(--xn-space-md);
        align-self: start;
    }
}

/* ── 16. UTILITAIRES ───────────────────────────────────────── */
.xn-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.xn-text-center { text-align: center; }
.xn-mt-lg { margin-top: var(--xn-space-lg); }
.xn-mb-lg { margin-bottom: var(--xn-space-lg); }

/* ── 17. RESPONSIVE ────────────────────────────────────────── */
/* Menu burger mobile (< 768px) : voir bloc "MENU BURGER MOBILE"
   en fin de xn-layout.css. Ici on conserve uniquement le reset
   de grilles utilitaires sous 480px. */
@media (max-width: 480px) {
    .xn-grid { grid-template-columns: 1fr; }
}

/* ── 17b. SINGLE — corrections mobile (session 9bis) ──────────
   Bloc groupant les overrides single.php < 768px. Audit session 9bis :
   - Q1 Meta V2 : suppression border-right des spans en wrap (les bordures
     creaient des traits orphelins en fin de ligne sur petit ecran).
   - Q2 Padding article : .xn-single { padding: 24px } reduit a 16px,
     recupere 16px de largeur utile cote x sur 375px.
   - Q5 Pub leaderboard : min-height: 90px desactive en mobile (les images
     728x90 scaled a 46px laissaient 44px de vide vertical).
   ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Q1 — Meta V2 : pas de border-right en wrap, separation par gap */
    .xn-single .xn-meta {
        gap: 4px 12px;
    }
    .xn-single .xn-meta > span {
        padding: 0;
        border-right: none;
    }
    .xn-single .xn-meta > span:first-child {
        padding-left: 0;
    }

    /* Q2 — Padding article reduit en mobile */
    body.single .xn-single {
        padding: 16px;
    }

    /* Q5 — Pub leaderboard sans espace vide en mobile */
    body.single .xn-ad,
    body.single .xn-ad--leaderboard {
        min-height: 0;
        padding: 6px 0;
    }

    /* Session 9ter — Archives / search mobile
       Q1 : gouttiere laterale (gauche + droite) pour le header archive/search.
       Le wrapper <div> de archive.php/search.php n a aucune classe et le
       .xn-container passe en padding-inline:0 mobile (mega-bloc burger
       L3265). Les elements textuels (breadcrumb, titre H1, desc, form de
       re-recherche) collaient aux bords du viewport — les cards supportent
       le bord-a-bord grace a leur fond blanc + ombre, pas les textes.
       padding-inline (vs padding-left) couvre aussi le bouton submit qui
       touchait le bord droit du form de re-recherche. */
    .xn-breadcrumb,
    .xn-archive-header {
        padding-inline: var(--xn-space-md);
    }

    /* Q2 — Pagination flex-wrap en mobile : evite le debordement
       horizontal quand paginate_links renvoie >= 7-8 items (~396px a 36px
       par item + 4px gap, ne tient pas dans 375px). */
    .xn-pagination ul {
        flex-wrap: wrap;
        row-gap: var(--xn-space-xs);
    }

    /* Q4 — .xn-search-empty : padding-top reduit en mobile (64 -> 40px).
       Le padding-top genereux est utile en desktop, sur petit ecran il
       genere un scroll inutile avant d arriver au message. */
    .xn-search-empty {
        padding-top: var(--xn-space-xl);
    }
}

/* Tres petit ecran (< 480px) : ajustements partage + badge cat. */
@media (max-width: 480px) {
    /* Q4 — Boutons partage : label sur sa propre ligne, boutons en wrap
       sous le label. Evite l effet "label seul orphelin" en fin de wrap. */
    .xn-share__label {
        width: 100%;
        margin-bottom: 4px;
        margin-right: 0;
    }

    /* Q6 — Badge categorie : reduction font + padding + letter-spacing
       pour eviter le depassement quand le nom de categorie est long. */
    .xn-single__cat a {
        font-size: 10px;
        padding: 3px 16px 3px 6px;
        letter-spacing: .04em;
    }

    /* Session 9ter — Q3 : bouton submit recherche en icone-only mobile.
       Bascule .xn-searchform__submit-icon (visible) / .xn-searchform__submit-label
       (cache). Libere ~70px d espace pour l input search. */
    .xn-searchform__submit {
        padding: 10px 14px;
    }
    .xn-searchform__submit-icon {
        display: inline-flex;
        font-size: 18px;
        line-height: 1;
    }
    .xn-searchform__submit-label {
        display: none;
    }
}

/* ── 404 ── */
.xn-404 {
    padding: var(--xn-space-xl) 0;
    min-height: 60vh;
}
.xn-404__inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.xn-404__code {
    font-size: clamp(80px, 15vw, 140px);
    font-weight: 900;
    color: var(--xn-color-blue);
    line-height: 1;
    letter-spacing: -4px;
    margin-bottom: var(--xn-space-sm);
}
.xn-404__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--xn-space-xs);
    color: var(--xn-color-dark);
}
.xn-404__desc {
    color: var(--xn-color-muted, #666);
    font-size: 1rem;
    margin-bottom: var(--xn-space-lg);
}
.xn-404__search {
    display: flex;
    max-width: 480px;
    margin: 0 auto var(--xn-space-md);
    border: 2px solid var(--xn-color-blue);
    border-radius: 4px;
    overflow: hidden;
}
.xn-404__search-input {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: 0.95rem;
    outline: none;
}
.xn-404__search-btn {
    background: var(--xn-color-blue);
    color: var(--xn-color-white);
    border: none;
    padding: 0 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.xn-404__search-btn:hover { opacity: .85; }
.xn-404__home {
    display: inline-block;
    color: var(--xn-color-blue);
    font-weight: 600;
    text-decoration: none;
    margin-bottom: var(--xn-space-xl);
}
.xn-404__home:hover { text-decoration: underline; }
.xn-404__suggestions-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--xn-color-blue);
    border-bottom: 2px solid var(--xn-color-blue);
    padding-bottom: 6px;
    margin-bottom: var(--xn-space-md);
    text-align: left;
}
.xn-404__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--xn-gap);
    text-align: left;
}
@media (max-width: 768px) {
    .xn-404__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .xn-404__grid { grid-template-columns: 1fr; }
}
.xn-404__card {
    text-decoration: none;
    color: inherit;
    border-radius: 4px;
    overflow: hidden;
    background: var(--xn-color-white);
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    transition: transform .2s;
}
.xn-404__card:hover { transform: translateY(-3px); }
.xn-404__card-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.xn-404__card-body { padding: 10px 12px 14px; }
.xn-404__card-cat {
    font-size: .7rem;
    color: var(--xn-color-blue);
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}
.xn-404__card-title {
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: var(--xn-color-dark);
}

/* -----------------------------------------------------------------------
   Script tags — forcer display:none dans les zones pub
   (flexbox override du display:none natif des <script> elements)
   ----------------------------------------------------------------------- */
.xn-ad script,
.xn-ad--banner script,
.xn-navbar__pub script,
.xn-widget--ad script {
    display: none !important;
}

/* -----------------------------------------------------------------------
   ADSpro — forcer largeur 100% sur les conteneurs pub
   (flex-child sans largeur explicite = width:0 → background-image invisible)
   ----------------------------------------------------------------------- */
.xn-ad .apMainContainer,
.xn-ad--sidebar .apMainContainer,
.xn-widget--ad .apMainContainer,
.xn-ad--banner .apMainContainer {
    width: 100% !important;
}

.xn-ad .bsaProItemInner__img,
.xn-ad--sidebar .bsaProItemInner__img,
.xn-widget--ad .bsaProItemInner__img {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
