/* ─── Variables ──────────────────────────────────────────────────────────────── */

:root {
    /* Couleur principale — à surcharger par site */
    --color-primary:        #015A9B;
    --color-primary-dark:   #013069;
    --color-primary-mid:    #014886;
    --color-primary-light:  #E8F3FB;

    /* Couleur accent (CTA) */
    --color-accent:         #F9BE01;
    --color-accent-dark:    #FBCE01;

    /* Textes */
    --color-text:           #313131;
    --color-text-light:     #555555;
    --color-text-muted:     #888888;

    /* Fonds */
    --color-bg:             #FFFFFF;
    --color-bg-alt:         #F9F9F9;
    --color-bg-light:       #F5F5F5;

    /* Bordures */
    --color-border:         #E0E0E0;

    /* Sémantiques */
    --color-success:        #4CAF50;
    --color-error:          #D32F2F;
    --color-star:           #FFB800;

    /* Typographie */
    --font-base:            "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-size-sm:         14px;
    --font-size-base:       16px;
    --font-size-md:         18px;
    --font-size-lg:         20px;
    --font-size-xl:         24px;
    --font-size-2xl:        32px;
    --font-size-3xl:        42px;
    --line-height:          1.65;

    /* Espacements */
    --space-xs:             8px;
    --space-sm:             12px;
    --space-md:             20px;
    --space-lg:             32px;
    --space-xl:             48px;
    --space-2xl:            64px;

    /* Layout */
    --max-width:            1200px;
    --max-width-narrow:     820px;
    --header-height:        70px;
    --radius:               10px;
    --radius-sm:            6px;
    --radius-pill:          9999px;
    --shadow:               0 2px 10px rgba(0,0,0,0.08);
    --shadow-md:            0 4px 20px rgba(0,0,0,0.12);
}

/* ─── Reset ──────────────────────────────────────────────────────────────────── */

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

html { font-size: var(--font-size-base); scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.5em; }

/* ─── Hero section ───────────────────────────────────────────────────────────── */

.hero-section {
    background: var(--color-primary-dark);
    padding: var(--space-2xl) 0 var(--space-xl);
    text-align: center;
}

.hero-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: var(--font-size-md);
    color: rgba(255,255,255,.75);
    margin-bottom: var(--space-lg);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-search {
    max-width: 620px;
    margin: 0 auto var(--space-lg);
}

.search-form { width: 100%; }

.search-inner {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--radius-pill);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.25);
}

.search-field {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 20px;
    font-size: var(--font-size-base);
    font-family: var(--font-base);
    color: var(--color-text);
    background: transparent;
    min-width: 0;
}

.search-field::placeholder { color: var(--color-text-muted); }

.search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    font-weight: 700;
    font-size: var(--font-size-base);
    font-family: var(--font-base);
    border: none;
    padding: 14px 24px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
    flex-shrink: 0;
}

.search-btn:hover { background: var(--color-accent-dark); }

.hero-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 720px;
    margin: 0 auto;
}

.hero-cat-pill {
    display: inline-block;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}

.hero-cat-pill:hover {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.4);
    text-decoration: none;
    color: #fff;
}

@media (max-width: 768px) {
    .hero-title { font-size: var(--font-size-2xl); }
    .search-btn span { display: none; }
    .search-btn { padding: 14px 16px; }
}

/* ─── Layout ─────────────────────────────────────────────────────────────────── */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container--narrow {
    max-width: var(--max-width-narrow);
}

.site-content {
    padding-top: var(--header-height);
    min-height: 80vh;
}

.hero-section + .site-content,
.has-hero .site-content {
    padding-top: 0;
}

.main-content {
    padding: var(--space-xl) 0;
}

.main-content.has-archive-img {
    padding-top: 0 !important;
}

/* ─── Header ─────────────────────────────────────────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    /* Safe area (notch / Dynamic Island) */
    padding-top: constant(safe-area-inset-top);
    padding-top: env(safe-area-inset-top);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 var(--space-md);
}

.site-logo {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}

.site-logo:hover { text-decoration: none; opacity: .85; }

/* Desktop nav */
.site-nav { display: flex; align-items: center; }

.nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
    flex-wrap: nowrap;
    align-items: center;
}

.nav-list a {
    display: block;
    padding: 5px 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: background .15s, color .15s;
    text-decoration: none;
    white-space: nowrap;
}

.nav-list a:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
}

/* Hamburger — masqué sur desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin: -10px;
    color: var(--color-text);
    flex-shrink: 0;
    line-height: 0;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--color-primary-dark);
    color: #cdd5e0;
    padding: var(--space-xl) 0 0;
    margin-top: var(--space-2xl);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.footer-brand {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-xs);
}

.footer-desc {
    font-size: var(--font-size-sm);
    color: #8a9bb0;
    line-height: 1.5;
}

.footer-heading {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: var(--space-md);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-links a {
    color: #8a9bb0;
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: color .15s;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: var(--space-md) 0;
}

.footer-bottom p {
    font-size: var(--font-size-sm);
    color: #8a9bb0;
    text-align: center;
}

/* ─── Typographie ────────────────────────────────────────────────────────────── */

