/*
Theme Name:   Hokuto Chronicles
Theme URI:    https://hokuto-chronicles.fr
Description:  Thème enfant de GeneratePress pour Hokuto Chronicles
Author:       Ton Nom
Author URI:   https://hokuto-chronicles.fr
Template:     generatepress
Version:      1.0.0
Text Domain:  hokuto-chronicles
*/

/* =====================================================================
   RESET & BASE
   ===================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Utilitaire accessibilité — visible uniquement pour lecteurs d'écran et moteurs */
.hk-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

:root {
    --hk-bg:         #0e0e0e;
    --hk-bg-alt:     #0a0a0a;
    --hk-bg-card:    #111111;
    --hk-bg-hover:   #141414;
    --hk-border:     #1e1e1e;
    --hk-border-md:  #2a2a2a;
    --hk-red:        #c01616;
    --hk-red-dark:   #8a0f0f;
    --hk-red-hover:  #e01818;
    --hk-blue:       #378ADD;
    --hk-pink:       #d4537e;
    --hk-amber:      #BA7517;
    --hk-green:      #1D9E75;
    --hk-purple:     #7F77DD;
    --hk-text:       #e8e8e0;
    --hk-text-muted: #a0a098;
    --hk-text-dim:   #555555;
    --hk-text-dark:  #333333;
    --hk-font:       'Inter', system-ui, -apple-system, sans-serif;
}

html { overflow-x: hidden; }
* { box-sizing: border-box; }

body {
    background: var(--hk-bg);
    color: var(--hk-text);
    font-family: var(--hk-font);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .15s;
}

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

/* =====================================================================
   UTILITAIRES
   ===================================================================== */
.hk-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hk-badge {
    display: inline-block;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 3px 10px;
}

.hk-badge--red     { background: var(--hk-red);    color: #fff; }
.hk-badge--blue    { background: #0c1a2a;           color: var(--hk-blue); }
.hk-badge--outline { border: 0.5px solid currentColor; }

.hk-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 0.5px solid var(--hk-border);
}

.hk-section-bar {
    width: 4px;
    height: 20px;
    background: var(--hk-red);
    flex-shrink: 0;
}

.hk-section-title {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--hk-text);
}

.hk-section-link {
    margin-left: auto;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--hk-red);
    transition: opacity .15s;
}
.hk-section-link:hover { opacity: .7; }

/* =====================================================================
   TOPBAR
   ===================================================================== */
.hk-topbar {
    display: none;
}

.hk-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hk-topbar__date {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--hk-text-dim);
    text-transform: capitalize;
}

.hk-topbar__menu {
    display: flex;
    gap: 16px;
    list-style: none;
}

.hk-topbar__menu a {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--hk-text-dim);
    transition: color .15s;
}

.hk-topbar__menu a:hover { color: var(--hk-red); }

/* =====================================================================
   HEADER
   ===================================================================== */
.hk-header {
    background: 
        radial-gradient(1px 1px at 15% 25%, rgba(255,255,255,0.9) 0%, transparent 100%),
        radial-gradient(1px 1px at 32% 60%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(2px 2px at 48% 15%, rgba(255,255,255,1) 0%, transparent 100%),
        radial-gradient(1px 1px at 62% 42%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 71% 78%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(2px 2px at 85% 20%, rgba(255,255,255,0.9) 0%, transparent 100%),
        radial-gradient(1px 1px at 92% 55%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 8% 70%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 25% 88%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(2px 2px at 55% 65%, rgba(255,255,255,0.8) 0%, transparent 100%),
        radial-gradient(1px 1px at 78% 90%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 35%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 95% 80%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 5% 45%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(2px 2px at 68% 8%, rgba(255,255,255,1) 0%, transparent 100%),
        radial-gradient(1px 1px at 20% 12%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 35% 78%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(2px 2px at 12% 50%, rgba(255,255,255,0.8) 0%, transparent 100%),
        radial-gradient(1px 1px at 58% 30%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 82% 45%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 45% 92%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(2px 2px at 90% 35%, rgba(255,255,255,0.9) 0%, transparent 100%),
        radial-gradient(1px 1px at 28% 48%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 72% 55%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 3% 85%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(2px 2px at 50% 50%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 88% 70%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 17% 38%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 82%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(2px 2px at 38% 22%, rgba(255,255,255,0.8) 0%, transparent 100%),
        linear-gradient(to bottom, #04040f 0%, #080818 60%, #0a0a0a 100%);
    border-bottom: 1px solid #c0161633;
    position: sticky;
    top: 0;
    z-index: 100;
}

.hk-header__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 140px;
    gap: 8px;
    position: relative;
}

.hk-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Logo image (custom logo WordPress) */
.hk-logo--image {
    display: flex;
    align-items: center;
    gap: 0;
    align-self: center;
}

/* Le custom-logo-link généré par WordPress */
.hk-logo--image .custom-logo-link {
    display: flex;
    align-items: center;
    line-height: 0;
}

.hk-logo--image img,
.hk-logo--image .custom-logo {
    display: block;
    height: 120px;
    width: auto;
    max-width: 400px;
}

.hk-logo__mark {
    width: 34px;
    height: 34px;
    background: var(--hk-red);
    clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hk-logo__kanji {
    font-size: 14px;
    color: #fff;
    font-weight: 900;
    line-height: 1;
}

.hk-logo__text { line-height: 1; }

.hk-logo__name {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

.hk-logo__sub {
    font-size: 8px;
    letter-spacing: 4px;
    color: var(--hk-red);
    text-transform: uppercase;
    margin-top: 2px;
}

.hk-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    height: 100%;
    margin-top: 36px !important;
}

.hk-nav > li {
    display: flex;
    align-items: center;
    height: 100%;
}

.hk-nav-wrap {
    display: flex;
    align-items: center;
    align-self: center;
    margin-right: 8px;
    height: 100%;
    padding-top: 0;
}

.hk-nav a {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 12px;
    color: var(--hk-text-muted);
    border-radius: 3px;
    display: flex;
    align-items: center;
    height: 100%;
}

.hk-nav a:hover,
.hk-nav .current-menu-item a { color: #fff; }

.hk-nav .menu-dossiers a { color: var(--hk-blue); }
.hk-nav .menu-dossiers a:hover { color: #5ba3f0; }

.hk-nav li { position: relative; }

.hk-nav li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0a0a0a;
    border: 0.5px solid var(--hk-border);
    border-top: 2px solid var(--hk-red);
    min-width: 200px;
    list-style: none;
    z-index: 200;
}

.hk-nav li:hover > ul { display: block; }

.hk-nav li ul a {
    display: block;
    padding: 10px 16px;
    font-size: 12px;
    color: var(--hk-text-muted);
    border-bottom: 0.5px solid var(--hk-border);
    letter-spacing: .5px;
}

.hk-nav li ul a:hover {
    color: #fff;
    background: var(--hk-bg-hover);
}

.hk-header__right {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    gap: 16px;
    margin-left: -20px;
}

.hk-social {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-top: 20px;
    margin-left: auto;
}

.hk-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--hk-text-muted);
    border-radius: 4px;
    transition: color .15s, background .15s;
}

.hk-social__link:hover {
    color: #fff;
    background: #1a1a1a;
}

.hk-nav-wrap {
    display: flex;
    align-items: center;
    align-self: center;
    margin-right: 8px;
    height: 100%;
    padding-top: 10px;
}

.hk-header__search input {
    background: transparent;
    border: none;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--hk-text);
    width: 180px;
    outline: none;
    margin: 0 !important;
    vertical-align: middle !important;
    line-height: normal !important;
    box-sizing: border-box !important;
    align-self: center !important;
}

/* Override GeneratePress padding sur input search */
.hk-header .hk-header__search input[type="search"],
.hk-header .hk-header__search input[type=search] {
    padding: 6px 12px !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    border-color: transparent !important;
    color: var(--hk-text) !important;
}

.hk-header__search input::placeholder { color: #444; }

.hk-header__search button {
    background: transparent;
    border: none;
    padding: 6px 12px;
    color: var(--hk-text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color .15s;
}

.hk-header__search button:hover { color: var(--hk-red); }

/* =====================================================================
   BURGER MENU MOBILE
   ===================================================================== */
.hk-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 12px;
}

.hk-burger__line {
    width: 22px;
    height: 2px;
    background: var(--hk-text-muted);
    transition: all .2s;
    display: block;
}

.hk-burger.is-open .hk-burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hk-burger.is-open .hk-burger__line:nth-child(2) { opacity: 0; }
.hk-burger.is-open .hk-burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hk-mobile-menu {
    display: none;
    background: #0a0a0a;
    border-top: 0.5px solid var(--hk-border);
    padding: 16px 0;
}

.hk-mobile-menu.is-open { display: block; }

.hk-mobile-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 16px;
}

.hk-mobile-nav a {
    display: block;
    padding: 12px 0;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--hk-text-muted);
    border-bottom: 0.5px solid var(--hk-border);
    transition: color .15s;
}

.hk-mobile-nav a:hover { color: #fff; }
.hk-mobile-search { margin-top: 8px; }

/* =====================================================================
   HERO SLIDER
   ===================================================================== */
.hk-hero {
    border-bottom: 2px solid var(--hk-red);
}

.hk-hero__cards {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    height: 420px;
    gap: 2px;
}

.hk-hero__card {
    position: relative;
    overflow: hidden;
    display: block;
    cursor: pointer;
    background: #111;
}

.hk-hero__card-img {
    position: absolute;
    inset: 0;
}

.hk-hero__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .4s ease;
}

.hk-hero__card:hover .hk-hero__card-img img {
    transform: scale(1.04);
}

.hk-hero__card-placeholder {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
}

.hk-hero__card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.3) 50%, transparent 80%);
}

.hk-hero__card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
}

.hk-hero__cat {
    display: inline-block;
    margin-bottom: 8px;
}

.hk-hero__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.hk-hero__card--main .hk-hero__title {
    font-size: 22px;
}

.hk-hero__meta {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    margin-top: 8px;
}

/* =====================================================================
   TICKER
   ===================================================================== */
.hk-ticker {
    background: var(--hk-red);
    height: 32px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hk-ticker__label {
    background: var(--hk-red-dark);
    color: #fff;
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-weight: 800;
    flex-shrink: 0;
}

.hk-ticker__track {
    display: flex;
    gap: 48px;
    padding: 0 24px;
    white-space: nowrap;
    animation: hk-ticker 22s linear infinite;
}

.hk-ticker__track:hover { animation-play-state: paused; }

@keyframes hk-ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hk-ticker__item {
    font-size: 11px;
    color: #fff;
    letter-spacing: .3px;
}

.hk-ticker__sep {
    color: #ffffff44;
    font-size: 10px;
}

/* =====================================================================
   LAYOUT PRINCIPAL
   ===================================================================== */
.hk-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hk-main  { padding: 32px 28px 32px 0; border-right: 0.5px solid var(--hk-border); }
.hk-aside { padding: 32px 0 32px 28px; }

/* =====================================================================
   CARTES — GRILLE PRINCIPALE (3 colonnes)
   ===================================================================== */
.hk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--hk-border);
    margin-bottom: 1px;
}

.hk-card {
    background: var(--hk-bg);
    padding: 16px;
    cursor: pointer;
    transition: background .15s;
}

.hk-card:hover { background: var(--hk-bg-hover); }

.hk-card__thumb {
    width: 100%;
    height: 110px;
    background: #1a1a1a;
    margin-bottom: 12px;
    overflow: hidden;
}

.hk-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.hk-card:hover .hk-card__thumb img { transform: scale(1.04); }

.hk-card__cat {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 6px;
}

.hk-card__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--hk-text);
    line-height: 1.4;
    margin-bottom: 8px;
}

