/* ============================================
   BOITE A OUTILS PRO — Design System
   Palette: Bleu nuit #070627
   ============================================ */

:root {
  --primary: #070627;
  --primary-hover: #1a1845;
  --primary-light: #eeeef8;
  --primary-dark: #030318;
  --accent: #1a1845;
  --accent-hover: #070627;
  --bg: #f8f9fa;
  --bg-alt: #f1f3f5;
  --surface: #FFFFFF;
  --text: #0d0b2e;
  --text-muted: #6c757d;
  --text-light: #adb5bd;
  --border: #dee2e6;
  --border-focus: #070627;
  --star: #F59E0B;
  --badge-free: #DCFCE7;
  --badge-free-text: #166534;
  --badge-freemium: #FEF3C7;
  --badge-freemium-text: #92400E;
  --badge-paid: #FEE2E2;
  --badge-paid-text: #991B1B;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.10);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);
  --nav-h: 68px;
  --transition: 0.2s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---- Typography ---- */
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { line-height: 1.7; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.flex { display: flex; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1.35rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; transition: all var(--transition); white-space: nowrap; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(7,6,39,0.35); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(7,6,39,0.35); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.82rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---- Badges & Tags ---- */
.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }
.badge-free { background: var(--badge-free); color: var(--badge-free-text); }
.badge-freemium { background: var(--badge-freemium); color: var(--badge-freemium-text); }
.badge-paid { background: var(--badge-paid); color: var(--badge-paid-text); }
.badge-new { background: #EDE9FE; color: #6D28D9; }
.tag { display: inline-flex; align-items: center; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.8rem; font-weight: 500; background: var(--bg-alt); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; transition: all var(--transition); }
.tag:hover, .tag.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }

/* ---- Stars ---- */
.stars { display: flex; gap: 2px; }
.star { color: #D1D5DB; font-size: 1rem; }
.star.filled { color: var(--star); }
.stars-text { font-size: 0.8rem; color: var(--text-muted); margin-left: 4px; }

/* ---- Cards ---- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; transition: all var(--transition); }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--primary-light); }

/* Tool Card */
.tool-card { position: relative; padding: 1.5rem; cursor: pointer; }
.tool-card-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 0.75rem; }
.tool-logo { width: 52px; height: 52px; border-radius: var(--radius-sm); border: 1px solid var(--border); object-fit: contain; padding: 6px; background: #fff; flex-shrink: 0; }
.tool-logo-placeholder { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; color: var(--primary); flex-shrink: 0; }
.tool-name { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.tool-category { font-size: 0.75rem; color: var(--text-muted); }
.tool-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }
.tool-card-badge { position: absolute; top: 1rem; right: 1rem; }

/* ---- Navigation ---- */
.nav { position: sticky; top: 0; z-index: 100; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo { display: flex; align-items: center; gap: 0.65rem; font-weight: 800; font-size: 1.1rem; color: var(--text); }
.nav-logo img { height: 38px; }
.nav-menu { display: flex; align-items: center; gap: 0.25rem; }
.nav-link { padding: 0.45rem 0.85rem; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: all var(--transition); }
.nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-link.active { color: var(--primary); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.hamburger { display: none; padding: 0.5rem; border-radius: var(--radius-sm); flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }
.mobile-menu { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; background: var(--surface); z-index: 99; padding: 1.5rem; overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu .nav-link { display: block; padding: 0.85rem 1rem; font-size: 1rem; border-bottom: 1px solid var(--border); }

/* ---- Hero ---- */
.hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #0D9488 100%); color: #fff; padding: 6rem 0 5rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -10%; width: 70%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%); pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 60px; background: linear-gradient(to bottom right, transparent 49%, var(--bg) 50%); }
.hero-content { text-align: center; max-width: 760px; margin: 0 auto; position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 0.4rem 1rem; font-size: 0.82rem; font-weight: 600; margin-bottom: 1.5rem; backdrop-filter: blur(8px); }
.hero h1 { color: #fff; margin-bottom: 1.25rem; text-shadow: 0 2px 20px rgba(0,0,0,0.2); }
.hero h1 span { color: #818cf8; }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 2.5rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-search { display: flex; gap: 0; max-width: 580px; margin: 0 auto 2rem; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xl); }
.hero-search input { flex: 1; padding: 1rem 1.25rem; border: none; outline: none; font-size: 1rem; color: var(--text); }
.hero-search button { padding: 1rem 1.5rem; background: var(--accent); color: #fff; font-weight: 600; font-size: 0.95rem; transition: background var(--transition); white-space: nowrap; }
.hero-search button:hover { background: var(--accent-hover); }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.hero-tag { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.8rem; color: rgba(255,255,255,0.9); cursor: pointer; transition: all var(--transition); }
.hero-tag:hover { background: rgba(255,255,255,0.3); }

/* ---- Stats Bar ---- */
.stats-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.stats-bar-inner { display: flex; align-items: center; justify-content: center; gap: 3rem; }
.stat-item { text-align: center; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); }

/* ---- Section Header ---- */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .overline { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--text-muted); max-width: 520px; margin: 0 auto; }

/* ---- Category Cards ---- */
.cat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; transition: all var(--transition); cursor: pointer; }
.cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-card:hover .cat-icon { background: var(--primary); color: #fff; }
.cat-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 0.75rem; transition: all var(--transition); }
.cat-name { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.cat-count { font-size: 0.78rem; color: var(--text-muted); }

/* ---- Filters Bar ---- */
.filters-bar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: var(--nav-h); z-index: 90; padding: 0.75rem 0; }
.filters-scroll { display: flex; align-items: center; gap: 0.5rem; overflow-x: auto; padding-bottom: 4px; padding-top: 2px; }
.filters-scroll::-webkit-scrollbar { height: 4px; }
.filters-scroll::-webkit-scrollbar-track { background: var(--border); border-radius: 2px; }
.filters-scroll::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 2px; }
.filters-scroll::-webkit-scrollbar-thumb:hover { background: var(--primary); }
.filter-divider { width: 1px; height: 24px; background: var(--border); flex-shrink: 0; margin: 0 0.25rem; }
.tag { min-width: max-content; flex-shrink: 0; }
.search-bar { display: flex; align-items: center; gap: 0.75rem; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 0.65rem 1rem; transition: border-color var(--transition); }

/* ---- Filter Scroll Arrows ---- */
.filters-scroll-wrap { position: relative; display: flex; align-items: center; gap: 0.5rem; }
.scroll-arrow { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--border); color: var(--text-muted); font-size: 1.1rem; flex-shrink: 0; transition: all var(--transition); box-shadow: var(--shadow); }
.scroll-arrow:hover { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(7,6,39,0.3); }
.scroll-arrow:disabled { opacity: 0.35; cursor: not-allowed; }
.scroll-arrow:disabled:hover { background: var(--surface); border-color: var(--border); color: var(--text-muted); box-shadow: var(--shadow); }

/* ---- Article Content ---- */
.article-content h2 { font-size: 1.3rem; font-weight: 700; color: var(--text); margin: 2rem 0 0.75rem; letter-spacing: -0.01em; }
.article-content h3 { font-size: 1.05rem; font-weight: 600; color: var(--text); margin: 1.5rem 0 0.5rem; }
.article-content p { color: var(--text-muted); line-height: 1.85; margin-bottom: 1rem; font-size: 0.95rem; }
.article-content strong { color: var(--text); font-weight: 600; }
.article-content a { color: var(--primary); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--primary-hover); }
.article-content a.btn { color: #fff; text-decoration: none; }
.article-content a.btn-outline { color: var(--primary); text-decoration: none; }
.article-content blockquote { border-left: 4px solid var(--primary); padding: 0.9rem 1.25rem; background: var(--primary-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.5rem 0; font-style: italic; color: var(--text-muted); }
.search-bar:focus-within { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(7,6,39,0.1); }
.search-bar input { border: none; outline: none; font-size: 0.9rem; color: var(--text); width: 100%; background: transparent; }
.search-bar svg { color: var(--text-light); flex-shrink: 0; }

/* ---- CTA Section ---- */
.cta-section { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 5rem 0; text-align: center; }
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.newsletter-form { display: flex; gap: 0.5rem; max-width: 460px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 0.8rem 1.1rem; border-radius: var(--radius-sm); border: none; font-size: 0.9rem; outline: none; }
.newsletter-form button { padding: 0.8rem 1.4rem; border-radius: var(--radius-sm); background: var(--accent); color: #fff; font-weight: 600; white-space: nowrap; transition: background var(--transition); }
.newsletter-form button:hover { background: var(--accent-hover); }

/* ---- Blog Cards ---- */
.blog-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: all var(--transition); }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card-img { height: 180px; background: var(--primary-light); overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.25rem; }
.blog-cat { font-size: 0.75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.blog-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.4; color: var(--text); }
.blog-card-title:hover { color: var(--primary); }
.blog-date { font-size: 0.78rem; color: var(--text-muted); }

/* ---- Tool Detail Page ---- */
.tool-hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); padding: 3.5rem 0; color: #fff; }
.tool-hero-inner { display: flex; align-items: center; gap: 2rem; }
.tool-hero-logo { width: 90px; height: 90px; border-radius: var(--radius); background: #fff; padding: 12px; object-fit: contain; box-shadow: var(--shadow-lg); flex-shrink: 0; }
.tool-hero-info h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.5rem; }
.tool-hero-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tool-hero-meta .badge { border: 1px solid rgba(255,255,255,0.3); }
.tool-hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.tool-cta-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 2rem; background: var(--accent); color: #fff; border-radius: var(--radius-sm); font-weight: 700; font-size: 1rem; transition: all var(--transition); }
.tool-cta-btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(7,6,39,0.4); }
.tool-content { padding: 3rem 0; }
.tool-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
.tool-sidebar { position: sticky; top: calc(var(--nav-h) + 1rem); }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem; }
.sidebar-card h4 { margin-bottom: 1rem; color: var(--text); }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.info-row:last-child { border-bottom: none; }
.info-row-label { color: var(--text-muted); }
.info-row-val { font-weight: 600; color: var(--text); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.pros-box, .cons-box { padding: 1.25rem; border-radius: var(--radius); }
.pros-box { background: #F0FDF4; border: 1px solid #BBF7D0; }
.cons-box { background: #FFF1F2; border: 1px solid #FECDD3; }
.pros-box h4 { color: #166534; margin-bottom: 0.75rem; }
.cons-box h4 { color: #9F1239; margin-bottom: 0.75rem; }
.pros-box li, .cons-box li { font-size: 0.875rem; padding: 0.25rem 0; padding-left: 1.25rem; position: relative; }
.pros-box li::before { content: '✓'; position: absolute; left: 0; color: #16A34A; font-weight: 700; }
.cons-box li::before { content: '✗'; position: absolute; left: 0; color: #DC2626; font-weight: 700; }
.features-list li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.features-list li:last-child { border-bottom: none; }
.features-list .feat-icon { color: var(--primary); font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ---- Blog Layout ---- */
.blog-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 4rem 0; color: #fff; text-align: center; }
.blog-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.blog-hero p { color: rgba(255,255,255,0.8); }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; padding: 3rem 0; }
.article-body { background: var(--surface); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); border: 1px solid var(--border); }
.article-body h2 { margin: 2rem 0 0.75rem; color: var(--text); }
.article-body h3 { margin: 1.5rem 0 0.5rem; color: var(--text); }
.article-body p { margin-bottom: 1.25rem; color: var(--text); }
.article-body ul, .article-body ol { margin: 0 0 1.25rem 1.5rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body img { border-radius: var(--radius-sm); margin: 1.5rem 0; }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body a.btn { color: #fff; text-decoration: none; }
.article-body a.btn-outline { color: var(--primary); }
.article-body blockquote { border-left: 4px solid var(--primary); padding: 1rem 1.5rem; background: var(--primary-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.5rem 0; }
.article-meta { display: flex; align-items: center; gap: 1.5rem; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.article-meta span { font-size: 0.85rem; color: var(--text-muted); }
.article-meta strong { color: var(--text); }

/* ---- Footer ---- */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.75); padding: 4rem 0 2rem; border-top: 3px solid #818cf8; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand p { font-size: 0.875rem; margin-top: 0.5rem; line-height: 1.7; color: rgba(255,255,255,0.5); }
.footer-tagline { color: #a5b4fc; font-size: 0.85rem; font-weight: 600; margin-top: 1rem !important; margin-bottom: 0.25rem !important; }
.footer-col h5 { color: #a5b4fc; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(129,140,248,0.2); }
.footer-col a { display: block; font-size: 0.875rem; color: rgba(255,255,255,0.55); margin-bottom: 0.6rem; transition: color var(--transition); }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-popular { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.footer-popular-label { color: #a5b4fc; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; white-space: nowrap; }
.footer-popular-links { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.footer-popular-links a { font-size: 0.78rem; color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; padding: 0.25rem 0.85rem; transition: all 0.2s; text-decoration: none; }
.footer-popular-links a:hover { color: #fff; background: rgba(129,140,248,0.25); border-color: #818cf8; transform: translateY(-1px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-logo { filter: brightness(0) invert(1); height: 48px; }

/* ---- Breadcrumb ---- */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-muted); padding: 1rem 0; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text-light); }

/* ---- Empty State ---- */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state svg { margin-bottom: 1rem; opacity: 0.4; }
.empty-state h3 { margin-bottom: 0.5rem; color: var(--text); }

/* ---- Loader ---- */
.loader { display: flex; justify-content: center; padding: 3rem; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Toast ---- */
.toast { position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--text); color: #fff; padding: 0.85rem 1.25rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-size: 0.875rem; z-index: 999; transform: translateY(100px); opacity: 0; transition: all 0.3s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .tool-layout { grid-template-columns: 1fr; }
  .tool-sidebar { position: static; }
  .article-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-menu, .nav-actions .btn { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { gap: 2rem; }
  .tools-grid { grid-template-columns: 1fr; }
  .stats-bar-inner { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .tool-hero-inner { flex-direction: column; text-align: center; }
  .hero { padding: 4rem 0 3.5rem; }
  .section { padding: 3.5rem 0; }
  .newsletter-form { flex-direction: column; }
  .hero-search { flex-direction: column; border-radius: var(--radius); }
  .hero-search input { border-radius: var(--radius); }
  .hero-search button { border-radius: var(--radius); }
  .tool-hero-actions { justify-content: center; }
  /* Flèches inutiles sur touch — le swipe natif suffit */
  .scroll-arrow { display: none; }
  /* Dégradé indiquant que la liste est scrollable */
  .filters-scroll-wrap::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 40px; background: linear-gradient(to right, transparent, var(--surface)); pointer-events: none; border-radius: 0 var(--radius) var(--radius) 0; }
  .filters-scroll { -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-right: 40px; }
  .filters-scroll::-webkit-scrollbar { display: none; }
}

/* ---- Back to Top ---- */
#backToTop { position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 998; width: auto; height: auto; border-radius: 2rem; background: var(--primary); color: #fff; border: none; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em; padding: 0.6rem 1.1rem; display: flex; align-items: center; gap: 0.4rem; cursor: pointer; box-shadow: 0 6px 24px rgba(7,6,39,0.45); opacity: 0; transform: translateY(14px); transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s; pointer-events: none; }
#backToTop.btt-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#backToTop:hover { background: var(--primary-hover); box-shadow: 0 8px 28px rgba(7,6,39,0.55); }

/* ---- Cookie Banner ---- */
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: var(--primary-dark); color: #fff; padding: 1rem; box-shadow: 0 -4px 24px rgba(0,0,0,0.25); animation: cookieSlideUp 0.35s ease; }
#cookie-banner.cookie-banner--hide { animation: cookieSlideDown 0.35s ease forwards; }
@keyframes cookieSlideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes cookieSlideDown { from { transform: translateY(0); opacity: 1; } to { transform: translateY(100%); opacity: 0; } }
.cookie-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cookie-text { flex: 1; font-size: 0.875rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin: 0; }
.cookie-link { color: #a5b4fc; text-decoration: underline; }
.cookie-link:hover { color: #fff; }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-btn { padding: 0.5rem 1.25rem; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: all var(--transition); border: 2px solid transparent; }
.cookie-btn--outline { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.cookie-btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.cookie-btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.cookie-btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
@media (max-width: 600px) { .cookie-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; } .cookie-actions { width: 100%; } .cookie-btn { flex: 1; text-align: center; } }

@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }
  .container { padding: 0 1rem; }
  .tool-card { padding: 1.25rem; }
}
