/* ==========================================================
   TCF CANADA - EXPRESSION ÉCRITE DESIGN SYSTEM
   Inspiré de l'ergonomie officielle et enrichi pour une expérience premium
   ========================================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;

  --secondary: #475569;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;

  --border-color: #e2e8f0;
  --border-focus: #3b82f6;

  --accent-orange: #ea580c;
  --accent-orange-hover: #c2410c;
  --accent-green: #16a34a;
  --accent-yellow: #ca8a04;
  --accent-red: #dc2626;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s ease;
}

input,
textarea,
select {
  font-family: inherit;
}

/* Layout App Container */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================
   HEADER / BARRE SUPÉRIEURE
   ========================================================== */
.top-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 1 420px;
}

.btn-back-home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.1s;
}

.btn-back-home:hover {
  background: var(--border-color);
  transform: translateX(-2px);
}

.exam-info-header {
  min-width: 0;
  overflow: hidden;
}

.exam-info-header h1 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.exam-info-header .exam-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary-hover);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.08);
}

.timer-pill.warning {
  background: #fff7ed;
  border-color: #ffedd5;
  color: #ea580c;
  animation: pulse-timer 1.5s infinite;
}

.timer-pill.danger {
  background: #fef2f2;
  border-color: #fee2e2;
  color: #dc2626;
  animation: pulse-danger 1s infinite;
}

@keyframes pulse-timer {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.85;
    transform: scale(1.02);
  }
}

@keyframes pulse-danger {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-link-btn {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link-btn:hover,
.nav-link-btn.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* ==========================================================
   SIMULATEUR - 3 COLONNES
   ========================================================== */
.simulator-layout {
  display: grid;
  grid-template-columns: 290px 1fr 270px;
  gap: 20px;
  padding: 20px 24px;
  flex: 1;
  max-width: 1700px;
  margin: 0 auto;
  width: 100%;
}

/* VOLET GAUCHE - NAVIGATION */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 4px 8px;
}

.tasks-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-nav-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.task-nav-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.task-nav-card.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.4);
}

.task-nav-card .nav-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.task-nav-card .nav-card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.task-nav-card.active .nav-card-sub {
  color: rgba(255, 255, 255, 0.85);
}

.nav-card-progress {
  height: 5px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.task-nav-card.active .nav-card-progress {
  background: rgba(255, 255, 255, 0.3);
}

.nav-card-progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.task-nav-card.active .nav-card-progress-bar {
  background: #ffffff;
}

.nav-warning-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 0.82rem;
  color: #92400e;
  line-height: 1.45;
  display: flex;
  gap: 10px;
}

.nav-info-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ZONE CENTRALE - ÉDITEUR */
.workspace-center {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  min-height: calc(100vh - 120px);
}

.task-header-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.task-header-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.task-badge-number {
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
}

.task-title-group h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.task-title-group .task-word-rec {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn-toggle-prompt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-toggle-prompt:hover {
  background: var(--border-color);
  color: var(--text-main);
}

.task-objective-text {
  font-size: 0.95rem;
  color: var(--secondary);
  line-height: 1.5;
}

.task-stimulus-box {
  background: #f0f7ff;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 1rem;
  color: #1e3a8a;
  line-height: 1.6;
  white-space: pre-line;
  position: relative;
}

.editor-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.editor-wrapper:focus-within {
  border-color: var(--primary-hover);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.tcf-textarea {
  width: 100%;
  flex: 1;
  min-height: 260px;
  border: none;
  outline: none;
  padding: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-main);
  resize: vertical;
  background: transparent;
}

.tcf-textarea::placeholder {
  color: var(--text-light);
  font-style: italic;
}

.editor-footer-bar {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.word-count-widget {
  display: flex;
  align-items: center;
  gap: 12px;
}

.word-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  background: #fef3c7;
  color: #92400e;
  transition: all 0.2s;
}

.word-count-pill.good {
  background: #dcfce7;
  color: #15803d;
}

.word-count-pill.over {
  background: #fee2e2;
  color: #b91c1c;
}

.word-count-target {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.word-gauge-bar {
  width: 100px;
  height: 6px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.word-gauge-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: var(--radius-full);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.word-gauge-fill.good {
  background: #16a34a;
}

.word-gauge-fill.over {
  background: #dc2626;
}

.editor-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-nav-step {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--bg-subtle);
  color: var(--text-main);
}

.btn-nav-step:hover:not(:disabled) {
  background: var(--border-color);
}

.btn-nav-step.primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-nav-step.primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-nav-step:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* VOLET DROIT - OUTILS & VALIDATION */
.sidebar-tools {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tools-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.tools-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.char-btn {
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.char-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
  transform: scale(1.05);
}

.char-btn:active {
  transform: scale(0.95);
}

.progression-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prog-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prog-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.prog-label-row .prog-count {
  font-weight: 600;
  color: var(--text-main);
}

.prog-label-row .prog-count.good {
  color: #16a34a;
}

.prog-label-row .prog-count.over {
  color: #dc2626;
  font-weight: 700;
}

.prog-meter-track {
  height: 6px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.prog-meter-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: var(--radius-full);
  transition: width 0.3s, background-color 0.3s;
}

.prog-meter-fill.completed {
  background: var(--accent-green);
}

.prog-meter-fill.over {
  background: #dc2626;
}

.nav-card-progress-bar.good {
  background: var(--accent-green) !important;
}

.nav-card-progress-bar.over {
  background: #dc2626 !important;
}

.btn-submit-exam {
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  border-radius: var(--radius-lg);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 16px -2px rgba(234, 88, 12, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-submit-exam:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -3px rgba(234, 88, 12, 0.45);
}

.btn-submit-exam:active {
  transform: translateY(0);
}

/* ==========================================================
   VUE ACCUEIL / COMBINAISONS
   ========================================================== */
.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.home-hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.home-hero h1 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.home-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.combinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.comb-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.comb-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-lg);
}

.comb-card-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comb-category {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
}

.comb-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}

.comb-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.comb-tasks-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-subtle);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
}

.comb-task-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  line-height: 1.35;
  white-space: nowrap;
}

.comb-task-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--text-main);
  font-weight: 600;
}

.comb-task-desc {
  white-space: nowrap;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.comb-task-words {
  white-space: nowrap;
}

.btn-start-comb {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-start-comb:hover {
  background: var(--primary-hover);
}

.btn-hero-action {
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  color: #ffffff;
}

.btn-hero-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.06);
}

/* ==========================================================
   VUE CORRECTION & RAPPORT IA
   ========================================================== */
.report-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.report-hero-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.report-hero-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-hero-left h1 {
  font-size: 1.8rem;
  font-weight: 800;
}

.report-hero-left p {
  color: #94a3b8;
  font-size: 1rem;
}

.report-score-box {
  display: flex;
  align-items: center;
  gap: 24px;
}

.score-badge-circle {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.score-badge-circle .score-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.score-badge-circle .score-denom {
  font-size: 0.8rem;
  opacity: 0.8;
}

.cefr-badge-large {
  padding: 10px 22px;
  border-radius: var(--radius-lg);
  font-size: 2.2rem;
  font-weight: 900;
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.task-report-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.task-report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}

.task-report-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.crit-card {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crit-card .crit-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.crit-card .crit-score {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.text-review-pane {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.text-review-pane.ideal {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.text-review-pane h3 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.text-review-content {
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-line;
  color: var(--text-main);
}

.errors-list-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.error-item-card {
  background: #ffffff;
  border: 1px solid #fee2e2;
  border-left: 4px solid #ef4444;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.error-item-card.minor {
  border-color: #fef3c7;
  border-left-color: #f59e0b;
}

.error-orig-corr {
  font-size: 0.9rem;
  font-weight: 600;
}

.error-orig {
  color: #dc2626;
  text-decoration: line-through;
  margin-right: 8px;
}

.error-corr {
  color: #16a34a;
}

.error-desc {
  font-size: 0.85rem;
  color: var(--secondary);
}

/* ==========================================================
   VUE HISTORIQUE & STATISTIQUES
   ========================================================== */
.history-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.history-table th,
.history-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.history-table th {
  background: var(--bg-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.history-table tr:hover td {
  background: var(--primary-light);
}

/* Modales */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: calc(100vh - 32px);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  margin: auto;
  overflow: hidden;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input,
.form-select {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
  outline: none;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ==========================================================
   VUE RÉVISION, COURS & QUIZ INTERACTIFS
   ========================================================== */
.revision-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.revision-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
}

.revision-nav-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.rev-tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rev-tab-btn:hover {
  border-color: var(--primary-border);
  color: var(--primary);
}

.rev-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-refresh-quiz {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1.5px solid #bfdbfe;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-refresh-quiz:hover {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
  transform: translateY(-2px);
}

.refresh-icon {
  display: inline-block;
  transition: transform 0.4s ease;
}

.btn-refresh-quiz:hover .refresh-icon {
  transform: rotate(180deg);
}

.btn-refresh-icon-mini {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 5px 9px;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.btn-refresh-icon-mini:hover {
  background: var(--primary-light);
  border-color: var(--primary-border);
  transform: rotate(180deg);
}

.btn-refresh-secondary {
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-refresh-secondary:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
}

.quiz-theme-badge {
  background: #ede9fe;
  color: #6d28d9;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.quiz-toast-banner {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
  animation: fadeInSlide 0.3s ease-out;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.lesson-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.lesson-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
}

.lesson-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  align-self: flex-start;
}

.lesson-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.lesson-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-read-lesson {
  padding: 10px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.btn-read-lesson:hover {
  background: var(--primary-light);
  border-color: var(--primary-border);
}

/* Quiz Styles */
.quiz-wrapper {
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quiz-question-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-opt-btn {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 2px solid var(--border-color);
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.quiz-opt-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary-light);
}

.quiz-opt-btn.correct {
  background: #dcfce7 !important;
  border-color: #22c55e !important;
  color: #15803d !important;
  font-weight: 700;
}

.quiz-opt-btn.incorrect {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #b91c1c !important;
}

.quiz-explanation-box {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #166534;
}

.quiz-explanation-box.wrong {
  background: #fef2f2;
  border-left-color: #ef4444;
  color: #991b1b;
}

/* Modale de cours & rendu pédagogique */
.lesson-modal-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-main);
}

.lesson-h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 20px;
  margin-bottom: 8px;
}

.lesson-h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 18px;
  margin-bottom: 8px;
}

.lesson-h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 14px;
  margin-bottom: 6px;
}

.lesson-quote {
  margin: 12px 0;
  padding: 12px 18px;
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  font-style: italic;
  color: #334155;
}

.lesson-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 18px 0;
}

.lesson-code-block {
  background: #0f172a;
  color: #f8fafc;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-family: monospace;
  font-size: 0.9rem;
  margin: 12px 0;
  overflow-x: auto;
}

.lesson-inline-code {
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.88rem;
  border: 1px solid #e2e8f0;
}

.lesson-li {
  margin-left: 20px;
  margin-bottom: 6px;
  list-style-type: disc;
}

.lesson-table-wrapper {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.lesson-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--bg-card);
}

.lesson-table th,
.lesson-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.lesson-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-main);
}

.lesson-table tr:last-child td {
  border-bottom: none;
}

/* Bannière d'introduction au Grand Manuel de Grammaire */
.grammar-intro-banner {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.grammar-card {
  border-left: 4px solid #3b82f6;
}

.grammar-badge {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 800;
}

/* Section Mini-Exercices dans la modale */
.mini-exercises-section {
  margin-top: 24px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mini-exercises-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-exercises-tag {
  font-size: 0.8rem;
  background: #e0e7ff;
  color: #4338ca;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.exercise-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.exercise-question-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.5;
}

.exercise-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.exercise-opt-btn {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.exercise-opt-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary-light);
}

.exercise-opt-btn.correct {
  background: #dcfce7 !important;
  border-color: #22c55e !important;
  color: #15803d !important;
  font-weight: 700;
}

.exercise-opt-btn.incorrect {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #b91c1c !important;
}

.exercise-feedback-box {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
  animation: fadeInSlide 0.25s ease-out;
}

.exercise-feedback-box.correct {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  color: #166534;
}

.exercise-feedback-box.wrong {
  background: #fef2f2;
  border-left-color: #ef4444;
  color: #991b1b;
}

/* Section Atelier d'Écriture de Phrase dans la modale */
.writing-lab-box {
  margin-top: 20px;
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.writing-lab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0f2fe;
  padding-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.writing-lab-badge {
  font-size: 0.8rem;
  background: #0284c7;
  color: #ffffff;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.writing-lab-instruction {
  font-size: 0.95rem;
  color: #0369a1;
  background: #ffffff;
  border: 1px solid #e0f2fe;
  border-left: 4px solid #0284c7;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.writing-lab-accent-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.accent-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.accent-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.writing-textarea-wrapper {
  position: relative;
}

.writing-lab-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  padding-bottom: 28px;
  border-radius: var(--radius-md);
  border: 1.5px solid #cbd5e1;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background: #ffffff;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.writing-lab-textarea:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.writing-lab-counter {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  pointer-events: none;
}

.btn-evaluate-sentence {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: all 0.2s ease;
}

.btn-evaluate-sentence:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.sentence-eval-report {
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeInSlide 0.3s ease-out;
}

.sentence-eval-report.valid {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #166534;
}

.sentence-eval-report.has-errors {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  color: #991b1b;
}

.eval-success-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  color: #15803d;
}

.eval-error-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: #b91c1c;
}

.model-sentence-box {
  margin-top: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.92rem;
}

/* ==========================================================
   CLASSES UTILITAIRES RESPONSIVES
   ========================================================== */
