/* ============================================================
 * quiestcenumero.be — Style principal
 * Approche : éditorial + trust signals, mobile-first
 * Police : Inter Variable (preload)
 * ============================================================ */

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-var.woff2') format('woff2-variations'),
         url('../fonts/inter-var.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Couleurs */
    --c-primary: #E63946;
    --c-primary-dark: #C92D3B;
    --c-secondary: #1D3557;
    --c-secondary-dark: #14253E;
    --c-accent: #F1FAEE;
    --c-text-heading: #1D3557;
    --c-text-body: #2B2D42;
    --c-text-muted: #6B7280;
    --c-success: #06D6A0;
    --c-warning: #FFB703;
    --c-danger: #E63946;
    --c-bg: #FFFFFF;
    --c-bg-alt: #FAFBFC;
    --c-bg-card: #FFFFFF;
    --c-border: #E5E7EB;
    --c-border-dark: #D1D5DB;

    /* Typographie */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;

    /* Espacement */
    --gap-xs: 0.25rem;
    --gap-sm: 0.5rem;
    --gap-md: 1rem;
    --gap-lg: 1.5rem;
    --gap-xl: 2rem;
    --gap-2xl: 3rem;
    --gap-3xl: 4rem;

    /* Radius */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 12px;
    --r-xl: 16px;

    /* Ombres */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-md: 0 4px 6px rgba(15, 23, 42, .07), 0 2px 4px rgba(15, 23, 42, .06);
    --shadow-lg: 0 10px 15px rgba(15, 23, 42, .1), 0 4px 6px rgba(15, 23, 42, .05);
    --shadow-xl: 0 20px 25px rgba(15, 23, 42, .1), 0 10px 10px rgba(15, 23, 42, .04);

    /* Container */
    --container-max: 1180px;
    --container-narrow: 760px;
}

/* ============================================================
 * Reset & base
 * ============================================================ */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-text-body);
    background: var(--c-bg);
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img, picture, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-secondary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--c-primary); }
h1, h2, h3, h4, h5, h6 { color: var(--c-text-heading); font-weight: 800; line-height: 1.2; margin: 0 0 var(--gap-md); letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-top: var(--gap-xl); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); margin-top: var(--gap-lg); }
p { margin: 0 0 var(--gap-md); }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
ul, ol { padding-left: 1.5em; }
ul li, ol li { margin-bottom: .25em; }
strong { font-weight: 700; color: var(--c-text-heading); }
::selection { background: var(--c-primary); color: white; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: -10000px; top: 1rem;
    background: var(--c-secondary); color: white;
    padding: .5rem 1rem; border-radius: var(--r-md);
    z-index: 9999;
}
.skip-link:focus { left: 1rem; color: white; }

/* ============================================================
 * Layout
 * ============================================================ */
.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gap-md);
}
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--gap-md); }
.container-with-sidebar {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gap-md);
    display: grid;
    gap: var(--gap-xl);
    grid-template-columns: 1fr;
}
@media (min-width: 980px) {
    .container-with-sidebar { grid-template-columns: minmax(0,1fr) 320px; }
}
/* Espace entre le header sticky et le contenu de la page (sauf homepage qui a un hero pleine largeur) */
main > .container,
main > .container-narrow,
main > .container-with-sidebar {
    padding-top: var(--gap-lg);
}
body.layout-homepage main > .container { padding-top: 0; }

/* ============================================================
 * Header
 * ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--c-border);
}
.header-inner {
    max-width: var(--container-max);
    margin-inline: auto;
    padding: .75rem var(--gap-md);
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--gap-md);
}
.brand {
    display: inline-flex; align-items: center; gap: .6rem;
    text-decoration: none; color: var(--c-text-heading);
    font-weight: 800; font-size: 1.05rem;
}
.brand-icon { flex-shrink: 0; }
.brand-name-accent { color: var(--c-primary); }

.main-nav { display: none; }
.main-nav > ul { display: flex; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.main-nav a {
    color: var(--c-text-heading); text-decoration: none;
    font-weight: 600; font-size: .94rem;
    padding: .25rem 0; border-bottom: 2px solid transparent;
    transition: border-color .2s, color .2s;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.main-nav .nav-cta {
    background: var(--c-primary); color: white;
    padding: .5rem 1rem; border-radius: var(--r-md); border: none;
}
.main-nav .nav-cta:hover { background: var(--c-primary-dark); color: white; }

.has-submenu { position: relative; }
.submenu {
    display: none;
    position: absolute; top: 100%; left: 0;
    flex-direction: column; gap: 0;
    background: white; border: 1px solid var(--c-border); border-radius: var(--r-md);
    padding: .5rem; min-width: 240px; box-shadow: var(--shadow-lg);
    list-style: none; margin: 0;
    /* padding-top crée un overlap visuel avec le parent (anti-gap hover) */
    padding-top: calc(.5rem + 8px);
    margin-top: -8px;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu { display: flex; }
.submenu li { margin: 0; width: 100%; }
.submenu a { display: block; padding: .55rem .75rem; border-radius: var(--r-sm); border-bottom: none; white-space: nowrap; }
.submenu a:hover { background: var(--c-bg-alt); }

.header-cta {
    display: none; padding: .55rem 1.1rem; background: var(--c-primary); color: white;
    border-radius: var(--r-md); text-decoration: none; font-weight: 600;
    transition: background .2s;
}
.header-cta:hover { background: var(--c-primary-dark); color: white; }

.nav-toggle {
    background: none; border: none; padding: .5rem; cursor: pointer;
    display: flex; flex-direction: column; gap: 4px;
}
.nav-toggle span {
    width: 24px; height: 2px; background: var(--c-text-heading); border-radius: 2px;
    transition: transform .2s;
}

@media (min-width: 880px) {
    .main-nav { display: block; }
    .nav-toggle { display: none; }
    .header-cta { display: inline-block; }
}

/* Mobile menu open */
.nav-open .main-nav {
    display: block; position: fixed; inset: 60px 0 0 0;
    background: white; padding: 2rem var(--gap-md); z-index: 99;
    overflow-y: auto;
}
.nav-open .main-nav ul { flex-direction: column; gap: 1rem; }
.nav-open .submenu { position: static; box-shadow: none; border: 0; padding-left: 1rem; display: block; }

