/* ==========================================================================
   Inisport — thème « Stade de nuit »
   ========================================================================== */

:root {
    --brand: #0A6CFF;
    --hot: #FF6A13;
    --gold: #F5B700;
    --ink: #0B1222;

    --bg: #F6F7FA;
    --surface: #FFFFFF;
    --surface-2: #F0F2F6;
    --text: #0B1222;
    --muted: #5B6578;
    --border: #E3E7EE;
    --accent: #0A5BD8;
    --accent-soft: #E6EFFE;

    --radius: 16px;
    --radius-sm: 10px;
    --container: 1280px;
    --gutter: 32px;
    --header-h: 72px;

    --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Inter, sans-serif;
    --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #0B1120;
    --surface: #121A2C;
    --surface-2: #1A2438;
    --text: #EDF1F7;
    --muted: #97A3BA;
    --border: #253049;
    --accent: #5C9DFF;
    --accent-soft: #16284A;
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.screen-reader-text, .skip-link:not(:focus) {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; }

.kicker {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
a.kicker:hover { text-decoration: underline; }
.link { font-weight: 600; color: var(--accent); }

.section-title {
    font-family: var(--font-display); font-weight: 800; font-size: 28px; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 12px;
}
.section-title--sm { font-size: 22px; font-weight: 700; }
.section-title--xl { font-size: 36px; margin: 0; }
.section-title a { text-decoration: none; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
    border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer;
    background: var(--surface-2); color: var(--text); text-decoration: none !important; transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--ink { background: var(--text); color: var(--bg); }
.btn--outline { background: var(--surface); border-color: var(--border); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn--block { display: flex; width: 100%; margin-top: 12px; }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.icon-btn {
    width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); }
.pill {
    display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--border); background: transparent; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--text);
}
.pill:hover { border-color: var(--accent); text-decoration: none; }

/* ---------- Chips (territoires, sous-rubriques, étiquettes) ---------- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border);
    font-weight: 600; font-size: 14px; white-space: nowrap; color: var(--text);
}
.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip--soft { background: var(--surface-2); border-color: transparent; }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--ink); color: #C9D3E6; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; gap: 16px; min-height: 36px; }
.topbar__date { color: #8A97B1; white-space: nowrap; }
.ticker { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.ticker__tag { background: var(--hot); color: var(--ink); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.ticker__list { list-style: none; margin: 0; padding: 0; position: relative; flex: 1; min-width: 0; height: 20px; overflow: hidden; }
.ticker__item { position: absolute; inset: 0; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker__item.is-active { opacity: 1; transform: none; }
.ticker__item a { color: #fff; }
.topbar__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.topbar__menu a { color: #C9D3E6; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--surface); border-bottom: 1px solid var(--border); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { max-height: 48px; width: auto; }
[data-theme="dark"] .brand--img { background: #fff; border-radius: 8px; padding: 4px 10px; }
.icon-btn { flex: none; }
.brand--img img { max-width: 52vw; height: auto; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; text-decoration: none !important; letter-spacing: .02em; }
.wordmark__a { background: var(--brand); color: #fff; padding: 6px 8px 4px; border-radius: 6px 0 0 6px; }
.wordmark__b { background: var(--text); color: var(--bg); padding: 6px 10px 4px; border-radius: 0 6px 6px 0; }
.site-footer .wordmark__b { background: #fff; color: var(--ink); }

.site-nav { flex: 1; min-width: 0; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 0; }
.site-nav .menu > li { position: relative; }
.site-nav .menu > li > a { display: flex; align-items: center; white-space: nowrap; min-height: 40px; padding: 0 11px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.site-nav .menu > li > a:hover { background: var(--surface-2); text-decoration: none; }
.site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a, .site-nav .current-category-ancestor > a { background: var(--accent-soft); color: var(--accent); }
.site-nav .menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.site-nav .sub-menu {
    list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 240px; z-index: 20;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 40px rgba(11, 18, 34, .14);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
    max-height: 70vh; overflow: auto;
}
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.site-nav .sub-menu a:hover { background: var(--surface-2); text-decoration: none; }
.site-nav .sub-menu .sub-menu { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 8px; flex: none; }
@media (min-width: 1241px) {
    /* Espace et séparateur entre le menu et les boutons (recherche, mode sombre…) */
    .site-header__actions { margin-left: 8px; padding-left: 20px; border-left: 1px solid var(--border); }
    .site-nav .menu { gap: 2px; }
}
@media (min-width: 1241px) and (max-width: 1400px) {
    .site-nav .menu > li > a { padding: 0 9px; font-size: 14.5px; }
}
.site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a, .site-nav .current-category-ancestor > a { position: relative; }
@media (min-width: 1241px) {
    .site-nav .menu > .current-menu-item > a::before, .site-nav .menu > .current-menu-ancestor > a::before, .site-nav .menu > .current-category-ancestor > a::before {
        content: ""; position: absolute; left: 11px; right: 11px; bottom: -16px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand);
    }
}
.rubric__territory { color: var(--accent); }
.page-title__territory { color: var(--accent); }
.nav-toggle { display: none; }
.theme-toggle__sun, [data-theme="dark"] .theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: inline; }