.article-content h1,
.article-content h2,
.article-content h3 {
    color: var(--color-text);
    line-height: 1.3;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.article-content h1 { font-size: var(--font-size-3xl); margin-top: 0; }
.article-content h2 {
    font-size: var(--font-size-2xl);
    background-image: linear-gradient(transparent 60%, rgba(249, 190, 1, 0.35) 60%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    display: inline;
}

.article-content h2 + * {
    margin-top: var(--space-lg);
}
.article-content h3 { font-size: var(--font-size-xl); }
.article-content h2 + h3 { margin-top: var(--space-sm); }

.fiche-section-titre {
    background-image: linear-gradient(transparent 60%, rgba(249, 190, 1, 0.35) 60%);
    display: inline-block;
}

.article-content p { margin-bottom: var(--space-sm); }

.article-content ul,
.article-content ol {
    margin-bottom: var(--space-md);
}

.article-content li { margin-bottom: var(--space-xs); }

.article-content strong { font-weight: 700; color: var(--color-text); }

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-sm);
}

.article-content th {
    background: var(--color-bg-light);
    font-weight: 700;
    text-align: left;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.article-content td {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    vertical-align: top;
}

.article-content tr:nth-child(even) td { background: var(--color-bg-alt); }

/* ─── Article ────────────────────────────────────────────────────────────────── */

.article-header { margin-bottom: var(--space-lg); }

.article-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

.article-meta {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.article-thumb {
    margin-bottom: var(--space-lg);
    border-radius: var(--radius);
    overflow: hidden;
}

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

/* ─── Breadcrumb ─────────────────────────────────────────────────────────────── */

.breadcrumb {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); text-decoration: none; }
.breadcrumb span { color: var(--color-border); }

/* ─── Posts grid ─────────────────────────────────────────────────────────────── */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.post-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-card-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: opacity .2s;
}

.post-card-thumb:hover img { opacity: .9; }

.post-card-body {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--space-sm);
}

.post-cat-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    text-decoration: none;
}

.post-cat-tag:hover { text-decoration: none; opacity: .8; }

.post-card-title {
    font-size: var(--font-size-md);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
    flex: 1;
}

.post-card-title a {
    color: var(--color-text);
    text-decoration: none;
}

.post-card-title a:hover { color: var(--color-primary); }

.post-card-excerpt {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

.post-card-link {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    margin-top: auto;
}

.post-card-link:hover { text-decoration: underline; }

/* ─── Archive header ─────────────────────────────────────────────────────────── */

.archive-header {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.has-archive-img {
    padding-top: 0;
}

.archive-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.archive-cat-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.archive-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.40);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-lg);
}

.archive-breadcrumb {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-md);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.85);
}

.archive-breadcrumb a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

.archive-breadcrumb a:hover { color: #fff; }

.archive-breadcrumb span { color: rgba(255,255,255,0.6); }

.archive-hero .archive-title {
    color: #fff;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.archive-hero .archive-desc {
    color: rgba(255,255,255,0.88);
    font-size: var(--font-size-base);
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

@media (max-width: 640px) {
    .archive-cat-img { height: 140px; }
    .archive-hero-overlay { padding: var(--space-md); }
    .archive-hero .archive-title { font-size: var(--font-size-xl); }
}

.archive-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.archive-desc {
    font-size: var(--font-size-md);
    color: var(--color-text-light);
}

/* ─── Archive intro avec toggle ──────────────────────────────────────────────── */

.archive-intro {
    margin-bottom: var(--space-md);
}

.archive-intro-text {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    line-height: var(--line-height);
    max-height: 3.3em;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.archive-intro-text.is-open {
    max-height: 600px;
}

.archive-intro-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: var(--space-xs);
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.archive-intro-toggle:hover { text-decoration: underline; }

.archive-intro-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}

.archive-intro-toggle[aria-expanded="true"] .archive-intro-arrow {
    transform: rotate(180deg);
}

/* ─── Pagination ─────────────────────────────────────────────────────────────── */

.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}

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

/* ─── CTA Button ─────────────────────────────────────────────────────────────── */

.cta-btn {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary-dark) !important;
    font-weight: 700;
    font-size: var(--font-size-base);
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .1s, box-shadow .2s;
    text-align: center;
    line-height: 1.4;
}

.cta-btn:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(249, 190, 1, .4);
    text-decoration: none !important;
}

.cta-btn:active { transform: translateY(0); }

/* ─── Blocs contenus spécifiques ─────────────────────────────────────────────── */

/* Intro box */
.intro-box {
    border-left: 4px solid var(--color-primary);
    background: var(--color-primary-light);
    padding: var(--space-md) var(--space-lg);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: var(--space-lg);
}

.intro-box p { margin-bottom: var(--space-sm); color: var(--color-text); }
.intro-box p:last-child { margin-bottom: 0; }

/* En bref */
.bref-box {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
}

.bref-box h2 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    margin-top: 0;
}

.bref-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.bref-box li {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    padding: var(--space-sm);
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    margin: 0;
}

.bref-box li strong { color: var(--color-text); display: block; margin-bottom: 2px; }

/* Top 5 */
.top5-box {
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
}

.top5-box h2 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-md);
    margin-top: 0;
}

.top5-box ol {
    padding-left: 1.5em;
    margin: 0;
}

.top5-box li {
    color: rgba(255,255,255,.95);
    font-size: var(--font-size-base);
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

.top5-box li strong { color: #fff; }

/* Note /10 */
.note-box {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
}

.note-score {
    font-size: 40px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    white-space: nowrap;
}

.note-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    font-weight: 600;
}

/* Pros / Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.pros, .cons {
    border-radius: var(--radius);
    padding: var(--space-md);
}

.pros { background: #F0FBF4; border: 1px solid #B7E5C8; }
.cons { background: #FEF4F4; border: 1px solid #F5C6C6; }

.pros h3, .cons h3 {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    margin-top: 0;
}

.pros h3 { color: #1A7A3A; }
.cons h3 { color: #B02020; }

.pros ul, .cons ul {
    padding: 0;
    list-style: none;
    margin: 0;
}

.pros li, .cons li {
    font-size: var(--font-size-sm);
    color: var(--color-text);
    padding: 4px 0 4px 20px;
    position: relative;
    margin-bottom: 4px;
    line-height: 1.5;
}

.pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

.cons li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: var(--color-error);
    font-weight: 700;
}

/* Verdict */
.verdict-box {
    background: var(--color-bg-alt);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.verdict-box h2 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    margin-top: 0;
}

.verdict-box p {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ accordion */
.faq-block {
    margin-bottom: var(--space-lg);
}

.faq-block h2 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    margin-top: 0;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-xs);
    overflow: hidden;
}