/* ============================================================
 * Buttons
 * ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .65rem 1.4rem;
    font-family: inherit; font-weight: 600; font-size: .95rem;
    text-decoration: none; cursor: pointer;
    border: 2px solid transparent; border-radius: var(--r-md);
    transition: background .2s, border-color .2s, color .2s, transform .15s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-primary); color: white; border-color: var(--c-primary); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: white; }
.btn-secondary { background: var(--c-secondary); color: white; border-color: var(--c-secondary); }
.btn-secondary:hover { background: var(--c-secondary-dark); color: white; }
.btn-outline { background: transparent; color: var(--c-secondary); border-color: var(--c-secondary); }
.btn-outline:hover { background: var(--c-secondary); color: white; }
.btn-danger { background: var(--c-danger); color: white; border-color: var(--c-danger); }
.btn-danger:hover { background: #C92D3B; color: white; }
.btn-success { background: var(--c-success); color: white; border-color: var(--c-success); }
.btn-warning { background: var(--c-warning); color: var(--c-text-heading); border-color: var(--c-warning); }
.btn-large { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn-small { padding: .35rem .8rem; font-size: .85rem; }
.btn-block { display: flex; width: 100%; }

/* ============================================================
 * Hero (homepage)
 * ============================================================ */
.hero {
    background:
        radial-gradient(ellipse at top right, rgba(230,57,70,.06), transparent 50%),
        linear-gradient(180deg, var(--c-accent), white);
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: var(--gap-md); text-align: center; }
.hero-h1-accent { color: var(--c-primary); display: inline-block; }
.hero-subtitle {
    text-align: center; font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--c-text-muted); max-width: 720px; margin: 0 auto var(--gap-xl);
}

.hero-search-box {
    max-width: 760px; margin: 0 auto;
    background: white; border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: var(--gap-lg);
    box-shadow: var(--shadow-xl);
    position: relative;
}
.search-row {
    display: flex; gap: var(--gap-sm); flex-wrap: wrap;
}
.country-select {
    flex-shrink: 0; padding: .85rem .75rem;
    font-family: inherit; font-size: 1rem;
    border: 1px solid var(--c-border-dark); border-radius: var(--r-md);
    background: white; cursor: pointer;
    min-width: 100px;
}
.search-input {
    flex: 1; min-width: 200px;
    padding: .85rem 1rem;
    font-family: inherit; font-size: 1.1rem;
    border: 1px solid var(--c-border-dark); border-radius: var(--r-md);
    background: white;
    transition: border-color .2s, box-shadow .2s;
}
.search-input:focus {
    outline: none; border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(230,57,70,.15);
}
.search-trust {
    display: flex; gap: var(--gap-md); justify-content: center;
    list-style: none; padding: 0; margin: var(--gap-md) 0 0;
    flex-wrap: wrap; font-size: .9rem; color: var(--c-text-muted);
}

.search-suggestions {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: white; border: 1px solid var(--c-border);
    border-radius: var(--r-md); box-shadow: var(--shadow-lg);
    max-height: 320px; overflow-y: auto; z-index: 10;
}
.search-suggestion {
    display: block; padding: .75rem 1rem;
    text-decoration: none; color: var(--c-text-body);
    border-bottom: 1px solid var(--c-border);
}
.search-suggestion:last-child { border-bottom: none; }
.search-suggestion:hover, .search-suggestion[aria-selected="true"] { background: var(--c-bg-alt); }

/* ============================================================
 * Trust bar
 * ============================================================ */
.trust-bar {
    background: var(--c-secondary);
    color: white;
    padding: .75rem 0;
    text-align: center;
    font-size: .95rem;
}
.trust-bar p { margin: 0; }
.trust-bar strong { color: white; }

/* ============================================================
 * Sections
 * ============================================================ */
.section {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.section:nth-child(even) { background: var(--c-bg-alt); }
.section-header { text-align: center; margin-bottom: var(--gap-xl); }
.section-header h2 { margin-top: 0; }
.section-header p { color: var(--c-text-muted); max-width: 680px; margin-inline: auto; }
.section-cta { text-align: center; margin-top: var(--gap-xl); }

/* ============================================================
 * Grids & Cards
 * ============================================================ */
.grid {
    display: grid; gap: var(--gap-lg);
}
/* Grilles avec max-width + centrage : pas d'étirement bizarre des cards quand la dernière ligne est incomplète */
.grid-cards-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
/* 4 cards exactement (Outils, Pays, etc.) → 4 col desktop, 2 col tablet, 1 col mobile */
.grid-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
    .grid-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .grid-cards-4 { grid-template-columns: 1fr; }
}
.grid-categories { grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); justify-content: center; }
.grid-prefixes { grid-template-columns: repeat(auto-fit, minmax(160px, 200px)); justify-content: center; }

.card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--gap-lg);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-border-dark);
}

.card-number h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.card-number h3 a { text-decoration: none; color: var(--c-text-heading); }
.card-number h3 a:hover { color: var(--c-primary); }
.card-meta { color: var(--c-text-muted); font-size: .9rem; margin: .25rem 0; }
.card-stats { font-size: .85rem; color: var(--c-text-muted); }
.card-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: var(--gap-sm); flex-wrap: wrap; gap: .5rem; }
.card-badge { font-size: .75rem; padding: .15rem .5rem; border-radius: 100px; font-weight: 700; }
.card-type { font-size: .85rem; color: var(--c-text-muted); text-transform: capitalize; }

