/* ============================================
   SMIC-HORAIRE.FR — Design System
   Style institutionnel français, Adsense-ready
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Variables ─────────────────────────────── */
:root {
  --blue-primary:   #1A56DB;
  --blue-dark:      #1240A8;
  --blue-light:     #E8F0FE;
  --blue-mid:       #BDCFFA;
  --blue-pale:      #F0F4FF;
  --green:          #0E7C54;
  --green-light:    #E6F4EE;
  --orange:         #D97706;
  --orange-light:   #FEF3C7;
  --red:            #C0392B;
  --red-light:      #FDEEEC;
  --purple:         #7C3AED;
  --purple-light:   #EDE9FE;
  --teal:           #0D9488;
  --teal-light:     #F0FDFA;
  --pink:           #DB2777;
  --pink-light:     #FCE7F3;
  --yellow:         #B45309;
  --yellow-light:   #FEF9C3;
  --cyan:           #0E7490;
  --cyan-light:     #CFFAFE;
  --gray-50:        #F9FAFB;
  --gray-100:       #F3F4F6;
  --gray-200:       #E5E7EB;
  --gray-300:       #D1D5DB;
  --gray-400:       #9CA3AF;
  --gray-500:       #6B7280;
  --gray-600:       #4B5563;
  --gray-700:       #374151;
  --gray-800:       #1F2937;
  --gray-900:       #111827;
  --white:          #FFFFFF;
  --text-primary:   #1F2937;
  --text-secondary: #4B5563;
  --text-muted:     #6B7280;
  --border:         #E5E7EB;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:         0 4px 12px rgba(0,0,0,.08);
  --shadow-md:      0 8px 24px rgba(0,0,0,.10);
  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --font:           'Inter', system-ui, -apple-system, sans-serif;
  --max-width:      1160px;
  --transition:     0.2s ease;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ── Layout ────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 20px; width: 100%; box-sizing: border-box; }
.container--wide   { max-width: 1320px; margin: 0 auto; padding: 0 20px; width: 100%; box-sizing: border-box; }

/* ── HEADER ────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--blue-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(26,86,219,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

/* ── LOGO ───────────────────────────────────── */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--blue-primary);
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-name {
  display: inline;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.logo-fr {
  display: inline;
  color: var(--blue-primary);
  font-weight: 800;
  font-size: inherit;
}
.logo-tagline {
  display: block;
  font-size: .80rem;
  font-weight: 500;
  color: var(--gray-500);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--blue-primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: .95rem; flex-shrink: 0;
}

/* ── FOOTER LOGO ────────────────────────────── */
.footer-logo-name {
  display: inline-block;
  color: white;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 12px;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.footer-logo-fr {
  display: inline;
  color: var(--blue-primary);
  font-weight: 800;
  font-size: inherit;
}

/* ══════════════════════════════════════════════
   NAVIGATION PRINCIPALE
   ══════════════════════════════════════════════ */

.nav-menu {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 64px;
  gap: 0;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 12px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
}
.nav-link:hover,
.nav-link.active {
  color: var(--blue-primary);
  background: var(--blue-pale);
  text-decoration: none;
}
.nav-link.active {
  border-bottom-color: var(--blue-primary);
}

/* Flèche dropdown */
.nav-arrow {
  font-size: 1.9rem;
  color: var(--blue-primary);
  font-weight: 900;
  line-height: 1;
  transition: transform 0.25s ease;
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}
.nav-item.dropdown:hover .nav-arrow,
.nav-item.dropdown.open .nav-arrow {
  transform: rotate(180deg);
}

/* ── DROPDOWN ── */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  min-width: 220px;
  padding: 6px 0;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0s linear 0.18s;
  z-index: 200;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0; right: 0;
  height: 10px;
  background: transparent;
}

.nav-item.dropdown::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0; right: 0;
  height: 10px;
  background: transparent;
  display: none;
  z-index: 201;
}
.nav-item.dropdown:hover::after { display: block; }

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0s linear 0ms;
}

.dropdown-menu--right {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(-4px);
}
.nav-item.dropdown:hover .dropdown-menu--right {
  transform: translateX(0) translateY(0);
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.dropdown-menu li a:hover {
  background: var(--blue-pale);
  color: var(--blue-primary);
  text-decoration: none;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 5px 12px;
  pointer-events: none;
}

/* ── HAMBURGER ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--gray-100); }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ──────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue-primary) 0%, #2563EB 60%, #1E40AF 100%);
  color: white;
  padding: 60px 0 48px;
}
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 20px;
}
.hero__label .dot {
  width: 7px; height: 7px;
  background: #4ADE80;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  max-width: 680px;
}
.hero-year { color: #93C5FD; }
.hero-subtitle {
  font-size: 1.05rem;
  opacity: .85;
  margin-bottom: 36px;
  max-width: 560px;
  color: white;
}

/* ── HERO UPDATE BADGE ─────────────────────── */
.hero-update-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  margin-top: 24px;
  backdrop-filter: blur(4px);
}
.hero-update-badge a {
  color: #A5F3FC;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
  transition: color 0.2s ease;
}
.hero-update-badge a:hover {
  color: white;
}

/* ── HERO BADGES ───────────────────────────── */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}
.hero-badge--green {
  background: rgba(14, 124, 84, .25);
  border: 1px solid rgba(74, 222, 128, .4);
  color: #BBFFD3;
}
.hero-badge--blue {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #BFDBFE;
}
.hero-badge--white {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
}
.hero-badge--orange { background: rgba(217,119,6,.2); border-color: rgba(217,119,6,.4); color: #FDE68A; }

@media (max-width: 480px) {
  .hero-badges { gap: 8px; }
  .hero-badge { font-size: .75rem; padding: 5px 12px; }
  .hero-update-badge { font-size: .76rem; padding: 7px 14px; }
}

/* ── CHIFFRES CLÉS ─────────────────────────── */
.smic-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 0;
}
@media (min-width: 640px) {
  .smic-cards { grid-template-columns: repeat(4, 1fr); }
}

.smic-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  text-align: center;
  backdrop-filter: blur(6px);
  cursor: default;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.smic-card:hover {
  background: rgba(255,255,255,.26);
  border-color: rgba(255,255,255,.55);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0,0,0,.18), 0 0 0 2px rgba(255,255,255,.2);
}
.smic-card__label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .75;
  margin-bottom: 8px;
  transition: opacity 0.25s ease;
}
.smic-card:hover .smic-card__label { opacity: 1; }
.smic-card__value {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  transition: transform 0.25s ease;
  white-space: nowrap;
}
.smic-card:hover .smic-card__value { transform: scale(1.06); }
.smic-card__sub { font-size: .75rem; opacity: .7; }

/* Cards on white bg */
.smic-cards--white .smic-card {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}
.smic-cards--white .smic-card:hover {
  background: var(--blue-pale);
  border-color: var(--blue-primary);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 28px rgba(26,86,219,.15), 0 0 0 2px rgba(26,86,219,.12);
}
.smic-cards--white .smic-card__label { color: var(--text-muted); opacity: 1; }
.smic-cards--white .smic-card__value { color: var(--blue-primary); }
.smic-cards--white .smic-card--net .smic-card__value { color: var(--green); }

/* ── SECTION HEADER ─────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.section-header p {
  font-size: .95rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ── SECTIONS ──────────────────────────────── */
.section { padding: 72px 0; }
.section--gray { background: var(--gray-50); }
.section--blue { background: var(--blue-pale); }
.section--dark { background: var(--gray-900); color: white; }
.section--alt  { background: var(--gray-50); }
.section-alt   { background: var(--gray-50); }

.section__eyebrow {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue-primary);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 14px;
  line-height: 1.25;
}
.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 14px;
  line-height: 1.25;
}
.section__lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
}
.section-intro {
  font-size: .95rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 720px;
}
.section__intro {
  font-size: .95rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 720px;
}
.section__divider {
  width: 48px; height: 4px;
  background: var(--blue-primary);
  border-radius: 2px;
  margin: 12px 0 28px;
}

/* ══════════════════════════════════════════════
   EMOJI ICON SYSTEM — Carrés colorés avec emojis
   ══════════════════════════════════════════════ */

.emoji-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
  line-height: 1;
}

