/* Feuille de style du site (V2, direction C, accent moderne) */

:root {
    --accent: #2563eb;
    --accent-soft: #e6effa;
    --bg: #f5f5f0;
    --ink: #181826;
    --ink-soft: #54546a;
    --ink-muted: #9090a3;
    --border: #e8e6f0;
    --surface: #fff;
    --surface-soft: #f4f3f8;
    --shell-max: 1240px;
    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --logo-height: 36px;
}

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

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ============ HEADER ============ */
.site-header {
    padding: 18px 28px;
    position: relative;
    z-index: 100;
    background: var(--bg);
}

.header-pill {
    max-width: var(--shell-max);
    margin: 0 auto;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-logo img { height: var(--logo-height); width: auto; }
.site-logo:hover { text-decoration: none; }
.site-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.04em;
}

.site-nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
    align-items: center;
}

.nav-chip {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    background: transparent;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.nav-chip:hover {
    background: var(--accent-soft);
    color: var(--accent);
    text-decoration: none;
}
.nav-chip.active {
    background: var(--accent);
    color: #fff;
}
.nav-chip.active:hover {
    opacity: 0.92;
    text-decoration: none;
}

.header-search {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--surface-soft);
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--ink);
    flex-shrink: 0;
    margin-left: 8px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}
.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.2s;
}

@media (max-width: 768px) {
    .site-header { padding: 12px 16px; }
    .header-pill { padding: 8px 14px; gap: 12px; }
    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        background: var(--surface);
        flex-direction: column;
        padding: 8px;
        border-radius: 18px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        gap: 2px;
        z-index: 50;
    }
    .site-nav.open { display: flex; }
    .nav-chip { padding: 12px 16px; border-radius: 12px; width: 100%; }
    .header-search { margin-left: auto; }
    .mobile-menu-toggle { display: block; margin-left: 0; }
}

/* ============ SEARCH OVERLAY ============ */
.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}
.search-overlay.open { display: flex; }
.search-box {
    background: var(--surface);
    border-radius: 999px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 90%;
    max-width: 560px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
@media (max-width: 768px) {
    .search-overlay { padding-top: 24px; }
    .search-box { width: calc(100% - 32px); border-radius: 16px; padding: 12px 16px; }
}
.search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 17px;
    font-family: inherit;
    color: var(--ink);
    outline: none;
}
.search-input::placeholder { color: var(--ink-muted); }
.search-close {
    background: var(--surface-soft);
    border: none;
    font-size: 20px;
    color: var(--ink-soft);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    line-height: 1;
}
.search-close:hover { color: var(--ink); background: var(--border); }

/* ============ SEARCH RESULTS ============ */
.search-header {
    margin-bottom: 28px;
}
.search-header h1 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.search-header p {
    color: var(--ink-soft);
    font-size: 16px;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
    max-width: var(--shell-max);
    margin: 24px auto 0;
    padding: 0 28px;
}
.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-soft);
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb .sep { color: var(--ink-muted); display: flex; align-items: center; }
.breadcrumb .current {
    color: var(--ink);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
    display: inline-block;
    vertical-align: bottom;
}

@media (max-width: 768px) {
    .breadcrumb .current { max-width: 180px; }
}

@media (max-width: 768px) {
    .breadcrumb { padding: 0 16px; margin-top: 16px; }
}

/* ============ PAGE CONTAINER ============ */
.page-container {
    max-width: var(--shell-max);
    margin: 0 auto;
    padding: 20px 28px 40px;
}
.page-container.narrow { max-width: 880px; }
.page-container.narrower { max-width: 720px; }

@media (max-width: 768px) {
    .page-container { padding: 16px 16px 32px; }
}

/* ============ HOME HERO ============ */
.home-hero {
    max-width: var(--shell-max);
    margin: 0 auto;
    padding: 40px 28px 60px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--surface);
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 500;
    margin-bottom: 22px;
}
.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 60px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.02;
    margin: 0 0 18px;
    text-wrap: balance;
}
.hero-title .accent-words {
    color: var(--accent);
    font-style: italic;
    font-weight: 700;
}

.hero-desc {
    font-size: 18px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0 0 26px;
    max-width: 460px;
    text-wrap: pretty;
}

.hero-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.hero-cat-chip {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--surface);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: background 0.15s;
}
.hero-cat-chip:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.hero-cat-chip .count { color: var(--ink-muted); font-size: 11px; }

