/*
Theme Name: MediaPulse
Theme URI: https://example.com/mediapulse
Author: MediaPulse Theme
Author URI: https://example.com
Description: Thème WordPress professionnel optimisé pour Google AdSense. Structure éditoriale claire, typographie soignée, espaces publicitaires stratégiques (728x90, 300x250, 160x600), entièrement responsive et conforme aux politiques Google AdSense.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mediapulse
Tags: blog, news, adsense, responsive, professional, lifestyle, health, travel
*/

/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
    /* Palette */
    --c-ink:       #1a1a1a;
    --c-ink-2:     #3d3d3d;
    --c-ink-3:     #6b6b6b;
    --c-ink-4:     #9e9e9e;
    --c-rule:      #e4e4e4;
    --c-rule-2:    #f0f0f0;
    --c-bg:        #ffffff;
    --c-bg-2:      #f8f8f8;
    --c-bg-3:      #f2f2f2;
    --c-accent:    #c0392b;     /* rouge éditorial */
    --c-accent-2:  #e74c3c;
    --c-cat-life:  #d35400;
    --c-cat-health:#1a6b3c;
    --c-cat-rel:   #7d3c98;
    --c-cat-travel:#1a5276;
    --c-ad-bg:     #fafafa;

    /* Typography */
    --f-display: 'Georgia', 'Times New Roman', serif;
    --f-body:    'Arial', 'Helvetica Neue', sans-serif;
    --f-ui:      'Arial', sans-serif;

    /* Scale */
    --text-xs:   0.6875rem;   /* 11px */
    --text-sm:   0.8125rem;   /* 13px */
    --text-base: 1rem;        /* 16px */
    --text-md:   1.125rem;    /* 18px */
    --text-lg:   1.375rem;    /* 22px */
    --text-xl:   1.75rem;     /* 28px */
    --text-2xl:  2.25rem;     /* 36px */

    /* Layout */
    --max-w:     1200px;
    --gap:       1.5rem;
    --radius:    4px;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

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

a {
    color: inherit;
    text-decoration: none;
}

a:hover { color: var(--c-accent); }

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-display);
    line-height: 1.2;
    color: var(--c-ink);
    font-weight: 700;
}

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT
============================================================ */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    padding: 2rem 0 3rem;
}

/* Two-column content + sidebar */
.content-area {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2.5rem;
    align-items: start;
}

/* ============================================================
   TOP BAR (above header)
============================================================ */
.topbar {
    background: var(--c-ink);
    color: #ccc;
    font-family: var(--f-ui);
    font-size: var(--text-xs);
    padding: 6px 0;
    border-bottom: 2px solid var(--c-accent);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-date { letter-spacing: 0.04em; }

.topbar-social {
    display: flex;
    gap: 12px;
}

.topbar-social a {
    color: #999;
    font-size: var(--text-xs);
    transition: color 0.15s;
}

.topbar-social a:hover { color: #fff; }

/* ============================================================
   HEADER
============================================================ */
.site-header {
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-rule);
}

/* Banner AdSense 728×90 above nav */
.header-ad-wrap {
    padding: 12px 0;
    border-bottom: 1px solid var(--c-rule-2);
}

.header-ad-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1.5rem;
}

/* Branding */
.site-branding { flex-shrink: 0; }

.site-title {
    font-family: var(--f-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--c-ink);
    line-height: 1;
}

.site-title strong {
    color: var(--c-accent);
}