.hk-card:hover .hk-card__title { color: #fff; }

.hk-card__meta {
    font-size: 10px;
    color: var(--hk-text-dim);
    display: flex;
    gap: 8px;
}

/* =====================================================================
   MINI CARTES — GRILLE PAR CATÉGORIE
   ===================================================================== */
.hk-cat-section { margin-bottom: 32px; }

.hk-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1px;
    background: var(--hk-border);
}

.hk-mini-card {
    background: var(--hk-bg);
    padding: 12px;
    cursor: pointer;
    transition: background .15s;
}

.hk-mini-card:hover { background: var(--hk-bg-hover); }

.hk-mini-card__thumb {
    width: 100%;
    height: 120px;
    background: #161616;
    margin-bottom: 8px;
    overflow: hidden;
}

.hk-mini-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hk-mini-card__cat {
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

.hk-mini-card__title {
    font-size: 12px;
    font-weight: 600;
    color: var(--hk-text-muted);
    line-height: 1.35;
}

.hk-mini-card:hover .hk-mini-card__title { color: var(--hk-text); }

.hk-mini-card__date {
    font-size: 10px;
    color: #444;
    margin-top: 5px;
}

.cat--anime   { color: var(--hk-red);    }
.cat--manga   { color: var(--hk-pink);   }
.cat--jeux    { color: var(--hk-amber);  }
.cat--goodies { color: var(--hk-green);  }
.cat--auteurs { color: var(--hk-purple); }
.cat--dossiers{ color: var(--hk-blue);   }

/* =====================================================================
   CARTES DOSSIER
   ===================================================================== */
.hk-dossier-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.hk-dossier-card {
    display: flex;
    flex-direction: column;
    background: var(--hk-bg-card);
    border: 0.5px solid var(--hk-border);
    cursor: pointer;
    transition: background .15s;
    overflow: hidden;
}

.hk-dossier-card:hover { background: var(--hk-bg-hover); }

.hk-dossier-card__img {
    height: 120px;
    background: #0a0a1a;
    overflow: hidden;
    display: block;
}

.hk-dossier-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.hk-dossier-card:hover .hk-dossier-card__img img {
    transform: scale(1.04);
}

.hk-dossier-card > div {
    padding: 12px;
    flex: 1;
}

.hk-dossier-card__badge {
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--hk-blue);
    font-weight: 700;
    margin-bottom: 5px;
}

.hk-dossier-card__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--hk-text);
    line-height: 1.35;
    margin-bottom: 8px;
}

.hk-dossier-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    color: var(--hk-text-dim);
}

.hk-dossier-card__level {
    font-size: 9px;
    padding: 2px 8px;
    background: #0c1a2a;
    color: var(--hk-blue);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =====================================================================
   SIDEBAR
   ===================================================================== */
.hk-widget { margin-bottom: 32px; }

.hk-widget__title {
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--hk-text-dim);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 0.5px solid var(--hk-border);
}

.hk-search-form {
    display: flex;
    background: #111;
    border: 0.5px solid #222;
    overflow: hidden;
}

.hk-search-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 9px 12px;
    font-size: 12px;
    color: var(--hk-text);
    outline: none;
}

