/* =========================================
   MYVOLT — Blog Rexel
   Design system v2 — Charte Rexel pro
   ========================================= */

:root {
  /* Palette Rexel — alignée Courant Positif */
  --rexel-navy: #061E61;
  --rexel-blue: #0A287D;
  --rexel-blue-mid: #0A287D;
  --rexel-blue-light: #0080FF;
  --rexel-blue-pale: #4A90D9;
  --rexel-blue-tint: #EDF6FF;
  --rexel-midnight: #0F0A3D;
  --rexel-red: #E4002B;
  --rexel-red-light: #FF1A40;

  /* Audiences */
  --aud-electriciens: #061E61;
  --aud-plombiers: #008080;
  --aud-climaticiens: #0077A8;
  --aud-integrateurs: #75007E;
  --aud-partenaires: #0080FF;

  /* Thématiques */
  --them-genie-clim: #009E8C;
  --them-pv:         #00C6FA;
  --them-eclairage:  #FFCE80;
  --them-securite:   #00B894;

  /* Compat legacy */
  --aud-reseaux: #061E61;
  --aud-chauffagistes: #008080;
  --aud-clients: #0080FF;

  /* Neutres */
  --black: #0F1117;
  --white: #FFFFFF;
  --cream: #F7F4F0;
  --cream-dark: #EDE9E2;
  --gray-50: #FAFAF8;
  --gray-100: #F3F3EF;
  --gray-150: #EBEBЕ6;
  --gray-200: #E2E2DC;
  --gray-300: #C7C7C0;
  --gray-400: #9B9B93;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Typographie */
  --font-rexel: "Rexel", "Inter", sans-serif;
  --font-sans: "Roboto", "Inter", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;

  /* Layout */
  --max-width: 1240px;
  --content-width: 760px;

  /* Radii */
  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 8px 10px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 24px rgba(0, 40, 85, 0.14), 0 2px 8px rgba(0, 40, 85, 0.08);

  /* Transitions */
  --t-fast: 0.12s ease;
  --t-base: 0.2s ease;
  --t-slow: 0.35s ease;
}

/* =========================================
   RESET & BASE
   ========================================= */

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-rexel);
}

.breadcrumb, .breadcrumb a, .breadcrumb span {
  font-family: var(--font-rexel);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol { list-style: none; }

/* =========================================
   READING PROGRESS BAR
   ========================================= */

#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--rexel-blue), var(--rexel-blue-pale));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* =========================================
   HEADER
   ========================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--rexel-blue);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--r-sm);
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.logo-tagline {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-top: 1px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  color: var(--gray-600);
  font-family: var(--font-rexel);
  font-weight: 500;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: background 0.42s ease, color 0.42s ease;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--rexel-blue);
  background: var(--rexel-blue-tint);
  text-decoration: none;
}

.nav a.active {
  color: var(--rexel-blue);
  background: var(--rexel-blue-tint);
  font-weight: 600;
}

.nav-divider {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: var(--gray-300);
  margin: 0 6px;
  flex-shrink: 0;
  align-self: center;
}

.nav a svg {
  flex-shrink: 0;
  opacity: 0.65;
  transition: opacity var(--t-fast);
}

.nav a:hover svg,
.nav a.active svg { opacity: 1; }

.nav a span { white-space: nowrap; }

/* Search */
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-full);
  padding: 7px 14px;
  flex: 0 0 220px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  cursor: text;
}

.header-search:focus-within {
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.18);
}

.header-search svg {
  flex-shrink: 0;
  color: rgba(255,255,255,0.6);
}

.header-search input {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: #fff;
  width: 100%;
  outline: none;
}

.header-search input::placeholder {
  color: rgba(255,255,255,0.45);
}

/* Header CTA */
.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0080FF;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--r-full);
  transition: background var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-header-cta:hover {
  background: #0066CC;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.btn-mobile-menu {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--gray-700);
  transition: background var(--t-fast);
}

.btn-mobile-menu:hover {
  background: var(--gray-100);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: 64px;
  background: var(--white);
  z-index: 99;
  padding: 24px 32px;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--gray-200);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 18px;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: var(--r-md);
  color: var(--gray-800);
  transition: background var(--t-fast), color var(--t-fast);
}

.mobile-nav a:hover {
  background: var(--rexel-blue-tint);
  color: var(--rexel-blue);
}

.mobile-nav-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  padding: 16px 16px 4px;
  margin: 0;
}

/* =========================================
   HERO — HOMEPAGE
   ========================================= */

.hero {
  background: linear-gradient(135deg, #001D3D 0%, var(--rexel-navy) 20%, var(--rexel-blue) 55%, var(--rexel-blue-mid) 80%, #001D3D 100%);
  background-size: 400% 400%;
  animation: hero-gradient-shift 18s ease infinite;
  padding: 80px 32px 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(74,144,217,0.25) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--cream);
  clip-path: polygon(0 70%, 100% 0, 100% 100%, 0 100%);
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--r-full);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--white);
  letter-spacing: -1px;
}

.hero h1 em {
  font-style: normal;
  color: rgba(255,255,255,0.7);
}

.hero-lede {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--rexel-navy);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: var(--r-full);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  text-decoration: none;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: var(--r-full);
  transition: background var(--t-fast);
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.2);
  text-decoration: none;
}

/* Hero stats bar */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat {
  text-align: center;
  color: var(--white);
}

.hero-stat-num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: block;
}

.hero-stat-label {
  font-size: 11px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

@keyframes hero-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

.hero-orb {
  position: absolute;
  top: 10%;
  right: 6%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(245,166,35,0.30) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.motion-ready .hero-eyebrow,
.motion-ready .hero h1,
.motion-ready .hero-lede,
.motion-ready .hero-actions,
.motion-ready .hero-stat {
  opacity: 0;
}

/* =========================================
   EXPERTISES BENTO — v1.14.0
   ========================================= */

.expertises-bento {
  position: relative;
  background: var(--cream);
  padding: 96px 0 120px;
  overflow: hidden;
}

.expertises-bento::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(60% 50% at 18% 12%, rgba(0, 40, 85, 0.08), transparent 70%),
    radial-gradient(50% 40% at 88% 90%, rgba(245, 166, 35, 0.10), transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.expertises-bento .container {
  position: relative;
  z-index: 1;
}

.bento-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.bento-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rexel-blue-mid);
  margin-bottom: 14px;
}

.bento-header h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  color: var(--rexel-navy);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.bento-header h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: #00C6FA;
  margin: 18px auto 0;
  border-radius: 2px;
}

.bento-lede {
  font-size: 17px;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.6;
}

/* Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px 220px 172px;
  gap: 14px;
}

/* Grid placements */
.bento-cell--electriciens { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento-cell--plombiers    { grid-column: 3;     grid-row: 1; }
.bento-cell--genie-clim   { grid-column: 4;     grid-row: 1; }
.bento-cell--climaticiens { grid-column: 3;     grid-row: 2; }
.bento-cell--pv           { grid-column: 4;     grid-row: 2; }
.bento-cell--integrateurs { grid-column: 1;     grid-row: 3; }
.bento-cell--partenaires  { grid-column: 2 / 4; grid-row: 3; }
.bento-cell--eclairage    { grid-column: 4;     grid-row: 3; }
.bento-cell--securite     { grid-column: 1 / 5; grid-row: 4; }

/* Accent colors */
.bento-cell--electriciens { --accent: var(--aud-electriciens); }
.bento-cell--plombiers    { --accent: var(--aud-plombiers); }
.bento-cell--climaticiens { --accent: var(--aud-climaticiens); }
.bento-cell--integrateurs { --accent: var(--aud-integrateurs); }
.bento-cell--partenaires  { --accent: var(--aud-partenaires); }
.bento-cell--genie-clim   { --accent: var(--them-genie-clim); }
.bento-cell--pv           { --accent: var(--them-pv); }
.bento-cell--eclairage    { --accent: var(--them-eclairage); }
.bento-cell--securite     { --accent: var(--them-securite); }

/* Card base */
.bento-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 40, 85, 0.08);
  box-shadow: 0 1px 2px rgba(0, 40, 85, 0.04), 0 8px 24px rgba(0, 40, 85, 0.06);
  text-decoration: none;
  color: var(--rexel-navy);
  overflow: hidden;
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 380ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 380ms ease;
}

/* Accent line top */
.bento-cell::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent, #0080FF);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  border-radius: 20px 20px 0 0;
}

