/*
══════════════════════════════════════════════════════════════════════
  ATLAS DESIGN SYSTEM — Portail Accueil CRI Souss-Massa
  Direction artistique "Le Souffle de l'Atlas"
  Version 1.0 — 10 mai 2026
  
  Tutelle : Ministère de l'Investissement, de la Convergence et de
            l'Évaluation des Politiques Publiques (MICEPP)
  
  Cible    : Niveau ministériel, surprenant, élégant, trilingue
══════════════════════════════════════════════════════════════════════
*/

/* ════════════════════════════════════════════════════════════════
   POLICES — Google Fonts (chargement async)
   ════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,400&family=Inter:wght@300;400;500;600;700;900&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

/* ════════════════════════════════════════════════════════════════
   DESIGN TOKENS — Couleurs Souffle de l'Atlas
   ════════════════════════════════════════════════════════════════ */
:root {
  /* === Palette principale === */
  --atlas-deep:       #0B1F38;  /* Bleu nuit Atlantique (fond principal) */
  --atlas-deep2:      #142B47;  /* Bleu marine intermediaire */
  --atlas-ocean:      #1A4A6E;  /* Bleu Atlantique vif */
  --atlas-sand:       #E8C275;  /* Sable dore du Souss */
  --atlas-sand2:      #D4A93C;  /* Or institutionnel */
  --atlas-oasis:      #2D8659;  /* Vert oasis (succes, validation) */
  --atlas-oasis2:     #1F6A45;  /* Vert plus fonce */
  --atlas-ochre:      #B8763E;  /* Ocre terre */
  --atlas-cream:      #F8F5EE;  /* Creme nuage (textes clairs) */
  --atlas-basalt:     #0E1419;  /* Noir basalte */
  --atlas-pearl:      #FAFAFA;  /* Blanc papier */

  /* === Couleurs fonctionnelles === */
  --atlas-success:    var(--atlas-oasis);
  --atlas-warning:    #F59E0B;
  --atlas-error:      #DC2626;
  --atlas-info:       #2563EB;

  /* === Texte === */
  --atlas-text:           #E6EAF0;
  --atlas-text-soft:      rgba(230,234,240,.78);
  --atlas-text-muted:     rgba(230,234,240,.55);
  --atlas-text-faint:     rgba(230,234,240,.35);
  --atlas-text-on-light:  #1A2942;

  /* === Bordures === */
  --atlas-border:         rgba(232,194,117,.20);
  --atlas-border-strong:  rgba(232,194,117,.45);
  --atlas-border-soft:    rgba(255,255,255,.10);

  /* === Surfaces === */
  --atlas-surface-1:  rgba(255,255,255,0.04);
  --atlas-surface-2:  rgba(255,255,255,0.08);
  --atlas-surface-3:  rgba(255,255,255,0.12);

  /* === Ombres === */
  --atlas-shadow-sm:  0 2px 8px rgba(0,0,0,0.18);
  --atlas-shadow-md:  0 8px 24px rgba(0,0,0,0.28);
  --atlas-shadow-lg:  0 16px 48px rgba(0,0,0,0.40);
  --atlas-glow-gold:  0 0 32px rgba(232,194,117,0.25);

  /* === Espacement (echelle harmonique) === */
  --atlas-space-1: 4px;
  --atlas-space-2: 8px;
  --atlas-space-3: 12px;
  --atlas-space-4: 16px;
  --atlas-space-5: 24px;
  --atlas-space-6: 32px;
  --atlas-space-7: 48px;
  --atlas-space-8: 64px;
  --atlas-space-9: 96px;

  /* === Rayons === */
  --atlas-radius-sm: 6px;
  --atlas-radius-md: 12px;
  --atlas-radius-lg: 18px;
  --atlas-radius-xl: 24px;

  /* === Typographie === */
  --atlas-font-display: 'Fraunces', 'Georgia', serif;
  --atlas-font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --atlas-font-arabic:  'Amiri', 'Traditional Arabic', serif;
  --atlas-font-mono:    'Courier New', monospace;
}

/* ════════════════════════════════════════════════════════════════
   FOND ATLAS — Fond principal du portail
   ════════════════════════════════════════════════════════════════ */