.faq-item h3 {
    margin: 0;
    padding: 0;
    font-size: var(--font-size-base);
    line-height: 1;
}

.faq-q {
    width: 100%;
    background: var(--color-bg);
    border: none;
    text-align: left;
    padding: var(--space-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    transition: background .15s;
    font-family: var(--font-base);
    line-height: 1.4;
}

.faq-q:hover { background: var(--color-bg-alt); }

.faq-q::after {
    content: "+";
    font-size: var(--font-size-xl);
    font-weight: 400;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: transform .2s;
}

.faq-q[aria-expanded="true"] { background: var(--color-bg-alt); }
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }

.faq-a {
    display: none;
    padding: 0 var(--space-md) var(--space-md);
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    line-height: var(--line-height);
    background: var(--color-bg-alt);
}

.faq-a.is-open { display: block; }
.faq-a p { margin: 0; }

/* Author CTA */
.author-cta-box {
    background: var(--color-primary-dark);
    color: #fff;
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.author-cta-box p {
    color: rgba(255,255,255,.85);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-md);
}

.author-cta-box .cta-btn {
    background: var(--color-accent);
    color: var(--color-primary-dark) !important;
}

.author-cta-box .cta-btn:hover {
    background: var(--color-accent-dark);
    box-shadow: 0 4px 12px rgba(249, 190, 1, .35);
}

/* ─── Centrage auto des blocs CTA standalone ─────────────────────────────────── */

.article-content .wp-block-html:has(> a.cta-btn),
.article-content .wp-block-html:has(> button.cta-btn) {
    text-align: center;
    margin: var(--space-md) 0;
}

a.cta-btn,
button.cta-btn {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Specs row (prix, compatibilité, etc.) ──────────────────────────────────── */

.specs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: var(--space-md) 0;
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.spec-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: var(--font-size-sm);
    color: var(--color-text);
    white-space: nowrap;
}

.spec-item strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* ─── Lire aussi notre avis ──────────────────────────────────────────────────── */

.lire-aussi {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-align: center;
    margin: var(--space-xs) 0 var(--space-lg);
}

.lire-aussi a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lire-aussi a:hover {
    color: var(--color-primary-dark);
}

/* ─── No posts ───────────────────────────────────────────────────────────────── */

.no-posts {
    text-align: center;
    color: var(--color-text-muted);
    padding: var(--space-2xl) 0;
    font-size: var(--font-size-md);
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .bref-box ul { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-inner .footer-col:first-child { grid-column: span 2; }
}

@media (max-width: 768px) {
    :root {
        --font-size-3xl: 28px;
        --font-size-2xl: 24px;
        --font-size-xl: 20px;
    }

    .site-logo {
        font-size: var(--font-size-base);
    }

    /* Hamburger visible sur mobile */
    .nav-toggle { display: block; }

    /* Menu mobile — masqué par défaut, visible quand .is-open */
    .site-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 2px solid var(--color-border);
        box-shadow: var(--shadow-md);
        z-index: 999;
    }

    .site-nav.is-open { display: block; }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: var(--space-xs) 0;
    }

    .nav-list li {
        list-style: none;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-list li:last-child { border-bottom: none; }

    .nav-list a {
        display: block;
        padding: 16px;
        font-size: var(--font-size-base);
        font-weight: 500;
        color: var(--color-text);
        text-align: center;
        white-space: normal;
        border-radius: 0;
        text-decoration: none;
        width: 100%;
    }

    .nav-list a:hover {
        background: var(--color-bg-light);
    }

    .posts-grid { grid-template-columns: 1fr; }

    .pros-cons { grid-template-columns: 1fr; }

    .bref-box ul { grid-template-columns: 1fr; }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-inner .footer-col:first-child { grid-column: span 1; }

    .note-box { flex-direction: column; text-align: center; }

    .article-thumb img { height: 220px; }

    .container { padding: 0 var(--space-md); }
}

@media (max-width: 480px) {
    .article-title { font-size: 24px; }
    .top5-box, .bref-box, .intro-box, .verdict-box, .author-cta-box {
        padding: var(--space-md);
    }
    .fiche-logiciel { padding: var(--space-sm) var(--space-md); }
    .fiche-header { grid-template-columns: 52px 1fr; }
    .fiche-logo-col { width: 52px; height: 52px; }
    .fiche-logo { max-width: 40px; max-height: 40px; }
}

/* ─── Fiche Logiciel (ACF) ────────────────────────────────────────────────── */

