/* =====================================================
   DETECTIVEBANCA — Feuille de style principale
   ===================================================== */

/* ===== POLICES AUTO-HÉBERGÉES ===== */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-ExtraBoldItalic.ttf') format('truetype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* ===== VARIABLES ===== */
:root {
  /* Palette primaire */
  --primary:           #1a1a2e;
  --accent:            #0088CC;
  --accent-dark:       #006ba7;
  --accent-hover:      #0077b5;
  --pink:              #E91E8C;
  --pink-hover:        #d41a7f;

  /* Neutres */
  --white:             #ffffff;
  --bg-subtle:         #f9fafa;
  --text-secondary:    #6a727a;
  --text-muted:        #9aa0a6;
  --border:            #e2e4e6;
  --border-light:      #eeeff0;

  /* Badge */
  --badge-bg:          #e8f4fb;
  --badge-text:        #006ba7;
  --badge-border:      #b8ddf0;

  /* Ombres */
  --card-hover-shadow: rgba(0, 136, 204, .1);
  --shadow-sm:         0 1px 3px rgba(0, 0, 0, .04);
  --shadow-md:         0 4px 20px rgba(0, 136, 204, .1);

  /* Typo */
  --font-primary:      'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container-max:     1140px;
  --header-height:     60px;

  /* Bordures */
  --radius-sm:         6px;
  --radius-md:         10px;
  --radius-lg:         12px;
  --radius-xl:         14px;
  --radius-full:       100px;

  /* Transitions */
  --transition-fast:   0.2s ease;
  --transition-base:   0.25s ease;

  /* Logo — hauteur dynamique via Customizer */
  --logo-height:       30px;
}

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

body {
  font-family: var(--font-primary);
  color: var(--primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== HEADER / NAV ===== */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}
.site-nav.header--scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-text { font-weight: 800; font-size: 1.1rem; letter-spacing: .02em; line-height: 1; }
.logo-det  { color: var(--accent); }
.logo-ban  { color: var(--primary); }
.logo-loupe { color: var(--pink); }
.logo-img,
.custom-logo { height: var(--logo-height, 40px); width: auto; object-fit: contain; display: block; }
/* Logo agrandi (demande du 2026-09-22) : 40 px en desktop, 32 px sous 768 px */
/* Le lien du logo est un enfant flex : sans ceci il se fait ecraser par le menu et l image se reduit dedans */
.logo .custom-logo-link { display: block; flex-shrink: 0; }
.custom-logo { max-width: none; width: auto; }
@media (max-width: 768px) { .logo-img, .custom-logo { height: 32px; } }

/* Menu principal */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: .84rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--primary); }
.nav-cta {
  background: var(--pink) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-md) !important;
  font-weight: 700 !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--pink-hover) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  flex-shrink: 0;
}
.hamburger:hover { background: var(--bg-subtle); }
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 199;
  overflow-y: auto;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 12px 16px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}
.mobile-menu a:hover,
.mobile-menu a.is-active { background: var(--bg-subtle); color: var(--accent-dark); }
.mobile-menu .nav-cta {
  background: var(--pink) !important;
  color: var(--white) !important;
  text-align: center;
  font-weight: 700 !important;
  margin-top: 8px;
}
.mobile-menu .nav-cta:hover { background: var(--pink-hover) !important; }

body.menu-open { overflow: hidden; }

/* ===== BOUTONS ===== */
.btn-primary {
  display: inline-block;
  padding: 9px 22px;
  background: var(--pink);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--pink-hover); transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  padding: 8px 20px;
  border: 1.5px solid var(--border);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast);
  cursor: pointer;
  background: var(--white);
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ===== SECTIONS PARTAGÉES ===== */
.section-tag {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--pink);
  margin-bottom: 6px;
}
.section-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--accent);
  margin-bottom: 40px;
  line-height: 1.2;
}