.bento-cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 40, 85, 0.07), 0 16px 40px rgba(0, 40, 85, 0.13);
  border-color: rgba(0, 40, 85, 0.14);
}

.bento-cell:hover::before {
  transform: scaleX(1);
}

.bento-cell:focus-visible {
  outline: 2px solid var(--accent, #0080FF);
  outline-offset: 2px;
}

/* Icon */
.bento-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  color: var(--rexel-navy);
  transition: color 350ms ease;
}

.bento-icon svg {
  width: 52px;
  height: 52px;
  display: block;
}

.bento-icon.bento-icon--pair {
  width: auto;
  height: auto;
}

.bento-cell:hover .bento-icon {
  color: var(--accent);
}

/* Body */
.bento-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
}

.bento-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--rexel-navy);
  margin: 0 0 5px;
  line-height: 1.3;
}

.bento-body p {
  font-size: 12px;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.5;
}

/* CTA */
.bento-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent, #0080FF);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 300ms ease 60ms, transform 300ms cubic-bezier(0.16, 1, 0.3, 1) 60ms;
}

.bento-cell:hover .bento-cta {
  opacity: 1;
  transform: translateY(0);
}

/* Featured cell — Électriciens (2×2) */
.bento-cell--electriciens {
  padding: 28px 32px;
}

.bento-cell--electriciens .bento-icon {
  position: relative;
  width: 96px;
  height: 96px;
}

.bento-cell--electriciens .bento-icon::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: rgba(0, 40, 85, 0.06);
  border: 1px solid rgba(0, 40, 85, 0.08);
}

.bento-cell--electriciens .bento-icon svg {
  width: 96px;
  height: 96px;
  position: relative;
  z-index: 1;
}

.bento-cell--electriciens .bento-body h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.bento-cell--electriciens .bento-body p {
  font-size: 14px;
}

/* Full-width cell — Sécurité (horizontal) */
.bento-cell--securite {
  flex-direction: row;
  align-items: center;
  gap: 28px;
  padding: 16px 36px;
}

.bento-cell--securite .bento-body {
  justify-content: center;
}

/* Pair d'icônes (tuyau+clim, camera+digicode) */
.bento-icon--pair {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

/* Lignes de vent — état initial (cachées, révélées par Motion.js) */
.wind-line {
  opacity: 0;
}

/* Responsive 1024px : 2 colonnes */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 12px;
  }
  .bento-cell--electriciens { grid-column: 1 / 3; grid-row: 1;    min-height: 240px; }
  .bento-cell--plombiers    { grid-column: 1;     grid-row: 2;    min-height: 180px; }
  .bento-cell--genie-clim   { grid-column: 2;     grid-row: 2;    min-height: 180px; }
  .bento-cell--climaticiens { grid-column: 1;     grid-row: 3;    min-height: 180px; }
  .bento-cell--pv           { grid-column: 2;     grid-row: 3;    min-height: 180px; }
  .bento-cell--integrateurs { grid-column: 1;     grid-row: 4;    min-height: 180px; }
  .bento-cell--partenaires  { grid-column: 2;     grid-row: 4;    min-height: 180px; }
  .bento-cell--eclairage    { grid-column: 1;     grid-row: 5;    min-height: 160px; }
  .bento-cell--securite     { grid-column: 2;     grid-row: 5;    min-height: 160px;
                               flex-direction: column; justify-content: flex-end; }
}

/* Responsive 640px : 1 colonne */
@media (max-width: 640px) {
  .expertises-bento { padding: 64px 0 80px; }
  .bento-grid { grid-template-columns: 1fr; gap: 10px; }
  .bento-cell--electriciens,
  .bento-cell--plombiers,
  .bento-cell--genie-clim,
  .bento-cell--climaticiens,
  .bento-cell--pv,
  .bento-cell--integrateurs,
  .bento-cell--partenaires,
  .bento-cell--eclairage,
  .bento-cell--securite {
    grid-column: 1;
    grid-row: auto;
    min-height: 160px;
  }
  .bento-cell--securite { flex-direction: column; justify-content: flex-end; }
  .bento-cell--electriciens .bento-body h3 { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb { display: none; }
  .motion-ready .hero-eyebrow,
  .motion-ready .hero h1,
  .motion-ready .hero-lede,
  .motion-ready .hero-actions,
  .motion-ready .hero-stat { opacity: 1 !important; }
  .bento-cell { opacity: 1 !important; transform: none !important; transition: none !important; }
  .bento-cta { opacity: 1 !important; transform: none !important; }
}

/* =========================================
   SECTION CONTAINER
   ========================================= */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 32px;
}

.section-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 32px;
}

.section-eyebrow {
  font-size: 11px;
  color: var(--rexel-blue);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--rexel-blue);
  border-radius: 2px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-100);
}

.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--black);
}

.section-link {
  font-size: 13px;
  color: var(--rexel-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--t-fast);
}

.section-link:hover {
  gap: 8px;
  text-decoration: none;
}

/* =========================================
   TOPIC FILTERS
   ========================================= */

.topic-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
}

.topic-pill:hover,
.topic-pill.active {
  background: var(--rexel-blue);
  color: var(--white);
  border-color: var(--rexel-blue);
  text-decoration: none;
}

/* =========================================
   AUDIENCES GRID
   ========================================= */

.audiences-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.audience-card {
  padding: 32px 28px 28px;
  border-radius: var(--r-lg);
  color: var(--white);
  display: block;
  transition: transform var(--t-base), box-shadow var(--t-base);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.audience-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  transform: translate(30px, -30px);
  transition: transform var(--t-slow);
}

.audience-card:hover::before {
  transform: translate(20px, -20px) scale(1.1);
}

.audience-card:hover {
  transform: translateY(-4px);
  text-decoration: none;
}

.audience-card.reseaux,
.audience-card.electriciens {
  background: linear-gradient(135deg, var(--aud-electriciens), #1A4D8A);
  box-shadow: 0 4px 16px rgba(0, 40, 85, 0.3);
}

.audience-card.reseaux:hover,
.audience-card.electriciens:hover {
  box-shadow: 0 12px 32px rgba(0, 40, 85, 0.4);
}

.audience-card.plombiers {
  background: linear-gradient(135deg, var(--aud-plombiers), #00A896);
  box-shadow: 0 4px 16px rgba(0, 107, 94, 0.3);
}

.audience-card.plombiers:hover {
  box-shadow: 0 12px 32px rgba(0, 107, 94, 0.4);
}

.audience-card.chauffagistes {
  background: linear-gradient(135deg, var(--aud-chauffagistes), #E07820);
  box-shadow: 0 4px 16px rgba(192, 88, 0, 0.3);
}

.audience-card.chauffagistes:hover {
  box-shadow: 0 12px 32px rgba(192, 88, 0, 0.4);
}

.audience-card.climaticiens {
  background: linear-gradient(135deg, var(--aud-climaticiens), #005F8A);
  box-shadow: 0 4px 16px rgba(0, 119, 168, 0.3);
}

.audience-card.climaticiens:hover {
  box-shadow: 0 12px 32px rgba(0, 119, 168, 0.4);
}

.audience-card.integrateurs {
  background: linear-gradient(135deg, var(--aud-integrateurs), #1A7AC8);
  box-shadow: 0 4px 16px rgba(0, 87, 168, 0.3);
}

.audience-card.integrateurs:hover {
  box-shadow: 0 12px 32px rgba(0, 87, 168, 0.4);
}

.audience-card.clients,
.audience-card.partenaires {
  background: linear-gradient(135deg, var(--aud-partenaires), #7BB3E5);
  box-shadow: 0 4px 16px rgba(74, 144, 217, 0.3);
}

.audience-card.clients:hover,
.audience-card.partenaires:hover {
  box-shadow: 0 12px 32px rgba(74, 144, 217, 0.4);
}

.audience-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.audience-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.audience-card p {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 20px;
  line-height: 1.5;
}

.audience-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
  transition: gap var(--t-fast);
}

.audience-card:hover .audience-card-arrow {
  gap: 10px;
}

/* =========================================
   ARTICLE CARDS
   ========================================= */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
}

.article-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  text-decoration: none;
}

.article-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--gray-100);
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}

/* SVG illustrations : contain pour ne pas rogner le contenu */
.article-image img[src$=".svg"] {
  object-fit: contain;
  padding: 20px;
  background: var(--gray-50);
}

.article-card:hover .article-image img {
  transform: scale(1.04);
}

.article-image .badge-on-image {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 1;
}

.article-card.large .article-image { height: 300px; }

/* Article placeholder : illustration thématique quand pas de photo */
.article-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #f0f4f8 0%, #e4ecf4 100%);
}