/* Territoires */
.territories { border-top: 1px solid var(--border); }
.territories__inner { display: flex; align-items: center; gap: 10px; padding-block: 10px; overflow-x: auto; scrollbar-width: none; }
.territories__inner::-webkit-scrollbar { display: none; }
.territories__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.territories .chips { flex-wrap: nowrap; }
.territory-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.territory-banner p { margin: 0; }

/* Recherche */
.search-dialog { width: min(720px, calc(100% - 32px)); border: 0; border-radius: var(--radius); padding: 0; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); margin-top: 12vh; }
.search-dialog::backdrop { background: rgba(11, 18, 34, .6); backdrop-filter: blur(3px); }
.search-dialog__inner { display: flex; gap: 10px; align-items: center; padding: 16px; }
.search-dialog .search-form { flex: 1; }
.search-form { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--muted); }
.search-form:focus-within { border-color: var(--accent); }
.search-form__input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font-size: 17px; height: 44px; outline: none; }

/* ---------- Médias et cartes ---------- */
.media { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--surface-2); aspect-ratio: 16 / 10; }
.media__img, .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .media__img { transform: scale(1.03); }
.media__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .35); }
.media__ph .icon { width: 40px; height: 40px; }
.media__play { position: absolute; left: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.media__play--lg { left: 50%; top: 50%; bottom: auto; width: 54px; height: 54px; transform: translate(-50%, -50%); }

.card { min-width: 0; }
.card__title { font-weight: 700; line-height: 1.25; margin: 4px 0 6px; }
.card__title a:hover { text-decoration: underline; }
.card__excerpt { margin: 0; color: var(--muted); font-size: 15px; }
.card__meta { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

.card--hero .media { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.card--hero .card__body { padding-top: 16px; }
.card--hero .card__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4vw, 48px); line-height: 1.02; letter-spacing: -.005em; margin: 6px 0 10px; }
.card--hero .card__excerpt { font-size: 17px; max-width: 760px; }

.card--compact { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.card--compact .media { aspect-ratio: 4 / 3; border-radius: 10px; }
.card--compact .kicker { font-size: 11px; }
.card--compact .card__title { font-size: 16px; margin: 2px 0 2px; }
.card--compact .card__meta { margin-top: 2px; font-size: 12px; }
.card--compact .media__play { width: 28px; height: 28px; left: 6px; bottom: 6px; }

.card--row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--border); }
.card--row .card__title { font-family: var(--font-display); font-size: 26px; line-height: 1.08; }

.card--grid .media { aspect-ratio: 3 / 2; }
.card--grid .card__body { padding-top: 12px; }
.card--grid .kicker { font-size: 11px; }
.card--grid .card__title { font-size: 17px; }

.card--numbered { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.card--numbered:first-of-type { border-top: 0; }
.card__num { font-family: var(--font-display); font-size: 30px; line-height: 1; font-weight: 800; color: var(--accent); }
.card--numbered .card__title { font-size: 14px; font-weight: 600; margin: 0; line-height: 1.35; }

/* ---------- Grilles et mise en page ---------- */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; margin-top: 40px; }
.layout__main { flex: 999 1 560px; min-width: 0; }
.layout__side { flex: 1 1 320px; min-width: 0; max-width: 400px; }
.home-main { padding-top: 28px; }