.hk-search-form input::placeholder { color: #444; }

.hk-search-form button {
    background: var(--hk-red);
    border: none;
    color: #fff;
    padding: 0 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s;
}

.hk-search-form button:hover { background: var(--hk-red-hover); }

.hk-cat-list { list-style: none; }

.hk-cat-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 0.5px solid #141414;
    cursor: pointer;
}

.hk-cat-list__name {
    font-size: 12px;
    color: var(--hk-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color .15s;
}

.hk-cat-list__item:hover .hk-cat-list__name { color: #fff; }

.hk-cat-list__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hk-cat-list__count {
    font-size: 10px;
    color: #333;
    background: #141414;
    padding: 1px 8px;
    border-radius: 2px;
}

.hk-recent-list { list-style: none; }

.hk-recent-list__item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 0.5px solid #141414;
    cursor: pointer;
}

.hk-recent-list__thumb {
    width: 52px;
    height: 40px;
    background: #161616;
    flex-shrink: 0;
    overflow: hidden;
}

.hk-recent-list__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hk-recent-list__title {
    font-size: 11px;
    color: var(--hk-text-muted);
    line-height: 1.4;
    transition: color .15s;
}

.hk-recent-list__item:hover .hk-recent-list__title { color: var(--hk-text); }

.hk-recent-list__date {
    font-size: 10px;
    color: #444;
    margin-top: 3px;
}

.hk-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

.hk-tag {
    font-size: 10px;
    letter-spacing: .5px;
    color: var(--hk-text-dim);
    border: 0.5px solid var(--hk-border);
    padding: 3px 10px;
    cursor: pointer;
    transition: all .15s;
    display: inline-block;
}

.hk-tag:hover {
    color: var(--hk-red);
    border-color: var(--hk-red);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.hk-footer {
    background: 
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.9) 0%, transparent 100%),
        radial-gradient(2px 2px at 22% 55%, rgba(255,255,255,0.8) 0%, transparent 100%),
        radial-gradient(1px 1px at 38% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 75%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(2px 2px at 65% 30%, rgba(255,255,255,1) 0%, transparent 100%),
        radial-gradient(1px 1px at 75% 65%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 88% 15%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 93% 48%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 18% 85%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(2px 2px at 42% 45%, rgba(255,255,255,0.9) 0%, transparent 100%),
        radial-gradient(1px 1px at 57% 90%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 80%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 3% 60%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(2px 2px at 30% 30%, rgba(255,255,255,0.8) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 5%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 14% 40%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 45% 18%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(2px 2px at 60% 55%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 84% 35%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 27% 70%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 96% 25%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(2px 2px at 8% 95%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 52% 38%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 73% 72%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 35% 92%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(2px 2px at 90% 60%, rgba(255,255,255,0.8) 0%, transparent 100%),
        radial-gradient(1px 1px at 48% 28%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 20% 15%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 62% 82%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(2px 2px at 78% 42%, rgba(255,255,255,0.9) 0%, transparent 100%),
        linear-gradient(to bottom, #04040f 0%, #060610 50%, #050505 100%);
    border-top: 1px solid #c0161622;
    padding: 48px 0 0;
}

.hk-footer__cols {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 0;
    padding-bottom: 40px;
    border-bottom: 0.5px solid var(--hk-border);
}

.hk-footer__col {
    padding: 0 40px;
    border-left: 0.5px solid var(--hk-border);
}

.hk-footer__col:first-child {
    padding-left: 0;
    border-left: none;
}

.hk-footer__col-title {
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--hk-text-dim);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 0.5px solid var(--hk-border);
    font-weight: 500;
}

.hk-footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.hk-footer__logo .custom-logo-link {
    display: block;
    line-height: 0;
}

.hk-footer__logo .custom-logo {
    height: 70px;
    width: auto;
    max-width: 280px;
    display: block;
}

.hk-logo__mark--sm { width: 26px; height: 26px; }

.hk-footer__logo-name {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

.hk-footer__tagline {
    font-size: 12px;
    color: var(--hk-text-dim);
    line-height: 1.7;
    margin-bottom: 16px;
}

.hk-footer__social { display: flex; gap: 8px; }

.hk-social-btn {
    width: 30px;
    height: 30px;
    border: 0.5px solid var(--hk-border-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hk-text-dim);
    transition: all .15s;
    border-radius: 2px;
}

.hk-social-btn:hover { border-color: var(--hk-red); color: var(--hk-red); }

.hk-footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hk-footer__links a {
    font-size: 12px;
    color: var(--hk-text-dim);
    padding: 4px 0;
    transition: color .15s;
    display: block;
}

.hk-footer__links a:hover { color: var(--hk-text-muted); }

.hk-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 8px;
}

.hk-footer__copy { font-size: 11px; color: #333; }
.hk-footer__copy a { color: #444; transition: color .15s; }
.hk-footer__copy a:hover { color: var(--hk-red); }
.hk-footer__disclaimer { font-size: 10px; color: #282828; font-style: italic; }

/* =====================================================================
   SINGLE ARTICLE
   ===================================================================== */
.hk-breadcrumb {
    font-size: 11px;
    color: var(--hk-text-dim);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.hk-breadcrumb a { color: var(--hk-text-dim); transition: color .15s; }
.hk-breadcrumb a:hover { color: var(--hk-red); }
.hk-breadcrumb__sep { color: #333; }
.hk-breadcrumb__current { color: var(--hk-text-muted); }

.hk-article__header { margin-bottom: 28px; }
.hk-article__cat { margin-bottom: 14px; display: inline-block; }

.hk-article__title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: .2px;
}

.hk-article__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--hk-text-dim);
}

.hk-article__meta-item { display: flex; align-items: center; gap: 5px; }
.hk-article__meta-sep { color: #333; }

.hk-article__author-link {
    color: inherit;
    text-decoration: none;
    transition: color .15s ease;
}
.hk-article__author-link:hover {
    color: var(--hk-red);
    text-decoration: underline;
}

.hk-article__thumb {
    width: 100%;
    margin-bottom: 28px;
    border: 0.5px solid var(--hk-border);
    overflow: hidden;
}

.hk-article__thumb img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.hk-article__caption {
    font-size: 11px;
    color: var(--hk-text-dim);
    padding: 8px 12px;
    background: var(--hk-bg-card);
    border-top: 0.5px solid var(--hk-border);
    text-align: center;
}

.hk-article__infobox {
    background: var(--hk-bg-card);
    border: 0.5px solid var(--hk-border);
    border-left: 3px solid var(--hk-red);
    padding: 16px 20px;
    margin-bottom: 28px;
}

.hk-infobox__title {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--hk-red);
    font-weight: 700;
    margin-bottom: 12px;
}

.hk-infobox__list { display: flex; flex-direction: column; gap: 6px; }

.hk-infobox__row { display: flex; gap: 12px; font-size: 12px; }

.hk-infobox__row dt {
    color: var(--hk-text-dim);
    min-width: 110px;
    flex-shrink: 0;
}

.hk-infobox__row dd { color: var(--hk-text-muted); }

.hk-infobox__source-link {
    color: var(--hk-red);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hk-infobox__source-link:hover { opacity: .75; }

.hk-content {
    font-size: 15px;
    line-height: 1.85;
    color: #c8c8c0;
    margin-bottom: 36px;
}

.hk-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 36px 0 14px;
    padding-left: 14px;
    border-left: 3px solid var(--hk-red);
}

.hk-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--hk-text);
    margin: 28px 0 10px;
}

.hk-content p { margin-bottom: 18px; }

.hk-content a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
    transition: color .15s;
}
.hk-content a:hover { color: var(--hk-red); }

.hk-content img {
    max-width: 100%;
    height: auto;
    margin: 24px 0;
    border: 0.5px solid var(--hk-border);
}

.hk-content blockquote {
    border-left: 3px solid var(--hk-red);
    padding: 12px 20px;
    background: var(--hk-bg-card);
    margin: 24px 0;
    font-style: italic;
    color: var(--hk-text-muted);
}

.hk-content ul,
.hk-content ol { padding-left: 24px; margin-bottom: 18px; }

.hk-content li { margin-bottom: 6px; }
.hk-content strong { color: #fff; font-weight: 700; }

.hk-content hr {
    border: none;
    border-top: 0.5px solid var(--hk-border);
    margin: 32px 0;
}

.hk-article__footer {
    border-top: 0.5px solid var(--hk-border);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hk-article__tags,
.hk-article__terms {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hk-article__tags-label {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--hk-text-dim);
    flex-shrink: 0;
}

.hk-article__share {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hk-share-btn {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border: 0.5px solid var(--hk-border-md);
    background: transparent;
    color: var(--hk-text-muted);
    cursor: pointer;
    transition: all .15s;
    border-radius: 2px;
    font-family: var(--hk-font);
}
.hk-share-btn:hover { border-color: var(--hk-text-dim); color: var(--hk-text); }
.hk-share-btn--x:hover { border-color: #fff; color: #fff; }
.hk-share-btn--fb:hover { border-color: #1877f2; color: #1877f2; }
.hk-share-btn--copy:hover { border-color: var(--hk-green); color: var(--hk-green); }

.hk-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--hk-border);
    margin: 36px 0;
}

.hk-post-nav__item {
    background: var(--hk-bg);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background .15s;
}
.hk-post-nav__item:hover { background: var(--hk-bg-hover); }
.hk-post-nav__next { text-align: right; }

.hk-post-nav__dir {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--hk-text-dim);
}

.hk-post-nav__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--hk-text-muted);
    line-height: 1.4;
}
.hk-post-nav__item:hover .hk-post-nav__title { color: var(--hk-text); }

.hk-related { margin-top: 40px; }

.hk-layout--single {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* =====================================================================
   SINGLE DOSSIER
   ===================================================================== */
.hk-dossier-wrap { background: var(--hk-bg); }

.hk-dossier-header {
    background: var(--hk-bg-alt);
    border-bottom: 2px solid var(--hk-blue);
    padding: 32px 0 0;
}

.hk-dossier-header__badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.hk-dossier-level-badge {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 3px 10px;
    border: 1px solid;
    border-radius: 2px;
}

.hk-dossier-header__title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: .2px;
    max-width: 820px;
}

.hk-dossier-header__thumb {
    width: 100%;
    margin-top: 28px;
    overflow: hidden;
    max-height: 500px;
}

.hk-dossier-header__thumb img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center top;
}

.hk-dossier-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    padding-top: 40px;
    padding-bottom: 48px;
    align-items: start;
}

.hk-dossier-chapeau {
    font-size: 17px;
    line-height: 1.75;
    color: var(--hk-text-muted);
    border-left: 3px solid var(--hk-blue);
    padding: 14px 20px;
    background: #0a0a1a;
    margin-bottom: 32px;
    font-style: italic;
}

.hk-dossier-text { font-size: 15px; }

.hk-dossier-sources {
    background: var(--hk-bg-card);
    border: 0.5px solid var(--hk-border);
    border-left: 3px solid var(--hk-blue);
    padding: 20px 24px;
    margin-top: 40px;
    margin-bottom: 32px;
}

.hk-dossier-sources__title {
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--hk-blue);
    font-weight: 700;
    margin-bottom: 14px;
    border: none;
    padding: 0;
}

.hk-dossier-sources__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hk-dossier-sources__item {
    font-size: 12px;
    color: var(--hk-text-dim);
    padding-left: 14px;
    position: relative;
}

.hk-dossier-sources__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 1px;
    background: var(--hk-blue);
}

.hk-dossier-sources__item a { color: var(--hk-blue); word-break: break-all; }
.hk-dossier-sources__item a:hover { opacity: .75; }

.hk-dossier-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hk-dossier-toc {
    background: var(--hk-bg-card);
    border: 0.5px solid var(--hk-border);
    border-top: 2px solid var(--hk-blue);
    padding: 20px;
    margin-bottom: 20px;
}

.hk-toc-list {
    list-style: none;
    counter-reset: toc;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hk-toc-list__item { counter-increment: toc; }

.hk-toc-list__link {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 12px;
    color: var(--hk-text-muted);
    padding: 6px 8px;
    border-radius: 3px;
    line-height: 1.4;
    transition: all .15s;
}

.hk-toc-list__link:hover { color: var(--hk-text); background: var(--hk-bg-hover); }

.hk-toc-list__link.is-active {
    color: var(--hk-blue);
    background: #0c1a2a;
    border-left: 2px solid var(--hk-blue);
    padding-left: 10px;
}

.hk-toc-list__num {
    font-size: 10px;
    color: var(--hk-text-dim);
    min-width: 16px;
    flex-shrink: 0;
    font-weight: 700;
}

.hk-toc-list__link.is-active .hk-toc-list__num { color: var(--hk-blue); }

.hk-dossier-info {
    background: var(--hk-bg-card);
    border: 0.5px solid var(--hk-border);
    padding: 20px;
    margin-bottom: 20px;
}

/* =====================================================================
   ARCHIVES
   ===================================================================== */
.hk-archive-header {
    background: var(--hk-bg-alt);
    border-bottom: 2px solid var(--hk-red);
    padding: 28px 0 24px;
    margin-bottom: 0;
}

.hk-archive-header__inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 16px;
}

.hk-archive-header__title {
    font-size: 26px;
    font-weight: 800;
    color: var(--hk-red);
    margin-bottom: 6px;
    letter-spacing: .3px;
}

.hk-archive-header__desc {
    font-size: 13px;
    color: var(--hk-text-muted);
    margin-bottom: 6px;
    line-height: 1.6;
}

.hk-archive-header__count {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--hk-text-dim);
}

/* ============================================
   AUTHOR HERO (page archive auteur)
   ============================================ */

.hk-author-hero {
    background: var(--hk-bg-alt);
    border-bottom: 2px solid var(--hk-red);
    padding: 28px 0 32px;
    margin-bottom: 0;
}

.hk-author-hero__inner {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-top: 20px;
}

.hk-author-hero__avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--hk-red);
    background: var(--hk-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hk-author-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hk-author-hero__main {
    flex: 1;
    min-width: 0;
}

.hk-author-hero__role {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--hk-red);
    margin-bottom: 6px;
    font-weight: 700;
}