.article-placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(0, 40, 85, 0.07);
  color: var(--rexel-navy);
}

.article-card.large .article-placeholder-icon { width: 108px; height: 108px; }
.article-card.large .article-placeholder-icon svg { width: 88px; height: 88px; }

.placeholder--electriciens            { background: linear-gradient(150deg, #e8f0fa 0%, #d1e2f5 100%); }
.placeholder--electriciens .article-placeholder-icon            { background: rgba(0, 40, 85, 0.09); color: #002855; }
.placeholder--plombiers-chauffagistes { background: linear-gradient(150deg, #e6f4f1 0%, #cce9e5 100%); }
.placeholder--plombiers-chauffagistes .article-placeholder-icon { background: rgba(0, 107, 94, 0.09); color: #006B5E; }
.placeholder--climaticiens            { background: linear-gradient(150deg, #e5f3f9 0%, #cce6f4 100%); }
.placeholder--climaticiens .article-placeholder-icon            { background: rgba(0, 119, 168, 0.09); color: #0077A8; }
.placeholder--integrateurs            { background: linear-gradient(150deg, #e5ecf9 0%, #ccd9f4 100%); }
.placeholder--integrateurs .article-placeholder-icon            { background: rgba(0, 87, 168, 0.09); color: #0057A8; }
.placeholder--partenaires             { background: linear-gradient(150deg, #edf3fc 0%, #d9e8f8 100%); }
.placeholder--partenaires .article-placeholder-icon             { background: rgba(74, 144, 217, 0.09); color: #4A90D9; }
.placeholder--genie-climatique        { background: linear-gradient(150deg, #e6f7f5 0%, #ccf0eb 100%); }
.placeholder--genie-climatique .article-placeholder-icon        { background: rgba(0, 158, 140, 0.09); color: #009E8C; }
.placeholder--photovoltaique          { background: linear-gradient(150deg, #e6f7fd 0%, #cceef9 100%); }
.placeholder--photovoltaique .article-placeholder-icon          { background: rgba(0, 198, 250, 0.09); color: #00C6FA; }
.placeholder--eclairage               { background: linear-gradient(150deg, #fffaec 0%, #fef5d0 100%); }
.placeholder--eclairage .article-placeholder-icon               { background: rgba(255, 206, 128, 0.15); color: #C8960A; }
.placeholder--securite-communication  { background: linear-gradient(150deg, #e6faf7 0%, #ccf4ee 100%); }
.placeholder--securite-communication .article-placeholder-icon  { background: rgba(0, 184, 148, 0.09); color: #00B894; }
.placeholder--default                 { background: linear-gradient(150deg, #f0f4f8 0%, #e4ecf4 100%); }
.placeholder--default .article-placeholder-icon                 { background: rgba(0, 40, 85, 0.07); color: var(--rexel-navy); }

.article-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  font-size: 10px;
  color: var(--gray-400);
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.article-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--black);
  letter-spacing: -0.2px;
}

.article-card.large .article-title {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.article-excerpt {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  flex: 1;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}

.article-read-time {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-card-cta {
  font-size: 12px;
  color: var(--rexel-blue);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--t-fast);
}

.article-card:hover .article-card-cta {
  gap: 8px;
}

/* Fix overflow quand .article-card-footer est enfant direct de .article-card */
.article-card > .article-card-footer {
  padding: 14px 22px 18px;
  margin-top: 0;
}

/* Point en fin de titre sur les cartes pointant vers un vrai article */
.article-card[href^="article-"] .article-title::after {
  content: " ●";
  color: var(--rexel-blue);
  font-size: 0.55em;
  vertical-align: middle;
  opacity: 0.7;
}

/* Pastille "Article" sur les cartes pointant vers un article */
.article-card[href^="article-"]::after {
  content: "Article";
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--rexel-blue);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: var(--r-xs);
  z-index: 2;
}

/* =========================================
   FEATURED LAYOUT
   ========================================= */

.featured-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.featured-side .article-card {
  flex-direction: row;
  height: auto;
}

.featured-side .article-card .article-image {
  width: 120px;
  min-width: 120px;
  height: auto;
  min-height: 100px;
}

.featured-side .article-card .article-body {
  padding: 16px;
}

.featured-side .article-card .article-title {
  font-size: 14px;
  line-height: 1.4;
}

.featured-side .article-card .article-excerpt {
  display: none;
}

/* =========================================
   BADGES
   ========================================= */

.badge {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  color: var(--rexel-blue);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-xs);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.badge-aud {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-xs);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--white);
}

.badge-aud.reseaux,
.badge-aud.electriciens { background: var(--aud-electriciens); }
.badge-aud.plombiers { background: var(--aud-plombiers); }
.badge-aud.integrateurs { background: var(--aud-integrateurs); }
.badge-aud.clients,
.badge-aud.partenaires { background: var(--aud-partenaires); }
.badge-aud.chauffagistes { background: var(--aud-chauffagistes); }
.badge-aud.eclairage { background: var(--aud-electriciens); }
.badge-aud.climaticiens { background: var(--aud-climaticiens); }

/* =========================================
   NEWSLETTER SECTION
   ========================================= */

.newsletter-section {
  background: linear-gradient(135deg, var(--rexel-navy), var(--rexel-blue));
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.newsletter-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.newsletter-content {
  color: var(--white);
  max-width: 500px;
}

.newsletter-content h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.newsletter-content p {
  font-size: 15px;
  opacity: 0.8;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  min-width: 360px;
}

.newsletter-form input {
  flex: 1;
  border: none;
  border-radius: var(--r-full);
  padding: 13px 20px;
  font-family: inherit;
  font-size: 14px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  outline: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color var(--t-fast), background var(--t-fast);
}

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

.newsletter-form input:focus {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
}

.btn-newsletter {
  background: var(--white);
  color: var(--rexel-navy);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 24px;
  border-radius: var(--r-full);
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  border: none;
  font-family: inherit;
}

.btn-newsletter:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* =========================================
   BREADCRUMB
   ========================================= */

.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 32px 0;
  font-size: 12px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--gray-500);
  transition: color var(--t-fast);
}

.breadcrumb a:hover { color: var(--rexel-blue); }

.breadcrumb .sep {
  margin: 0 6px;
  color: var(--gray-300);
  font-size: 11px;
}

.breadcrumb span:last-child {
  color: var(--gray-700);
  font-weight: 500;
}

/* =========================================
   PAGE HEADER (audience / profil)
   ========================================= */

.page-header {
  background: var(--cream);
  padding: 44px 32px 52px;
  border-bottom: 1px solid var(--cream-dark);
}

.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
  margin-top: 12px;
}

.page-header .lede {
  font-size: 16px;
  color: var(--gray-600);
  max-width: 640px;
  line-height: 1.65;
}

/* Profil tiles */
.profils-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.profil-tile {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: 18px 20px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  display: block;
  text-decoration: none;
}

.profil-tile:hover {
  border-color: var(--rexel-blue-pale);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

.profil-tile h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--black);
}

.profil-tile p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.4;
}

/* =========================================
   CATEGORIE SECTIONS
   ========================================= */

.cat-section {
  margin-bottom: 60px;
}

.cat-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gray-100);
}

.cat-section h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.cat-section .cat-desc {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 3px;
}

/* =========================================
   ARTICLE PAGE
   ========================================= */

.article-hero {
  background: var(--cream);
  padding: 44px 32px 60px;
  border-bottom: 1px solid var(--cream-dark);
}

.article-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.article-hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-hero h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 18px;
  color: var(--black);
}

.article-hero .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray-600);
  margin-bottom: 28px;
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--gray-600);
  padding-top: 20px;
  border-top: 1px solid var(--cream-dark);
  flex-wrap: wrap;
}

.article-hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.article-hero-meta-item svg {
  color: var(--gray-400);
  flex-shrink: 0;
}

.article-hero-image {
  max-width: 1000px;
  margin: -28px auto 0;
  padding: 0 32px;
}

.article-hero-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xl);
}

/* Article layout avec sidebar */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px 96px;
  align-items: start;
}

.article-content {
  min-width: 0;
  max-width: 760px;
}

.article-content h2,
.article-content h3 {
  scroll-margin-top: 88px;
}

.article-content p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 26px;
  color: var(--gray-800);
}

.article-content h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 52px 0 18px;
  letter-spacing: -0.4px;
  color: var(--black);
  padding-top: 24px;
  border-top: 2px solid var(--gray-100);
}

.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--black);
  letter-spacing: -0.2px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 26px 0;
  padding-left: 0;
  list-style: none;
}

.article-content ul li,
.article-content ol li {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 10px;
  color: var(--gray-800);
  padding-left: 24px;
  position: relative;
}

.article-content ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--rexel-blue);
  font-weight: 700;
}

.article-content ol {
  counter-reset: ol-counter;
}

.article-content ol li::before {
  content: counter(ol-counter) ".";
  counter-increment: ol-counter;
  position: absolute;
  left: 0;
  color: var(--rexel-blue);
  font-weight: 700;
}

.article-content blockquote {
  border-left: 4px solid var(--rexel-blue);
  padding: 12px 0 12px 28px;
  margin: 36px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--gray-700);
  line-height: 1.55;
}

.article-content a {
  color: var(--rexel-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.article-content a:hover {
  text-decoration-thickness: 2px;
}

/* Callout */
.callout {
  background: var(--rexel-blue-tint);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 32px 0;
  border-left: 4px solid var(--rexel-blue);
}

.callout-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--rexel-blue);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.callout p {
  font-size: 15px !important;
  margin-bottom: 0 !important;
  color: var(--gray-700) !important;
  line-height: 1.6 !important;
}

.callout--warning {
  background: #fff8ed;
  border-left-color: #f59e0b;
}
.callout--warning .callout-title { color: #b45309; }

.callout--tip {
  background: #f0fdf4;
  border-left-color: #22c55e;
}
.callout--tip .callout-title { color: #15803d; }

/* Sources block */

.sources-block {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin: 40px 0;
}

.sources-block h3 {
  font-size: 11px !important;
  margin: 0 0 14px !important;
  font-weight: 700 !important;
  color: var(--gray-600) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  border: none !important;
  padding: 0 !important;
}

.sources-block ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sources-block li {
  font-size: 14px !important;
  margin-bottom: 8px !important;
  padding-left: 20px !important;
  color: var(--gray-600) !important;
}

.sources-block li::before {
  content: "↗";
  position: absolute;
  left: 0;
  color: var(--rexel-blue);
  font-weight: 700;
}

.sources-block a {
  color: var(--rexel-blue) !important;
}

/* =========================================
   ARTICLE SIDEBAR (sticky)
   ========================================= */

.article-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
}

/* =========================================
   AUTHOR CARD (sidebar article)
   ========================================= */

.author-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 20px;
}

.author-card-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0 0 14px;
}

.author-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rexel-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
}

.author-role {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.4;
  margin-top: 2px;
}

.author-company {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
  margin-top: 2px;
}

.author-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rexel-blue);
  text-decoration: none;
  transition: color var(--t-fast);
}

.author-linkedin:hover { color: var(--rexel-navy); }
.author-linkedin svg { flex-shrink: 0; }

/* =========================================
   TABLE OF CONTENTS (sidebar)
   ========================================= */

.toc-card {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--gray-200);
  border-radius: 0;
  padding: 4px 0 4px 20px;
}

.toc-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0 0 14px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.toc-list li { margin: 0; }

.toc-list a {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--gray-600);
  padding: 7px 0 7px 14px;
  margin-left: -21px;
  border-left: 2px solid transparent;
  text-decoration: none;
  transition: color .2s ease, border-left-color .2s ease;
}