/* ===== HERO ===== */
.hero {
  padding: 72px 24px 56px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.hero-inner { max-width: var(--container-max); margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: .74rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  border: 1px solid var(--badge-border);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.12;
  max-width: 680px;
  margin: 0 auto 14px;
  letter-spacing: -.04em;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 44px;
  font-weight: 400;
}

/* Grille catégories hero */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 12px 18px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
}
.cat-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cat-icon {
  width: 44px; height: 44px;
  margin: 0 auto 10px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  overflow: hidden;
}
.cat-icon img,
.cat-icon svg { width: 26px; height: 26px; object-fit: contain; }
/* Pictos : trait fin bleu sur pastille pale (piste A validee le 2026-09-22) */
.cat-icon { background: #e6f4fb; color: var(--accent); }
.cat-icon svg.ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-ico { display: inline-flex; width: 18px; height: 18px; margin-right: 8px; color: var(--accent); }
.nav-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-links a { display: inline-flex; align-items: center; }
.nav-links .nav-ico { width: 16px; height: 16px; margin-right: 6px; }
.mobile-menu a { display: flex; align-items: center; }
.nav-cta .nav-ico { display: none; }
.cat-card h3 { color: var(--primary); font-size: .82rem; font-weight: 700; line-height: 1.3; }
.cat-card .sub { color: var(--text-muted); font-size: .68rem; margin-top: 3px; }

/* ===== PARTENAIRES ===== */
.partners {
  padding: 26px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.partners-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.partners-label {
  font-size: .7rem;
  color: var(--pink);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.partner-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.partner-logo-img {
  height: 22px;
  opacity: .55;
  transition: opacity var(--transition-fast);
  object-fit: contain;
}
.partner-logo-img:hover { opacity: .85; }

/* ===== COMMENT ÇA MARCHE ===== */
.how-section {
  padding: 72px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.how-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 30px 22px;
  border: 1px solid var(--border);
  position: relative;
  transition: all var(--transition-base);
}
.how-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.how-num {
  position: absolute;
  top: 16px; right: 18px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--border-light);
  line-height: 1;
  user-select: none;
}
.how-icon {
  width: 44px; height: 44px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
  overflow: hidden;
}
.how-icon img,
.how-icon svg { width: 26px; height: 26px; object-fit: contain; }
.how-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 5px; }
.how-card p  { font-size: .86rem; color: var(--text-secondary); line-height: 1.55; }

/* ===== SÉLECTION OFFRES ===== */
.selection-section {
  padding: 72px 24px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.selection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 14px 18px;
  text-align: center;
  position: relative;
  transition: all var(--transition-base);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.product-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.product-badge {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: var(--pink);
  color: var(--white);
  font-size: .6rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.product-logo {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  padding-top: 6px;
}
.product-logo img { max-height: 40px; max-width: 100%; object-fit: contain; }
.fake-logo { font-weight: 800; font-size: 1.05rem; color: var(--primary); }
.product-card hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 2px 0;
}
.features {
  list-style: none;
  text-align: left;
  flex: 1;
}
.features li {
  font-size: .78rem;
  color: var(--text-secondary);
  padding: 3px 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.features li::before {
  content: '✓';
  color: var(--accent-dark);
  font-weight: 700;
  font-size: .7rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== SECTION BLOG (ACCUEIL) ===== */
.blog-section {
  padding: 72px 24px;
  background: var(--white);
}
.blog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}
.blog-header .section-title { margin-bottom: 0; }
.blog-header a {
  color: var(--accent-dark);
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.blog-header a:hover { text-decoration: underline; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Carte article */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
  display: block;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.blog-thumb {
  height: 160px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}
.blog-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}
.blog-card:hover .blog-thumb img { transform: scale(1.04); }
.blog-thumb .illus { font-size: 2.2rem; opacity: .35; }
.blog-date {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  font-size: .62rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  line-height: 1.3;
}
.blog-body { padding: 16px 18px; }
.blog-author {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}
.blog-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .58rem;
  font-weight: 700;
  color: var(--accent-dark);
  flex-shrink: 0;
  overflow: hidden;
}
.blog-avatar img { width: 100%; height: 100%; object-fit: cover; }
.blog-author span { font-size: .74rem; color: var(--text-muted); }
.blog-card h3 { font-size: .9rem; font-weight: 700; line-height: 1.4; margin-bottom: 5px; }
.blog-card p  { font-size: .78rem; color: var(--text-secondary); line-height: 1.55; }
.blog-link {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent-dark);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--white);
  padding: 52px 24px 26px;
  border-top: 1px solid var(--border);
}
.footer-inner { max-width: var(--container-max); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 12px; display: inline-flex; }
.footer-brand p {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 260px;
}
.footer-col h4 {
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--text-muted);
  font-size: .82rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.footer-disclaimer {
  font-size: .68rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 700px;
}
.footer-copyright {
  font-size: .68rem;
  color: var(--accent);
  white-space: nowrap;
  font-weight: 600;
}

/* ===== FIL D'ARIANE ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb__sep {
  color: var(--border);
  font-size: .7rem;
}
.breadcrumb__current { color: var(--primary); font-weight: 500; }

/* ===== PAGE AVEC TITRE ===== */
.page-header {
  padding: 52px 24px 40px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.page-header__inner { max-width: var(--container-max); margin: 0 auto; }
.page-header__title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--primary);
}
.page-header__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ===== PAGE VIERGE / GUTENBERG ===== */
.page-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.page-content .wp-block-image { margin: 2em 0; }