.hk-author-hero__name {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    letter-spacing: .3px;
    line-height: 1.1;
}

.hk-author-hero__bio {
    font-size: 14px;
    color: var(--hk-text-muted);
    line-height: 1.6;
    margin: 0 0 14px 0;
    max-width: 680px;
}

.hk-author-hero__stats {
    font-size: 12px;
    letter-spacing: .5px;
    color: var(--hk-text-dim);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hk-author-hero__stats strong {
    color: var(--hk-red);
    font-weight: 700;
}

.hk-author-hero__stat-sep {
    color: #333;
}

.hk-author-hero__social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hk-author-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 12px;
    border: 0.5px solid var(--hk-border-md);
    color: var(--hk-text-muted);
    background: transparent;
    transition: all .15s ease;
    border-radius: 2px;
    text-decoration: none;
}

.hk-author-hero__link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.hk-author-hero__link:hover {
    color: #fff;
    border-color: var(--hk-red);
    background: var(--hk-red);
    text-decoration: none;
}

.hk-author-section-title {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--hk-text-dim);
    margin: 24px 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 0.5px solid var(--hk-border);
    font-weight: 600;
}

/* Mobile : avatar centré, contenu en dessous */
@media (max-width: 768px) {
    .hk-author-hero__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
    }
    .hk-author-hero__avatar {
        width: 100px;
        height: 100px;
    }
    .hk-author-hero__name {
        font-size: 22px;
    }
    .hk-author-hero__bio {
        font-size: 13px;
    }
    .hk-author-hero__stats {
        justify-content: center;
    }
    .hk-author-hero__social {
        justify-content: center;
    }
}