/* Couleurs au repos — pastels clairs */
.emoji-icon--blue   { background: #DBEAFE; }
.emoji-icon--green  { background: #D1FAE5; }
.emoji-icon--orange { background: #FEF3C7; }
.emoji-icon--purple { background: #EDE9FE; }
.emoji-icon--pink   { background: #FCE7F3; }
.emoji-icon--cyan   { background: #CFFAFE; }
.emoji-icon--yellow { background: #FEF9C3; }

/* Hover sur la card : fond plus intense + emoji scale + rotation */
.info-card:hover .emoji-icon--blue   { background: #BFDBFE; box-shadow: 0 4px 12px rgba(26,86,219,.2); }
.info-card:hover .emoji-icon--green  { background: #A7F3D0; box-shadow: 0 4px 12px rgba(14,124,84,.2); }
.info-card:hover .emoji-icon--orange { background: #FDE68A; box-shadow: 0 4px 12px rgba(217,119,6,.2); }
.info-card:hover .emoji-icon--purple { background: #DDD6FE; box-shadow: 0 4px 12px rgba(124,58,237,.2); }
.info-card:hover .emoji-icon--pink   { background: #FBCFE8; box-shadow: 0 4px 12px rgba(219,39,119,.2); }
.info-card:hover .emoji-icon--cyan   { background: #A5F3FC; box-shadow: 0 4px 12px rgba(14,116,144,.2); }
.info-card:hover .emoji-icon--yellow { background: #FDE047; box-shadow: 0 4px 12px rgba(180,83,9,.2); }

/* Animation emoji au survol */
.info-card:hover .emoji-icon {
  transform: scale(1.2) rotate(-5deg);
}

/* ══════════════════════════════════════════════
   INFO CARDS — Style uniforme (toutes sections)
   ══════════════════════════════════════════════ */

.info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

/* Bordure colorée en haut selon la variante */
.info-card--blue   { border-top: 3px solid var(--blue-primary); }
.info-card--green  { border-top: 3px solid var(--green); }
.info-card--orange { border-top: 3px solid var(--orange); }
.info-card--purple { border-top: 3px solid var(--purple); }
.info-card--teal   { border-top: 3px solid var(--teal); }
.info-card--red    { border-top: 3px solid var(--red); }
.info-card--pink   { border-top: 3px solid var(--pink); }
.info-card--cyan   { border-top: 3px solid var(--cyan); }
.info-card--yellow { border-top: 3px solid var(--yellow); }

/* Hover */
.info-card:hover {
  box-shadow: 0 10px 32px rgba(26,86,219,.12), 0 2px 8px rgba(26,86,219,.07);
  transform: translateY(-4px);
  border-color: var(--blue-mid);
  background: var(--blue-pale);
}

/* Ligne animée en bas au survol */
.info-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--blue-primary);
  transition: width 0.3s ease;
}
.info-card:hover::after { width: 100%; }

/* Icône (legacy SVG — gardé pour compat) */
.info-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease;
}
/* Quand l'icône est un emoji-icon, on délègue au système emoji */
.info-card__icon.emoji-icon {
  width: 52px;
  height: 52px;
}
/* SVG hérité */
.info-card:hover .info-card__icon:not(.emoji-icon) {
  transform: scale(1.12) rotate(-3deg);
}

/* Titre */
.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
  transition: color 0.25s ease;
}
.info-card:hover h3 { color: var(--blue-primary); }

/* Description */
.info-card p {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

/* Lien contextuel */
.info-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--blue-primary);
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.2s ease;
}
.info-card__link span {
  transition: transform 0.2s ease;
}
.info-card:hover .info-card__link { gap: 8px; }
.info-card:hover .info-card__link span { transform: translateX(2px); }

/* ── TABLES ────────────────────────────────── */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
  width: 100%;
}
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
}
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
  width: 100%;
  max-width: 100%;
}
@media (max-width: 768px) {
  .table-wrapper, .table-wrap {
    position: relative;
  }
  .table-wrapper::after, .table-wrap::after {
    content: '→ Faire défiler';
    position: sticky;
    bottom: 0;
    left: 0;
    display: block;
    text-align: right;
    padding: 4px 10px;
    font-size: .72rem;
    color: var(--text-muted);
    background: linear-gradient(to right, transparent, var(--gray-50) 60%);
    pointer-events: none;
  }
  .table-wrapper:not(.scrollable)::after,
  .table-wrap:not(.scrollable)::after { display: none; }
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
thead { background: var(--blue-primary); color: white; }
thead th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .03em;
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--blue-pale); }
tbody td { padding: 12px 16px; color: var(--text-secondary); }
tbody td:first-child { font-weight: 600; color: var(--text-primary); }
.data-table tbody tr.row--highlight { background: var(--blue-pale); }
.data-table tbody tr.row--highlight td { font-weight: 700; color: var(--blue-primary); }
.table-highlight { background: var(--blue-pale) !important; }
.table-highlight td { font-weight: 700 !important; color: var(--blue-primary) !important; }
.table-note { font-size: .78rem; color: var(--text-muted); margin-top: 10px; line-height: 1.6; }
.trend-up   { color: var(--green); font-weight: 700; }
.trend-down { color: var(--red);   font-weight: 700; }
.row-current { background: var(--blue-pale) !important; }
.badge-current {
  display: inline-block;
  background: var(--blue-primary);
  color: white;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── EN-TÊTES TABLEAU GRILLE SALAIRES ────────── */
.th-sub {
  font-size: .72rem;
  font-weight: 500;
  opacity: .8;
  margin-left: 3px;
  font-style: italic;
}
.th-info {
  display: inline-block;
  margin-left: 4px;
  font-size: .78rem;
  opacity: .75;
  cursor: help;
  font-style: normal;
}

/* ── GRILLE SALAIRES — Colonnes Min/Max/Médian ── */
.grille-table {
  min-width: 820px; /* légèrement plus large */
}
.grille-table tbody td:nth-child(3),
.grille-table tbody td:nth-child(4),
.grille-table tbody td:nth-child(5) {
  white-space: nowrap;      /* empêche le € de passer à la ligne */
  min-width: 90px;          /* largeur minimale garantie */
  font-weight: 600;
  color: var(--text-primary);
}
.grille-table tbody td:nth-child(4) {
  color: var(--blue-primary); /* médian en bleu */
}

/* ── CARDS GÉNÉRIQUES ───────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.cards-grid--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--blue-primary);
  border-radius: 0 0 var(--radius) var(--radius);
  transition: width 0.3s ease;
}
.card:hover::after { width: 100%; }
.card:hover {
  box-shadow: 0 10px 32px rgba(26,86,219,.14), 0 2px 8px rgba(26,86,219,.08);
  transform: translateY(-4px);
  border-color: var(--blue-mid);
  background: var(--blue-pale);
  text-decoration: none;
}
.card__icon {
  width: 44px; height: 44px;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--blue-primary);
  font-size: 1.4rem;
  transition: background 0.25s ease, transform 0.25s ease;
}
.card:hover .card__icon {
  background: var(--blue-primary);
  color: white;
  transform: scale(1.1) rotate(-3deg);
}
.card__icon--green  { background: var(--green-light);  color: var(--green); }
.card__icon--orange { background: var(--orange-light); color: var(--orange); }
.card__icon--purple { background: var(--purple-light); color: var(--purple); }
.card__icon--blue   { background: var(--blue-light);   color: var(--blue-primary); }
.card:hover .card__icon--green  { background: var(--green);  color: white; }
.card:hover .card__icon--orange { background: var(--orange); color: white; }
.card:hover .card__icon--purple { background: var(--purple); color: white; }
.card:hover .card__icon--blue   { background: var(--blue-primary); color: white; }

.card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-900);
  transition: color 0.25s ease;
}
.card:hover .card__title { color: var(--blue-primary); }
.card__desc {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-primary);
  transition: gap 0.2s ease;
}
.card:hover .card__link { gap: 8px; }
.card--plus { border-top: 3px solid var(--blue-primary); }
.card--plus:nth-child(1) { border-top-color: var(--green); }
.card--plus:nth-child(2) { border-top-color: var(--orange); }
.card--plus:nth-child(3) { border-top-color: var(--purple); }
.card--plus:nth-child(4) { border-top-color: var(--blue-primary); }

/* ── INFO BOX ──────────────────────────────── */
.info-box {
  background: var(--blue-pale);
  border-left: 4px solid var(--blue-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.info-box--blue  { background: var(--blue-pale); border-color: var(--blue-primary); }
.info-box--green { background: var(--green-light); border-color: var(--green); }
.info-box--red   { background: var(--red-light);   border-color: var(--red); }
.info-box__icon { font-size: 1.5rem; margin-bottom: 10px; }
.info-box p { font-size: .9rem; color: var(--text-secondary); margin: 0 0 8px; }
.info-box p:last-child { margin: 0; }
.info-box h3 { font-size: .9rem; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.info-box ul { list-style: none; padding: 0; margin: 0; }
.info-box ul li { font-size: .88rem; color: var(--text-secondary); padding: 3px 0; }
.info-box strong { color: var(--gray-900); }

/* ── BADGES ─────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge--blue   { background: var(--blue-light); color: var(--blue-primary); }
.badge--green  { background: var(--green-light); color: var(--green); }
.badge--gray   { background: var(--gray-100); color: var(--gray-600); }
.badge--red    { background: var(--red-light); color: var(--red); }
.badge--orange { background: var(--orange-light); color: var(--orange); }

/* ══════════════════════════════════════════════
   FAQ SUMMARY GRID — Vignettes sommaire
   ══════════════════════════════════════════════ */

.faq-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* FIX #5 — breakpoint intermédiaire 481–1023px → 2 colonnes */
@media (max-width: 1023px) and (min-width: 481px) {
  .faq-summary-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cards-grid--4    { grid-template-columns: repeat(2, 1fr); }
}

.faq-summary-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: white;
  border: 1.5px solid var(--border);
  border-top: 4px solid var(--card-border, var(--blue-primary));
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.faq-summary-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--card-border, var(--blue-primary));
  transition: width 0.3s ease;
}
.faq-summary-card:hover::after { width: 100%; }

.faq-summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  border-color: var(--card-border, var(--blue-primary));
  background: var(--card-bg, var(--blue-pale));
  text-decoration: none;
}

.faq-summary-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq-summary-card:hover .faq-summary-card__icon {
  transform: scale(1.18) rotate(-6deg);
}

.faq-summary-card__num {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.faq-summary-card__title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  margin: 0;
  transition: color 0.25s ease;
}
.faq-summary-card:hover .faq-summary-card__title {
  color: var(--card-text, var(--blue-primary));
}

.faq-summary-card__badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}

.faq-summary-card__arrow {
  font-size: 1rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.faq-summary-card:hover .faq-summary-card__arrow {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive sommaire FAQ */
@media (max-width: 1024px) {
  .faq-summary-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
  .faq-summary-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .faq-summary-card { padding: 20px 14px 18px; }
  .faq-summary-card__icon { width: 52px; height: 52px; font-size: 1.5rem; }
  .faq-summary-card__title { font-size: .85rem; }
}
@media (max-width: 360px) {
  .faq-summary-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   FAQ — En-tête de section + accordéon
   ══════════════════════════════════════════════ */

/* En-tête de la section FAQ */
.faq-section-header {
  margin-bottom: 8px;
}

/* Badge "❓ Questions fréquentes" */
.faq-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-pale);
  color: var(--blue-primary);
  border: 1px solid var(--blue-mid);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 10px;
}

/* Liste FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: var(--blue-mid);
  box-shadow: 0 4px 16px rgba(26,86,219,.08);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: white;
  transition: background var(--transition), color var(--transition);
}
.faq-question:hover { background: var(--gray-50); }
.faq-question[aria-expanded="true"] {
  color: var(--blue-primary);
  background: var(--blue-pale);
}

/* Icône + / × */
.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--blue-primary);
  transition: transform 0.25s ease, color 0.2s ease;
  opacity: 0.7;
}
.faq-question:hover .faq-icon { opacity: 1; }
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  opacity: 1;
}

/* Réponse */
.faq-answer {
  display: none;
  padding: 16px 20px 20px;
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  border-top: 1px solid var(--border);
}
.faq-answer.open { display: block; }
.faq-answer p { margin-bottom: 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--blue-primary); }

/* ══════════════════════════════════════════════
   FAQ CROSSLINK — Maillage interne vers FAQ
   ══════════════════════════════════════════════ */

.faq-crosslink {
  background: white;
  border: 1.5px solid var(--blue-mid);
  border-top: 4px solid var(--blue-primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-top: 32px;
}

.faq-crosslink__header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.faq-crosslink__icon {
  font-size: 2.4rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.faq-crosslink__eyebrow {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue-primary);
  margin-bottom: 6px;
}

.faq-crosslink__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.3;
}

.faq-crosslink__desc {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.faq-crosslink__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
  list-style: none;
}

.faq-crosslink__list li a,
.faq-crosslink__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--gray-50);
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: all 0.2s ease;
}

