/* ============================================================
   PLATEFORME RFE — CHARTE GRAPHIQUE GROUPE TRIAL
   Palette bleu Trial / anthracite — Montserrat & Open Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Couleurs primaires (charte Trial) */
  --trial-blue: #3A7EC6;
  --trial-blue-deep: #2B6CB0;
  --trial-blue-light: #E8F2FB;
  --trial-anthracite: #3D4A5C;
  --trial-grey: #9AA5B4;
  --trial-cream: #F1EFE8;

  /* Couleurs fonctionnelles (charte Trial) */
  --trial-success-bg: #EAF3DE;
  --trial-warning-bg: #FAEEDA;
  --trial-error-bg: #FCEBEB;
  --trial-info-bg: #E8F2FB;
  --trial-success: #5A8A2A;
  --trial-warning: #B47A1A;
  --trial-error: #C0392B;

  /* Couleurs des packs */
  --pack-standard: #5BAE6E;
  --pack-pro: #7EC8E3;
  --pack-business: #F4D35E;
  --pack-all: #2F5D8A;

  /* Tokens d'arrière-plan / surfaces */
  --bg-deep: #F1EFE8;
  --bg-surface: #ffffff;
  --bg-card: rgba(255,255,255,0.95);
  --bg-glass: #ffffff;
  --bg-glass-hover: #ffffff;
  --border-glass: rgba(61, 74, 92, 0.10);
  --border-glass-hover: rgba(58, 126, 198, 0.35);

  /* Typographie */
  --text-primary: #3D4A5C;
  --text-secondary: #5F5E5A;
  --text-muted: #9AA5B4;

  /* Aliases conservés (pointent désormais vers la palette Trial) */
  --neon-cyan: #3A7EC6;
  --neon-violet: #2B6CB0;
  --neon-pink: #2B6CB0;
  --neon-lime: #5A8A2A;
  --neon-amber: #B47A1A;
  --neon-red: #C0392B;

  --gradient-main: linear-gradient(135deg, #3A7EC6, #2B6CB0);
  --gradient-warm: linear-gradient(135deg, #B47A1A, #C0392B);
  --gradient-cool: linear-gradient(135deg, #3A7EC6, #2B6CB0);

  /* Ombres : sobres, peu marquées */
  --shadow-sm: 0 1px 2px rgba(61,74,92,0.06);
  --shadow-md: 0 2px 6px rgba(61,74,92,0.08);
  --shadow-lg: 0 8px 24px rgba(61,74,92,0.10);
  --shadow-xl: 0 16px 40px rgba(61,74,92,0.12);

  /* Border-radius (charte : 6px composants, 10px cartes) */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;

  /* Polices */
  --font-display: 'Montserrat', 'Arial', sans-serif;
  --font-body: 'Open Sans', 'Arial', sans-serif;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: #2B6CB0;
  color: #ffffff;
}

/* ============================================================
   ANIMATED BACKGROUND — soft gradient blobs
   ============================================================ */

.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.mesh-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.08;
  animation: orbFloat 24s ease-in-out infinite;
}

.mesh-bg .orb-1 {
  width: 620px; height: 620px;
  background: #3A7EC6;
  top: -18%; left: -12%;
  animation-delay: 0s;
}

.mesh-bg .orb-2 {
  width: 520px; height: 520px;
  background: #2B6CB0;
  bottom: -22%; right: -12%;
  animation-delay: -8s;
  animation-duration: 28s;
  opacity: 0.06;
}

.mesh-bg .orb-3 {
  width: 420px; height: 420px;
  background: #3A7EC6;
  top: 45%; left: 55%;
  animation-delay: -14s;
  animation-duration: 32s;
  opacity: 0.04;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -40px) scale(1.1); }
  50% { transform: translate(-30px, 60px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.05); }
}

/* ============================================================
   NAVBAR
   ============================================================ */

/* En-tête anthracite plein largeur — modèle "Document interne" charte Trial */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 76px;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--trial-anthracite);
  border-bottom: 2px solid var(--trial-blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  gap: 24px;
  flex-wrap: wrap;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
  text-decoration: none;
}

.navbar-brand .brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.navbar-brand .brand-context {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--trial-grey);
  padding-left: 16px;
  border-left: 1px solid rgba(154, 165, 180, 0.30);
  line-height: 1.35;
  max-width: 240px;
}