/* Cat-card */
.cat-card {
    background: white; padding: var(--gap-lg);
    border-radius: var(--r-lg); border: 1px solid var(--c-border);
    text-decoration: none; color: var(--c-text-body);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    display: block;
    border-left: 4px solid var(--cat-color, #999);
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat-card-icon { font-size: 2rem; display: block; margin-bottom: var(--gap-sm); }
.cat-card h3 { margin: 0 0 .5rem; color: var(--c-text-heading); font-size: 1.1rem; }
.cat-card p { margin: 0; font-size: .88rem; color: var(--c-text-muted); }

/* Tool-card */
.tool-card {
    background: white; padding: var(--gap-xl) var(--gap-lg);
    border: 1px solid var(--c-border); border-radius: var(--r-lg);
    text-align: center; text-decoration: none;
    color: var(--c-text-body); display: block;
    transition: transform .2s, box-shadow .2s;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-secondary); color: var(--c-text-body); }
.tool-card-icon { font-size: 2.5rem; display: block; margin-bottom: var(--gap-md); }
.tool-card h3 { margin: 0 0 .5rem; }
.tool-card p { font-size: .9rem; color: var(--c-text-muted); margin: 0; }

/* Prefix-card */
.prefix-card {
    background: white; border: 1px solid var(--c-border); border-radius: var(--r-md);
    padding: var(--gap-md); text-decoration: none; color: var(--c-text-body);
    text-align: center; transition: all .2s;
    display: flex; flex-direction: column; gap: .25rem;
}
.prefix-card:hover { border-color: var(--c-primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.prefix-number { font-size: 1.6rem; font-weight: 800; color: var(--c-primary); }
.prefix-label { font-weight: 600; color: var(--c-text-heading); }
.prefix-desc { font-size: .8rem; color: var(--c-text-muted); }

/* Country pills */
.country-pills {
    display: flex; flex-wrap: wrap; gap: var(--gap-sm); justify-content: center;
}
.country-pill {
    background: white; border: 1px solid var(--c-border);
    padding: .5rem 1rem; border-radius: 100px;
    text-decoration: none; color: var(--c-text-body);
    font-weight: 600; transition: all .2s;
}
.country-pill:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* ============================================================
 * Howto
 * ============================================================ */
.howto-steps {
    list-style: none; padding: 0;
    display: grid; gap: var(--gap-xl);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 900px; margin-inline: auto;
}
@media (max-width: 720px) {
    .howto-steps { grid-template-columns: 1fr; gap: var(--gap-lg); }
}
.howto-steps li { text-align: center; }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--c-primary); color: white; font-weight: 800; font-size: 1.5rem;
    margin-bottom: var(--gap-md);
}
.howto-steps h3 { margin: 0 0 .5rem; }
.howto-steps p { color: var(--c-text-muted); margin: 0; }

/* ============================================================
 * Newsletter
 * ============================================================ */
.section-newsletter { background: var(--c-secondary); }
.newsletter-box {
    text-align: center; max-width: 640px; margin-inline: auto;
    background: white; padding: var(--gap-2xl) var(--gap-lg);
    border-radius: var(--r-xl);
}
.newsletter-form {
    display: flex; gap: var(--gap-sm); max-width: 480px;
    margin: var(--gap-md) auto var(--gap-md); flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
    flex: 1; min-width: 200px; padding: .75rem 1rem;
    border: 1px solid var(--c-border-dark); border-radius: var(--r-md);
    font-family: inherit; font-size: 1rem;
}
.newsletter-form button {
    background: var(--c-primary); color: white; border: none;
    padding: .75rem 1.4rem; border-radius: var(--r-md);
    font-weight: 600; cursor: pointer; transition: background .2s;
}
.newsletter-form button:hover { background: var(--c-primary-dark); }
.newsletter-disclaimer { font-size: .8rem; color: var(--c-text-muted); margin: 0; }

/* ============================================================
 * Footer
 * ============================================================ */
.site-footer {
    background: var(--c-secondary-dark);
    color: rgba(255,255,255,.85);
    padding: var(--gap-3xl) 0 var(--gap-xl);
    margin-top: var(--gap-3xl);
}
.footer-inner { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gap-md); }
.footer-cols { display: grid; gap: var(--gap-xl); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-col h2.footer-col-title, .footer-col h3 { color: white; font-size: 1rem; margin: 0 0 var(--gap-md); text-transform: uppercase; letter-spacing: .05em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: white; }
.footer-newsletter-pitch { font-size: .9rem; color: rgba(255,255,255,.7); margin: 0 0 var(--gap-md); }
.footer-newsletter-note { font-size: .75rem; color: rgba(255,255,255,.55); margin-top: var(--gap-sm); }
.footer-bottom { margin-top: var(--gap-2xl); padding-top: var(--gap-lg); border-top: 1px solid rgba(255,255,255,.15); }
.footer-legal p { font-size: .85rem; margin: 0 0 .25rem; color: rgba(255,255,255,.7); }
.footer-mentions { font-size: .8rem; }
.footer-disclaimer { font-size: .75rem; color: rgba(255,255,255,.5); margin-top: var(--gap-md); }
.footer-legal strong { color: white; }

/* ============================================================
 * Sidebar (page numero/prefixe/etc.)
 * ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: var(--gap-lg); }
.sidebar-block { background: white; border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--gap-lg); }
.sidebar-block h2.sidebar-block-title, .sidebar-block h3 { margin: 0 0 var(--gap-md); font-size: 1.05rem; color: var(--c-text-heading); }
.sidebar-search { display: flex; gap: .5rem; }
.sidebar-search input { flex: 1; padding: .5rem .75rem; border: 1px solid var(--c-border-dark); border-radius: var(--r-md); font-family: inherit; }
.sidebar-search button { padding: .5rem .75rem; background: var(--c-primary); color: white; border: none; border-radius: var(--r-md); cursor: pointer; }
.sidebar-top-list, .sidebar-cat-list { list-style: none; padding: 0; margin: 0; }
.sidebar-top-list li { padding: .5rem 0; border-bottom: 1px solid var(--c-border); font-size: .9rem; }
.sidebar-top-list li:last-child { border-bottom: none; }
.sidebar-top-list a { display: flex; justify-content: space-between; text-decoration: none; color: var(--c-text-heading); align-items: center; }
.sidebar-top-list small { display: block; color: var(--c-text-muted); font-size: .8rem; }
.sidebar-cat-list li { margin: 0; }
.sidebar-cat-list a { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; text-decoration: none; color: var(--c-text-body); font-size: .9rem; }
.sidebar-cat-list a:hover { color: var(--c-primary); }
.cat-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.sidebar-cta { background: var(--c-secondary); color: white; border-color: var(--c-secondary); }
.sidebar-cta h2, .sidebar-cta h3, .sidebar-cta .sidebar-block-title { color: white; }
.sidebar-cta p { color: rgba(255,255,255,.85); font-size: .85rem; }
.newsletter-form-compact { flex-direction: column; }
.newsletter-form-compact input { font-size: .9rem; }
.newsletter-form-compact button { width: 100%; }

/* ============================================================
 * Page numéro
 * ============================================================ */
.breadcrumb { font-size: .88rem; color: var(--c-text-muted); margin: var(--gap-md) 0; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: .5rem; color: var(--c-border-dark); }
.breadcrumb a { color: var(--c-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-primary); }

.numero-header h1 { margin-bottom: var(--gap-sm); }
.h1-sub { display: block; font-size: 1.15rem; font-weight: 500; color: var(--c-text-muted); margin-top: .35rem; }

.numero-info-block {
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: var(--gap-xl);
    margin: var(--gap-lg) 0;
    box-shadow: var(--shadow-sm);
}
.numero-display { display: flex; align-items: center; gap: var(--gap-md); flex-wrap: wrap; margin-bottom: var(--gap-lg); }
.numero-display-number {
    font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; color: var(--c-text-heading);
    font-feature-settings: 'tnum';
}
.btn-copy {
    background: var(--c-bg-alt); border: 1px solid var(--c-border-dark);
    padding: .5rem 1rem; border-radius: var(--r-md);
    color: var(--c-text-body); font-weight: 600;
}
.btn-copy:hover { background: var(--c-secondary); color: white; border-color: var(--c-secondary); }

.numero-meta-grid {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: var(--gap-md);
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-bottom: var(--gap-lg);
}
.numero-meta-grid li { display: flex; flex-direction: column; gap: .25rem; }
.meta-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--c-text-muted); font-weight: 600; }
.meta-value { font-weight: 600; color: var(--c-text-heading); }