.faq-crosslink__list li a:hover,
.faq-crosslink__link:hover {
  background: var(--blue-pale);
  border-color: var(--blue-mid);
  color: var(--blue-primary);
  transform: translateX(4px);
  text-decoration: none;
}

.faq-crosslink__list li a svg,
.faq-crosslink__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: auto;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.faq-crosslink__list li a:hover svg,
.faq-crosslink__link:hover svg {
  transform: translateX(3px);
  color: var(--blue-primary);
}

.faq-crosslink__q {
  flex: 1;
}

.faq-crosslink__flag {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
}

.faq-crosslink__cta {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ── Bouton CTA du bloc crosslink ── */
.faq-crosslink__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-primary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), gap 0.2s ease;
  white-space: nowrap;
}
.faq-crosslink__btn:hover {
  background: var(--blue-dark);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  gap: 12px;
}
.faq-crosslink__btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-crosslink__btn:hover svg {
  transform: translateX(3px);
}

/* Alias .btn--primary dans le contexte crosslink (compat smic-international) */
.faq-crosslink__cta .btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Responsive */
@media (max-width: 640px) {
  .faq-crosslink { padding: 20px 16px; }
  .faq-crosslink__header { flex-direction: column; gap: 12px; }
  .faq-crosslink__icon { font-size: 1.8rem; }
  .faq-crosslink__title { font-size: 1rem; }
  .faq-crosslink__list li a,
  .faq-crosslink__link { font-size: .85rem; padding: 10px 12px; gap: 8px; }
  .faq-crosslink__btn { font-size: .85rem; padding: 10px 18px; }
}

/* ══════════════════════════════════════════════
   FAQ DEEPLINKS — Maillage interne depuis FAQ
   ══════════════════════════════════════════════ */

.faq-deeplinks {
  margin-top: 28px;
  background: var(--deeplink-bg, var(--blue-pale));
  border: 1px solid color-mix(in srgb, var(--deeplink-color, var(--blue-primary)) 20%, transparent);
  border-left: 3px solid var(--deeplink-color, var(--blue-primary));
  border-radius: var(--radius);
  padding: 18px 20px;
}

.faq-deeplinks__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--deeplink-color, var(--blue-primary));
  margin-bottom: 12px;
}

.faq-deeplinks__label svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.faq-deeplinks__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
}

.faq-deeplinks__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--deeplink-color, var(--blue-primary));
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.18s ease, gap 0.18s ease, transform 0.18s ease;
}

.faq-deeplinks__link:hover {
  background: rgba(255,255,255,.7);
  gap: 12px;
  transform: translateX(3px);
  text-decoration: none;
}

.faq-deeplinks__link svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.faq-deeplinks__link:hover svg {
  transform: translateX(2px);
}

@media (max-width: 640px) {
  .faq-deeplinks { padding: 14px 16px; }
  .faq-deeplinks__link { font-size: .82rem; }
}

/* ── BREADCRUMB ─────────────────────────────── */
.breadcrumb {
  padding: 12px 0;
  font-size: .82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.breadcrumb li::after { content: '›'; margin-left: 6px; color: var(--gray-300); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--blue-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--gray-300); }

/* ── PAGE HERO (sous-pages) ─────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-primary) 0%, #2563EB 100%);
  color: white;
  padding: 48px 0 40px;
}
.page-hero--blue { background: linear-gradient(135deg, #1240A8 0%, #1A56DB 60%, #2563EB 100%); }
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: 10px; line-height: 1.2; }
.page-hero p  { font-size: 1rem; opacity: .85; max-width: 560px; }
.page-hero .breadcrumb { color: rgba(255,255,255,.7); margin-bottom: 16px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.9); }
.page-hero .breadcrumb .sep { color: rgba(255,255,255,.4); }
.page-hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: .78rem;
  font-weight: 600;
  color: white;
  margin-bottom: 14px;
}
.page-hero__intro { font-size: 1rem; opacity: .9; max-width: 640px; margin-bottom: 16px; line-height: 1.6; }
.text-accent { color: #93C5FD; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: white;
}
.chip--green { background: rgba(14,124,84,.3); border-color: rgba(14,124,84,.5); }

/* ── FORMULA BOX (version light — pages horaire, mensuel) ── */
.formula-box {
  background: #f0f4ff;
  border-left: 4px solid var(--blue-primary);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  color: var(--gray-900);
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ── CALCULATEUR ────────────────────────────── */
.calc-wrapper {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.calc-group { margin-bottom: 24px; }
.calc-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.calc-group input,
.calc-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--gray-900);
  background: var(--gray-50);
  transition: border-color var(--transition);
  outline: none;
  box-sizing: border-box;
}
.calc-group input:focus,
.calc-group select:focus { border-color: var(--blue-primary); background: white; }
.calc-range { display: flex; align-items: center; gap: 12px; }
.calc-range input[type="range"] {
  flex: 1;
  accent-color: var(--blue-primary);
  padding: 0;
  background: none;
  border: none;
}
.calc-range .val {
  min-width: 44px;
  text-align: right;
  font-weight: 700;
  color: var(--blue-primary);
}
.calc-result {
  background: var(--blue-pale);
  border: 1px solid var(--blue-mid);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
  width: 100%;
  box-sizing: border-box;
}
.calc-result__item { text-align: center; }
.calc-result__label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 6px; }
.calc-result__val   { font-size: 1.6rem; font-weight: 800; color: var(--blue-primary); line-height: 1; }
.calc-result__val--net { color: var(--green); }
.calc-result__sub   { font-size: .75rem; color: var(--text-muted); margin-top: 3px; }
.btn-calc {
  width: 100%;
  background: var(--blue-primary);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  transition: background var(--transition);
  margin-bottom: 20px;
}
.btn-calc:hover { background: var(--blue-dark); }
.calc-disclaimer { font-size: .75rem; color: var(--text-muted); text-align: center; margin-top: 12px; }

/* ── CALCULATOR CARD ────────────────────────── */
.calculator-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}
.calc-form { margin-bottom: 24px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--gray-900);
  background: white;
  outline: none;
  transition: border-color var(--transition);
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue-primary); }
.form-group textarea { min-height: 130px; resize: vertical; }
.btn--full { width: 100%; justify-content: center; }
.btn--outline {
  background: transparent;
  border: 1.5px solid var(--blue-primary);
  color: var(--blue-primary);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn--outline:hover { background: var(--blue-pale); text-decoration: none; }

.result-main { text-align: center; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.result-label { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 8px; }
.result-value { font-size: 2.4rem; font-weight: 800; color: var(--blue-primary); line-height: 1; margin-bottom: 4px; }
.result-sub { font-size: .8rem; color: var(--text-muted); }
.result-details { margin-bottom: 20px; }
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  color: var(--text-secondary);
}
.result-row:last-child { border-bottom: none; }
.result-row--deduct { color: var(--red); }
.result-row--total { font-weight: 700; color: var(--gray-900); font-size: 1rem; }
.result-cta { text-align: center; margin-bottom: 16px; }
.result-disclaimer { font-size: .75rem; color: var(--text-muted); text-align: center; font-style: italic; }

/* ── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}
.btn--primary { background: var(--blue-primary); color: white; }
.btn--primary:hover { background: var(--blue-dark); text-decoration: none; color: white; }
.btn--sm { padding: 8px 16px; font-size: .82rem; }
.btn-primary { background: var(--blue-primary); color: white; }
.btn-primary:hover { background: var(--blue-dark); text-decoration: none; color: white; }
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: white; text-decoration: none; color: white; }
.btn-white { background: white; color: var(--blue-primary); }
.btn-white:hover { background: var(--blue-pale); text-decoration: none; }

/* ── SITUATION CARDS ────────────────────────── */
.situation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.situation-card {
  display: block;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
  border-top: 3px solid var(--blue-primary);
}
.situation-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--blue-primary);
  transition: width 0.3s ease;
}
.situation-card:hover::after { width: 100%; }
.situation-card:hover {
  box-shadow: 0 10px 32px rgba(26,86,219,.14), 0 2px 8px rgba(26,86,219,.08);
  transform: translateY(-4px);
  border-color: var(--blue-mid);
  background: var(--blue-pale);
  text-decoration: none;
}
.situation-card__icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: inline-block;
  transition: transform 0.25s ease;
}
.situation-card:hover .situation-card__icon { transform: scale(1.15) rotate(-4deg); }
.situation-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gray-900);
  transition: color 0.25s ease;
}
.situation-card:hover h3 { color: var(--blue-primary); }
.situation-card p {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.situation-card .badge {
  display: inline-block;
  margin-top: 12px;
  background: var(--blue-light);
  color: var(--blue-primary);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  transition: background 0.25s ease, color 0.25s ease;
}
.situation-card:hover .badge {
  background: var(--blue-primary);
  color: white;
}

/* ── STATS GRID ─────────────────────────────── */
.stats-grid { display: grid; gap: 16px; }
.stats-grid--4 { grid-template-columns: repeat(4, 1fr); }
.stats-grid--3 { grid-template-columns: repeat(3, 1fr); }
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(26,86,219,.12);
  background: var(--blue-pale);
  border-color: var(--blue-mid);
}
.stat-card--blue { border-top: 3px solid var(--blue-primary); }
.stat-card--green { border-top: 3px solid var(--green); }
.stat-card__label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 10px; }
.stat-card__value { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800; color: var(--blue-primary); line-height: 1; margin-bottom: 6px; }
.stat-card--green .stat-card__value { color: var(--green); }
.stat-card__sub { font-size: .72rem; color: var(--text-muted); }