.fiche-logiciel {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.fiche-header {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: var(--space-lg);
    align-items: start;
    margin-bottom: var(--space-lg);
}

.fiche-logo-col {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fiche-logo {
    max-width: 64px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: #fff;
    padding: 8px;
    box-sizing: border-box;
}

.fiche-note-globale {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.note-valeur {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.note-sur {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
}

.note-etoiles { display: flex; gap: 2px; }

.etoile { color: var(--color-border); font-size: 20px; }
.etoile--on { color: var(--color-star); }

.fiche-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: 1.4;
}

.pill--gratuit  { background: #e8f5e9; color: #2e7d32; }
.pill--freemium { background: #fff3e0; color: #e65100; }
.pill--payant   { background: #e3f2fd; color: #1565c0; }
.pill--sur-devis { background: #f3e5f5; color: #6a1b9a; }
.pill--fr       { background: #e8eaf6; color: #283593; }
.pill--essai    { background: #e8f5e9; color: #2e7d32; }
.pill--sm       { font-size: 12px; padding: 2px 8px; }

.fiche-prix {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    margin: var(--space-xs) 0 0;
}

.fiche-public {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: var(--space-xs) 0 0;
}

.tag-public {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.fiche-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    min-width: 160px;
}

.fiche-cta--bottom {
    text-align: center;
    margin-top: var(--space-lg);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: var(--font-size-base);
    text-decoration: none;
    text-align: center;
    transition: opacity .15s;
    cursor: pointer;
}

.btn:hover { opacity: .85; }

.btn--primary {
    background: var(--color-primary);
    color: #fff;
}

.btn--ghost {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--large { padding: 14px 28px; font-size: var(--font-size-md); }
.btn--sm    { padding: 6px 14px; font-size: var(--font-size-sm); }

/* Avantages / Inconvénients */

.fiche-avantages-inconvenients {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.fiche-avantages,
.fiche-inconvenients {
    padding: var(--space-md);
    border-radius: 8px;
}

.fiche-avantages { background: #f0faf0; border: 1px solid #c8e6c9; }
.fiche-inconvenients { background: #fff5f5; border: 1px solid #ffcdd2; }

.fiche-bloc-titre {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin: 0 0 var(--space-xs);
    padding-left: 24px;
    position: relative;
}

.fiche-bloc-titre--pro::before { content: "✓"; color: var(--color-success); position: absolute; left: 0; }
.fiche-bloc-titre--con::before { content: "✗"; color: var(--color-error); position: absolute; left: 0; }

.fiche-avantages ul,
.fiche-inconvenients ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fiche-avantages li,
.fiche-inconvenients li {
    font-size: var(--font-size-sm);
    padding-left: 16px;
    position: relative;
    color: var(--color-text);
}

.fiche-avantages li::before { content: "·"; position: absolute; left: 4px; color: var(--color-success); font-weight: 700; }
.fiche-inconvenients li::before { content: "·"; position: absolute; left: 4px; color: var(--color-error); font-weight: 700; }

/* Pour qui */

.fiche-pour-qui {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.pour-qui {
    margin: 0;
    font-size: var(--font-size-sm);
    padding: 8px 12px;
    border-radius: 6px;
    padding-left: 32px;
    position: relative;
}

.pour-qui--oui { background: #f0faf0; }
.pour-qui--non { background: #fff5f5; }
.pour-qui--oui::before { content: "✓"; position: absolute; left: 10px; color: var(--color-success); font-weight: 700; }
.pour-qui--non::before { content: "✗"; position: absolute; left: 10px; color: var(--color-error); font-weight: 700; }

/* Notes détaillées */

.fiche-notes-detail,
.fiche-fonctionnalites,
.fiche-verdict,
.fiche-alternatives {
    margin: var(--space-lg) 0;
}

.fiche-section-titre {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.notes-barres { display: flex; flex-direction: column; gap: var(--space-sm); }

.note-barre {
    display: grid;
    grid-template-columns: 200px 1fr 60px;
    align-items: center;
    gap: var(--space-md);
}

.note-barre-label { font-size: var(--font-size-sm); color: var(--color-text-light); }

.note-barre-piste {
    background: var(--color-border);
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
}

.note-barre-remplissage {
    height: 100%;
    background: var(--color-primary);
    border-radius: 20px;
    transition: width .4s ease;
}

.note-barre-valeur {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-primary);
    text-align: right;
}

/* Fonctionnalités */

.fonctionnalites-liste {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs) var(--space-lg);
    padding: 0;
    list-style: none;
}

.fonctionnalites-liste li {
    font-size: var(--font-size-sm);
    padding-left: 20px;
    position: relative;
    color: var(--color-text);
}

.fonctionnalites-liste li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

/* Verdict */

.verdict-texte {
    border-left: 4px solid var(--color-primary);
    margin: 0;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-primary-light);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--color-text);
    line-height: var(--line-height);
}

/* Note badge */

.note-badge {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: var(--font-size-sm);
    padding: 3px 8px;
    border-radius: 6px;
}

.note-badge--sm { font-size: 12px; padding: 2px 6px; }

/* Alternatives */

.fiche-alternatives-texte {
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
}

.alt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.alt-card {
    display: flex;
    align-items: flex-start;
    height: 100%;
    box-sizing: border-box;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg-alt);
    text-decoration: none;
    color: var(--color-text);
    transition: border-color .15s, box-shadow .15s;
}

.alt-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    text-decoration: none;
}

.alt-card-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-sizing: border-box;
    overflow: hidden;
}

.alt-card-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    object-position: center;
    display: block;
}

.alt-card-initiale {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-primary);
}

.alt-card-info {
    flex: 1;
    min-width: 0;
}

.alt-card-nom {
    font-weight: 700;
    font-size: var(--font-size-base);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alt-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin: 3px 0 0;
}

.alt-card-note {
    font-size: var(--font-size-sm);
    color: var(--color-star);
    font-weight: 600;
}

.alt-card-prix {
    font-size: 12px;
    color: var(--color-text-muted);
}

.alt-card-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.alt-card-lien {
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .alt-grid { grid-template-columns: 1fr; }
}

/* ─── Tableau comparatif Hub ──────────────────────────────────────────────── */

.comparatif-tableau-wrap {
    overflow-x: auto;
    margin-bottom: var(--space-xl);
    border-radius: 10px;
    border: 1px solid var(--color-border);
}

@media (max-width: 640px) {
    .comparatif-tableau-wrap {
        overflow-x: visible;
        border: none;
        border-radius: 0;
    }

    .comparatif-tableau,
    .comparatif-tableau tbody,
    .comparatif-tableau tr,
    .comparatif-tableau td { display: block; width: 100%; }

    .comparatif-tableau thead { display: none; }

    .comparatif-tableau tbody {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
    }

    /* Chaque ligne → carte en grille 2 colonnes */
    .comparatif-tableau tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto auto;
        column-gap: 10px;
        row-gap: 8px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        padding: var(--space-sm) var(--space-md);
        background: #fff;
    }

    .comparatif-tableau td { padding: 4px 8px; min-width: 0; overflow: hidden; }

    /* Ligne 1 : logo + nom centrés, pleine largeur */
    .comparatif-tableau td:nth-child(1) { grid-column: 1 / 3; grid-row: 1; padding: 8px 8px 6px; }
    .comparatif-tableau td.comparatif-nom { display: flex; flex-direction: row; justify-content: center; align-items: center; text-align: center; gap: 8px; flex-wrap: nowrap; width: 100%; }
    .comparatif-nom a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; font-size: 1rem; }
    .comparatif-logo { flex-shrink: 0; }

    /* Bloc entier cliquable → lien de la fiche étiré sur toute la carte */
    .comparatif-tableau tbody tr { position: relative; }
    .comparatif-nom a::after { content: ''; position: absolute; inset: 0; z-index: 1; }

    /* Bouton CTA au-dessus du lien étiré */
    .comparatif-tableau td:nth-child(6) { position: relative; z-index: 2; }

    /* Labels contextuels (remplace les headers cachés) */
    .comparatif-tableau td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.62rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--color-text-light);
        margin-bottom: 3px;
    }

    /* Ligne 2 : note | formule */
    .comparatif-tableau td:nth-child(2) { grid-column: 1; grid-row: 2; align-self: start; }
    .comparatif-tableau td:nth-child(3) { grid-column: 2; grid-row: 2; align-self: start; text-align: left; padding-left: 14px; }

    /* Ligne 3 : à partir de | essai gratuit */
    .comparatif-tableau td:nth-child(4) {
        grid-column: 1; grid-row: 3;
        font-size: 0.78rem; color: var(--color-text); align-self: start;
    }
    .comparatif-tableau td:nth-child(5) {
        grid-column: 2; grid-row: 3;
        font-size: 0.78rem; color: var(--color-text);
        text-align: left; align-self: start; padding-left: 14px;
    }

    /* Ligne 4 : CTA pleine largeur */
    .comparatif-tableau td:nth-child(6) { grid-column: 1 / 3; grid-row: 4; padding: 6px 8px 12px; }
    .comparatif-tableau td:nth-child(6) .btn { width: 100%; text-align: center; display: block; }
}

.comparatif-tableau {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.comparatif-tableau thead {
    background: var(--color-primary);
    color: #fff;
}

.comparatif-tableau th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.comparatif-tableau tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background .15s;
}

.comparatif-tableau tbody tr:last-child { border-bottom: none; }
.comparatif-tableau tbody tr:hover { background: var(--color-primary-light); }

.comparatif-tableau td {
    padding: 12px 16px;
    vertical-align: middle;
}

.comparatif-nom {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
}

.comparatif-nom a { color: var(--color-text); text-decoration: none; }
.comparatif-nom a:hover { color: var(--color-primary); }

.comparatif-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background: #fff;
    padding: 0;
    flex-shrink: 0;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
}

/* ─── Responsive fiche ────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .fiche-logiciel {
        padding: var(--space-md);
    }

    .fiche-header {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
        gap: var(--space-sm);
    }

    .fiche-logo-col { width: 60px; height: 60px; }
    .fiche-logo { max-width: 48px; max-height: 48px; }

    .fiche-header-cta {
        grid-column: 1 / -1;
        margin-top: var(--space-xs);
    }

    .fiche-header-cta .btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .fiche-avantages-inconvenients { grid-template-columns: 1fr; }

    .fonctionnalites-liste { grid-template-columns: 1fr; }

    .note-barre {
        grid-template-columns: 120px 1fr 40px;
        gap: var(--space-sm);
    }

    .note-valeur { font-size: var(--font-size-xl); }
}

/* ─── Sticky CTA ─────────────────────────────────────────────────────────── */

.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid var(--color-border);
    padding: var(--space-sm) var(--space-md);
    box-shadow: 0 -2px 16px rgba(0,0,0,.12);
    box-sizing: border-box;
    text-align: center;
}

.sticky-cta--visible {
    display: block;
}

.sticky-cta-btn {
    display: inline-block;
    min-width: 220px;
    max-width: 100%;
    font-size: var(--font-size-base);
}

@media (max-width: 768px) {
    .sticky-cta-btn {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
}

.alt-detail-list {
    margin: var(--space-md) 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--color-border);
}

.alt-detail-list li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    line-height: 1.6;
}

.alt-detail-list li strong {
    color: var(--color-text);
    font-weight: 700;
}

/* ─── Produits similaires ─────────────────────────────────────────────────── */

.fiche-similaires {
    margin: var(--space-lg) 0;
}

/* ─── Articles liés ──────────────────────────────────────────────────────── */

.fiche-articles-lies {
    margin: var(--space-lg) 0;
}

.articles-lies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.article-lie-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg-alt);
    text-decoration: none;
    color: var(--color-text);
    transition: border-color .15s, box-shadow .15s;
}

