/* ========================================
   Hobbyverse - design system
   Direction : "établi de collectionneur"
   Fond clair, bordures encre, ombres franches, une couleur par univers.
   ======================================== */

:root {
    --ink: #14151F;
    --ink-soft: #3A3D52;
    --bg: #FAFAF7;
    --bg-alt: #EFEFF6;
    --white: #FFFFFF;
    --muted: #5B5E73;
    --line: #14151F;

    /* Une couleur par univers */
    --gunpla: #FF5A36;
    --lego: #FFC400;
    --tcg: #A793FF;
    --tcg-deep: #7A5CFF;

    --font-heading: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --wrap: 1180px;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 5px 5px 0 var(--ink);
    --shadow-lg: 8px 8px 0 var(--ink);
    --ease: 180ms cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

:focus-visible { outline: 3px solid var(--tcg-deep); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }

.skip-to-content {
    position: absolute; top: -100%; left: 1rem; z-index: 200;
    background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: 0 0 8px 8px;
}
.skip-to-content:focus { top: 0; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-heading); font-weight: 600; font-size: 1rem; line-height: 1;
    padding: .95rem 1.4rem; border-radius: 999px; border: 2px solid var(--ink);
    cursor: pointer; transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}
.btn-ink { background: var(--ink); color: var(--white); box-shadow: 4px 4px 0 var(--lego); }
.btn-ink:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--lego); }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-ghost:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

.link-arrow { font-family: var(--font-heading); font-weight: 600; display: inline-flex; gap: .4rem; align-items: baseline; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link-arrow b { transition: transform var(--ease); }
.link-arrow:hover b { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250, 250, 247, .94); backdrop-filter: blur(10px); border-bottom: 2px solid var(--ink); }
.header-inner { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; display: flex; align-items: center; gap: 1.5rem; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-mark { width: 38px; height: 38px; }
.brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; }
.brand-name span { color: var(--gunpla); }

.main-nav { display: flex; gap: .35rem; margin-left: auto; }
.nav-pill { font-family: var(--font-heading); font-weight: 600; font-size: .98rem; padding: .5rem 1rem; border-radius: 999px; border: 2px solid transparent; transition: background var(--ease), border-color var(--ease); }
.nav-pill:hover { border-color: var(--ink); background: var(--white); }
.nav-pill.is-active { background: var(--ink); color: var(--white); }

.header-cta { padding: .7rem 1.1rem; font-size: .95rem; }

.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

.nav-mobile { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 4rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }

.chip { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: .4rem .9rem; margin-bottom: 1.5rem; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--gunpla); }
.chip i:nth-of-type(2) { background: var(--lego); }
.chip i:nth-of-type(3) { background: var(--tcg-deep); }

.hero h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); margin-bottom: 1.4rem; }
.hero h1 mark { background: none; color: inherit; position: relative; z-index: 0; white-space: nowrap; }
.hero h1 mark::after { content: ""; position: absolute; left: -.08em; right: -.08em; bottom: .04em; height: .34em; background: var(--lego); z-index: -1; border-radius: 4px; transform: rotate(-1.2deg); }

.hero-lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-size: .93rem; color: var(--muted); }
.hero-proof li { position: relative; padding-left: 1.4rem; }
.hero-proof li::before { content: "✓"; position: absolute; left: 0; color: var(--ink); font-weight: 700; }

/* Composition visuelle du hero */
.hero-art { position: relative; aspect-ratio: 1 / .98; width: 100%; max-width: 540px; margin-inline: auto; }
.art { position: absolute; }