/* ── CONTENT SPLIT ─────────────────────────── */
.content-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: start;
}
.content-split__text h2 { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); margin-bottom: 14px; }
.content-split__text p { font-size: .95rem; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.65; }

/* ── CHECK LIST ─────────────────────────────── */
.check-list { list-style: none !important; margin: 16px 0; }
.check-list li {
  padding: 5px 0 5px 26px;
  position: relative;
  font-size: .92rem;
  color: var(--text-secondary);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: .95rem;
}

/* ── ALERT BOX ──────────────────────────────── */
.alert-box {
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: .9rem;
  line-height: 1.55;
}
.alert-box--info { background: var(--blue-pale); border-left: 4px solid var(--blue-primary); }
.alert-box--warning { background: var(--orange-light); border-left: 4px solid var(--orange); }
.alert-box--success { background: var(--green-light); border-left: 4px solid var(--green); }

/* ── CONDITIONS GRID ─────────────────────────── */
.conditions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.condition-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.condition-card--ok { border-top: 4px solid var(--green); }
.condition-card--ko { border-top: 4px solid var(--red); }
.condition-card__icon { font-size: 1.5rem; margin-bottom: 10px; }
.condition-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; color: var(--gray-900); }
.condition-card ul { list-style: none; }
.condition-card ul li { font-size: .88rem; color: var(--text-secondary); padding: 5px 0 5px 20px; position: relative; border-bottom: 1px solid var(--border); }
.condition-card ul li:last-child { border-bottom: none; }
.condition-card--ok ul li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.condition-card--ko ul li::before { content: '✗'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ── FORMULA BLOCK ──────────────────────────── */
.formula-block {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.formula-steps { display: flex; flex-direction: column; gap: 0; }
.formula-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.formula-step:last-child { border-bottom: none; padding-bottom: 0; }
.formula-step--result { background: var(--blue-pale); border-radius: var(--radius); padding: 20px; margin-top: 8px; }
.formula-step__num {
  width: 40px; height: 40px;
  background: var(--blue-primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}
.formula-step--result .formula-step__num { background: var(--green); font-size: 1.2rem; }
.formula-step__content h3 { font-size: .95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.formula-step__content p { font-size: .88rem; color: var(--text-secondary); line-height: 1.55; }

/* ── STEPS TIMELINE ─────────────────────────── */
.steps-timeline { display: flex; flex-direction: column; gap: 0; }
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  position: relative;
}
.step-item::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: var(--blue-mid);
}
.step-item:last-child::before { display: none; }
.step-item__num {
  width: 40px; height: 40px;
  background: var(--blue-primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  font-weight: 800;
  flex-shrink: 0;
  z-index: 1;
}
.step-item__content h3 { font-size: .95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.step-item__content p { font-size: .88rem; color: var(--text-secondary); line-height: 1.55; }

/* ── MINI TABLE ─────────────────────────────── */
.mini-table { width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: 8px; }
.mini-table th { text-align: left; padding: 6px 8px; font-weight: 700; color: var(--gray-700); border-bottom: 1px solid var(--border); }
.mini-table td { padding: 5px 8px; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.mini-table tr:last-child td { border-bottom: none; }

/* ── RELATED CARDS ──────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.related-card:hover {
  background: var(--blue-pale);
  border-color: var(--blue-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.related-card__icon { font-size: 1.5rem; margin-bottom: 6px; }
.related-card__title { font-size: .9rem; font-weight: 700; color: var(--gray-900); }
.related-card__desc { font-size: .78rem; color: var(--text-muted); }
.related-card:hover .related-card__title { color: var(--blue-primary); }

/* ── ASPA GRID ──────────────────────────────── */
.aspa-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  align-items: start;
}
.aspa-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.aspa-card--featured {
  background: var(--blue-pale);
  border-color: var(--blue-mid);
  text-align: left;
  padding: 28px;
}
.aspa-card__badge {
  display: inline-block;
  background: var(--blue-primary);
  color: white;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.aspa-card__icon { font-size: 2rem; margin-bottom: 12px; }
.aspa-card h3 { font-size: .95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.aspa-card__amount { font-size: 1.8rem; font-weight: 800; color: var(--blue-primary); line-height: 1; margin-bottom: 4px; }
.aspa-card p { font-size: .82rem; color: var(--text-muted); margin-bottom: 14px; }
.aspa-card ul { list-style: none; text-align: left; }
.aspa-card ul li { font-size: .82rem; color: var(--text-secondary); padding: 4px 0; border-bottom: 1px solid var(--border); }
.aspa-card ul li:last-child { border-bottom: none; }
.aspa-card--featured p { font-size: .88rem; color: var(--text-secondary); margin-bottom: 12px; }
.aspa-card--featured strong { color: var(--gray-900); }

/* ── ANALYSE GRID ────────────────────────────── */
.analyse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.analyse-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.analyse-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--blue-pale);
  border-color: var(--blue-mid);
}
.analyse-card__icon { font-size: 1.8rem; margin-bottom: 12px; }
.analyse-card h3 { font-size: .95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.analyse-card p { font-size: .88rem; color: var(--text-secondary); line-height: 1.55; }

/* ── GRILLE SALAIRES CHART ───────────────────── */
/* FIX #3 — grille-chart__bar-wrap : overflow:hidden pour contenir le label */
.grille-chart {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden; /* contient les enfants débordants */
}
.grille-chart__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 14px;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.grille-chart__row:hover { background: var(--gray-50); }
.grille-chart__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-700);
}
.grille-chart__label span:first-child { font-size: 1rem; flex-shrink: 0; }
.grille-chart__bar-wrap {
  position: relative;
  background: var(--gray-100);
  border-radius: 100px;
  height: 28px;
  /* FIX #3 — on remplace overflow:visible par hidden pour contenir le label */
  overflow: hidden;
  /* Le label est maintenant à l'intérieur, pas en dehors */
}
.grille-chart__bar {
  height: 100%;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transition: width 1s ease;
  position: relative;
}
/* FIX #3 — label repositionné À L'INTÉRIEUR de la barre */
.grille-chart__val {
  position: static;
  transform: none;
  font-size: .72rem;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  padding-right: 10px;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  /* Sur barres courtes, le texte reste visible grâce à min-width */
}
/* Fallback : si la barre est trop courte, label en gris à droite du wrap */
.grille-chart__bar-wrap::after {
  content: attr(data-val);
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .72rem;
  font-weight: 700;
  color: var(--gray-600);
  white-space: nowrap;
  pointer-events: none;
  display: none; /* activé par JS si barre < 60px */
}
.grille-chart__smic-line {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: #EF4444;
  border-radius: 1px;
}
.grille-chart__smic-line::before {
  content: 'SMIC';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .62rem;
  font-weight: 700;
  color: #EF4444;
  white-space: nowrap;
}
.grille-chart__legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-muted);
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.secteur-icon { font-size: 1.2rem; }
.grille-table .secteur-icon { margin-right: 8px; }

/* ── INTERNAL LINKS BLOCK ────────────────────── */
.internal-links {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.internal-links h3 { font-size: .95rem; font-weight: 700; margin-bottom: 14px; color: var(--gray-900); }
.internal-links ul { display: flex; flex-wrap: wrap; gap: 8px; }
.internal-links ul li a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--blue-primary);
  text-decoration: none;
  transition: all var(--transition);
}
.internal-links ul li a:hover {
  background: var(--blue-primary);
  color: white;
  border-color: var(--blue-primary);
}

/* ── RELATED LINKS (maillage interne) ──────── */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.related-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.related-link:hover {
  background: var(--blue-primary);
  color: white;
  border-color: var(--blue-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

/* ══════════════════════════════════════════════
   RELATED CLUSTER — Bloc maillage thématique
   ══════════════════════════════════════════════ */

.related-cluster-section {
  padding: 56px 0;
}

.related-cluster__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
}

.related-cluster__eyebrow {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue-primary);
  margin-bottom: 6px;
}

.related-cluster__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
  line-height: 1.3;
}