.toc-list a:hover { color: var(--rexel-blue); }

.toc-list a.toc-active {
  color: var(--rexel-blue);
  font-weight: 600;
  border-left-color: var(--rexel-blue);
}

.toc-list a:focus-visible {
  outline: 2px solid var(--rexel-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.toc-list .toc-sub a {
  padding-left: 28px;
  font-size: 12.5px;
  color: var(--gray-500);
}

.toc-list .toc-sub a.toc-active {
  color: var(--rexel-blue);
  font-weight: 500;
}

/* =========================================
   SHARE CARD
   ========================================= */

.share-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}

.share-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0 0 12px;
}

.share-buttons { display: flex; gap: 8px; }

.share-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  padding: 0;
  transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast);
}

.share-btn:hover {
  color: var(--rexel-blue);
  background: var(--rexel-blue-tint);
  border-color: var(--rexel-blue);
}

.share-btn:focus-visible {
  outline: 2px solid var(--rexel-blue);
  outline-offset: 2px;
}

.share-btn-icon-done { display: none; }

.share-btn.is-copied {
  color: var(--white);
  background: var(--rexel-blue);
  border-color: var(--rexel-blue);
}

.share-btn.is-copied .share-btn-icon-default { display: none; }
.share-btn.is-copied .share-btn-icon-done { display: block; }

/* Legacy .btn-share — conserve pour compatibilite */
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: inherit;
}

.btn-share:hover {
  background: var(--rexel-blue-tint);
  border-color: var(--rexel-blue-pale);
  color: var(--rexel-blue);
}

/* Clones inline caches en desktop */
.toc-card--inline,
.share-card--inline { display: none; }

/* =========================================
   FOOTER
   ========================================= */

.footer {
  background: var(--rexel-midnight);
  margin-top: 96px;
  color: rgba(255,255,255,0.85);
}

.footer-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 32px 40px;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .logo-icon-sm {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand .logo-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 280px;
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0 32px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.45);
}

.footer-col ul { list-style: none; }

.footer-col li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  transition: color var(--t-fast);
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: rgba(255,255,255,0.35);
  transition: color var(--t-fast);
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.7);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

/* =========================================
   UTILITIES
   ========================================= */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

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

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    max-width: 760px;
    gap: 32px;
    padding: 48px 24px 72px;
  }

  .article-sidebar {
    position: static;
    top: auto;
    flex-direction: column;
    gap: 20px;
    order: -1;
  }

  .article-sidebar .toc-card,
  .article-sidebar .share-card { display: none; }

  .toc-card--inline {
    display: block;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: 14px 18px;
    margin: 0 0 32px;
  }

  .toc-card--inline > summary {
    list-style: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .toc-card--inline > summary::-webkit-details-marker { display: none; }

  .toc-card--inline > summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--gray-500);
    border-bottom: 2px solid var(--gray-500);
    transform: rotate(45deg);
    transition: transform var(--t-fast);
  }

  .toc-card--inline[open] > summary::after { transform: rotate(-135deg); }

  .toc-card--inline .toc-list {
    margin-top: 12px;
    padding-left: 0;
  }

  .toc-card--inline .toc-list a {
    margin-left: 0;
    border-left: 0;
    padding-left: 0;
  }

  .toc-card--inline .toc-list .toc-sub a {
    padding-left: 14px;
  }

  .share-card--inline {
    display: block;
    margin: 40px 0 0;
  }

  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }
  .nav { display: none; }
  .header-search { display: none; }
  .btn-mobile-menu { display: flex; }
  .btn-header-cta { display: none; }

  .hero { padding: 56px 20px 80px; }
  .hero h1 { font-size: 34px; }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 22px; }

  .section { padding: 48px 20px; }

  .audiences-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .articles-grid { grid-template-columns: 1fr; }
  .featured-row { grid-template-columns: 1fr; }
  .featured-side { display: none; }

  .profils-list { grid-template-columns: 1fr; }

  .newsletter-inner { flex-direction: column; gap: 24px; }
  .newsletter-form { min-width: auto; flex-direction: column; }

  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 20px 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 20px; }

  .article-hero h1 { font-size: 28px; }
  .article-layout { padding: 32px 16px 56px; }
  .breadcrumb { padding: 14px 20px 0; }
  .page-header { padding: 36px 20px 44px; }

  .author-card { padding: 18px; }
  .author-avatar { width: 48px; height: 48px; font-size: 14px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .articles-grid { grid-template-columns: 1fr; }
  .audiences-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
}

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-inner > * {
  animation: fadeInUp 0.5s ease both;
}

.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.12s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.2s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.28s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.35s; }

/* =========================================
   TL;DR BLOCK
   ========================================= */

.tldr-block {
  background: var(--rexel-blue-tint);
  border-left: 4px solid var(--rexel-blue-mid);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 20px 24px;
  margin: 0 0 36px;
}