/* ===== BLOG INDEX ===== */
.archive-header {
  padding: 48px 24px 36px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.archive-header__inner { max-width: var(--container-max); margin: 0 auto; }
.archive-header__title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 8px;
}
.archive-header__desc {
  font-size: .9rem;
  color: var(--text-secondary);
  max-width: 520px;
}

/* Article vedette (home.php) */
.blog-featured {
  padding: 40px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.blog-featured__inner { max-width: var(--container-max); margin: 0 auto; }
.blog-featured__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
}
.blog-featured__card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.blog-featured__thumb {
  min-height: 260px;
  background: var(--bg-subtle);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-featured__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
}
.blog-featured__thumb .illus { font-size: 3rem; opacity: .3; }
.blog-featured__body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.blog-featured__cat {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--pink);
}
.blog-featured__title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.25;
  color: var(--primary);
}
.blog-featured__excerpt {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.blog-featured__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}

/* Grille blog principale */
.blog-main {
  padding: 40px 24px 64px;
}
.blog-main__inner { max-width: var(--container-max); margin: 0 auto; }
.blog-main__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* Filtres catégories */
.cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.cat-filter {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.cat-filter:hover,
.cat-filter.is-active {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--badge-bg);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent-dark); }
.pagination .current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.pagination .prev,
.pagination .next {
  width: auto;
  padding: 0 12px;
  gap: 4px;
}
.pagination svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ===== ARTICLE SINGLE ===== */
.single-header {
  padding: 48px 24px 0;
  background: var(--white);
}
.single-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 44px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
/* Pas d'image : colonne unique */
.single-header__inner.no-image {
  grid-template-columns: 1fr;
}
.single-header__cat {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--pink);
  margin-bottom: 10px;
  text-decoration: none;
  display: inline-block;
}
.single-header__title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 16px;
}
.single-header__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.single-meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.single-meta-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: var(--accent-dark);
  overflow: hidden;
  flex-shrink: 0;
}
.single-meta-avatar img { width: 100%; height: 100%; object-fit: cover; }
.single-meta-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.single-meta-name:hover { color: var(--accent-dark); }
.single-meta-info {
  font-size: .78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.single-meta-info .sep { color: var(--border); }

/* Image à la une dans l'en-tête (colonne droite) */
.single-header__right {
  border-radius: var(--radius-xl);
  overflow: hidden;
  /* images a la une livrees en 1200x630 : on suit ce ratio, sinon le texte incruste est coupe */
  aspect-ratio: 1200 / 630;
  position: relative;
  align-self: start;
  max-height: none;
}
.single-header__right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Layout article : contenu à gauche, TOC à droite */
.article-layout {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 36px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 40px;
  align-items: start;
}

/* TOC sidebar (droite, sticky) */
.article-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

/* TOC widget — desktop : toujours ouvert, mobile : accordéon */
.toc-widget {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
}

/* Desktop : summary non cliquable, apparence de titre simple */
@media (min-width: 1025px) {
  .toc-widget > summary {
    list-style: none;
    pointer-events: none;
    cursor: default;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
    padding: 0;
    background: none;
  }
  .toc-widget > summary::-webkit-details-marker { display: none; }
}

/* Mobile : accordéon cliquable avec chevron */
@media (max-width: 1024px) {
  .toc-widget {
    padding: 0;
    overflow: hidden;
  }
  .toc-widget > summary {
    padding: 12px 16px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .toc-widget > summary::-webkit-details-marker { display: none; }
  .toc-widget > summary::after {
    content: '▾';
    color: var(--text-muted);
    transition: transform var(--transition-fast);
  }
  .toc-widget[open] > summary::after { transform: rotate(180deg); }
  .toc-widget > nav { padding: 8px 12px 12px; }
}

#toc-list-desktop { list-style: none; }
#toc-list-desktop a {
  display: block;
  padding: 5px 8px;
  font-size: .78rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
  line-height: 1.4;
}
#toc-list-desktop a:hover,
#toc-list-desktop a.is-active {
  color: var(--accent-dark);
  border-left-color: var(--accent);
  background: var(--white);
}
#toc-list-desktop .toc-h3 { padding-left: 18px; font-size: .73rem; }