.hk-archive-filters {
    background: var(--hk-bg-alt);
    border-bottom: 0.5px solid var(--hk-border);
    padding: 12px 0;
}

.hk-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.hk-filters__label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--hk-text-dim);
    margin-right: 4px;
}

.hk-filter-btn {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 14px;
    border: 0.5px solid var(--hk-border-md);
    color: var(--hk-text-muted);
    transition: all .15s;
    border-radius: 2px;
}

.hk-filter-btn:hover,
.hk-filter-btn.is-active { color: #fff; border-color: var(--hk-text-muted); }

.hk-archive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--hk-border);
    margin-bottom: 32px;
}

.hk-archive-card {
    background: var(--hk-bg);
    display: flex;
    flex-direction: column;
    transition: background .15s;
}

.hk-archive-card:hover { background: var(--hk-bg-hover); }

.hk-archive-card__thumb {
    display: block;
    width: 100%;
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
}

.hk-archive-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.hk-archive-card:hover .hk-archive-card__thumb img { transform: scale(1.04); }
.hk-archive-card__nothumb { width: 100%; height: 100%; background: #1a1a1a; }

.hk-archive-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hk-archive-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.hk-archive-card__cat {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.hk-archive-card__date { font-size: 10px; color: var(--hk-text-dim); }

.hk-archive-card__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    flex: 1;
}

.hk-archive-card__title a { color: var(--hk-text); }
.hk-archive-card:hover .hk-archive-card__title a { color: #fff; }

.hk-archive-card__excerpt {
    font-size: 12px;
    color: var(--hk-text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.hk-archive-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.hk-archive-card__read { font-size: 10px; color: var(--hk-text-dim); }

.hk-archive-card__link {
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 700;
    transition: opacity .15s;
}
.hk-archive-card__link:hover { opacity: .7; }

.hk-dossier-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--hk-border);
    margin-bottom: 32px;
}

.hk-dossier-archive-card {
    background: var(--hk-bg);
    display: flex;
    flex-direction: column;
    transition: background .15s;
}

.hk-dossier-archive-card:hover { background: var(--hk-bg-hover); }

.hk-dossier-archive-card__thumb {
    display: block;
    width: 100%;
    height: 140px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.hk-dossier-archive-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.hk-dossier-archive-card__nothumb {
    width: 100%;
    height: 100%;
    background: #0a0a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--hk-blue);
    opacity: .1;
}

.hk-dossier-archive-card__level-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 2px 8px;
    border: 1px solid;
}

.hk-dossier-archive-card__body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hk-dossier-archive-card__oeuvre {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--hk-blue);
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
}

.hk-dossier-archive-card__title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    flex: 1;
}

.hk-dossier-archive-card__title a { color: var(--hk-text); }
.hk-dossier-archive-card:hover .hk-dossier-archive-card__title a { color: #fff; }

.hk-dossier-archive-card__excerpt {
    font-size: 12px;
    color: var(--hk-text-muted);
    line-height: 1.55;
    margin-bottom: 10px;
}

.hk-dossier-archive-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.hk-dossier-archive-card__meta { font-size: 10px; color: var(--hk-text-dim); }

.hk-search-results {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--hk-border);
    margin-bottom: 32px;
}

.hk-search-card {
    background: var(--hk-bg);
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    padding: 16px;
    transition: background .15s;
}

.hk-search-card:hover { background: var(--hk-bg-hover); }
.hk-search-card--dossier { border-left: 3px solid var(--hk-blue); }

.hk-search-card__thumb {
    display: block;
    width: 80px;
    height: 64px;
    overflow: hidden;
    flex-shrink: 0;
}

.hk-search-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hk-search-card__nothumb { width: 100%; height: 100%; background: #1a1a1a; }
.hk-search-card__body { display: flex; flex-direction: column; gap: 4px; }
.hk-search-card__top { display: flex; align-items: center; gap: 10px; }

.hk-search-card__type {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.hk-search-card__date { font-size: 10px; color: var(--hk-text-dim); }

.hk-search-card__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.hk-search-card__title a { color: var(--hk-text); }
.hk-search-card:hover .hk-search-card__title a { color: #fff; }

.hk-search-card__excerpt { font-size: 12px; color: var(--hk-text-muted); line-height: 1.55; }

.hk-search-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.hk-search-card__read { font-size: 10px; color: var(--hk-text-dim); }
.hk-search-form--large { margin-top: 20px; }
.hk-search-form--large input { font-size: 14px; }

.hk-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 0.5px solid var(--hk-border);
}

.hk-pagination .page-numbers {
    font-size: 12px;
    letter-spacing: .5px;
    padding: 6px 14px;
    border: 0.5px solid var(--hk-border-md);
    color: var(--hk-text-muted);
    transition: all .15s;
}

.hk-pagination .page-numbers:hover,
.hk-pagination .page-numbers.current {
    background: var(--hk-red);
    border-color: var(--hk-red);
    color: #fff;
}

.hk-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--hk-text-dim);
}