.atlas-body {
  background:
    radial-gradient(1400px 800px at 15% -10%, rgba(26,74,110,.35), transparent 65%),
    radial-gradient(1000px 600px at 110% 5%, rgba(232,194,117,.18), transparent 65%),
    radial-gradient(800px 500px at 50% 110%, rgba(45,134,89,.10), transparent 65%),
    linear-gradient(180deg, var(--atlas-deep) 0%, var(--atlas-deep2) 100%);
  color: var(--atlas-text);
  font-family: var(--atlas-font-body);
  font-feature-settings: "cv02","cv03","ss01";
  min-height: 100vh;
  letter-spacing: 0.01em;
}

/* ════════════════════════════════════════════════════════════════
   HERO — Bandeau immersif (silhouette Atlas + soleil)
   ════════════════════════════════════════════════════════════════ */
.atlas-hero {
  position: relative;
  overflow: hidden;
  padding: var(--atlas-space-6) var(--atlas-space-5) var(--atlas-space-7);
  text-align: center;
}

/* Soleil levant (animation tres lente, 60s loop) */
.atlas-hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,194,117,0.25) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: atlas-sun-rise 60s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes atlas-sun-rise {
  0%   { transform: translate(-50%, -30%) scale(0.95); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

.atlas-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
}

.atlas-hero__kicker {
  font-family: var(--atlas-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--atlas-sand);
  margin-bottom: var(--atlas-space-4);
}

.atlas-hero__title {
  font-family: var(--atlas-font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.1;
  color: var(--atlas-cream);
  letter-spacing: -0.02em;
  margin: 0 0 var(--atlas-space-3);
}

.atlas-hero__title em {
  font-style: italic;
  color: var(--atlas-sand);
  font-weight: 400;
}

.atlas-hero__lead {
  font-family: var(--atlas-font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--atlas-text-soft);
  max-width: 720px;
  margin: 0 auto var(--atlas-space-5);
}

/* ════════════════════════════════════════════════════════════════
   STATS BANNER — Chiffres officiels CRI (1200 projets, etc.)
   ════════════════════════════════════════════════════════════════ */
.atlas-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--atlas-space-5);
  max-width: 1100px;
  margin: var(--atlas-space-6) auto 0;
  padding: var(--atlas-space-5);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--atlas-border);
  border-radius: var(--atlas-radius-lg);
  backdrop-filter: blur(12px);
}

.atlas-stat {
  text-align: center;
}