/* Contenu article */
.entry-content {
  font-size: .95rem;
  line-height: 1.75;
  color: #2c2c3a;
}
.entry-content h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--primary);
  margin: 2.2em 0 .7em;
  line-height: 1.25;
}
.entry-content h3 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--primary);
  margin: 1.8em 0 .5em;
}
.entry-content p { margin-bottom: 1.2em; }
.entry-content a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--accent); }
.entry-content ul, .entry-content ol {
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  background: var(--bg-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--text-secondary);
}
.entry-content img {
  border-radius: var(--radius-lg);
  margin: 1.5em 0;
  border: 1px solid var(--border-light);
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  margin: 1.5em 0;
}
.entry-content th, .entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.entry-content th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--primary);
}
.entry-content tr:hover td { background: var(--bg-subtle); }

/* Box auteur */
.author-box {
  margin-top: 48px;
  padding: 24px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  gap: 20px;
}
.author-box__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-dark);
  flex-shrink: 0;
  overflow: hidden;
}
.author-box__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box__name { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.author-box__bio { font-size: .82rem; color: var(--text-secondary); line-height: 1.6; }
.author-box__link {
  display: inline-block;
  margin-top: 8px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
}
.author-box__link:hover { text-decoration: underline; }

/* Articles similaires */
.related-articles {
  padding: 40px 24px 64px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}
.related-articles__inner { max-width: var(--container-max); margin: 0 auto; }
.related-articles__title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 24px;
  color: var(--primary);
}
.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ===== ARCHIVE AUTEUR ===== */
.author-header {
  padding: 48px 24px 36px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.author-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}
.author-header__name {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.15;
}
.author-header__bio {
  font-size: .95rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.65;
}

/* ===== PAGE 404 ===== */
.error-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
}
.error-404__inner { max-width: 480px; margin: 0 auto; }
.error-404__code {
  font-size: 6rem;
  font-weight: 800;
  letter-spacing: -.05em;
  color: var(--border);
  line-height: 1;
  margin-bottom: 12px;
}
.error-404__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}
.error-404__desc { color: var(--text-secondary); margin-bottom: 28px; }

/* ===== RESPONSIVE ===== */

/* Tablette large (≤1024px) */
@media (max-width: 1024px) {
  .selection-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  /* Article layout : passe en 1 colonne, sidebar sous le contenu */
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; order: -1; } /* TOC au-dessus sur tablette */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .blog-featured__card { grid-template-columns: 1fr; }
  .blog-featured__thumb { min-height: 200px; }
  .hamburger { display: flex; }
  .nav-links { display: none; }
  /* Single header : image cachée sur tablette (contenu prioritaire) */
  .single-header__inner { grid-template-columns: 1fr; }
  .single-header__right { display: none; }
}

/* Tablette (≤768px) */
@media (max-width: 768px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid .cat-card:last-child { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; }
  .how-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-main__grid { grid-template-columns: 1fr; }
  .related-articles__grid { grid-template-columns: 1fr; }
  .partners-inner { flex-direction: column; gap: 12px; }
  .blog-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; }
  .author-box { flex-direction: column; align-items: flex-start; }
  .blog-featured__meta { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
  .hero { padding: 48px 16px 36px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid .cat-card:last-child { max-width: 100%; grid-column: 1 / -1; }
  .selection-grid { grid-template-columns: 1fr; }
  .how-section,
  .selection-section,
  .blog-section,
  .blog-main,
  .blog-featured { padding-left: 16px; padding-right: 16px; }
  .article-layout { padding: 24px 16px 48px; }
  .single-header { padding: 32px 16px 0; }
  .page-header { padding: 36px 16px 28px; }
  .archive-header { padding: 32px 16px 24px; }
  .related-articles { padding: 32px 16px 48px; }
}

/* 2026-09-23 : entre 1025 et 1280 px, le menu (7 entrées avec picto + CTA)
   dépassait de 7 px et faisait apparaître une barre de défilement
   horizontale sur toute la page. Le header est clippé par sécurité, et les
   entrées se resserrent sur cette tranche de largeurs. */
.site-header, header.site-header { overflow-x: clip; }
@media (min-width: 1025px) and (max-width: 1300px) {
  .nav-links a { padding: 6px 7px; font-size: .8rem; }
  .nav-cta { margin-left: 4px; padding: 8px 14px !important; }
}
/* Titres de section des pages : un espace avant, comme dans les articles. */
.page-content > h2 { margin-top: 1.8em; }
.page-content > h2:first-child { margin-top: 0; }
/* Entre 1025 et 1199 px, même resserré, le menu ne tient pas : on passe au
   menu mobile (hamburger) sans toucher aux grilles de cette tranche. */
@media (min-width: 1025px) and (max-width: 1199px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }
}