.site-tagline {
    font-family: var(--f-ui);
    font-size: var(--text-xs);
    color: var(--c-ink-4);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 3px;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-search {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--c-rule);
    border-radius: var(--radius);
    background: transparent;
    font-family: var(--f-ui);
    font-size: var(--text-sm);
    color: var(--c-ink-3);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.btn-search:hover {
    border-color: var(--c-ink-3);
    color: var(--c-ink);
}

/* ============================================================
   NAVIGATION PRINCIPALE
============================================================ */
.nav-wrap {
    background: var(--c-ink);
    position: sticky;
    top: 0;
    z-index: 200;
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    align-items: stretch;
}

.nav-menu li { position: relative; }

.nav-menu li a {
    display: flex;
    align-items: center;
    padding: 0 1.1rem;
    height: 48px;
    font-family: var(--f-ui);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ccc;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item > a,
.nav-menu li.current_page_item > a {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Accent de couleur par catégorie */
.nav-menu li.menu-lifestyle > a:hover,
.nav-menu li.menu-lifestyle.current-menu-item > a { color: #e67e22; }

.nav-menu li.menu-health > a:hover,
.nav-menu li.menu-health.current-menu-item > a { color: #2ecc71; }

.nav-menu li.menu-relationships > a:hover,
.nav-menu li.menu-relationships.current-menu-item > a { color: #bb8fce; }

.nav-menu li.menu-travel > a:hover,
.nav-menu li.menu-travel.current-menu-item > a { color: #5dade2; }

/* Dropdown */
.nav-menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--c-rule);
    border-top: 3px solid var(--c-accent);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 300;
}

.nav-menu li:hover > ul { display: block; }

.nav-menu li ul li a {
    height: auto;
    padding: 10px 16px;
    color: var(--c-ink-2);
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--c-rule-2);
}

.nav-menu li ul li:last-child a { border-bottom: none; }

.nav-menu li ul li a:hover {
    background: var(--c-bg-2);
    color: var(--c-accent);
}

/* Nav search */
.nav-search-form {
    display: flex;
    align-items: center;
    padding-left: 1rem;
}

.nav-search-input {
    width: 0;
    height: 28px;
    border: none;
    border-bottom: 1px solid #555;
    background: transparent;
    color: #fff;
    font-family: var(--f-ui);
    font-size: var(--text-sm);
    outline: none;
    transition: width 0.3s ease;
    padding: 0;
}

.nav-search-input:focus { width: 160px; padding: 0 8px; }

/* Hamburger mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: #ccc;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* ============================================================
   BREAKING NEWS TICKER
============================================================ */
.breaking-bar {
    background: var(--c-accent);
    color: #fff;
    font-family: var(--f-ui);
    font-size: var(--text-sm);
    padding: 8px 0;
    overflow: hidden;
}

.breaking-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.breaking-label {
    background: #fff;
    color: var(--c-accent);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.breaking-ticker {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
}

.breaking-ticker ul {
    display: flex;
    gap: 3rem;
    animation: ticker 30s linear infinite;
}

.breaking-ticker ul li a {
    color: rgba(255,255,255,0.9);
}

.breaking-ticker ul li a:hover {
    color: #fff;
}

@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   AD SLOTS — GOOGLE ADSENSE READY
   Toutes les zones respectent les dimensions officielles AdSense
============================================================ */

/* Label "Publicité" requis par les politiques AdSense */
.ad-label {
    display: block;
    font-family: var(--f-ui);
    font-size: var(--text-xs);
    color: var(--c-ink-4);
    text-align: center;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--c-ad-bg);
    border: 1px dashed #ddd;
    border-radius: var(--radius);
    overflow: hidden;
}

/* 728×90 — Leaderboard (header/footer) */
.ad-leaderboard {
    padding: 8px;
}

.ad-leaderboard .ad-inner {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background: var(--c-bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-ui);
    font-size: var(--text-xs);
    color: var(--c-ink-4);
}

/* 300×250 — Rectangle (sidebar, in-content) */
.ad-rectangle {
    padding: 8px;
}

.ad-rectangle .ad-inner {
    width: 300px;
    height: 250px;
    background: var(--c-bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-ui);
    font-size: var(--text-xs);
    color: var(--c-ink-4);
}

/* 160×600 — Wide Skyscraper (sidebar) */
.ad-skyscraper {
    padding: 8px;
}

.ad-skyscraper .ad-inner {
    width: 160px;
    height: 600px;
    background: var(--c-bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-ui);
    font-size: var(--text-xs);
    color: var(--c-ink-4);
}

/* 320×50 — Mobile Banner */
.ad-mobile-banner {
    padding: 6px;
}

.ad-mobile-banner .ad-inner {
    width: 100%;
    max-width: 320px;
    height: 50px;
    background: var(--c-bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-ui);
    font-size: var(--text-xs);
    color: var(--c-ink-4);
}

/* In-content ad — centré entre les paragraphes */
.ad-in-content {
    margin: 2rem auto;
    text-align: center;
}

/* Sidebar ad bloc */
.sidebar-ad-block {
    margin-bottom: 2rem;
}

/* ============================================================
   HERO / FEATURED
============================================================ */
.hero-section {
    background: var(--c-bg);
    padding: 2rem 0;
    border-bottom: 1px solid var(--c-rule);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1px;
    background: var(--c-rule);
    border: 1px solid var(--c-rule);
    border-radius: var(--radius);
    overflow: hidden;
}

.hero-main {
    grid-column: 1;
    grid-row: 1 / 3;
    position: relative;
    background: var(--c-bg-3);
    min-height: 400px;
}

.hero-main .post-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.hero-main .post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.hero-main .post-title {
    font-size: var(--text-xl);
    color: #fff;
    margin-bottom: 0.5rem;
}

.hero-sub { background: var(--c-bg); padding: 1.25rem; }

.hero-sub .post-title {
    font-size: var(--text-lg);
    margin-bottom: 0.35rem;
}

.hero-sub .post-excerpt {
    font-size: var(--text-sm);
    color: var(--c-ink-3);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   CATEGORY BADGE
============================================================ */
.cat-badge {
    display: inline-block;
    font-family: var(--f-ui);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
    margin-bottom: 0.5rem;
}

.cat-lifestyle  { background: #fdf0e6; color: var(--c-cat-life); }
.cat-health     { background: #eafaf1; color: var(--c-cat-health); }
.cat-relationships { background: #f5eef8; color: var(--c-cat-rel); }
.cat-travel     { background: #eaf4fb; color: var(--c-cat-travel); }
.cat-default    { background: var(--c-bg-3); color: var(--c-ink-3); }

/* ============================================================
   POST META
============================================================ */
.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-family: var(--f-ui);
    font-size: var(--text-xs);
    color: var(--c-ink-4);
    margin-bottom: 0.75rem;
}

.post-meta .meta-author { color: var(--c-ink-2); font-weight: 700; }
.post-meta .meta-sep::before { content: '·'; }
.post-meta time { }

/* ============================================================
   ARTICLE CARDS
============================================================ */
.card {
    background: var(--c-bg);
    border: 1px solid var(--c-rule);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--c-bg-3);
}

.card-body { padding: 1rem 1.125rem 1.25rem; }

.card-title {
    font-size: var(--text-md);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.card-title a:hover { color: var(--c-accent); }

.card-excerpt {
    font-size: var(--text-sm);
    color: var(--c-ink-3);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--c-rule-2);
}

.read-more {
    font-family: var(--f-ui);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--c-accent);
    display: flex;
    align-items: center;
    gap: 4px;
}

.read-more::after { content: '→'; }
.read-more:hover { color: var(--c-accent-2); }

/* ============================================================
   CARD GRID LAYOUTS
============================================================ */
.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* Card liste horizontale */
.card-h {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--c-rule);
    transition: box-shadow 0.2s;
}

.card-h:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }

.card-h .card-thumb {
    width: 140px;
    height: 100%;
    min-height: 100px;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 0;
}

.card-h .card-body {
    padding: 0.75rem 1rem;
}

.card-h .card-title { font-size: var(--text-base); }

.cards-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ============================================================
   SECTION TITLES
============================================================ */
.section-title {
    font-family: var(--f-ui);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-ink-3);
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--c-ink);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title .section-title-accent {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--c-accent);
    border-radius: 50%;
}

.section-title-lifestyle  { border-bottom-color: var(--c-cat-life); }
.section-title-health     { border-bottom-color: var(--c-cat-health); }
.section-title-relationships { border-bottom-color: var(--c-cat-rel); }
.section-title-travel     { border-bottom-color: var(--c-cat-travel); }

/* ============================================================
   SINGLE ARTICLE
============================================================ */
.single-header {
    max-width: 800px;
    margin-bottom: 2rem;
}

.single-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.single-featured-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.single-content {
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--c-ink-2);
    max-width: 720px;
}

.single-content h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.single-content h3 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }

