/* ============================================================
   CFDT ORANGE — Design System V2
   Prototype HTML — design system aligné CHARTE GRAPHIQUE CFDT 2013
   Couleurs et typographies conformes à l'identité visuelle officielle
   ============================================================ */

/* ====== TOKENS ====== */
:root {
  /* === Couleurs principales CFDT (charte octobre 2013) === */
  /* Orange CFDT — Pantone 166 C / RVB 232 89 29 / CMJN 0/75/100/0 */
  --cfdt-orange: #E8591D;        /* couleur identitaire principale */
  --cfdt-orange-dark: #B43F0F;   /* version foncée pour hover/contraste */
  --cfdt-orange-light: #FBD6B9;  /* Pantone 475 C — couleur d'accompagnement claire */
  --cfdt-orange-pale: #FDF1E8;   /* fond très clair dérivé */
  --cfdt-orange-accent: #E8591D; /* alias de l'orange principal */

  /* === Noir 85% (typographie principale charte) === */
  --neutral-900: #555554;        /* Black 7 charte (texte principal) */
  --neutral-800: #404040;
  --neutral-700: #555554;
  --neutral-600: #757575;
  --neutral-500: #9E9E9E;
  --neutral-400: #BCBCBC;
  --neutral-300: #D4CBC7;        /* Pantone 401 C — gris doux charte */
  --neutral-200: #DFE7EC;        /* Pantone 427 C — gris bleuté charte */
  --neutral-100: #F0EFEC;
  --neutral-50: #FAFAF7;
  --white: #FFFFFF;

  /* === Couleurs d'accompagnement officielles charte CFDT === */
  /* Vert anis — Pantone 375 C */
  --cfdt-vert: #AAC955;
  --cfdt-vert-dark: #7BAA1F;
  --cfdt-vert-light: #E4F0D0;

  /* Jaune fluo — Pantone 394 C */
  --cfdt-jaune: #E4E039;

  /* Bleu CFDT — Pantone 2718 C */
  --cfdt-bleu: #6A85BE;
  --cfdt-bleu-light: #DFE7EC;

  /* Bleu nuit — Pantone 3035 C */
  --cfdt-bleu-nuit: #00455E;

  /* Violet — Pantone 2746 C (utilisé pour V2/innovations) */
  --cfdt-violet: #474090;
  --cfdt-violet-light: #BB9AC4;
  --cfdt-violet-pale: #E8E0F0;

  /* Bordeaux — Pantone 7630 C */
  --cfdt-bordeaux: #6B3A3F;

  /* Rose — Pantone 203 C */
  --cfdt-rose: #F2AAC8;

  /* Couleurs sémantiques (alignées sur la palette charte) */
  --color-success: #7BAA1F;       /* dérivé du vert anis charte */
  --color-success-light: #E4F0D0;
  --color-warning: #BA7517;
  --color-warning-light: #FAEEDA;
  --color-danger: #C0392B;
  --color-danger-light: #FBE9E7;
  --color-info: #00455E;          /* bleu nuit charte */
  --color-info-light: #DFE7EC;

  /* === Tokens V2 (innovations benchmark) — basés sur le violet charte === */
  --bench-purple: #474090;        /* Pantone 2746 C charte CFDT */
  --bench-purple-light: #E8E0F0;
  --bench-purple-dark: #2D2860;

  /* === Typographie : Arial (typographie de remplacement validée par la charte) === */
  /* La charte CFDT autorise explicitement Arial comme remplacement
     gratuit et universel de Gotham Narrow. */
  --font-sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-serif: "Minion Pro", Georgia, "Times New Roman", serif;
  --font-mono: Consolas, "Courier New", monospace;

  /* Espacements (4pt grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;

  /* Rayons */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 24px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.16);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 720px;
  --header-height: 72px;
  --header-height-mobile: 56px;
  --bottom-nav-height: 60px;
}

/* ====== RESET ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--neutral-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Skip link accessibilité */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--cfdt-orange-dark);
  color: white;
  padding: 8px 16px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { top: 0; }

/* ====== TYPOGRAPHIE ====== */
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.25; color: var(--neutral-900); }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }

p { margin-bottom: 1em; }
strong { font-weight: 600; }

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
  h3 { font-size: 1.125rem; }
}