/* À la une */
.headline { display: flex; flex-wrap: wrap; gap: 28px; }
.headline__main { flex: 2 1 600px; min-width: 0; }
.headline__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; }

/* Bandeau scores */
.scores { margin-top: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.scores__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.scores__head .section-title { margin: 0; }
.scores__head .muted { font-weight: 600; }
.scores__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.score { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.score__row { display: flex; justify-content: space-between; gap: 8px; }
.score__row b { font-family: var(--font-display); font-size: 21px; line-height: 1; }
.score__row.is-win { font-weight: 800; }
.score__meta { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Rubriques */
.rubric { margin-top: 56px; }
.rubric__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 3px solid var(--text); padding-bottom: 10px; margin-bottom: 20px; }
.rubric__head .section-title { margin: 0; }
.rubric__tabs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--text); }
.tab:hover { background: var(--surface-2); }
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); }
[data-rubric-grid][aria-busy="true"] { opacity: .45; transition: opacity .2s; }

/* Vidéos */
.videos { background: var(--ink); color: #fff; margin-top: 64px; padding: 44px 0; }
.videos__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.link--light { color: #7FB0FF; }
.video { margin: 0; }
.video__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 16 / 9; background: #1C3D73; }
.video__btn img { width: 100%; height: 100%; object-fit: cover; }
.video__dur { position: absolute; right: 10px; bottom: 10px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.video__title { margin-top: 10px; font-weight: 600; line-height: 1.3; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; display: block; }

/* Promos */
.promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; padding-block: 48px; }
.promo { display: flex; flex-direction: column; gap: 8px; border-radius: var(--radius); padding: 28px; text-decoration: none !important; transition: transform .2s; }
.promo:hover { transform: translateY(-3px); }
.promo--hot { background: var(--hot); color: var(--ink); }
.promo--ink { background: var(--text); color: var(--bg); }
.promo__kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.promo--ink .promo__kicker { color: var(--gold); }
.promo__title { font-family: var(--font-display); font-size: 46px; line-height: 1; font-weight: 800; text-transform: uppercase; }
.promo__text { max-width: 440px; }
.promo__cta { font-weight: 700; margin-top: 6px; }

/* ---------- Barre latérale ---------- */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.box--flush { padding: 0; overflow: hidden; }
.box__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 14px 16px; }
.box__title { font-family: var(--font-display); font-size: 21px; font-weight: 700; text-transform: uppercase; margin: 0 0 8px; }
.box__head .box__title { margin: 0; }
.box__foot { display: block; padding: 12px 16px; border-top: 1px solid var(--border); }
.mini-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mini-table th { background: var(--surface-2); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 8px; text-align: center; }
.mini-table th:nth-child(2) { text-align: left; }
.mini-table td { padding: 9px 8px; border-top: 1px solid var(--border); text-align: center; }
.mini-table th:first-child, .mini-table td:first-child { padding-left: 16px; }
.mini-table th:last-child, .mini-table td:last-child { padding-right: 16px; }
.mini-table__rank { font-weight: 700; color: var(--accent); }
.mini-table__team { text-align: left !important; font-weight: 600; }
.box--brand { background: var(--brand); border-color: var(--brand); color: #fff; padding: 20px; }
/* L'extension de shortcodes de Jannah définit aussi .box et .tabs (fond clair, ombre de texte…) :
   on rétablit les styles du thème, mode sombre compris. */
body .box { clear: none; margin-bottom: 0; background: var(--surface); color: var(--text); text-shadow: none; padding: 16px; word-wrap: normal; }
body .box--flush { padding: 0; }
body .box--brand { background: var(--brand); color: #fff; padding: 20px; }
body .tabs { display: flex; width: auto; overflow: visible; }
.entry-content .box { margin: 1.2em 0; padding: 16px 20px; }
.newsletter__title { font-family: var(--font-display); font-size: 25px; font-weight: 800; text-transform: uppercase; margin: 0; }
.newsletter__text { margin: 6px 0 14px; font-size: 14px; color: #E3EDFF; }
.newsletter__form label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.newsletter__row { display: flex; gap: 8px; }
.newsletter__row input { flex: 1; min-width: 0; height: 44px; border-radius: var(--radius-sm); border: 0; padding: 0 12px; font-size: 15px; color: #0B1222; background: #fff; }
.newsletter .btn--ink { background: var(--ink); color: #fff; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-top: 1px solid var(--border); }

/* ---------- Article ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--brand); }
.layout--article { margin-top: 28px; }
.breadcrumb ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.article__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 5vw, 58px); line-height: 1; margin: 8px 0 14px; max-width: 880px; }
.article__standfirst { margin: 0 0 22px; font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 760px; }
.article__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-block: 1px solid var(--border); }
.byline { display: flex; align-items: center; gap: 12px; }
.byline__avatar { border-radius: 50%; }
.byline__name { display: block; font-weight: 600; }
.byline__date { display: block; font-size: 13px; color: var(--muted); }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.article__media { margin: 24px 0; }
.article__media img { width: 100%; border-radius: var(--radius); }
.article__media figcaption, .wp-caption-text, .wp-element-caption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.embed iframe, .embed video, .embed object, .embed embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed--audio { aspect-ratio: auto; background: transparent; }
.embed--audio iframe { position: static; height: 166px; }
.gallery-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.gallery-strip__item { flex: 0 0 88%; margin: 0; scroll-snap-align: start; }
.gallery-strip__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }

.entry-content { font-family: var(--font-serif); font-size: 19px; line-height: 1.7; max-width: 740px; overflow-wrap: anywhere; }
.entry-content--wide { max-width: 860px; }
.entry-content > * { margin-block: 0 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--font-display); font-weight: 800; margin: 1.6em 0 .5em; line-height: 1.1; }
.entry-content h2 { font-size: 32px; }
.entry-content h3 { font-size: 26px; }
.entry-content h4 { font-size: 21px; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin: 1.5em 0; padding: 0 0 0 20px; border-left: 4px solid var(--hot); font-family: var(--font-display); font-size: 28px; line-height: 1.2; font-weight: 700; }
.entry-content blockquote p { margin: 0 0 .4em; }
.entry-content blockquote cite { display: block; font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--muted); font-style: normal; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content img { border-radius: 12px; }
.entry-content figure { margin-inline: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: 15px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 8px 10px; border: 1px solid var(--border); }
.entry-content th { background: var(--surface-2); }
.entry-content iframe { max-width: 100%; border-radius: 12px; }
.entry-content .twitter-tweet, .entry-content .instagram-media { margin-inline: auto !important; }
.entry-content hr { border: 0; border-top: 1px solid var(--border); }
.alignleft { float: left; margin: .3em 1.2em .8em 0; }
.alignright { float: right; margin: .3em 0 .8em 1.2em; }
.aligncenter { margin-inline: auto; }
.alignwide { max-width: 100%; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery-item { margin: 0; }
.wp-block-embed__wrapper iframe { width: 100%; }
.page-links { font-family: var(--font-sans); font-size: 15px; display: flex; gap: 8px; }
.chips--tags { margin: 28px 0; }
.related { border-top: 3px solid var(--text); padding-top: 14px; margin-top: 32px; }

/* Commentaires */
.comments { margin-top: 32px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.comments__summary { padding: 16px; font-weight: 600; cursor: pointer; }
.comments__body { padding: 0 16px 16px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 14px 0; border-top: 1px solid var(--border); }
.comment-author { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 12px; color: var(--muted); }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); padding: 10px 12px; font: inherit;
}

/* ---------- Listes (rubriques, recherche) ---------- */
.archive-main { padding-top: 28px; }
.page-head { margin-bottom: 8px; }
.page-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 5vw, 52px); text-transform: uppercase; line-height: 1; margin: 6px 0 10px; }
.page-title--xl { font-size: clamp(40px, 6vw, 60px); }
.page-lead { color: var(--muted); font-size: 18px; margin: 0 0 20px; }
.page-desc { color: var(--muted); max-width: 760px; }
.page-search { max-width: 640px; margin: 12px 0; }
.chips--sub { margin-top: 16px; }
.archive__lead { margin-bottom: 32px; }
.layout .layout__main > .grid--2 { margin-top: 8px; }
.pagination, .navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.page-numbers { min-width: 44px; height: 44px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-weight: 600; }
.page-numbers.current { background: var(--text); color: var(--bg); border-color: var(--text); }
.page-numbers.dots { border: 0; background: transparent; }
.empty { text-align: center; padding: 48px 16px; max-width: 640px; margin: 0 auto; }
.empty--404 .empty__code { font-family: var(--font-display); font-size: 120px; font-weight: 800; line-height: 1; color: var(--brand); }
.page-article { padding: 28px 0 48px; }
.builder-section { margin-top: 40px; }
.builder-block { margin-top: 24px; }
.builder-block--ad { text-align: center; }
.builder-block--ad img { margin-inline: auto; }

/* ---------- Page Résultats ---------- */
.results-page { padding-top: 32px; padding-bottom: 0; }
.results-page .page-head { margin-bottom: 20px; }
.entry-content .ins-x { margin-block: 24px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #C9D3E6; font-size: 14px; margin-top: 72px; }
@media (max-width: 720px) { .site-footer { margin-top: 48px; } }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-block: 48px 24px; }
.site-footer__brand p { color: #8A97B1; margin: 14px 0; }
.site-footer__title { font-family: var(--font-sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #C9D3E6; }
.site-footer a:hover { color: #fff; }
.socials { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 16px 28px; border-top: 1px solid #1E2A44; color: #8A97B1; font-size: 13px; }
.tabbar { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 1240px) {
    .nav-toggle { display: inline-grid; }
    .site-header__inner { gap: 12px; }
    .site-nav {
        position: fixed; inset: 0 auto 0 0; width: min(360px, 88vw); z-index: 300; background: var(--surface);
        padding: 20px; overflow-y: auto; transform: translateX(-100%); visibility: hidden; transition: transform .25s ease, visibility .25s;
    }
    .site-nav.is-open { transform: none; visibility: visible; box-shadow: 0 0 60px rgba(0, 0, 0, .3); }
    .site-nav .menu { flex-direction: column; }
    .site-nav .menu > li > a { min-height: 48px; font-size: 17px; }
    .site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; max-height: none; }
    .site-nav .is-expanded > .sub-menu { display: block; }
    .nav-backdrop { position: fixed; inset: 0; background: rgba(11, 18, 34, .55); z-index: 250; }
    .brand { margin-right: auto; }
}
@media (max-width: 782px) {
    :root { --gutter: 16px; --header-h: 60px; }
    body { padding-bottom: 68px; }
    .topbar__date, .topbar__links { display: none; }
    .hide-sm { display: none !important; }
    .wordmark { font-size: 24px; }
    .section-title { font-size: 22px; }
    .section-title--xl { font-size: 28px; }
    .card--row { grid-template-columns: minmax(0, 1fr) 104px; gap: 12px; padding: 14px 0; }
    .card--row .card__media { order: 2; aspect-ratio: 1; }
    .card--row .card__title { font-family: var(--font-sans); font-size: 16px; line-height: 1.3; }
    .card--row .card__excerpt { display: none; }
    .headline { gap: 16px; }
    .layout { gap: 28px; margin-top: 28px; }
    .layout__side { max-width: none; }
    .scores__list { grid-auto-flow: column; grid-auto-columns: 170px; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
    .score { scroll-snap-align: start; }
    .rubric { margin-top: 40px; }
    .rubric__tabs, .tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
    .grid--4, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .card--grid .card__title { font-size: 15px; }
    .entry-content { font-size: 18px; }
    .picker__label { width: 100%; }
    .tabbar {
        display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
        background: var(--surface); border-top: 1px solid var(--border); padding: 4px 0 calc(6px + env(safe-area-inset-bottom));
    }
    .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; justify-content: center; border: 0; background: none; font-size: 11px; font-weight: 600; color: var(--muted); cursor: pointer; text-decoration: none; }
    .tabbar .is-active { color: var(--accent); }
    .admin-bar .site-header { top: 0; }
}
@media (max-width: 480px) {
    .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .share .pill { height: 36px; padding: 0 12px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
    .topbar, .site-header, .sidebar, .tabbar, .share, .related, .comments, .site-footer, .progress { display: none !important; }
    body { background: #fff; color: #000; }
}