.navbar-brand .brand-context strong {
  display: block;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 2px;
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-user-name {
  font-family: var(--font-body);
  font-size: 13px;
  color: #E5E9EF;
  font-weight: 600;
}

/* Boutons "ghost" sur fond anthracite : variante adaptée */
.navbar .btn-ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.25);
}

.navbar .btn-ghost:hover:not(:disabled) {
  background: rgba(255,255,255,0.08);
  border-color: var(--trial-blue);
}

.navbar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--trial-blue);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.page-wrapper {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

.container-wide {
  max-width: 1340px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ============================================================
   HERO — CLIENT
   ============================================================ */

.hero {
  position: relative;
  padding: 56px 40px;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-main);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(58, 126, 198, 0.08);
  color: #3A7EC6;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(58, 126, 198, 0.15);
}

.hero-tag .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3A7EC6;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.hero h1 .gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ============================================================
   TIMELINE
   ============================================================ */

.timeline-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}

.timeline-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.timeline-section h2 .section-line {
  flex: 1;
  height: 1px;
  background: var(--border-glass);
}

.timeline {
  display: flex;
  gap: 8px;
  position: relative;
  padding: 0 8px;
}

.timeline-track {
  position: absolute;
  top: 22px;
  left: 32px;
  right: 32px;
  height: 3px;
  background: #e5e7eb;
  border-radius: 2px;
}

.timeline-track-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--gradient-main);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.timeline-track-fill::after {
  content: '';
  position: absolute;
  right: -3px;
  top: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3A7EC6;
  box-shadow: 0 0 0 4px rgba(58, 126, 198, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.step-node {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--trial-cream);
  border: 2px solid var(--border-glass);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
  margin-bottom: 12px;
}

.step-node.completed {
  background: rgba(58, 126, 198, 0.1);
  border-color: #3A7EC6;
  color: #3A7EC6;
  box-shadow: 0 0 0 4px rgba(58, 126, 198, 0.08);
}

.step-node.active {
  background: var(--gradient-main);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(58, 126, 198, 0.3);
  animation: stepGlow 2s ease-in-out infinite;
}

@keyframes stepGlow {
  0%, 100% { box-shadow: 0 4px 16px rgba(58, 126, 198, 0.2); }
  50% { box-shadow: 0 4px 24px rgba(58, 126, 198, 0.35); }
}

.step-info {
  text-align: center;
}

.step-info .step-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  line-height: 1.3;
}

.step-node.completed + .step-info .step-title,
.step-node.active + .step-info .step-title {
  color: var(--text-primary);
}

.step-info .step-desc {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 4px;
  max-width: 120px;
}

/* ============================================================
   GLASS CARDS
   ============================================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.glass-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-glass);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.glass-card-body {
  padding: 24px;
}

/* ============================================================
   PACK CARDS
   ============================================================ */

.pack-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.pack-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--pack-accent, var(--gradient-main));
  opacity: 0.7;
  transition: opacity var(--transition);
}

.pack-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.pack-card:hover::before {
  opacity: 1;
}

.pack-card.selected {
  border-color: #3A7EC6;
  box-shadow: 0 0 0 3px rgba(58, 126, 198, 0.12), var(--shadow-lg);
}

.pack-card.selected::after {
  content: '';
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  background: #3A7EC6;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.pack-card .check-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  background: #3A7EC6;
  border-radius: 8px;
  display: none;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
}

.pack-card.selected .check-badge {
  display: grid;
}

.pack-top {
  padding: 32px 28px 24px;
  position: relative;
}

.pack-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pack-tagline {
  font-size: 13px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
  font-weight: 500;
}

.pack-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pack-divider {
  height: 1px;
  background: var(--border-glass);
  margin: 0 28px;
}

.pack-features {
  padding: 24px 28px;
  list-style: none;
}

