/*
Theme Name: Pêche Bar
Theme URI: https://peche-bar.com
Description: Thème WordPress pour la pêche du bar aux leurres. Navigation en pastilles, recherche live, accueil en sections, classement de leurres, fiches produit affiliées.
Version: 1.0
Author: Pêche Bar
License: GNU General Public License v2
Text Domain: peche-bar
*/

:root {
    --lagoon: #0f6f75;
    --lagoon-dark: #0a5057;
    --lagoon-soft: #e3f0ef;
    --coral: #e05e3d;
    --ink: #1b2422;
    --ink-soft: #55635f;
    --sand: #faf6ef;
    --sand-deep: #f2ebe0;
    --line: #e2dacd;
    --white: #ffffff;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --r-sm: 6px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(27,36,34,.06);
    --shadow-md: 0 14px 34px rgba(15,111,117,.14);
    --max-width: 1240px;
    --header-h: 132px;
    --sp-sm: 8px; --sp-md: 16px; --sp-lg: 24px; --sp-xl: 40px; --sp-2xl: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--sand); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--lagoon-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--coral); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--sp-lg); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.pbr-icon { display: block; flex-shrink: 0; }

/* ═══ EN-TÊTE CLAIR ═══ */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250,246,239,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(27,36,34,.07); }

.site-header__bar { display: flex; align-items: center; gap: var(--sp-lg); padding: 14px var(--sp-lg) 10px; }
.site-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-logo__text { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.site-logo__tagline { font-size: .6875rem; color: var(--lagoon); letter-spacing: .16em; text-transform: uppercase; margin-top: 4px; }
.site-header__search { flex: 1; display: flex; justify-content: flex-end; }
.site-header__search .pbr-search { max-width: 380px; }

.search-toggle { display: none; margin-left: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill); width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--lagoon); cursor: pointer; }
.search-toggle__close { display: none; }
.is-search-open .search-toggle__open { display: none; }
.is-search-open .search-toggle__close { display: block; }