/* ====== UTILITAIRES ====== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-6); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.hidden { display: none !important; }

/* ====== BANDEAU PROTOTYPE ====== */
.proto-banner {
  background: linear-gradient(90deg, var(--bench-purple), var(--cfdt-orange-dark));
  color: white;
  text-align: center;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
}
.proto-banner a {
  color: white;
  text-decoration: underline;
  margin-left: 12px;
  font-weight: 600;
}

/* ====== HEADER ====== */
.site-header { background: white; border-bottom: 1px solid var(--neutral-200); position: sticky; top: 0; z-index: 100; }
.topbar {
  background: var(--cfdt-orange-dark);
  color: white;
  font-size: 0.8125rem;
}
.topbar-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 6px var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: white; opacity: 0.9; transition: opacity var(--transition-fast); }
.topbar a:hover { opacity: 1; }
.topbar-left, .topbar-right { display: flex; gap: var(--space-5); align-items: center; }
.topbar-left .label { opacity: 0.7; }
.topbar-pill {
  background: white;
  color: var(--cfdt-orange-dark);
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.header-main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--neutral-900);
  flex-shrink: 0;
}

/* Logo CFDT officiel : rond orange parfait avec "Cfdt:" en blanc
   Conforme à la charte graphique CFDT 2013 (taille minimale 7mm respectée) */
.logo-mark {
  width: 44px;
  height: 44px;
  background: var(--cfdt-orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  line-height: 1;
  /* Le ":" est inclus dans le texte "Cfdt:" pour respecter le logo officiel */
}
.logo-mark::after {
  content: "Cfdt:";
}

/* Bloc structure CFDT + ORANGE selon la charte (chap. 4 et 5) */
.logo-text {
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--cfdt-orange);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.logo-subtext {
  font-family: Arial, sans-serif;
  font-size: 0.625rem;
  color: var(--neutral-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
  font-weight: 600;
}
/* Signature institutionnelle CFDT (charte chap. 2) */
.logo-signature {
  font-family: Arial, sans-serif;
  font-size: 0.5625rem;
  color: var(--neutral-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-top: 3px;
  font-weight: 400;
}

.nav-main {
  display: flex;
  gap: var(--space-1);
  flex: 1;
}
.nav-main a {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--neutral-800);
  transition: all var(--transition-fast);
  position: relative;
}
.nav-main a:hover { background: var(--neutral-100); }
.nav-main a.active { color: var(--cfdt-orange-dark); }
.nav-main a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: var(--space-4);
  right: var(--space-4);
  height: 2px;
  background: var(--cfdt-orange);
}

.search-toggle, .mobile-toggle {
  background: none;
  border: 1px solid var(--neutral-200);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--neutral-700);
  transition: all var(--transition-fast);
}
.search-toggle:hover, .mobile-toggle:hover { border-color: var(--cfdt-orange); color: var(--cfdt-orange-dark); }
.mobile-toggle { display: none; }

@media (max-width: 1024px) {
  .nav-main { display: none; }
  .mobile-toggle { display: flex; }
  .topbar-left .label, .topbar-left .topbar-link-extra { display: none; }
}

@media (max-width: 640px) {
  .header-main { padding: var(--space-2) var(--space-4); }
  .logo-text { display: none; }
  .topbar-content { padding: 4px var(--space-4); font-size: 0.75rem; }
  .topbar-left { gap: var(--space-3); }
}