.home-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.search-row-container {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.filter-pills-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.search-theme-input {
  max-width: 380px;
  flex: 1 1 260px;
}

.history-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================
   SYSTÈME RESPONSIVE MODERNE & MOBILE-FIRST (BREAKPOINTS)
   ========================================================== */

/* Sécurité anti-débordement global */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

#app {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* 1. Écrans Larges & Laptops Moyens (<= 1200px) */
@media (max-width: 1200px) {
  .simulator-layout {
    grid-template-columns: 260px 1fr 240px;
    gap: 16px;
    padding: 16px;
  }

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

/* 2. Tablettes & Petits Ordinateurs (<= 1024px) */
@media (max-width: 1024px) {
  .simulator-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px 14px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Transformation de la colonne gauche en barre horizontale d'onglets de tâches */
  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .sidebar-nav .sidebar-title {
    display: none;
  }

  .tasks-nav-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
  }

  .task-nav-card {
    padding: 10px 12px;
    min-width: 0;
  }

  .task-nav-card .nav-card-title {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  .task-nav-card .nav-card-sub {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
  }

  .nav-warning-box,
  .nav-info-note {
    display: none;
  }

  /* Outils sous l'éditeur */
  .sidebar-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    align-items: start;
  }

  .sidebar-tools .btn-submit-exam {
    grid-column: 1 / -1;
    order: 3;
    padding: 14px;
    font-size: 1.05rem;
  }

  .char-grid {
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  }
}

/* 3. Tablettes Portrait & Grands Téléphones (<= 768px) */
@media (max-width: 768px) {

  /* En-tête / Header */
  .top-header {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 56px !important;
    gap: 10px;
    padding: 10px 14px;
    width: 100%;
    box-sizing: border-box;
  }

  .main-nav-tabs {
    display: none !important;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .btn-back-home {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .exam-info-header {
    flex: 1;
    min-width: 0;
  }

  .exam-info-header h1 {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .exam-info-header .exam-subtitle {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-center {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .header-right {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    box-sizing: border-box;
  }

  .nav-link-btn {
    padding: 6px 2px;
    font-size: 0.72rem;
    justify-content: center;
    text-align: center;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-link-btn span {
    font-size: 0.72rem;
  }

  .timer-pill {
    width: 100%;
    justify-content: center;
    font-size: 1.05rem;
    padding: 6px 14px;
  }

  /* Accueil */
  .home-container {
    padding: 20px 12px;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .home-hero {
    width: 100%;
    padding: 0 4px;
  }

  .home-hero h1 {
    font-size: clamp(1.25rem, 5vw, 1.7rem);
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .home-hero p {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .home-hero-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .home-hero-actions button {
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 0.92rem !important;
    box-sizing: border-box;
  }

  .search-row-container {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .search-theme-input {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .filter-pills-container {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .filter-pills-container button {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 6px 12px;
  }

  .combinations-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
  }

  .comb-card {
    padding: 16px;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
  }

  .comb-card h2 {
    font-size: 1.1rem;
  }

  .comb-card p {
    font-size: 0.85rem;
  }

  .btn-start-comb {
    padding: 12px;
    font-size: 0.9rem;
  }

  /* Simulateur */
  .workspace-center {
    padding: 14px 12px;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
  }

  .task-header-banner {
    flex-direction: row !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  .task-header-main {
    gap: 10px;
    width: 100%;
  }

  .task-badge-number {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
    flex-shrink: 0;
  }

  .task-title-group h2 {
    font-size: 1.05rem;
  }

  .task-title-group .task-word-rec {
    font-size: 0.8rem;
  }

  .task-objective-text {
    font-size: 0.88rem;
  }

  .task-stimulus-box {
    padding: 12px 14px;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .tcf-textarea {
    min-height: 180px;
    padding: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .editor-footer-bar {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    padding: 10px 12px;
  }

  .word-count-widget {
    justify-content: space-between;
    width: 100%;
  }

  .editor-nav-actions {
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }

  .editor-nav-actions .btn-nav-step {
    flex: 1;
    height: 38px;
    font-size: 1rem;
  }

  .sidebar-tools {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .tools-panel {
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .char-grid {
    grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
    gap: 4px;
  }

  .char-btn {
    height: 32px;
    font-size: 0.85rem;
  }

  /* Rapport & Évaluation */
  .report-container {
    padding: 16px 12px;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .report-hero-card {
    flex-direction: column;
    padding: 20px 14px;
    text-align: center;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .report-hero-left h1 {
    font-size: 1.25rem;
  }

  .report-hero-left p {
    font-size: 0.85rem;
  }

  .report-score-box {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  .criteria-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .crit-card {
    padding: 10px;
  }

  .crit-card .crit-title {
    font-size: 0.75rem;
  }

  .crit-card .crit-score {
    font-size: 1.05rem;
  }

  .task-report-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  /* Révision & Quiz */
  .revision-container {
    padding: 16px 12px;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .revision-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .revision-nav-tabs {
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }

  .rev-tab-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.88rem;
    padding: 8px 12px;
  }

  .lessons-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
  }

  .lesson-card {
    padding: 16px;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .quiz-card {
    padding: 16px 12px;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
  }

  .quiz-question-title {
    font-size: 1.05rem;
  }

  .quiz-opt-btn {
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  /* Modales */
  .modal-backdrop {
    padding: 10px;
  }

  .modal-content {
    padding: 18px 14px;
    max-height: 90vh;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* 4. Téléphones Mobiles Compacts (<= 480px) */
@media (max-width: 480px) {
  .exam-info-header h1 {
    font-size: 0.88rem;
  }

  .exam-info-header .exam-subtitle {
    font-size: 0.7rem;
  }

  .tasks-nav-list {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .task-nav-card {
    padding: 8px 10px;
  }

  .criteria-grid {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .home-hero h1 {
    font-size: 1.25rem;
  }

  .score-badge-circle {
    width: 80px;
    height: 80px;
  }

  .score-badge-circle .score-num {
    font-size: 1.5rem;
  }

  .cefr-badge-large {
    font-size: 1.5rem;
    padding: 6px 14px;
  }

  .char-grid {
    grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
    gap: 4px;
  }

  .char-btn {
    height: 30px;
    font-size: 0.82rem;
  }
}

/* Styles pour l'impression / Export PDF */
@media print {

  .top-header,
  .btn-submit-exam,
  .editor-nav-actions,
  .tools-panel {
    display: none !important;
  }

  .report-container {
    padding: 0;
    max-width: 100%;
  }

  .task-report-card {
    page-break-inside: avoid;
    border: 1px solid #ccc;
  }
}

/* ==========================================================
   MODULE SWITCHER & NAVIGATION SUPÉRIEURE ÉTENDUE
   ========================================================== */
.module-switcher-pill {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  gap: 4px;
}

.module-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.module-tab-btn:hover {
  color: #0f172a;
}

.module-tab-btn.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.module-tab-btn#tab-ce.active {
  color: #059669;
}

/* ==========================================================
   TABLEAU DE BORD - COMPRÉHENSION ÉCRITE (40 SÉRIES)
   ========================================================== */
.ce-main-container {
  max-width: 1420px;
  margin: 0 auto;
  padding: 10px 18px 24px;
  width: 100%;
  box-sizing: border-box;
}

.ce-dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ce-dash-hero {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 10px 25px -5px rgba(6, 78, 59, 0.3);
}

.ce-dash-hero h1 {
  color: #ffffff;
}

.ce-dash-hero p {
  color: #d1fae5;
}

.ce-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.ce-kpi-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.ce-kpi-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: #059669;
  line-height: 1.2;
}

.ce-kpi-lbl {
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 4px;
}

.ce-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 14px 18px;
  border-radius: 16px;
}

.ce-search-wrap {
  flex: 1;
  min-width: 260px;
}

.ce-search-input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.ce-search-input:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.ce-tabs-filter {
  display: inline-flex;
  gap: 8px;
}

.ce-tab-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ce-tab-btn.active {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

.ce-series-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.ce-serie-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.ce-serie-card:hover {
  transform: translateY(-3px);
  border-color: #10b981;
  box-shadow: 0 12px 24px -6px rgba(16, 185, 129, 0.15);
}

.ce-serie-card.card-completed {
  border-left: 4px solid #059669;
}

.ce-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ce-card-num {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #64748b;
  text-transform: uppercase;
}

.ce-card-status {
  font-size: 0.74rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #64748b;
  padding: 3px 8px;
  border-radius: 6px;
}

.ce-card-score {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid currentColor;
}

.ce-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
}

.ce-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  color: #64748b;
  margin-bottom: 20px;
}

.ce-btn-start-serie {
  width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ce-btn-start-serie:hover {
  background: linear-gradient(135deg, #047857, #059669);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* ==========================================================
   SIMULATEUR DE COMPRÉHENSION ÉCRITE (EXAMEN 60 MIN)
   ========================================================== */
.ce-simulator-layout {
  display: grid;
  grid-template-columns: 228px 1fr;
  gap: 14px;
  align-items: start;
}

@media (max-width: 960px) {
  .ce-simulator-layout {
    grid-template-columns: 215px 1fr;
    gap: 10px;
  }
}

.ce-sidebar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: sticky;
  top: 70px;
  width: 228px;
  box-sizing: border-box;
}

.ce-timer-card {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 8px;
  text-align: center;
}

.ce-timer-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 2px;
}

.ce-timer-icon {
  font-size: 0.95rem;
}

.ce-timer-val {
  font-size: 1.18rem;
  font-weight: 800;
  font-family: monospace;
  letter-spacing: 0.05em;
}

.ce-timer-card.timer-warning {
  background: linear-gradient(135deg, #b45309, #78350f);
}

.ce-timer-card.timer-danger {
  background: linear-gradient(135deg, #b91c1c, #7f1d1d);
  animation: pulse 1.5s infinite;
}

.ce-timer-bar-bg {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2px;
}

.ce-timer-bar-fill {
  height: 100%;
  background: #ffffff;
  transition: width 1s linear;
}

.ce-timer-label {
  font-size: 0.65rem;
  color: #e0e7ff;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 1px;
}

.ce-btn-autofill {
  width: 100%;
  padding: 5px 8px;
  border-radius: 7px;
  border: none;
  background: #ea580c;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ce-btn-autofill:hover {
  background: #c2410c;
}

.ce-grid-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 2px 0 0;
}

.ce-questions-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2.5px;
}

.ce-grid-btn {
  aspect-ratio: 1;
  height: 24px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
}

.ce-grid-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.ce-grid-btn.btn-current {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.ce-grid-btn.btn-answered {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.ce-grid-btn.btn-flagged::after {
  content: '★';
  position: absolute;
  top: 1px;
  right: 2px;
  font-size: 0.65rem;
  color: #f59e0b;
}

.ce-grid-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 6px;
  font-size: 0.68rem;
  color: #64748b;
  padding-top: 5px;
  border-top: 1px solid #f1f5f9;
}

.ce-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ce-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.dot-current {
  background: #2563eb;
}

.dot-answered {
  background: #10b981;
}

.dot-unanswered {
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

.dot-flagged {
  background: #f59e0b;
}

.ce-sidebar-transcript-card {
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  overflow: hidden;
  background: #ffffff;
  margin: 2px 0;
}

.ce-sidebar-transcript-btn {
  width: 100%;
  text-align: left;
  background: #f8fafc;
  border: none;
  padding: 6px 8px;
  font-weight: 700;
  font-size: 0.72rem;
  color: #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ce-sidebar-transcript-btn:hover {
  background: #f1f5f9;
}

.ce-sidebar-transcript-content {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 8px;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #334155;
  max-height: 130px;
  overflow-y: auto;
}

.ce-btn-quit {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #fee2e2;
  background: #fff1f2;
  color: #b91c1c;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
}

.ce-btn-quit:hover {
  background: #ffe4e6;
  border-color: #fecdd3;
}

/* 2. Zone d'examen centrale - Design compact sans défilement */
.ce-workspace {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ce-q-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
  width: 100%;
}

.ce-q-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.ce-q-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ce-level-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.level-a1 {
  background: #dbeafe;
  color: #1e40af;
}

.level-a2 {
  background: #e0e7ff;
  color: #3730a3;
}

.level-b1 {
  background: #fef3c7;
  color: #92400e;
}

.level-b2 {
  background: #fef08a;
  color: #854d0e;
}

.level-c1 {
  background: #dcfce7;
  color: #166534;
}

.level-c2 {
  background: #d1fae5;
  color: #065f46;
}

.ce-q-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.ce-btn-flag {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ce-btn-flag.active {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #b45309;
}

.ce-content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

@media (max-width: 860px) {
  .ce-content-split {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Document & Surligneur */
.ce-document-pane {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ce-highlighter-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 0.72rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.ce-highlighter-toolbar::-webkit-scrollbar {
  display: none;
}

.ce-tool-title {
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.02em;
  font-size: 0.7rem;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.ce-tool-btn {
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.ce-tool-btn:hover {
  background: #f1f5f9;
}

.ce-tool-btn.active {
  background: #fef08a;
  border-color: #eab308;
  color: #713f12;
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.3);
}

.ce-doc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  padding: 16px 20px;
  max-height: 420px;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  line-height: 1.65;
  color: #1e293b;
  font-size: 0.98rem;
  user-select: text;
}

.ce-doc-image {
  max-width: 100%;
  max-height: 195px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid #e2e8f0;
  display: block;
}

.co-simulator-img-wrap {
  text-align: center;
  background: #ffffff;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.co-simulator-img-wrap img {
  max-height: 195px !important;
  max-width: 100% !important;
  object-fit: contain !important;
  border-radius: 8px !important;
}

.ce-doc-text p {
  margin: 0 0 6px;
}

mark.ce-highlight {
  background-color: #fef08a;
  color: inherit;
  padding: 1px 3px;
  border-radius: 2px;
  cursor: pointer;
}

/* Question & Choix */
.ce-question-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ce-prompt-box {
  background: #f8fafc;
  border-left: 3px solid #2563eb;
  padding: 8px 12px;
  border-radius: 6px;
}

.ce-prompt-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.4;
}

/* Grille de Choix 2x2 ultra-compacte */
.ce-options-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

@media (max-width: 600px) {
  .ce-options-list {
    grid-template-columns: 1fr;
  }
}

.ce-option-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
}

.ce-option-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.ce-option-card.selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.ce-opt-letter {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ce-option-card.selected .ce-opt-letter {
  background: #2563eb;
  color: #ffffff;
}

.ce-opt-text {
  flex: 1;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}

.ce-opt-radio {
  font-size: 1rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.ce-option-card.selected .ce-opt-radio {
  color: #2563eb;
}

/* Footer Nav Compact */
.ce-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  margin-top: 2px;
  border-top: 1px solid #f1f5f9;
}

.ce-nav-spacer {
  width: 44px;
  height: 36px;
  visibility: hidden !important;
  pointer-events: none !important;
  flex-shrink: 0;
}

.ce-nav-btn {
  padding: 7px 16px;
  border-radius: 8px;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ce-nav-btn.btn-prev {
  background: #f1f5f9;
  color: #475569;
}

.ce-nav-btn.btn-prev:hover:not(:disabled) {
  background: #e2e8f0;
}

.ce-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ce-nav-btn.btn-next {
  background: #2563eb;
  color: #ffffff;
}

.ce-nav-btn.btn-next:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.ce-nav-btn.btn-finish {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
}

.ce-nav-btn.btn-finish:hover {
  background: linear-gradient(135deg, #047857, #059669);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.ce-footer-info {
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
}

.ce-footer-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}

.ce-footer-qbadge {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #bfdbfe;
  white-space: nowrap !important;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.ce-footer-ptsbadge {
  background: #f0fdf4;
  color: #16a34a;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #bbf7d0;
  white-space: nowrap !important;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

/* ==========================================================
   PAGE RÉSULTATS & CORRIGÉ DÉTAILLÉ
   ========================================================= */
.ce-results-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ce-results-header {
  text-align: center;
}

.ce-res-badge {
  display: inline-block;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.ce-results-header h1 {
  font-size: 2rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px;
}

.ce-res-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
}

.ce-score-hero {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px;
  display: flex;
  align-items: center;
  gap: 36px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .ce-score-hero {
    flex-direction: column;
    text-align: center;
  }
}

.ce-score-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 8px solid #059669;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f8fafc;
}

.ce-score-num {
  font-size: 2.75rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.ce-score-max {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
}

.ce-score-details {
  flex: 1;
}

.ce-nclc-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.ce-nclc-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
}

.ce-kpis {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.ce-kpi-item {
  display: flex;
  flex-direction: column;
}

.ce-kpi-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.ce-kpi-lbl {
  font-size: 0.78rem;
  color: #64748b;
}

.ce-breakdown-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
}

.ce-breakdown-section h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.ce-levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.ce-lvl-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.ce-lvl-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 8px;
}

.ce-lvl-progress-bg {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.ce-lvl-progress-bar {
  height: 100%;
  background: #059669;
}

.ce-lvl-nums {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}

/* Toolbar de révision */
.ce-review-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.ce-filter-tabs {
  display: inline-flex;
  gap: 8px;
}

.ce-filter-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

.ce-filter-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.ce-action-buttons {
  display: flex;
  gap: 10px;
}

.ce-btn-retry {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #059669;
  background: #ecfdf5;
  color: #065f46;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.ce-btn-back-dash {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

/* Liste des questions corrigées */
.ce-review-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ce-review-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
}

.ce-review-item.item-correct {
  border-left: 6px solid #10b981;
}

.ce-review-item.item-error {
  border-left: 6px solid #ef4444;
}

.ce-review-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ce-review-idx {
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
}

.ce-status-badge {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  margin-left: auto;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-error {
  background: #fee2e2;
  color: #991b1b;
}

.ce-review-doc {
  background: #f8fafc;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.ce-review-img {
  max-height: 140px;
  max-width: 320px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 4px;
  margin: 8px 0 12px;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.ce-review-img:hover {
  transform: scale(1.02);
  border-color: #2563eb;
}

.ce-review-doc img {
  max-height: 140px;
  max-width: 320px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: block;
  margin: 6px 0;
}

.ce-review-question {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: #0f172a;
}

.ce-review-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.ce-review-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 0.92rem;
}

.ce-review-opt.opt-right {
  background: #f0fdf4;
  border-color: #86efac;
  font-weight: 700;
  color: #166534;
}

.ce-review-opt.opt-wrong {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
  text-decoration: line-through;
}

.ce-review-letter {
  font-weight: 800;
  width: 24px;
}

.ce-tag-right {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 800;
  background: #16a34a;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
}

.ce-tag-wrong {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 800;
  background: #dc2626;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
}

.ce-reasoning-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 16px;
  color: #14532d;
}

.ce-reasoning-header {
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.ce-reasoning-text {
  font-size: 0.9rem;
  line-height: 1.5;
}

.ce-quote-box {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #86efac;
  font-size: 0.88rem;
  font-style: italic;
  color: #166534;
}

/* ==========================================================
   DESIGN OFFICIEL TCF CANADA (ACCUEIL, HERO & SÉRIES COMPACTES)
   Inspiré directement de la plateforme officielle formation-tcfcanada
   ========================================================== */

/* 1. Bandeau supérieur d'annonce */
.tcf-top-announcement {
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 6px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.tcf-top-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tcf-top-links span {
  cursor: pointer;
  transition: color 0.15s ease;
}

.tcf-top-links span:hover {
  color: #ffffff;
}

/* 2. Hero Officiel Dégradé Bleu */
.tcf-official-hero {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #1e40af 100%);
  color: #ffffff;
  padding: 38px 20px 42px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
}

.tcf-official-hero h1 {
  font-size: 2.3rem;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.tcf-official-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  margin-bottom: 18px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.tcf-hero-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tcf-hero-pill {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* 3. Carte Accès & Progression Officielle */
.tcf-official-dashboard-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  width: 100%;
  box-sizing: border-box;
}

.tcf-dashboard-access-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  border-radius: 16px;
  padding: 24px 28px;
  color: #ffffff;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.25);
}

.tcf-access-columns {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1.2fr;
  gap: 24px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .tcf-access-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.tcf-access-col h4 {
  font-size: 0.85rem;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tcf-access-col .tcf-access-value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.tcf-access-col .tcf-access-sub {
  font-size: 0.85rem;
  color: #bfdbfe;
}

.tcf-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  margin-top: 8px;
  overflow: hidden;
}

.tcf-progress-bar-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.tcf-advice-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 20px;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tcf-advice-text {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.5;
  flex: 1;
}

.tcf-advice-badge {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* 4. Grille des 4 indicateurs clés */
.tcf-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .tcf-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .tcf-metric-grid {
    grid-template-columns: 1fr;
  }
}

.tcf-metric-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.tcf-metric-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.tcf-metric-label {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tcf-metric-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f172a;
}

.tcf-metric-card.highlight {
  background: #f0fdf9;
  border-color: #a7f3d0;
}

.tcf-metric-card.highlight .tcf-metric-num {
  color: #0d9488;
}

/* 5. Sélecteur de Module en Onglets Principaux */
.tcf-module-selector-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tcf-module-big-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 9999px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tcf-module-big-btn:hover {
  border-color: #2563eb;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.tcf-module-big-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.tcf-module-big-btn.active.ce {
  background: #059669;
  border-color: #059669;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.tcf-module-big-btn.active.co {
  background: #7c3aed;
  border-color: #7c3aed;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

/* 6. Grille des 40 Séries Compactes */
.tcf-series-official-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
}

@media (max-width: 1100px) {
  .tcf-series-official-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .tcf-series-official-grid {
    grid-template-columns: 1fr;
  }
}

/* 7. Carte de Série Compacte ("pas trop gros juste serie et le titre un truc beau") */
.tcf-official-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.tcf-official-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.tcf-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.92rem;
  background: #f1f5f9;
  color: #2563eb;
  border: 1.5px solid #cbd5e1;
  transition: all 0.2s ease;
}

.tcf-official-card:hover .tcf-card-icon {
  background: #eff6ff;
  border-color: #93c5fd;
}

.tcf-official-card.completed {
  background: #f0fdf4;
  border-color: #86efac;
}

.tcf-official-card.card-level-c {
  background: #f0fdf4;
  border-color: #86efac;
}

.tcf-official-card.card-level-c .tcf-card-icon {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}

.tcf-official-card.card-level-c .tcf-card-sub {
  color: #15803d;
  font-weight: 800;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}

.tcf-official-card.card-level-b {
  background: #fffbeb;
  border-color: #fcd34d;
}

.tcf-official-card.card-level-b .tcf-card-icon {
  background: #d97706;
  color: #ffffff;
  border-color: #d97706;
}

.tcf-official-card.card-level-b .tcf-card-sub {
  color: #b45309;
  font-weight: 800;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}

.tcf-official-card.card-level-a {
  background: #fef2f2;
  border-color: #fca5a5;
}

.tcf-official-card.card-level-a .tcf-card-icon {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.tcf-official-card.card-level-a .tcf-card-sub {
  color: #b91c1c;
  font-weight: 800;
  background: #fee2e2;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}

.tcf-card-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.tcf-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tcf-card-sub {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tcf-card-arrow {
  margin-left: auto;
  color: #94a3b8;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.2s ease;
  padding-left: 6px;
}

.tcf-official-card:hover .tcf-card-arrow {
  color: #2563eb;
  transform: translateX(3px);
}

/* ==========================================================
   KPIS STATS & HISTORIQUE DES QUIZ (CONFORME FORMATION TCF)
   ========================================================== */
.tcf-dash-kpis-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 960px) {
  .tcf-dash-kpis-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.tcf-dash-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.tcf-dash-kpi-card .kpi-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tcf-dash-kpi-card .kpi-val {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.15;
}

.tcf-dash-kpi-card .kpi-val.highlight-c {
  color: #16a34a;
}

.tcf-dash-kpi-card .kpi-val.highlight-b {
  color: #d97706;
}

.tcf-dash-kpi-card .kpi-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Section Historique des Quiz */
.tcf-quiz-history-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.tcf-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.tcf-history-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tcf-history-count {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

.tcf-history-empty {
  text-align: center;
  padding: 20px 14px;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.45;
}

.tcf-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tcf-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  gap: 10px;
  flex-wrap: wrap;
  transition: all 0.15s ease;
}

.tcf-history-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.tcf-history-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 220px;
  min-width: 0;
}

.tcf-history-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.tcf-history-date {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
}

.tcf-history-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.tcf-history-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.pill-score {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
}

.pill-score.pill-c {
  background: #dcfce7;
  color: #15803d;
}

.pill-score.pill-b {
  background: #fef3c7;
  color: #b45309;
}

.pill-score.pill-a {
  background: #fee2e2;
  color: #b91c1c;
}

.pill-info {
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 5px;
}

.tcf-history-actions-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-view-correction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-view-correction:hover {
  background: #2563eb;
  color: #ffffff;
}

.btn-delete-history-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-delete-history-item:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.tcf-history-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin: 6px 0 10px 0;
}

.tcf-history-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tcf-history-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.btn-bulk-delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.25);
}

.btn-bulk-delete:hover {
  background: #b91c1c;
}

.btn-clear-all-history {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px dashed #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-clear-all-history:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #f87171;
}

.tcf-history-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #dc2626;
  cursor: pointer;
  flex-shrink: 0;
}

/* ==========================================================
   NOUVEAU DESIGN ÉPURÉ & PROFESSIONNEL CONFORME AU SITE OFFICIEL
   ========================================================== */

/* 1. Barre de navigation principale (Dashboard) */
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.18rem;
  color: #0f172a;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.header-brand:hover {
  opacity: 0.85;
}

.header-brand .brand-flag {
  font-size: 1.4rem;
}

.header-brand .brand-title {
  letter-spacing: -0.3px;
}

.main-nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
}

.main-nav-tab {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  background: transparent;
  border: none;
  cursor: pointer;
}

.main-nav-tab:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
}

.main-nav-tab.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

.main-nav-tab svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.main-nav-tab.active svg {
  stroke: #ffffff;
}

.drawer-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-action-btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.nav-action-btn:hover,
.nav-action-btn.active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.nav-action-btn.btn-settings-icon {
  font-size: 1.1rem;
  padding: 7px 11px;
}

/* 2. Barre supérieure dans le simulateur (Strictement conforme à tc.png) */
.simulator-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  height: 64px;
  width: 100% !important;
}

.sim-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.sim-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.sim-back-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateX(-2px);
}

.sim-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sim-title-group h1 {
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin: 0;
}

.sim-title-group .sim-subtitle {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.sim-header-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-quit-btn {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #dc2626;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sim-quit-btn:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #b91c1c;
  transform: translateY(-1px);
}

.sim-mobile-grid-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #2563eb;
  border: 1.5px solid #bfdbfe;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.sim-mobile-grid-btn:hover,
.sim-mobile-grid-btn:active {
  background: #dbeafe;
  border-color: #2563eb;
  color: #1d4ed8;
  transform: translateY(-1px);
}

/* 3. En-tête de page moderne et compact (Remplace les gros héros encombrants) */
.tcf-clean-page-header {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 28px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.tcf-clean-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tcf-clean-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.tcf-clean-subtitle {
  font-size: 0.92rem;
  color: #64748b;
  margin-top: 4px;
}

.tcf-clean-stat-badge {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  border-radius: 12px;
  padding: 8px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.tcf-clean-stat-badge .badge-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e40af;
}

.tcf-clean-stat-badge .badge-lbl {
  font-size: 0.78rem;
  font-weight: 600;
  color: #3b82f6;
}

.tcf-clean-chips-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.tcf-clean-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.tcf-clean-chip.highlight {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

/* 4. Barre de Filtres & Recherche Compacte */
.tcf-clean-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tcf-clean-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tcf-filter-btn {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tcf-filter-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.tcf-filter-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.tcf-clean-search-input {
  max-width: 280px;
  width: 100%;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s;
  background: #ffffff;
}

.tcf-clean-search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 5. Responsive et Sécurité Anti-Débordement */
html,
body {
  overflow-x: clip;
  max-width: 100%;
}

@media (max-width: 1024px) {

  .top-header,
  .simulator-header {
    padding: 8px 16px;
  }

  .main-nav-tab {
    padding: 7px 12px;
    font-size: 0.82rem;
  }

  .tcf-clean-page-header {
    padding: 18px 20px;
  }
}

@media (max-width: 820px) {
  .top-header {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 54px !important;
    padding: 8px 14px !important;
    gap: 10px;
  }

  .header-brand {
    font-size: 1.05rem;
    flex-shrink: 0;
  }

  /* Masquer complètement les onglets de l'appbar sur mobile : la Tab Bar du bas prend le relais */
  .main-nav-tabs {
    display: none !important;
  }

  /* Masquer les boutons texte Cours et Historique du haut sur mobile car présents dans la Tab Bar */
  .header-actions .nav-action-btn:not(.btn-settings-icon) {
    display: none !important;
  }

  .header-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
  }

  .tcf-clean-stat-badge {
    align-items: flex-start;
  }
}

/* ==========================================================
   EXPRESSION ÉCRITE - CLASSIFICATION PAR ANNÉE & MOIS (OFFICIEL)
   ========================================================== */
.tcf-year-selector-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.tcf-year-selector-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.tcf-year-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tcf-year-btn {
  padding: 10px 24px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tcf-year-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.tcf-year-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.tcf-months-section {
  margin-bottom: 24px;
}

.tcf-months-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.tcf-months-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.tcf-months-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.tcf-month-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.tcf-month-card:hover {
  border-color: #3b82f6;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tcf-month-card.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.month-badge-available {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.month-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.month-card-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.tcf-month-card.active .month-card-title {
  color: #1d4ed8;
}

.tcf-month-card.active .month-card-count {
  color: #2563eb;
}

/* Enhancements for Course & Grammar Modal */
.lesson-modal-body {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #1e293b;
}

.lesson-modal-body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e3a8a;
  margin-top: 24px;
  margin-bottom: 12px;
}

.lesson-modal-body .lesson-quote {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  padding: 14px 18px;
  border-radius: 8px;
  margin: 16px 0;
  color: #166534;
  font-weight: 600;
}

.lesson-modal-body .lesson-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
}

.lesson-modal-body .lesson-table th {
  background: #f1f5f9;
  color: #0f172a;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  font-weight: 800;
  text-align: left;
}

.lesson-modal-body .lesson-table td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

/* ==========================================================
   ADAPTATION MULTI-ÉCRANS (RESPONSIVE TOUS APPAREILS)
   ========================================================== */
@media (max-width: 960px) {
  .ce-simulator-layout {
    grid-template-columns: 215px 1fr;
    gap: 8px;
  }

  .simulator-layout {
    grid-template-columns: 1fr;
  }
}

/* Smartphone & Téléphone : Masquer complètement la sidebar (minuteur, auto-test, 39 questions) */
@media (max-width: 768px) {

  /* Barre supérieure simulateur mobile : afficher uniquement le titre (Série X) sans débordement */
  .simulator-header {
    padding: 8px 10px !important;
    height: 54px !important;
    gap: 8px !important;
  }

  .sim-header-left {
    gap: 8px !important;
    min-width: 0 !important;
  }

  .sim-title-group .sim-subtitle {
    display: none !important;
  }

  .sim-title-group h1 {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
  }

  .sim-back-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
  }

  .timer-pill {
    padding: 4px 10px !important;
    font-size: 0.92rem !important;
  }

  .sim-quit-btn {
    padding: 5px 8px !important;
  }

  .sim-mobile-grid-btn {
    display: inline-flex !important;
    padding: 5px 8px !important;
  }

  .ce-sidebar {
    display: none !important;
  }

  .ce-simulator-layout {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  .ce-workspace {
    padding: 8px 10px !important;
    gap: 6px !important;
  }

  /* Question Header : Question 1/39 à gauche, A1 • 3 PTS à droite */
  .ce-q-header {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .ce-q-header-left {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 1 !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  .ce-q-header-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .ce-q-title {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    text-align: left !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  .ce-level-badge {
    font-size: 0.72rem !important;
    padding: 3px 8px !important;
    white-space: nowrap !important;
  }

  .ce-btn-flag {
    padding: 3px 6px !important;
    font-size: 0.72rem !important;
  }

  .ce-options-list {
    grid-template-columns: 1fr !important;
    gap: 5px !important;
  }

  .co-audio-player-card {
    padding: 6px 10px !important;
  }

  .co-simulator-img-wrap img,
  .ce-doc-image {
    max-height: 140px !important;
  }

  .ce-footer-nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 6px 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .ce-nav-btn {
    padding: 6px 10px !important;
    font-size: 0.76rem !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    flex-shrink: 1 !important;
    gap: 4px !important;
  }

  .ce-footer-center {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  .ce-footer-qbadge {
    font-size: 0.72rem !important;
    padding: 3px 8px !important;
    white-space: nowrap !important;
  }

  .ce-footer-ptsbadge {
    font-size: 0.72rem !important;
    padding: 3px 8px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
  }
}

.tcf-yr-lbl-short {
  display: none;
}

.tcf-official-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
  width: 100%;
}

@media (max-width: 640px) {
  .tcf-yr-lbl-full {
    display: none;
  }

  .tcf-yr-lbl-short {
    display: inline;
  }

  .tcf-year-selector-section {
    padding: 12px 14px;
  }

  .tcf-year-buttons {
    gap: 6px;
  }

  .tcf-year-btn {
    flex: 1 1 auto;
    min-width: 58px;
    padding: 6px 10px;
    font-size: 0.82rem;
    border-radius: 8px;
    justify-content: center;
    white-space: nowrap;
  }

  .tcf-official-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tcf-months-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tcf-month-card {
    padding: 10px 12px;
  }

  .month-card-title {
    font-size: 0.92rem;
  }

  .month-card-count {
    font-size: 0.78rem;
  }

  .tcf-series-official-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95% !important;
    max-width: 95% !important;
    padding: 18px 14px !important;
  }

  .modal-settings-dialog {
    padding: 0 !important;
  }

  .modal-settings-body {
    padding: 12px 14px !important;
    gap: 10px !important;
  }

  .modal-settings-footer {
    padding: 10px 14px !important;
  }

  .ce-footer-nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 4px !important;
  }

  .ce-nav-btn {
    min-width: 44px !important;
    min-height: 36px !important;
    padding: 6px 12px !important;
    font-size: 1.15rem !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .ce-nav-spacer {
    display: inline-block !important;
    visibility: hidden !important;
    pointer-events: none !important;
    min-width: 44px !important;
    min-height: 36px !important;
  }

  .ce-nav-btn.btn-finish {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    padding: 6px 14px !important;
    min-width: 80px !important;
  }

  .ce-footer-center {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  .ce-footer-qbadge {
    font-size: 0.72rem !important;
    padding: 3px 6px !important;
    white-space: nowrap !important;
    border-radius: 12px !important;
  }

  .ce-footer-ptsbadge {
    font-size: 0.72rem !important;
    padding: 3px 6px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 12px !important;
  }

  /* Historique responsive sur mobile */
  .tcf-quiz-history-section {
    padding: 12px 12px !important;
    border-radius: 12px !important;
    margin-top: 14px !important;
  }

  .tcf-history-header {
    margin-bottom: 8px !important;
    padding-bottom: 6px !important;
  }

  .tcf-history-title {
    font-size: 0.96rem !important;
  }

  .tcf-history-count {
    font-size: 0.75rem !important;
  }

  .tcf-history-empty {
    padding: 14px 8px !important;
    font-size: 0.8rem !important;
  }

  .tcf-history-toolbar {
    padding: 6px 8px !important;
    gap: 6px !important;
    margin: 4px 0 8px 0 !important;
  }

  .tcf-history-item {
    padding: 8px 10px !important;
    gap: 8px !important;
  }

  .tcf-history-left {
    flex: 1 1 100% !important;
  }

  .tcf-history-actions-group {
    width: 100% !important;
    justify-content: flex-end !important;
    margin-top: 2px !important;
    padding-top: 6px !important;
    border-top: 1px dashed #e2e8f0 !important;
    gap: 6px !important;
  }

  .btn-view-correction,
  .btn-delete-history-item {
    flex: 1 !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 6px 8px !important;
    font-size: 0.78rem !important;
  }
}

@media (max-width: 380px) {
  .tcf-months-grid {
    grid-template-columns: 1fr;
  }

  .ce-footer-nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px 2px !important;
  }

  .ce-nav-btn {
    min-width: 38px !important;
    min-height: 32px !important;
    padding: 4px 8px !important;
    font-size: 1.1rem !important;
    width: auto !important;
    gap: 0 !important;
  }

  .ce-footer-center {
    gap: 2px !important;
  }

  .ce-footer-qbadge {
    font-size: 0.65rem !important;
    padding: 2px 4px !important;
    white-space: nowrap !important;
  }

  .ce-footer-ptsbadge {
    font-size: 0.65rem !important;
    padding: 2px 4px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
  }
}

/* Animations E.O (Expression Orale Vocale) */
@keyframes pulse-mic {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }

  70% {
    transform: scale(1.06);
    box-shadow: 0 0 0 14px rgba(239, 68, 68, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.mic-pulsing {
  animation: pulse-mic 1.4s infinite !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
}

@keyframes audio-wave {

  0%,
  100% {
    height: 6px;
  }

  50% {
    height: 24px;
  }
}

.speaking-wave-bar {
  display: inline-block;
  width: 4px;
  background: #2563eb;
  border-radius: 2px;
  margin: 0 2px;
  animation: audio-wave 1s ease-in-out infinite;
}


/* ==========================================================
   NAVIGATION MOBILE INFERIEURE TCF (TAB BAR)
   ========================================================== */
.tcf-mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  z-index: 9999;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.07);
  padding: 4px 6px;
  box-sizing: border-box;
}

.tcf-mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 52px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.tcf-mob-nav-item:hover,
.tcf-mob-nav-item.active {
  color: #2563eb;
  background: #eff6ff;
}

.tcf-mob-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
}

.tcf-mob-nav-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: block;
}

.tcf-mob-nav-label {
  letter-spacing: 0.3px;
}

@media (max-width: 768px) {
  .tcf-mobile-bottom-nav {
    display: flex !important;
  }

  .main-nav-tabs {
    display: none !important;
  }

  body {
    padding-bottom: 74px !important;
  }
}

@media (min-width: 769px) {
  .tcf-mobile-bottom-nav {
    display: none !important;
  }

  .main-nav-tabs {
    display: flex !important;
  }
}

/* ==========================================================
   STYLE SAAS COMMERCIAL TCF CANADA (FREEMIUM, TARIFS & DASHBOARD)
   ========================================================== */

/* Cartes Cadenassées (Séries > 5 en mode gratuit) */
.tcf-official-card.tcf-card-locked {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  opacity: 0.92;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}

.tcf-official-card.tcf-card-locked:hover {
  border-color: #f59e0b !important;
  background: #fffbeb !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.12);
}

.tcf-official-card.tcf-card-locked .tcf-card-icon {
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.15rem;
}

.tcf-premium-lock-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border-radius: 6px;
  margin-left: 6px;
  display: inline-block;
  letter-spacing: 0.2px;
  vertical-align: middle;
}

.tcf-sub-locked {
  color: #d97706 !important;
  font-weight: 600;
}

.tcf-arrow-locked {
  color: #f59e0b !important;
  font-size: 1.1rem;
}

/* En-tête Navigation SaaS & Badges */
.tab-nav-pricing {
  background: linear-gradient(135deg, #eff6ff, #dbeafe) !important;
  color: #1d4ed8 !important;
  border: 1.5px solid #bfdbfe !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1);
}

.tab-nav-pricing:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

.btn-account-header {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
}

.hdr-user-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
}

.hdr-free {
  background: #f1f5f9;
  color: #475569;
}

.hdr-pro {
  background: #dcfce7;
  color: #15803d;
}

/* Modale de Déblocage (Freemium) */
.unlock-modal-box {
  max-width: 500px !important;
  text-align: center;
  padding: 30px 24px !important;
  border-radius: 20px !important;
}

.unlock-icon-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: #fef3c7;
  color: #d97706;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.2);
}

.unlock-highlights-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.unlock-highlights-box .unl-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.unlock-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-unlock-cta {
  padding: 11px 20px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}

.btn-unlock-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.4);
}

/* Page Tarifs & Grille */
.saas-pricing-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.saas-pricing-hero {
  text-align: center;
  margin-bottom: 40px;
}

.saas-badge-pill {
  display: inline-block;
  padding: 4px 14px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 30px;
  border: 1px solid #bfdbfe;
  margin-bottom: 12px;
}

.saas-hero-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}

.saas-hero-sub {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto 24px;
}

.saas-currency-selector {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 6px 16px;
  border-radius: 40px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.currency-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
}

.currency-toggle-box {
  display: flex;
  gap: 6px;
}

.currency-btn {
  padding: 7px 14px;
  border-radius: 20px;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.currency-btn.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.saas-section-block {
  margin-bottom: 50px;
}

.saas-section-header {
  margin-bottom: 24px;
  text-align: center;
}

.saas-section-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  margin: 6px 0;
}

.saas-section-desc {
  font-size: 0.95rem;
  color: #64748b;
  max-width: 680px;
  margin: 0 auto;
}

.saas-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.saas-price-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.saas-price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.saas-price-card.card-featured {
  border-color: #2563eb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.15);
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.saas-card-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.saas-card-plan-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.saas-card-price {
  margin: 16px 0 20px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.saas-card-price .price-val {
  font-size: 2rem;
  font-weight: 900;
  color: #0f172a;
}

.saas-card-price .price-period {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
}

.saas-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.saas-card-features li {
  font-size: 0.88rem;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.check-icon {
  color: #2563eb;
  font-weight: 900;
  flex-shrink: 0;
}

.saas-card-btn {
  display: block;
  width: 100%;
  padding: 13px;
  text-align: center;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-primary-glow {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-primary-glow:hover {
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

.btn-outline-pricing {
  background: #f8fafc;
  color: #1e293b !important;
  border: 1.5px solid #cbd5e1;
}

.btn-outline-pricing:hover {
  background: #eff6ff;
  color: #2563eb !important;
  border-color: #93c5fd;
}

.btn-ent-pricing {
  background: #1e293b;
  color: #ffffff !important;
}

.btn-ent-pricing:hover {
  background: #0f172a;
}

.btn-ent-custom {
  background: #059669;
  color: #ffffff !important;
}

.btn-ent-custom:hover {
  background: #047857;
}

/* Pays de Paiement */
.saas-payment-countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.payment-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.country-flag {
  font-size: 2rem;
  margin-bottom: 6px;
}

.country-name {
  font-weight: 800;
  color: #0f172a;
  font-size: 0.95rem;
}

.payment-methods {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 4px;
}

/* FAQ */
.saas-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 22px;
}

.faq-item h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #0f172a;
}

.faq-item p {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}

/* Tableau de Bord SAAS */
.saas-dashboard-wrapper {
  max-width: 1400px;
  width: 96%;
  margin: 0 auto;
  padding: 24px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
}

.dashboard-user-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  padding: 24px 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.user-info-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.user-avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.user-meta {
  flex: 1;
  min-width: 200px;
}

.user-name {
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 4px;
}

.user-email {
  font-size: 0.88rem;
  color: #64748b;
}

.user-plan-badge-row {
  margin-top: 8px;
}

.role-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
}

.role-free {
  background: #f1f5f9;
  color: #475569;
}

.role-pers {
  background: #eff6ff;
  color: #1d4ed8;
}

.role-ent {
  background: #fef3c7;
  color: #92400e;
}

.role-student {
  background: #ecfdf5;
  color: #065f46;
}

.role-admin {
  background: #fdf4ff;
  color: #a21caf;
}

.user-countdown-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 22px;
  text-align: center;
  min-width: 140px;
}

.user-countdown-box.urgent {
  background: #fff1f2;
  border-color: #fecdd3;
}

.countdown-num {
  font-size: 2rem;
  font-weight: 900;
  color: #2563eb;
  line-height: 1.1;
}

.user-countdown-box.urgent .countdown-num {
  color: #e11d48;
}

.countdown-lbl {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 8px;
}

.btn-renew-sub {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25);
}

.sub-expiry-alert-banner {
  margin-top: 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.dashboard-section-box {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.section-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.section-box-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.quota-stat-pill {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.95rem;
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 800;
  border: 1px solid #bfdbfe;
}

.quota-progress-bar-wrap {
  width: 100%;
  height: 10px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
}

.quota-progress-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.3s ease;
}

.add-student-form-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}

.student-add-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) auto;
  gap: 10px;
  align-items: center;
}

.input-form {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  font-size: 0.88rem;
  box-sizing: border-box;
  background: #ffffff;
}

.btn-submit-student {
  padding: 10px 18px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.btn-submit-student:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.students-table-wrap,
.admin-users-table-wrap {
  overflow-x: auto;
}

.students-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.students-table th {
  text-align: left;
  padding: 10px 12px;
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  border-bottom: 1.5px solid #e2e8f0;
}

.students-table td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.badge-status-active {
  background: #ecfdf5;
  color: #059669;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
}

.btn-delete-student {
  padding: 4px 10px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

/* Admin KPIs */
.admin-kpis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-kpi-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.admin-kpi-card .kpi-num {
  font-size: 2.1rem;
  font-weight: 900;
  color: #0f172a;
}

.admin-kpi-card .kpi-lbl {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 4px;
}

.btn-admin-action {
  padding: 5px 12px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

/* Historique Personnel */
.empty-history-box {
  text-align: center;
  padding: 40px 20px;
}

.history-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.hist-icon {
  font-size: 1.5rem;
}

.hist-info {
  flex: 1;
}

.hist-date {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}

.hist-score-badge {
  font-weight: 800;
  font-size: 0.95rem;
  color: #2563eb;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
}

/* Bascule Démo Rôles */
.demo-role-switcher-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 14px 18px;
}

.demo-buttons-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-demo-role {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-demo-role:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* Modale Authentification */
.auth-modal-box {
  max-width: 440px !important;
  padding: 24px !important;
}

.auth-tabs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
}

.auth-tab {
  padding: 8px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.88rem;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
}

.auth-tab.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.btn-primary-auth {
  padding: 12px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 8px;
}

/* Ancienne section landing unifiée dans la section moderne à la fin du fichier */

.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.feat-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.feature-item h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.feature-item p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================
   TCF CANADA SAAS v3.5 - STYLES COMPLETS & RESPONSIVE
   ========================================================== */

/* Sélecteur de Devise Compact sur Une Seule Ligne */
.saas-currency-selector-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 24px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-top: 14px;
}

.currency-label-inline {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.currency-toggle-box-compact {
  display: inline-flex;
  gap: 3px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 16px;
}

.currency-btn-compact {
  padding: 4px 12px;
  border-radius: 12px;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.currency-btn-compact.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* Boutons Top Header (COMPTE & Contact) */
.btn-compte-header {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
  font-weight: 700 !important;
}

.btn-compte-header:hover,
.btn-compte-header.active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

.btn-contact-header {
  font-weight: 600;
}

/* Mon Compte & Dashboard Tabs */
.dashboard-account-header {
  background: #ffffff;
  border-radius: 18px;
  border: 1.5px solid #e2e8f0;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.account-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.account-title-wrap {
  flex: 1;
  min-width: 250px;
}

.account-title {
  font-size: 1.7rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 4px;
}

.account-subtitle {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0;
}

.btn-account-logout-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fff1f2;
  color: #e11d48;
  border: 1.5px solid #fecdd3;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-account-logout-header:hover {
  background: #e11d48;
  color: #ffffff;
  border-color: #e11d48;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

.account-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Bouton Se connecter dans la barre de navigation */
.btn-login-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 15px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
  white-space: nowrap;
}

.btn-login-header:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}

/* Tiroir latéral : bouton Se connecter & carte invité */
.btn-drawer-login-action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.btn-drawer-login-action:hover {
  background: #2563eb;
  color: #ffffff;
}

.drawer-guest-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

/* Vue Invité / Non connecté pour Espace Mon Compte */
.guest-auth-view {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  min-height: 55vh;
}

.guest-auth-card {
  max-width: 580px;
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 38px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.guest-auth-badge {
  display: inline-block;
  padding: 4px 14px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 20px;
  margin-bottom: 14px;
  border: 1px solid #bfdbfe;
}

.guest-auth-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 10px 0;
}

.guest-auth-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.guest-auth-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.btn-primary-auth {
  padding: 11px 26px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary-auth:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-secondary-auth {
  padding: 11px 22px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 11px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-auth:hover {
  background: #e2e8f0;
}

.guest-auth-perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

.perk-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.perk-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.perk-item strong {
  display: block;
  font-size: 0.88rem;
  color: #1e293b;
  margin-bottom: 2px;
}

.perk-item p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.btn-account-nav {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-account-nav:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.btn-account-nav.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.account-tab-content {
  display: none;
}

.account-tab-content.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

/* Mes Abonnements & Vos Accès Inclus */
.account-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.account-sub-card,
.account-access-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.sub-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.sub-type-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
}

.sub-status-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
}

.sub-status-pill.pill-active {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.sub-status-pill.pill-expired {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.sub-plan-name {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 16px;
}

.sub-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: #f8fafc;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #f1f5f9;
  margin-bottom: 16px;
  text-align: center;
}

.metric-cell .cell-label {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 3px;
}

.metric-cell .cell-value {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
}

.metric-cell .cell-value.highlight-days {
  color: #2563eb;
  font-size: 1rem;
}

.sub-progress-wrap {
  margin-bottom: 16px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #475569;
  margin-bottom: 6px;
}

.sub-progress-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.sub-progress-bar {
  height: 100%;
  background: #2563eb;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.sub-exam-date-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.exam-date-val {
  font-weight: 800;
  color: #0f172a;
}

.btn-change-exam-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
}

.btn-sub-renew {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.2s;
}

.btn-sub-renew:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.access-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.access-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
}

.access-item-icon {
  font-size: 1.5rem;
}

.access-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.access-item-body strong {
  font-size: 0.88rem;
  color: #0f172a;
}

.access-item-body span {
  font-size: 0.78rem;
  color: #64748b;
}

.access-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
}

.access-badge.badge-unlimited {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.access-badge.badge-limited {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Graphique Indice de Concentration */
.concentration-box {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.concentration-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}

.concentration-sub {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 20px;
}

.concentration-bars-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.conc-step {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.conc-bar-wrap {
  height: 90px;
  width: 28px;
  margin: 0 auto 10px;
  background: #e2e8f0;
  border-radius: 14px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.conc-bar-fill {
  width: 100%;
  border-radius: 14px;
  transition: height 0.5s ease;
}

.conc-pct {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
}

.conc-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #1e293b;
  margin: 4px 0 2px;
}

.conc-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 6px;
}

.conc-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

.mock-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
  gap: 12px;
}

.mock-date-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-status-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  align-self: flex-start;
}

.mock-status-pill.status-terminé {
  background: #f0fdf4;
  color: #15803d;
}

.mock-status-pill.status-abandonné {
  background: #fef2f2;
  color: #b91c1c;
}

.mock-scores-col {
  font-size: 0.88rem;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.score-lbl {
  font-weight: 700;
  color: #64748b;
}

.btn-review-mock {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

/* Profil & Appareils Actifs (Max 3) */
.account-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.profile-card-box,
.devices-card-box {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.devices-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.devices-quota-pill {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.devices-quota-pill.quota-ok {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.devices-quota-pill.quota-danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.device-alert-danger {
  background: #fef2f2;
  border: 1px solid #f87171;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.devices-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.device-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  transition: all 0.2s;
}

.device-card-row.current-device {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.dev-os-icon {
  font-size: 1.6rem;
}

.dev-info-col {
  flex: 1;
}

.dev-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: #0f172a;
}

.current-dev-badge {
  font-size: 0.7rem;
  font-weight: 800;
  background: #2563eb;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 6px;
}

.dev-meta-line {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}

.btn-disconnect-device {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-disconnect-device:hover {
  background: #dc2626;
  color: #ffffff;
}

.active-now-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #16a34a;
}

.student-device-count-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

/* Page Contact */
.saas-contact-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 16px 60px;
}

.saas-contact-hero {
  text-align: center;
  margin-bottom: 36px;
}

.saas-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.contact-info-card,
.contact-form-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  padding: 28px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.contact-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.contact-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item-lbl {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 700;
}

.contact-item-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.btn-whatsapp-direct {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: #25D366;
  color: #ffffff;
  text-align: center;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-send-contact {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Pages Légales */
.saas-legal-page {
  max-width: 850px;
  margin: 0 auto;
  padding: 30px 16px 60px;
}

.legal-page-header {
  margin-bottom: 24px;
}

.btn-legal-back {
  font-size: 0.85rem;
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.legal-title {
  font-size: 2rem;
  font-weight: 900;
  color: #0f172a;
  margin: 8px 0 0;
}

.legal-content-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  padding: 32px;
  line-height: 1.7;
  color: #334155;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.legal-content-card h3 {
  color: #0f172a;
  font-size: 1.25rem;
  margin: 24px 0 8px;
}

/* Pied de Page Global (Footer) */
.saas-global-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 50px 20px 24px;
  margin-top: 60px;
  border-top: 1px solid #1e293b;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.footer-brand-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-slogan {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 16px;
  color: #cbd5e1;
}

.footer-contact-list div {
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.footer-contact-list a {
  color: #60a5fa;
  text-decoration: none;
}

.footer-social-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.social-link {
  font-size: 0.8rem;
  color: #cbd5e1;
  text-decoration: none;
  background: #1e293b;
  padding: 4px 10px;
  border-radius: 6px;
}

.social-link:hover {
  background: #334155;
  color: #ffffff;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 14px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-list li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s;
}

.footer-nav-list li a:hover {
  color: #60a5fa;
}

.footer-bottom-bar {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
}

/* Contrôles Flottants Non-Chevauchants */
.floating-action-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-action-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

.floating-action-scrolltop {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  background: #0f172a;
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: all 0.3s ease;
}

.floating-action-scrolltop.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-action-scrolltop:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .concentration-bars-row {
    grid-template-columns: 1fr;
  }

  .floating-action-whatsapp {
    bottom: 74px;
    /* Au-dessus de la nav mobile */
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .floating-action-scrolltop {
    bottom: 74px;
    /* Au-dessus de la nav mobile */
    left: 16px;
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================
   TOPBAR COMPACTE & BOUTON HAMBURGER (SANS DÉBORDEMENT)
   ========================================================== */
.top-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  width: 100%;
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Bouton Hamburger : MASQUÉ sur grand écran desktop (> 1100px), visible sur tablette et mobile */
.btn-header-hamburger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.btn-header-hamburger:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  transform: scale(1.04);
}

.btn-header-hamburger .hamburger-line {
  width: 18px;
  height: 2px;
  background: #1e293b;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  flex-shrink: 0;
}

.header-brand:hover {
  opacity: 0.85;
}

.header-brand .brand-flag {
  font-size: 1.5rem;
  line-height: 1;
}

.header-brand .brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

/* Onglets Centraux Responsive : Noms complets sur desktop, courts sur tablette */
.responsive-nav-tabs,
.compact-nav-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.main-nav-tab {
  padding: 6px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #475569;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.tab-label-full {
  display: inline;
}

.tab-label-short {
  display: none;
}

.nav-tab-tarifs,
.nav-tab-revision {
  display: inline-flex;
}

.main-nav-tab:hover {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.7);
}

.main-nav-tab.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Écrans Moyens / Tablettes (<= 1100px) : Le hamburger apparaît, les labels passent en abrégé C.O, C.E, etc. */
@media (max-width: 1100px) {
  .btn-header-hamburger {
    display: flex;
  }

  .tab-label-full {
    display: none;
  }

  .tab-label-short {
    display: inline;
  }

  .nav-tab-tarifs,
  .nav-tab-revision {
    display: none;
    /* Déjà présent dans le menu hamburger latéral */
  }
}

/* Bouton Mon Compte & Paramètres à Droite */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-compte-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  white-space: nowrap;
}

.btn-compte-header:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.hdr-user-badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.hdr-user-badge.hdr-free {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.hdr-user-badge.hdr-pro {
  background: #f59e0b;
  color: #ffffff;
}

.btn-settings-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-settings-icon:hover {
  background: #e2e8f0;
  transform: rotate(30deg);
}

/* ==========================================================
   TIROIR LATÉRAL DE NAVIGATION (SLIDE-OUT DRAWER)
   ========================================================== */
.tcf-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tcf-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.tcf-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 86vw;
  background: #ffffff;
  box-shadow: 6px 0 28px rgba(0, 0, 0, 0.22);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.tcf-nav-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-brand .drawer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.btn-close-drawer {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-close-drawer:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

.drawer-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.drawer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.drawer-user-info strong {
  font-size: 0.95rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-user-info span {
  font-size: 0.78rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-plan-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 3px;
  width: fit-content;
}

.drawer-plan-pill.pill-free {
  background: #e2e8f0;
  color: #475569;
}

.drawer-plan-pill.pill-pro {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  padding: 12px 14px 28px;
  gap: 3px;
}

.drawer-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94a3b8;
  font-weight: 800;
  padding: 12px 12px 6px;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.15s ease;
}

.drawer-nav-link:hover {
  background: #eff6ff;
  color: #2563eb;
  transform: translateX(3px);
}

.drawer-icon {
  font-size: 1.15rem;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-drawer-logout {
  color: #dc2626;
}

.btn-drawer-logout:hover {
  background: #fef2f2;
  color: #b91c1c;
}

/* ==========================================================
   NAVIGATION MOBILE BAS D'ÉCRAN (BOTTOM BAR)
   ========================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  z-index: 9998;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 2px;
  text-decoration: none;
}

.mobile-nav-item.active {
  color: #2563eb;
}

.mobile-nav-item .mobile-nav-icon {
  font-size: 1.25rem;
  line-height: 1;
}

@media (max-width: 768px) {

  .responsive-nav-tabs,
  .compact-nav-tabs {
    display: none;
    /* Sur mobile, les onglets centraux sont remplacés par la bottom-bar et le drawer */
  }

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

  .header-brand .brand-title {
    font-size: 1rem;
  }
}

/* ==========================================================
   CHAMP MOT DE PASSE AVEC ICÔNE OEIL TOGGLE (AFFICHER/MASQUER)
   ========================================================== */
.password-toggle-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-toggle-wrapper .input-form {
  padding-right: 44px !important;
  width: 100%;
}

.btn-toggle-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px;
  color: #64748b;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.15s ease;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.btn-toggle-eye:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.12);
}

/* ==========================================================
   BANNIÈRE AFFILIATION ÉTUDIANT (NOM DE L'ENTREPRISE / CENTRE)
   ========================================================== */
.student-affiliation-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1.5px solid #93c5fd;
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.student-affiliation-banner .affil-icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.student-affiliation-banner .affil-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #1e40af;
  color: #ffffff;
  margin-bottom: 4px;
}

.student-affiliation-banner .affil-title {
  margin: 0 0 4px;
  font-size: 1.12rem;
  font-weight: 800;
  color: #1e3a8a;
}

.student-affiliation-banner .affil-desc {
  margin: 0;
  font-size: 0.88rem;
  color: #2563eb;
  line-height: 1.4;
}

.student-managed-pill {
  padding: 11px 16px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #1e40af;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  width: 100%;
}

/* ==========================================================
   PAGE TARIFS & ABONNEMENTS VIBRANTE, MODERNE & RESPONSIVE
   ========================================================== */
.saas-pricing-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.saas-pricing-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}

.saas-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 30px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #93c5fd;
  color: #1d4ed8;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.animate-pulse-badge {
  animation: badge-glow 2.5s infinite;
}

@keyframes badge-glow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.25);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }
}

.saas-hero-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin: 0;
}

.saas-hero-sub {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
  max-width: 680px;
}

.pricing-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.pricing-category-pill-box {
  display: inline-flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pricing-cat-btn {
  padding: 9px 20px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pricing-cat-btn:hover {
  color: #0f172a;
}

.pricing-cat-btn.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.saas-currency-selector-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.currency-label-inline {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}

.currency-toggle-box-compact {
  display: inline-flex;
  gap: 4px;
}

.currency-btn-compact {
  padding: 5px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.currency-btn-compact.active {
  background: #2563eb;
  color: #ffffff;
}

/* Grille des Cartes Tarifaires */
.saas-section-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.saas-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.saas-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.saas-section-desc {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.saas-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* Cartes Prix Individuelles */
.saas-price-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.saas-price-card:hover {
  transform: translateY(-6px);
  border-color: #93c5fd;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.12);
}

/* Carte Populaire / Recommandée */
.saas-price-card.card-featured {
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
  border: 2px solid #2563eb;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.16);
  transform: scale(1.02);
}

.saas-price-card.card-featured:hover {
  transform: scale(1.02) translateY(-6px);
}

.saas-card-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
}

.saas-card-badge.badge-popular {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.saas-card-badge.ent-badge {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  border: none;
}

.saas-card-plan-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin: 8px 0 4px;
}

.saas-card-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 12px;
  line-height: 1.4;
}

.saas-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 12px 0 8px;
}

.saas-card-price .price-val {
  font-size: 2.1rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1;
}

.saas-card-price .price-period {
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
}

.saas-card-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 14px 0 16px;
}

.saas-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.saas-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.45;
}

.saas-card-features .check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-weight: 800;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.saas-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.saas-card-btn.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.saas-card-btn.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.saas-card-btn.btn-outline {
  background: #f8fafc;
  color: #2563eb;
  border: 1.5px solid #bfdbfe;
}

.saas-card-btn.btn-outline:hover {
  background: #eff6ff;
  border-color: #2563eb;
  transform: translateY(-2px);
}

.saas-card-btn.btn-enterprise {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
}

.saas-card-btn.btn-enterprise:hover {
  background: linear-gradient(135deg, #1e293b, #334155);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.4);
}

/* Carte Calculateur Sur-Mesure */
.card-custom-enterprise {
  border: 2px dashed #93c5fd;
  background: #fafcff;
}

.custom-calc-controls {
  margin: 14px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-header-row label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
}

.slider-count-badge {
  background: #2563eb;
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
}

.custom-range-slider {
  width: 100%;
  accent-color: #2563eb;
  height: 6px;
  border-radius: 4px;
  cursor: pointer;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
  padding: 0 2px;
}

.custom-per-student-rate {
  font-size: 0.82rem;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 6px;
}

/* Barre de Réassurance */
.saas-pricing-reassurance {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
}

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

.reassurance-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reassurance-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reassurance-icon svg {
  width: 22px;
  height: 22px;
}

.reassurance-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reassurance-text strong {
  font-size: 0.9rem;
  color: #0f172a;
}

.reassurance-text span {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

/* Responsive Pricing Mobile & Petits Écrans - Zéro Débordement Garanti */
@media (max-width: 991px) {
  .saas-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .saas-price-card.card-featured {
    transform: none;
  }

  .saas-price-card.card-featured:hover {
    transform: translateY(-6px);
  }

  .reassurance-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  /* Conteneur principal sans double padding */
  .ce-main-container {
    padding: 8px 10px 30px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: clip !important;
  }

  .saas-pricing-page {
    padding: 14px 2px 60px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: clip !important;
    gap: 20px !important;
  }

  .saas-pricing-hero {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
    gap: 10px !important;
  }

  .saas-badge-pill {
    max-width: 100% !important;
    font-size: 0.72rem !important;
    padding: 4px 10px !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
  }

  .saas-hero-title {
    font-size: 1.38rem !important;
    line-height: 1.25 !important;
    letter-spacing: -0.3px !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    padding: 0 2px !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  .saas-hero-sub {
    font-size: 0.86rem !important;
    line-height: 1.45 !important;
    padding: 0 4px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  /* Boîte avertissement E.O. */
  .saas-pricing-hero>div[style*="background: #fffbeb"],
  .saas-eo-warning-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 10px 0 0 0 !important;
    padding: 10px 12px !important;
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }

  /* Contrôles Catégorie & Devise sur mobile */
  .pricing-controls-row {
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    margin-top: 6px !important;
  }

  .pricing-category-pill-box {
    display: flex !important;
    width: 100% !important;
    max-width: 320px !important;
    box-sizing: border-box !important;
    padding: 3px !important;
  }

  .pricing-cat-btn {
    flex: 1 1 50% !important;
    padding: 8px 6px !important;
    font-size: 0.82rem !important;
    white-space: normal !important;
    text-align: center !important;
    min-width: 0 !important;
  }

  .saas-currency-selector-inline {
    display: inline-flex !important;
    max-width: 100% !important;
    justify-content: center !important;
    padding: 3px 8px !important;
  }

  /* Sections et Grille de cartes */
  .saas-section-block {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 16px !important;
  }

  .saas-section-header {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
  }

  .saas-section-title {
    font-size: 1.25rem !important;
    word-break: break-word !important;
  }

  .saas-section-desc {
    font-size: 0.84rem !important;
    line-height: 1.4 !important;
  }

  .saas-pricing-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 18px !important;
    padding: 0 !important;
  }

  .saas-price-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 20px 16px !important;
    border-radius: 16px !important;
  }

  .saas-price-card.card-featured {
    transform: none !important;
  }

  /* Calculateur Entreprise sur mobile */
  .card-custom-enterprise {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Réassurance sur mobile */
  .saas-pricing-reassurance {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 16px 12px !important;
  }

  .reassurance-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .reassurance-item {
    align-items: flex-start !important;
  }
}

@media (max-width: 480px) {
  .saas-hero-title {
    font-size: 1.25rem !important;
  }

  .saas-price-card {
    padding: 18px 14px !important;
  }
}

/* ==========================================================
   PAGE D'ACCUEIL SAAS (LANDING PAGE) & HERO PLEINE LARGEUR (FULL-WIDTH)
   ========================================================== */
.saas-landing-page {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero Section Haute Précision - 100% de la largeur d'écran, collé à l'App Bar */
.landing-hero-section {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 32px 20px 48px 20px;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.28) 0%, rgba(15, 23, 42, 0.96) 65%),
    linear-gradient(180deg, #0b1329 0%, #0f172a 50%, #1e293b 100%);
  color: #ffffff;
  text-align: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.landing-hero-content {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: #93c5fd;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 12px;
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.35);
  animation: badge-glow 2.5s infinite alternate;
}

.landing-main-title {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 900;
  line-height: 1.18;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  max-width: 980px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.landing-main-title .title-highlight {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(96, 165, 250, 0.4));
}

.landing-main-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: #cbd5e1;
  max-width: 820px;
  line-height: 1.65;
  margin: 0 auto 24px auto;
}

.landing-hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
  width: 100%;
}

.landing-btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.landing-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.6);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.landing-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.landing-btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.landing-stats-pills {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 0.88rem;
  color: #94a3b8;
  backdrop-filter: blur(4px);
}

.stat-pill strong {
  color: #60a5fa;
  font-weight: 800;
  margin-right: 4px;
}

/* ==========================================================
   SECTION 4 MODULES D'ENTRAÎNEMENT
   ========================================================== */
.landing-modules-section {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.landing-section-title-box {
  text-align: center;
  margin-bottom: 28px;
}

.landing-section-title-box h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.landing-section-title-box p {
  color: #64748b;
  font-size: 1.05rem;
}

.landing-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.landing-module-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.landing-module-card:hover {
  transform: translateY(-6px);
  border-color: #3b82f6;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.landing-module-card .module-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.landing-module-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.landing-module-card p {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.landing-module-card .module-stat {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.landing-module-card .module-card-btn {
  background: #f8fafc;
  color: #2563eb;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  text-align: center;
}

.landing-module-card:hover .module-card-btn {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* ==========================================================
   SECTION TABLEAU D'ÉQUIVALENCE NCLC OFFICIEL (5 COLONNES COMPACTES)
   ========================================================== */
.landing-nclc-section {
  width: 100%;
  max-width: 900px;
  margin: 30px auto 60px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.nclc-official-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.nclc-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  width: 100%;
}

.nclc-table-scroll {
  width: 100%;
  overflow-x: hidden;
}

.nclc-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.92rem;
}

.nclc-table thead {
  background: #0f172a;
  color: #ffffff;
}

.nclc-table th {
  padding: 12px 6px;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.2px;
  border-bottom: 2px solid #1e293b;
  line-height: 1.25;
}

/* 5 colonnes réparties équitablement à 100% de la largeur */
.nclc-table th:nth-child(1),
.nclc-table td:nth-child(1) {
  width: 18%;
}

.nclc-table th:nth-child(2),
.nclc-table td:nth-child(2) {
  width: 20.5%;
}

.nclc-table th:nth-child(3),
.nclc-table td:nth-child(3) {
  width: 20.5%;
}

.nclc-table th:nth-child(4),
.nclc-table td:nth-child(4) {
  width: 20.5%;
}

.nclc-table th:nth-child(5),
.nclc-table td:nth-child(5) {
  width: 20.5%;
}

.nclc-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.nclc-table tbody tr:hover {
  background-color: #f8fafc;
}

.nclc-table td {
  padding: 12px 6px;
  color: #334155;
  vertical-align: middle;
  font-size: 0.92rem;
}

.nclc-table td strong {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
}

.td-nclc-pill {
  padding: 8px 4px !important;
}

.nclc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 0.9rem;
  background: #f1f5f9;
  color: #0f172a;
}

.nclc-pill.pill-gold {
  background: linear-gradient(135deg, #fef08a 0%, #facc15 100%);
  color: #854d0e;
  border: 1px solid #eab308;
}

.nclc-pill.pill-silver {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  color: #334155;
  border: 1px solid #94a3b8;
}

.nclc-pill.pill-target {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid #1e40af;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* Ligne mise en avant pour NCLC 7 */
.row-level-target {
  background: #eff6ff !important;
  font-weight: 700;
  border-left: 4px solid #2563eb;
}

.row-level-target td strong {
  color: #1d4ed8;
}

.nclc-table-footer-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: #fffbeb;
  border-top: 1px solid #fef3c7;
  color: #92400e;
  font-size: 0.88rem;
  line-height: 1.45;
}

.nclc-table-footer-tip .tip-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Responsive Tableau sur Petit Écran (Mobile <= 600px) : Zéro Défilement */
@media (max-width: 600px) {
  .landing-nclc-section {
    padding: 0 8px;
    margin: 20px auto 40px auto;
  }

  .nclc-table {
    font-size: 0.76rem;
  }

  .nclc-table th {
    padding: 8px 2px;
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .nclc-table td {
    padding: 8px 2px;
    font-size: 0.76rem;
  }

  .nclc-table td strong {
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .nclc-pill {
    min-width: 26px;
    height: 24px;
    font-size: 0.72rem;
    padding: 0 4px;
    border-radius: 5px;
  }

  .td-nclc-pill {
    padding: 6px 2px !important;
  }

  .nclc-table-footer-tip {
    padding: 10px 12px;
    font-size: 0.76rem;
    gap: 8px;
  }
}

/* ==========================================================
   BOUTONS FLOTTANTS (REMONTER EN HAUT & WHATSAPP)
   ========================================================== */
.floating-action-scrolltop {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.85);
}

.floating-action-scrolltop.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-action-scrolltop:hover {
  background: #1d4ed8;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.55);
}

.floating-action-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: pulse-wa 2.5s infinite;
  text-decoration: none;
}

.floating-action-whatsapp:hover {
  background: #16a34a;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.6);
}

@keyframes pulse-wa {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@media (max-width: 768px) {
  .floating-action-scrolltop {
    bottom: 74px;
    left: 16px;
    width: 42px;
    height: 42px;
  }

  .floating-action-whatsapp {
    bottom: 74px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
}

/* ==========================================================
   STYLE PROFIL MOT DE PASSE & TABLEAU ÉTUDIANTS CENTRE
   ========================================================== */
.label-with-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.label-hint {
  font-size: 0.78rem;
  color: #2563eb;
  font-weight: 600;
}

.current-pass-input {
  background: #f8fafc !important;
  color: #1e293b !important;
  font-weight: 700;
  letter-spacing: 1px;
}

.student-pass-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.st-pass-masked {
  letter-spacing: 2px;
  color: #64748b;
  font-weight: 700;
}

.btn-st-eye {
  background: #e2e8f0;
  border: none;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-st-eye:hover {
  background: #cbd5e1;
}

.btn-st-copy {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-st-copy:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.code-email {
  font-family: monospace;
  font-size: 0.88rem;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  color: #0f172a;
}

/* ==========================================================
   ALIGNEMENT STRICT DES CONTRÔLES TARIFS (MÊME LIGNE HORIZONTALE)
   ========================================================== */
.pricing-controls-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  margin: 18px auto 8px auto !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}

.pricing-category-pill-box {
  display: inline-flex !important;
  align-items: center !important;
  background: #f1f5f9 !important;
  padding: 4px !important;
  border-radius: 16px !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  height: 48px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.pricing-cat-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
  padding: 0 20px !important;
  border-radius: 12px !important;
  border: none !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.pricing-cat-btn:hover {
  color: #0f172a !important;
}

.pricing-cat-btn.active {
  background: #ffffff !important;
  color: #2563eb !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.saas-currency-selector-inline {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #ffffff !important;
  padding: 4px 10px !important;
  border-radius: 16px !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
  height: 48px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.currency-label-inline {
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  color: #475569 !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

.currency-toggle-box-compact {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: #f1f5f9 !important;
  padding: 3px !important;
  border-radius: 12px !important;
}

.currency-btn-compact {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 34px !important;
  padding: 0 14px !important;
  border-radius: 9px !important;
  border: none !important;
  background: transparent !important;
  color: #64748b !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
}

.currency-btn-compact.active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
}

/* ==========================================================
   BADGES DE PACKS SANS DÉBORDEMENT & TOTALEMENT DANS LE CERCLE
   ========================================================== */
.saas-card-badge {
  position: absolute !important;
  top: -14px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  padding: 5px 20px !important;
  border-radius: 999px !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  max-width: 90% !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  z-index: 2 !important;
  box-sizing: border-box !important;
}

.saas-card-badge.badge-popular {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

.saas-card-badge.ent-badge {
  background: linear-gradient(135deg, #0f172a, #1e293b) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3) !important;
}

/* ==========================================================
   DÉFILEMENT INFINI MARQUEE (SOLUTIONS DE PAIEMENT & DRAPEAUX)
   ========================================================== */
.marquee-countries-wrap {
  width: 100% !important;
  overflow: hidden !important;
  position: relative !important;
  padding: 14px 0 !important;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.marquee-countries-track {
  display: flex !important;
  gap: 18px !important;
  width: max-content !important;
  animation: marqueeCountries 26s linear infinite !important;
}

.marquee-countries-track:hover {
  animation-play-state: paused !important;
}

@keyframes marqueeCountries {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.marquee-countries-track .payment-card {
  width: 220px !important;
  min-width: 220px !important;
  flex-shrink: 0 !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 16px 14px !important;
  text-align: center !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.marquee-countries-track .payment-card:hover {
  transform: translateY(-3px) !important;
  border-color: #2563eb !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12) !important;
}

.country-flag-box {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 32px !important;
  margin-bottom: 2px !important;
}

.svg-flag {
  border-radius: 4px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  display: block !important;
}

.world-flag-glyph {
  font-size: 1.8rem !important;
  line-height: 1 !important;
}

/* ==========================================================
   BOUTON REMONTER EN HAUT (OPPOSÉ À WHATSAPP)
   ========================================================== */
.floating-action-scrolltop {
  position: fixed !important;
  bottom: 28px !important;
  left: 28px !important;
  right: auto !important;
  z-index: 99999 !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5) !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(18px) scale(0.85) !important;
}

.floating-action-scrolltop.visible {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

.floating-action-scrolltop:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%) !important;
  transform: translateY(-4px) scale(1.08) !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.65) !important;
}

.floating-action-whatsapp {
  position: fixed !important;
  bottom: 28px !important;
  right: 28px !important;
  left: auto !important;
  z-index: 99999 !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: #22c55e !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.45) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
}

.floating-action-whatsapp:hover {
  transform: translateY(-3px) scale(1.06) !important;
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.6) !important;
}

@media (max-width: 768px) {
  .floating-action-scrolltop {
    bottom: 74px !important;
    left: 16px !important;
    width: 44px !important;
    height: 44px !important;
  }

  .floating-action-whatsapp {
    bottom: 74px !important;
    right: 16px !important;
    width: 50px !important;
    height: 50px !important;
  }
}

/* ==========================================================
   MODALE DE CONNEXION / CRÉATION DE COMPTE PREMIUM
   ========================================================== */
.auth-modal-content {
  position: relative !important;
  max-width: 440px !important;
  width: 92% !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  border: 1.5px solid #e2e8f0 !important;
  padding: 26px 22px !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28) !important;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  max-height: calc(100dvh - 32px) !important;
  max-height: calc(100vh - 32px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  margin: auto !important;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Croix rouge de fermeture en haut à droite */
.btn-close-auth-modal {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border: 1.5px solid #fecaca !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
  padding: 0 !important;
  z-index: 10 !important;
}

.btn-close-auth-modal:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  transform: scale(1.12) rotate(90deg) !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4) !important;
}

.auth-modal-header {
  text-align: center !important;
  margin-bottom: 22px !important;
}

.auth-flag-badge {
  display: inline-block !important;
  padding: 4px 14px !important;
  border-radius: 20px !important;
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #1d4ed8 !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 10px !important;
}

.auth-title-text {
  font-size: 1.5rem !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  margin: 0 0 6px 0 !important;
  letter-spacing: -0.3px !important;
}

.auth-desc-text {
  font-size: 0.88rem !important;
  color: #64748b !important;
  margin: 0 !important;
  line-height: 1.45 !important;
}

.auth-form-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.auth-form-body .form-group label {
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 4px !important;
}

.auth-form-body .input-form {
  padding: 12px 14px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  font-size: 0.95rem !important;
  color: #0f172a !important;
  background: #ffffff !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.auth-form-body .input-form:focus {
  outline: none !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* Bouton Connexion / Créer Compte Somptueux & Contrasté */
.btn-auth-submit {
  width: 100% !important;
  padding: 13px 20px !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 1.02rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4) !important;
  transition: all 0.25s ease !important;
  margin-top: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.btn-auth-submit:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.55) !important;
}

.btn-auth-submit:active {
  transform: translateY(0) !important;
}

.auth-error-box {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #dc2626 !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  text-align: center !important;
}

.auth-switch-mode {
  text-align: center !important;
  font-size: 0.88rem !important;
  color: #64748b !important;
  margin-top: 18px !important;
  padding-top: 14px !important;
  border-top: 1px solid #f1f5f9 !important;
}

.auth-switch-mode a {
  color: #2563eb !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  transition: color 0.15s !important;
}

.auth-switch-mode a:hover {
  color: #1d4ed8 !important;
  text-decoration: underline !important;
}

.hdr-user-badge.hdr-student {
  background: #10b981 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* ==========================================================
   MODALE D'ACCÈS PREMIUM (DÉBLOCAGE SÉRIE 6+) SOMPTUEUSE
   ========================================================== */
.unlock-premium-modal {
  position: relative !important;
  max-width: 540px !important;
  width: 92% !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  border: 1.5px solid #e2e8f0 !important;
  padding: 26px 22px !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3) !important;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  max-height: calc(100dvh - 32px) !important;
  max-height: calc(100vh - 32px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  margin: auto !important;
}

.unlock-plan-quick-choice {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  margin: 22px 0 20px 0 !important;
}

@media (max-width: 640px) {

  /* Modale Paywall Déblocage Série Compacte sur Mobile */
  .unlock-premium-modal {
    padding: 18px 14px 16px !important;
    border-radius: 16px !important;
    width: 95% !important;
    max-height: calc(100dvh - 20px) !important;
  }

  .unlock-plan-quick-choice {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 12px 0 14px 0 !important;
  }

  .quick-plan-item {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    text-align: left !important;
  }

  .quick-plan-item.featured {
    transform: none !important;
    border-width: 2px !important;
  }

  .quick-plan-badge {
    position: static !important;
    transform: none !important;
    display: inline-block !important;
    margin-bottom: 2px !important;
    font-size: 0.65rem !important;
    padding: 1px 7px !important;
  }

  .quick-plan-name {
    font-size: 0.84rem !important;
    margin-bottom: 1px !important;
  }

  .quick-plan-desc {
    font-size: 0.70rem !important;
    color: #64748b !important;
    line-height: 1.25 !important;
  }

  .quick-plan-price {
    font-size: 0.94rem !important;
    text-align: right !important;
    margin-bottom: 0 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin-left: 8px !important;
  }

  .quick-plan-sub {
    display: block !important;
    font-size: 0.70rem !important;
  }

  .unlock-modal-actions {
    margin-top: 10px !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .btn-unlock-cta {
    padding: 11px 16px !important;
    font-size: 0.95rem !important;
    border-radius: 10px !important;
  }

  .btn-unlock-stay-free {
    font-size: 0.82rem !important;
    padding: 6px !important;
  }

  /* Modale Connexion / Créer un Compte Compacte sur Mobile */
  .auth-modal-content {
    padding: 18px 16px 16px !important;
    border-radius: 16px !important;
    width: 95% !important;
    max-height: calc(100dvh - 20px) !important;
  }

  .auth-modal-header {
    margin-bottom: 10px !important;
    padding-right: 28px !important;
  }

  .auth-flag-badge {
    font-size: 0.72rem !important;
    padding: 3px 10px !important;
    margin-bottom: 6px !important;
  }

  .auth-title-text {
    font-size: 1.22rem !important;
    margin-bottom: 4px !important;
  }

  .auth-desc-text {
    font-size: 0.80rem !important;
    line-height: 1.35 !important;
  }

  .auth-form-body {
    gap: 10px !important;
  }

  .auth-form-body .form-group {
    gap: 3px !important;
  }

  .auth-form-body .form-group label {
    font-size: 0.80rem !important;
  }

  .auth-form-body .input-form {
    padding: 10px 12px !important;
    font-size: 16px !important;
    /* Min 16px pour empêcher le zoom automatique iOS / Android */
    border-radius: 8px !important;
  }

  .btn-auth-submit {
    padding: 11px 16px !important;
    font-size: 0.95rem !important;
    border-radius: 10px !important;
    margin-top: 4px !important;
  }

  .auth-switch-mode {
    margin-top: 10px !important;
    padding-top: 8px !important;
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    display: block !important;
    text-align: center !important;
  }

  /* Modales SaaS (Admin, Entreprise, Candidat, Quotas) sur Mobile */
  .saas-modal-card {
    padding: 18px 14px 16px !important;
    border-radius: 16px !important;
    width: 95% !important;
    max-height: calc(100dvh - 20px) !important;
    overflow-y: auto !important;
  }

  .saas-modal-header {
    margin-bottom: 12px !important;
    padding-right: 32px !important;
  }

  .saas-modal-actions {
    flex-direction: column-reverse !important;
    width: 100% !important;
    gap: 8px !important;
    margin-top: 12px !important;
    padding-top: 10px !important;
  }

  .btn-cancel,
  .btn-confirm,
  .btn-modal-cancel,
  .btn-modal-confirm {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 11px 14px !important;
    font-size: 0.90rem !important;
    box-sizing: border-box !important;
  }
}

.quick-plan-item {
  position: relative !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 16px 12px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.quick-plan-item:hover {
  background: #ffffff !important;
  border-color: #2563eb !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.15) !important;
}

.quick-plan-item.featured {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%) !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18) !important;
  transform: scale(1.02) !important;
}

.quick-plan-item.featured:hover {
  transform: scale(1.02) translateY(-3px) !important;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25) !important;
}

.quick-plan-badge {
  position: absolute !important;
  top: -10px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  font-size: 0.68rem !important;
  font-weight: 900 !important;
  padding: 2px 10px !important;
  border-radius: 10px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35) !important;
}

.quick-plan-name {
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 6px !important;
}

.quick-plan-price {
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  color: #2563eb !important;
  margin-bottom: 6px !important;
}

.quick-plan-sub {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
}

.quick-plan-desc {
  font-size: 0.74rem !important;
  color: #64748b !important;
  line-height: 1.35 !important;
}

.unlock-modal-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  align-items: center !important;
  margin-top: 10px !important;
}

.btn-unlock-cta {
  width: 100% !important;
  margin-top: 0 !important;
  padding: 13px 24px !important;
  font-size: 1rem !important;
}

.btn-unlock-stay-free {
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  transition: all 0.15s ease !important;
  text-decoration: underline !important;
}

.btn-unlock-stay-free:hover {
  color: #0f172a !important;
}

/* Style de luxe du bouton Mon Compte dans la Topbar */
.btn-compte-header {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 7px 15px !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
  white-space: nowrap !important;
}

.btn-compte-header:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5) !important;
}

.btn-login-header {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 15px !important;
  background: #ffffff !important;
  color: #2563eb !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  border: 1.5px solid #bfdbfe !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1) !important;
  white-space: nowrap !important;
}

.btn-login-header:hover {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
}

/* ==========================================================
   BADGES ET BOUTONS ACTIONS ADMIN (ENTREPRISES & PERSONNELS)
   ========================================================== */
.btn-action-more {
  padding: 5px 10px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-action-more:hover {
  background: #dbeafe;
  border-color: #2563eb;
  transform: translateY(-1px);
}

.btn-action-renew {
  padding: 5px 10px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-action-renew:hover {
  background: #d1fae5;
  border-color: #059669;
  transform: translateY(-1px);
}

.btn-action-delete {
  padding: 5px 10px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-action-delete:hover {
  background: #fee2e2;
  border-color: #dc2626;
  transform: translateY(-1px);
}

.btn-add-entity {
  padding: 8px 16px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
  white-space: nowrap;
}

.btn-add-entity:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.badge-devices {
  display: inline-block;
  padding: 2px 8px;
  background: #f1f5f9;
  color: #334155;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid #e2e8f0;
}

.badge-quota {
  display: inline-block;
  padding: 2px 8px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid #bfdbfe;
}

.badge-quota.quota-full {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.badge-plan {
  display: inline-block;
  padding: 2px 8px;
  background: #f0fdf4;
  color: #166534;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid #bbf7d0;
}

.entity-actions-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ==========================================================
   PAGINATION ÉLÉGANTE DES TABLEAUX SAAS (7 ÉLÉMENTS PAR PAGE)
   ========================================================== */
.tcf-table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1.5px solid #e2e8f0;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  font-size: 0.82rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.pagination-info {
  font-weight: 500;
  color: #475569;
}

.pagination-info strong {
  color: #0f172a;
  font-weight: 700;
}

.pagination-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-page-arrow {
  padding: 5px 12px;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-page-arrow:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-page-arrow:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f8fafc;
}

.pagination-pages-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-page-num {
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-page-num:hover:not(.active) {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-page-num.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}


/* ==========================================================
   STYLES SAAS PREMIUM POUR TOUTES LES MODALES DU TABLEAU DE BORD
   (Création Candidat, Renouvellement, Ajout Entreprise, Voir Plus, Édition)
   ========================================================== */
.modal-backdrop.active,
.modal-backdrop,
.saas-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  background: rgba(15, 23, 42, 0.65) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Centrage universel parfait au milieu sur tous les écrans (Android, iOS, PC fenêtres réduites) */
.modal-backdrop.active,
.modal-backdrop,
.saas-modal-backdrop {
  align-items: center !important;
  justify-content: center !important;
}

.modal-backdrop > div,
.modal-content,
.saas-modal-card,
.tcf-exam-mode-card {
  margin: auto !important;
  align-self: center !important;
  box-sizing: border-box !important;
}

@media (max-height: 600px) {
  .modal-backdrop.active,
  .modal-backdrop,
  .saas-modal-backdrop {
    padding: 10px 8px !important;
  }
}

.saas-modal-card {
  position: relative !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
  padding: 30px 26px !important;
  box-sizing: border-box !important;
  animation: saasModalPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  color: #0f172a !important;
  text-align: left !important;
}

@keyframes saasModalPopIn {
  from {
    opacity: 0;
    transform: scale(0.93) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.btn-close-saas-modal {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border: 1.5px solid #fecaca !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
  padding: 0 !important;
  z-index: 30 !important;
}

.btn-close-saas-modal:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  transform: scale(1.1) rotate(90deg) !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35) !important;
}

.saas-modal-header {
  margin-bottom: 20px !important;
  padding-right: 36px !important;
}

.saas-modal-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #1d4ed8 !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px !important;
  margin-bottom: 8px !important;
}

.saas-modal-title {
  margin: 0 0 6px 0 !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.3px !important;
}

.saas-modal-subtitle {
  margin: 0 !important;
  font-size: 0.86rem !important;
  color: #64748b !important;
  line-height: 1.45 !important;
}

.saas-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.saas-form-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  text-align: left !important;
}

.saas-form-label {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.saas-form-input,
.saas-form-select,
.input-form {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 11px 14px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  font-size: 0.92rem !important;
  color: #0f172a !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  font-family: inherit !important;
}

.saas-form-input:focus,
.saas-form-select:focus,
.input-form:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
  background: #ffffff !important;
}

.saas-modal-actions,
.modal-actions {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 18px !important;
  padding-top: 16px !important;
  border-top: 1px solid #f1f5f9 !important;
}

.btn-cancel,
.btn-modal-cancel {
  padding: 10px 18px !important;
  border-radius: 9px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1.5px solid #cbd5e1 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.btn-cancel:hover,
.btn-modal-cancel:hover {
  background: #e2e8f0 !important;
  color: #1e293b !important;
  border-color: #94a3b8 !important;
}

.btn-confirm,
.btn-modal-confirm {
  padding: 10px 22px !important;
  border-radius: 9px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

.btn-confirm:hover,
.btn-modal-confirm:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}


/* ==========================================================
   STATISTIQUES ADMINISTRATEUR (Cartes avec couleur en haut)
   ========================================================== */
.admin-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
  gap: 16px !important;
  margin: 16px 0 24px 0 !important;
}

.stat-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 22px 18px !important;
  text-align: center !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.stat-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
  border-color: #cbd5e1 !important;
}

.stat-card:nth-child(1) {
  border-top: 4px solid #0f172a !important;
}

.stat-card:nth-child(2) {
  border-top: 4px solid #2563eb !important;
}

.stat-card:nth-child(3) {
  border-top: 4px solid #7c3aed !important;
}

.stat-card:nth-child(4) {
  border-top: 4px solid #059669 !important;
}

.stat-num {
  font-size: 2.3rem !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  line-height: 1 !important;
  margin-bottom: 8px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.stat-label {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* ==========================================================
   BOUTONS PRINCIPAUX (.btn-primary)
   ========================================================== */
.btn-primary,
button.btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 22px !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 9px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.btn-primary:hover,
button.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

/* ==========================================================
   TABLEAUX SAAS PROFESSIONNELS (Bordures nettes & claires, Pleine Largeur & Défilement)
   ========================================================== */
.tab-header-box {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin-bottom: 16px !important;
  padding: 2px 0 !important;
}

.tab-title {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 4px !important;
  letter-spacing: -0.3px !important;
}

.tab-subtitle {
  font-size: 0.88rem !important;
  color: #64748b !important;
  margin: 0 !important;
  line-height: 1.45 !important;
}

.students-table-wrap,
.admin-users-table-wrap {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
  overflow: hidden !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  margin-top: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  scrollbar-color: #94a3b8 #f1f5f9 !important;
}

/* Conteneur de défilement horizontal responsive fluide */
.table-responsive {
  width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch !important;
  display: block !important;
  scrollbar-width: thin !important;
  scrollbar-color: #94a3b8 #f1f5f9 !important;
}

.table-responsive::-webkit-scrollbar,
.students-table-wrap::-webkit-scrollbar {
  height: 8px !important;
  width: 8px !important;
  height: 10px !important;
  width: 10px !important;
  display: block !important;
}

.table-responsive::-webkit-scrollbar-track,
.students-table-wrap::-webkit-scrollbar-track {
  background: #f8fafc !important;
  background: #f1f5f9 !important;
  border-radius: 6px !important;
}

.table-responsive::-webkit-scrollbar-thumb,
.students-table-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border-radius: 4px !important;
  background: #94a3b8 !important;
  border-radius: 6px !important;
  border: 2px solid #f1f5f9 !important;
}

.table-responsive::-webkit-scrollbar-thumb:hover,
.students-table-wrap::-webkit-scrollbar-thumb:hover {
  background: #94a3b8 !important;
  background: #64748b !important;
}

.students-table {
  width: 100% !important;
  min-width: 960px !important;
  border-collapse: collapse !important;
  font-size: 0.88rem !important;
  text-align: left !important;
  background: #ffffff !important;
}

.students-table thead {
  background: #f8fafc !important;
  border-bottom: 2px solid #cbd5e1 !important;
}

.students-table th {
  padding: 14px 16px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  color: #334155 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 2px solid #cbd5e1 !important;
  border-right: 1px solid #f1f5f9 !important;
  white-space: nowrap !important;
  background: #f8fafc !important;
}

.students-table th:last-child {
  border-right: none !important;
}

.students-table td {
  padding: 14px 16px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-right: 1px solid #f8fafc !important;
  color: #1e293b !important;
  vertical-align: middle !important;
  font-size: 0.88rem !important;
  line-height: 1.4 !important;
}

.students-table td:last-child {
  border-right: none !important;
}

.students-table tbody tr {
  transition: background 0.15s ease !important;
}

.students-table tbody tr:hover {
  background: #f8fafc !important;
}

.students-table tbody tr:last-child td {
  border-bottom: none !important;
}

/* Badges de Rôles */
.role-badge {
  display: inline-block !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.role-badge.role-admin {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
}

.role-badge.role-enterprise {
  background: #ede9fe !important;
  color: #6d28d9 !important;
  border: 1px solid #ddd6fe !important;
}

.role-badge.role-personal {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
}

.role-badge.role-student {
  background: #f0fdf4 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
}

.role-badge.role-free {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

/* Badges d'état */
.badge-status-active {
  display: inline-block !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  font-size: 0.75rem !important;
  white-space: nowrap !important;
}

.badge-status-expired {
  display: inline-block !important;
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  font-size: 0.75rem !important;
  white-space: nowrap !important;
}

.badge-plan-personal {
  display: inline-block !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  font-size: 0.75rem !important;
  white-space: nowrap !important;
}

.badge-quota {
  display: inline-block !important;
  background: #f5f3ff !important;
  color: #6d28d9 !important;
  border: 1px solid #ddd6fe !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  font-size: 0.75rem !important;
  white-space: nowrap !important;
}

.badge-devices,
.student-device-count-badge {
  display: inline-block !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  font-size: 0.75rem !important;
  white-space: nowrap !important;
}

/* Boutons d'action dans le tableau */
.table-actions-cell {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
}

.btn-action-more {
  padding: 6px 14px !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 7px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
}

.btn-action-more:hover {
  background: #dbeafe !important;
  color: #1e40af !important;
  border-color: #93c5fd !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

.btn-action-renew {
  padding: 6px 14px !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
  border-radius: 7px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
}

.btn-action-renew:hover {
  background: #d1fae5 !important;
  border-color: #6ee7b7 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15);
}

.btn-action-delete,
.btn-delete-student {
  padding: 6px 14px !important;
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
  border-radius: 7px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
}

.btn-action-delete:hover,
.btn-delete-student:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
}

.btn-action-edit {
  padding: 6px 16px !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 7px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
}

.btn-action-edit:hover {
  background: #dbeafe !important;
  border-color: #93c5fd !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

.student-pass-cell {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #f8fafc !important;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  white-space: nowrap !important;
}

.btn-st-copy {
  padding: 3px 8px !important;
  background: #eff6ff !important;
  color: #2563eb !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 5px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.btn-st-copy:hover {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}

.btn-st-eye {
  padding: 3px 6px !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 5px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

/* ==========================================================
   PAGINATION PARFAITEMENT STYLISÉE ET RESPONSIVE
   ========================================================== */
.tcf-table-pagination {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 14px 20px !important;
  background: #f8fafc !important;
  border-top: 1.5px solid #cbd5e1 !important;
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
  text-align: left !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  flex-wrap: wrap !important;
}

.tcf-table-pagination .pagination-info {
  font-size: 0.85rem !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.tcf-table-pagination .pagination-info strong {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.tcf-table-pagination .pagination-nav {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

@media (max-width: 768px) {
  .tcf-table-pagination {
    flex-direction: column !important;
    text-align: center !important;
    justify-content: center !important;
    gap: 10px !important;
  }
}

/* ==========================================================
   DOKAR CANADA - CHARTE GRAPHIQUE OFFICIELLE & HERO FULLSCREEN CAROUSEL
   Palette : Bleu Nuit Profond (#070d1e, #0a1128) & Or Métallique Chaud (#c5a059, #dfb15b)
   ========================================================== */

/* Logos Dokar */
.brand-logo-img {
  height: 38px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain !important;
  border-radius: 6px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin-right: 8px !important;
  transition: transform 0.2s ease !important;
}

.brand-logo-img:hover {
  transform: scale(1.04) !important;
}

.footer-logo-img {
  height: 48px !important;
  width: auto !important;
  border-radius: 8px !important;
  object-fit: contain !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

.dokar-badge-logo {
  height: 22px !important;
  width: auto !important;
  border-radius: 4px !important;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* En-tête Top Header & Navigation Dokar */
.top-header {
  background: #070d1e !important;
  border-bottom: 2px solid rgba(197, 160, 89, 0.35) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
}

.header-brand {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
}

.header-brand .brand-title {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.22rem !important;
  letter-spacing: -0.3px !important;
}

.main-nav-tab.active {
  color: #dfb15b !important;
  background: rgba(197, 160, 89, 0.12) !important;
  border-bottom: 2.5px solid #dfb15b !important;
}

.nav-tab-tarifs.active {
  color: #dfb15b !important;
  font-weight: 800 !important;
}

.btn-login-header {
  background: linear-gradient(135deg, #dfb15b 0%, #c5a059 100%) !important;
  color: #070d1e !important;
  font-weight: 800 !important;
  border: 1px solid #fef08a !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 12px rgba(197, 160, 89, 0.3) !important;
  transition: all 0.2s ease !important;
}

.btn-login-header:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 18px rgba(197, 160, 89, 0.5) !important;
  background: linear-gradient(135deg, #e5be6e 0%, #d4af37 100%) !important;
}

.btn-compte-header {
  background: rgba(197, 160, 89, 0.15) !important;
  color: #f7df94 !important;
  border: 1px solid rgba(197, 160, 89, 0.4) !important;
  border-radius: 10px !important;
}

/* Landing Container Plein Écran (100% Edge-to-Edge) */
.landing-container-fullwidth {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow-x: clip !important;
}

/* Hero Section Dokar Fullscreen */
.dokar-hero-fullscreen {
  width: 100% !important;
  min-height: 580px !important;
  position: relative !important;
  overflow: hidden !important;
  background: radial-gradient(ellipse at 50% -10%, rgba(197, 160, 89, 0.22) 0%, rgba(7, 13, 30, 0.98) 70%),
    linear-gradient(180deg, #070d1e 0%, #0a1128 50%, #0f172a 100%) !important;
  border-bottom: 2px solid rgba(197, 160, 89, 0.3) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.dokar-hero-ambient-glow {
  position: absolute !important;
  top: -120px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 650px !important;
  height: 350px !important;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.18) 0%, transparent 70%) !important;
  pointer-events: none !important;
  filter: blur(50px) !important;
}

/* Carousel Dokar */
.dokar-carousel {
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  overflow: hidden !important;
  min-height: 480px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.dokar-carousel-track {
  width: 100% !important;
  position: relative !important;
  min-height: 460px !important;
}

.dokar-slide {
  position: absolute !important;
  inset: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateX(40px) scale(0.98) !important;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.55s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  width: 100% !important;
}

.dokar-slide.active {
  position: relative !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(0) scale(1) !important;
  pointer-events: auto !important;
}

.dokar-slide-content {
  max-width: 1120px !important;
  width: 92% !important;
  margin: 0 auto !important;
  padding: 48px 20px 60px 20px !important;
  text-align: center !important;
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 380px !important;
}

/* Badge Dokar Hero */
.dokar-hero-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 22px !important;
  border-radius: 9999px !important;
  background: rgba(197, 160, 89, 0.14) !important;
  border: 1px solid rgba(197, 160, 89, 0.45) !important;
  color: #f7df94 !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 0 24px rgba(197, 160, 89, 0.25) !important;
  backdrop-filter: blur(8px) !important;
  animation: dokar-badge-pulse 3s infinite alternate !important;
}

@keyframes dokar-badge-pulse {
  0% {
    box-shadow: 0 0 16px rgba(197, 160, 89, 0.2);
  }

  100% {
    box-shadow: 0 0 28px rgba(197, 160, 89, 0.45);
  }
}

/* Titre & Sous-titre Dokar Hero */
.dokar-hero-title {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: #ffffff !important;
  margin: 0 0 16px 0 !important;
  letter-spacing: -0.5px !important;
  max-width: 980px !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6) !important;
  min-height: clamp(4.4rem, 7.5vw, 6.2rem) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-align: center !important;
}

.dokar-hero-subline {
  font-size: clamp(1.15rem, 2.1vw, 1.55rem) !important;
  font-weight: 700 !important;
  color: #dfb15b !important;
  letter-spacing: 0.2px !important;
  display: block !important;
  text-shadow: 0 2px 10px rgba(197, 160, 89, 0.35) !important;
}

.dokar-gold-text {
  color: #dfb15b !important;
  text-shadow: 0 2px 10px rgba(197, 160, 89, 0.45) !important;
}

.dokar-hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.18rem) !important;
  color: #cbd5e1 !important;
  max-width: 860px !important;
  line-height: 1.7 !important;
  margin: 0 auto 30px auto !important;
  font-weight: 400 !important;
  min-height: clamp(3.5rem, 5.5vw, 4.6rem) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Rangée de CTA Dokar */
.dokar-hero-cta-row {
  display: flex !important;
  gap: 16px !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  margin-bottom: 0 !important;
  width: 100% !important;
}

.btn-dokar-gold {
  background: linear-gradient(135deg, #dfb15b 0%, #c5a059 100%) !important;
  color: #070d1e !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  padding: 14px 30px !important;
  border-radius: 12px !important;
  border: 1px solid #fef08a !important;
  box-shadow: 0 4px 22px rgba(197, 160, 89, 0.45) !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.btn-dokar-gold:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 28px rgba(197, 160, 89, 0.65) !important;
  background: linear-gradient(135deg, #e5be6e 0%, #d4af37 100%) !important;
}

.btn-dokar-outline {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  padding: 14px 28px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(197, 160, 89, 0.45) !important;
  backdrop-filter: blur(8px) !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.btn-dokar-outline:hover {
  transform: translateY(-2px) !important;
  background: rgba(197, 160, 89, 0.18) !important;
  border-color: #dfb15b !important;
  color: #fef08a !important;
}

/* Pastilles de Statistiques Dokar */
.dokar-stats-pills {
  display: flex !important;
  gap: 10px !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.dokar-stat-pill {
  background: rgba(10, 17, 40, 0.72) !important;
  border: 1px solid rgba(197, 160, 89, 0.3) !important;
  padding: 7px 18px !important;
  border-radius: 9999px !important;
  font-size: 0.88rem !important;
  color: #cbd5e1 !important;
  backdrop-filter: blur(6px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.pill-gold {
  color: #dfb15b !important;
  font-weight: 800 !important;
  margin-right: 4px !important;
}

/* Section Pourquoi Choisir Notre Plateforme */
.landing-why-section {
  padding: 64px 20px 72px 20px !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  position: relative !important;
}

.why-badge {
  display: inline-block !important;
  padding: 6px 18px !important;
  background: rgba(197, 160, 89, 0.12) !important;
  color: #b48328 !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(197, 160, 89, 0.35) !important;
  margin-bottom: 12px !important;
}

.why-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
  gap: 22px !important;
  margin-top: 36px !important;
}

.why-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 28px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  transition: all 0.25s ease !important;
  position: relative !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03) !important;
}

.why-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
  border-color: #cbd5e1 !important;
}

.why-icon-box {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  background: #eff6ff !important;
  color: #2563eb !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 16px !important;
}

.why-icon-box svg {
  width: 24px !important;
  height: 24px !important;
}

.why-card-metric {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  color: #dfb15b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 6px !important;
}

.why-card h3 {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.3 !important;
}

.why-card p {
  font-size: 0.9rem !important;
  color: #64748b !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

/* Flèches de navigation du Carousel */
.dokar-carousel-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: rgba(7, 13, 30, 0.78) !important;
  border: 1.5px solid rgba(197, 160, 89, 0.5) !important;
  color: #dfb15b !important;
  font-size: 28px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 10 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(8px) !important;
}

.dokar-carousel-arrow:hover {
  background: linear-gradient(135deg, #dfb15b 0%, #c5a059 100%) !important;
  color: #070d1e !important;
  transform: translateY(-50%) scale(1.1) !important;
  box-shadow: 0 6px 24px rgba(197, 160, 89, 0.6) !important;
}

.arrow-prev {
  left: 24px !important;
}

.arrow-next {
  right: 24px !important;
}

/* Indicateurs Points (Dots) */
.dokar-carousel-dots {
  position: absolute !important;
  bottom: 22px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  gap: 10px !important;
  z-index: 10 !important;
}

.carousel-dot {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.22) !important;
  border: 1.5px solid rgba(197, 160, 89, 0.45) !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding: 0 !important;
}

.carousel-dot.active {
  width: 34px !important;
  border-radius: 6px !important;
  background: linear-gradient(135deg, #dfb15b 0%, #c5a059 100%) !important;
  border-color: #fef08a !important;
  box-shadow: 0 0 14px rgba(197, 160, 89, 0.75) !important;
}

/* Pied de page Dokar */
.saas-global-footer {
  background: #070d1e !important;
  border-top: 2px solid rgba(197, 160, 89, 0.3) !important;
  color: #cbd5e1 !important;
}

.saas-global-footer a:hover {
  color: #dfb15b !important;
}

.footer-brand-title {
  color: #ffffff !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.3px !important;
}

/* Ajustement de la largeur maximale du Dashboard pour un confort optimal */
.saas-dashboard-wrapper {
  max-width: 1600px !important;
  width: 98% !important;
  margin: 0 auto !important;
  padding: 24px 20px 80px !important;
  box-sizing: border-box !important;
}

/* Ligne des boutons d'actions dans les tableaux */
.table-actions-cell {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
}

.table-actions-cell button {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Amélioration Responsive pour Mobile et Tablettes */
@media (max-width: 900px) {
  .dokar-carousel-arrow {
    display: none !important;
    /* Navigation par swipe et dots sur mobile */
  }

  .dokar-slide-content {
    padding: 36px 16px 64px 16px !important;
  }

  .dokar-hero-cta-row {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .dokar-hero-cta-row button {
    width: 100% !important;
    justify-content: center !important;
  }
}


/* ==========================================================
   MASQUAGE BOUTONS FLOTTANTS DANS TOUTES LES SÉRIES / EXAMENS (TOUS MODULES & TOUS ÉCRANS)
   ========================================================== */
body.in-exam-mode #floating-whatsapp-btn,
body.in-exam-mode .floating-action-whatsapp,
body.in-exam-mode #floating-scroll-top-btn,
body.in-exam-mode .floating-action-scrolltop,
body.in-eo-exam-mode #floating-whatsapp-btn,
body.in-eo-exam-mode .floating-action-whatsapp,
body.in-eo-exam-mode #floating-scroll-top-btn,
body.in-eo-exam-mode .floating-action-scrolltop,
body:has(.ce-simulator-layout) #floating-whatsapp-btn,
body:has(.ce-simulator-layout) .floating-action-whatsapp,
body:has(.ce-simulator-layout) #floating-scroll-top-btn,
body:has(.ce-simulator-layout) .floating-action-scrolltop,
body:has(.ce-results-card) #floating-whatsapp-btn,
body:has(.ce-results-card) .floating-action-whatsapp,
body:has(.ce-results-card) #floating-scroll-top-btn,
body:has(.ce-results-card) .floating-action-scrolltop,
body:has(.simulator-container) #floating-whatsapp-btn,
body:has(.simulator-container) .floating-action-whatsapp,
body:has(.simulator-container) #floating-scroll-top-btn,
body:has(.simulator-container) .floating-action-scrolltop,
body:has(.report-card) #floating-whatsapp-btn,
body:has(.report-card) .floating-action-whatsapp,
body:has(.report-card) #floating-scroll-top-btn,
body:has(.report-card) .floating-action-scrolltop,
body:has(#report-container) #floating-whatsapp-btn,
body:has(#report-container) .floating-action-whatsapp,
body:has(#report-container) #floating-scroll-top-btn,
body:has(#report-container) .floating-action-scrolltop,
body:has(.eo-simulator-room) #floating-whatsapp-btn,
body:has(.eo-simulator-room) .floating-action-whatsapp,
body:has(.eo-simulator-room) #floating-scroll-top-btn,
body:has(.eo-simulator-room) .floating-action-scrolltop,
body:has(.eo-serie-details-wrapper) #floating-whatsapp-btn,
body:has(.eo-serie-details-wrapper) .floating-action-whatsapp,
body:has(.eo-serie-details-wrapper) #floating-scroll-top-btn,
body:has(.eo-serie-details-wrapper) .floating-action-scrolltop,
body:has(.eo-evaluation-card) #floating-whatsapp-btn,
body:has(.eo-evaluation-card) .floating-action-whatsapp,
body:has(.eo-evaluation-card) #floating-scroll-top-btn,
body:has(.eo-evaluation-card) .floating-action-scrolltop,
body:has([id^="sim-task-box"]) #floating-whatsapp-btn,
body:has([id^="sim-task-box"]) .floating-action-whatsapp,
body:has([id^="sim-task-box"]) #floating-scroll-top-btn,
body:has([id^="sim-task-box"]) .floating-action-scrolltop,
.ce-simulator-layout~#floating-whatsapp-btn,
.ce-simulator-layout~.floating-action-whatsapp,
.ce-simulator-layout~#floating-scroll-top-btn,
.ce-simulator-layout~.floating-action-scrolltop,
.ce-exam-body~#floating-whatsapp-btn,
.ce-exam-body~.floating-action-whatsapp,
.simulator-container~#floating-whatsapp-btn,
.simulator-container~.floating-action-whatsapp,
.simulator-container~#floating-scroll-top-btn,
.simulator-container~.floating-action-scrolltop,
.eo-simulator-room~#floating-whatsapp-btn,
.eo-simulator-room~.floating-action-whatsapp,
.eo-simulator-room~#floating-scroll-top-btn,
.eo-simulator-room~.floating-action-scrolltop,
.eo-serie-details-wrapper~#floating-whatsapp-btn,
.eo-serie-details-wrapper~.floating-action-whatsapp,
.eo-serie-details-wrapper~#floating-scroll-top-btn,
.eo-serie-details-wrapper~.floating-action-scrolltop {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transform: scale(0) !important;
}

/* ==========================================================
   INDICATEUR DE SAISIE / RÉFLEXION EXAMINATEUR IA E.O
   ========================================================== */
.eo-typing-bubble {
  align-self: flex-start !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  padding: 10px 16px !important;
  border-radius: 14px 14px 14px 2px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 4px 0 !important;
}

.eo-typing-dots {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.eo-typing-dots .eo-dot {
  width: 7px !important;
  height: 7px !important;
  background: #2563eb !important;
  border-radius: 50% !important;
  display: inline-block !important;
  animation: eoDotBlink 1.4s infinite ease-in-out both !important;
}

.eo-typing-dots .eo-dot:nth-child(1) {
  animation-delay: -0.32s !important;
}

.eo-typing-dots .eo-dot:nth-child(2) {
  animation-delay: -0.16s !important;
}

.eo-typing-dots .eo-dot:nth-child(3) {
  animation-delay: 0s !important;
}

@keyframes eoDotBlink {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.35;
  }

  40% {
    transform: scale(1.15);
    opacity: 1;
  }
}

/* ==========================================================
   BARRE SUPÉRIEURE FIXE / STICKY EN SIMULATION E.O
   Le chronomètre reste visible en permanence lors du défilement
   ========================================================== */
body.in-eo-exam-mode .top-header,
body:has(.eo-simulator-room) .top-header {
  display: none !important;
}

body.in-eo-exam-mode .mobile-bottom-nav,
body.in-eo-exam-mode .tcf-mobile-bottom-nav,
body:has(.eo-simulator-room) .mobile-bottom-nav,
body:has(.eo-simulator-room) .tcf-mobile-bottom-nav {
  display: none !important;
}

body.in-eo-exam-mode .ce-main-container,
.ce-main-container:has(.eo-simulator-room),
.ce-main-container:has(.eo-top-bar-sticky) {
  overflow: visible !important;
  overflow-x: visible !important;
  padding-top: 4px !important;
}

.eo-top-bar-sticky {
  position: fixed !important;
  top: 8px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 20px) !important;
  max-width: 900px !important;
  z-index: 10000 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12) !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 14px !important;
  box-sizing: border-box !important;
  padding: 8px 12px !important;
}

.eo-top-bar-spacer {
  display: block !important;
  width: 100% !important;
  min-height: 80px;
  flex-shrink: 0 !important;
  transition: height 0.15s ease-out;
}

@media (max-width: 680px) {
  .eo-top-bar-sticky {
    top: 4px !important;
    width: calc(100% - 10px) !important;
    padding: 6px 10px !important;
    gap: 6px !important;
    border-radius: 12px !important;
  }

  .eo-top-bar-spacer {
    min-height: 115px;
  }
}

/* ==========================================================
   GUICHET DE PAIEMENT SÉCURISÉ DOKAR CANADA (NOTCH PAY / MOMO)
   ========================================================== */
.checkout-modal-box {
  max-width: 520px !important;
  width: 95% !important;
  max-height: 92vh !important;
  overflow-y: auto !important;
  padding: 24px 26px !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.4) !important;
}

.checkout-modal-header {
  text-align: center;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
}

.checkout-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.5px;
}

.checkout-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 10px 0 6px 0;
}

.checkout-plan-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.pill-price {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 1.05rem;
  border: 1px solid #bfdbfe;
}

.pill-duration {
  background: #f0fdf4;
  color: #15803d;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid #bbf7d0;
}

.checkout-user-badge-logged {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.checkout-user-badge-logged .logged-icon {
  font-size: 1.3rem;
}

.checkout-user-badge-logged .logged-text {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.35;
}

.checkout-auth-inputs {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.checkout-auth-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 6px;
}

.checkout-auth-notice a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.checkout-section-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 10px;
}

/* Tabs switcher for payment methods */
.checkout-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.tab-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 11px 10px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: center;
}

.tab-method-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.tab-method-btn.active {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.16);
}

.tab-method-btn .tab-icon {
  font-size: 1.3rem;
}

.tab-method-btn .tab-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
}

.tab-method-btn .tab-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 1px 8px;
  border-radius: 999px;
}

.tab-method-btn.active .tab-tag {
  background: #2563eb;
  color: #ffffff;
}

/* Method panel containers */
.checkout-method-panel {
  display: none;
}

.checkout-method-panel.active {
  display: block;
  animation: fadeIn 0.2s ease-in;
}

.checkout-method-card {
  border: 1.5px solid #bfdbfe;
  background: #f8fafc;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}

.method-card-badge {
  display: inline-block;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.momo-pill-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.momo-pill {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

.momo-pill.orange {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
}

.momo-pill.mtn {
  background: #fefce8;
  color: #ca8a04;
  border: 1px solid #fef08a;
}

.method-card-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 8px;
}

.btn-submit-notchpay {
  width: 100% !important;
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  padding: 13px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35) !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin-top: 10px !important;
}

.btn-submit-notchpay:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.45) !important;
}

.manual-momo-numbers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.momo-box {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.45;
  transition: all 0.15s ease;
}

.momo-box.orange-box {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  color: #9a3412;
}

.momo-box.mtn-box {
  background: #fefce8;
  border: 1.5px solid #fef08a;
  color: #854d0e;
}

.momo-box-title {
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copy-trigger {
  cursor: pointer;
  padding: 3px 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  transition: all 0.15s ease;
  font-weight: 800;
  display: inline-block;
}

.copy-trigger:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.momo-box-ussd code {
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-family: monospace;
}

/* Radio buttons for manual operator */
.operator-choice-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 12px;
}

.operator-choice-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.operator-choice-label:hover {
  border-color: #cbd5e1;
}

.operator-choice-label input[type="radio"] {
  accent-color: #2563eb;
  cursor: pointer;
}

/* Security notice */
.checkout-security-notice {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.79rem;
  color: #475569;
  line-height: 1.45;
  margin-top: 10px;
  margin-bottom: 12px;
}

.btn-submit-manual {
  width: 100% !important;
  margin-top: 4px !important;
  padding: 13px !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
  transition: all 0.2s ease !important;
}

.btn-submit-manual:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45) !important;
}

.checkout-msg-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 12px;
  text-align: center;
}

.checkout-msg-alert.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.checkout-msg-alert.success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* Admin Pending Badge with Pulse */
.badge-pending-pulse {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  animation: pulse 2s infinite;
}

.btn-validate-pay {
  background: #16a34a;
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-validate-pay:hover {
  background: #15803d;
}

.btn-reject-pay {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-reject-pay:hover {
  background: #fecaca;
}

.badge-status-pending {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}


/* Colonne Abonnements Cumulés */
.account-sub-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


/* Badges et barres alerte expiration imminente */
.sub-status-pill.pill-urgent {
  background: #fee2e2;
  color: #b91c1c;
  border: 1.5px solid #f87171;
  font-weight: 800;
  animation: urgentPulse 2s infinite ease-in-out;
}

@keyframes urgentPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }

  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
}


/* ==========================================================
   FIXES RESPONSIVE & PREVENTION ANTI-DEBORDEMENT MOBILE
   ========================================================== */
html,
body {
  overflow-x: clip !important;
  width: 100% !important;
  max-width: 100vw !important;
  position: relative !important;
  box-sizing: border-box !important;
}

*,
*::before,
*::after {
  box-sizing: border-box !important;
}

.account-cards-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
}

.account-sub-card,
.account-access-card {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.sub-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.sub-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  background: #f8fafc;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #f1f5f9;
  margin-bottom: 16px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.metric-cell {
  min-width: 0;
  overflow: hidden;
}

.metric-cell .cell-label {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-cell .cell-value {
  display: block;
  font-size: 0.88rem;
  color: #0f172a;
  font-weight: 700;
  word-break: break-word;
  white-space: normal;
  line-height: 1.3;
}

.footer-social-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #cbd5e1;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.access-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.affil-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .account-cards-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }
}

@media (max-width: 768px) {

  .saas-dashboard-wrapper,
  .dashboard-account-header,
  .saas-container,
  .footer-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .account-cards-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .account-sub-card,
  .account-access-card {
    padding: 16px 12px !important;
    border-radius: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* 2 COLONNES SUR MOBILE POUR LA GRILLE DE METRIQUES : FIN DU DEBORDEMENT ! */
  .sub-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .metric-cell {
    padding: 8px 6px !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    border: 1px solid #f1f5f9 !important;
    min-width: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .metric-cell .cell-label {
    font-size: 0.72rem !important;
    margin-bottom: 2px !important;
  }

  .metric-cell .cell-value {
    font-size: 0.82rem !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
  }

  .sub-plan-name {
    font-size: 1.15rem !important;
    word-break: break-word !important;
  }

  .student-affiliation-banner {
    padding: 14px !important;
    gap: 12px !important;
  }

  .footer-container {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .footer-slogan {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  .footer-social-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .social-link {
    white-space: nowrap !important;
    font-size: 0.8rem !important;
    padding: 5px 10px !important;
  }

  .dokar-hero-title {
    font-size: clamp(1.35rem, 5vw, 2.2rem) !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
}

.btn-toggle-eye svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  display: block;
}

.dev-os-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  display: block;
}

.student-affiliation-banner .affil-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  display: block;
}

.access-item-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  display: block;
}

/* ==========================================================
   PROTECTION ANTI-ZOOM AUTOMATIQUE SUR SMARTPHONE & TABLETTE
   ========================================================== */
@media screen and (max-width: 768px) {

  input,
  select,
  textarea,
  .input-form,
  .auth-form-body .input-form,
  .saas-form-input,
  .search-input {
    font-size: 16px !important;
  }
}

/* ==========================================================
   BOUTON ET MODALE INSTALLATION PWA (PROGRESSIVE WEB APP)
   ========================================================== */
.btn-pwa-install-appbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(223, 177, 91, 0.16), rgba(223, 177, 91, 0.06));
  border: 1px solid rgba(223, 177, 91, 0.45);
  border-radius: 20px;
  color: #dfb15b;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.btn-pwa-install-appbar:hover {
  background: linear-gradient(135deg, rgba(223, 177, 91, 0.3), rgba(223, 177, 91, 0.15));
  border-color: #dfb15b;
  color: #fef08a;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(223, 177, 91, 0.25);
}

.btn-pwa-install-appbar:active {
  transform: translateY(0);
}

.btn-pwa-install-appbar svg {
  color: inherit;
  transition: transform 0.2s ease;
}

.btn-pwa-install-appbar:hover svg {
  transform: translateY(1px);
}

@media (max-width: 720px) {
  .btn-pwa-install-appbar {
    padding: 6px 10px;
  }
  .btn-pwa-install-appbar .pwa-text {
    display: none;
  }
}

@media (display-mode: standalone) {
  .btn-pwa-install-appbar,
  .drawer-pwa-link {
    display: none !important;
  }
}

/* Modale universelle luxueuse d'installation PWA (iPhone, Android & PC) */
.pwa-modal-backdrop,
.pwa-ios-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 13, 30, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: pwaFadeIn 0.25s ease;
}

.pwa-modal-card,
.pwa-ios-modal-card {
  background: #0f172a;
  border: 1.5px solid rgba(223, 177, 91, 0.45);
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  padding: 24px 22px;
  color: #f8fafc;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 24px rgba(223, 177, 91, 0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: pwaSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.pwa-modal-header,
.pwa-ios-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pwa-modal-logo,
.pwa-ios-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid rgba(223, 177, 91, 0.6);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pwa-modal-title,
.pwa-ios-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #dfb15b;
  margin: 0;
  line-height: 1.25;
}

.pwa-modal-subtitle,
.pwa-ios-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1.35;
}

.pwa-modal-tip {
  background: rgba(223, 177, 91, 0.08);
  border: 1px solid rgba(223, 177, 91, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pwa-modal-tip svg {
  flex-shrink: 0;
  color: #dfb15b;
  margin-top: 2px;
}

.pwa-modal-tip strong {
  color: #dfb15b;
}

.pwa-modal-steps,
.pwa-ios-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 2px 0;
}

.pwa-modal-step,
.pwa-ios-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 11px 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pwa-modal-step:hover,
.pwa-ios-step:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(223, 177, 91, 0.3);
}

.pwa-modal-step-num,
.pwa-ios-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dfb15b;
  color: #070d1e;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.pwa-modal-step-text,
.pwa-ios-step-text {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #e2e8f0;
  flex: 1;
}

.pwa-modal-step-text strong,
.pwa-ios-step-text strong {
  color: #dfb15b;
}

.pwa-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0;
}

.pwa-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pwa-feature-icon {
  color: #dfb15b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.pwa-btn-primary,
.pwa-ios-btn-close {
  flex: 1;
  width: 100%;
  padding: 12px 18px;
  background: linear-gradient(135deg, #dfb15b, #c5a059);
  color: #070d1e;
  font-weight: 800;
  font-size: 0.92rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: inherit;
}

.pwa-btn-primary:hover,
.pwa-ios-btn-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(223, 177, 91, 0.4);
}

.pwa-btn-secondary {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.pwa-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

@keyframes pwaFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Interactive Click-to-Edit Words for Oral Simulator Transcript */
.eo-clickable-word {
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 4px;
  display: inline-block;
  transition: all 0.15s ease;
  background: rgba(37, 99, 235, 0.06);
  color: #0f172a;
  border-bottom: 1.5px dashed rgba(37, 99, 235, 0.35);
  margin: 1px 1px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.eo-clickable-word:hover,
.eo-clickable-word:active {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
  border-bottom-color: #2563eb !important;
  transform: translateY(-1px);
}

.eo-clickable-word.eo-word-active-edit {
  background: #fef08a !important;
  color: #854d0e !important;
  border-bottom-color: #ca8a04 !important;
  box-shadow: 0 0 0 2px #eab308;
  font-weight: 700;
}

/* ==========================================================
   ALIGNEMENT & CENTRAGE PARFAIT DE LA TOPBAR (DESKTOP & LAPTOP)
   ========================================================== */
@media (min-width: 901px) {
  .top-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    padding: 8px 24px !important;
    gap: 16px !important;
    min-height: 58px !important;
  }

  /* 1. Logo Dokar à gauche avec marge de séparation garantie */
  .header-left-group {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin-right: 20px !important;
  }

  /* 2. Capsule blanche des modules : centrage parfait dans l'espace disponible */
  .responsive-nav-tabs,
  .main-nav-tabs {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* 3. Boutons d'action à droite avec espace de respiration net avant Installer l'App */
  .header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-shrink: 0 !important;
    margin-left: 20px !important;
    gap: 12px !important;
  }
}

/* Écrans intermédiaires & petits laptops (901px à 1200px) */
@media (min-width: 901px) and (max-width: 1200px) {
  .top-header {
    padding: 8px 14px !important;
    gap: 10px !important;
  }

  .main-nav-tab {
    padding: 4px 7px !important;
    font-size: 0.75rem !important;
    gap: 3px !important;
    letter-spacing: -0.2px !important;
  }

  .main-nav-tab svg {
    width: 14px !important;
    height: 14px !important;
  }

  .responsive-nav-tabs {
    gap: 2px !important;
    padding: 2px 3px !important;
  }

  .header-actions {
    margin-left: 16px !important;
    gap: 8px !important;
  }

  .header-left-group {
    margin-right: 16px !important;
  }

  .btn-pwa-install-appbar {
    padding: 4px 8px !important;
    font-size: 0.74rem !important;
  }

  .btn-login-header,
  .btn-compte-header {
    padding: 4px 9px !important;
    font-size: 0.77rem !important;
  }
}

/* Écrans Laptops et résolutions moyennes (1201px à 1480px : résolutions 1280px, 1366px, 1440px) */
@media (min-width: 1201px) and (max-width: 1480px) {
  .top-header {
    padding: 8px 18px !important;
    gap: 12px !important;
  }

  .main-nav-tab {
    padding: 5px 9px !important;
    font-size: 0.79rem !important;
    gap: 4px !important;
    letter-spacing: -0.2px !important;
  }

  .main-nav-tab svg {
    width: 15px !important;
    height: 15px !important;
  }

  .responsive-nav-tabs {
    gap: 3px !important;
    padding: 3px 4px !important;
  }

  .header-actions {
    margin-left: 20px !important;
    gap: 10px !important;
  }

  .header-left-group {
    margin-right: 20px !important;
  }

  .btn-pwa-install-appbar {
    padding: 5px 10px !important;
    font-size: 0.78rem !important;
  }

  .btn-login-header,
  .btn-compte-header {
    padding: 5px 11px !important;
    font-size: 0.80rem !important;
  }
}

/* Très grands écrans Desktop (> 1480px : résolutions 1536px, 1680px, 1920px, 4K) */
@media (min-width: 1481px) {
  .top-header {
    padding: 8px 24px !important;
    gap: 16px !important;
  }

  .main-nav-tab {
    padding: 6px 13px !important;
    font-size: 0.85rem !important;
    gap: 6px !important;
  }

  .main-nav-tab svg {
    width: 17px !important;
    height: 17px !important;
  }

  .responsive-nav-tabs {
    gap: 4px !important;
    padding: 4px !important;
  }

  .header-actions {
    margin-left: 28px !important;
    gap: 12px !important;
  }

  .header-left-group {
    margin-right: 28px !important;
  }
}