.related-cluster__subtitle {
  font-size: .85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Grille principale */
.related-cluster__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

/* Carte principale */
.related-cluster__card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--rc-border, var(--border));
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.related-cluster__card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--rc-accent, var(--blue-primary));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.related-cluster__card:hover {
  background: var(--rc-bg, var(--blue-pale));
  border-color: var(--rc-accent, var(--blue-primary));
  transform: translateX(4px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.related-cluster__card:hover::before {
  opacity: 1;
}

.related-cluster__card-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--rc-icon-bg, var(--blue-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.related-cluster__card:hover .related-cluster__card-icon {
  transform: scale(1.12) rotate(-4deg);
}

.related-cluster__card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.related-cluster__card-body strong {
  font-size: .88rem;
  font-weight: 700;
  color: var(--gray-900);
  transition: color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-cluster__card:hover .related-cluster__card-body strong {
  color: var(--rc-accent, var(--blue-primary));
}

.related-cluster__card-body span {
  font-size: .75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-cluster__card-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.related-cluster__card:hover .related-cluster__card-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--rc-accent, var(--blue-primary));
}

/* Bloc "À voir aussi" — liens transversaux */
.related-cluster__cross {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.related-cluster__cross-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.related-cluster__cross-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-cluster__cross-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px 8px 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  font-size: .84rem;
}

.related-cluster__cross-card:hover {
  background: var(--blue-pale);
  border-color: var(--blue-primary);
  color: var(--blue-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.related-cluster__cross-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.related-cluster__cross-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.related-cluster__cross-body strong {
  font-size: .84rem;
  font-weight: 700;
  color: var(--gray-800);
  transition: color 0.2s ease;
}

.related-cluster__cross-card:hover .related-cluster__cross-body strong {
  color: var(--blue-primary);
}

.related-cluster__cross-body span {
  font-size: .72rem;
  color: var(--text-muted);
}

/* Responsive cluster */
@media (max-width: 768px) {
  .related-cluster__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-cluster__card {
    padding: 12px 12px;
    gap: 8px;
  }
  .related-cluster__card-icon {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }
  .related-cluster__card-body strong { font-size: .82rem; }
  .related-cluster__card-body span { display: none; }
  .related-cluster-section { padding: 40px 0; }
}

@media (max-width: 480px) {
  .related-cluster__grid {
    grid-template-columns: 1fr;
  }
  .related-cluster__cross-links {
    flex-direction: column;
  }
  .related-cluster__cross-card {
    border-radius: var(--radius-sm);
  }
}

/* ── FOOTER ─────────────────────────────────── */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: .85rem; line-height: 1.6; max-width: 240px; margin-top: 10px; }
.footer-col h4 { color: white; font-size: .85rem; font-weight: 700; margin-bottom: 14px; letter-spacing: .03em; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: .82rem;
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: white; }

/* FIX #4 — Classe CSS pour remplacer les style="margin-top:1.2rem" inline */
.footer-col__subtitle {
  margin-top: 1.2rem !important;
  color: white;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: .03em;
  display: block;
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .78rem;
}
.footer-bottom a { color: var(--gray-400); text-decoration: none; }
.footer-bottom a:hover { color: white; }
.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  font-size: .78rem;
}
.footer-cookie-btn {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: .78rem;
  cursor: pointer;
  padding: 0;
  font-family: var(--font);
  transition: color var(--transition);
}
.footer-cookie-btn:hover { color: white; }
.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green);
  border: 1px solid #BBF7D0;
  border-radius: 100px;
  padding: 4px 12px;
  font-size: .75rem;
  font-weight: 700;
  margin-top: 16px;
}

/* ── HIGHLIGHT STAT ─────────────────────────── */
.stat-highlight {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.stat-highlight__icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-primary);
}
.stat-highlight__label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 4px; }
.stat-highlight__value { font-size: 1.5rem; font-weight: 800; color: var(--blue-primary); line-height: 1; margin-bottom: 4px; }
.stat-highlight__note  { font-size: .8rem; color: var(--text-muted); }

/* ── CONTENT TEXT ───────────────────────────── */
.content-text h2 { font-size: 1.4rem; font-weight: 700; color: var(--gray-900); margin: 32px 0 12px; }
.content-text h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-800); margin: 24px 0 10px; }
.content-text p  { color: var(--text-secondary); margin-bottom: 16px; font-size: .95rem; }
.content-text ul { list-style: none; margin-bottom: 16px; }
.content-text ul li {
  padding-left: 20px;
  position: relative;
  color: var(--text-secondary);
  font-size: .95rem;
  margin-bottom: 6px;
}
.content-text ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--blue-primary);
  border-radius: 50%;
}
.content-text strong { color: var(--gray-900); }

/* ── TWO-COL LAYOUT ────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two-col--3-2 { grid-template-columns: 3fr 2fr; }
@media (max-width: 768px) { .two-col, .two-col--3-2 { grid-template-columns: 1fr; gap: 24px; } }

/* ── CONTACT FORM ──────────────────────────── */
.form-group { margin-bottom: 20px; }

/* ── PROGRESS BAR ───────────────────────────── */
.progress-bar { background: var(--gray-200); border-radius: 100px; height: 8px; overflow: hidden; margin-top: 6px; }
.progress-bar__fill { height: 100%; background: var(--blue-primary); border-radius: 100px; transition: width 1s ease; }

/* ══════════════════════════════════════════════
   INTERNATIONAL PAGE
   ══════════════════════════════════════════════ */

