/* ===== RESET & BASE ===== */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; overflow-x: clip; }
  body {
    overflow-x: clip;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; border: none; background: none; }
  img, svg { display: block; max-width: 100%; }

  /* ===== TOKENS DE MARQUE — Cobalt × Tournesol ===== */
  :root {
    --text: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --bg: #FFFFFF;
    --surface: #F8FAFC;
    --border: #E5E7EB;
    --primary: #0A3DA1;
    --primary-soft: #E2E9F5;
    --primary-hover: #062E80;
    --on-primary: #FFFFFF;
    --accent: #FFC629;
    --accent-soft: #FFF1BE;
    --accent-hover: #D9A300;
    --on-accent: #0A3DA1;
  }

  .container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

  /* ===== HEADER ===== */
  header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
  }
  .header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px;
  }
  .logo {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    line-height: 0;
    text-decoration: none;
  }
  .logo svg {
    height: 32px;
    width: auto;
    display: block;
  }
  /* Le texte du logo prend la couleur courante */
  .logo svg .logo-text path { fill: currentColor; }
  /* La marque (le chevron) prend toujours l'accent du thème */
  .logo svg .logo-mark path { fill: var(--accent); }
  /* Logo dans le footer : couleur claire pour rester lisible sur fond primaire */
  footer .logo { color: var(--on-primary); }
  footer .logo svg { height: 40px; }
  nav ul {
    display: flex; gap: 36px; list-style: none;
  }
  nav ul > li { position: relative; }
  nav a {
    font-size: 14px; font-weight: 500;
    color: var(--text);
    transition: color 0.15s;
  }
  nav a:hover { color: var(--primary); }
  nav > ul > li > a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 26px 0;
  }
  nav > ul > li > a::after {
    content: '';
    width: 6px; height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.15s;
  }
  nav > ul > li:hover > a::after { transform: translateY(0) rotate(225deg); }

  /* ===== MEGAMENU ===== */
  .nav-dropdown {
    position: absolute;
    top: 100%; left: -20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    min-width: 280px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
    z-index: 60;
  }
  nav > ul > li:hover .nav-dropdown,
  nav > ul > li:focus-within .nav-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .nav-dropdown.wide { min-width: 820px; }
  .nav-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 32px;
  }
  .nav-dropdown-col h4 {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
  }
  .nav-dropdown-col ul {
    display: flex; flex-direction: column;
    gap: 4px;
    list-style: none;
  }
  .nav-dropdown-col a {
    display: block;
    padding: 6px 0;
    font-size: 14px; font-weight: 500;
    color: var(--text);
  }
  .nav-dropdown-col a:hover { color: var(--primary); }

  /* ===== MENU MOBILE (BURGER) ===== */
  .menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 8px;
    color: var(--primary);
    transition: background 0.15s;
  }
  .menu-toggle:hover { background: var(--primary-soft); }
  .menu-toggle svg { width: 24px; height: 24px; }

  .mobile-panel {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }
  .mobile-panel.is-open { opacity: 1; pointer-events: auto; }
  .mobile-panel-inner {
    position: absolute;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: var(--bg);
    padding: 24px 20px;
    box-shadow: -4px 0 24px rgba(15, 23, 42, 0.15);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  body.menu-open { overflow: hidden; }
  .mobile-panel.is-open .mobile-panel-inner { transform: translateX(0); }
  .mobile-panel-close {
    align-self: flex-end;
    width: 40px; height: 40px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text);
  }
  .mobile-panel-close:hover { background: var(--surface); }
  .mobile-panel ul {
    list-style: none;
    display: flex; flex-direction: column;
    gap: 2px;
    margin-top: 8px;
  }
  .mobile-panel a {
    display: block;
    padding: 14px 12px;
    font-size: 16px; font-weight: 600;
    color: var(--text);
    border-radius: 8px;
  }
  .mobile-panel a:hover { background: var(--surface); color: var(--primary); }
  .mobile-section { margin-bottom: 8px; }
  .mobile-section h4 {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-muted);
    margin: 14px 12px 4px;
  }
  .mobile-section a {
    padding: 10px 12px;
    font-size: 15px; font-weight: 500;
  }
  .mobile-panel-cta {
    margin-top: auto;
    display: inline-flex; align-items: center; justify-content: center;
    height: 48px;
    background: var(--accent); color: var(--on-accent);
    border-radius: 8px;
    font-weight: 700; font-size: 15px;
  }

  /* ===== BUTTONS ===== */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px;
    padding: 0 22px;
    border-radius: 8px;
    font-weight: 600; font-size: 15px;
    transition: all 0.15s;
    white-space: nowrap;
  }
  .btn-primary {
    background: var(--primary); color: var(--on-primary);
  }
  .btn-primary:hover { background: var(--primary-hover); }
  .btn-accent {
    background: var(--accent); color: var(--on-accent);
  }
  .btn-accent:hover { background: var(--accent-hover); }
  .btn-outline-light {
    background: transparent; color: white;
    border: 1.5px solid rgba(255,255,255,0.4);
  }
  .btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: white; }
  .btn-outline {
    background: var(--bg); color: var(--text);
    border: 1.5px solid var(--border);
  }
  .btn-outline:hover { border-color: var(--primary); color: var(--primary); }

  /* ===== HERO ===== */
  .hero { padding: 24px 0 0; }
  .hero-card {
    background: var(--primary);
    color: var(--on-primary);
    border-radius: 20px;
    padding: 48px 64px;
    display: grid;
    grid-template-columns: 0.85fr 1.3fr;
    gap: 48px;
    align-items: center;
    position: relative;
    overflow: hidden;
  }
  .hero-right { position: relative; z-index: 1; }
  .hero-right .cat-grid-more { margin-top: 16px; }
  .hero-card::before {
    content: '';
    position: absolute;
    bottom: -120px; left: -120px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.18;
    pointer-events: none;
  }
  .hero-text { position: relative; z-index: 1; }
  .cat-grid { position: relative; z-index: 1; }
  .hero-text .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    margin-bottom: 14px;
  }
  .hero-text .eyebrow::before {
    content: ''; width: 24px; height: 1.5px;
    background: var(--accent);
  }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    margin-bottom: 22px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 13px; font-weight: 800;
    letter-spacing: 0.06em; text-transform: uppercase;
    border-radius: 999px;
    white-space: nowrap;
    align-self: flex-start;
  }
  .hero-text h1 {
    font-size: 44px; font-weight: 800;
    line-height: 1.1; letter-spacing: -0.025em;
    margin-bottom: 20px;
  }
  .hero-text h1 .accent {
    color: var(--accent);
  }
  .hero-text p.lead {
    font-size: 16px; line-height: 1.55;
    opacity: 0.88; max-width: 460px;
    margin-bottom: 24px;
  }
  .hero-cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
  .hero-trust {
    margin-top: 18px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: 13px;
    color: var(--on-primary);
    opacity: 0.92;
  }
  .hero-trust .trust-stars { color: var(--accent); letter-spacing: 1px; font-size: 12px; }
  .hero-trust .trust-sep { opacity: 0.4; }
  .hero-trust strong { font-weight: 700; }
  @media (max-width: 540px) {
    .hero-trust { flex-direction: column; align-items: flex-start; gap: 6px; }
    .hero-trust .trust-sep { display: none; }
  }

  /* CATEGORY GRID INSIDE HERO */
  .cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 14px;
  }
  .cat-card {
    background: var(--bg);
    border-radius: 16px;
    padding: 22px 16px 18px;
    color: var(--text);
    display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 14px;
    transition: transform 0.18s;
    cursor: pointer;
    height: 160px;
    box-sizing: border-box;
    overflow: hidden;
  }
  .cat-card:hover { transform: translateY(-3px); }
  .cat-icon {
    width: 42px; height: 42px;
    color: var(--primary);
    flex-shrink: 0;
  }
  .cat-name {
    font-size: 14px; font-weight: 600;
    line-height: 1.3;
    overflow-wrap: break-word;
  }
  .cat-grid-more {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 14px;
    font-size: 13px; font-weight: 500;
    color: var(--on-primary);
    opacity: 0.85;
    text-decoration: none;
    transition: opacity 0.15s, gap 0.15s;
  }
  .cat-grid-more:hover { opacity: 1; gap: 12px; }
  .cat-grid-more span { color: var(--accent); font-weight: 600; }

  /* ===== STATS ===== */
  .stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 40px 0 16px;
    text-align: center;
  }
  .stat .num {
    font-size: 44px; font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
  }
  .stat.highlight .num {
    color: var(--accent);
  }
  .stat .label {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
  }

  /* ===== SECTIONS ===== */
  section { padding: 24px 0; }
  section.ranking-section { padding-top: 24px; }
  section.rank-hero { padding-bottom: 8px; }

  .section-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text);
    margin-bottom: 14px;
  }
  .section-eyebrow::before {
    content: ''; width: 24px; height: 1.5px;
    background: var(--accent);
  }
  h2 {
    font-size: 38px; font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 12px;
  }
  .section-lead {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 580px;
  }
  .section-header-row {
    display: flex; justify-content: space-between; align-items: end;
    margin-bottom: 48px; gap: 24px; flex-wrap: wrap;
  }

  /* ===== STEPS ===== */
  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .step-card {
    background: var(--primary);
    color: var(--on-primary);
    border-radius: 16px;
    padding: 32px;
    min-height: 220px;
    display: flex; flex-direction: column;
  }
  .step-num {
    display: inline-block;
    font-size: 13px; font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: 0.1em;
  }
  .step-card h3 {
    font-size: 22px; font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    line-height: 1.2;
  }
  .step-card p {
    font-size: 15px; opacity: 0.88;
    line-height: 1.55;
  }

  /* ===== PARTNERS ===== */
  .partners-section { background: var(--surface); }
  .partners-header { text-align: center; margin-bottom: 48px; }
  .partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: center;
  }
  .partner-logo {
    height: 84px;
    border-radius: 12px;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    padding: 12px 20px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .partner-logo img {
    height: 36px;
    width: auto;
    max-width: 75%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.2s, opacity 0.2s;
  }
  /* Léger bump intermédiaire */
  .partner-logo img.logo-md { height: 42px; }
  /* Logos avec beaucoup de blanc interne — bump pour qu'ils ne paraissent pas perdus */
  .partner-logo img.logo-big { height: 50px; }
  /* Logos très larges qui dominent visuellement — cap la largeur */
  .partner-logo img.logo-narrow { max-width: 55%; }
  /* Très petits logos intrinsèques (juste lettres compactes) */
  .partner-logo img.logo-xl { height: 56px; }
  .partner-logo:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08); }
  .partner-logo:hover img { filter: grayscale(0%); opacity: 1; }

  /* ===== BLOG ===== */
  .blog-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 20px;
  }
  .article-card {
    background: var(--bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
    display: flex; flex-direction: column;
  }
  .article-card:hover { border-color: var(--primary); transform: translateY(-2px); }
  .article-img {
    aspect-ratio: 16/9;
    background: var(--primary-soft);
    position: relative;
  }
  .article-img svg {
    position: absolute; inset: 0; margin: auto;
    width: 80px; height: 80px;
    color: var(--primary);
    opacity: 0.6;
  }
  .article-card.large .article-img { aspect-ratio: 4/3; }
  .article-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
  .article-tag {
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent-hover);
    margin-bottom: 10px;
  }
  .article-card h3 {
    font-size: 18px; font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  .article-card.large h3 { font-size: 22px; }
  .article-card p {
    font-size: 14px; color: var(--text-muted);
    line-height: 1.55; margin-bottom: 16px;
    flex: 1;
  }
  .article-meta {
    font-size: 13px; color: var(--text-light);
  }

  /* ===== FOOTER ===== */
  footer {
    background: var(--primary);
    color: var(--on-primary);
    padding: 56px 0 32px;
    margin-top: 0;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
  }
  .footer-brand .logo { color: var(--on-primary); }
  .footer-brand p {
    font-size: 14px; opacity: 0.75;
    margin-top: 16px;
    line-height: 1.6;
    max-width: 280px;
  }
  .footer-brand .badges {
    display: flex; gap: 8px; margin-top: 16px;
  }
  .footer-badge {
    padding: 4px 10px;
    background: rgba(255,255,255,0.12);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
  }
  .footer-col h5 {
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    margin-bottom: 18px;
  }
  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: 10px; }
  .footer-col a {
    font-size: 14px;
    opacity: 0.75;
    transition: opacity 0.15s;
  }
  .footer-col a:hover { opacity: 1; }
  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 24px;
    display: flex; flex-wrap: wrap; gap: 16px 32px;
    justify-content: space-between; align-items: center;
    font-size: 13px;
    opacity: 0.85;
  }
  .footer-bottom-info { display: flex; flex-direction: column; gap: 4px; }
  .footer-legal {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  }
  .footer-legal a,
  .footer-legal a:link,
  .footer-legal a:visited,
  .footer-legal a:active {
    color: var(--on-primary);
    text-decoration: none;
    transition: opacity 0.15s;
  }
  .footer-legal a:hover,
  .footer-legal a:focus {
    color: var(--on-primary);
    opacity: 0.7;
    text-decoration: underline;
  }
  .footer-legal span { opacity: 0.5; }
  @media (max-width: 720px) {
    .footer-bottom { justify-content: center; text-align: center; }
    .footer-bottom-info { align-items: center; }
    .footer-legal { justify-content: center; }
  }
  /* ===== RESPONSIVE ===== */
  @media (max-width: 980px) {
    .hero-card { grid-template-columns: 1fr; gap: 36px; padding: 40px 28px 36px; }
    .hero-text h1 { font-size: 34px; }
    .hero-badge { padding: 6px 12px; font-size: 11px; margin-bottom: 18px; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 32px 0 8px; }
    .steps { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: repeat(3, 1fr); }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    h2 { font-size: 30px; }
    nav ul { display: none; }
    .header-inner > .btn-accent { display: none; }
    .menu-toggle { display: inline-flex; margin-left: auto; }
    .container { padding: 0 20px; }
    .cat-card { height: 140px; padding: 18px 14px 14px; }
    .cat-icon { width: 36px; height: 36px; }
  }
  @media (max-width: 540px) {
    .hero-card { padding: 32px 20px; gap: 28px; border-radius: 16px; }
    .hero-text h1 { font-size: 30px; }
    .hero-text p.lead { font-size: 15px; }
    .hero-text .eyebrow { font-size: 11px; }
    .hero-badge {
      padding: 5px 10px; font-size: 10px;
      letter-spacing: 0.04em;
      margin-bottom: 14px;
    }
    .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .cat-card { height: 120px; padding: 14px 12px 12px; gap: 10px; }
    .cat-icon { width: 32px; height: 32px; }
    .cat-name { font-size: 13px; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .stats { gap: 18px; }
    .stat .num { font-size: 32px; }
    .container { padding: 0 16px; }
    .hero-trust { flex-direction: column; align-items: flex-start; gap: 8px; }
    .hero-trust .trust-sep { display: none; }
  }

  /* IMAGE GUIDE : remplace le SVG icône par une vraie image */
  .article-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    position: absolute; inset: 0;
  }