.single-content p { margin-bottom: 1.5rem; }

.single-content ul, .single-content ol {
    margin: 0 0 1.5rem 1.5rem;
    list-style: disc;
}

.single-content ol { list-style: decimal; }

.single-content li { margin-bottom: 0.5rem; }

.single-content blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--c-accent);
    background: var(--c-bg-2);
    font-family: var(--f-display);
    font-size: var(--text-lg);
    color: var(--c-ink-2);
    font-style: italic;
}

.single-content a {
    color: var(--c-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-rule);
}

.tag-item {
    font-family: var(--f-ui);
    font-size: var(--text-xs);
    padding: 4px 10px;
    border: 1px solid var(--c-rule);
    border-radius: 20px;
    color: var(--c-ink-3);
    transition: border-color 0.15s, color 0.15s;
}

.tag-item:hover {
    border-color: var(--c-ink-3);
    color: var(--c-ink);
}

/* Author box */
.author-box {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid var(--c-rule);
    border-radius: var(--radius);
    margin-top: 2.5rem;
    background: var(--c-bg-2);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--c-bg-3);
}

.author-name {
    font-size: var(--text-base);
    font-family: var(--f-display);
    margin-bottom: 0.25rem;
}

.author-bio {
    font-size: var(--text-sm);
    color: var(--c-ink-3);
    line-height: 1.55;
}