/* Rubriques en pastilles */
.cat-nav { padding-bottom: 10px; }
.cat-nav__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; padding: 2px 0; }
.cat-nav__list::-webkit-scrollbar { display: none; }
.cat-nav__item { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); color: var(--ink-soft); font-size: .8125rem; font-weight: 600; white-space: nowrap; transition: all .2s; }
.cat-nav__icon { color: var(--lagoon); display: flex; }
.cat-nav__item:hover { border-color: var(--lagoon); color: var(--lagoon-dark); }
.cat-nav__item.is-active { background: var(--lagoon); border-color: var(--lagoon); color: #fff; }
.cat-nav__item.is-active .cat-nav__icon { color: #fff; }

@media (max-width: 900px) {
    :root { --header-h: 118px; }
    .site-header__search { display: none; position: absolute; left: 0; right: 0; top: 66px; padding: 10px var(--sp-md); background: var(--sand); border-bottom: 1px solid var(--line); z-index: 5; }
    .site-header__search .pbr-search { max-width: none; }
    .is-search-open .site-header__search { display: block; }
    .search-toggle { display: flex; }
    .cat-nav__list { mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 20px; }
}

/* ═══ RECHERCHE ═══ */
.pbr-search { position: relative; width: 100%; display: flex; align-items: center; }
.pbr-search input[type="search"] { width: 100%; padding: 11px 46px 11px 18px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); color: var(--ink); font-size: .9375rem; font-family: inherit; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.pbr-search input[type="search"]::placeholder { color: #9aa6a2; }
.pbr-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.pbr-search input[type="search"]:focus { border-color: var(--lagoon); box-shadow: 0 0 0 4px rgba(15,111,117,.12); }
.pbr-search__btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--lagoon); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.pbr-search__btn:hover { background: var(--coral); }

.pbr-search--hero { max-width: 620px; margin: 0 auto; }
.pbr-search--hero input[type="search"] { padding: 18px 64px 18px 24px; font-size: 1.0625rem; border-color: transparent; box-shadow: 0 14px 36px rgba(10,80,87,.28); }
.pbr-search--hero .pbr-search__btn { width: 48px; height: 48px; right: 6px; background: var(--coral); }
.pbr-search--page { margin-top: var(--sp-lg); max-width: 560px; }

.pbr-search__suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--white); border-radius: var(--r-md); box-shadow: 0 18px 44px rgba(27,36,34,.16); border: 1px solid var(--line); max-height: 70vh; overflow-y: auto; z-index: 50; padding: 6px; text-align: left; }
.pbr-suggest__group { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); padding: 10px 10px 4px; }
.pbr-suggest__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink); }
.pbr-suggest__item:hover, .pbr-suggest__item.is-active { background: var(--lagoon-soft); color: var(--lagoon-dark); }
.pbr-suggest__item img, .pbr-suggest__ph { width: 48px; height: 48px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0; background: linear-gradient(135deg, var(--lagoon-dark), var(--lagoon)); }
.pbr-suggest__text { display: flex; flex-direction: column; min-width: 0; }
.pbr-suggest__title { font-size: .875rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pbr-suggest__meta { font-size: .75rem; color: var(--ink-soft); }
.pbr-suggest__meta b { color: var(--coral); }
.pbr-suggest__item--cat { justify-content: space-between; }
.pbr-suggest__none { padding: 16px; font-size: .875rem; color: var(--ink-soft); text-align: center; }
.pbr-suggest__all { display: block; width: 100%; margin-top: 4px; padding: 10px; border: none; border-top: 1px solid var(--line); background: none; color: var(--lagoon-dark); font-weight: 700; font-size: .8125rem; cursor: pointer; }
.pbr-suggest__all:hover { background: var(--lagoon-soft); }

/* ═══ HERO ═══ */
.hero { background: radial-gradient(120% 140% at 50% 0%, #14848b 0%, var(--lagoon-dark) 55%, #073c42 100%); padding: 62px var(--sp-lg) 78px; text-align: center; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 42px; background: var(--sand); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero__label { display: inline-block; padding: 6px 16px; border-radius: var(--r-pill); background: rgba(255,255,255,.14); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: #fff; line-height: 1.12; max-width: 760px; margin: 0 auto 14px; letter-spacing: -.025em; }
.hero__desc { font-size: 1.0625rem; color: #cbe4e3; max-width: 600px; margin: 0 auto 28px; }
@media (max-width: 768px) { .hero { padding: 38px var(--sp-md) 60px; } .hero h1 { font-size: 1.95rem; } .hero__desc { font-size: .9375rem; } }

/* ═══ BOUTONS ═══ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: var(--r-pill); font-weight: 700; font-size: .9375rem; border: none; cursor: pointer; transition: all .2s; line-height: 1.4; }
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 6px 18px rgba(224,94,61,.3); }
.btn--primary:hover { background: #ee6f4e; color: #fff; transform: translateY(-1px); }
.btn:disabled { opacity: .7; cursor: default; transform: none; }

/* ═══ STATS ═══ */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: -26px; position: relative; z-index: 10; box-shadow: var(--shadow-md); }
.stats-bar__item { padding: 18px 12px; text-align: center; border-right: 1px solid var(--line); }
.stats-bar__item:last-child { border-right: none; }
.stats-bar__value { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; color: var(--lagoon-dark); display: block; line-height: 1.2; }
.stats-bar__label { font-size: .7rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 768px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } .stats-bar__item:nth-child(2) { border-right: none; } .stats-bar__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ═══ STRUCTURE : colonne latérale à gauche ═══ */
.site-content { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--sp-xl); align-items: start; padding: var(--sp-xl) 0 var(--sp-2xl); }
.site-content--home { padding-top: var(--sp-lg); }
.content-main { order: 2; }
.sidebar { order: 1; position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: var(--sp-lg); }
.page-content { max-width: 800px; margin: 0 auto; padding: var(--sp-xl) 0 var(--sp-2xl); }
@media (max-width: 1040px) { .site-content { grid-template-columns: 1fr; } .content-main { order: 1; } .sidebar { order: 2; position: static; } }

.section-header { margin-bottom: var(--sp-lg); }
.section-header h2 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.section-header__line { display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--coral); margin-top: 10px; }
.section-header--row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-md); }
.section-header__more { font-size: .875rem; font-weight: 700; white-space: nowrap; padding-bottom: 6px; }
@media (max-width: 600px) { .section-header h2 { font-size: 1.35rem; } }

.home-latest { padding-top: var(--sp-xl); }
.home-section + .home-section { margin-top: var(--sp-2xl); }