/* Badge « fuente preferida » de Google (Principales noticias), sous l'auteur. */
.db-gsource{display:inline-flex;align-items:center;gap:10px;margin-top:16px;padding:9px 14px;border:1px solid var(--border);border-radius:var(--radius-full);background:var(--white);color:var(--primary);font-size:.82rem;text-decoration:none;transition:border-color var(--transition-fast),box-shadow var(--transition-fast)}
.db-gsource:hover{border-color:var(--accent);box-shadow:var(--shadow-md)}
.db-gsource svg{flex-shrink:0}

/* 2026-09-26 : six offres sur l'accueil, en 3 colonnes (2 en tablette, 1 en mobile). */
.selection-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.selection-section .product-logo { height: 52px; }
.selection-section .product-logo img { max-height: 44px; }
@media (max-width: 1024px) { .selection-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .selection-grid { grid-template-columns: 1fr; } }
/* 2026-09-27 : la mascotte (détective à la loupe) des réseaux sociaux, dans le hero.
   Desktop : texte décalé à gauche, mascotte à droite du titre, au-dessus des cartes
   sans les toucher. Mobile : petite, au-dessus du badge. */
.hero-inner { position: relative; }
.hero-mascota { position: absolute; left: calc(50% + 280px); right: auto; top: 50px; height: 250px; width: auto; pointer-events: none; }
@media (min-width: 1025px) {
  .hero { padding-top: 36px; }
  .hero-badge, .hero h1, .hero-subtitle { position: relative; left: -110px; }
  .hero h1 { max-width: 760px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 1025px) and (max-width: 1299px) {
  .hero-mascota { height: 220px; left: calc(50% + 240px); top: 60px; }
  .hero-badge, .hero h1, .hero-subtitle { left: -90px; }
  .hero h1 { max-width: 640px; }
}
@media (max-width: 1024px) { .hero-mascota { position: static; display: block; height: 130px; margin: -24px auto 10px; } }

/* 2026-09-27 : suites de l'audit GPT-6 sur l'accueil. */
.hero-cta { display: inline-block; margin: 22px 0 36px; padding: 13px 26px; font-size: .95rem; }
@media (min-width: 1025px) { .hero-cta { position: relative; left: -110px; } }
@media (min-width: 1025px) and (max-width: 1299px) { .hero-cta { left: -90px; } }
.selection-section .features li.product-cond { font-size: .72rem; color: var(--text-muted); padding: 0 0 4px 18px; }
.selection-section .features li.product-cond::before { content: none; }
.selection-note { margin: 22px auto 0; max-width: 780px; text-align: center; font-size: .8rem; line-height: 1.55; color: var(--text-secondary); }
html { scroll-behavior: smooth; }
#mejores-cuentas { scroll-margin-top: 70px; }
/* 2026-09-27 : « Cómo funciona » avec les pictos du site (piste A) au lieu des emojis. */
.how-icon { background: #e6f4fb; color: var(--accent); }
.how-icon svg.ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* 2026-09-27 (audit GPT-6) : « Cómo funciona » passe après les offres et se compacte
   sur mobile : picto à gauche, texte à droite, sans le grand numéro. */
@media (max-width: 640px) {
  .how-section { padding-top: 40px; padding-bottom: 40px; }
  .how-grid { gap: 10px; }
  .how-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; padding: 14px 16px; }
  .how-card .how-icon { grid-row: 1 / 3; margin: 0; }
  .how-card .how-num { display: none; }
  .how-card h3 { margin: 2px 0 2px; }
  .how-card p { font-size: .82rem; }
}
/* 2026-09-27 : imagin est un logo carré, il paraît minuscule à la hauteur des autres. */
.selection-section .product-logo:has(img[alt="imagin"]) { height: 76px; margin: -12px 0 -12px; }
.selection-section .product-logo img[alt="imagin"] { height: 72px; max-height: none; width: auto; }
/* 2026-09-27 : Bankinter, mot très large, affiché à 24 px il paraissait fin. */
.selection-section .product-logo img[alt="bankinter"], .selection-section .product-logo img[alt="Bankinter"] { height: 32px; max-height: none; width: auto; }