.tldr-block h2.tldr-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rexel-blue-mid);
  margin: 0 0 12px;
  padding-top: 0;
  border-top: none;
}

.tldr-block ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tldr-block li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-800);
}

/* =========================================
   PRODUCT CAROUSEL
   ========================================= */

.product-carousel {
  margin: 40px 0;
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-200);
}

/* Squelette en attente de remplissage par le JS (fetch navigateur).
   Masqué tant que le JS n'a pas injecté les produits — évite un bloc vide
   si le chargement navigateur est désactivé ou échoue. */
.product-carousel--pending {
  display: none;
}

.product-carousel-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-carousel-title a {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--rexel-blue-mid);
}

.product-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  justify-content: safe center;
}

@supports not (justify-content: safe center) {
  .product-track { justify-content: flex-start; }
}

.product-track::-webkit-scrollbar { height: 4px; }
.product-track::-webkit-scrollbar-track { background: var(--gray-100); border-radius: 2px; }
.product-track::-webkit-scrollbar-thumb { background: var(--rexel-blue-pale); border-radius: 2px; }

.product-card-mini {
  flex: 1 0 160px;
  max-width: 210px;
  scroll-snap-align: start;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--t-base), transform var(--t-base);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-card-mini:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.product-card-mini img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  background: var(--gray-50);
  padding: 10px;
}

.product-card-mini-body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-card-mini-brand {
  font-size: 10px;
  font-weight: 700;
  color: var(--rexel-blue-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-card-mini-ref {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card-mini-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.35;
  flex: 1;
}

.product-card-mini-cta {
  margin-top: 8px;
  padding: 6px 10px;
  background: var(--rexel-navy);
  color: var(--white) !important;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: background var(--t-fast);
}

.product-card-mini-cta:hover { background: var(--rexel-blue-mid); color: var(--white) !important; }

.product-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 10px;
}

.product-carousel-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-sm);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.product-carousel-btn:hover {
  background: var(--rexel-blue-tint);
  border-color: var(--rexel-blue-pale);
}

/* =========================================
   INSTITUTIONAL SOURCE
   ========================================= */

.institutional-source {
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin: 28px 0;
  background: var(--gray-50);
}

.institutional-source-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
}

.institutional-source ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.institutional-source li { font-size: 13px; line-height: 1.5; }

.institutional-source a {
  color: var(--rexel-blue-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================================
   EVENT BLOCK (salons, événements)
   ========================================= */

.event-block {
  background: #fff;
  border-radius: var(--r-lg, 12px);
  border: 1px solid #dde5f0;
  box-shadow: 0 2px 12px rgba(0, 40, 85, 0.07);
  overflow: hidden;
  margin: 32px 0;
}

.event-block-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #002855;
  color: #fff;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 3px solid #0080FF;
}

.event-block-body {
  padding: 20px 20px 22px;
}

.event-block-title {
  font-family: 'Rexel', 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #002855;
  line-height: 1.3;
  margin: 0 0 14px;
}

.event-block-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.event-block-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
}

.event-block-meta-item svg {
  flex-shrink: 0;
  color: #003D7C;
}

.event-block-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: #00C6FA;
  color: #002855;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.35);
}
.event-block-cta:hover { background: #e0941a; color: #002855; text-decoration: none; box-shadow: 0 4px 14px rgba(245, 166, 35, 0.45); }

/* =========================================
   FORMATION CAROUSEL
   ========================================= */

.formation-carousel {
  margin: 40px 0;
  background: #001e45;
  border-radius: var(--r-lg);
  padding: 24px 24px 20px;
  overflow: clip;
}

/* Header */
.formation-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.formation-carousel-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.formation-carousel-see-all-link {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.formation-carousel-see-all-link:hover { color: #fff; }

/* Track */
.formation-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.formation-track::-webkit-scrollbar { height: 3px; }
.formation-track::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); border-radius: 2px; }
.formation-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 2px; }

/* Card */
.formation-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.formation-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* Card image */
.formation-card-img {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: linear-gradient(135deg, #002855 0%, #003D7C 100%);
  flex-shrink: 0;
}
.formation-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.formation-card-img--fallback {
  background: linear-gradient(135deg, #002855 0%, #1a4a8a 100%);
}

/* Badges overlay on image */
.formation-card-badges-overlay {
  position: absolute;
  bottom: 6px;
  left: 8px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.formation-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}
.formation-badge--qualifiant { background: rgba(46,125,50,0.85); color: #fff; }
.formation-badge--certifiant { background: rgba(21,101,192,0.85); color: #fff; }
.formation-badge--opco       { background: rgba(230,126,34,0.85); color: #fff; }

/* Card body */
.formation-card-body {
  padding: 12px 12px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.formation-card-ref {
  font-size: 10px;
  font-weight: 700;
  color: #003D7C;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.formation-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.formation-card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.formation-card-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #666;
}

/* Card footer */
.formation-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 10px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

.formation-card-price {
  font-size: 13px;
  font-weight: 700;
  color: #111;
}
.formation-card-price--quote {
  font-size: 11px;
  font-weight: 500;
  color: #777;
}

.formation-card-cta {
  font-size: 11px;
  font-weight: 700;
  color: #003D7C;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.formation-card:hover .formation-card-cta { color: #002855; }

/* Last "all formations" card */
.formation-card--all {
  flex: 0 0 180px;
  background: linear-gradient(160deg, #003D7C 0%, #001e45 100%);
  border: 1px solid rgba(255,255,255,0.15);
  align-items: stretch;
}
.formation-card--all:hover { transform: translateY(-3px); }

.formation-card-all-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  text-align: center;
  color: #fff;
}
.formation-card-all-inner svg {
  opacity: 0.7;
}
.formation-card-all-inner strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}
.formation-card-all-cta {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.2s;
}
.formation-card--all:hover .formation-card-all-cta {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Nav buttons */
.formation-carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 12px;
}
.formation-carousel-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.formation-carousel-btn:hover { background: rgba(255,255,255,0.25); }

/* =========================================
   SECONDARY NAV (rubriques transverses)
   ========================================= */

.nav-secondary {
  background: var(--rexel-blue-tint);
  border-bottom: 1px solid var(--gray-200);
}

.nav-secondary-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
}

.nav-secondary-inner::-webkit-scrollbar { display: none; }

.nav-secondary-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  padding: 10px 12px 10px 0;
  border-right: 1px solid var(--gray-300);
  margin-right: 8px;
}

.nav-secondary-inner a {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  transition: background var(--t-fast), color var(--t-fast);
}

.nav-secondary-inner a:hover,
.nav-secondary-inner a.active {
  background: var(--rexel-blue-mid);
  color: var(--white);
}

@media (max-width: 768px) {
  .nav-secondary-inner { padding: 0 16px; }
  .nav-secondary-label { display: none; }
}

/* =========================================
   FAQ SCHEMA BLOCK
   ========================================= */

.faq-block { margin: 40px 0; }

.faq-block h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 8px;
}

.faq-answer {
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-700);
  margin: 0;
}

/* =========================================
   TABLES ARTICLE
   ========================================= */

.article-col table,
.article-prose table,
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: auto;
  display: block;
}

.article-col table thead,
.article-prose table thead,
.article-content table thead {
  background: var(--rexel-navy);
  color: #fff;
}

.article-col table th,
.article-prose table th,
.article-content table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  color: #fff;
}

.article-col table td,
.article-prose table td,
.article-content table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-800);
  vertical-align: top;
}

.article-col table tbody tr:last-child td,
.article-prose table tbody tr:last-child td,
.article-content table tbody tr:last-child td {
  border-bottom: none;
}

.article-col table tbody tr:hover td,
.article-prose table tbody tr:hover td,
.article-content table tbody tr:hover td {
  background: #f0f4f9;
}

@media (max-width: 640px) {
  .article-col table,
  .article-prose table,
  .article-content table {
    font-size: 13px;
  }
  .article-col table th,
  .article-prose table th,
  .article-content table th,
  .article-col table td,
  .article-prose table td,
  .article-content table td {
    padding: 8px 10px;
  }
}

/* =========================================
   AUTEUR FICTIF REXEL
   ========================================= */

.author-link {
  color: var(--rexel-blue);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--t-fast);
}

.author-link:hover { color: var(--rexel-navy); text-decoration: underline; }

.author-role {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 400;
}