/* Featured card (hero right) */
.hero-featured {
    background: var(--surface);
    border-radius: 24px;
    padding: 12px;
    position: relative;
}
.hero-featured-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}
.hero-featured-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.hero-featured-body { padding: 18px 14px 12px; }
.hero-featured-cat {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.hero-featured-title {
    font-family: var(--font-display);
    margin: 8px 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-wrap: balance;
}
.hero-featured-title a { color: var(--ink); }
.hero-featured-title a:hover { color: var(--accent); text-decoration: none; }
.hero-featured-excerpt {
    margin: 0;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .home-hero { grid-template-columns: 1fr; padding: 24px 16px 40px; }
    .hero-title { font-size: 42px; }
}
@media (max-width: 720px) {
    .hero-title { font-size: 34px; }
}

/* ============ HOME SECTIONS ============ */
.home-sections {
    max-width: var(--shell-max);
    margin: 0 auto;
    padding: 0 28px 40px;
}
.section-group { margin-bottom: 48px; }
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 22px;
}
.section-title {
    font-family: var(--font-display);
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.025em;
}
.section-link {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.section-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .home-sections { padding: 0 16px 32px; }
    .section-title { font-size: 24px; }
}

/* ============ ARTICLE CARDS ============ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.article-card {
    background: var(--surface);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.card-image-wrap { padding: 8px; }
.card-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.card-body {
    padding: 8px 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-category {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
}
.card-category:hover { text-decoration: none; opacity: 0.85; }

.card-title {
    margin: 0;
    font-size: 18px;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    text-wrap: pretty;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); text-decoration: none; }

.card-excerpt {
    margin: 0;
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.55;
    text-wrap: pretty;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.card-meta-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-soft);
    flex-shrink: 0;
    overflow: hidden;
}
.card-meta-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-meta span {
    font-size: 12px;
    color: var(--ink-muted);
}

@media (max-width: 1024px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .articles-grid { grid-template-columns: 1fr; }
    .article-card { border-radius: 14px; }
}

/* ============ ARTICLE PAGE ============ */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: flex-start;
}

.article-panel {
    background: var(--surface);
    border-radius: 28px;
    padding: 40px 56px;
    min-width: 0;
    overflow: hidden;
}

.article-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
}
.article-badge:hover { text-decoration: none; opacity: 0.85; }

.article-panel h1 {
    font-family: var(--font-display);
    margin: 16px 0;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-wrap: balance;
}

.article-lead {
    font-size: 19px;
    color: var(--ink-soft);
    line-height: 1.5;
    margin: 0 0 24px;
    text-wrap: pretty;
}

.article-author-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}
.article-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--accent-soft);
    flex-shrink: 0;
    overflow: hidden;
}
.article-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-author-name { font-size: 14px; font-weight: 600; }
.article-author-meta { font-size: 12px; color: var(--ink-muted); }

.article-hero-img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 28px;
    display: block;
}

/* Article body content */
.content-block { font-size: 17px; line-height: 1.7; color: #2a2a3a; overflow-wrap: break-word; word-break: break-word; }
.content-block h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    margin: 32px 0 14px;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.2;
    text-wrap: balance;
}
.content-block h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin: 24px 0 10px;
    color: var(--ink);
}
.content-block p { margin-bottom: 18px; }
.content-block ul, .content-block ol { margin: 0 0 18px 24px; }
.content-block li { margin-bottom: 6px; }
.content-block a { color: var(--accent); text-decoration: underline; }
.content-block img { border-radius: 12px; margin: 16px 0; }

.content-block blockquote {
    background: var(--accent-soft);
    border-radius: 16px;
    padding: 22px;
    margin: 24px 0;
    border: none;
    border-left: 4px solid var(--accent);
    font-style: normal;
    color: var(--ink);
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
    border-radius: 14px;
    border: 1px solid var(--border);
}
.content-block table {
    width: 100%;
    min-width: 480px;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    border: none;
}
.content-block th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-right: 1px solid rgba(255,255,255,0.25);
    white-space: nowrap;
}
.content-block th:last-child { border-right: none; }
.content-block td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: var(--surface);
}
.content-block td:last-child { border-right: none; }
.content-block tr:last-child td { border-bottom: none; }
.content-block tr:hover td { background: var(--surface-soft); }

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 24px;
    align-self: flex-start;
}
.sidebar-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 28px 24px;
}
.sidebar-header {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.sidebar-header h3 {
    font-family: var(--font-display);
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.015em;
}
.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sidebar-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    align-items: center;
}
.sidebar-item:hover { text-decoration: none; }
.sidebar-item:hover h4 { color: var(--accent); }
.sidebar-item-img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--surface-soft);
}
.sidebar-item h4 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-wrap: pretty;
    transition: color 0.15s;
}
.sidebar-cat-link {
    display: block;
    margin-top: 22px;
    padding: 11px 16px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
.sidebar-cat-link:hover { opacity: 0.85; text-decoration: none; }

@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
}
@media (max-width: 768px) {
    .article-panel { padding: 24px 20px; border-radius: 20px; }
    .article-panel h1 { font-size: 32px; }
}