.art-runner { top: 0; left: 0; width: 66%; background: var(--ink); border: 3px solid var(--ink); border-radius: var(--radius); padding: .9rem; box-shadow: 8px 8px 0 var(--gunpla); transform: rotate(-3deg); animation: floaty 7s ease-in-out infinite; }
.art-tag { position: absolute; left: 1rem; bottom: .8rem; font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #9EA1B8; }

.art-cards { top: 30%; right: 0; width: 50%; height: 56%; animation: floaty 8s ease-in-out -2s infinite; }
.art-cards .card { position: absolute; width: 56%; top: 0; filter: drop-shadow(5px 6px 0 rgba(20, 21, 31, .9)); transform-origin: 50% 90%; }
.art-cards .c1 { left: 0; transform: rotate(-13deg); }
.art-cards .c2 { left: 22%; transform: rotate(0deg) translateY(-3%); z-index: 2; }
.art-cards .c3 { left: 44%; transform: rotate(13deg); z-index: 1; }

.art-brick { bottom: 2%; left: 4%; width: 52%; transform: rotate(3deg); filter: drop-shadow(7px 7px 0 var(--ink)); animation: floaty 9s ease-in-out -4s infinite; }

.spark { position: absolute; border-radius: 50%; }
.spark.s1 { width: 54px; height: 54px; background: var(--tcg); border: 3px solid var(--ink); right: 6%; top: 2%; }
.spark.s2 { width: 26px; height: 26px; border: 4px solid var(--gunpla); right: 30%; bottom: 8%; }

@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ---------- Bandeau ---------- */
.marquee { background: var(--ink); color: var(--lego); border-block: 2px solid var(--ink); overflow: hidden; padding: .85rem 0; }
.marquee-track { display: flex; gap: 1.6rem; width: max-content; font-family: var(--font-heading); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; animation: marquee 38s linear infinite; }
.marquee-track i { font-style: normal; color: var(--gunpla); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-tight { padding-top: 0; }
.section-alt { background: var(--bg-alt); border-block: 2px solid var(--ink); }
.section-dark { background: var(--ink); color: var(--white); }

.section-head { max-width: 40rem; margin-bottom: 2.8rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .8rem; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.section-head-row > div { max-width: 40rem; }
.section-dark .section-head p:not(.eyebrow) { color: #B8BACB; }

.eyebrow { font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--gunpla); border-radius: 2px; }

/* ---------- Univers (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }

.tile { position: relative; display: flex; flex-direction: column; gap: .7rem; padding: 1.8rem; border: 2px solid var(--ink); border-radius: 26px; box-shadow: var(--shadow); transition: transform var(--ease), box-shadow var(--ease); overflow: hidden; }
a.tile:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.tile h3 { font-size: clamp(2rem, 3.4vw, 3rem); }
.tile p { max-width: 24rem; font-size: 1.02rem; }
.tile-index { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.tile-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .4rem; }
.tile-chips li { font-family: var(--font-mono); font-size: .76rem; padding: .25rem .7rem; border: 2px solid var(--ink); border-radius: 999px; background: rgba(255, 255, 255, .55); }
.tile-foot { margin-top: auto; padding-top: 1.2rem; font-family: var(--font-heading); font-weight: 600; display: inline-flex; gap: .5rem; align-items: baseline; position: relative; z-index: 1; }
.tile-foot b { transition: transform var(--ease); }
a.tile:hover .tile-foot b { transform: translateX(5px); }

.tile-gunpla { grid-area: 1 / 1 / 3 / 8; background: var(--gunpla); min-height: 440px; }
.tile-lego { grid-area: 1 / 8 / 2 / 13; background: var(--lego); }
.tile-tcg { grid-area: 2 / 8 / 3 / 13; background: var(--tcg); }
.tile-next { grid-area: 3 / 1 / 4 / 13; background: transparent; border-style: dashed; box-shadow: none; flex-direction: row; align-items: center; gap: 2rem; flex-wrap: wrap; }
.tile-next h3 { font-size: 1.6rem; }
.tile-next .tile-index { width: 100%; }
.tile-next p { max-width: 36rem; }

.tile-art { position: absolute; right: 4%; bottom: 3%; width: 56%; opacity: .95; pointer-events: none; }
.tile-gunpla h3, .tile-gunpla p, .tile-gunpla .tile-chips { position: relative; z-index: 1; }
.tile-lego::after { content: ""; position: absolute; right: -30px; top: -30px; width: 150px; height: 150px; background: radial-gradient(circle at 50% 50%, rgba(20,21,31,.16) 0 18px, transparent 19px) 0 0 / 50px 50px; transform: rotate(8deg); }
.tile-tcg::after { content: ""; position: absolute; right: -36px; bottom: -36px; width: 140px; height: 140px; border: 3px solid var(--ink); border-radius: 18px; transform: rotate(16deg); background: rgba(255, 255, 255, .35); }

/* ---------- Badges ---------- */
.badge { display: inline-block; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: .22rem .65rem; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); }
.badge-gunpla { background: var(--gunpla); }
.badge-lego { background: var(--lego); }
.badge-tcg { background: var(--tcg); }

.meta { display: flex; align-items: center; gap: .8rem; font-size: .85rem; color: var(--muted); margin-bottom: .7rem; }

/* ---------- Couvertures générées ---------- */
.cover { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; background: var(--ink); overflow: hidden; }
.cover-glyph { position: absolute; left: 1rem; bottom: .6rem; font-family: var(--font-heading); font-weight: 800; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.cover-gunpla { background: repeating-linear-gradient(135deg, var(--gunpla) 0 16px, #FF7A5C 16px 32px); }
.cover-lego { background: radial-gradient(circle at 50% 50%, rgba(20,21,31,.18) 0 12px, transparent 13px) 0 0 / 38px 38px, var(--lego); }
.cover-tcg { background: conic-gradient(from 45deg at 50% 50%, var(--tcg) 0 25%, #BFB0FF 0 50%, var(--tcg) 0 75%, #BFB0FF 0) 0 0 / 56px 56px; }
.cover-default { background: var(--bg-alt); }

/* ---------- Fil d'articles ---------- */
.feed { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: stretch; }

.feature { display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform var(--ease), box-shadow var(--ease); }
.feature:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.feature-cover { display: block; border-bottom: 2px solid var(--ink); }
.feature-cover img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; height: auto; }
.feature-body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem; }
.feature-body .link-arrow { margin-top: auto; align-self: flex-start; }
.feature-body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .7rem; }
.feature-body p:not(.meta) { color: var(--muted); margin-bottom: 1.1rem; }

.feed-list { display: grid; gap: 1.1rem; grid-auto-rows: 1fr; }
.row { display: grid; grid-template-columns: 150px 1fr; gap: 1.1rem; align-items: center; background: var(--white); border: 2px solid var(--ink); border-radius: 16px; padding: .7rem; transition: transform var(--ease), box-shadow var(--ease); }
.row:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.row-cover { display: block; border-radius: 10px; overflow: hidden; border: 2px solid var(--ink); }
.row-cover .cover { aspect-ratio: 4 / 3; }
.row-cover .cover-glyph { font-size: 1.3rem; left: .6rem; bottom: .4rem; }
.row-cover img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.row h3 { font-size: 1.12rem; line-height: 1.2; letter-spacing: -0.01em; }
.row .meta { margin-bottom: .4rem; font-size: .78rem; }

/* ---------- Pour débuter ---------- */
.starts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.start { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); border-top-width: 10px; }
.start-gunpla { border-top-color: var(--gunpla); }
.start-lego { border-top-color: var(--lego); }
.start-tcg { border-top-color: var(--tcg); }
.start h3 { font-size: 1.45rem; margin-bottom: 1.2rem; }
.start ol { counter-reset: step; display: grid; gap: 1rem; }
.start li { counter-increment: step; position: relative; padding-left: 2.6rem; color: var(--ink-soft); font-size: .98rem; }
.start li::before { content: counter(step); position: absolute; left: 0; top: -.05rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 2px solid var(--ink); background: var(--bg-alt); font-family: var(--font-mono); font-size: .85rem; display: grid; place-items: center; color: var(--ink); }
.start li strong { color: var(--ink); }
.start { display: flex; flex-direction: column; }
.start ol { flex: 1; }
.start-link { display: inline-block; margin-top: 1.4rem; font-family: var(--font-mono); font-size: .85rem; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.start-link:hover { text-decoration-thickness: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D5D7E3; padding: 4.5rem 0 0; margin-top: auto; border-radius: 40px 40px 0 0; overflow: hidden; position: relative; isolation: isolate; }
.footer-main { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4rem; align-items: start; padding-bottom: 2rem; }

.brand-light .brand-name { color: var(--white); }
.footer-desc { margin-top: 1.2rem; max-width: 26rem; font-size: 1rem; color: #B8BACB; }

.footer-label { font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: #9EA1B8; margin-bottom: 1rem; }
.footer-chips { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 2.4rem; }
.fchip { display: inline-block; font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; padding: .6rem 1.2rem; border-radius: 999px; border: 2px solid var(--white); color: var(--white); transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease); }
.fchip:hover { transform: translateY(-3px) rotate(-2deg); color: var(--ink); }
.fchip-gunpla:hover { background: var(--gunpla); border-color: var(--gunpla); }
.fchip-lego:hover { background: var(--lego); border-color: var(--lego); }
.fchip-tcg:hover { background: var(--tcg); border-color: var(--tcg); }
.fchip-le-blog:hover { background: var(--white); }

.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; }
.footer-links a { font-size: 1rem; border-bottom: 2px solid #4A4E68; padding-bottom: 2px; transition: border-color var(--ease), color var(--ease); }
.footer-links a:hover { color: var(--lego); border-color: var(--lego); }

.footer-giant { position: absolute; left: 0; right: 0; top: clamp(2.6rem, 4.6vw, 4.2rem); z-index: -1; margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(3.5rem, 15.5vw, 14rem); line-height: .82; letter-spacing: -0.05em; text-align: center; white-space: nowrap; color: #1F2236; pointer-events: none; user-select: none; }

.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1rem 0 1.8rem; font-size: .85rem; color: #9EA1B8; }
.footer-bottom ul { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--lego); }

/* ---------- Pages internes (provisoire, validé après la homepage) ---------- */
.page-head { padding: 3.5rem 0 2rem; }
.page-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
/* Pages avec pastilles de filtre (blog et univers) : même hauteur d'en-tête pour que les pastilles ne bougent pas d'une page à l'autre. La hauteur réservée est celle de l'illustration (--art, carrée, plafonnée à la hauteur du bloc de texte pour ne pas agrandir l'en-tête) et de deux lignes de description : le blog et les trois univers restent alignés quelle que soit la taille d'écran. */
.page-head-filtered { --art: clamp(110px, 16vw, 180px); }
@media (min-width: 900px) { .page-head-filtered .page-head-inner { min-height: var(--art); align-items: flex-start; } .page-head-filtered .page-art { align-self: center; } .page-head-filtered .page-head-inner p:not(.eyebrow) { min-height: calc(2 * 1.1rem * 1.65); min-height: 2lh; } }
.page-art { flex: 0 0 auto; width: var(--art, clamp(140px, 22vw, 240px)); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .8rem; }
.page-head p { color: var(--muted); max-width: 40rem; font-size: 1.1rem; }
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-bottom: 5rem; }
.card { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--ease), box-shadow var(--ease); }
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.card-cover { border-bottom: 2px solid var(--ink); }
.card-cover img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; height: auto; }
.card-body { padding: 1.3rem; }
.card-body h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.card-body p:not(.meta) { color: var(--muted); font-size: .95rem; }

.article { width: min(760px, 100% - 2rem); margin-inline: auto; padding: 3.5rem 0 5rem; }
.article h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.article .lead { font-size: 1.2rem; color: var(--muted); margin-bottom: 2rem; }
.prose > * + * { margin-top: 1.2rem; }
.prose h2 { font-size: 1.8rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8rem; }
.prose ul { list-style: disc; padding-left: 1.4rem; }
.prose ol { list-style: decimal; padding-left: 1.4rem; }
.prose a { text-decoration: underline; text-decoration-color: var(--gunpla); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 2px solid var(--ink); padding: .6rem .8rem; text-align: left; }
.prose th { background: var(--bg-alt); }

/* ---------- Filtres, pagination, termes ---------- */
.filter { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter-chip { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-heading); font-weight: 600; font-size: .95rem; padding: .45rem 1rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); transition: transform var(--ease), box-shadow var(--ease), background var(--ease); }
.filter-chip span { font-family: var(--font-mono); font-size: .75rem; opacity: .7; }
.filter-chip:hover { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--ink); }
.filter-gunpla:hover { background: var(--gunpla); }
.filter-lego:hover { background: var(--lego); }
.filter-tcg:hover { background: var(--tcg); }
.filter-chip.is-active { background: var(--ink); color: var(--white); }
@media (max-width: 600px) {
    /* Mobile : les pastilles restent sur une seule ligne, avec défilement horizontal si l'écran est vraiment étroit. */
    .filter { flex-wrap: nowrap; gap: .4rem; overflow-x: auto; scrollbar-width: none; margin-inline: -1rem; padding-inline: 1rem; }
    .filter::-webkit-scrollbar { display: none; }
    .filter-chip { flex: 0 0 auto; gap: .35rem; font-size: .85rem; padding: .4rem .7rem; }
    .filter-chip span { font-size: .7rem; }
}
.empty { padding: 3rem 0 6rem; color: var(--muted); }
.list-grid-flush { padding-bottom: 0; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; padding: 0 0 5rem; }
.page-link { font-family: var(--font-heading); font-weight: 600; padding: .55rem 1rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); }
.page-link.is-active { background: var(--ink); color: var(--white); }