.int-chart--enhanced {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

/* Label axe "Brut en Euros" au-dessus des barres */
.int-chart__axis-label {
  display: flex;
  justify-content: flex-end;
  padding-right: 80px;
  margin-bottom: 4px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .02em;
}
.int-chart__axis-label span {
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 12px;
}

.int-chart__row {
  display: grid;
  grid-template-columns: 28px 150px 1fr 76px;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.int-chart__row:hover { background: var(--gray-50); }
.int-chart__row--even { background: var(--gray-50); }
.int-chart__row--even:hover { background: var(--gray-100); }
.int-chart__row--highlight {
  background: var(--blue-pale) !important;
  border: 1.5px solid var(--blue-mid);
  border-radius: var(--radius-sm);
}
.int-chart__rang { font-size: .78rem; font-weight: 700; text-align: center; min-width: 20px; }
.int-chart__label { display: flex; align-items: center; gap: 7px; min-width: 0; }
.int-chart__flag { font-size: 1.15rem; flex-shrink: 0; }
.int-chart__pays { font-size: .84rem; font-weight: 600; color: var(--gray-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.int-chart__row--highlight .int-chart__pays { color: var(--blue-primary); font-weight: 700; }
.int-chart__badge-fr { display: inline-block; background: var(--blue-primary); color: white; font-size: .62rem; font-weight: 700; padding: 1px 6px; border-radius: 100px; flex-shrink: 0; letter-spacing: .03em; }
.int-chart__bar-wrap { position: relative; background: var(--gray-100); border-radius: 100px; height: 26px; overflow: visible; display: flex; align-items: center; }
.int-chart__bar { height: 100%; border-radius: 100px; display: flex; align-items: center; justify-content: flex-end; position: relative; transition: width 1.2s cubic-bezier(.4,0,.2,1); }
.int-chart__bar-label { padding-right: 10px; color: white; font-size: .72rem; font-weight: 700; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.int-chart__value-outside-badge { display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 9px; border-radius: 100px; color: white; font-size: .72rem; font-weight: 700; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.2); flex-shrink: 0; }
.int-chart__horaire { font-size: .78rem; font-weight: 600; color: var(--text-muted); text-align: right; white-space: nowrap; }
.int-chart__row--highlight .int-chart__horaire { color: var(--blue-primary); }

.neighbor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.neighbor-grid--5 { grid-template-columns: repeat(5, 1fr); }
.neighbor-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 16px 20px; text-align: center; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition); position: relative; }
.neighbor-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.neighbor-card--france { background: var(--blue-pale); border: 2px solid var(--blue-primary); transform: scale(1.04); box-shadow: var(--shadow); z-index: 1; }
.neighbor-card--france:hover { transform: scale(1.04) translateY(-3px); box-shadow: var(--shadow-md); }
.neighbor-card__crown { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--blue-primary); color: white; font-size: .65rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; white-space: nowrap; letter-spacing: .04em; }
.neighbor-card__flag   { font-size: 2.4rem; margin-bottom: 8px; }
.neighbor-card__pays   { font-size: .88rem; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.neighbor-card__montant { font-size: 1.55rem; font-weight: 800; line-height: 1; margin-bottom: 2px; }
.neighbor-card__sub    { font-size: .72rem; color: var(--text-muted); margin-bottom: 6px; }
.neighbor-card__horaire { font-size: .8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; padding: 3px 8px; background: var(--gray-100); border-radius: 100px; display: inline-block; }
.neighbor-card--france .neighbor-card__horaire { background: var(--blue-light); color: var(--blue-primary); }
.neighbor-card__diff { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 100px; display: inline-block; }
.neighbor-card__diff.up   { background: var(--green-light); color: var(--green); }
.neighbor-card__diff.down { background: var(--red-light); color: var(--red); }

/* ══════════════════════════════════════════════
   PAGES SMIC 2026 / 2027
   ══════════════════════════════════════════════ */

.hero-2026 { background: linear-gradient(135deg, #1240A8 0%, #1A56DB 60%, #2563EB 100%); }
.hero-2027 { background: linear-gradient(135deg, #374151 0%, #1F2937 60%, #111827 100%); }

.hero-source { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; opacity: .7; color: white; margin-top: 8px; }
.hero-source a { color: rgba(255,255,255,.85); text-decoration: underline; }
.hero-disclaimer { display: flex; align-items: flex-start; gap: 10px; background: rgba(217,119,6,.15); border: 1px solid rgba(217,119,6,.3); border-radius: var(--radius); padding: 14px 18px; font-size: .85rem; color: rgba(255,255,255,.9); margin-top: 16px; max-width: 680px; line-height: 1.5; }

.smic-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.smic-card-year { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 18px; text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, background 0.25s; }
.smic-card-year:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 10px 28px rgba(26,86,219,.14); border-color: var(--blue-mid); background: var(--blue-pale); }
.scy-highlight { border-color: var(--blue-primary); background: var(--blue-pale); }
.scy-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 10px; }
.scy-value { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800; color: var(--blue-primary); line-height: 1; margin-bottom: 6px; }
.scy-sub { font-size: .72rem; color: var(--text-muted); line-height: 1.4; }

.content-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.info-card-year { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.icy-title { font-size: .88rem; font-weight: 700; color: var(--gray-900); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.icy-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.icy-item:last-child { margin-bottom: 0; }
.icy-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.dot-green { background: var(--green); }
.dot-blue  { background: var(--blue-primary); }
.dot-grey  { background: var(--gray-300); }
.icy-item strong { display: block; font-size: .88rem; font-weight: 700; color: var(--gray-900); margin-bottom: 2px; }
.icy-item p { font-size: .8rem; color: var(--text-muted); margin: 0; }

.compare-card-year { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; box-shadow: var(--shadow-sm); }
.ccy-title { font-size: .88rem; font-weight: 700; color: var(--gray-900); margin-bottom: 14px; }
.ccy-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .88rem; color: var(--text-secondary); }
.ccy-row:last-child { border-bottom: none; }
.ccy-total { font-weight: 700; }
.ccy-old { color: var(--text-muted); text-decoration: line-through; }
.ccy-new { color: var(--blue-primary); font-weight: 700; font-size: 1rem; }
.ccy-pct { color: var(--green); font-weight: 800; font-size: 1.1rem; }

.info-tile { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s; }
.info-tile:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(26,86,219,.12); background: var(--blue-pale); border-color: var(--blue-mid); }
.it-icon { font-size: 1.8rem; margin-bottom: 12px; }
.info-tile h3 { font-size: .95rem; font-weight: 700; margin-bottom: 10px; color: var(--gray-900); }
.info-tile p  { font-size: .85rem; color: var(--text-secondary); line-height: 1.55; }

.related-links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.related-link-card { display: flex; align-items: center; gap: 14px; background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; text-decoration: none; color: inherit; transition: all 0.25s ease; box-shadow: var(--shadow-sm); }
.related-link-card:hover { background: var(--blue-pale); border-color: var(--blue-primary); transform: translateX(4px); text-decoration: none; box-shadow: var(--shadow); }
.rlc-icon { font-size: 1.4rem; flex-shrink: 0; }
.related-link-card > div { flex: 1; min-width: 0; }
.related-link-card strong { display: block; font-size: .9rem; font-weight: 700; color: var(--gray-900); margin-bottom: 2px; }
.related-link-card p { font-size: .78rem; color: var(--text-muted); margin: 0; }
.rlc-arrow { color: var(--blue-primary); font-weight: 700; flex-shrink: 0; transition: transform 0.2s; }
.related-link-card:hover .rlc-arrow { transform: translateX(4px); }

.styled-list { list-style: none !important; margin-bottom: 16px; }
.styled-list li { padding: 6px 0 6px 22px; position: relative; color: var(--text-secondary); font-size: .92rem; }
.styled-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* Formula box version dark (smic-2027) */
.formula-box--dark {
  background: var(--gray-900);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
}
.formula-box--dark code { color: #93C5FD; font-size: .82rem; line-height: 1.6; font-family: 'Courier New', monospace; white-space: normal; word-break: break-word; }

.scenarios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.scenario-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 22px; box-shadow: var(--shadow-sm); transition: transform 0.25s, box-shadow 0.25s; }
.scenario-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.scenario-low  { border-top: 4px solid var(--gray-300); }
.scenario-med  { border-top: 4px solid var(--blue-primary); transform: scale(1.02); }
.scenario-med:hover { transform: scale(1.02) translateY(-4px); }
.scenario-high { border-top: 4px solid var(--orange); }
.sc-badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 12px; border-radius: 100px; background: var(--gray-100); color: var(--gray-600); margin-bottom: 12px; }
.sc-badge--blue   { background: var(--blue-light); color: var(--blue-primary); }
.sc-badge--orange { background: var(--orange-light); color: var(--orange); }
.sc-pct { font-size: 2rem; font-weight: 800; color: var(--blue-primary); line-height: 1; margin-bottom: 4px; }
.scenario-high .sc-pct { color: var(--orange); }
.sc-title { font-size: .82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 20px; }
.sc-values { background: var(--gray-50); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 16px; }
.sc-val-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.sc-val-row:last-child { border-bottom: none; }
.sc-val-row span { color: var(--text-muted); }
.sc-val-row strong { color: var(--gray-900); }
.sc-context { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }

.timeline-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.tlc-title { font-size: .88rem; font-weight: 700; color: var(--gray-900); margin-bottom: 20px; }
.tlc-step { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.tlc-step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.tlc-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.tlc-dot--blue  { background: var(--blue-primary); }
.tlc-dot--green { background: var(--green); }
.tlc-step strong { display: block; font-size: .88rem; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.tlc-step p { font-size: .8rem; color: var(--text-muted); margin: 0; line-height: 1.45; }

.update-alert-box { display: flex; align-items: flex-start; gap: 20px; background: var(--blue-pale); border: 1px solid var(--blue-mid); border-radius: var(--radius-lg); padding: 32px; }
.uab-icon { font-size: 2rem; flex-shrink: 0; margin-top: 4px; }
.uab-content h2 { font-size: 1.15rem; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.uab-content p { font-size: .9rem; color: var(--text-secondary); margin-bottom: 8px; }
.uab-content p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════
   BANDEAU COOKIES RGPD
   ══════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: white;
  border-top: 3px solid var(--blue-primary);
  box-shadow: 0 -4px 24px rgba(0,0,0,.12);
  padding: 20px 0;
  animation: cookie-slide-up 0.4s ease;
}
@keyframes cookie-slide-up { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-banner--hidden { animation: cookie-slide-down 0.4s ease forwards; }
@keyframes cookie-slide-down { from { transform: translateY(0); opacity: 1; } to { transform: translateY(100%); opacity: 0; } }
.cookie-banner__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cookie-banner__left { display: flex; align-items: flex-start; gap: 14px; flex: 1; min-width: 280px; }
.cookie-banner__icon { font-size: 1.8rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.cookie-banner__text p { font-size: .88rem; color: var(--text-secondary); margin-bottom: 4px; line-height: 1.5; }
.cookie-banner__text p:first-child { color: var(--gray-900); margin-bottom: 6px; }
.cookie-banner__link { font-size: .8rem; color: var(--blue-primary); text-decoration: underline; }
.cookie-banner__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

.cookie-btn { padding: 9px 18px; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600; cursor: pointer; border: none; font-family: var(--font); transition: all 0.2s ease; white-space: nowrap; }
.cookie-btn--accept { background: var(--blue-primary); color: white; }
.cookie-btn--accept:hover { background: var(--blue-dark); transform: translateY(-1px); }
.cookie-btn--reject { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--border); }
.cookie-btn--reject:hover { background: var(--gray-200); transform: translateY(-1px); }
.cookie-btn--settings { background: transparent; color: var(--blue-primary); border: 1.5px solid var(--blue-primary); }
.cookie-btn--settings:hover { background: var(--blue-pale); transform: translateY(-1px); }

.cookie-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(3px); }
.cookie-modal__box { position: relative; background: white; border-radius: var(--radius-lg); width: 100%; max-width: 580px; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 64px rgba(0,0,0,.2); animation: modal-pop 0.3s cubic-bezier(.34,1.56,.64,1); }
@keyframes modal-pop { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cookie-modal__header { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: white; z-index: 1; }
.cookie-modal__header h2 { font-size: 1.15rem; font-weight: 700; color: var(--gray-900); }
.cookie-modal__close { width: 32px; height: 32px; border-radius: 50%; background: var(--gray-100); border: none; cursor: pointer; font-size: .9rem; display: flex; align-items: center; justify-content: center; color: var(--gray-600); transition: background 0.2s; font-family: var(--font); }
.cookie-modal__close:hover { background: var(--gray-200); }
.cookie-modal__body { padding: 20px 28px; }
.cookie-modal__intro { font-size: .88rem; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.55; }
.cookie-modal__footer { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 28px 24px; border-top: 1px solid var(--border); flex-wrap: wrap; position: sticky; bottom: 0; background: white; }

.cookie-category { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.cookie-category__header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; gap: 16px; }
.cookie-category__info { display: flex; align-items: flex-start; gap: 12px; flex: 1; }
.cookie-category__icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.cookie-category__info strong { display: block; font-size: .9rem; font-weight: 700; color: var(--gray-900); margin-bottom: 3px; }
.cookie-category__info p { font-size: .8rem; color: var(--text-muted); line-height: 1.45; margin: 0; }

.cookie-toggle--disabled { font-size: .75rem; font-weight: 700; color: var(--green); background: var(--green-light); padding: 4px 12px; border-radius: 100px; white-space: nowrap; flex-shrink: 0; }
.cookie-toggle__switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; cursor: pointer; }
.cookie-toggle__switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-toggle__slider { position: absolute; inset: 0; background: var(--gray-300); border-radius: 100px; transition: background 0.2s; }
.cookie-toggle__slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.cookie-toggle__switch input:checked + .cookie-toggle__slider { background: var(--blue-primary); }
.cookie-toggle__switch input:checked + .cookie-toggle__slider::before { transform: translateX(20px); }

.legal-content { padding: 56px 0 80px; }
.legal-block { margin-bottom: 40px; }
.legal-block--last { margin-bottom: 0; }
.legal-block h2 { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--blue-light); }
.legal-block p { font-size: .92rem; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.65; }
.legal-block ol { padding-left: 20px; margin-bottom: 12px; }
.legal-block ol li { font-size: .92rem; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.65; }
.legal-block ul { margin-bottom: 12px; }
.legal-block ul li { font-size: .92rem; color: var(--text-secondary); margin-bottom: 6px; line-height: 1.65; padding-left: 16px; position: relative; }
.legal-block ul li::before { content: '→'; position: absolute; left: 0; color: var(--blue-primary); font-size: .8rem; }

.cookie-cat-cards { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.cookie-cat-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: white; }
.cookie-cat-card--required { border-color: var(--green); background: var(--green-light); }
.cookie-cat-card__header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.cookie-cat-card__icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.cookie-cat-card__header h3 { font-size: .95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.cookie-cat-card__badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 10px; border-radius: 100px; background: var(--blue-light); color: var(--blue-primary); }
.cookie-cat-card__badge--always { background: var(--green-light); color: var(--green); }
.cookie-cat-card > p { font-size: .88rem; color: var(--text-secondary); margin-bottom: 14px; }

.cookie-table { width: 100%; border-collapse: collapse; font-size: .82rem; border-radius: var(--radius-sm); overflow: hidden; }
.cookie-table thead { background: var(--gray-100); }
.cookie-table thead th { padding: 8px 12px; text-align: left; font-weight: 600; color: var(--gray-700); font-size: .78rem; }
.cookie-table tbody tr { border-bottom: 1px solid var(--border); }
.cookie-table tbody tr:last-child { border-bottom: none; }
.cookie-table tbody td { padding: 8px 12px; color: var(--text-secondary); }
.cookie-table code { background: var(--gray-100); padding: 1px 6px; border-radius: 4px; font-size: .78rem; font-family: monospace; }

.cookie-manage-block { margin-top: 20px; text-align: center; }

.browser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.browser-link { display: block; padding: 12px 16px; background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .85rem; color: var(--text-secondary); text-decoration: none; transition: all var(--transition); }
.browser-link:hover { background: var(--blue-pale); border-color: var(--blue-mid); color: var(--blue-primary); text-decoration: none; }
.browser-link strong { display: block; color: var(--gray-900); margin-bottom: 2px; }

/* ══════════════════════════════════════════════
   FIX #1 — REVEAL ON SCROLL : FAIL-SAFE
   Comportement :
   - Par défaut : opacity:1 (visible sans JS)
   - JS ajoute .reveal-pending AVANT l'observation
   - L'IntersectionObserver retire .reveal-pending
     et ajoute .revealed quand l'élément entre en vue
   - Si JS plante : la page reste entièrement visible
   ══════════════════════════════════════════════ */

/* État par défaut — VISIBLE */
.reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* JS a initialisé l'animation — masqué en attente */
.reveal-on-scroll.reveal-pending {
  opacity: 0;
  transform: translateY(24px);
}

/* L'élément est entré dans le viewport */
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── BLOG PLACEHOLDER ──────────────────────── */
.blog-placeholder { text-align: center; padding: 80px 20px; max-width: 500px; margin: 0 auto; }
.blog-placeholder .big-icon { font-size: 4rem; margin-bottom: 20px; }
.blog-placeholder h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.blog-placeholder p  { color: var(--text-secondary); margin-bottom: 28px; }

/* ── 404 ─────────────────────────────────────── */
.error-page { text-align: center; padding: 100px 20px; }
.error-page .code { font-size: 6rem; font-weight: 800; color: var(--blue-primary); line-height: 1; }
.error-page h1 { font-size: 1.8rem; font-weight: 700; margin: 12px 0; }
.error-page p  { color: var(--text-secondary); margin-bottom: 28px; }

/* ══════════════════════════════════════════════
   SITEMAP HTML
   ══════════════════════════════════════════════ */

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.sitemap-section {
  background: white;
  border: 1px solid var(--border);
  border-top: 4px solid var(--section-color, var(--blue-primary));
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.sitemap-section:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sitemap-section__title { font-size: .95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.sitemap-list { display: flex; flex-direction: column; gap: 4px; }
.sitemap-list__item { border-radius: var(--radius-sm); overflow: hidden; }
.sitemap-list__link { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: var(--radius-sm); text-decoration: none; transition: background 0.15s, color 0.15s; gap: 8px; }
.sitemap-list__link:hover { background: var(--blue-pale); text-decoration: none; }
.sitemap-list__name { font-size: .88rem; font-weight: 600; color: var(--blue-primary); flex: 1; }
.sitemap-list__link:hover .sitemap-list__name { color: var(--blue-dark); }
.sitemap-list__arrow { font-size: .8rem; color: var(--text-muted); transition: transform 0.2s; flex-shrink: 0; }
.sitemap-list__link:hover .sitemap-list__arrow { transform: translateX(3px); color: var(--blue-primary); }
.sitemap-list__desc { font-size: .78rem; color: var(--text-muted); padding: 0 10px 8px; line-height: 1.45; }
.sitemap-xml-link { text-align: center; padding: 32px; background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.sitemap-xml-link p { font-size: .95rem; color: var(--text-secondary); margin-bottom: 16px; }

@media (max-width: 1024px) { .sitemap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .sitemap-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════
   SIMULATEUR SALAIRE VS SMIC
   ══════════════════════════════════════════════ */

.simulateur-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.simulateur-card__header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.simulateur-card__icon { font-size: 2.4rem; flex-shrink: 0; line-height: 1; }
.simulateur-card__title { font-size: 1.3rem; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; }
.simulateur-card__sub { font-size: .88rem; color: var(--text-muted); }

.simulateur-inputs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; margin-bottom: 32px; }
.simulateur-input-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--gray-700); margin-bottom: 8px; }
.simulateur-input-wrap { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color 0.2s; }
.simulateur-input-wrap:focus-within { border-color: var(--blue-primary); }
.simulateur-input-wrap input { flex: 1; padding: 12px 14px; border: none; font-size: 1.1rem; font-weight: 600; color: var(--gray-900); outline: none; background: white; width: 100%; }
.simulateur-input-unit { padding: 12px 14px; background: var(--gray-50); color: var(--text-muted); font-size: .85rem; font-weight: 600; border-left: 1px solid var(--border); white-space: nowrap; }
.simulateur-ou { text-align: center; font-size: .85rem; font-weight: 700; color: var(--text-muted); background: var(--gray-100); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 26px; }

.simulateur-results { border-top: 1px solid var(--border); padding-top: 28px; animation: fade-in 0.3s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.simulateur-ratio-box { text-align: center; margin-bottom: 24px; }
.simulateur-ratio-label { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 4px; }
.simulateur-ratio-value { font-size: 4rem; font-weight: 800; color: var(--blue-primary); line-height: 1; margin: 8px 0; }

.simulateur-gauge-wrap { margin-bottom: 28px; }
.simulateur-gauge { background: var(--gray-100); border-radius: 100px; height: 20px; position: relative; overflow: hidden; margin-bottom: 6px; }
.simulateur-gauge__bar { height: 100%; border-radius: 100px; transition: width 0.6s cubic-bezier(.4,0,.2,1), background 0.3s; min-width: 4px; }
.simulateur-gauge__smic { position: absolute; left: 33.33%; top: -2px; bottom: -2px; width: 2px; background: var(--gray-500); border-radius: 1px; }
.simulateur-gauge__labels { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text-muted); font-weight: 600; }

.simulateur-details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.simulateur-detail-card { background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: center; }
.simulateur-detail-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 6px; }
.simulateur-detail-value { font-size: 1.1rem; font-weight: 800; color: var(--gray-900); }

.simulateur-badge { text-align: center; padding: 12px 20px; border-radius: var(--radius); font-size: .9rem; font-weight: 600; }
.simulateur-badge--red    { background: var(--red-light); color: var(--red); }
.simulateur-badge--orange { background: var(--orange-light); color: var(--orange); }
.simulateur-badge--green  { background: var(--green-light); color: var(--green); }
.simulateur-badge--blue   { background: var(--blue-pale); color: var(--blue-primary); }

.hero--blue { background: linear-gradient(135deg, var(--blue-primary) 0%, #2563EB 60%, #1E40AF 100%); color: white; padding: 48px 0 40px; }
.hero--blue h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: 10px; line-height: 1.2; }
.hero--blue p { font-size: 1rem; opacity: .85; max-width: 560px; }
.hero--blue .hero__badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 100px; padding: 5px 16px; font-size: .78rem; font-weight: 600; margin-bottom: 14px; }

/* ── TEXT CENTER / MISC ─────────────────────── */
.text-center { text-align: center; }
.mt-8 { margin-top: 32px; }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  /* Footer : 5 cols → 2 cols avec brand pleine largeur */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .footer-brand p { max-width: 100%; }

  .neighbor-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .neighbor-card--france { transform: scale(1.02); }
  .neighbor-card--france:hover { transform: scale(1.02) translateY(-3px); }
  .smic-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .scenarios-grid { grid-template-columns: 1fr 1fr; }
  .content-grid-2 { grid-template-columns: 1fr; }
  .stats-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .content-split { grid-template-columns: 1fr; }
  .aspa-grid { grid-template-columns: 1fr; }
  .conditions-grid { grid-template-columns: 1fr; }
  .grille-chart__row { grid-template-columns: 160px 1fr; }
  .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none !important;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: white;
    flex-direction: column !important;
    align-items: stretch;
    padding: 12px;
    overflow-y: auto;
    border-top: 1px solid var(--border);
    gap: 2px;
    z-index: 99;
    height: auto;
  }
  .nav-menu.open { display: flex !important; }

  .nav-item { height: auto; flex-direction: column; align-items: stretch; }

  .nav-link {
    height: auto;
    padding: 12px 16px;
    font-size: .95rem;
    border-radius: var(--radius-sm);
    border-bottom: none;
    margin-bottom: 0;
    justify-content: space-between;
  }
  .nav-link:hover { background: var(--blue-pale); }

  .nav-arrow { font-size: 1.3rem; }
  .dropdown-divider { margin: 3px 8px; }
  .nav-item.dropdown::after { display: none !important; }

  .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    padding: 4px 0 4px 12px;
    margin-top: 4px;
    display: none;
    transition: none !important;
    min-width: unset;
  }
  .dropdown-menu::before { display: none; }
  .nav-item.dropdown.open .dropdown-menu { display: block; }

  .section { padding: 48px 0; }
  .hero { padding: 40px 0 32px; }

  /* ══════════════════════════════════════════════
     FOOTER MOBILE 768px — 2 colonnes compactes
     ══════════════════════════════════════════════ */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    margin-bottom: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 4px;
  }
  .footer-brand > div:first-child {
    flex: 1;
    min-width: 0;
  }
  .footer-brand p {
    max-width: 100%;
    font-size: .82rem;
    line-height: 1.5;
    margin-top: 6px;
  }
  .update-badge {
    margin-top: 0;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
  }

  .footer-col {
    min-width: 0;
  }
  .footer-col h4 {
    font-size: .8rem;
    margin-bottom: 10px;
    color: white;
  }
  .footer-col ul {
    gap: 6px;
  }
  .footer-col ul li a {
    font-size: .78rem;
  }

  /* ══════════════════════════════════════════════
     RÈGLE NUCLÉAIRE ANTI-DÉBORDEMENT MOBILE
     Force TOUT à rester dans l'écran — mobile only
     ══════════════════════════════════════════════ */

  /* Toute la page */
  .section,
  .page-hero,
  .hero,
  .hero--blue {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Containers */
  .container,
  .container--narrow,
  .container--wide {
    padding: 0 16px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  /* Two-col → 1 colonne */
  .two-col,
  .two-col--3-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Tous les éléments inline avec style="" — force max-width */
  [style*="max-width"],
  [style*="width"] {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Calc-wrapper */
  .calc-wrapper {
    padding: 20px 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Calc-result */
  .calc-result {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Formula-box */
  .formula-box {
    font-size: .85rem !important;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow-x: hidden;
    padding: 12px 14px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Tables */
  table {
    min-width: unset;
    width: 100%;
  }
  .table-wrapper.scrollable table,
  .table-wrap.scrollable table,
  .table-responsive table {
    min-width: 480px;
  }

  /* Tous les blocs de contenu */
  .content-text,
  .info-box,
  .alert-box,
  .internal-links,
  .faq-crosslink,
  .related-cluster__cross,
  .smic-card,
  .card,
  .info-card,
  .calc-wrapper,
  .formula-box,
  .formula-block,
  .simulator-card,
  .simulateur-card,
  .calculator-card {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* SMIC cards */
  .smic-card {
    padding: 16px 12px;
  }
  .smic-card__value {
    font-size: 1.35rem;
    white-space: nowrap;
    overflow: hidden;
  }

  .logo-name { font-size: 1.2rem; }
  .logo-tagline { font-size: .75rem; }

  .int-chart__row { grid-template-columns: 20px 95px 1fr 56px; gap: 6px; padding: 6px 6px; }
  .int-chart__pays { font-size: .75rem; }
  .int-chart__bar-wrap { height: 22px; }
  .int-chart__bar-label { font-size: .64rem; padding-right: 6px; }
  .int-chart__value-outside-badge { font-size: .64rem; padding: 2px 6px; margin-left: 4px; }
  .int-chart__horaire { font-size: .72rem; }
  .int-chart__badge-fr { display: none; }
  .int-chart--enhanced { padding: 12px 8px; }

  /* Masquer l'axis-label sur mobile */
  .int-chart__axis-label { display: none; }

  .neighbor-grid--5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .neighbor-card--france {
    transform: none;
    grid-column: span 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    text-align: left;
    padding: 16px;
    gap: 12px;
  }
  .neighbor-card--france:hover { transform: translateY(-3px); }

  .smic-card:hover { transform: translateY(-2px) scale(1.01); }
  .smic-cards--white .smic-card:hover { transform: translateY(-2px) scale(1.01); }
  .card:hover { transform: translateY(-2px); }
  .situation-card:hover { transform: translateY(-2px); }
  .info-card:hover { transform: translateY(-2px); }

  .info-card:hover .emoji-icon {
    transform: scale(1.1) rotate(-3deg);
  }

  .smic-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .scenarios-grid { grid-template-columns: 1fr; }
  .scenario-med { transform: none; }
  .scenario-med:hover { transform: translateY(-4px); }
  .update-alert-box { flex-direction: column; gap: 12px; padding: 20px; }
  .related-links-grid { grid-template-columns: 1fr; }

  .cookie-banner__inner { flex-direction: column; gap: 16px; }
  .cookie-banner__actions { width: 100%; justify-content: center; }
  .cookie-modal__box { max-height: 95vh; }
  .cookie-modal__footer { justify-content: center; }
  .browser-grid { grid-template-columns: 1fr; }

  .stats-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .calculator-card { padding: 20px; }
  .grille-chart__row { grid-template-columns: 130px 1fr; }
  .grille-chart__label { font-size: .78rem; }
  .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }

  .simulateur-inputs { grid-template-columns: 1fr; gap: 12px; }
  .simulateur-ou { margin: 0 auto; }
  .simulateur-details { grid-template-columns: repeat(2, 1fr); }
  .simulateur-card { padding: 24px 18px; }
  .simulateur-ratio-value { font-size: 3rem; }
}

@media (max-width: 480px) {
  /* ══════════════════════════════════════════════
     FOOTER 480px — GARDER 2 COLONNES pour les liens
     ══════════════════════════════════════════════ */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
  }
  .footer-brand p { max-width: 100%; }
  .update-badge { margin-top: 4px; align-self: flex-start; }

  .footer-col h4 {
    font-size: .75rem;
    margin-bottom: 8px;
  }
  .footer-col ul li a {
    font-size: .72rem;
  }
  .footer-col ul {
    gap: 5px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .footer-legal {
    justify-content: center;
    gap: 10px;
  }

  /* ── SMIC CARDS TRÈS PETIT MOBILE (360px) ── */
  .smic-card {
    padding: 14px 8px;
  }
  .smic-card__value {
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
  }
  .smic-card__label {
    font-size: .65rem;
    letter-spacing: .03em;
  }

  /* ── CALC WRAPPER — encore plus compact sur 360px ── */
  .calc-wrapper {
    padding: 14px 10px;
    box-sizing: border-box;
  }

  /* ── FORMULA BOX sur très petit écran ── */
  .formula-box {
    font-size: .78rem !important;
    padding: 10px 12px;
  }

  /* ── TABLES TRÈS PETIT MOBILE ── */
  .table-wrapper.scrollable table,
  .table-wrap.scrollable table,
  .table-responsive table {
    min-width: 360px;
    font-size: .82rem;
  }
  tbody td { padding: 8px 10px; }
  thead th { padding: 10px 10px; }

  /* ── CALC RESULT — 1 colonne sur 360px ── */
  .calc-result {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .calc-result__val {
    font-size: 1.4rem;
  }

  /* Containers encore plus resserrés */
  .container,
  .container--narrow,
  .container--wide {
    padding: 0 12px;
  }

  /* Force tout élément inline style à respecter la largeur */
  [style*="max-width"],
  [style*="width"] {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .int-chart__row { grid-template-columns: 18px 80px 1fr 50px; gap: 4px; }
  .int-chart__pays { font-size: .70rem; }
  .int-chart__flag { font-size: .95rem; }
  .int-chart__horaire { font-size: .68rem; }
  .int-chart__bar-label { font-size: .60rem; padding-right: 4px; }

  .neighbor-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .neighbor-card--france { grid-column: span 2; }

  .logo-name { font-size: 1.1rem; }
  .cookie-banner__actions { flex-direction: column; width: 100%; }
  .cookie-btn { width: 100%; text-align: center; justify-content: center; }

  .cards-grid-3 { grid-template-columns: 1fr; }
  .info-tile { padding: 18px; }
  .stats-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grille-chart__row { grid-template-columns: 110px 1fr; }
  .grille-chart__label { font-size: .72rem; }

  .hero-badges { flex-direction: column; align-items: flex-start; }
  .simulateur-details { grid-template-columns: 1fr 1fr; }

  .info-card:hover .emoji-icon {
    transform: scale(1.1);
  }
}

/* ── MISC ────────────────────────────────────── */
.tag { display: inline-block; background: var(--blue-light); color: var(--blue-primary); border-radius: 100px; padding: 3px 12px; font-size: .75rem; font-weight: 700; }
.tag--green { background: var(--green-light); color: var(--green); }
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.text-muted { color: var(--text-muted); }
.text-blue  { color: var(--blue-primary); }
.text-green { color: var(--green); }
.font-bold  { font-weight: 700; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ══════════════════════════════════════════════
   DEBUG HELPER — Indicateur de débordement
   Décommenter pour visualiser les débordements en dev
   ══════════════════════════════════════════════ */
/*
.footer-disclaimer {
  outline: 2px solid red !important;
  outline-offset: -2px;
}
* {
  outline: 1px solid rgba(255,0,0,.1);
}
*/