.pack-features li {
  padding: 7px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pack-features li .feat-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(90, 138, 42, 0.1);
  color: var(--neon-lime);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.pack-features li.pack-section-header {
  padding: 10px 0 4px;
  border-top: 1px solid var(--border-glass);
  margin-top: 6px;
}

.pack-features li.pack-section-header:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.pack-features li.pack-price-row {
  justify-content: flex-start;
}

.pack-features li.pack-price-row span:nth-of-type(2) {
  flex: 1;
}

.pack-features li.pack-price-row strong {
  color: var(--text-primary);
  font-weight: 700;
  margin-left: auto;
}

.pack-features li .feat-euro {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.12);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.pack-action {
  padding: 0 28px 28px;
}

/* ============================================================
   BOUTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-glow {
  background: var(--gradient-main);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(58, 126, 198, 0.25);
}

.btn-glow:hover:not(:disabled) {
  box-shadow: 0 4px 20px rgba(58, 126, 198, 0.35);
  transform: translateY(-2px);
}

.btn-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2));
  transition: opacity var(--transition);
  opacity: 0;
  pointer-events: none;
}

.btn-glow:hover::after { opacity: 1; }

.btn-ghost {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-ghost:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: var(--border-glass-hover);
}

.btn-cyan {
  background: rgba(58, 126, 198, 0.08);
  color: var(--neon-cyan);
  border: 1px solid rgba(58, 126, 198, 0.2);
}

.btn-cyan:hover:not(:disabled) {
  background: rgba(58, 126, 198, 0.15);
  box-shadow: 0 2px 8px rgba(58, 126, 198, 0.15);
}

.btn-danger {
  background: rgba(192, 57, 43, 0.08);
  color: var(--neon-red);
  border: 1px solid rgba(192, 57, 43, 0.2);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(192, 57, 43, 0.15);
}

.btn-success {
  background: rgba(90, 138, 42, 0.08);
  color: var(--neon-lime);
  border: 1px solid rgba(90, 138, 42, 0.2);
}

.btn-success:hover:not(:disabled) {
  background: rgba(90, 138, 42, 0.15);
}

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ============================================================
   FORMULAIRES
   ============================================================ */

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.form-control {
  width: 100%;
  padding: 11px 16px;
  background: #f9fafb;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  outline: none;
  border-color: #3A7EC6;
  box-shadow: 0 0 0 3px rgba(58, 126, 198, 0.1);
  background: #ffffff;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238888a4' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

select.form-control option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

/* ============================================================
   TABLEAU
   ============================================================ */

.table-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 14px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-glass);
  background: #f9fafb;
}

td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: 14px;
  color: var(--text-secondary);
}

tr {
  transition: background var(--transition);
}

tr:hover {
  background: #f9fafb;
}

/* ============================================================
   BADGES
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-cyan {
  background: var(--trial-info-bg);
  color: var(--trial-blue-deep);
  border: 1px solid rgba(58, 126, 198, 0.20);
}

.badge-violet {
  background: var(--trial-info-bg);
  color: var(--trial-blue-deep);
  border: 1px solid rgba(58, 126, 198, 0.20);
}

.badge-lime {
  background: var(--trial-success-bg);
  color: var(--trial-success);
  border: 1px solid rgba(90, 138, 42, 0.20);
}

.badge-amber {
  background: var(--trial-warning-bg);
  color: var(--trial-warning);
  border: 1px solid rgba(180, 122, 26, 0.20);
}

.badge-red {
  background: var(--trial-error-bg);
  color: var(--trial-error);
  border: 1px solid rgba(192, 57, 43, 0.20);
}

.badge-muted {
  background: var(--trial-cream);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
}

.badge-pink {
  background: var(--trial-info-bg);
  color: var(--trial-blue);
  border: 1px solid rgba(58, 126, 198, 0.20);
}

.badge-pack-standard {
  background: rgba(91, 174, 110, 0.14);
  color: #2F7A3E;
  border: 1px solid rgba(91, 174, 110, 0.35);
}

.badge-pack-pro {
  background: rgba(126, 200, 227, 0.20);
  color: #1F6F8B;
  border: 1px solid rgba(126, 200, 227, 0.45);
}

.badge-pack-business {
  background: rgba(244, 211, 94, 0.22);
  color: #8A6A14;
  border: 1px solid rgba(244, 211, 94, 0.50);
}

.badge-pack-all {
  background: rgba(47, 93, 138, 0.12);
  color: #2F5D8A;
  border: 1px solid rgba(47, 93, 138, 0.30);
}

/* ============================================================
   MODAL
   ============================================================ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  width: 92%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalSlide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlide {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
  padding: 24px 28px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-glass);
  background: #f3f4f6;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close:hover {
  background: #e5e7eb;
  color: var(--text-primary);
}

.modal-body { padding: 24px 28px; }
.modal-footer {
  padding: 16px 28px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ============================================================
   TOAST
   ============================================================ */