.article-lie-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    text-decoration: none;
}

.article-lie-titre {
    font-weight: 700;
    font-size: var(--font-size-base);
    color: var(--color-text);
    margin: 0;
    line-height: 1.4;
}

.article-lie-excerpt {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.article-lie-lien {
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    font-weight: 600;
    margin-top: auto;
}

@media (max-width: 480px) {
    .articles-lies-grid { grid-template-columns: 1fr; }
}

/* ─── Comparatif VS ──────────────────────────────────────────────────────────── */

.vs-hero {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    text-align: center;
}
.vs-hero-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}
.vs-hero-logo-wrap {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vs-hero-logo { max-width: 80px; max-height: 80px; object-fit: contain; }
.vs-hero-initiale {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 2rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.vs-hero-nom { font-weight: 700; font-size: var(--font-size-lg); margin: 0; }
.vs-hero-note { margin: 0; font-size: var(--font-size-base); color: var(--color-text-light); }
.vs-hero-note strong { color: var(--color-text); font-size: var(--font-size-xl); }
.vs-hero-cta { margin-top: var(--space-xs); }
.vs-hero-badge {
    font-size: 1.5rem; font-weight: 900;
    color: var(--color-text-light);
    letter-spacing: 2px;
    flex-shrink: 0;
}

.vs-intro { margin-bottom: var(--space-xl); }

/* Tableau comparatif */
.vs-tableau-wrap { margin-bottom: var(--space-xl); }
.vs-tableau { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.vs-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    border-bottom: 1px solid var(--color-border);
}
.vs-row:last-child { border-bottom: none; }
.vs-row--header { background: var(--color-surface); }
.vs-cell {
    padding: 12px 16px;
    font-size: var(--font-size-sm);
    border-right: 1px solid var(--color-border);
    display: flex; align-items: center;
}
.vs-cell:last-child { border-right: none; }
.vs-cell--col { font-weight: 700; justify-content: center; }
.vs-cell--label { background: var(--color-surface); color: var(--color-text-light); }
.vs-row:nth-child(even) .vs-cell--label { background: #f8f9fa; }
.vs-winner {
    background: #f0fdf4;
    color: #166534;
    font-weight: 700;
}
.vs-row--header .vs-cell { justify-content: center; text-align: center; }

/* Sections côte à côte */
.vs-section { margin-bottom: var(--space-xl); }
.vs-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}
.vs-col {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}
.vs-col-titre {
    font-weight: 700;
    font-size: var(--font-size-base);
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: var(--space-xs);
}
.vs-col ul { margin: 0; padding-left: 1.2em; }
.vs-col li { margin-bottom: var(--space-xs); font-size: var(--font-size-sm); }
.vs-col--recommend p { font-size: var(--font-size-sm); margin-bottom: var(--space-sm); }
.vs-col-contre { color: var(--color-text-light); font-size: var(--font-size-sm) !important; }
.vs-col--verdict { text-align: center; }
.vs-col--verdict .verdict-texte { margin-bottom: var(--space-md); text-align: left; }

/* Liens fiches */
.vs-fiches-liens {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}
.vs-fiche-lien {
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}
.vs-fiche-lien:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 640px) {
    .vs-hero { grid-template-columns: 1fr; gap: var(--space-md); padding: var(--space-lg); }
    .vs-hero-badge { font-size: 1.2rem; }
    .vs-cols { grid-template-columns: 1fr; }
    .vs-row { grid-template-columns: 1.2fr 1fr 1fr; }
    .vs-cell { padding: 10px 12px; font-size: 0.8rem; }
    .vs-fiches-liens { flex-direction: column; align-items: center; }
}

/* Verdict éditorial comparatif */
.vs-verdicts-edito { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-xl); }
.vs-verdict-texte { margin-bottom: var(--space-lg); }
.vs-verdict-texte p { font-size: var(--font-size-base); line-height: 1.7; margin-bottom: var(--space-md); color: var(--color-text); }
.vs-verdict-texte p:last-child { margin-bottom: 0; }
.vs-verdict-texte strong { color: var(--color-text); }
.vs-verdict-ctas { display: flex; gap: var(--space-md); justify-content: center; padding-top: var(--space-lg); border-top: 1px solid var(--color-border); }
@media (max-width: 480px) { .vs-verdict-ctas { flex-direction: column; } }