.atlas-stat__value {
  font-family: var(--atlas-font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 500;
  color: var(--atlas-sand);
  line-height: 1;
  display: block;
}

.atlas-stat__label {
  font-family: var(--atlas-font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--atlas-text-soft);
  margin-top: var(--atlas-space-2);
}

/* ════════════════════════════════════════════════════════════════
   CARTES — Carte "verre depoli premium"
   ════════════════════════════════════════════════════════════════ */
.atlas-card {
  background: var(--atlas-surface-2);
  border: 1px solid var(--atlas-border);
  border-radius: var(--atlas-radius-lg);
  padding: var(--atlas-space-5);
  box-shadow: var(--atlas-shadow-md);
  backdrop-filter: blur(10px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.atlas-card:hover {
  transform: translateY(-2px);
  border-color: var(--atlas-border-strong);
  box-shadow: var(--atlas-shadow-lg), var(--atlas-glow-gold);
}

.atlas-card--featured {
  background: linear-gradient(135deg, var(--atlas-surface-2) 0%, var(--atlas-surface-3) 100%);
  border-color: var(--atlas-sand2);
}

.atlas-card__title {
  font-family: var(--atlas-font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--atlas-cream);
  margin: 0 0 var(--atlas-space-3);
}

.atlas-card__lead {
  font-family: var(--atlas-font-body);
  font-size: 0.95rem;
  color: var(--atlas-text-soft);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════════
   BOUTONS — Signature visuelle
   ════════════════════════════════════════════════════════════════ */
.atlas-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--atlas-space-2);
  padding: 12px 28px;
  border-radius: var(--atlas-radius-md);
  font-family: var(--atlas-font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.atlas-btn--primary {
  background: linear-gradient(135deg, var(--atlas-sand2) 0%, var(--atlas-sand) 100%);
  color: var(--atlas-deep);
  box-shadow: 0 4px 14px rgba(232,194,117,0.25);
}
.atlas-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,194,117,0.40);
}

.atlas-btn--ghost {
  background: transparent;
  color: var(--atlas-cream);
  border-color: var(--atlas-border-strong);
}
.atlas-btn--ghost:hover {
  background: var(--atlas-surface-2);
  border-color: var(--atlas-sand);
}

.atlas-btn--success {
  background: linear-gradient(135deg, var(--atlas-oasis) 0%, var(--atlas-oasis2) 100%);
  color: white;
}

/* ════════════════════════════════════════════════════════════════
   HEADER OFFICIEL — Avec logos MICEPP + CRI
   ════════════════════════════════════════════════════════════════ */
.atlas-header {
  /* Sticky : reste visible au scroll */
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(11,31,56,0.96) 0%, rgba(20,43,71,0.98) 100%);
  border-bottom: 1px solid var(--atlas-border);
  padding: var(--atlas-space-3) var(--atlas-space-5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  /* Transitions Apple-style pour le compactage */
  transition: padding 280ms cubic-bezier(0.4, 0, 0.2, 1),
              background 280ms ease,
              box-shadow 280ms ease,
              border-bottom-color 280ms ease;
}

/* ════════════════════════════════════════════ */
/* Etat SCROLLED : header compact (style Apple) */
/* ════════════════════════════════════════════ */
.atlas-header--scrolled {
  padding: var(--atlas-space-2) var(--atlas-space-5);
  background: linear-gradient(180deg, rgba(8,24,44,0.98) 0%, rgba(15,33,56,0.99) 100%);
  border-bottom-color: rgba(232,194,117,0.25);
  box-shadow: 0 4px 24px rgba(0,0,0,0.32), 0 1px 0 rgba(232,194,117,0.08) inset;
}

.atlas-header--scrolled .atlas-header__logo-cri img {
  height: 64px;
  max-width: 320px;
  transition: height 280ms cubic-bezier(0.4, 0, 0.2, 1),
              max-width 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Transition douce sur le logo au repos */
.atlas-header__logo-cri img {
  transition: height 280ms cubic-bezier(0.4, 0, 0.2, 1),
              max-width 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.atlas-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--atlas-space-5);
}

.atlas-header__logos {
  display: flex;
  align-items: center;
  gap: var(--atlas-space-5);
}

.atlas-header__logo-ministere img {
  height: 56px;
  width: auto;
}

.atlas-header__separator {
  height: 36px;
  width: 1px;
  background: var(--atlas-border-strong);
}

.atlas-header__logo-cri img {
  height: 96px;
  width: auto;
  max-width: 480px;
  object-fit: contain;
}

.atlas-header__nav {
  display: flex;
  align-items: center;
  gap: var(--atlas-space-3);
}

/* ════════════════════════════════════════════════════════════════
   STEPPER — Parcours en etapes (nouveau look)
   ════════════════════════════════════════════════════════════════ */
.atlas-stepper {
  display: flex;
  gap: var(--atlas-space-3);
  max-width: 800px;
  margin: 0 auto var(--atlas-space-6);
}

.atlas-step {
  flex: 1;
  padding: var(--atlas-space-3) var(--atlas-space-4);
  background: var(--atlas-surface-1);
  border: 1px solid var(--atlas-border-soft);
  border-radius: var(--atlas-radius-md);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--atlas-text-muted);
  transition: all 0.3s;
}

.atlas-step--active {
  background: linear-gradient(135deg, rgba(232,194,117,0.12) 0%, rgba(212,169,60,0.16) 100%);
  border-color: var(--atlas-sand);
  color: var(--atlas-cream);
  box-shadow: 0 0 0 1px var(--atlas-sand), 0 4px 18px rgba(232,194,117,0.20);
}

.atlas-step--done {
  background: rgba(45,134,89,0.10);
  border-color: rgba(45,134,89,0.40);
  color: rgba(187,247,208,0.85);
}

/* ════════════════════════════════════════════════════════════════
   FORMULAIRES — Inputs cohérents
   ════════════════════════════════════════════════════════════════ */
.atlas-input,
.atlas-select,
.atlas-textarea {
  background: var(--atlas-surface-2);
  border: 1px solid var(--atlas-border-soft);
  color: var(--atlas-cream);
  border-radius: var(--atlas-radius-md);
  padding: 12px 16px;
  font-family: var(--atlas-font-body);
  font-size: 14px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.atlas-input::placeholder,
.atlas-textarea::placeholder {
  color: var(--atlas-text-faint);
}

.atlas-input:focus,
.atlas-select:focus,
.atlas-textarea:focus {
  outline: none;
  border-color: var(--atlas-sand);
  background: var(--atlas-surface-3);
  box-shadow: 0 0 0 3px rgba(232,194,117,0.15);
}

.atlas-label {
  font-family: var(--atlas-font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--atlas-text-soft);
  margin-bottom: var(--atlas-space-2);
  display: block;
}

/* ════════════════════════════════════════════════════════════════
   TITRES & TEXTES
   ════════════════════════════════════════════════════════════════ */
.atlas-title-display {
  font-family: var(--atlas-font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--atlas-cream);
}

.atlas-title-section {
  font-family: var(--atlas-font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--atlas-sand);
  margin-bottom: var(--atlas-space-4);
}

.atlas-text-lead {
  font-size: 1.05rem;
  color: var(--atlas-text-soft);
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════════
   SEPARATEURS DORES
   ════════════════════════════════════════════════════════════════ */
.atlas-hr-gold {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--atlas-sand2), transparent);
  margin: var(--atlas-space-6) 0;
}

/* ════════════════════════════════════════════════════════════════
   LANGUE SWITCHER — FR / AR / EN
   ════════════════════════════════════════════════════════════════ */
.atlas-lang-switch {
  display: inline-flex;
  background: var(--atlas-surface-1);
  border: 1px solid var(--atlas-border-soft);
  border-radius: var(--atlas-radius-md);
  padding: 2px;
  gap: 2px;
}

.atlas-lang-switch__btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--atlas-text-muted);
  border-radius: calc(var(--atlas-radius-md) - 4px);
  cursor: pointer;
  border: 0;
  background: transparent;
  transition: all 0.2s;
}