.terms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-bottom: 5rem; }
.term-card { display: flex; flex-direction: column; gap: .7rem; min-height: 260px; padding: 1.8rem; border: 2px solid var(--ink); border-radius: 26px; box-shadow: var(--shadow); transition: transform var(--ease), box-shadow var(--ease); }
.term-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.term-card h2 { font-size: 2.4rem; }
.term-gunpla { background: var(--gunpla); }
.term-lego { background: var(--lego); }
.term-tcg { background: var(--tcg); }
.term-card .tile-foot { margin-top: auto; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .6rem; padding-bottom: 5rem; }

/* ---------- Article ---------- */
.breadcrumb { padding: 1.4rem 0 .5rem; font-size: .85rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

.post-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 1.5rem 0 3rem; }
.post-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin: .4rem 0 1rem; }
.post-hero .meta { margin-bottom: .6rem; }
.post-hero .lead { font-size: 1.2rem; color: var(--ink-soft); }
.byline { margin-top: 1.2rem; font-size: .9rem; color: var(--muted); }
.byline span { margin-left: .8rem; }
.post-cover { border: 2px solid var(--ink); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--white); }
.post-cover img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; height: auto; }
.post-cover figcaption { font-size: .78rem; font-style: italic; color: var(--muted); padding: .5rem .9rem; border-top: 2px solid var(--ink); }