.hk-empty {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hk-empty__text { font-size: 16px; color: var(--hk-text-muted); }
.hk-empty__sub { font-size: 13px; color: var(--hk-text-dim); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
    .hk-layout { grid-template-columns: 1fr; }
    .hk-main { padding: 24px 0; border-right: none; }
    .hk-aside { padding: 0 0 24px; }
    .hk-layout--single { grid-template-columns: 1fr; }
    .hk-dossier-body { grid-template-columns: 1fr; gap: 0; }
    .hk-dossier-sidebar { position: static; order: -1; margin-bottom: 32px; }
    .hk-dossier-toc { margin-bottom: 0; }
    .hk-dossier-info { display: none; }
    .hk-footer__cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
    .hk-topbar { display: none; }
    .hk-nav-wrap { display: none; }
    .hk-burger { display: flex; }
    .hk-header__search { display: none; }
    .hk-header__inner { padding: 0 16px; }
    .hk-logo img { max-height: 56px; }
    .hk-grid { grid-template-columns: 1fr 1fr; }
    .hk-mini-grid { grid-template-columns: 1fr 1fr; }
    .hk-hero__cards { grid-template-columns: 1fr; height: auto; }
    .hk-hero__card { height: 240px; position: relative; }
    .hk-hero__card--main { height: 280px; }
    .hk-hero__title { font-size: 14px; }
    .hk-hero__card-content { padding: 14px; }
    .hk-layout { grid-template-columns: 1fr; }
    .hk-sidebar { display: none; }
    .hk-article__title { font-size: 22px; }
    .hk-article__thumb img { height: 220px; }
    .hk-post-nav { grid-template-columns: 1fr; }
    .hk-dossier-header__title { font-size: 24px; }
    .hk-dossier-header__thumb img { height: 220px; }
    .hk-archive-grid { grid-template-columns: 1fr; }
    .hk-dossier-archive-grid { grid-template-columns: 1fr 1fr; }
    .hk-footer__cols { grid-template-columns: 1fr; gap: 24px; }
    .hk-footer__bottom { flex-direction: column; text-align: center; }
    .hk-cat-section { padding: 24px 16px; }
    .hk-container { padding: 0 16px; }
    .hk-comment-form__row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hk-grid { grid-template-columns: 1fr; }
    .hk-mini-grid { grid-template-columns: 1fr; }
    .hk-dossier-list { grid-template-columns: repeat(2, 1fr); }
    .hk-dossier-archive-grid { grid-template-columns: 1fr; }
    .hk-search-card { grid-template-columns: 64px 1fr; }
    .hk-hero__card { height: 200px; }
    .hk-hero__card--main { height: 240px; }
    .hk-hero__title { font-size: 13px; }
    .hk-404__inner { grid-template-columns: 1fr; gap: 32px; }
    .hk-404__number { font-size: 72px; }
}

/* Grilles dynamiques selon nombre d'articles */
.hk-mini-grid--1 { grid-template-columns: 1fr; max-width: 320px; }
.hk-mini-grid--2 { grid-template-columns: 1fr 1fr; }
.hk-mini-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.hk-mini-grid--4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

/* Grille mini — 4 colonnes fixes */
.hk-mini-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
    .hk-mini-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .hk-mini-grid--4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .hk-mini-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .hk-mini-grid--3, .hk-mini-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   PAGE 404
   ===================================================================== */
.hk-404 {
    padding: 80px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hk-404__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hk-404__number {
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    color: #1a1a1a;
    letter-spacing: -4px;
    margin-bottom: 16px;
}

.hk-404__number span {
    color: var(--hk-red);
}

.hk-404__title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.hk-404__text {
    font-size: 14px;
    color: var(--hk-text-muted);
    line-height: 1.8;
    margin-bottom: 28px;
}

.hk-404__actions {
    display: flex;
    gap: 16px;
}

.hk-404__recent-title {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--hk-text-dim);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 0.5px solid var(--hk-border);
}

.hk-404__recent-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hk-404__recent-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: var(--hk-bg-card);
    border: 0.5px solid var(--hk-border);
    border-radius: 4px;
    transition: border-color .15s;
}

.hk-404__recent-item:hover {
    border-color: var(--hk-red);
}

.hk-404__recent-thumb {
    width: 80px;
    height: 56px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 3px;
    background: #1a1a1a;
}

.hk-404__recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hk-404__recent-nothumb {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
}

.hk-404__recent-cat {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.hk-404__recent-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--hk-text);
    line-height: 1.3;
}

.hk-404__recent-date {
    font-size: 11px;
    color: var(--hk-text-dim);
    margin-top: 4px;
    display: block;
}

@media (max-width: 768px) {
    .hk-404__inner { grid-template-columns: 1fr; gap: 40px; }
    .hk-404__number { font-size: 80px; }
}

/* =====================================================================
   COMMENTAIRES
   ===================================================================== */
.hk-comments {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 0.5px solid var(--hk-border);
}

.hk-comments__title {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--hk-text-dim);
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 0.5px solid var(--hk-border);
}

.hk-comments__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.hk-comment__inner {
    display: flex;
    gap: 14px;
    background: var(--hk-bg-card);
    border: 0.5px solid var(--hk-border);
    border-radius: 4px;
    padding: 16px;
}

.hk-comment__avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hk-comment__body { flex: 1; }

.hk-comment__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.hk-comment__author {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.hk-comment__author a { color: #fff; }

.hk-comment__date {
    font-size: 11px;
    color: var(--hk-text-dim);
}

.hk-comment__reply a {
    font-size: 11px;
    color: var(--hk-red);
    letter-spacing: .5px;
}

.hk-comment__text {
    font-size: 14px;
    color: var(--hk-text-muted);
    line-height: 1.7;
}

.hk-comment__pending {
    font-size: 12px;
    color: var(--hk-amber);
    font-style: italic;
    margin-bottom: 8px;
}

/* Réponses imbriquées */
.children {
    list-style: none;
    margin-top: 12px;
    margin-left: 54px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Formulaire de commentaire */
.hk-comment-form { margin-top: 32px; }

.hk-comment-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hk-comment-form__field {
    margin-bottom: 12px;
}

.hk-comment-form__field input,
.hk-comment-form__field textarea {
    width: 100%;
    background: var(--hk-bg-card);
    border: 0.5px solid var(--hk-border);
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--hk-text);
    outline: none;
    transition: border-color .15s;
    font-family: var(--hk-font);
}

.hk-comment-form__field textarea {
    min-height: 120px;
    resize: vertical;
}

.hk-comment-form__field input:focus,
.hk-comment-form__field textarea:focus {
    border-color: var(--hk-red);
}

.hk-comment-form__submit {
    background: var(--hk-red) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 28px !important;
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background .15s !important;
    border-radius: 3px !important;
}

.hk-comment-form__submit:hover {
    background: var(--hk-red-hover) !important;
}

.hk-comment-form__cookies {
    font-size: 12px;
    color: var(--hk-text-dim);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hk-comments__nav {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 13px;
}

.hk-comments__closed {
    font-size: 13px;
    color: var(--hk-text-dim);
    font-style: italic;
    margin-top: 24px;
}

/* =====================================================================
   PAGE STATIQUE (À propos, Contact, Mentions légales)
   ===================================================================== */
.hk-layout--page {
    display: block;
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.hk-page__title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--hk-red);
}

.hk-page__content {
    font-size: 15px;
    color: var(--hk-text-muted);
    line-height: 1.8;
}

.hk-page__content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 40px 0 12px;
    padding-left: 12px;
    border-left: 3px solid var(--hk-red);
}

.hk-page__content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--hk-text);
    margin: 24px 0 8px;
}

.hk-page__content p {
    margin-bottom: 16px;
}

.hk-page__content a {
    color: var(--hk-red);
    text-decoration: underline;
}

.hk-page__content a:hover {
    color: var(--hk-red-hover);
}

.hk-page__content ul, .hk-page__content ol {
    margin: 0 0 16px 24px;
}

.hk-page__content li {
    margin-bottom: 6px;
}

.hk-page__content strong {
    color: #fff;
    font-weight: 700;
}

@media (max-width: 768px) {
    .hk-layout--page { padding: 32px 16px 60px; }
    .hk-page__title { font-size: 24px; }
}

/* =====================================================================
   WPFORMS — STYLE THÈME SOMBRE
   ===================================================================== */
.wpforms-container {
    max-width: 600px;
}

.wpforms-field input,
.wpforms-field textarea,
.wpforms-field select {
    background: #1a1a1a !important;
    border: 0.5px solid var(--hk-border) !important;
    border-radius: 4px !important;
    color: #fff !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-family: var(--hk-font) !important;
    transition: border-color .15s !important;
    width: 100% !important;
}

.wpforms-field input:focus,
.wpforms-field textarea:focus {
    border-color: var(--hk-red) !important;
    outline: none !important;
    box-shadow: none !important;
}

.wpforms-field textarea {
    min-height: 140px !important;
    resize: vertical !important;
}

.wpforms-field label {
    color: var(--hk-text-muted) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
}