.atlas-lang-switch__btn--active {
  background: var(--atlas-sand2);
  color: var(--atlas-deep);
}

/* ════════════════════════════════════════════════════════════════
   RTL SUPPORT — Arabe (basculé via dir="rtl")
   ════════════════════════════════════════════════════════════════ */
[dir="rtl"] .atlas-body {
  font-family: var(--atlas-font-arabic);
}

[dir="rtl"] .atlas-hero__title {
  font-family: var(--atlas-font-arabic);
  font-weight: 700;
}

/* ════════════════════════════════════════════════════════════════
   ANIMATIONS — Subtiles, professionnelles
   ════════════════════════════════════════════════════════════════ */
@keyframes atlas-fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.atlas-animate-in {
  animation: atlas-fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.atlas-animate-in:nth-child(1) { animation-delay: 0.1s; }
.atlas-animate-in:nth-child(2) { animation-delay: 0.2s; }
.atlas-animate-in:nth-child(3) { animation-delay: 0.3s; }
.atlas-animate-in:nth-child(4) { animation-delay: 0.4s; }

/* Accessibilité : prefere reduce motion */
@media (prefers-reduced-motion: reduce) {
  .atlas-hero::before {
    animation: none;
  }
  .atlas-animate-in {
    animation: none;
  }
}

/* ════════════════════════════════════════════════════════════════
   FOOTER OFFICIEL
   ════════════════════════════════════════════════════════════════ */
.atlas-footer {
  background: var(--atlas-basalt);
  border-top: 1px solid var(--atlas-border);
  padding: var(--atlas-space-7) var(--atlas-space-5);
  text-align: center;
}

.atlas-footer__copyright {
  font-size: 12px;
  color: var(--atlas-text-muted);
  margin-top: var(--atlas-space-3);
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .atlas-header__inner {
    flex-direction: column;
    gap: var(--atlas-space-3);
  }
  .atlas-header__logos {
    flex-direction: column;
    gap: var(--atlas-space-3);
  }
  .atlas-header__separator {
    width: 80px;
    height: 1px;
  }
  .atlas-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ════════════════════════════════════════════════════════════ */
/* Pills de navigation — sub-nav admin, mon espace, etc.        */
/* Session 8 Phase 1A - Uniformisation header global            */
/* ════════════════════════════════════════════════════════════ */
.atlas-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--atlas-font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--atlas-text-soft);
  border: 1px solid transparent;
  transition: all 200ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.atlas-nav-pill:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(232, 194, 117, 0.25);
  color: var(--atlas-cream);
}
.atlas-nav-pill--active {
  background: linear-gradient(135deg, rgba(232,194,117,0.18) 0%, rgba(212,169,60,0.22) 100%);
  border-color: var(--atlas-sand);
  color: var(--atlas-cream);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(232, 194, 117, 0.20);
}
/* Compactage Apple : pills plus petites au scroll */
.atlas-header--scrolled .atlas-nav-pill {
  padding: 6px 12px;
  font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════════ */
/* COCKPIT ADMIN - Badges Atlas (Session 9 - Phase 2B)              */
/* ═══════════════════════════════════════════════════════════════ */

.atlas-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid;
  background: transparent;
  white-space: nowrap;
}