.toast-container {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 420px;
  animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.success { border-left: 3px solid var(--neon-lime); }
.toast.error { border-left: 3px solid var(--neon-red); }
.toast.warning { border-left: 3px solid var(--neon-amber); }

@keyframes toastIn {
  from { transform: translateX(100%) scale(0.9); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-message { font-size: 14px; color: var(--text-secondary); }

/* ============================================================
   WEBINAIRE CARD
   ============================================================ */

.webinaire-card {
  background: #f9fafb;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
}

.webinaire-content {
  flex: 1;
  min-width: 0;
}

.webinaire-action-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

@media (max-width: 600px) {
  .webinaire-card { flex-direction: column; align-items: stretch; gap: 14px; }
  .webinaire-action-wrap { width: 100%; }
  .webinaire-action { width: 100%; justify-content: center; }
}

.webinaire-card:hover {
  border-color: var(--border-glass-hover);
  background: #f3f4f6;
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.webinaire-card.inscrit {
  border-color: rgba(90, 138, 42, 0.3);
  background: rgba(90, 138, 42, 0.04);
}

.webinaire-date {
  font-size: 12px;
  color: #3A7EC6;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.webinaire-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 2px 0 8px;
  font-style: italic;
}

.webinaire-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.webinaire-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.webinaire-action {
  font-size: 13px;
  padding: 10px 20px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.webinaire-action span {
  font-size: 14px;
  line-height: 1;
}

/* ============================================================
   CARTE OPTIONS (4ème carte du grid packs)
   ============================================================ */

.pack-features.pack-options-list li.pack-option-item {
  display: block;
  padding: 10px 12px;
  margin: 0 -12px 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.pack-features.pack-options-list li.pack-option-item:last-child {
  margin-bottom: 0;
}

.pack-features.pack-options-list li.pack-option-item:hover {
  background: rgba(180, 122, 26, 0.05);
}

.pack-features.pack-options-list li.pack-option-item.selected {
  background: rgba(180, 122, 26, 0.08);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.contact-section h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.contact-section .sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.support-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f9fafb;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 16px;
}

.support-pill strong {
  color: #3A7EC6;
}

/* ============================================================
   STATS (ADMIN)
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--stat-accent, var(--gradient-main));
  opacity: 0.6;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   TABS (ADMIN)
   ============================================================ */

.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  padding: 5px;
  border-radius: var(--radius);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.tab {
  padding: 11px 24px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  flex: 1;
  text-align: center;
}

.tab.active {
  background: rgba(58, 126, 198, 0.08);
  color: #3A7EC6;
}

.tab:hover:not(.active) {
  color: var(--text-secondary);
  background: #f3f4f6;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================================
   ALERT PA
   ============================================================ */

.alert-pa {
  background: rgba(90, 138, 42, 0.06);
  border: 1px solid rgba(90, 138, 42, 0.2);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.alert-pa .alert-icon {
  width: 48px;
  height: 48px;
  background: rgba(90, 138, 42, 0.14);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}

.alert-pa h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--trial-success);
  margin-bottom: 4px;
}

.alert-pa p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================================
   SECTION TITLE
   ============================================================ */

.section-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.section-title .accent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3A7EC6;
}

/* ============================================================
   LOGIN
   ============================================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.login-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 48px 40px;
  width: 420px;
  max-width: 92%;
  position: relative;
  z-index: 1;
}

.login-card h1 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.login-card .login-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 14px;
}

/* ============================================================
   INSCRITS WEBINAIRE (ADMIN)
   ============================================================ */

.inscrits-list {
  margin-top: 8px;
  padding: 0;
  list-style: none;
}

.inscrits-list li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  margin: 2px 4px 2px 0;
  background: rgba(58, 126, 198, 0.06);
  border: 1px solid rgba(58, 126, 198, 0.12);
  border-radius: 100px;
  font-size: 12px;
  color: #3A7EC6;
  font-weight: 500;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .navbar { padding: 0 16px; height: 60px; }
  .container, .container-wide { padding: 20px 16px; }
  .hero { padding: 36px 24px; }
  .hero h1 { font-size: 24px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { flex-wrap: wrap; gap: 12px; }
  .timeline-track { display: none; }
  .timeline-step { flex: 0 0 calc(33.33% - 8px); }
  .step-node { width: 36px; height: 36px; font-size: 14px; border-radius: 10px; }
  .step-info .step-title { font-size: 11px; }
  .login-card { padding: 36px 24px; }
}

/* ============================================================
   UTILITIES
   ============================================================ */

.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll-triggered fade */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