.wpforms-field input::placeholder,
.wpforms-field textarea::placeholder {
    color: #555 !important;
}

.wpforms-submit-container .wpforms-submit {
    background: var(--hk-red) !important;
    border: none !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    padding: 12px 32px !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    transition: background .15s !important;
}

.wpforms-submit-container .wpforms-submit:hover {
    background: var(--hk-red-hover) !important;
}

.wpforms-confirmation-container-full {
    background: #1a1a1a !important;
    border: 0.5px solid var(--hk-red) !important;
    color: #fff !important;
    padding: 16px !important;
    border-radius: 4px !important;
}

/* =====================================================================
   CONTACT FORM 7 — STYLE THÈME SOMBRE
   ===================================================================== */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    background: #1a1a1a !important;
    border: 0.5px solid var(--hk-border) !important;
    border-radius: 4px !important;
    color: #fff !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-family: var(--hk-font) !important;
    width: 100% !important;
    transition: border-color .15s !important;
    margin-bottom: 12px !important;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    border-color: var(--hk-red) !important;
    outline: none !important;
    box-shadow: none !important;
}

.wpcf7-form textarea {
    min-height: 140px !important;
    resize: vertical !important;
}

.wpcf7-form input[type="text"]::placeholder,
.wpcf7-form input[type="email"]::placeholder,
.wpcf7-form textarea::placeholder {
    color: #555 !important;
}

.wpcf7-form label {
    color: var(--hk-text-muted) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: block !important;
    margin-bottom: 6px !important;
}

.wpcf7-form input[type="submit"] {
    background: var(--hk-red) !important;
    border: none !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    padding: 12px 32px !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    transition: background .15s !important;
    margin-top: 8px !important;
}

.wpcf7-form input[type="submit"]:hover {
    background: var(--hk-red-hover) !important;
}

.wpcf7-response-output {
    border: 0.5px solid var(--hk-red) !important;
    background: #1a1a1a !important;
    color: #fff !important;
    padding: 12px 16px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    margin-top: 16px !important;
}

.wpcf7-not-valid-tip {
    color: var(--hk-red) !important;
    font-size: 12px !important;
}

/* =====================================================================
   ANNUAIRE
   ===================================================================== */
.hk-annuaire__intro {
    color: var(--hk-text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.hk-annuaire__cat {
    font-size: 11px !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    color: var(--hk-text-dim) !important;
    margin: 40px 0 16px !important;
    padding-bottom: 8px !important;
    border-bottom: 0.5px solid var(--hk-border) !important;
    border-left: none !important;
    padding-left: 0 !important;
}

.hk-annuaire__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}

.hk-annuaire__card {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--hk-bg-card);
    border: 0.5px solid var(--hk-border);
    border-radius: 6px;
    padding: 16px;
    transition: border-color .15s, background .15s;
}

.hk-annuaire__card:hover {
    border-color: var(--hk-red);
    background: #111;
}

.hk-annuaire__logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.5px solid var(--hk-border);
}

.hk-annuaire__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.hk-annuaire__fallback {
    font-size: 10px;
    font-weight: 700;
    color: var(--hk-text-dim);
    text-align: center;
    line-height: 1.2;
    padding: 4px;
}

.hk-annuaire__body {
    flex: 1;
    min-width: 0;
}

.hk-annuaire__name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.hk-annuaire__desc {
    font-size: 12px;
    color: var(--hk-text-muted);
    line-height: 1.5;
    margin-bottom: 6px;
}

.hk-annuaire__url {
    font-size: 11px;
    color: var(--hk-red);
    font-family: monospace;
}

@media (max-width: 600px) {
    .hk-annuaire__grid { grid-template-columns: 1fr; }
}

.hk-annuaire__logo--official { color: var(--hk-red); }
.hk-annuaire__logo--fan { color: var(--hk-amber); }
.hk-annuaire__logo--wiki { color: var(--hk-blue); }

.hk-footer__logo-img {
    max-width: 200px;
    height: auto;
    display: block;
    margin-bottom: 4px;
    opacity: 0.9;
    transition: opacity .15s;
}

.hk-footer__logo:hover .hk-footer__logo-img {
    opacity: 1;
}

/* =====================================================================
   FOOTER — PARTENAIRES
   ===================================================================== */
.hk-footer__col-title--partner {
    margin-top: 24px !important;
}

.hk-footer__partners {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.hk-footer__partner {
    display: inline-block;
    opacity: 0.8;
    transition: opacity .15s;
}

.hk-footer__partner:hover {
    opacity: 1;
}

.hk-footer__partner-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 50%;
    border: 0.5px solid var(--hk-border);
    background: #111;
}

/* =====================================================================
   NEWSLETTER FOOTER
   ===================================================================== */
.hk-footer__newsletter {
    margin-top: 20px;
}

.hk-footer__newsletter-desc {
    font-size: 12px;
    color: var(--hk-text-dim);
    margin-bottom: 12px;
    line-height: 1.5;
}

.hk-footer__newsletter .newsletter-form-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hk-footer__newsletter input[type="email"],
.hk-footer__newsletter input[type="text"] {
    background: #1a1a1a !important;
    border: 0.5px solid var(--hk-border) !important;
    border-radius: 4px !important;
    color: #fff !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    width: 100% !important;
}

.hk-footer__newsletter input[type="email"]:focus,
.hk-footer__newsletter input[type="text"]:focus {
    border-color: var(--hk-red) !important;
    outline: none !important;
}

.hk-footer__newsletter input[type="submit"] {
    background: var(--hk-red) !important;
    border: none !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    padding: 8px 20px !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    width: 100% !important;
}

.hk-footer__newsletter input[type="submit"]:hover {
    background: var(--hk-red-hover) !important;
}

.hk-footer__newsletter label {
    font-size: 11px !important;
    color: var(--hk-text-dim) !important;
}

/* =====================================================================
   TEMPLATE IMAGE FEATURED — DÉSACTIVÉ
   ===================================================================== */

/* =====================================================================
   FICHES PERSONNAGES — TAXONOMY
   ===================================================================== */

/* Conteneur principal de la description du term */
.tax-description,
.term-description,
.taxonomy-description {
    line-height: 1.7;
}

/* Image de la fiche personnage */
.hk-perso {
    overflow: hidden;
}

.hk-perso__img,
.hk-perso img.alignright,
.tax-description img.alignright,
.term-description img.alignright {
    float: right;
    width: 160px !important;
    height: 160px !important;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 0 16px 20px;
    display: block;
    flex-shrink: 0;
}

/* Clearfix après la fiche */
.hk-perso::after {
    content: '';
    display: table;
    clear: both;
}

/* Responsive mobile */
@media (max-width: 480px) {
    .hk-perso__img,
    .hk-perso img.alignright,
    .tax-description img.alignright,
    .term-description img.alignright {
        float: none !important;
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto 16px !important;
    }
}

/* =====================================================================
   FICHE PERSONNAGE — taxonomy-personnage.php
   ===================================================================== */

.hk-perso-fiche {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-top: 24px;
    padding-bottom: 24px;
}

.hk-perso-fiche__img-wrap {
    flex-shrink: 0;
}

.hk-perso-fiche__img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    border: 2px solid var(--hk-border-md);
}

.hk-perso-fiche__body {
    flex: 1;
}

.hk-perso-fiche__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.hk-perso-fiche__desc {
    font-size: 0.85rem;
    line-height: 1.75;
    color: var(--hk-text);
}