.carousel-nav { display: flex; gap: 8px; }
.carousel-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--lagoon-dark); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; }
.carousel-btn:hover:not(:disabled) { background: var(--lagoon); border-color: var(--lagoon); color: #fff; }
.carousel-btn:disabled { opacity: .35; cursor: default; }

.carousel { position: relative; margin: 0 calc(var(--sp-lg) * -1); }
.carousel__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--sp-lg); padding: 6px var(--sp-lg) 20px; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.card--slide { flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start; }
.card--slide .card__thumb { height: 172px; }
@media (max-width: 1040px) { .card--slide { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 600px) { .card--slide { flex-basis: 84%; } .carousel-nav { display: none; } }

/* ═══ BADGES ═══ */
.cat-badge { display: inline-block; padding: 3px 11px; border-radius: var(--r-pill); font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--lagoon); line-height: 1.5; }
a.cat-badge:hover { color: #fff; filter: brightness(1.1); }
.cat-badge--leurres-souples { background: var(--lagoon); }
.cat-badge--leurres-de-surface { background: var(--coral); }
.cat-badge--leurres-durs { background: #3f7fa1; }
.cat-badge--cannes { background: #6b6f8f; }
.cat-badge--moulinets { background: #4f7d5f; }
.cat-badge--accessoires { background: #8a7351; }
.cat-badge--tests { background: var(--lagoon-dark); }
.cat-badge--comparatifs { background: #b45a2b; }
.cat-badge--techniques { background: #2c6f78; }
.cat-badge--tout-savoir-sur-le-bar { background: var(--ink); }
.cat-badge--default { background: var(--ink-soft); }

/* ═══ CARTES ═══ */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card > a { color: inherit; display: flex; flex-direction: column; height: 100%; }
.card__thumb { height: 192px; background: linear-gradient(140deg, var(--lagoon-dark), var(--lagoon)); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; color: rgba(255,255,255,.5); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__thumb img { transform: scale(1.05); }
.card__score { position: absolute; top: 12px; right: 12px; background: var(--white); color: var(--lagoon-dark); padding: 4px 11px; border-radius: var(--r-pill); font-size: .9375rem; font-weight: 700; font-family: var(--font-display); box-shadow: var(--shadow-sm); }
.card__score small { font-size: .65rem; opacity: .7; }
.card__body { padding: 17px 21px 19px; display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; gap: 8px; align-items: center; margin-bottom: 9px; flex-wrap: wrap; }
.card__meta > span:not(.cat-badge) { font-size: .75rem; color: var(--ink-soft); }
.card__title { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 8px; letter-spacing: -.01em; }
.card:hover .card__title { color: var(--lagoon-dark); }
.card__excerpt { font-size: .875rem; color: var(--ink-soft); line-height: 1.6; margin-bottom: 12px; }
.card__footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.card__date { font-size: .75rem; color: var(--ink-soft); }
.card__read-more { font-size: .8125rem; color: var(--coral); font-weight: 700; }

.articles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 680px) { .articles-grid { grid-template-columns: 1fr; } }

/* ═══ WIDGETS ═══ */
.widget { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; }
.widget__title { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.widget__intro { font-size: .8125rem; color: var(--ink-soft); margin-bottom: 12px; }
.widget__empty { font-size: .8rem; color: var(--ink-soft); text-align: center; padding: 12px 0; }
.widget__empty--error { color: #b3261e; }
.widget__legal { font-size: .7rem; color: var(--ink-soft); margin-top: 8px; }

.widget--ranking { background: var(--lagoon-soft); border-color: #cfe4e2; }
.rank-list-wrap { max-height: 320px; overflow-y: auto; scrollbar-width: thin; transition: max-height .4s ease; }
.rank-list-wrap.rank-expanded { max-height: 2000px; }
.rank-list-wrap::-webkit-scrollbar { width: 5px; }
.rank-list-wrap::-webkit-scrollbar-thumb { background: #b9d5d3; border-radius: 4px; }
.rank-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(15,111,117,.12); }
.rank-item:last-child { border-bottom: none; }
.rank-pos { font-size: 1rem; min-width: 26px; text-align: center; color: var(--lagoon-dark); font-weight: 700; }
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-size: .8125rem; font-weight: 600; color: var(--ink); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.rank-name:hover { color: var(--coral); text-decoration: underline; text-underline-offset: 2px; }
.rank-rating { font-size: .7rem; color: var(--coral); font-weight: 700; }
.rank-vote-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--white); border: 1px solid #cfe4e2; border-radius: var(--r-md); padding: 6px 9px; cursor: pointer; transition: all .2s; min-width: 46px; }
.rank-vote-btn:hover { border-color: var(--coral); }
.rank-vote-btn:disabled { opacity: .6; cursor: wait; }
.rank-item--voted .rank-vote-btn { border-color: var(--coral); background: rgba(224,94,61,.1); }
.rank-vote-icon { font-size: .95rem; line-height: 1; }
.rank-vote-count { font-size: .7rem; font-weight: 700; color: var(--ink); }
.rank-toggle { display: none; width: 100%; padding: 8px; margin-top: 8px; background: var(--white); border: none; border-radius: var(--r-pill); font-size: .8rem; font-weight: 700; color: var(--lagoon-dark); cursor: pointer; }
.rank-toggle:hover { color: var(--coral); }
.rank-toggle.rank-visible { display: block; }

.widget--email { background: var(--ink); border-color: var(--ink); }
.widget--email .widget__title { color: #fff; }
.widget--email .widget__intro, .widget--email .widget__legal { color: #a8b5b1; }
.pbr-email-input { width: 100%; padding: 12px 16px; border: 1px solid #3a4644; border-radius: var(--r-pill); background: rgba(255,255,255,.07); color: #fff; font-size: .875rem; font-family: inherit; margin-bottom: 8px; outline: none; }
.pbr-email-input::placeholder { color: #8d9a96; }
.pbr-email-input:focus { border-color: var(--coral); }
.pbr-email-submit { width: 100%; }
.pbr-email-msg { font-size: .8rem; margin-top: 8px; text-align: center; }
.pbr-email-msg.is-ok { color: #8fd0c4; }
.pbr-email-msg.is-error { color: #ff9c8a; }

/* ═══ FICHE PRODUIT ═══ */
.product-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.product-card--sidebar { border-top: 4px solid var(--coral); }
.product-card--inline { margin: var(--sp-xl) 0 0; display: grid; grid-template-columns: 250px 1fr; align-items: start; border-top: 4px solid var(--coral); }
@media (max-width: 680px) { .product-card--inline { grid-template-columns: 1fr; } }
.product-card__img { background: var(--sand-deep); display: flex; align-items: center; justify-content: center; padding: 16px; }
.product-card__img img { max-height: 240px; width: auto; object-fit: contain; }
.product-card__body { padding: 18px 20px 20px; }
.product-card__brand { font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lagoon); }
.product-card__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--ink); line-height: 1.3; margin: 4px 0 8px; }
.product-card__rating { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.product-card__rating b { font-size: 1rem; color: var(--ink); }
.product-card__rating span:last-child { font-size: .75rem; color: var(--ink-soft); }
.stars { position: relative; display: inline-block; color: var(--line); letter-spacing: 2px; font-size: 1rem; }
.stars::before { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--rate, 0%); overflow: hidden; color: var(--coral); letter-spacing: 2px; }
.product-card__verdict { font-size: .9375rem; color: var(--ink); margin-bottom: 12px; font-style: italic; }
.product-card__specs { list-style: none; margin: 0 0 12px; font-size: .8125rem; color: var(--ink-soft); }
.product-card__specs li { padding: 4px 0 4px 14px; position: relative; border-bottom: 1px dashed var(--line); }
.product-card__specs li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; background: var(--lagoon); border-radius: 50%; }
.product-card__pros { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: .8125rem; }
.product-card__pros .pro { color: #2d6b52; }
.product-card__pros .con { color: #a8442f; }
.product-card__foot { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.product-card__price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--lagoon-dark); }
.product-card__stock { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); }
.product-card__stock.is-in { background: rgba(45,107,82,.12); color: #2d6b52; }
.product-card__stock.is-out { background: rgba(168,68,47,.12); color: #a8442f; }
.product-card__cta { width: 100%; }
.product-card__legal { display: block; font-size: .6875rem; color: var(--ink-soft); margin-top: 8px; text-align: center; }

/* ═══ ARTICLE ═══ */
.breadcrumb { font-size: .8125rem; color: var(--ink-soft); margin-bottom: 12px; }
.breadcrumb a { color: var(--ink-soft); }
.single-article__header { margin-bottom: var(--sp-lg); }
.single-article__meta { display: flex; gap: 12px; align-items: center; margin-bottom: var(--sp-md); flex-wrap: wrap; }
.single-article__meta > span { font-size: .8125rem; color: var(--ink-soft); }
.single-article__meta .single-article__rating { color: var(--coral); font-weight: 700; }
.single-article h1 { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; color: var(--ink); line-height: 1.2; letter-spacing: -.025em; }
@media (max-width: 600px) { .single-article h1 { font-size: 1.65rem; } }
.single-article__thumb { width: 100%; aspect-ratio: 2 / 1; border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--sp-xl); background: var(--lagoon-dark); }
.single-article__thumb img { width: 100%; height: 100%; object-fit: cover; }
.single-article__content { font-size: 1.0625rem; line-height: 1.82; color: #3a4744; }
.single-article__content h2 { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; color: var(--ink); line-height: 1.28; margin: 2.4rem 0 1rem; }
.single-article__content h2::after { content: ""; display: block; width: 36px; height: 3px; border-radius: 3px; background: var(--coral); margin-top: 10px; }
.single-article__content h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); margin: 1.9rem 0 .8rem; }
.single-article__content h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--ink); margin: 1.4rem 0 .7rem; }
.single-article__content p { margin-bottom: 1.2rem; }
.single-article__content ul, .single-article__content ol { margin: 0 0 1.2rem 1.4rem; }
.single-article__content li { margin-bottom: .4rem; }
.single-article__content a { color: var(--lagoon-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.single-article__content a:hover { color: var(--coral); }
.single-article__content strong { color: var(--ink); }
.single-article__content img { border-radius: var(--r-md); margin: 1.5rem 0; }
.single-article__content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9375rem; display: block; overflow-x: auto; }
.single-article__content th, .single-article__content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.single-article__content th { background: var(--lagoon-soft); color: var(--lagoon-dark); }
.single-article__content blockquote { border-left: 4px solid var(--lagoon); padding: 6px 0 6px 18px; margin: 1.5rem 0; font-style: italic; color: var(--ink); }

.tags { margin-top: 2rem; display: flex; gap: 8px; flex-wrap: wrap; }
.tags a { padding: 5px 14px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); color: var(--ink-soft); font-size: .8125rem; font-weight: 600; }
.post-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: var(--sp-xl); padding-top: var(--sp-lg); border-top: 1px solid var(--line); }
.post-nav a { padding: 11px 22px; border-radius: var(--r-pill); font-weight: 600; font-size: .875rem; border: 1px solid var(--lagoon); color: var(--lagoon-dark); }
.post-nav a:hover { background: var(--lagoon); color: #fff; }

/* ═══ ARCHIVES ═══ */
.archive-header { padding-bottom: var(--sp-lg); }
.archive-header__icon { width: 54px; height: 54px; border-radius: 50%; background: var(--lagoon); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.archive-header h1 { font-family: var(--font-display); font-size: 2.15rem; font-weight: 700; color: var(--ink); line-height: 1.2; letter-spacing: -.02em; }
.archive-header p, .archive-header__desc { font-size: 1rem; color: var(--ink-soft); margin-top: 8px; max-width: 680px; }
.archive-header .section-header__line { margin-top: 14px; }
@media (max-width: 600px) { .archive-header h1 { font-size: 1.6rem; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-lg); }
.chip { padding: 7px 16px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); color: var(--ink); font-size: .8125rem; font-weight: 600; }
.chip span { color: var(--ink-soft); font-weight: 400; margin-left: 2px; }
.chip:hover { border-color: var(--lagoon); color: var(--lagoon-dark); }
.chip.is-active { background: var(--lagoon); border-color: var(--lagoon); color: #fff; }
.chip.is-active span { color: rgba(255,255,255,.75); }

.empty-state { text-align: center; color: var(--ink-soft); padding: 32px 0; }
.empty-state p { max-width: 540px; margin: 0 auto var(--sp-lg); }
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: var(--sp-lg); }
.cat-grid__item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); font-weight: 600; font-size: .8125rem; transition: all .2s; }
.cat-grid__item .cat-nav__icon { color: var(--lagoon); }
.cat-grid__item:hover { border-color: var(--lagoon); transform: translateY(-2px); }
@media (max-width: 600px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.page-404 { text-align: center; }
.page-404 h1 { font-family: var(--font-display); font-size: 2.2rem; margin-bottom: 12px; color: var(--ink); }
.page-404 p { color: var(--ink-soft); }
.page-404 .pbr-search--page { margin: var(--sp-lg) auto 0; }

/* ═══ PAGINATION ═══ */
.pagination { margin-top: var(--sp-xl); }
.pagination .nav-links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 9px 16px; border-radius: var(--r-pill); font-size: .875rem; font-weight: 600; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.pagination a:hover { background: var(--lagoon); color: #fff; border-color: var(--lagoon); }
.pagination span.current { background: var(--lagoon); color: #fff; border-color: var(--lagoon); }

/* ═══ FOOTER ═══ */
.site-footer { background: var(--ink); padding: 46px 0 22px; margin-top: var(--sp-2xl); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-xl); margin-bottom: var(--sp-xl); }
.footer__brand .site-logo__text { color: #fff; }
.footer__brand p { font-size: .875rem; color: #a8b5b1; line-height: 1.7; max-width: 280px; margin-top: var(--sp-md); }
.footer__col h5 { color: #8fd0c4; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: var(--sp-md); }
.footer__col a { display: block; font-size: .875rem; color: #a8b5b1; margin-bottom: 9px; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; font-size: .8125rem; color: #8d9a96; }
@media (max-width: 768px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } .footer__bottom { flex-direction: column; text-align: center; } }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