/* =========================================
   NAV-SECONDARY — désactivée (nav unifiée)
   ========================================= */

.nav-secondary { display: none; }

/* =========================================
   TAGS ARTICLES
   ========================================= */

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.article-page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}

.article-tag--page {
  font-size: 12px;
  padding: 4px 12px;
}

.article-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 2px 7px;
  border-radius: var(--r-full);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}

.article-tag:hover {
  background: var(--rexel-blue-tint);
  color: var(--rexel-blue);
  border-color: var(--rexel-blue-pale);
  text-decoration: none;
}

/* ── Tag section (single article + tag archive) ─────────────────────── */
section.article-tags {
  border-top: 1px solid var(--gray-200);
  padding: 32px 0;
}

.article-tags-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0 0 12px;
}

.article-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tags-list .article-tag {
  font-size: 13px;
  padding: 5px 14px;
}

/* =========================================
   CONTAINER — largeur max + marges latérales
   ========================================= */

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

/* =========================================
   SEARCH — form flex dans .header-search
   ========================================= */

.header-search form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

/* =========================================
   RELATED ARTICLES
   ========================================= */

.related-articles {
  padding: 48px 0 80px;
  border-top: 1px solid var(--gray-200);
}

.related-articles h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 28px;
}

/* =========================================
   HUB TEMPLATE — Design Rexel
   ========================================= */

/* Hub hero */
.hub-hero {
  padding: 56px 0 48px;
  background: linear-gradient(135deg, #edf6ff 0%, #fff 60%);
  overflow: hidden;
}
.hub-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.hub-hero-text h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #10093C;
  margin: 12px 0 16px;
  line-height: 1.15;
}
.hub-hero-text .lede {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.65;
  max-width: 480px;
}
.hub-hero-illustration img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 0 24px 0 24px;
  box-shadow: var(--shadow-lg);
}

/* Hub tabs */
.hub-tabs-container {
  background: #fff;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 60px;
  z-index: 20;
}
.hub-tabs-container .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.hub-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.hub-tabs::-webkit-scrollbar { display: none; }
.hub-tab {
  flex-shrink: 0;
  padding: 10px 20px;
  background: transparent;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
}
.hub-tab:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}
.hub-tab.active {
  background: #10093C;
  color: #fff;
  border-color: #10093C;
}
.hub-tab-pane {
  display: none;
  padding: 40px 0;
}
.hub-tab-pane.active { display: block; }

/* Hub blocks */
.hub-block {
  padding: 56px 0;
}
.hub-block .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.hub-block-alt {
  background: var(--gray-50);
}
.hub-block-title {
  font-size: 26px;
  font-weight: 800;
  color: #10093C;
  margin: 0 0 28px;
  letter-spacing: -0.3px;
}
.hub-empty {
  color: var(--gray-500);
  padding: 24px 0;
  font-size: 15px;
}