.spam-gauge { margin: var(--gap-lg) 0; }
.spam-gauge-label { display: flex; justify-content: space-between; margin-bottom: .35rem; font-weight: 600; }
.spam-gauge-bar { height: 12px; background: var(--c-bg-alt); border-radius: 100px; overflow: hidden; border: 1px solid var(--c-border); }
.spam-gauge-fill {
    height: 100%; background: linear-gradient(90deg, var(--c-success), var(--c-warning), var(--c-danger));
    border-radius: 100px; transition: width .3s;
}
.spam-gauge-stats { font-size: .85rem; color: var(--c-text-muted); margin-top: .35rem; }

.numero-cta { text-align: center; margin-top: var(--gap-lg); }

/* ============================================================
 * Quick Vote (1-click signalement par catégorie)
 * ============================================================ */
.quick-vote {
    margin-top: var(--gap-xl);
    padding-top: var(--gap-lg);
    border-top: 1px solid var(--c-border);
}
.quick-vote-prompt {
    text-align: center;
    margin: 0 0 var(--gap-md);
    color: var(--c-text-body);
    line-height: 1.5;
}
.quick-vote-prompt strong {
    color: var(--c-text-heading);
    font-size: 1.05rem;
}
.quick-vote-grid {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 200px));
    justify-content: center;
    margin-bottom: var(--gap-md);
}
.quick-vote-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
    padding: 1rem .75rem;
    background: white;
    border: 2px solid var(--c-border);
    border-radius: var(--r-md);
    cursor: pointer;
    text-align: center;
    transition: all .15s ease-out;
    min-height: 86px;
    font-family: inherit;
    color: var(--c-text-body);
    border-left: 4px solid var(--cat-color, var(--c-border));
    position: relative;
}
.quick-vote-btn:hover {
    border-color: var(--cat-color, var(--c-secondary));
    box-shadow: 0 4px 14px -4px rgba(15,23,42,.12);
    transform: translateY(-2px);
}
.quick-vote-btn:active { transform: translateY(0); }
.quick-vote-btn:focus-visible {
    outline: 3px solid var(--cat-color, var(--c-secondary));
    outline-offset: 2px;
}
.quick-vote-btn .qv-icon { font-size: 1.6rem; line-height: 1; }
.quick-vote-btn .qv-label { font-size: .85rem; font-weight: 600; line-height: 1.25; color: var(--c-text-heading); }
.quick-vote-btn[disabled] { opacity: .5; pointer-events: none; cursor: default; }
.quick-vote-btn.is-voting {
    pointer-events: none;
    border-color: var(--cat-color);
    opacity: .8;
}
.quick-vote-btn.is-voted {
    background: var(--cat-color);
    border-color: var(--cat-color);
    color: white;
}
.quick-vote-btn.is-voted .qv-label { color: white; }
.quick-vote-btn.is-voted::after {
    content: '✓';
    position: absolute;
    top: 6px; right: 6px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: white;
    color: var(--cat-color);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: .85rem;
    animation: qv-pop .35s cubic-bezier(.5, 1.5, .5, 1);
}
@keyframes qv-pop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.quick-vote-note {
    text-align: center;
    color: var(--c-text-muted);
    font-size: .82rem;
    margin: 0;
}
.quick-vote-toast {
    position: fixed;
    bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--c-secondary); color: white;
    padding: .85rem 1.5rem;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    font-weight: 600; z-index: 9999;
    opacity: 0;
    transition: transform .3s cubic-bezier(.5, 1.5, .5, 1), opacity .2s;
    max-width: calc(100vw - 32px);
    text-align: center; font-size: .92rem;
}
.quick-vote-toast.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.quick-vote-toast.is-success { background: var(--c-success); }
.quick-vote-toast.is-error { background: var(--c-danger); }
.spam-gauge.is-flash { animation: qv-score-flash 1s ease-out; }
@keyframes qv-score-flash {
    0%, 100% { background: transparent; }
    30% { background: rgba(230, 57, 70, .08); }
}
@media (max-width: 640px) {
    .quick-vote-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
    .quick-vote-btn { padding: .85rem .5rem; min-height: 76px; }
    .quick-vote-btn .qv-icon { font-size: 1.4rem; }
    .quick-vote-btn .qv-label { font-size: .78rem; }
}

/* Comments */
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-item {
    padding: var(--gap-lg) 0;
    border-bottom: 1px solid var(--c-border);
}
.comment-item:last-child { border-bottom: none; }
.comment-meta { display: flex; gap: var(--gap-md); flex-wrap: wrap; align-items: center; font-size: .85rem; margin-bottom: .5rem; }
.comment-author { color: var(--c-text-heading); }
.comment-category { font-weight: 600; }
.comment-meta time { color: var(--c-text-muted); }
.comment-body { margin: 0 0 var(--gap-sm); }
.comment-votes { display: flex; gap: .5rem; }
.vote-btn {
    background: var(--c-bg-alt); border: 1px solid var(--c-border);
    padding: .25rem .75rem; border-radius: var(--r-md);
    font-size: .85rem; cursor: pointer; transition: all .2s;
}
.vote-btn:hover { background: var(--c-bg-card); border-color: var(--c-border-dark); }
.vote-btn.voted { background: var(--c-secondary); color: white; border-color: var(--c-secondary); }