/* Variantes outline (border + text seulement) */
.atlas-badge-or {
  border-color: rgba(232, 194, 117, 0.45);
  color: var(--atlas-sand, #E8C275);
}
.atlas-badge-vert {
  border-color: rgba(45, 134, 89, 0.50);
  color: rgba(110, 200, 145, 1);
}
.atlas-badge-bleu {
  border-color: rgba(96, 165, 250, 0.45);
  color: rgba(147, 197, 253, 1);
}
.atlas-badge-gris {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(230, 234, 240, 0.70);
}
.atlas-badge-rouge {
  border-color: rgba(239, 68, 68, 0.50);
  color: rgba(252, 165, 165, 1);
}
.atlas-badge-ocre {
  border-color: rgba(184, 118, 62, 0.50);
  color: rgba(220, 160, 100, 1);
}

/* Variantes solid (fond translucide + border + text) */
.atlas-badge-or-solid {
  background: rgba(232, 194, 117, 0.12);
  border-color: rgba(232, 194, 117, 0.35);
  color: var(--atlas-sand, #E8C275);
}
.atlas-badge-vert-solid {
  background: rgba(45, 134, 89, 0.15);
  border-color: rgba(45, 134, 89, 0.40);
  color: rgba(110, 200, 145, 1);
}
.atlas-badge-bleu-solid {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.35);
  color: rgba(147, 197, 253, 1);
}
.atlas-badge-gris-solid {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(230, 234, 240, 0.70);
}
.atlas-badge-rouge-solid {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.40);
  color: rgba(252, 165, 165, 1);
}
.atlas-badge-ocre-solid {
  background: rgba(184, 118, 62, 0.15);
  border-color: rgba(184, 118, 62, 0.40);
  color: rgba(220, 160, 100, 1);
}

/* ═══════════════════════════════════════════════════════════════ */
/* COCKPIT ADMIN - Badges Atlas (Session 9 - Phase 2B)              */
/* ═══════════════════════════════════════════════════════════════ */

.atlas-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid;
  background: transparent;
  white-space: nowrap;
}

/* Variantes outline (border + text seulement) */
.atlas-badge-or {
  border-color: rgba(232, 194, 117, 0.45);
  color: var(--atlas-sand, #E8C275);
}
.atlas-badge-vert {
  border-color: rgba(45, 134, 89, 0.50);
  color: rgba(110, 200, 145, 1);
}
.atlas-badge-bleu {
  border-color: rgba(96, 165, 250, 0.45);
  color: rgba(147, 197, 253, 1);
}
.atlas-badge-gris {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(230, 234, 240, 0.70);
}
.atlas-badge-rouge {
  border-color: rgba(239, 68, 68, 0.50);
  color: rgba(252, 165, 165, 1);
}
.atlas-badge-ocre {
  border-color: rgba(184, 118, 62, 0.50);
  color: rgba(220, 160, 100, 1);
}

/* Variantes solid (fond translucide + border + text) */
.atlas-badge-or-solid {
  background: rgba(232, 194, 117, 0.12);
  border-color: rgba(232, 194, 117, 0.35);
  color: var(--atlas-sand, #E8C275);
}
.atlas-badge-vert-solid {
  background: rgba(45, 134, 89, 0.15);
  border-color: rgba(45, 134, 89, 0.40);
  color: rgba(110, 200, 145, 1);
}
.atlas-badge-bleu-solid {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.35);
  color: rgba(147, 197, 253, 1);
}
.atlas-badge-gris-solid {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(230, 234, 240, 0.70);
}
.atlas-badge-rouge-solid {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.40);
  color: rgba(252, 165, 165, 1);
}
.atlas-badge-ocre-solid {
  background: rgba(184, 118, 62, 0.15);
  border-color: rgba(184, 118, 62, 0.40);
  color: rgba(220, 160, 100, 1);
}