/* ============================================================
   SIDEBAR
============================================================ */
.sidebar {
    position: relative;
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.sidebar-widget:last-child { margin-bottom: 0; }

.widget-title {
    font-family: var(--f-ui);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-ink-3);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--c-ink);
    margin-bottom: 1rem;
}

/* Popular Posts */
.popular-list { display: flex; flex-direction: column; gap: 1rem; }

.popular-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 0.75rem;
    align-items: start;
}

.popular-thumb {
    width: 70px;
    height: 56px;
    object-fit: cover;
    border-radius: 2px;
    background: var(--c-bg-3);
}

.popular-title {
    font-family: var(--f-display);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--c-ink);
}

.popular-title a:hover { color: var(--c-accent); }

.popular-meta {
    font-family: var(--f-ui);
    font-size: var(--text-xs);
    color: var(--c-ink-4);
    margin-top: 3px;
}

/* Newsletter widget */
.newsletter-widget {
    background: var(--c-ink);
    color: #fff;
    padding: 1.25rem;
    border-radius: var(--radius);
}

.newsletter-title {
    font-family: var(--f-display);
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.4rem;
}

.newsletter-desc {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.65);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-family: var(--f-ui);
    font-size: var(--text-sm);
    outline: none;
    transition: border-color 0.15s;
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-input:focus { border-color: rgba(255,255,255,0.5); }

.btn-newsletter {
    width: 100%;
    padding: 10px;
    background: var(--c-accent);
    color: #fff;
    font-family: var(--f-ui);
    font-size: var(--text-sm);
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: 0.04em;
}

.btn-newsletter:hover { background: var(--c-accent-2); }

/* ============================================================
   PAGINATION
============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 3rem;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--c-rule);
    border-radius: var(--radius);
    font-family: var(--f-ui);
    font-size: var(--text-sm);
    color: var(--c-ink-2);
    transition: background 0.15s, color 0.15s;
}

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

/* ============================================================
   BREADCRUMBS
============================================================ */
.breadcrumbs {
    font-family: var(--f-ui);
    font-size: var(--text-xs);
    color: var(--c-ink-4);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--c-rule-2);
    margin-bottom: 1.5rem;
}

.breadcrumbs a { color: var(--c-ink-3); }
.breadcrumbs a:hover { color: var(--c-accent); }
.breadcrumbs .sep { margin: 0 6px; }
.breadcrumbs .current { color: var(--c-ink-2); }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
    background: #111;
    color: #999;
    margin-top: 3rem;
}

/* Footer AdSense 728×90 */
.footer-ad-bar {
    background: #1a1a1a;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: center;
}