/* ============ CATEGORY PAGE ============ */
.category-panel {
    background: var(--surface);
    border-radius: 24px;
    padding: 36px 44px;
    margin-bottom: 28px;
}
.category-eyebrow {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.category-panel h1 {
    font-family: var(--font-display);
    margin: 8px 0;
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.category-subtitle {
    margin: 0;
    font-size: 16px;
    color: var(--ink-soft);
}
.category-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.category-chip {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    background: var(--accent-soft);
    color: var(--accent);
    text-decoration: none;
    transition: background 0.15s, opacity 0.15s;
}
.category-chip:hover { opacity: 0.85; text-decoration: none; }
.category-chip.active {
    background: var(--accent);
    color: #fff;
}

@media (max-width: 768px) {
    .category-panel { padding: 24px 20px; border-radius: 20px; }
    .category-panel h1 { font-size: 36px; }
}

/* ============ ABOUT PAGE ============ */
.about-panel {
    background: var(--surface);
    border-radius: 28px;
    padding: 52px 60px;
}
.about-panel h1 {
    font-family: var(--font-display);
    margin: 16px 0 18px;
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    text-wrap: balance;
}
.about-panel h1 .accent-word {
    color: var(--accent);
    font-style: italic;
}
.about-lead {
    font-size: 19px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0 0 36px;
    text-wrap: pretty;
}
.about-author-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 32px;
    align-items: center;
    background: var(--accent-soft);
    border-radius: 22px;
    padding: 26px 28px;
    margin-bottom: 36px;
}
.about-author-photo {
    border-radius: 999px;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.about-author-role {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.about-author-name {
    font-family: var(--font-display);
    margin: 4px 0 10px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.about-author-bio {
    margin: 0;
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.6;
}
.about-section h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    margin: 8px 0 12px;
    letter-spacing: -0.02em;
}
.about-section p {
    font-size: 16.5px;
    color: #2a2a3a;
    line-height: 1.7;
    margin: 0 0 20px;
}

@media (max-width: 768px) {
    .about-panel { padding: 28px 20px; border-radius: 20px; }
    .about-panel h1 { font-size: 32px; }
    .about-author-card { grid-template-columns: 1fr; text-align: center; }
    .about-author-photo { width: 120px; margin: 0 auto; }
}

/* ============ CONTACT PAGE ============ */
.contact-panel {
    background: var(--surface);
    border-radius: 28px;
    padding: 48px 52px;
}
.contact-panel h1 {
    font-family: var(--font-display);
    margin: 16px 0 14px;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
}
.contact-panel h1 .accent-word {
    color: var(--accent);
}
.contact-lead {
    font-size: 17px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0 0 32px;
}
.contact-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}
.contact-meta-item {
    flex: 1 1 180px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--accent-soft);
}
.contact-meta-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.contact-meta-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.contact-form input,
.contact-form textarea {
    padding: 13px 16px;
    border-radius: 14px;
    border: none;
    background: var(--surface-soft);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 0 2px var(--accent-soft);
}
.contact-form textarea { resize: vertical; }
.contact-form-submit {
    align-self: flex-start;
    padding: 13px 26px;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    margin-top: 8px;
    transition: opacity 0.15s;
}
.contact-form-submit:hover { opacity: 0.92; }

@media (max-width: 768px) {
    .contact-panel { padding: 28px 20px; border-radius: 20px; }
    .contact-panel h1 { font-size: 32px; }
    .contact-form-row { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
.site-footer {
    padding: 56px 28px 28px;
    margin-top: 56px;
}
.footer-card {
    max-width: var(--shell-max);
    margin: 0 auto;
    border-radius: 32px;
    background: var(--surface);
    padding: 44px 48px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
}
.footer-logo-desc p {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin: 14px 0 0;
    max-width: 320px;
}
.footer-col-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
}
.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.footer-list a {
    font-size: 14px;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-list a:hover { color: var(--accent); text-decoration: none; }
.footer-copyright {
    max-width: var(--shell-max);
    margin: 20px auto 0;
    text-align: center;
    font-size: 12px;
    color: var(--ink-muted);
}

@media (max-width: 768px) {
    .site-footer { padding: 32px 16px 16px; margin-top: 32px; }
    .footer-card { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; border-radius: 24px; }
}

/* ============ PAGINATION ============ */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
}
.pagination a {
    background: var(--surface);
    color: var(--ink-soft);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.pagination a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.pagination .current { background: var(--accent); color: #fff; }

/* ============ FLASH MESSAGES ============ */
.flash { padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; font-size: 0.9rem; }
.flash-success { background: #d1fae5; border: 1px solid #34d399; color: #065f46; }
.flash-error { background: #fee2e2; border: 1px solid #f87171; color: #991b1b; }

/* ============ BADGE PILL (shared) ============ */
.badge-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============ FAQ ============ */
.faq { margin: 32px 0; }
.faq details { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 8px; background: var(--surface); }
.faq summary { padding: 14px 18px; cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details > div, .faq details > p { padding: 14px 18px; font-size: 0.9rem; color: var(--ink-soft); }

/* ============ TOC ============ */
.toc-accordion { margin: 24px 0; background: var(--surface-soft); border-radius: 14px; border: 1px solid var(--border); }
.toc-accordion summary { padding: 14px 18px; font-weight: 600; cursor: pointer; }
.toc-accordion ol { padding: 0 18px 14px 36px; }
.toc-accordion li { margin-bottom: 4px; }
.toc-accordion a { font-size: 0.9rem; }

/* ============ SIMULATORS ============ */
.sim-wrapper { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; margin: 24px 0; }
.sim-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; color: var(--ink); }
.sim-body { margin-bottom: 16px; }
.sim-field { margin-bottom: 20px; }
.sim-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 2px; }
.sim-field input:not([type="radio"]):not([type="checkbox"]), .sim-field select {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 0.95rem;
}
.sim-field input[type="radio"], .sim-field input[type="checkbox"] { width: auto; margin-right: 8px; vertical-align: middle; }
.sim-btn { display: inline-block; padding: 10px 24px; background: var(--accent); color: #fff; border: none; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.sim-btn:hover { opacity: 0.9; }
.sim-result { margin-top: 16px; padding: 16px; background: var(--surface-soft); border-radius: 14px; border: 1px solid var(--border); }
.sim-result:empty { display: none; }

/* ============ AUTHOR BOX (in article) ============ */
.author-box {
    padding: 24px;
    background: var(--accent-soft);
    border-radius: 18px;
    margin: 32px 0;
    overflow: hidden;
}
.author-box .author-photo {
    float: right;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 0 12px 16px;
    border: 3px solid var(--surface);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.author-box-info strong { font-size: 15px; }
.author-box-info a { font-size: 13px; color: var(--accent); margin-left: 8px; }
@media (max-width: 768px) {
    .author-box-info a { display: block; margin-left: 0; margin-top: 4px; }
}
.author-box-info p { font-size: 14px; color: var(--ink-soft); margin: 4px 0 0; line-height: 1.5; }

/* ============ LEGAL PAGES ============ */
.page-panel {
    background: var(--surface);
    border-radius: 28px;
    padding: 40px 56px;
}
.page-panel h1 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.page-legal .content-block { max-width: none; }

@media (max-width: 768px) {
    .page-panel { padding: 24px 20px; border-radius: 20px; }
    .page-panel h1 { font-size: 28px; }
}

/* ============ EMPTY STATE ============ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-muted); }
.empty-state p { font-size: 1.1rem; margin-bottom: 12px; }

/* ============ 404 ============ */
.error-page {
    text-align: center;
    padding: 80px 20px;
}
.error-page h1 {
    font-family: var(--font-display);
    font-size: 80px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}
.error-page p {
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin-bottom: 24px;
}
.error-page .btn-back {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.15s;
}
.error-page .btn-back:hover { opacity: 0.92; text-decoration: none; }