/* ====== MEGA-MENU MOBILE ====== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 200;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--neutral-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--cfdt-orange-dark);
  color: white;
}
.mobile-menu-header .logo-text { color: white; }
.mobile-menu-close {
  color: white;
  font-size: 1.5rem;
  padding: 8px;
}
.mobile-menu-search {
  padding: var(--space-4);
  border-bottom: 1px solid var(--neutral-200);
}
.mobile-menu-search input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  font-size: 1rem;
}
.mobile-menu-persona {
  padding: var(--space-4);
  background: var(--cfdt-orange-light);
  border-bottom: 1px solid var(--neutral-200);
}
.mobile-menu-persona .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cfdt-orange-dark); font-weight: 600; margin-bottom: 4px; }
.mobile-menu-persona select {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--cfdt-orange);
  border-radius: var(--radius-md);
  background: white;
  color: var(--neutral-900);
  font-size: 1rem;
}
.mobile-menu-section {
  border-bottom: 1px solid var(--neutral-200);
}
.mobile-menu-section summary {
  padding: var(--space-4);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.mobile-menu-section summary::-webkit-details-marker { display: none; }
.mobile-menu-section summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--cfdt-orange);
  transition: transform var(--transition-fast);
}
.mobile-menu-section[open] summary::after { content: "−"; }
.mobile-menu-section ul {
  padding: 0 var(--space-4) var(--space-4);
}
.mobile-menu-section li a {
  display: block;
  padding: var(--space-3);
  color: var(--neutral-700);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}
.mobile-menu-section li a:hover { background: var(--neutral-100); color: var(--cfdt-orange-dark); }

/* ====== BARRE DE NAVIGATION MOBILE BASSE ====== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--neutral-200);
  z-index: 90;
  height: var(--bottom-nav-height);
}
.bottom-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 100%;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--neutral-600);
  font-size: 0.6875rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.bottom-nav-item.active { color: var(--cfdt-orange); }
.bottom-nav-item .icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .bottom-nav { display: block; }
  body { padding-bottom: var(--bottom-nav-height); }
}

/* ====== BOUTONS ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--cfdt-orange); color: white; }
.btn-primary:hover { background: var(--cfdt-orange-dark); }
.btn-secondary { background: white; color: var(--cfdt-orange-dark); border-color: var(--cfdt-orange); }
.btn-secondary:hover { background: var(--cfdt-orange-light); }
.btn-ghost { background: transparent; color: var(--neutral-700); }
.btn-ghost:hover { background: var(--neutral-100); }
.btn-purple { background: var(--bench-purple); color: white; }
.btn-purple:hover { background: var(--bench-purple-dark); }
.btn-large { padding: var(--space-4) var(--space-7); font-size: 1rem; }
.btn-block { width: 100%; }

/* ====== BADGES ====== */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-orange { background: var(--cfdt-orange-light); color: var(--cfdt-orange-dark); }
.badge-purple { background: var(--bench-purple-light); color: var(--bench-purple); }
.badge-info { background: var(--color-info-light); color: var(--color-info); }
.badge-success { background: var(--color-success-light); color: var(--color-success); }
.badge-warning { background: var(--color-warning-light); color: var(--color-warning); }
.badge-danger { background: var(--color-danger-light); color: var(--color-danger); }
.badge-v2 { background: var(--bench-purple); color: white; font-size: 0.6875rem; padding: 2px 8px; }

/* ====== CARDS ====== */
.card {
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--neutral-300); }
.card-body { padding: var(--space-5); }
.card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--cfdt-orange-light), var(--neutral-100));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cfdt-orange-dark);
  font-size: 0.8125rem;
  font-weight: 500;
}
.card-meta {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-2);
  font-size: 0.8125rem;
  color: var(--neutral-600);
}
.card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: var(--space-2);
  color: var(--neutral-900);
}
.card-excerpt {
  font-size: 0.875rem;
  color: var(--neutral-600);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ====== HERO ====== */
.hero {
  background: linear-gradient(135deg, var(--neutral-50) 0%, var(--cfdt-orange-light) 100%);
  padding: var(--space-9) 0;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-9);
  align-items: center;
}
.hero-image {
  height: 320px;
  background: linear-gradient(135deg, var(--cfdt-orange), var(--cfdt-orange-dark));
  border-radius: var(--radius-xl);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
}
.hero h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: var(--space-4); }
.hero-lead { font-size: 1.125rem; color: var(--neutral-700); margin-bottom: var(--space-6); }