/* Footer main */
.footer-main {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-logo {
    font-family: var(--f-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.footer-logo strong { color: var(--c-accent); }

.footer-about {
    font-size: var(--text-sm);
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #333;
    border-radius: 50%;
    color: #777;
    font-size: 0.75rem;
    transition: border-color 0.15s, color 0.15s;
}

.footer-social a:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

.footer-col-title {
    font-family: var(--f-ui);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #2a2a2a;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: var(--text-sm);
    color: #666;
    transition: color 0.15s, padding-left 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: '';
    width: 4px;
    height: 1px;
    background: var(--c-accent);
    display: inline-block;
    flex-shrink: 0;
    transition: width 0.15s;
}

.footer-links a:hover {
    color: #ccc;
    padding-left: 4px;
}

.footer-links a:hover::before {
    width: 8px;
}

/* Footer bottom bar */
.footer-bottom {
    padding: 1.25rem 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-copy {
    font-family: var(--f-ui);
    font-size: var(--text-xs);
    color: #444;
}

/* Liens légaux (Privacy Policy, Contact, About) */
.footer-legal {
    display: flex;
    align-items: center;
    gap: 0;
}

.footer-legal a {
    font-family: var(--f-ui);
    font-size: var(--text-xs);
    color: #555;
    padding: 0 0.75rem;
    border-right: 1px solid #333;
    line-height: 1;
    transition: color 0.15s;
}

.footer-legal a:last-child { border-right: none; padding-right: 0; }
.footer-legal a:first-child { padding-left: 0; }
.footer-legal a:hover { color: #ccc; }

/* ============================================================
   SEARCH RESULTS
============================================================ */
.search-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--c-rule);
}

.search-query {
    font-size: var(--text-xl);
    font-family: var(--f-display);
    color: var(--c-ink);
}

.search-count {
    font-family: var(--f-ui);
    font-size: var(--text-sm);
    color: var(--c-ink-4);
    margin-top: 0.25rem;
}

/* ============================================================
   UTILITY
============================================================ */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ============================================================
   ACCESSIBILITY
============================================================ */
:focus-visible {
    outline: 3px solid var(--c-accent);
    outline-offset: 3px;
    border-radius: 2px;
}

a:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   RESPONSIVE — TABLET (≤900px)
============================================================ */
@media (max-width: 900px) {
    .content-area {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-grid > :first-child {
        grid-column: 1 / -1;
    }

    .cards-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .hero-main { grid-row: auto; min-height: 280px; }

    .ad-leaderboard .ad-inner { max-width: 100%; }

    .ad-skyscraper { display: none; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤600px)
============================================================ */
@media (max-width: 600px) {
    :root {
        --text-base: 0.9375rem;
    }

    .topbar { display: none; }

    .header-ad-wrap { display: none; }

    .header-inner { padding: 0.75rem 0; }

    .site-title { font-size: 1.5rem; }

    /* Nav mobile */
    .main-navigation {
        position: relative;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 48px;
        left: -1.5rem;
        right: -1.5rem;
        background: #1a1a1a;
        z-index: 500;
        border-top: 2px solid var(--c-accent);
    }

    .nav-menu.is-open { display: flex; }

    .nav-menu li a {
        height: auto;
        padding: 0.875rem 1.25rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        font-size: var(--text-base);
    }

    .nav-menu li ul {
        position: static;
        box-shadow: none;
        border-top: none;
        padding-left: 1rem;
    }

    .menu-toggle { display: flex; }

    /* Content */
    .cards-grid-3,
    .cards-grid-2 {
        grid-template-columns: 1fr;
    }

    .breaking-bar { display: none; }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-grid > :first-child { grid-column: auto; }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-legal {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .footer-legal a {
        border: none;
        padding: 0;
        margin-right: 0.75rem;
    }

    /* Ad mobile banner visible */
    .ad-leaderboard { display: none; }
    .ad-mobile-banner { display: flex; }
}

/* ============================================================
   PRINT
============================================================ */
@media print {
    .site-header,
    .main-navigation,
    .breaking-bar,
    .sidebar,
    .site-footer,
    .ad-slot,
    .ad-in-content,
    .topbar { display: none !important; }

    .content-area { grid-template-columns: 1fr; }

    body { font-size: 12pt; color: #000; }

    a { color: #000; }

    .single-content { max-width: 100%; }
}