.hk-perso-fiche__desc p {
    margin-bottom: 10px;
}

.hk-perso-fiche__desc strong {
    color: var(--hk-text);
}

/* Mobile */
@media (max-width: 600px) {
    .hk-perso-fiche {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hk-perso-fiche__img {
        width: 140px;
        height: 140px;
    }
}

/* =====================================================================
   GRILLE PERSONNAGES — shortcode [personnages]
   ===================================================================== */
.hk-personnages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.hk-personnages-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s;
}

.hk-personnages-card:hover {
    transform: translateY(-4px);
}

.hk-personnages-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--hk-border-md);
    transition: border-color 0.2s;
}

.hk-personnages-card:hover img {
    border-color: var(--hk-purple);
}

.hk-personnages-card__noimg {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    background: var(--hk-bg-card);
    border: 2px solid var(--hk-border);
}

.hk-personnages-card__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hk-text);
    text-align: center;
}

/* =====================================================================
   SOMMAIRE FICHES (personnage / oeuvre / personnalite)
   ===================================================================== */

.hk-sommaire {
    background: var(--hk-bg-card);
    border: 1px solid var(--hk-border);
    border-radius: 10px;
    padding: 18px 22px;
    margin: 20px 0 28px;
    display: inline-block;
    min-width: 220px;
    max-width: 100%;
}

.hk-sommaire__title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hk-text-muted);
    margin: 0 0 10px;
}

.hk-sommaire__list {
    list-style: decimal;
    padding-left: 18px;
    margin: 0;
}

.hk-sommaire__item {
    margin-bottom: 5px;
    font-size: 0.88rem;
    line-height: 1.4;
}

.hk-sommaire__item a {
    color: var(--hk-text);
    text-decoration: none;
    transition: color 0.2s;
}

.hk-sommaire__item a:hover {
    color: var(--hk-gold);
    text-decoration: underline;
}

/* =====================================================================
   COLONNE GAUCHE FICHE (image + sommaire empilés)
   ===================================================================== */

.hk-perso-fiche__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex-shrink: 0;
    width: 200px;
}

.hk-perso-fiche__left .hk-sommaire {
    width: 100%;
    margin: 0;
}

@media (max-width: 768px) {
    .hk-perso-fiche__left {
        width: 100%;
        align-items: center;
    }
    .hk-perso-fiche__left .hk-sommaire {
        max-width: 100%;
    }
}

/* =====================================================================
   FICHE TECHNIQUE — ACF (Apparition / Statut / Rôle / Art martial)
   ===================================================================== */

.hk-fiche-technique {
    width: 100%;
    background: var(--hk-bg-card);
    border: 1px solid var(--hk-border);
    border-radius: 10px;
    overflow: hidden;
}

.hk-fiche-technique__title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hk-text-muted);
    padding: 12px 16px 10px;
    border-bottom: 1px solid var(--hk-border);
    margin: 0;
}

.hk-fiche-technique__list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.hk-fiche-technique__row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--hk-border);
}

.hk-fiche-technique__row:last-child {
    border-bottom: none;
}

.hk-fiche-technique__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--hk-purple);
    margin: 0;
}

.hk-fiche-technique__value {
    font-size: 0.84rem;
    color: var(--hk-text);
    line-height: 1.5;
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .hk-fiche-technique {
        width: 100%;
        max-width: 100%;
    }
}

/* =====================================================================
   SCROLL OFFSET — compensation header sticky
   ===================================================================== */

.hk-perso-fiche__desc h2,
.entry-content h2,
.entry-content h3 {
    scroll-margin-top: 220px;
}

/* =====================================================================
   LIENS DANS LES FICHES (personnage / oeuvre / personnalite)
   Style unifié avec les articles : gras + rouge au survol
   ===================================================================== */

.hk-perso-fiche__desc a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
    transition: color .15s;
}

.hk-perso-fiche__desc a:hover {
    color: var(--hk-red);
}

/* Sommaire : même logique */
.hk-sommaire__item a {
    color: var(--hk-text);
    font-weight: 700;
    transition: color .15s;
}

.hk-sommaire__item a:hover {
    color: var(--hk-red);
    text-decoration: none;
}

/* =====================================================================
   IMAGES INSÉRÉES DANS LA DESCRIPTION DES FICHES
   ===================================================================== */

.hk-perso-fiche__desc img {
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px auto;
    display: block;
    border: 1px solid var(--hk-border);
}

.hk-perso-fiche__desc img.alignleft {
    float: left;
    max-width: 50%;
    margin: 8px 20px 16px 0;
}

.hk-perso-fiche__desc img.alignright {
    float: right;
    max-width: 50%;
    margin: 8px 0 16px 20px;
}

.hk-perso-fiche__desc img.aligncenter {
    margin: 16px auto;
}

.hk-perso-fiche__desc img.size-thumbnail,
.hk-perso-fiche__desc img.size-medium {
    max-width: 320px;
}

.hk-perso-fiche__desc img.size-large,
.hk-perso-fiche__desc img.size-full {
    max-width: 640px;
}

/* Figure (image + caption) */
.hk-perso-fiche__desc figure {
    margin: 16px auto;
    max-width: 100%;
}

.hk-perso-fiche__desc figure img {
    margin: 0;
}

.hk-perso-fiche__desc figcaption {
    font-size: 13px;
    color: var(--hk-text-muted);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* Galerie WordPress [gallery] */
.hk-perso-fiche__desc .gallery {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 20px 0;
    clear: both;
    list-style: none;
    padding: 0;
}

.hk-perso-fiche__desc .gallery.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.hk-perso-fiche__desc .gallery.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.hk-perso-fiche__desc .gallery.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.hk-perso-fiche__desc .gallery.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.hk-perso-fiche__desc .gallery.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }

.hk-perso-fiche__desc .gallery br {
    display: none !important;
}

.hk-perso-fiche__desc .gallery-item {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center;
    float: none !important;
    display: block !important;
}

.hk-perso-fiche__desc .gallery-icon {
    margin: 0 !important;
    padding: 0 !important;
}

.hk-perso-fiche__desc .gallery-icon.landscape,
.hk-perso-fiche__desc .gallery-icon.portrait {
    margin: 0 !important;
}

.hk-perso-fiche__desc .gallery-caption {
    display: none !important;
}

.hk-perso-fiche__desc .gallery a {
    display: block;
    line-height: 0;
    margin: 0;
    cursor: zoom-in;
}

.hk-perso-fiche__desc .gallery img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    border-radius: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--hk-border) !important;
    display: block !important;
    transition: opacity .15s;
    box-shadow: none !important;
}

.hk-perso-fiche__desc .gallery a:hover img {
    opacity: .85;
}

/* Mobile : toutes les galeries en 2 colonnes max */
@media (max-width: 600px) {
    .hk-perso-fiche__desc .gallery,
    .hk-perso-fiche__desc .gallery.gallery-columns-3,
    .hk-perso-fiche__desc .gallery.gallery-columns-4,
    .hk-perso-fiche__desc .gallery.gallery-columns-5,
    .hk-perso-fiche__desc .gallery.gallery-columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Clearfix sur la description pour les images flottantes */
.hk-perso-fiche__desc::after {
    content: '';
    display: block;
    clear: both;
}

/* Mobile : alignleft/right repassent en pleine largeur */
@media (max-width: 600px) {
    .hk-perso-fiche__desc img.alignleft,
    .hk-perso-fiche__desc img.alignright {
        float: none;
        max-width: 100%;
        margin: 16px auto;
    }
}