@media (max-width: 768px) {
  .hero { padding: var(--space-7) 0; }
  .hero-content { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero-image { height: 200px; }
  .hero h1 { font-size: 1.75rem; }
}

/* ====== SECTIONS ====== */
.section { padding: var(--space-9) 0; }
.section-tight { padding: var(--space-7) 0; }
.section-bench { background: linear-gradient(135deg, var(--bench-purple-light) 0%, var(--cfdt-orange-light) 100%); }
.section-grey { background: var(--neutral-50); }

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.section-header-row h2 {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.section-link {
  color: var(--color-info);
  font-weight: 500;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.section-link:hover { text-decoration: underline; }

/* ====== GRID ====== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }

@media (max-width: 1024px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

/* ====== PERSONA CARDS ====== */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}
.persona-card {
  background: white;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
}
.persona-card:hover {
  border-color: var(--cfdt-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.persona-card.active { border-color: var(--cfdt-orange); background: var(--cfdt-orange-light); }
.persona-icon {
  width: 48px;
  height: 48px;
  background: var(--cfdt-orange-light);
  color: var(--cfdt-orange-dark);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto var(--space-3);
}
.persona-name { font-weight: 600; font-size: 1rem; margin-bottom: 2px; }
.persona-desc { font-size: 0.8125rem; color: var(--neutral-600); }

@media (max-width: 1024px) {
  .persona-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .persona-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .persona-card { padding: var(--space-4); }
}

/* ====== BREADCRUMB ====== */
.breadcrumb {
  padding: var(--space-3) 0;
  font-size: 0.8125rem;
  color: var(--neutral-600);
  background: var(--neutral-50);
  border-bottom: 1px solid var(--neutral-200);
}
.breadcrumb a { color: var(--color-info); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .separator { margin: 0 6px; color: var(--neutral-400); }
.breadcrumb .current { color: var(--neutral-900); font-weight: 500; }

/* ====== FOOTER ====== */
.site-footer {
  background: var(--neutral-900);
  color: var(--neutral-200);
  padding: var(--space-9) 0 var(--space-6);
  margin-top: var(--space-10);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}
.footer-brand .logo-text { color: white; }
.footer-brand p { color: var(--neutral-300); font-size: 0.875rem; line-height: 1.55; }
.footer-col h4 { color: white; font-size: 0.9375rem; margin-bottom: var(--space-3); }
.footer-col ul li { margin-bottom: var(--space-2); }
.footer-col a { color: var(--neutral-300); font-size: 0.875rem; transition: color var(--transition-fast); }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid var(--neutral-700);
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--neutral-400);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer-bottom .a11y-badge {
  background: var(--color-success);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ====== COOKIE BANNER ====== */
.cookie-banner {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  max-width: 480px;
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-xl);
  z-index: 150;
  font-size: 0.875rem;
}
.cookie-banner.hidden { display: none; }
.cookie-banner h4 { font-size: 1rem; margin-bottom: var(--space-2); }
.cookie-banner p { color: var(--neutral-600); margin-bottom: var(--space-4); }
.cookie-buttons { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.cookie-buttons .btn { flex: 1; min-width: 120px; }

@media (max-width: 768px) {
  .cookie-banner { bottom: calc(var(--bottom-nav-height) + var(--space-3)); }
}

/* ====== TOAST ====== */
.toast {
  position: fixed;
  top: var(--space-5);
  right: var(--space-5);
  background: var(--neutral-900);
  color: white;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 250;
  font-size: 0.875rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ====== FOCUS VISIBLE (a11y) ====== */
:focus-visible {
  outline: 3px solid var(--cfdt-orange);
  outline-offset: 2px;
}
button:focus-visible, a:focus-visible {
  outline-offset: 4px;
}

/* ====== REDUCED MOTION ====== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ====== PRINT ====== */
@media print {
  .site-header, .site-footer, .bottom-nav, .cookie-banner, .proto-banner { display: none !important; }
  body { padding: 0 !important; }
}

/* ====== TYPOGRAPHIE "PONCTUATION CFDT" (charte chap. 1.II) ======
   Effet visuel simulant la fonte propriétaire CFDT-Ponctuation :
   on remplace UNE lettre (deux maximum) dans un mot pour valoriser le sens.
   À utiliser uniquement sur les titres principaux et avec parcimonie. */
.cfdt-punct {
  display: inline-block;
  color: var(--cfdt-orange);
  font-weight: 900;
  position: relative;
  /* L'effet visuel imite le décalage subtil de la fonte propriétaire */
  transform: translateY(0.02em);
}
/* Variante sur fond orange — ponctuation en blanc */
.on-orange .cfdt-punct,
.cfdt-punct.on-orange {
  color: white;
}
/* Variante sur fond foncé — ponctuation en orange vif */
.on-dark .cfdt-punct {
  color: var(--cfdt-orange);
}