.post-layout { max-width: 760px; margin-inline: auto; }
.post-layout.has-toc { max-width: none; display: grid; grid-template-columns: 240px minmax(0, 760px); justify-content: center; gap: 3.5rem; align-items: start; }
.post-aside { position: sticky; top: 96px; }
.toc { background: var(--white); border: 2px solid var(--ink); border-radius: 18px; padding: 1.2rem; font-size: .92rem; }
.toc-title { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .7rem; }
.toc ol { list-style: none; }
.toc ol ol { padding-left: .9rem; margin-top: .2rem; }
.toc a { display: block; padding: .3rem .6rem; border-left: 3px solid transparent; color: var(--ink-soft); line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { border-left-color: var(--gunpla); color: var(--ink); font-weight: 600; }

.prose { font-size: 1.08rem; }
.prose h2, .prose h3 { scroll-margin-top: 100px; }
.prose blockquote { border-left: 6px solid var(--lego); background: var(--white); padding: 1rem 1.3rem; border-radius: 0 14px 14px 0; }
.prose blockquote p + p { margin-top: .6rem; }
.prose img { border: 2px solid var(--ink); border-radius: 16px; }
.prose hr { border: 0; border-top: 2px solid var(--ink); }
.prose strong { font-weight: 600; }

.faq h2 { font-size: 1.8rem; margin: 3rem 0 1.2rem; }
.faq details { background: var(--white); border: 2px solid var(--ink); border-radius: 16px; padding: 1rem 1.2rem; margin-bottom: .8rem; }
.faq summary { cursor: pointer; font-family: var(--font-heading); font-weight: 600; font-size: 1.08rem; }
.faq details[open] summary { margin-bottom: .6rem; }
.faq details p { color: var(--ink-soft); }

.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0; }
.author-box { display: flex; gap: 1rem; align-items: flex-start; background: var(--bg-alt); border: 2px solid var(--ink); border-radius: 20px; padding: 1.4rem; margin-top: 2rem; font-size: .96rem; }
.author-box .brand-mark { width: 52px; height: 52px; flex: 0 0 auto; }
.author-box a { text-decoration: underline; text-underline-offset: 3px; }
.author-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; margin-bottom: .2rem; }