/* Tags public cible dans tableau VS */
.vs-cell--tags { flex-wrap: wrap; gap: 4px; }

/* Barres de notes côte à côte */
.vs-barres { }
.vs-barres-header {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}
.vs-barres-col-titre { font-weight: 700; font-size: var(--font-size-sm); text-align: center; color: var(--color-text-light); }
.vs-barre-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: var(--space-md);
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}
.vs-barre-row:last-child { border-bottom: none; }
.vs-barres-label { font-size: var(--font-size-sm); }
.vs-barre-side {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.vs-barre-piste {
    flex: 1;
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}
.vs-barre-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}
.vs-barre-winner .vs-barre-fill { background: #16a34a; }
.vs-barre-val { font-size: 0.75rem; font-weight: 700; white-space: nowrap; color: var(--color-text-light); min-width: 32px; }
.vs-barre-winner .vs-barre-val { color: #16a34a; }

/* Points faibles */
.vs-col--faible .vs-col-titre { color: #dc2626; border-bottom-color: #dc2626; }
.vs-col--faible li { color: var(--color-text); }

/* Fonctionnalités clés */
.vs-features-list { margin: 0; padding-left: 0; list-style: none; }
.vs-features-list li {
    padding: 6px 0 6px 22px;
    position: relative;
    font-size: var(--font-size-sm);
    border-bottom: 1px solid var(--color-border);
}
.vs-features-list li:last-child { border-bottom: none; }
.vs-features-list li::before { content: '✓'; position: absolute; left: 0; color: #16a34a; font-weight: 700; }

@media (max-width: 640px) {
    .vs-barres-header { grid-template-columns: 1.2fr 1fr 1fr; gap: var(--space-sm); }
    .vs-barre-row { grid-template-columns: 1.2fr 1fr 1fr; gap: var(--space-sm); }
    .vs-barres-label { font-size: 0.75rem; }
}

/* ===== Hub article - labels points forts/faibles ===== */
.hub-list-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 16px 0 4px !important;
}
.hub-list-label--fort { color: #16a34a; }
.hub-list-label--faible { color: #dc2626; }

/* ===== Hub article - CTA buttons ===== */
.hub-cta-row {
    display: flex;
    gap: 12px;
    margin: 20px 0 28px;
    flex-wrap: wrap;
    justify-content: center;
}
.hub-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid var(--color-primary);
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
}
.hub-btn--primary {
    background: var(--color-primary);
    color: #fff;
}
.hub-btn--primary:hover {
    background: var(--color-primary-dark, #1a46c0);
    border-color: var(--color-primary-dark, #1a46c0);
    color: #fff;
}
.hub-btn--secondary {
    background: #fff;
    color: var(--color-primary);
    font-family: inherit;
}
.hub-btn--secondary:hover {
    background: var(--color-primary);
    color: #fff;
}
@media (max-width: 480px) {
    .hub-btn { width: 100%; text-align: center; }
}
/* ── Grille sous-catégories ─────────────────────────────────────────────── */
.subcats-section {
    margin-bottom: var(--space-xl, 48px);
}

.subcats-title {
    font-size: var(--font-size-lg, 20px);
    font-weight: 700;
    color: var(--color-text, #1a1a2e);
    margin-bottom: var(--space-md, 20px);
}

.subcats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm, 12px);
}

.subcat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #fff;
    border: 1.5px solid #e8edf3;
    border-radius: var(--radius, 10px);
    box-shadow: var(--shadow, 0 2px 10px rgba(0,0,0,0.08));
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.subcat-card:hover {
    border-color: var(--color-primary, #015A9B);
    box-shadow: 0 4px 16px rgba(1,90,155,0.12);
    transform: translateY(-2px);
}

.subcat-card-img img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.subcat-card-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.subcat-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.subcat-card-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--color-text, #1a1a2e);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subcat-card-count {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.subcat-card-arrow {
    font-size: 16px;
    color: var(--color-primary, #015A9B);
    flex-shrink: 0;
    font-weight: bold;
}

/* ── Hub featured card ──────────────────────────────────────────────────── */
.hub-featured {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md, 20px);
    padding: var(--space-md, 20px) var(--space-lg, 32px);
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border: 2px solid var(--color-primary, #015A9B);
    border-radius: var(--radius, 10px);
    margin-bottom: var(--space-lg, 32px);
    position: relative;
}

.hub-featured-label {
    position: absolute;
    top: -12px;
    left: var(--space-md, 20px);
    background: var(--color-primary, #015A9B);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 20px;
}

.hub-featured-body {
    flex: 1;
}

.hub-featured-title {
    font-size: var(--font-size-xl, 24px);
    font-weight: 700;
    margin-bottom: var(--space-xs, 8px);
    background: none;
    -webkit-text-fill-color: unset;
}

.hub-featured-title::before {
    display: none;
}

.hub-featured-title a {
    color: var(--color-primary, #015A9B);
    text-decoration: none;
}

.hub-featured-title a:hover {
    text-decoration: underline;
}

.hub-featured-desc {
    color: #4b5563;
    font-size: var(--font-size-sm, 14px);
    margin-bottom: var(--space-sm, 12px);
    line-height: 1.6;
}

/* ── Responsive subcats ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .subcats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 640px) {
    .subcats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .subcat-card {
        padding: 12px;
        gap: 8px;
    }

    .subcat-card-arrow {
        display: none;
    }

    .hub-featured {
        padding: var(--space-md, 20px);
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .subcats-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Nos derniers comparatifs (archive) ─────────────────────────────────── */
.comparatifs-section {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.comparatifs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.comparatif-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    color: var(--color-text, #313131);
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.comparatif-card:hover {
    border-color: var(--color-primary, #015A9B);
    box-shadow: 0 3px 12px rgba(1,90,155,0.10);
    transform: translateY(-1px);
}

.comparatif-card-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-primary, #015A9B);
}

.comparatif-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text, #313131);
    line-height: 1.3;
}

.comparatif-card-cta {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary, #015A9B);
}

@media (max-width: 768px) {
    .comparatifs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .comparatifs-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Hub comparatif rapide ───────────────────────────────── */
.hub-comparatif { margin: var(--space-xl) 0; }

.hub-comparatif-titre {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-md);
}

.hub-comparatif-wrap {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--color-border);
}

.hub-comparatif-wrap .hub-comparatif-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.hub-comparatif-table col.col-nom  { width: auto; }
.hub-comparatif-table col.col-note { width: 90px; }
.hub-comparatif-table col.col-prix { width: 170px; }
.hub-comparatif-table col.col-cta  { width: 130px; }

.hub-comparatif-table thead {
    background: var(--color-bg-alt, #f5f5f5);
}

.hub-comparatif-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hub-comparatif-table tbody tr {
    border-top: 1px solid var(--color-border);
    transition: background 0.15s;
}

.hub-comparatif-table tbody tr:hover { background: var(--color-primary-light, #f0f7ff); }

.hub-comparatif-table td {
    padding: 14px 16px;
    vertical-align: middle;
}

.hc-nom {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hc-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background: #fff;
    flex-shrink: 0;
}

.hc-nom a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
}

.hc-nom a:hover { color: var(--color-primary); }

.hc-note { white-space: nowrap; }

.hc-prix {
    white-space: nowrap;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.hc-cta { white-space: nowrap; text-align: right; }

@media (max-width: 600px) {
    .hub-comparatif-table { table-layout: auto; }
    .hub-comparatif-table thead { display: none; }
    .hub-comparatif-table tbody,
    .hub-comparatif-table tr,
    .hub-comparatif-table td { display: block; width: 100%; }
    .hub-comparatif-table tbody tr {
        display: grid;
        grid-template-columns: 1fr auto;
        padding: 12px;
        gap: 6px;
    }
    .hc-nom  { grid-column: 1 / 2; grid-row: 1; }
    .hc-note { grid-column: 2 / 3; grid-row: 1; justify-self: end; align-self: center; }
    .hc-cta  { grid-column: 1 / 3; grid-row: 2; text-align: center; }
    .hc-cta .btn { width: 100%; display: block; text-align: center; }
}

/* ── Hub btn — alignement visuel avec cta-btn ───────────────────────────── */
.hub-btn--primary {
    background: var(--color-accent) !important;
    color: var(--color-primary-dark) !important;
    border-color: var(--color-accent) !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 700 !important;
    font-size: var(--font-size-base) !important;
    padding: 12px 28px !important;
}
.hub-btn--primary:hover {
    background: var(--color-accent-dark) !important;
    border-color: var(--color-accent-dark) !important;
    color: var(--color-primary-dark) !important;
}
.hub-btn--secondary {
    background: transparent !important;
    color: var(--color-primary) !important;
    border: 2px solid var(--color-primary) !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 600 !important;
    font-size: var(--font-size-base) !important;
    padding: 12px 28px !important;
}
.hub-btn--secondary:hover {
    background: var(--color-primary) !important;
    color: #fff !important;
}

/* ── Hub éditorial banner (pages sous-catégorie) ─────────────────────────── */
.hub-edito-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md, 20px);
    padding: 16px 20px;
    margin-bottom: var(--space-lg, 28px);
    background: var(--color-primary-light, #E8F3FB);
    border: 1.5px solid var(--color-primary, #015A9B);
    border-radius: var(--radius, 10px);
}

.hub-edito-banner-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.hub-edito-banner-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary, #015A9B);
}

.hub-edito-banner-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text, #313131);
    line-height: 1.3;
}

@media (max-width: 600px) {
    .hub-edito-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .hub-edito-banner .btn {
        width: 100%;
        text-align: center;
    }
}

/* ── Home : sections par catégorie ──────────────────────────────────────────── */
.home-cat-section {
    margin: var(--space-xl, 40px) 0;
    padding-top: var(--space-lg, 28px);
    border-top: 1.5px solid var(--color-border, #e0e0e0);
}

.home-cat-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.home-cat-title {
    font-size: var(--font-size-xl, 22px);
    font-weight: 800;
    color: var(--color-text, #1a1a2e);
    margin-bottom: var(--space-md, 20px);
    /* Pas de surligneur jaune : c'est un titre de section, pas éditorial */
    background: none !important;
    -webkit-text-fill-color: unset !important;
}

.home-cat-title::before {
    display: none !important;
}

.home-hubs-grid {
    margin-top: var(--space-md, 20px);
}

/* ── Home : nos derniers avis ────────────────────────────────────────────────── */
.home-derniers-avis {
    margin-bottom: var(--space-xl, 40px);
}

.derniers-avis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm, 12px);
}

.avis-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    background: #fff;
    border: 1.5px solid var(--color-border, #e0e0e0);
    border-radius: var(--radius, 10px);
    box-shadow: var(--shadow, 0 2px 10px rgba(0,0,0,0.06));
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
    min-height: 120px;
}

.avis-card:hover {
    border-color: var(--color-primary, #015A9B);
    box-shadow: 0 4px 16px rgba(1,90,155,0.12);
    transform: translateY(-2px);
}

.avis-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.avis-card-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid var(--color-border, #e0e0e0);
    background: #f8f9fb;
    padding: 4px;
}

.avis-card-logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary, #015A9B);
    background: var(--color-primary-light, #E8F3FB);
    border: none;
}

.avis-card-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 2px;
}

.avis-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text, #1a1a2e);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.avis-card-cat {
    font-size: 11px;
    color: var(--color-primary, #015A9B);
    font-weight: 600;
}

.avis-card-count {
    font-size: 11px;
    color: #6b7280;
}

.avis-card-note {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--color-primary, #015A9B);
    line-height: 1;
}

.avis-card-note span {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
}

.avis-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border, #e0e0e0);
}

.avis-card-formule {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 2px 8px;
    border-radius: 20px;
}

.avis-card-formule--gratuit {
    background: #d1fae5;
    color: #065f46;
}

.avis-card-formule--freemium {
    background: #dbeafe;
    color: #1e40af;
}

.avis-card-formule--payant {
    background: #fef3c7;
    color: #92400e;
}

.avis-card-formule--sur-devis {
    background: #f3e8ff;
    color: #6b21a8;
}

.avis-card-cta {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary, #015A9B);
    margin-left: auto;
}

/* ── Responsive home ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .derniers-avis-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .home-cat-title {
        font-size: 18px;
    }
}

/* ── Home : intro catégorie ─────────────────────────────────────────────────── */
.home-cat-intro {
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
    width: 100%;
    margin-bottom: var(--space-md, 20px);
}