/* Empty state */
.empty-state { text-align: center; padding: var(--gap-2xl) var(--gap-lg); background: var(--c-bg-alt); border-radius: var(--r-lg); margin: var(--gap-lg) 0; }
.empty-state p { color: var(--c-text-muted); }

/* Sections internes page numéro */
.section-comments, .section-content, .section-similar, .section-protection, .section-faq, .section-related-articles {
    margin: var(--gap-2xl) 0;
}

/* FAQ */
.faq-item {
    border: 1px solid var(--c-border); border-radius: var(--r-md);
    margin-bottom: .5rem; padding: 0;
}
.faq-item summary {
    cursor: pointer; padding: var(--gap-md); font-weight: 600;
    color: var(--c-text-heading);
    list-style: none;
    position: relative; padding-right: 2rem;
}
.faq-item summary::after {
    content: '+'; position: absolute; right: var(--gap-md); top: 50%;
    transform: translateY(-50%); font-size: 1.4rem; color: var(--c-primary);
    transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer { padding: 0 var(--gap-md) var(--gap-md); color: var(--c-text-body); }

/* Similar cards */
.similar-card {
    display: flex; flex-direction: column; gap: .25rem;
    background: white; border: 1px solid var(--c-border); border-radius: var(--r-md);
    padding: var(--gap-md); text-decoration: none; color: var(--c-text-body);
    transition: all .2s;
}
.similar-card:hover { border-color: var(--c-primary); }
.similar-meta { font-size: .85rem; color: var(--c-text-muted); }

/* Numero footer */
.numero-footer { margin-top: var(--gap-2xl); padding-top: var(--gap-lg); border-top: 1px solid var(--c-border); }
.share-buttons { display: flex; gap: var(--gap-sm); align-items: center; flex-wrap: wrap; margin-bottom: var(--gap-md); }
.share-buttons a { padding: .35rem .8rem; background: var(--c-bg-alt); border: 1px solid var(--c-border); border-radius: var(--r-md); color: var(--c-text-body); text-decoration: none; font-size: .85rem; }
.share-buttons a:hover { background: var(--c-secondary); color: white; border-color: var(--c-secondary); }
.last-update { color: var(--c-text-muted); font-size: .85rem; }

/* ============================================================
 * Page préfixe / pays
 * ============================================================ */
.prefix-grid {
    display: grid; gap: .5rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 180px));
    justify-content: center;
    margin-bottom: var(--gap-xl);
}
.prefix-cell {
    background: white; border: 1px solid var(--c-border); border-radius: var(--r-md);
    padding: var(--gap-md) var(--gap-sm); text-decoration: none; color: var(--c-text-body);
    text-align: center; transition: all .2s;
    display: flex; flex-direction: column; gap: .15rem;
}
.prefix-cell:hover { border-color: var(--c-primary); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.prefix-cell strong { font-size: 1.1rem; color: var(--c-text-heading); }
.prefix-cell small { color: var(--c-text-muted); font-size: .75rem; }
.prefix-cell em { font-style: normal; font-size: .7rem; color: var(--c-text-muted); }

.prefix-meta-grid { list-style: none; padding: 0; margin: 0; display: flex; gap: var(--gap-lg); flex-wrap: wrap; }
.prefix-meta-grid li { display: flex; flex-direction: column; gap: .15rem; }

.number-mini-card {
    background: white; border: 1px solid var(--c-border); border-radius: var(--r-md);
    padding: var(--gap-md); text-decoration: none; color: var(--c-text-body);
    display: flex; flex-direction: column; gap: .25rem;
}
.number-mini-card:hover { border-color: var(--c-primary); }
.number-mini-card span { font-size: .85rem; color: var(--c-text-muted); }

.nearby-list { list-style: none; padding: 0; }
.nearby-list a { color: var(--c-text-body); text-decoration: none; }

/* ============================================================
 * Top page
 * ============================================================ */
.top-table {
    width: 100%; border-collapse: collapse;
    background: white; border-radius: var(--r-lg); overflow: hidden;
    margin-top: var(--gap-lg);
}
.top-table thead {
    background: var(--c-secondary); color: white;
}
.top-table th { padding: .75rem; text-align: left; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.top-table td { padding: .75rem; border-bottom: 1px solid var(--c-border); font-size: .92rem; }
.top-table tr:nth-child(even) td { background: var(--c-bg-alt); }
.top-table .rank { font-weight: 800; color: var(--c-primary); width: 40px; }
.top-table a { color: var(--c-text-heading); text-decoration: none; }

/* ===== Tabs pays sur page Top ===== */
.top-tabs {
    display: flex; flex-wrap: wrap; gap: .4rem;
    margin: var(--gap-md) 0 var(--gap-lg);
    padding-bottom: var(--gap-md);
    border-bottom: 1px solid var(--c-border);
}
.top-tab {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .5rem .9rem;
    background: white; border: 1px solid var(--c-border);
    border-radius: 100px; text-decoration: none;
    color: var(--c-text-body); font-size: .9rem; font-weight: 600;
    transition: border-color .15s, background .15s, transform .1s;
}
.top-tab:hover { border-color: var(--c-secondary); transform: translateY(-1px); color: var(--c-text-heading); }
.top-tab.is-active {
    background: var(--c-secondary); color: white; border-color: var(--c-secondary);
}
.top-tab-flag { font-size: 1.1rem; line-height: 1; }
.top-tab-count {
    background: rgba(0,0,0,.06);
    padding: .05rem .45rem; border-radius: 100px;
    font-size: .72rem; font-weight: 700;
    color: var(--c-text-muted);
}
.top-tab.is-active .top-tab-count { background: rgba(255,255,255,.2); color: rgba(255,255,255,.9); }

/* Top weekly */
.editorial-intro { background: var(--c-bg-alt); padding: var(--gap-lg); border-left: 4px solid var(--c-primary); border-radius: var(--r-md); margin: var(--gap-lg) 0; }
.weekly-list { list-style: none; padding: 0; }
.weekly-item { display: flex; gap: var(--gap-lg); padding: var(--gap-lg); border-bottom: 1px solid var(--c-border); }
.weekly-rank { flex-shrink: 0; }
.rank-num { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--c-primary); color: white; font-weight: 800; font-size: 1.5rem; }
.weekly-body h2 { margin: 0 0 .35rem; }
.weekly-meta { color: var(--c-text-muted); font-size: .9rem; margin: 0 0 .5rem; }
.weekly-excerpt { color: var(--c-text-body); margin-bottom: .5rem; }
.link-arrow { color: var(--c-primary); font-weight: 600; text-decoration: none; }

/* ============================================================
 * Forms
 * ============================================================ */
.form-stacked { display: flex; flex-direction: column; gap: var(--gap-md); max-width: 600px; }
.form-row { display: flex; flex-direction: column; gap: .35rem; }
.form-row label { font-weight: 600; color: var(--c-text-heading); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="password"],
.form-row select,
.form-row textarea {
    padding: .65rem .85rem;
    border: 1px solid var(--c-border-dark); border-radius: var(--r-md);
    font-family: inherit; font-size: 1rem;
    background: white;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none; border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(230,57,70,.1);
}
.form-row small { color: var(--c-text-muted); font-size: .82rem; }
.form-disclaimer { background: var(--c-bg-alt); padding: var(--gap-md); border-radius: var(--r-md); font-size: .85rem; color: var(--c-text-muted); }
.form-disclaimer p { margin: 0; }
.form-actions { margin-top: var(--gap-md); }

/* ============================================================
 * Alerts
 * ============================================================ */
.alert {
    padding: var(--gap-md) var(--gap-lg); border-radius: var(--r-md);
    margin: var(--gap-md) 0; border: 1px solid;
}
.alert-success { background: #ECFDF5; border-color: #06D6A0; color: #065F46; }
.alert-error { background: #FEE2E2; border-color: #E63946; color: #991B1B; }
.alert-warning { background: #FFFBEB; border-color: #FFB703; color: #92400E; }
.alert ul { padding-left: 1.5em; margin: 0; }

/* ============================================================
 * Badges
 * ============================================================ */
.badge {
    display: inline-block; padding: .15rem .55rem;
    border-radius: 100px; font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .03em;
    background: var(--c-bg-alt); color: var(--c-text-body);
    white-space: nowrap;
}
.badge-danger { background: var(--c-danger); color: white; }
.badge-warning { background: var(--c-warning); color: var(--c-text-heading); }
.badge-success { background: var(--c-success); color: white; }
.badge-mobile { background: #DBEAFE; color: #1E40AF; }
.badge-fixe { background: #E0E7FF; color: #3730A3; }
.badge-gratuit { background: #D1FAE5; color: #065F46; }
.badge-surtaxe { background: #FEE2E2; color: #991B1B; }
.badge-pending { background: #FEF3C7; color: #92400E; }
.badge-approved { background: #D1FAE5; color: #065F46; }
.badge-rejected { background: #FEE2E2; color: #991B1B; }
.badge-flagged { background: #FED7AA; color: #9A3412; }

/* ============================================================
 * AdSense placeholders
 * ============================================================ */
.ad-container { margin: var(--gap-xl) 0; min-height: 100px; }
.ad-label-tiny { display: block; font-size: .7rem; color: var(--c-text-muted); text-align: center; margin-bottom: .25rem; text-transform: uppercase; letter-spacing: .05em; }
.ad-placeholder {
    background: linear-gradient(135deg, rgba(241, 250, 238, 0.8) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px dashed var(--c-border-dark);
    border-radius: var(--r-lg);
    margin: var(--gap-xl) 0;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ad-placeholder:hover {
    border-color: var(--c-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.ad-placeholder-link {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .35rem;
    padding: 2.5rem var(--gap-lg);
    text-decoration: none;
    color: var(--c-text-body);
    text-align: center;
}
.ad-placeholder-eyebrow {
    font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
    color: var(--c-primary);
}
.ad-placeholder-title {
    font-size: 1.1rem; font-weight: 700; color: var(--c-text-heading);
    max-width: 540px; line-height: 1.3;
}
.ad-placeholder-cta {
    margin-top: .35rem;
    color: var(--c-secondary); font-weight: 600; font-size: .9rem;
}
.ad-placeholder-inline .ad-placeholder-link {
    padding: 1.75rem var(--gap-md);
}

/* ============================================================
 * Comparateur apps
 * ============================================================ */
.comparateur-table { width: 100%; border-collapse: collapse; background: white; }
.comparateur-table th, .comparateur-table td { padding: .75rem; border-bottom: 1px solid var(--c-border); text-align: left; }
.comparateur-table thead { background: var(--c-secondary); color: white; }
.table-scroll { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--c-border); }

.app-review { background: white; border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--gap-xl); margin: var(--gap-xl) 0; }
.app-review-header { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; margin-bottom: var(--gap-md); }
.app-review-header h3 { margin: 0; }
.app-rating .star-filled { color: var(--c-warning); }
.app-rating .star-empty { color: var(--c-border-dark); }
.app-grid { display: grid; gap: var(--gap-lg); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: var(--gap-md) 0; }
.app-grid h4 { margin: 0 0 .5rem; font-size: 1rem; }
.app-grid ul { margin: 0; padding-left: 1.25rem; font-size: .9rem; }
.app-actions { display: flex; gap: var(--gap-md); align-items: center; flex-wrap: wrap; margin-top: var(--gap-lg); padding-top: var(--gap-md); border-top: 1px solid var(--c-border); }
.app-platforms { color: var(--c-text-muted); font-size: .85rem; }

/* ============================================================
 * Quiz
 * ============================================================ */
.quiz-app { margin: var(--gap-xl) 0; }
.quiz-app:not(:has(.quiz-intro-card)) {
    background: white; border: 2px solid var(--c-border); border-radius: var(--r-xl);
    padding: var(--gap-xl); min-height: 200px;
}

/* ============================================================
 * Quiz intro card — version engageante
 * ============================================================ */
.quiz-intro-card {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(230,57,70,.07) 0%, transparent 60%),
        linear-gradient(180deg, var(--c-accent) 0%, white 70%);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 8px 24px -12px rgba(29,53,87,.15);
    text-align: center;
    overflow: hidden;
    position: relative;
}
.quiz-intro-card::before {
    content: '🎯';
    position: absolute;
    top: -20px; right: -20px;
    font-size: 9rem;
    opacity: .035;
    transform: rotate(-15deg);
    pointer-events: none;
}

.quiz-intro-meta {
    display: flex; align-items: center; justify-content: center;
    gap: clamp(.75rem, 3vw, 2rem);
    margin-bottom: var(--gap-lg);
    flex-wrap: wrap;
}
.qim-stat { display: flex; flex-direction: column; gap: .15rem; align-items: center; }
.qim-num { font-size: clamp(1.5rem, 3vw, 1.85rem); font-weight: 900; color: var(--c-secondary); font-feature-settings: 'tnum'; line-height: 1; letter-spacing: -.03em; }
.qim-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-text-muted); font-weight: 600; }
.qim-divider { width: 1px; height: 36px; background: var(--c-border-dark); }

.quiz-intro-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    margin: 0 0 var(--gap-md);
    color: var(--c-text-heading);
    line-height: 1.2;
    letter-spacing: -.02em;
    max-width: 520px;
    margin-inline: auto;
}
.quiz-intro-pitch {
    color: var(--c-text-body);
    max-width: 540px;
    margin: 0 auto var(--gap-lg);
    line-height: 1.55;
}

.quiz-intro-cats {
    display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center;
    align-items: center;
    max-width: 600px; margin: 0 auto var(--gap-xl);
}
.qic-label {
    font-size: .85rem; color: var(--c-text-muted); font-weight: 600;
    width: 100%; margin-bottom: .35rem;
}
.qic-pill {
    background: white;
    border: 1px solid var(--c-border);
    border-left: 3px solid var(--c, var(--c-secondary));
    padding: .35rem .7rem;
    border-radius: 100px;
    font-size: .82rem; font-weight: 600;
    color: var(--c-text-heading);
    white-space: nowrap;
}
.qic-pill-more { color: var(--c-text-muted); border-left-color: var(--c-border); font-style: italic; }

/* Bouton CTA principal */
.btn-quiz-start {
    display: inline-flex; align-items: center; gap: .9rem;
    background: var(--c-primary); color: white; border: none;
    padding: 1rem 1.75rem 1rem 1.4rem;
    border-radius: var(--r-lg);
    font-family: inherit; cursor: pointer;
    box-shadow: 0 4px 14px -2px rgba(230,57,70,.4), 0 1px 3px rgba(0,0,0,.08);
    transition: transform .15s, box-shadow .2s, background .15s;
    margin: 0 auto var(--gap-md);
    font-size: 1rem;
    text-align: left;
}
.btn-quiz-start:hover {
    background: var(--c-primary-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px -5px rgba(230,57,70,.5), 0 1px 3px rgba(0,0,0,.1);
}
.btn-quiz-start:active { transform: translateY(0) scale(1); }
.btn-quiz-start:focus-visible { outline: 3px solid rgba(230,57,70,.4); outline-offset: 3px; }

.bqs-arrow {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    font-size: 1rem;
    margin-left: -.4rem;
    flex-shrink: 0;
    transition: transform .2s, background .15s;
}
.btn-quiz-start:hover .bqs-arrow {
    transform: translateX(3px);
    background: rgba(255,255,255,.25);
}
.bqs-content { display: flex; flex-direction: column; gap: .15rem; }
.bqs-label { font-weight: 700; font-size: 1.1rem; line-height: 1.2; letter-spacing: -.01em; }
.bqs-hint { font-size: .78rem; opacity: .85; font-weight: 500; }

.quiz-intro-trust {
    display: flex; gap: var(--gap-md); justify-content: center; flex-wrap: wrap;
    color: var(--c-text-muted); font-size: .85rem;
    padding-top: var(--gap-md);
    border-top: 1px solid var(--c-border);
    margin-top: var(--gap-md);
}

@media (max-width: 540px) {
    .qim-divider-hide-mobile,
    .qim-stat-hide-mobile { display: none; }
    .btn-quiz-start { width: 100%; padding: .85rem 1.25rem .85rem 1rem; }
    .bqs-arrow { width: 36px; height: 36px; }
    .bqs-label { font-size: 1rem; }
    .quiz-intro-trust { gap: .65rem; font-size: .78rem; }
}
.quiz-question { margin-bottom: var(--gap-lg); }
.quiz-scenario { background: var(--c-bg-alt); border-left: 4px solid var(--c-secondary); padding: var(--gap-md); border-radius: var(--r-sm); font-style: italic; color: var(--c-text-muted); margin-bottom: var(--gap-md); }
.quiz-question-text { font-size: 1.15rem; font-weight: 600; color: var(--c-text-heading); }
.quiz-options { display: flex; flex-direction: column; gap: .75rem; margin: var(--gap-md) 0; }
.quiz-option {
    background: var(--c-bg-alt); border: 2px solid var(--c-border);
    padding: var(--gap-md); border-radius: var(--r-md);
    cursor: pointer; text-align: left; font-family: inherit; font-size: 1rem;
    transition: all .2s;
}
.quiz-option:hover { border-color: var(--c-secondary); background: white; }
.quiz-option.correct { border-color: var(--c-success); background: #ECFDF5; }
.quiz-option.wrong { border-color: var(--c-danger); background: #FEE2E2; }
.quiz-feedback {
    background: var(--c-bg-alt); border-radius: var(--r-md);
    padding: var(--gap-md); margin: var(--gap-md) 0;
}
.quiz-progress { font-size: .85rem; color: var(--c-text-muted); margin-bottom: var(--gap-md); }
.quiz-final { text-align: center; padding: var(--gap-xl); }
.quiz-final-score { font-size: 3rem; font-weight: 800; color: var(--c-primary); margin: var(--gap-md) 0; }

/* ============================================================
 * Verificateur
 * ============================================================ */
.verifier-tool {
    background: white; border: 1px solid var(--c-border); border-radius: var(--r-xl);
    padding: var(--gap-xl); margin: var(--gap-lg) 0;
}
.verifier-tool input {
    width: 100%; padding: .85rem; font-size: 1.2rem;
    border: 1px solid var(--c-border-dark); border-radius: var(--r-md);
    font-family: var(--font-mono);
}
.verif-result { margin-top: var(--gap-lg); }
.verif-row { padding: .5rem 0; border-bottom: 1px dashed var(--c-border); display: flex; justify-content: space-between; gap: var(--gap-md); flex-wrap: wrap; }
.verif-action { margin-top: var(--gap-md); text-align: center; }
.verif-error {
    margin: var(--gap-sm) 0 0;
    padding: .75rem 1rem;
    background: #FEE2E2;
    color: #991B1B;
    border-left: 3px solid var(--c-danger);
    border-radius: var(--r-sm);
    font-size: .9rem;
}

.prefix-table { width: 100%; border-collapse: collapse; }
.prefix-table th, .prefix-table td { padding: .5rem; text-align: left; border-bottom: 1px solid var(--c-border); }
.prefix-table th { background: var(--c-bg-alt); }

/* ============================================================
 * Carte spam
 * ============================================================ */
.spam-map { height: 500px; background: var(--c-bg-alt); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; color: var(--c-text-muted); margin: var(--gap-lg) 0; }
.stats-table { width: 100%; border-collapse: collapse; margin: var(--gap-lg) 0; }
.stats-table th, .stats-table td { padding: .5rem; text-align: left; border-bottom: 1px solid var(--c-border); }
.stats-table th { background: var(--c-bg-alt); }

/* ============================================================
 * Articles
 * ============================================================ */
.article-header { margin-bottom: var(--gap-xl); }
.article-cat { color: var(--c-primary); text-transform: uppercase; font-weight: 700; font-size: .85rem; letter-spacing: .05em; }
.article-cat a { color: var(--c-primary); text-decoration: none; }
.article-meta { color: var(--c-text-muted); font-size: .9rem; }
.article-meta strong { color: var(--c-text-heading); }
.article-hero { margin: var(--gap-xl) 0; }
.article-hero img { border-radius: var(--r-lg); width: 100%; max-height: 400px; object-fit: cover; }
.article-body { font-size: 1.05rem; line-height: 1.75; }
.article-body p, .article-body ul, .article-body ol, .article-body blockquote, .article-body table { margin-bottom: var(--gap-md); }
.article-body h2, .article-body h3 { margin-top: var(--gap-2xl); }
.article-body blockquote { background: var(--c-bg-alt); border-left: 4px solid var(--c-primary); padding: var(--gap-md) var(--gap-lg); border-radius: var(--r-sm); font-style: italic; color: var(--c-text-body); }
.article-body table { width: 100%; border-collapse: collapse; }
.article-body th, .article-body td { padding: .5rem .75rem; border: 1px solid var(--c-border); text-align: left; }
.article-body th { background: var(--c-bg-alt); }
.article-body a { color: var(--c-primary); }
.article-tags { margin-top: var(--gap-xl); padding-top: var(--gap-md); border-top: 1px solid var(--c-border); }
.tag-pill { display: inline-block; padding: .15rem .65rem; background: var(--c-bg-alt); border-radius: 100px; text-decoration: none; color: var(--c-text-body); font-size: .85rem; margin: .15rem; }
.tag-pill:hover { background: var(--c-secondary); color: white; }
/* Featured images : aspect-ratio 1.91:1 réservé pour anti-CLS (Lighthouse) */
.card-article img {
    border-radius: var(--r-md);
    margin-bottom: var(--gap-md);
    width: 100%;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    background: var(--c-bg-alt);
}
.article-hero img {
    width: 100%;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    background: var(--c-bg-alt);
}
.card-article h2, .card-article h3 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    line-height: 1.3;
    letter-spacing: -.01em;
}
.card-article a { text-decoration: none; color: var(--c-text-heading); }
.card-article a:hover { color: var(--c-primary); }
.card-image-link { display: block; }

/* ============================================================
 * Page-cta
 * ============================================================ */
.page-cta { background: var(--c-secondary); color: white; padding: var(--gap-xl); border-radius: var(--r-lg); text-align: center; margin: var(--gap-2xl) 0; }
.page-cta h2 { color: white; margin-top: 0; }

/* ============================================================
 * Cookie banner
 * ============================================================ */
.cookie-banner {
    position: fixed; bottom: 1rem; left: 1rem; right: 1rem;
    background: white; border: 1px solid var(--c-border-dark);
    border-radius: var(--r-lg); box-shadow: var(--shadow-xl);
    padding: var(--gap-lg); z-index: 1000;
    max-width: 640px; margin-inline: auto;
}
.cookie-banner h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.cookie-banner p { font-size: .9rem; margin: 0 0 var(--gap-md); }
.cookie-actions { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.cookie-categories { border: 1px solid var(--c-border); padding: var(--gap-md); margin-top: var(--gap-md); border-radius: var(--r-md); display: flex; flex-direction: column; gap: .5rem; }
.cookie-categories label { display: flex; gap: .5rem; align-items: center; cursor: pointer; }

/* ============================================================
 * Page erreurs
 * ============================================================ */
.error-page { text-align: center; padding: var(--gap-3xl) var(--gap-md); }
.error-page h1 { font-size: 6rem; color: var(--c-primary); margin: 0; }
.error-page h2 { margin-top: 0; }
.error-page .btn { margin: .25rem; }

/* ============================================================
 * Pagination
 * ============================================================ */
.pagination { display: flex; gap: var(--gap-md); align-items: center; justify-content: center; margin: var(--gap-xl) 0; }
.pagination a { padding: .5rem 1rem; background: white; border: 1px solid var(--c-border); border-radius: var(--r-md); text-decoration: none; color: var(--c-text-body); }
.pagination a:hover { background: var(--c-bg-alt); }

/* ============================================================
 * Page header common
 * ============================================================ */
.page-header { margin: var(--gap-lg) 0 var(--gap-xl); }
.page-header h1 { margin: 0 0 var(--gap-sm); }
.page-header .lead { font-size: 1.15rem; color: var(--c-text-muted); margin: 0; }

.legal-list, .legal-table { font-size: .95rem; }
.legal-table { width: 100%; border-collapse: collapse; margin: var(--gap-md) 0; }
.legal-table th, .legal-table td { padding: .5rem .75rem; text-align: left; border: 1px solid var(--c-border); }
.legal-table th { background: var(--c-bg-alt); }
.legal-update { color: var(--c-text-muted); font-size: .9rem; margin-bottom: var(--gap-lg); }
.page-legal section { margin-bottom: var(--gap-xl); }
.page-legal h2 { font-size: 1.4rem; margin-top: var(--gap-xl); padding-bottom: .35rem; border-bottom: 1px solid var(--c-border); }

/* ============================================================
 * Print
 * ============================================================ */
@media print {
    .site-header, .site-footer, .sidebar, .ad-container, .ad-placeholder,
    .cookie-banner, .nav-toggle, .header-cta, .share-buttons, .newsletter-box {
        display: none !important;
    }
    body { color: black; background: white; }
    .container, .container-with-sidebar { display: block; max-width: 100%; }
}

/* ============================================================
 * Reduced motion
 * ============================================================ */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}