/* Nav dropdown submenus */
.nav-root {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.nav-item > a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.nav-chevron {
  transition: transform 0.42s ease;
}
.nav-has-sub {
  position: relative;
}
.nav-submenu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 230px;
  background: var(--rexel-navy);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border-radius: 0 0 var(--r-md) var(--r-md);
  padding: 6px 0;
  list-style: none;
  margin: 0;
  z-index: 100;
  border-top: 2px solid rgba(255,255,255,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.nav-has-sub:hover > .nav-submenu,
.nav-has-sub:focus-within > .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-has-sub:hover > a .nav-chevron {
  transform: rotate(180deg);
}
.nav-submenu a {
  display: block;
  padding: 10px 18px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-submenu a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Article card — asymmetric radius (Rexel signature) */
.article-card {
  border-radius: 0 15px 0 15px;
}
.article-image {
  border-radius: 0 15px 0 0;
}

/* Audience + specialite cards — asymmetric radius */
.audience-card,
.specialite-card {
  border-radius: 0 15px 0 15px;
}

/* Mobile nav groups */
.mobile-nav-group {
  margin-bottom: 8px;
}
.mobile-nav-group .mobile-nav-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  padding: 8px 16px 4px;
}

@media (max-width: 768px) {
  .hub-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hub-hero-illustration { display: none; }
  .hub-tabs-container { position: static; }
  .nav-submenu { position: static; box-shadow: none; border: none; padding-left: 8px; opacity: 0; visibility: hidden; transform: none; transition: none; }
  .nav-has-sub:hover > .nav-submenu { opacity: 0; visibility: hidden; }
}

/* =========================================
   DESIGN HUB.HTML — Refonte visuelle 2026
   ========================================= */

:root {
  --hub-primary: #0083FF;
  --hub-dark: #10093C;
  --hub-navy: #0A287D;
  --hub-light: #edf6ff;
  --hub-radius-card: 0 15px 0 15px;
  --hub-radius-badge: 0 4px 0 4px;
}

/* — HEADER hub overrides supprimés — header uniforme navy sur toutes les pages — */

/* — HERO : dark gradient → light #edf6ff — */
.hero {
  background: var(--hub-light) !important;
  animation: none !important;
  padding: 72px 32px 80px !important;
}

.hero::before,
.hero::after,
.hero-orb { display: none !important; }

.hero h1 {
  color: var(--hub-dark) !important;
  font-style: italic;
  font-size: clamp(28px, 4vw, 42px) !important;
}

.hero-eyebrow {
  background: rgba(0, 131, 255, 0.1) !important;
  border-color: rgba(0, 131, 255, 0.3) !important;
  color: var(--hub-primary) !important;
}

.hero-lede { color: #4B5563 !important; }

.btn-hero-primary {
  background: var(--hub-primary) !important;
  color: #fff !important;
  border-radius: 0 8px 0 8px;
}

.btn-hero-primary:hover { background: var(--hub-navy) !important; }

.btn-hero-secondary {
  background: transparent !important;
  border: 2px solid var(--hub-primary) !important;
  color: var(--hub-primary) !important;
  border-radius: 0 8px 0 8px;
}

.btn-hero-secondary:hover {
  background: rgba(0, 131, 255, 0.08) !important;
}

.hero-stats { border-top-color: rgba(0, 131, 255, 0.15) !important; }
.hero-stat { color: var(--hub-dark) !important; }

.hero-stat-num {
  color: var(--hub-primary) !important;
  font-size: 32px !important;
}

.hero-stat-label { color: #6B7280 !important; }

/* — BENTO GRID : #0A287D bg — */
.expertises-bento {
  background: var(--hub-navy) !important;
  padding: 64px 0 !important;
}

.expertises-bento::before { display: none !important; }

.bento-eyebrow { color: rgba(255, 255, 255, 0.6) !important; }
.bento-header h2 { color: #fff !important; }
.bento-header .bento-lede { color: rgba(255, 255, 255, 0.7) !important; }

.bento-cell {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--hub-radius-card) !important;
  box-shadow: none !important;
}

.bento-cell:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
}

.bento-body h3 { color: #fff !important; }
.bento-body p { color: rgba(255, 255, 255, 0.65) !important; }
.bento-cta { color: rgba(255, 255, 255, 0.85) !important; }

.bento-cell svg,
.bento-icon svg { stroke: rgba(255, 255, 255, 0.8) !important; }

/* — AUDIENCES GRID : #0083FF bg — */
.audiences-section {
  background: var(--hub-primary) !important;
  padding: 56px 0 !important;
}

.audiences-section h2 { color: #fff !important; }

.audience-card {
  background: rgba(255, 255, 255, 0.15) !important;
  box-shadow: none !important;
  border-radius: var(--hub-radius-card) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: all 0.3s ease !important;
}

.audience-card.electriciens,
.audience-card.plombiers,
.audience-card.climaticiens,
.audience-card.integrateurs,
.audience-card.partenaires {
  background: rgba(255, 255, 255, 0.15) !important;
  box-shadow: none !important;
}

.audience-card h3 { color: #fff !important; }
.audience-card p { color: rgba(255, 255, 255, 0.82) !important; }
.audience-card .audience-card-arrow { color: rgba(255, 255, 255, 0.9) !important; }
.audience-card .audience-card-icon svg { stroke: rgba(255, 255, 255, 0.88) !important; }

.audience-card:hover {
  background: #fff !important;
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.audience-card:hover h3 { color: var(--hub-dark) !important; }
.audience-card:hover p { color: #4B5563 !important; }
.audience-card:hover .audience-card-arrow { color: var(--hub-primary) !important; }
.audience-card:hover .audience-card-icon svg { stroke: var(--hub-primary) !important; }

/* — FEATURED + RECENT SECTIONS : #0A287D bg — */
.featured-articles,
.recent-articles {
  background: var(--hub-navy) !important;
  padding: 56px 0 !important;
}

.featured-articles h2,
.recent-articles h2,
.featured-articles .section-eyebrow,
.recent-articles .section-eyebrow { color: #fff !important; }

/* — ARTICLE CARDS — */
.article-card {
  border-radius: var(--hub-radius-card) !important;
  border: none !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07) !important;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.article-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

.article-image,
.article-image img {
  height: 160px !important;
  border-radius: 0 !important;
}

.article-image { border-radius: 0 15px 0 0 !important; }

.article-card.large .article-image,
.article-card.large .article-image img { height: 240px !important; }

.article-title { color: var(--hub-dark) !important; font-weight: 700 !important; }

.article-card-cta { color: var(--hub-primary) !important; font-weight: 600 !important; }

/* — BADGES — */
.badge-aud {
  border-radius: var(--hub-radius-badge) !important;
  font-size: 0.78rem !important;
  padding: 4px 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.badge-aud.electriciens { background: #033db9 !important; color: #fff !important; }
.badge-aud.plombiers-chauffagistes,
.badge-aud.plombiers { background: #258642 !important; color: #fff !important; }
.badge-aud.climaticiens { background: #0077A8 !important; color: #fff !important; }
.badge-aud.integrateurs,
.badge-aud.installateur,
.badge-aud.tableautier { background: #57379a !important; color: #fff !important; }
.badge-aud.partenaires,
.badge-aud.clients-finaux { background: #4A90D9 !important; color: #fff !important; }

.badge-on-image { border-radius: var(--hub-radius-badge) !important; }

/* — NEWSLETTER — */
.newsletter-section {
  background: linear-gradient(135deg, var(--hub-dark), var(--hub-navy)) !important;
}

/* — FOOTER — */
.footer {
  background: var(--hub-dark) !important;
  margin-top: 0 !important;
}

.footer-brand .logo-icon-sm {
  background: rgba(0, 131, 255, 0.3) !important;
}

/* — READING PROGRESS — */
#reading-progress {
  background: linear-gradient(90deg, var(--hub-primary), #0060cc) !important;
}

/* — HUB PAGE TEMPLATE — */
.hub-hero { background: var(--hub-light) !important; }
.hub-hero-text h1 { color: var(--hub-dark) !important; }
.hub-hero-illustration img { border-radius: 0 24px 0 24px !important; }

.hub-tab.active {
  background: var(--hub-dark) !important;
  border-color: var(--hub-dark) !important;
  color: #fff !important;
}

.hub-tab:hover:not(.active) {
  background: var(--hub-light) !important;
  border-color: var(--hub-primary) !important;
  color: var(--hub-primary) !important;
}

.hub-block-title { color: var(--hub-dark) !important; }

/* — TAXONOMY ARCHIVE HERO — */
.taxonomy-hero,
.term-hero { background: var(--hub-light) !important; }

/* — SEARCH FORM — */
.header-search { border-radius: 0 8px 0 8px; }

/* — TOC & SHARE — */
.toc-card, .share-card {
  border-radius: var(--hub-radius-card);
}

/* MOBILE */
@media (max-width: 768px) {
  .hero { padding: 40px 20px 48px !important; }
  .hero h1 { font-size: 26px !important; }
  .expertises-bento,
  .audiences-section,
  .featured-articles,
  .recent-articles { padding: 40px 0 !important; }
  .audience-card { border-radius: 0 12px 0 12px !important; }
}

/* =========================================
   FRONT-PAGE — Design hub.html 2026
   ========================================= */

/* 1. INTRO SECTION */
.fp-intro {
  background: var(--hub-light);
  padding: 64px 0;
}

.fp-intro-row {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.fp-intro-img {
  flex: 0 0 45%;
}

.fp-intro-img img {
  width: 100%;
  height: auto;
  border-radius: 0 24px 0 24px;
  box-shadow: var(--shadow-lg);
  display: block;
}

.fp-intro-text {
  flex: 1;
}

.fp-intro-text h1 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  font-style: italic;
  color: var(--hub-dark);
  line-height: 1.2;
  margin: 0 0 16px;
}

.fp-intro-text p {
  font-size: 17px;
  line-height: 1.7;
  color: #4B5563;
  max-width: 52ch;
  margin: 0 0 28px;
}

.fp-intro-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.fp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--hub-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 0 8px 0 8px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.fp-btn-primary:hover {
  background: var(--hub-navy);
  transform: translateY(-1px);
  text-decoration: none;
}

.fp-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 2px solid var(--hub-primary);
  color: var(--hub-primary);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 0 8px 0 8px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.fp-btn-secondary:hover {
  background: rgba(0, 131, 255, 0.08);
  text-decoration: none;
}

/* 2. AUDIENCE TABS */
.fp-audiences {
  background: var(--hub-primary);
  padding: 32px 0 40px;
}

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

.fp-aud-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
  list-style: none;
}

.fp-aud-tab {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  border: none;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  font-family: var(--font-rexel);
}

.fp-aud-tab:hover,
.fp-aud-tab.active {
  background: #fff;
  color: var(--hub-dark);
}

.fp-aud-pane {
  display: none;
}

.fp-aud-pane.active {
  display: block;
  animation: fpPaneIn 0.42s ease forwards;
}

@keyframes fpPaneIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fp-aud-grid {
  display: grid;
  gap: 16px;
}

.fp-aud-grid--3 { grid-template-columns: repeat(3, 1fr); }
.fp-aud-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 700px; margin: 0 auto; }
.fp-aud-grid--1 { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }

.fp-aud-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border-radius: 0 15px 0 15px;
  background-size: cover;
  background-position: center;
  background-color: var(--hub-navy);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.fp-aud-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 40, 125, 0.45);
  transition: background 0.3s ease;
}

.fp-aud-card:hover { transform: translateY(-3px); text-decoration: none; }
.fp-aud-card:hover::before { background: rgba(0, 131, 255, 0.55); }

.fp-aud-card span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  padding: 8px 16px;
  text-align: center;
}

.fp-aud-card:hover span { background: var(--hub-primary); }

.fp-aud-card--wide { min-height: 140px; }

/* 3. CONTENT SECTION */
.fp-content {
  background: #f7f9fc;
  padding: 56px 0 64px;
}

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

.fp-block {
  margin-bottom: 56px;
}

.fp-block:last-child { margin-bottom: 0; }

.fp-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.fp-block-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--rexel-navy);
  margin: 0;
}

.fp-see-all {
  color: var(--hub-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.fp-see-all:hover { color: var(--rexel-navy); text-decoration: none; }

.fp-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Article card — hub.html style */
.fp-card {
  background: #fff;
  border-radius: 0 15px 0 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.fp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.fp-card-img {
  height: 150px;
  overflow: hidden;
  background: #e5e7eb;
  border-radius: 0 15px 0 0;
}

.fp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.fp-card:hover .fp-card-img img { transform: scale(1.04); }

.fp-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.fp-card-tags { margin-bottom: 8px; }

.fp-badge {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 0 4px 0 4px;
  margin-right: 4px;
}

.fp-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #858796;
  margin-bottom: 10px;
}

.fp-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hub-dark);
  line-height: 1.35;
  margin: 0 0 10px;
  flex: 1;
}

.fp-card-excerpt {
  font-size: 0.87rem;
  color: #6B7280;
  line-height: 1.55;
  margin: 0 0 12px;
  flex: 1;
}

.fp-card-footer {
  margin-top: auto;
  text-align: right;
}

.fp-read-more {
  color: var(--hub-primary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fp-card:hover .fp-read-more { transform: translateX(4px); }

/* Stretched link overlay */
a.fp-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }

/* 4. PROMO BANNER */
.fp-promo-block { border-top: 1px solid rgba(0,0,0,0.08); padding-top: 40px; margin-bottom: 0; }

.fp-promo-title {
  color: var(--rexel-navy);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
}

.fp-promo-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0 15px 0 15px;
}

.fp-promo-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fp-promo-slide {
  min-width: 100%;
  display: none;
}

.fp-promo-slide.active { display: block; }

.fp-promo-slide a {
  display: block;
  height: 150px;
  background: #0a1833;
  border-radius: 0 15px 0 15px;
  overflow: hidden;
}

.fp-promo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0 15px 0 15px;
  display: block;
  transition: transform 0.3s ease;
}

.fp-promo-slide img:hover { transform: scale(1.01); }

.fp-promo-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  color: var(--hub-dark);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.fp-promo-btn:hover { background: var(--hub-primary); color: #fff; transform: translateY(-50%) scale(1.1); }
.fp-promo-prev { left: -18px; }
.fp-promo-next { right: -18px; }

/* =========================================
   RESPONSIVE FRONT-PAGE
   ========================================= */
@media (max-width: 900px) {
  .fp-intro-row { flex-direction: column; gap: 28px; }
  .fp-intro-img { flex: none; width: 100%; max-width: 420px; margin: 0 auto; }
  .fp-articles-grid { grid-template-columns: repeat(2, 1fr); }
  .fp-aud-grid--3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .fp-intro { padding: 40px 0; }
  .fp-intro-text h1 { font-size: 24px; }
  .fp-articles-grid { grid-template-columns: 1fr; }
  .fp-aud-grid--3,
  .fp-aud-grid--2 { grid-template-columns: 1fr; }
  .fp-aud-tabs { flex-direction: column; align-items: center; }
  .fp-promo-prev { left: 4px; }
  .fp-promo-next { right: 4px; }

  /* Bannière promo : visible en entier en mobile (pas de crop) */
  .fp-promo-slide a {
    height: auto;
    aspect-ratio: 4 / 1;
    background: transparent;
  }
  .fp-promo-slide img {
    height: auto;
    object-fit: contain;
  }
}

/* ════════════════════════════════════════════════════════════════════
   ARTICLE PAGE — Esprit Courant Positif v1.19.7
   Source Serif 4 pour les titres, Inter pour UI et corps
   ════════════════════════════════════════════════════════════════════ */

:root {
  --serif: 'Rexel', 'Source Serif 4', 'Georgia', serif;
  --cp-blue: #0083FF;
  --cp-navy: #10093C;
  --cp-deep: #0A287D;
  --cp-gray-100: #f4f5f7;
  --cp-gray-200: #e8eaed;
  --cp-gray-500: #6b7280;
  --cp-gray-800: #1f2937;
}

/* ── Hero image pleine largeur ── */
/* ── En-tête article — bannière 2 colonnes (hub.html / Courant Positif) ── */
.art-header {
  background: #fff;
  border-bottom: 1px solid var(--cp-gray-200);
}

.art-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.art-header-row {
  display: flex;
  align-items: center;
  gap: 56px;
}

.art-header-text {
  flex: 1;
  min-width: 0;
}

.art-header-img {
  flex: 0 0 42%;
}

.art-header-img img {
  width: 100%;
  border-radius: 0 24px 0 24px;
  box-shadow: var(--shadow-lg);
  display: block;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
}

/* ── Barre méta (badge + temps + date) ── */
.art-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.art-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 0 6px 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: var(--cp-blue);
}

.art-badge--electriciens            { background: #0A287D; }
.art-badge--plombiers-chauffagistes { background: #006B5E; }
.art-badge--climaticiens            { background: #0077A8; }
.art-badge--integrateurs            { background: #57379a; }
.art-badge--installateur            { background: #57379a; }
.art-badge--tableautier             { background: #57379a; }
.art-badge--photovoltaique          { background: #d97706; }
.art-badge--eclairage               { background: #0083FF; }
.art-badge--genie-climatique        { background: #059669; }
.art-badge--securite-communication  { background: #dc2626; }
.art-badge--partenaires,
.art-badge--clients-finaux          { background: #4A90D9; }

.art-readtime {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--cp-gray-500);
  font-weight: 500;
}

.art-date {
  font-size: 13px;
  color: var(--cp-gray-500);
  margin-left: auto;
}

/* ── Titre principal ── */
.art-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--cp-navy);
  margin: 0 0 20px;
}

/* ── Lede / chapô ── */
.art-lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--cp-gray-500);
  font-weight: 400;
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
}

/* ── Corps de l'article : typographie éditorial ── */
.article-content h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--cp-navy);
  margin: 56px 0 16px;
  padding-top: 0;
  border-top: none;
  border-left: 4px solid var(--cp-blue);
  padding-left: 16px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.article-content h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--cp-navy);
  margin: 36px 0 12px;
  letter-spacing: -0.1px;
}

.article-content p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--cp-gray-800);
  margin-bottom: 24px;
}

.article-content ul li::before {
  color: var(--cp-blue);
}

.article-content ol li::before {
  color: var(--cp-blue);
}

.article-content blockquote {
  background: var(--cp-gray-100);
  border-left: 5px solid var(--cp-blue);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 36px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--cp-navy);
  line-height: 1.6;
}

.article-content blockquote p {
  margin: 0;
  font-size: inherit;
  color: inherit;
}

.article-content a {
  color: var(--cp-blue);
}

/* ── Tags hashtag ── */
.art-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--cp-gray-200);
}

.art-tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--cp-gray-100);
  border: 1px solid var(--cp-gray-200);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cp-gray-500);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.art-tag:hover {
  background: var(--cp-blue);
  border-color: var(--cp-blue);
  color: #fff;
}

/* ── Articles récents ── */
.art-related {
  background: var(--cp-gray-100);
  padding: 56px 0 72px;
  margin-top: 48px;
  border-top: 1px solid var(--cp-gray-200);
}

.art-related-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--cp-navy);
  margin-bottom: 36px;
  letter-spacing: -0.3px;
}

/* ── Remove old article-hero styles on single (override) ── */
.article .article-hero,
.article .article-hero-image { display: none !important; }

/* ── Sidebar — harmoniser avec Courant Positif ── */
.toc-card,
.share-card {
  border: 1px solid var(--cp-gray-200);
  border-radius: 0 12px 0 12px;
  background: #fff;
}

.toc-title,
.share-title {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--cp-navy);
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.toc-list a { color: var(--cp-gray-800); }
.toc-list a:hover { color: var(--cp-blue); }
.toc-list li.active > a { color: var(--cp-blue); font-weight: 600; }

/* ── Breadcrumb Courant Positif ── */
.breadcrumb {
  padding: 12px 0 20px;
  font-size: 13px;
}

.breadcrumb a { color: var(--cp-blue); }

/* ── Article card harmonisée ── */
.article-card {
  border: 1px solid var(--cp-gray-200);
  border-radius: 0 12px 0 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: 0 8px 24px rgba(10,40,125,0.12);
  transform: translateY(-4px);
}

.article-card .article-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.article-card .article-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card .article-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--cp-navy);
  line-height: 1.4;
  margin-bottom: 12px;
}