.related { padding: 4rem 0 1rem; }
.related h2 { font-size: 2rem; margin-bottom: 1.5rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 2rem 0 5rem; }
.post-nav a { display: block; background: var(--white); border: 2px solid var(--ink); border-radius: 16px; padding: 1rem 1.2rem; font-family: var(--font-heading); font-weight: 600; transition: transform var(--ease), box-shadow var(--ease); }
.post-nav a:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.post-nav span { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .2rem; }
.post-nav-next { text-align: right; grid-column: 2; }

/* ---------- Pages génériques, plan du site, 404 ---------- */
.page-body { width: min(760px, 100% - 2rem); margin-inline: auto; padding: 1rem 0 5rem; }
.sitemap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.2rem 3rem; padding-bottom: 5rem; }
.sitemap h2 { font-size: 1.4rem; margin-bottom: .6rem; }
.sitemap li { padding: .4rem 0; border-bottom: 1px solid #DADAE6; }
.sitemap li a:hover { text-decoration: underline; }
.sitemap time { color: var(--muted); font-size: .8rem; margin-left: .6rem; }
.error-page { padding: 5rem 0 6rem; text-align: center; }
.error-code { font-family: var(--font-heading); font-weight: 800; font-size: clamp(6rem, 20vw, 12rem); line-height: .9; text-shadow: 6px 6px 0 var(--lego); }
.error-page h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 1rem 0 .8rem; }
.error-page p:not(.error-code) { color: var(--muted); }
.error-page .hero-actions { justify-content: center; margin-top: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .main-nav, .header-cta { display: none; }
    .menu-toggle { display: flex; }
    .nav-mobile { border-top: 2px solid var(--ink); background: var(--bg); padding: 1rem; flex-direction: column; gap: .4rem; }
    .nav-mobile.open { display: flex; }
    .nav-mobile a:not(.btn) { font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; padding: .7rem .4rem; border-bottom: 1px solid #DADAE6; }
    .nav-mobile .btn { margin-top: .6rem; }

    .hero { padding: 2.5rem 0 3rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-art { max-width: 460px; }

    .section { padding: 4rem 0; }
    .bento { grid-template-columns: 1fr; }
    .tile-gunpla, .tile-lego, .tile-tcg, .tile-next { grid-area: auto; }
    .tile-gunpla { min-height: 380px; }
    .feed { grid-template-columns: 1fr; }
    .starts { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; gap: 2.5rem; }
    .site-footer { border-radius: 28px 28px 0 0; }
    .list-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    body { font-size: 1rem; }
    .list-grid { grid-template-columns: 1fr; }
    .row { grid-template-columns: 110px 1fr; }
    .hero-actions .btn { width: 100%; }
    .tile-art { width: 70%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 980px) {
    .post-hero { grid-template-columns: 1fr; gap: 2rem; }
    .post-layout.has-toc { grid-template-columns: 1fr; gap: 2rem; }
    .post-aside { position: static; }
    .terms-grid { grid-template-columns: 1fr; }
    .sitemap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .post-nav { grid-template-columns: 1fr; }
    .post-nav-next { grid-column: auto; }
}

@media (max-width: 980px) {
    .feed { align-items: start; }
    .feed-list { grid-auto-rows: auto; }
}
@media (max-width: 760px) {
    .footer-giant { top: 4.2rem; }
}
@media (max-width: 560px) {
    .footer-chips { gap: .5rem; margin-bottom: 1.8rem; }
    .fchip { font-size: 1rem; padding: .45rem .95rem; }
}