.article-card .article-card-cta {
  margin-top: auto;
  color: var(--cp-blue);
  font-size: 13px;
  font-weight: 600;
}

/* ── Responsive article page ── */
@media (max-width: 900px) {
  .art-header-row { flex-direction: column; gap: 28px; }
  .art-header-img { flex: none; width: 100%; order: -1; }
  .art-header-img img { aspect-ratio: 16/9; }
  .art-header-inner { padding: 32px 16px; }
  .art-date { margin-left: 0; }
  .art-related { padding: 40px 0 56px; }
}

@media (max-width: 600px) {
  .art-title { font-size: 26px; }
  .art-lede { font-size: 16px; }
}

/* =========================================
   MEGA MENU — actif seulement quand le menu admin
   contient un 3e niveau (détection CSS :has()).
   Sans 3e niveau : déroulant classique inchangé.
   ========================================= */

.nav-submenu:has(.nav-mega-list) {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  left: 50%;
  translate: -50% 0;
  min-width: max-content;
  max-width: min(92vw, 980px);
  flex-wrap: wrap;
  padding: 16px 18px 18px;
}

.nav-submenu:has(.nav-mega-list) > li {
  min-width: 200px;
}

.nav-mega-col-title {
  font-weight: 700 !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  margin-bottom: 4px;
}

.nav-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mega-list a {
  font-size: 13px !important;
  padding: 7px 18px !important;
  color: rgba(255,255,255,0.72) !important;
}

.nav-mega-list a:hover {
  color: #fff !important;
}

/* Nav mobile — 3e niveau indenté */
.mobile-nav-parent {
  font-weight: 600;
}

.mobile-nav-sub {
  padding-left: 24px !important;
  font-size: 14px !important;
  opacity: 0.85;
}
