/* ═══════════════════════════════════════════════════════════════════════
   FORMATION TCCI — DeuxMainsEnsemble
   Feuille de style unique (refonte complete - palier 9.W)

   Structure :
     1. Variables (couleurs, tailles, espacements)
     2. Reset & typo de base
     3. Layout (header, footer, container, navigation)
     4. Composants (cards, buttons, badges, forms, alerts, tables)
     5. Espace public (homepage, formations, candidature)
     6. Espace apprenant (dashboard, formation, module, quiz, profil, emargement)
     7. Espace admin (dashboards, tables, formulaires)
     8. Utilities (helpers, text, colors)
     9. Responsive (media queries)
   ═══════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════
   1. VARIABLES
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* ─── Couleurs marque ─── */
  --tcci-blue: #23478A;          /* Bleu TCCI - corps de marque */
  --tcci-blue-deep: #1a3666;     /* Bleu plus fonce - hover, accents */
  --tcci-blue-soft: #E5EBF5;     /* Bleu tres doux - fonds */

  --tcci-teal: #2E8B9E;          /* Sarcelle - boutons accent */
  --tcci-teal-deep: #226A78;     /* Sarcelle fonce - hover */
  --tcci-teal-soft: #E5F1F4;     /* Sarcelle tres doux */

  --tcci-ocre: #C77B3F;          /* Ocre - CTA secondaires, dates */
  --tcci-ocre-deep: #A66230;
  --tcci-ocre-soft: #F9EFE5;

  /* ─── Couleurs neutres ─── */
  --cream: #FAF8F4;              /* Fond pages publiques */
  --paper: #FFFFFF;              /* Cards, contenus */
  --ink: #1F2937;                /* Texte principal */
  --ink-soft: #6B7280;           /* Texte secondaire */
  --ink-light: #9CA3AF;          /* Texte tertiaire */
  --border: #E5E7EB;             /* Bordures cards, tables */
  --border-light: #F3F4F6;       /* Bordures tres legeres */

  /* ─── Couleurs semantiques ─── */
  --success: #166534;
  --success-bg: #DCFCE7;
  --warning: #92400E;
  --warning-bg: #FEF3C7;
  --danger: #991B1B;
  --danger-bg: #FEE2E2;
  --info: #1E40AF;
  --info-bg: #DBEAFE;

  /* ─── Typographie ─── */
  --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;  /* Pour homepage uniquement */

  /* Echelle de tailles (rem) - approche classique */
  --fs-xs:    0.75rem;   /* 12px - mentions legales, footer */
  --fs-sm:    0.875rem;  /* 14px - secondaire, badges */
  --fs-base:  1rem;      /* 16px - corps */
  --fs-md:    1.125rem;  /* 18px - lead, sous-titres */
  --fs-lg:    1.25rem;   /* 20px - h4, h5 importants */
  --fs-xl:    1.5rem;    /* 24px - h3, h2 cards */
  --fs-2xl:   2rem;      /* 32px - h1 espace apprenant */
  --fs-3xl:   2.5rem;    /* 40px - h1 homepage */

  /* Hauteur de ligne */
  --lh-tight: 1.25;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  /* ─── Espacements (rem) ─── */
  --sp-1: 0.25rem;   /* 4px */
  --sp-2: 0.5rem;    /* 8px */
  --sp-3: 0.75rem;   /* 12px */
  --sp-4: 1rem;      /* 16px */
  --sp-5: 1.5rem;    /* 24px */
  --sp-6: 2rem;      /* 32px */
  --sp-7: 3rem;      /* 48px */
  --sp-8: 4rem;      /* 64px */

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

  /* ─── Ombres ─── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow:    0 2px 8px rgba(35, 71, 138, 0.06);
  --shadow-md: 0 4px 12px rgba(35, 71, 138, 0.08);
  --shadow-lg: 0 8px 24px rgba(35, 71, 138, 0.10);

  /* ─── Transitions ─── */
  --t-fast:   0.12s ease;
  --t-normal: 0.18s ease;
  --t-slow:   0.3s ease;

  /* ─── Layout ─── */
  --container-max: 1200px;
  --container-narrow: 920px;
  --container-readable: 720px;
}


/* ═══════════════════════════════════════════════════════════════════════
   2. RESET & TYPO DE BASE
   ═══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--ink);
  background: var(--cream);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* Pages publiques (homepage et autres) : fond plus chaleureux */
body.is-public {
  background: var(--cream);
}

/* Pages applicatives (espace apprenant, admin) : fond plus neutre */
body.is-app, body.is-admin {
  background: #F8F9FB;
}

main {
  min-height: 60vh;
  padding: 0 0 var(--sp-7);
}

a {
  color: var(--tcci-blue);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover {
  color: var(--tcci-blue-deep);
  text-decoration: underline;
}

/* Titres : Inter par defaut, Space Grotesk uniquement quand forcé via .is-display */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--ink);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  margin-top: 0;
  margin-bottom: var(--sp-3);
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
h5 { font-size: var(--fs-base); font-weight: 600; }
h6 { font-size: var(--fs-sm); font-weight: 600; }

/* Titres "display" : police Space Grotesk pour les hero des pages publiques */
.h-display {
  font-family: var(--font-display) !important;
  font-weight: 400;
  letter-spacing: -0.02em;
}

p {
  margin-top: 0;
  margin-bottom: var(--sp-4);
}

ul, ol {
  margin-top: 0;
  margin-bottom: var(--sp-4);
}

img {
  max-width: 100%;
  height: auto;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--sp-5) 0;
}


/* ═══════════════════════════════════════════════════════════════════════
   3. LAYOUT
   ═══════════════════════════════════════════════════════════════════════ */

/* Bandeau institutionnel (haut de page publique) */
.institutional-bar {
  background: var(--tcci-blue-deep);
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--fs-xs);
  padding: var(--sp-2) 0;
}
.institutional-bar a {
  color: rgba(255, 255, 255, 0.92);
}
.institutional-bar a:hover {
  color: #fff;
}

/* Navigation principale (classe utilisée par base.html : .nav-editorial)
   STYLE ALIGNÉ SUR LE SITE INSTITUTIONNEL deuxmainsensemble.fr :
   - Fond dégradé bleu marine → bleu clair
   - Texte blanc
   - Box-shadow douce */
.nav-editorial {
  background: linear-gradient(135deg, #23478A 0%, #2E8B9E 100%);
  border-bottom: none;
  padding: var(--sp-3) 0;
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ──────────────────────────────────────────────────────────────────────
   Modals Bootstrap : forcer un z-index supérieur au header (.nav-editorial)
   qui crée un stacking context via position:relative + z-index. Sans cette
   surcharge, les modals apparaissent partiellement masquées en haut.
   ────────────────────────────────────────────────────────────────────── */
.modal { z-index: 10000 !important; }
.modal-backdrop { z-index: 9999 !important; }
.nav-editorial > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-md);
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}
.nav-brand:hover {
  text-decoration: none;
  color: #fff;
  opacity: 0.85;
}
.nav-brand .nav-logo {
  height: 40px;
  width: auto;
  /* Filtre pour rendre le logo lisible sur fond bleu si besoin */
  filter: brightness(0) invert(1);
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-brand-name {
  color: #fff;
  font-weight: 600;
}
.nav-brand-sub {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Bouton hamburger : visible sur mobile, blanc */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3);
  cursor: pointer;
  font-size: 1.25rem;
  color: #fff;
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Liens navigation : blancs sur fond bleu */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-links li {
  list-style: none;
}
.nav-links a {
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  transition: opacity var(--t-fast);
}
.nav-links a:hover {
  color: #fff;
  opacity: 0.8;
  text-decoration: none;
}

/* Bouton CTA "Candidater" dans le menu */
.nav-cta {
  background: var(--tcci-teal);
  color: #fff !important;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius);
  transition: background var(--t-normal);
}
.nav-cta:hover {
  background: var(--tcci-teal-deep);
  color: #fff !important;
  text-decoration: none;
}

/* Container */
.container, .container-fluid {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
}
.container { max-width: var(--container-max); }
.container-narrow { max-width: var(--container-narrow); margin-left: auto; margin-right: auto; }
.container-readable { max-width: var(--container-readable); margin-left: auto; margin-right: auto; }

/* Section publique (intro, programme, etc.) */
.section {
  padding: var(--sp-7) 0;
}
.section.paper {
  background: var(--paper);
}
.section.cream {
  background: var(--cream);
}

/* Footer institutionnel */
.footer-institutional {
  background: var(--tcci-blue-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--sp-7) 0 var(--sp-5);
  margin-top: var(--sp-7);
}
.footer-institutional img,
.footer-institutional svg {
  max-width: 100%;
  height: auto;
}
.footer-institutional a {
  color: rgba(255, 255, 255, 0.85);
}
.footer-institutional a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-institutional-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}
.footer-institutional-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--sp-3);
}
.footer-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-school-name {
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-md);
}
.footer-school-sub {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
}
.footer-institutional-top {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-3);
}
.footer-institutional-legal,
.footer-institutional-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--sp-4);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
}


/* ═══════════════════════════════════════════════════════════════════════
   4. COMPOSANTS
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Cards ─── */
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: box-shadow var(--t-normal);
}
.card.p-3 { padding: var(--sp-4); }
.card.p-4 { padding: var(--sp-5); }
.card.p-5 { padding: var(--sp-6); }
.card-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-4);
}

/* ─── Boutons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.2;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--t-normal);
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-sm { padding: var(--sp-1) var(--sp-3); font-size: var(--fs-xs); }
.btn-lg { padding: var(--sp-3) var(--sp-5); font-size: var(--fs-base); }

.btn-tcci-accent {
  background: var(--tcci-teal);
  color: #fff;
  border-color: var(--tcci-teal);
}
.btn-tcci-accent:hover:not(:disabled) {
  background: var(--tcci-teal-deep);
  border-color: var(--tcci-teal-deep);
  color: #fff;
  text-decoration: none;
}

.btn-outline-tcci-accent {
  background: transparent;
  color: var(--tcci-teal);
  border-color: var(--tcci-teal);
}
.btn-outline-tcci-accent:hover:not(:disabled) {
  background: var(--tcci-teal);
  color: #fff;
  text-decoration: none;
}

.btn-tcci-dark {
  background: var(--tcci-blue);
  color: #fff;
  border-color: var(--tcci-blue);
}
.btn-tcci-dark:hover:not(:disabled) {
  background: var(--tcci-blue-deep);
  border-color: var(--tcci-blue-deep);
  color: #fff;
  text-decoration: none;
}

.btn-outline-secondary {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--border);
}
.btn-outline-secondary:hover:not(:disabled) {
  background: var(--border-light);
  color: var(--ink);
  text-decoration: none;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
  background: #7F1D1D;
  border-color: #7F1D1D;
  color: #fff;
}

.btn-link {
  background: transparent;
  border-color: transparent;
  color: var(--tcci-blue);
  padding: 0;
}
.btn-link:hover:not(:disabled) {
  text-decoration: underline;
}

/* Bouton editorial (style ancien preserve pour pages publiques) */
.btn-editorial {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--ink);
  color: #fff;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background var(--t-normal);
}
.btn-editorial.primary {
  background: var(--tcci-teal);
}
.btn-editorial.primary:hover {
  background: var(--tcci-teal-deep);
  text-decoration: none;
  color: #fff;
}
.btn-editorial .arrow {
  transition: transform var(--t-fast);
}
.btn-editorial:hover .arrow {
  transform: translateX(3px);
}

/* ─── Badges ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.25em 0.6em;
  border-radius: var(--radius);
  white-space: nowrap;
}
.badge.bg-tcci-dark { background: var(--tcci-blue); color: #fff; }
.badge.bg-tcci-soft { background: var(--tcci-blue-soft); color: var(--tcci-blue); }
/* Badges colorés : fond plein avec texte blanc pour lisibilité */
.badge.bg-success { background: #16a34a; color: #fff; }
.badge.bg-warning { background: #d97706; color: #fff; }
.badge.bg-danger  { background: #dc2626; color: #fff; }
.badge.bg-info    { background: #2563eb; color: #fff; }
/* Variantes "subtle" pour les contextes plus discrets */
.badge.bg-success-subtle { background: var(--success-bg); color: var(--success); }
.badge.bg-warning-subtle { background: var(--warning-bg); color: var(--warning); }
.badge.bg-danger-subtle  { background: var(--danger-bg); color: var(--danger); }
.badge.bg-info-subtle    { background: var(--info-bg); color: var(--info); }
.badge.bg-light { background: var(--border-light); color: var(--ink); }
.badge.bg-secondary { background: var(--ink-soft); color: #fff; }
.badge.bg-primary { background: var(--tcci-blue); color: #fff; }
.badge.bg-dark { background: var(--ink); color: #fff; }

/* ─── Formulaires ─── */
.form-label,
.field-label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="search"],
input[type="file"],
textarea,
select {
  display: block;
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-2) var(--sp-3);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control:focus,
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--tcci-teal);
  box-shadow: 0 0 0 3px rgba(46, 139, 158, 0.15);
}
.form-control:disabled,
input:disabled, textarea:disabled, select:disabled {
  background: var(--border-light);
  color: var(--ink-soft);
  cursor: not-allowed;
}

textarea.form-control {
  min-height: 6rem;
  line-height: var(--lh-normal);
}

.form-text {
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  margin-top: var(--sp-1);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.form-check-input {
  flex-shrink: 0;
  margin-top: 0.2em;
  width: 1.15rem;
  height: 1.15rem;
  cursor: pointer;
  accent-color: var(--tcci-teal);
}
.form-check-label {
  cursor: pointer;
  user-select: none;
  line-height: var(--lh-normal);
}

/* Toggle œil cliquable pour les champs password */
.password-field-wrapper {
  position: relative;
}
.password-field-wrapper input {
  padding-right: 2.6rem;
}
.password-toggle-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  font-size: 1rem;
  z-index: 2;
}
.password-toggle-btn:hover,
.password-toggle-btn:focus {
  color: var(--ink);
  outline: none;
}

/* Form editorial (pages publiques) */
.form-editorial {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--sp-6);
}

/* ─── Alertes ─── */
.alert {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius);
  border: 1px solid transparent;
  margin-bottom: var(--sp-4);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}
.alert-info     { background: var(--info-bg); color: var(--info); border-color: rgba(30, 64, 175, 0.15); }
.alert-success  { background: var(--success-bg); color: var(--success); border-color: rgba(22, 101, 52, 0.15); }
.alert-warning  { background: var(--warning-bg); color: var(--warning); border-color: rgba(146, 64, 14, 0.15); }
.alert-danger   { background: var(--danger-bg); color: var(--danger); border-color: rgba(153, 27, 27, 0.15); }
.alert-light    { background: var(--paper); color: var(--ink); border-color: var(--border); }
.alert-secondary { background: var(--border-light); color: var(--ink); border-color: var(--border); }

/* ─── Tables ─── */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
}
.table th, .table td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table th {
  font-weight: 600;
  color: var(--ink);
  background: var(--border-light);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.table-bordered { border: 1px solid var(--border); }
.table-bordered th, .table-bordered td { border: 1px solid var(--border); }
.table-responsive {
  overflow-x: auto;
}

/* ─── Progress ─── */
.progress-tcci {
  height: 8px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-tcci .bar {
  height: 100%;
  background: linear-gradient(90deg, var(--tcci-teal), var(--tcci-teal-deep));
  border-radius: var(--radius-full);
  transition: width var(--t-slow);
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.breadcrumb-item {
  display: flex;
  align-items: center;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  margin: 0 var(--sp-2);
  color: var(--ink-light);
}
.breadcrumb-item a {
  color: var(--tcci-blue);
}
.breadcrumb-item.active {
  color: var(--ink-soft);
}


/* ═══════════════════════════════════════════════════════════════════════
   5. ESPACE PUBLIC (homepage, formations, programme, candidature)
   ═══════════════════════════════════════════════════════════════════════ */

/* Hero institutionnel (homepage) */
.hero-institutional {
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  padding: var(--sp-8) 0;
  position: relative;
}
.hero-institutional-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}
.hero-institutional-kicker {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--tcci-ocre-deep);
  margin-bottom: var(--sp-3);
}
.hero-institutional-text h1 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--sp-4);
}
.hero-institutional-lede {
  font-size: var(--fs-md);
  color: var(--ink-soft);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-5);
}
.hero-institutional-cta {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.hero-institutional-aside {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow);
}
.hero-aside-block {
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-light);
}
.hero-aside-block:last-child {
  border-bottom: none;
}
.hero-aside-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: var(--sp-1);
}
.hero-aside-value {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--ink);
}
.hero-aside-meta {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  margin-top: var(--sp-1);
}

/* Section piliers (3 colonnes) */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.pillar {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  text-align: center;
}
.pillar-num {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  line-height: 2.5rem;
  text-align: center;
  background: var(--tcci-teal);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
  margin-bottom: var(--sp-3);
}

/* Card formation (catalogue) */
.formule-card {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: all var(--t-normal);
}
.formule-card:hover {
  border-color: var(--tcci-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.formule-card.featured {
  border-color: var(--tcci-teal);
  background: linear-gradient(180deg, var(--tcci-teal-soft) 0%, var(--paper) 30%);
}

/* Bloc formateur (page programme) */
.formateur-block {
  display: flex;
  gap: var(--sp-5);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin: var(--sp-5) 0;
}
.formateur-portrait, .formateur-portrait-placeholder {
  width: 8rem;
  height: 8rem;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  background: var(--border-light);
  object-fit: cover;
}
.formateur-titre {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--ink);
}
.formateur-credentials {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-3);
}
.formateur-bio {
  color: var(--ink);
  line-height: var(--lh-relaxed);
}


/* ═══════════════════════════════════════════════════════════════════════
   6. ESPACE APPRENANT
   ═══════════════════════════════════════════════════════════════════════ */

/* Dashboard - section "Mes formations" */
.formation-card-apprenant {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
  transition: border-color var(--t-normal), box-shadow var(--t-normal);
}
.formation-card-apprenant:hover {
  border-color: var(--tcci-teal);
  box-shadow: var(--shadow-md);
}

/* Page formation : liste unifiée des modules */
.formation-modules-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.formation-module-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-normal);
}
.formation-module-card-link:not(.disabled):hover {
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}
.formation-module-card-link.disabled {
  cursor: default;
  opacity: 0.78;
}
.formation-module-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
  transition: all var(--t-normal);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.formation-module-card-link:not(.disabled):hover .formation-module-card {
  border-color: var(--tcci-teal);
  box-shadow: var(--shadow-md);
}
.formation-module-card-validated {
  background: var(--tcci-teal-soft);
  border-color: var(--tcci-teal);
}
.formation-module-card-locked {
  background: var(--border-light);
  border-color: var(--border);
}
.formation-module-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.formation-module-card-titre-zone {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  flex: 1;
  min-width: 0;
}
.formation-module-card-num {
  display: inline-block;
  background: var(--tcci-teal);
  color: #fff;
  padding: 0.18em 0.55em;
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.formation-module-card-locked .formation-module-card-num {
  background: var(--ink-soft);
}
.formation-module-card-titre {
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--ink);
  font-weight: 600;
}
.formation-module-card-locked .formation-module-card-titre {
  color: var(--ink-soft);
}
.formation-module-card-dates {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.formation-module-card-footer {
  margin-top: 0.2rem;
}

/* Page module : titre principal */
.module-titre-num {
  display: inline-block;
  background: var(--tcci-teal);
  color: #fff;
  padding: 0.2em 0.6em;
  border-radius: var(--radius-sm);
  font-size: var(--fs-md);
  font-weight: 700;
  margin-right: var(--sp-2);
  vertical-align: middle;
}
.module-titre-separator {
  color: var(--ink-light);
  margin: 0 var(--sp-2);
}

/* Page module : encart accès session (Zoom/Replay) */
.module-acces-session {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-lg);
  margin: var(--sp-3) 0 var(--sp-5);
  flex-wrap: wrap;
}
.module-acces-session-en_cours {
  background: var(--success-bg);
  border: 1px solid rgba(22, 101, 52, 0.25);
}
.module-acces-session-en_cours .module-acces-session-icon { color: var(--success); }

.module-acces-session-a_venir {
  background: var(--info-bg);
  border: 1px solid rgba(30, 64, 175, 0.25);
}
.module-acces-session-a_venir .module-acces-session-icon { color: var(--info); }

.module-acces-session-terminee_replay {
  background: var(--tcci-teal-soft);
  border: 1px solid rgba(46, 139, 158, 0.30);
}
.module-acces-session-terminee_replay .module-acces-session-icon { color: var(--tcci-teal); }

.module-acces-session-terminee {
  background: var(--border-light);
  border: 1px solid var(--border);
}
.module-acces-session-terminee .module-acces-session-icon { color: var(--ink-soft); }

.module-acces-session-annulee {
  background: var(--danger-bg);
  border: 1px solid rgba(153, 27, 27, 0.25);
}
.module-acces-session-annulee .module-acces-session-icon { color: var(--danger); }

.module-acces-session-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.module-acces-session-content {
  flex: 1;
  min-width: 0;
}
.module-acces-session-titre {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--ink);
  line-height: var(--lh-tight);
}
.module-acces-session-sous-titre {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  margin-top: var(--sp-1);
}

/* Page module : encart émargement Qualiopi - couleurs TCCI bleu */
.module-acces-emargement {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-lg);
  margin: var(--sp-2) 0 var(--sp-5);
  background: var(--tcci-blue-soft);
  border: 1px solid rgba(35, 71, 138, 0.30);
  flex-wrap: wrap;
}
.module-acces-emargement .module-acces-session-icon { color: var(--tcci-blue); }

/* Page emargement : liste des demi-journées */
.emargement-liste {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.emargement-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
}
.emargement-card-signee {
  background: var(--tcci-teal-soft);
  border-color: var(--tcci-teal);
}
.emargement-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-2);
}
.emargement-card-titre {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.emargement-card-info {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.emargement-form {
  background: var(--cream);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin-top: var(--sp-2);
}

/* Quiz interactif */
.quiz-question {
  padding: var(--sp-2) 0;
}
.quiz-question h4 {
  font-size: var(--fs-lg);
  line-height: var(--lh-normal);
  font-weight: 600;
  color: var(--tcci-blue);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--tcci-teal-soft);
}
.quiz-choice {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4) var(--sp-3) 2.6rem;
  margin-bottom: var(--sp-3);
  transition: all var(--t-fast);
  cursor: pointer;
  position: relative;
}
.quiz-choice:hover {
  border-color: var(--tcci-teal);
  background: var(--tcci-teal-soft);
}
.quiz-choice:has(input:checked) {
  border-color: var(--tcci-teal);
  background: var(--tcci-teal-soft);
}
.quiz-choice .form-check-input {
  position: absolute;
  left: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}
.quiz-choice .form-check-label {
  cursor: pointer;
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  font-weight: 500;
  color: var(--ink);
  width: 100%;
  user-select: none;
}


/* ═══════════════════════════════════════════════════════════════════════
   7. ESPACE ADMIN
   ═══════════════════════════════════════════════════════════════════════ */

/* Sections grises de séparation dans les formulaires admin */
.admin-section {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}
.admin-section h5 {
  margin-top: 0;
  margin-bottom: var(--sp-3);
  color: var(--tcci-blue);
}

/* Tableau récap admin (emargements, apprenants…) */
.admin-table-recap {
  background: var(--paper);
}
.admin-table-recap thead {
  background: var(--tcci-blue);
  color: #fff;
}
.admin-table-recap thead th {
  background: var(--tcci-blue);
  color: #fff;
  border-color: var(--tcci-blue);
}


/* ═══════════════════════════════════════════════════════════════════════
   8. UTILITIES
   ═══════════════════════════════════════════════════════════════════════ */

/* Couleurs texte */
.text-tcci-dark { color: var(--tcci-blue) !important; }
.text-tcci-accent { color: var(--tcci-teal) !important; }
.text-ochre { color: var(--tcci-ocre-deep) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }
.text-muted { color: var(--ink-soft) !important; }
.text-muted-sm { color: var(--ink-soft) !important; font-size: var(--fs-sm); }

/* Couleurs fond */
.bg-tcci-dark { background: var(--tcci-blue) !important; color: #fff; }
.bg-tcci-soft { background: var(--tcci-blue-soft) !important; }
.bg-cream { background: var(--cream) !important; }
.bg-paper { background: var(--paper) !important; }

/* Tailles de texte */
.small { font-size: var(--fs-sm) !important; }
.fs-xs { font-size: var(--fs-xs) !important; }
.fs-sm { font-size: var(--fs-sm) !important; }
.fs-base { font-size: var(--fs-base) !important; }
.fs-md { font-size: var(--fs-md) !important; }
.fs-lg { font-size: var(--fs-lg) !important; }

/* Poids */
.fw-light { font-weight: 300 !important; }
.fw-normal { font-weight: 400 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }

/* Alignement */
.text-start { text-align: left !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }

/* Style */
.fst-italic { font-style: italic !important; }
.text-decoration-none { text-decoration: none !important; }
.text-uppercase { text-transform: uppercase !important; letter-spacing: 0.05em; }

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }

/* Flex */
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-baseline { align-items: baseline !important; }
.gap-1 { gap: var(--sp-1) !important; }
.gap-2 { gap: var(--sp-2) !important; }
.gap-3 { gap: var(--sp-3) !important; }
.gap-4 { gap: var(--sp-4) !important; }
.gap-5 { gap: var(--sp-5) !important; }

/* Marges */
.m-0 { margin: 0 !important; }
.m-1 { margin: var(--sp-1) !important; }
.m-2 { margin: var(--sp-2) !important; }
.m-3 { margin: var(--sp-3) !important; }
.m-4 { margin: var(--sp-4) !important; }
.m-5 { margin: var(--sp-5) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--sp-1) !important; }
.mt-2 { margin-top: var(--sp-2) !important; }
.mt-3 { margin-top: var(--sp-3) !important; }
.mt-4 { margin-top: var(--sp-4) !important; }
.mt-5 { margin-top: var(--sp-5) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--sp-1) !important; }
.mb-2 { margin-bottom: var(--sp-2) !important; }
.mb-3 { margin-bottom: var(--sp-3) !important; }
.mb-4 { margin-bottom: var(--sp-4) !important; }
.mb-5 { margin-bottom: var(--sp-5) !important; }

.ms-1 { margin-left: var(--sp-1) !important; }
.ms-2 { margin-left: var(--sp-2) !important; }
.ms-3 { margin-left: var(--sp-3) !important; }
.me-1 { margin-right: var(--sp-1) !important; }
.me-2 { margin-right: var(--sp-2) !important; }
.me-3 { margin-right: var(--sp-3) !important; }

.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-1 { margin-top: var(--sp-1) !important; margin-bottom: var(--sp-1) !important; }
.my-2 { margin-top: var(--sp-2) !important; margin-bottom: var(--sp-2) !important; }
.my-3 { margin-top: var(--sp-3) !important; margin-bottom: var(--sp-3) !important; }

/* Padding */
.p-0 { padding: 0 !important; }
.p-1 { padding: var(--sp-1) !important; }
.p-2 { padding: var(--sp-2) !important; }
.p-3 { padding: var(--sp-3) !important; }
.p-4 { padding: var(--sp-4) !important; }
.p-5 { padding: var(--sp-5) !important; }

.pt-0 { padding-top: 0 !important; }
.pt-3 { padding-top: var(--sp-3) !important; }
.pt-4 { padding-top: var(--sp-4) !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-3 { padding-bottom: var(--sp-3) !important; }
.pb-4 { padding-bottom: var(--sp-4) !important; }

/* Width */
.w-100 { width: 100% !important; }
.w-75 { width: 75% !important; }
.w-50 { width: 50% !important; }

/* Border */
.border { border: 1px solid var(--border) !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid var(--border) !important; }
.border-bottom { border-bottom: 1px solid var(--border) !important; }
.border-start { border-left: 1px solid var(--border) !important; }
.border-end { border-right: 1px solid var(--border) !important; }
.rounded { border-radius: var(--radius) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }

/* Shadow */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }


/* ═══════════════════════════════════════════════════════════════════════
   9. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
  :root {
    --fs-3xl: 2rem;
    --fs-2xl: 1.6rem;
  }
  .hero-institutional-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .footer-institutional-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --fs-2xl: 1.5rem;
    --fs-xl: 1.25rem;
  }
  main {
    padding: var(--sp-4) 0 var(--sp-6);
  }
  .section {
    padding: var(--sp-5) 0;
  }

  /* Navigation responsive : toggle hamburger */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-editorial > .container {
    flex-wrap: wrap;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-2);
    padding-top: var(--sp-3);
    border-top: 1px solid var(--border);
    margin-top: var(--sp-2);
  }
  .nav-editorial.open .nav-links {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: var(--sp-2) 0;
  }

  .nav-brand-sub {
    display: none;
  }
  .formateur-block {
    flex-direction: column;
    text-align: center;
  }
  .formateur-portrait, .formateur-portrait-placeholder {
    margin: 0 auto;
  }
  .footer-institutional-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
  .module-acces-session,
  .module-acces-emargement {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: var(--sp-3);
  }
}

@media (max-width: 540px) {
  .formation-module-card {
    padding: var(--sp-3) var(--sp-4);
  }
  .quiz-question h4 {
    font-size: var(--fs-md);
  }
  .quiz-choice {
    padding: var(--sp-3) var(--sp-3) var(--sp-3) 2.4rem;
  }
}


/* ═══════════════════════════════════════════════════════════════════════
   GRID BOOTSTRAP (palier 9.W - completion necessaire)
   ═══════════════════════════════════════════════════════════════════════ */

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(var(--sp-3) * -0.5);
  margin-right: calc(var(--sp-3) * -0.5);
}
.row > [class*="col-"] {
  padding-left: calc(var(--sp-3) * 0.5);
  padding-right: calc(var(--sp-3) * 0.5);
}

/* Gap explicite (.g-1, .g-2, .g-3, .g-4, .g-5) */
.row.g-1 { margin: calc(var(--sp-1) * -0.5); }
.row.g-1 > [class*="col-"] { padding: calc(var(--sp-1) * 0.5); }
.row.g-2 { margin: calc(var(--sp-2) * -0.5); }
.row.g-2 > [class*="col-"] { padding: calc(var(--sp-2) * 0.5); }
.row.g-3 { margin: calc(var(--sp-3) * -0.5); }
.row.g-3 > [class*="col-"] { padding: calc(var(--sp-3) * 0.5); }
.row.g-4 { margin: calc(var(--sp-4) * -0.5); }
.row.g-4 > [class*="col-"] { padding: calc(var(--sp-4) * 0.5); }

/* Colonnes par defaut (mobile) */
.col, .col-auto { flex: 1; }
.col-1  { flex: 0 0 8.333%; max-width: 8.333%; }
.col-2  { flex: 0 0 16.666%; max-width: 16.666%; }
.col-3  { flex: 0 0 25%; max-width: 25%; }
.col-4  { flex: 0 0 33.333%; max-width: 33.333%; }
.col-5  { flex: 0 0 41.666%; max-width: 41.666%; }
.col-6  { flex: 0 0 50%; max-width: 50%; }
.col-7  { flex: 0 0 58.333%; max-width: 58.333%; }
.col-8  { flex: 0 0 66.666%; max-width: 66.666%; }
.col-9  { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333%; max-width: 83.333%; }
.col-11 { flex: 0 0 91.666%; max-width: 91.666%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Breakpoint md (>= 768px) */
@media (min-width: 768px) {
  .col-md-1  { flex: 0 0 8.333%; max-width: 8.333%; }
  .col-md-2  { flex: 0 0 16.666%; max-width: 16.666%; }
  .col-md-3  { flex: 0 0 25%; max-width: 25%; }
  .col-md-4  { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-5  { flex: 0 0 41.666%; max-width: 41.666%; }
  .col-md-6  { flex: 0 0 50%; max-width: 50%; }
  .col-md-7  { flex: 0 0 58.333%; max-width: 58.333%; }
  .col-md-8  { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-md-9  { flex: 0 0 75%; max-width: 75%; }
  .col-md-10 { flex: 0 0 83.333%; max-width: 83.333%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Breakpoint lg (>= 992px) */
@media (min-width: 992px) {
  .col-lg-3  { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4  { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-lg-6  { flex: 0 0 50%; max-width: 50%; }
  .col-lg-8  { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════
   STAT-CARD (KPI dashboard admin)
   ═══════════════════════════════════════════════════════════════════════ */

.stat-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow var(--t-normal);
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
}
.stat-card .val {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--tcci-blue);
  line-height: 1.1;
  margin-bottom: var(--sp-1);
}
.stat-card .lbl {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════════════════
   LIST-GROUP (Bootstrap)
   ═══════════════════════════════════════════════════════════════════════ */

.list-group {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.list-group-item {
  background: var(--paper);
  border: 1px solid var(--border);
  border-bottom-width: 0;
  padding: var(--sp-3) var(--sp-4);
  list-style: none;
}
.list-group-item:last-child {
  border-bottom-width: 1px;
}
.list-group-item:first-child {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.list-group-item:last-child {
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

/* list-group-flush : sans bordures externes (dans une card) */
.list-group-flush {
  border-radius: 0;
}
.list-group-flush > .list-group-item {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}
.list-group-flush > .list-group-item:first-child {
  border-top: 0;
}

/* list-group-item-action : interactif (lien) */
.list-group-item-action {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background-color var(--t-fast);
}
.list-group-item-action:hover {
  background: var(--tcci-blue-soft);
  text-decoration: none;
  color: inherit;
}


/* ═══════════════════════════════════════════════════════════════════════
   COMPLEMENTS UTILITIES MANQUANTS
   ═══════════════════════════════════════════════════════════════════════ */

.h-100 { height: 100% !important; }
.h-auto { height: auto !important; }

.list-unstyled {
  list-style: none !important;
  padding-left: 0 !important;
}

/* Card header dans une card */
.card-header {
  background: var(--border-light);
  margin: calc(var(--sp-5) * -1) calc(var(--sp-5) * -1) var(--sp-4) calc(var(--sp-5) * -1);
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card.p-3 .card-header { margin: calc(var(--sp-4) * -1) calc(var(--sp-4) * -1) var(--sp-3) calc(var(--sp-4) * -1); padding: var(--sp-3) var(--sp-4); }

.card-header.bg-info-subtle { background: var(--info-bg); color: var(--info); border-color: rgba(30, 64, 175, 0.15); }
.card-header.bg-danger-subtle { background: var(--danger-bg); color: var(--danger); border-color: rgba(153, 27, 27, 0.15); }
.card-header.bg-warning-subtle { background: var(--warning-bg); color: var(--warning); border-color: rgba(146, 64, 14, 0.15); }
.card-header.bg-success-subtle { background: var(--success-bg); color: var(--success); border-color: rgba(22, 101, 52, 0.15); }

.bg-info-subtle { background: var(--info-bg) !important; }
.bg-danger-subtle { background: var(--danger-bg) !important; }
.bg-warning-subtle { background: var(--warning-bg) !important; }
.bg-success-subtle { background: var(--success-bg) !important; }

/* d-grid (Bootstrap) */
.d-grid { display: grid !important; }


/* ═══════════════════════════════════════════════════════════════════════
   DASHBOARD APPRENANT - Cards "Mes formations" + "Découvrir"
   (palier 9.W refonte v2 - completion necessaire)
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Mes formations : grande card horizontale ─── */
.dashboard-formation-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-normal);
}
.dashboard-formation-card-link:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
}

/* ─── Mes formations : card sans image (palier 9.W v2) ─── */
.dashboard-formation-card {
  background: #f6f8fb;
  border: 1px solid rgba(46, 85, 133, 0.10);
  border-radius: 10px;
  overflow: hidden;
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}
.dashboard-formation-card-link:hover .dashboard-formation-card {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(35, 71, 138, 0.10);
  border-color: rgba(46, 139, 158, 0.35);
}

.dashboard-formation-card-body {
  flex: 1;
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-width: 0;
}

.dashboard-formation-card-header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.dashboard-formation-card-titre {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--ink);
  line-height: var(--lh-tight);
  margin: 0;
}
.dashboard-formation-card-promo {
  font-size: var(--fs-sm);
  color: var(--tcci-teal);
  margin: 0;
  font-weight: 500;
}
.dashboard-formation-card-promo i {
  margin-right: 0.3em;
}

.dashboard-formation-card-progression {
  margin-top: auto;
}

.dashboard-formation-card-cta {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--tcci-teal);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--t-fast), gap var(--t-fast);
}
.dashboard-formation-card-link:hover .dashboard-formation-card-cta {
  color: var(--tcci-teal-deep);
  gap: 0.6rem;
}


/* ─── Découvrir d'autres formations : meme style que /formations (public) ─── */
.dashboard-decouvrir-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.dashboard-decouvrir-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.dashboard-decouvrir-card {
  background: #f6f8fb;
  border: 1px solid rgba(46, 85, 133, 0.10);
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}
.dashboard-decouvrir-card-link:hover .dashboard-decouvrir-card {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(35, 71, 138, 0.10);
  border-color: rgba(46, 139, 158, 0.35);
}

.dashboard-decouvrir-card-image,
.dashboard-decouvrir-card-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;       /* Comme /formations */
  background-color: #fff;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  position: relative;
}
.dashboard-decouvrir-card-image-placeholder {
  background: linear-gradient(135deg, var(--tcci-teal-soft) 0%, var(--cream) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--tcci-teal);
  opacity: 0.4;
}

.dashboard-decouvrir-card-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
  gap: 0.5rem;
}

.dashboard-decouvrir-card-titre {
  margin: 0 0 0.4rem 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
}

.dashboard-decouvrir-card-sous-titre {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

.dashboard-decouvrir-card-statut {
  font-size: 0.78rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}
.dashboard-decouvrir-card-statut.text-success {
  color: var(--tcci-teal-deep);
}

.dashboard-decouvrir-card-cta {
  margin-top: auto;
  align-self: center;
  padding: 0.4rem 1.1rem;
  background: var(--tcci-teal);
  color: #fff;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--t-normal), gap var(--t-fast);
}
.dashboard-decouvrir-card-link:hover .dashboard-decouvrir-card-cta {
  background: var(--tcci-teal-deep);
  gap: 0.6rem;
}


/* (Plus de regle responsive specifique pour .dashboard-formation-card :
    la card sans image s'adapte naturellement) */


/* ═══════════════════════════════════════════════════════════════════════
   10. ELEMENT HEADER — Badge type + titre (page student/element.html)
   Aligne la presentation des pages Quiz / Lecture / Exercice / Video
   sur la charte de la page Module (gros badge type + titre aere).
   ═══════════════════════════════════════════════════════════════════════ */

.element-titre-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--tcci-teal, #2E8B9E);
  color: #fff;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  vertical-align: middle;
  margin-right: 0.4rem;
  line-height: 1.2;
}

/* Variantes selon type d'element */
.element-badge-quiz       { background: #2E8B9E; }   /* teal */
.element-badge-video      { background: #23478A; }   /* bleu TCCI */
.element-badge-lecture    { background: #6B7280; }   /* gris */
.element-badge-exercice   { background: #C77B3F; }   /* ocre */
.element-badge-vignette   { background: #8B5A9F; }   /* violet doux */
.element-badge-evaluation { background: #C77B3F; }


/* ═══════════════════════════════════════════════════════════════════════
   11. QUIZ — Alerte score douce + options en cartes cliquables
   ═══════════════════════════════════════════════════════════════════════ */

/* Carte "Dernier score" : remplace alert-warning saturee par un encart doux
   coherent avec la charte (bleu pale + bordure subtile). */
.alert-quiz-score {
  background: #F0F4F9;
  border: 1px solid #D1DBE5;
  color: var(--tcci-dark, #23478A);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
}
.alert-quiz-score strong {
  color: var(--tcci-dark, #23478A);
  font-weight: 700;
}
.alert-quiz-score .bi {
  margin-right: 0.4rem;
}

/* Options de QCM : aspect carte cliquable plus marque */
.quiz-choice {
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  padding: 0.85rem 1.1rem 0.85rem 2.4rem;
  margin-bottom: 0.65rem !important;
  transition: border-color 0.15s ease, background 0.15s ease;
  position: relative;
}
.quiz-choice:hover {
  border-color: var(--tcci-teal, #2E8B9E);
  background: #FAFCFD;
}
.quiz-choice .form-check-input {
  position: absolute;
  left: 1rem;
  top: 1.05rem;
}
.quiz-choice .form-check-label {
  cursor: pointer;
  width: 100%;
  font-size: 0.98rem;
}
.quiz-choice:has(input:checked) {
  border-color: var(--tcci-blue, #23478A);
  background: #F0F4F9;
}


/* Quiz BLOQUE (certification, tentatives_max atteint) */
.alert-quiz-bloque {
  background: #FFF1E6;
  border: 1.5px solid #F4C18A;
  color: #8B4513;
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  font-size: 0.98rem;
}
.alert-quiz-bloque strong {
  color: #6B3410;
}
.alert-quiz-bloque .bi {
  margin-right: 0.5rem;
}


/* ═══════════════════════════════════════════════════════════════════════
   12. DASHBOARD APPRENANT (admin) — KPI / Alertes / Statuts modules
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Cartes KPI ─── */
.kpi-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  border-left: 4px solid #D1D5DB;
  border-top: 1px solid #F3F4F6;
  border-right: 1px solid #F3F4F6;
  border-bottom: 1px solid #F3F4F6;
  height: 100%;
  transition: transform 0.15s ease;
}
.kpi-card:hover {
  transform: translateY(-2px);
}
.kpi-card-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6B7280;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.kpi-card-valeur {
  font-size: 2rem;
  font-weight: 700;
  color: var(--tcci-dark, #23478A);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.kpi-card-valeur .small {
  font-size: 1.1rem;
  color: #9CA3AF;
  font-weight: 500;
}
.kpi-card-detail {
  font-size: 0.82rem;
  color: #6B7280;
}

/* Variantes couleur KPI */
.kpi-vert   { border-left-color: #10B981; background: linear-gradient(135deg, #ECFDF5 0%, #fff 60%); }
.kpi-vert .kpi-card-valeur { color: #047857; }
.kpi-orange { border-left-color: #F59E0B; background: linear-gradient(135deg, #FFFBEB 0%, #fff 60%); }
.kpi-orange .kpi-card-valeur { color: #B45309; }
.kpi-rouge  { border-left-color: #DC2626; background: linear-gradient(135deg, #FEF2F2 0%, #fff 60%); }
.kpi-rouge .kpi-card-valeur { color: #991B1B; }
.kpi-gris   { border-left-color: #9CA3AF; background: #fff; }
.kpi-gris .kpi-card-valeur { color: #6B7280; }


/* ─── Alertes (points d'attention) ─── */
.dashboard-alertes .alerte-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border-left: 3px solid #D1D5DB;
}
.dashboard-alertes .alerte-item:last-child { margin-bottom: 0; }
.dashboard-alertes .alerte-item .bi {
  font-size: 1.15rem;
  margin-top: 2px;
}
.alerte-rouge  { background: #FEF2F2; border-left-color: #DC2626; color: #7F1D1D; }
.alerte-rouge .bi { color: #DC2626; }
.alerte-orange { background: #FFFBEB; border-left-color: #F59E0B; color: #78350F; }
.alerte-orange .bi { color: #B45309; }
.alerte-vert   { background: #ECFDF5; border-left-color: #10B981; color: #064E3B; }
.alerte-vert .bi { color: #047857; }


/* ─── Cartes module avec couleur de bord selon statut ─── */
.module-card {
  border-left: 4px solid #D1D5DB;
  transition: border-color 0.15s ease;
}
.module-card-valide        { border-left-color: #10B981; }
.module-card-progresse     { border-left-color: #2E8B9E; }
.module-card-en_difficulte { border-left-color: #F59E0B; background: #FFFBEB; }
.module-card-bloque        { border-left-color: #DC2626; background: #FEF2F2; }
.module-card-pas_commence  { border-left-color: #D1D5DB; }
.module-card-titre {
  color: var(--tcci-dark, #23478A);
  line-height: 1.3;
}


/* ─── Tableau des connexions ─── */
.connexions-table-wrapper {
  padding: 0 !important;
  overflow: hidden;
}
.connexions-table {
  margin: 0;
}
.connexions-table thead th {
  background: #F9FAFB;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6B7280;
  font-weight: 600;
  border-bottom: 1px solid #E5E7EB;
}
.connexions-table tbody tr {
  font-size: 0.9rem;
}
.connexions-table tbody tr:hover {
  background: #FAFCFD;
}
.connexions-table td:first-child {
  text-transform: capitalize; /* "lundi 10/05/2026" plutot que "lundi" tout en bas */
}


/* ═══════════════════════════════════════════════════════════════════════
   13. FORMULAIRE FORMATION (admin) — Cartes Modalite de delivrance
   Design custom robuste qui n'utilise PAS .btn-check / .btn-outline-*
   (qui buguent en chevauchement dans certaines versions Bootstrap).
   ═══════════════════════════════════════════════════════════════════════ */

.modalite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .modalite-grid {
    grid-template-columns: 1fr;
  }
}

/* Input radio cache mais accessible */
.modalite-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  margin: 0;
}

/* Carte cliquable */
.modalite-card {
  position: relative;
  display: block;
  padding: 1.1rem 1.1rem 1.1rem 1.1rem;
  background: #fff;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease,
              box-shadow 0.15s ease, transform 0.15s ease;
  margin: 0;
}
.modalite-card:hover {
  border-color: #9CA3AF;
  background: #FAFAFA;
}

.modalite-card-icon {
  font-size: 1.6rem;
  color: #6B7280;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.modalite-card-titre {
  font-weight: 700;
  font-size: 1rem;
  color: var(--tcci-dark, #23478A);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.modalite-card-desc {
  font-size: 0.85rem;
  color: #6B7280;
  line-height: 1.45;
}
.modalite-card-check {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  font-size: 1.3rem;
  color: #10B981;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Etat selectionne (radio coche) — attention : le radio est avant le label
   donc on utilise le selecteur ~ (sibling general) ou + (sibling adjacent).
   On a structure : <input> + <label>, donc le selecteur fonctionne. */
.modalite-radio:checked + .modalite-card {
  background: #F0F9FB;
  box-shadow: 0 4px 14px rgba(46, 139, 158, 0.15);
}
.modalite-radio:checked + .modalite-card .modalite-card-check {
  opacity: 1;
  transform: scale(1);
}

/* Couleurs par modalite (etat selectionne) */
.modalite-radio:checked + .modalite-elearning {
  border-color: #2E8B9E;
}
.modalite-radio:checked + .modalite-elearning .modalite-card-icon { color: #2E8B9E; }

.modalite-radio:checked + .modalite-visio {
  border-color: #23478A;
  background: #EEF2F9;
}
.modalite-radio:checked + .modalite-visio .modalite-card-icon { color: #23478A; }

.modalite-radio:checked + .modalite-presentiel {
  border-color: #C77B3F;
  background: #FFF8F0;
}
.modalite-radio:checked + .modalite-presentiel .modalite-card-icon { color: #C77B3F; }

/* Focus accessibilite */
.modalite-radio:focus-visible + .modalite-card {
  outline: 3px solid rgba(46, 139, 158, 0.35);
  outline-offset: 2px;
}

/* Bouton "Relancer" en bas d'une carte KPI (visible si applicable) */
.kpi-card { position: relative; }
.kpi-card-action {
  margin-top: 0.6rem;
}
.kpi-card-action .btn {
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
}


/* ════════════════════════════════════════════════════════════════
   PAGE PROGRAMME (/programme/<code>) — Hero clean
   Style identique à /formations (dégradé bleu + texture subtile)
   ════════════════════════════════════════════════════════════════ */

.prog-hero-banner {
  position: relative;
  background: linear-gradient(135deg, #23478A 0%, #2E5585 50%, #2E8B9E 100%);
  color: #fff;
  margin-top: 0;
  overflow: hidden;
}

/* Texture subtile en arrière-plan (radial gradients translucides) */
.prog-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.06) 0%, transparent 40%);
  pointer-events: none;
}

.prog-hero-banner-titre {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  color: #fff;
  letter-spacing: -0.01em;
  animation: heroFadeInUp 1s ease;
}

.prog-hero-banner-soustitre {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.92);
  animation: heroFadeInUp 1s ease 0.2s backwards;
}

@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Description sous le hero */
.prog-description {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #374151;
}
.prog-description p {
  margin: 0 0 1.1rem 0;
}
.prog-description strong {
  color: #1f2937;
  font-weight: 600;
}

/* "Les modules :" — titre souligné stylé */
.prog-description u {
  text-decoration: none;
  display: inline-block;
  font-weight: 700;
  font-size: 1.2rem;
  color: #1f2937;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid #23478A;
  margin-bottom: 0.25rem;
}

/* Liste de modules (pattern Quill : ul+p répétés) → encarts visuels */
.prog-description ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}
.prog-description ul li {
  background: #f9fafb;
  padding: 0.95rem 1.2rem 0.65rem;
  margin: 0;
  border-radius: 10px 10px 0 0;
  border-left: 3px solid #23478A;
  font-size: 1.02rem;
  color: #1f2937;
  font-weight: 600;
  line-height: 1.4;
}

/* Le <p> qui suit un <ul> = description du module → bas de l'encart */
.prog-description ul + p {
  background: #f9fafb;
  padding: 0 1.2rem 0.95rem;
  margin: 0 0 0.85rem 0;
  border-radius: 0 0 10px 10px;
  border-left: 3px solid #23478A;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: normal;
}

/* Vidéo de présentation de la formation */
.prog-presentation-video-wrap {
  max-width: 720px;
  margin: 0 auto 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.prog-presentation-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.prog-presentation-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  position: absolute;
  inset: 0;
}
.prog-presentation-video-file {
  width: 100%;
  height: auto;
  max-height: 480px;
  display: block;
  background: #000;
}

/* Image d'illustration (fallback si pas de vidéo) */
.prog-presentation-image-wrap {
  max-width: 720px;
  margin: 0 auto 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.prog-presentation-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
}

/* Mobile : bannière plus basse */
@media (max-width: 768px) {
  .prog-banniere-generique,
  .prog-banniere-generique img {
    max-height: 200px;
  }
  .prog-presentation-image,
  .prog-presentation-video-file {
    max-height: 280px;
  }
}


/* ════════════════════════════════════════════════════════════════
   PAGE PROGRAMME — Modules + Sessions disponibles
   ════════════════════════════════════════════════════════════════ */

/* En-tête "X modules — votre parcours" */
.prog-modules-header {
  margin: 3.5rem 0 2rem;
  text-align: center;
}
.prog-modules-header-titre {
  font-size: 1.85rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 1rem 0;
  letter-spacing: -0.01em;
}
.prog-modules-header-line {
  width: 60px;
  height: 3px;
  background: #23478A;
  margin: 0 auto;
  border-radius: 2px;
}

/* Card module */
.prog-module {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.prog-module:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: #d1d5db;
}

.prog-module-header {
  margin-bottom: 1.25rem;
}
.prog-module-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #23478A;
  background: #eff6ff;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.prog-module-bientot {
  color: #d97706;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}
.prog-module-titre {
  font-size: 1.45rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.prog-module-soustitre {
  font-size: 1rem;
  color: #6b7280;
  margin: 0.5rem 0 0 0;
  font-style: italic;
  line-height: 1.5;
}

/* Caractéristiques (durée, public, prérequis) */
.prog-module-caracs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0.9rem 1.1rem;
  background: #f9fafb;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.5;
}
.prog-module-caracs strong {
  color: #1f2937;
  font-weight: 600;
}

/* Objectif pédagogique */
.prog-module-objectif {
  border-left: 3px solid #23478A;
  padding: 0.5rem 0 0.5rem 1.2rem;
  margin: 1.25rem 0;
}
.prog-module-objectif-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #23478A;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.prog-module-objectif .rich-text-content {
  color: #374151;
  line-height: 1.6;
}

/* Description module */
.prog-module-description {
  color: #374151;
  line-height: 1.65;
  margin: 1rem 0;
}

/* Plan détaillé "Contenu du module" */
.prog-module-plan {
  background: #fafbfc;
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  margin-top: 1.25rem;
}
.prog-module-plan-titre {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.6rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.prog-module-plan-titre::before {
  content: '\F4CB';
  font-family: 'Bootstrap Icons';
  color: #23478A;
  font-weight: normal;
}
.prog-module-plan ul {
  margin: 0;
  padding-left: 1.2rem;
}
.prog-module-plan ul li {
  margin-bottom: 0.4rem;
  color: #374151;
  line-height: 1.5;
}

/* ─── Sessions disponibles ─── */
.prog-sessions {
  margin-top: 3.5rem;
}
.prog-sessions-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}

.prog-promos-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Card promo (session) */
.prog-promo-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.prog-promo-card:hover {
  border-color: #23478A;
  box-shadow: 0 10px 32px rgba(35, 71, 138, 0.12);
  transform: translateY(-2px);
}

.prog-promo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.prog-promo-titre {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  flex: 1;
  min-width: 200px;
  line-height: 1.35;
}
.prog-promo-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.prog-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.prog-promo-badge.badge-visio {
  background: #eff6ff;
  color: #1e40af;
}
.prog-promo-badge.badge-presentiel {
  background: #fef3c7;
  color: #92400e;
}

.prog-promo-description {
  color: #4b5563;
  font-size: 0.95rem;
  margin: 0.5rem 0 1rem 0;
  line-height: 1.55;
}

/* Calendrier des modules dans la promo */
.prog-promo-calendrier {
  background: #f9fafb;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
}
.prog-promo-calendrier-titre {
  font-size: 0.92rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.prog-promo-calendrier-titre i {
  color: #23478A;
}
.prog-promo-calendrier-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.prog-promo-calendrier-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0;
  font-size: 0.93rem;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}
.prog-promo-calendrier-item:last-child {
  border-bottom: none;
}
.prog-promo-calendrier-num {
  background: #23478A;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  min-width: 34px;
  text-align: center;
  flex-shrink: 0;
}
.prog-promo-calendrier-titre-mod {
  flex: 1;
  min-width: 0;
}
.prog-promo-calendrier-date {
  color: #6b7280;
  font-size: 0.88rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Tarif */
.prog-promo-tarif {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin: 1.25rem 0 0.5rem;
  flex-wrap: wrap;
}
.prog-promo-prix-actuel {
  font-size: 2.1rem;
  font-weight: 700;
  color: #23478A;
  line-height: 1;
}
.prog-promo-prix-barre {
  font-size: 1.15rem;
  color: #9ca3af;
  text-decoration: line-through;
}
.prog-promo-reduction-badge {
  background: #dc2626;
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}
.prog-promo-texte-promo {
  flex-basis: 100%;
  font-size: 0.9rem;
  color: #16a34a;
  font-weight: 500;
  margin-top: 0.15rem;
}

.prog-promo-date-fin {
  font-size: 0.88rem;
  color: #6b7280;
  margin: 0.5rem 0 1rem 0;
  font-style: italic;
}

.prog-promo-cta {
  display: inline-block;
  margin-top: 0.75rem;
}

/* Mention sous les cards */
.prog-cta-mention {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: #6b7280;
  font-style: italic;
}

/* Mobile */
@media (max-width: 768px) {
  .prog-modules-header-titre {
    font-size: 1.45rem;
  }
  .prog-module {
    padding: 1.4rem 1.25rem;
    border-radius: 12px;
  }
  .prog-module-titre {
    font-size: 1.2rem;
  }
  .prog-module-caracs {
    padding: 0.8rem;
    gap: 0.6rem;
    font-size: 0.88rem;
  }
  .prog-module-caracs > span {
    flex-basis: 100%;
  }
  .prog-sessions-label {
    font-size: 1.3rem;
  }
  .prog-promo-card {
    padding: 1.3rem;
    border-radius: 12px;
  }
  .prog-promo-titre {
    font-size: 1.05rem;
  }
  .prog-promo-prix-actuel {
    font-size: 1.7rem;
  }
  .prog-promo-calendrier-item {
    flex-wrap: wrap;
  }
  .prog-promo-calendrier-date {
    margin-left: 40px;
  }
}


/* ════════════════════════════════════════════════════════════════
   Section "Sessions à venir" (aucune promo ouverte)
   ════════════════════════════════════════════════════════════════ */

.prog-no-promo {
  background: linear-gradient(135deg, #f0f7ff 0%, #eef4f7 100%);
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(35, 71, 138, 0.05);
}

.prog-no-promo-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.25rem;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(35, 71, 138, 0.12);
}
.prog-no-promo-icon i {
  font-size: 2rem;
  color: #23478A;
}

.prog-no-promo-titre {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.85rem 0;
  line-height: 1.3;
}

.prog-no-promo-text {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.75rem 0;
}
.prog-no-promo-text strong {
  color: #1f2937;
  font-weight: 600;
}

/* Formulaire */
.prog-no-promo-form {
  margin: 0;
}
.prog-no-promo-form-row {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.prog-no-promo-input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.prog-no-promo-input:focus {
  outline: none;
  border-color: #23478A;
  box-shadow: 0 0 0 3px rgba(35, 71, 138, 0.12);
}

.prog-no-promo-form .btn-editorial {
  white-space: nowrap;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
}

.prog-no-promo-mention {
  margin: 1.25rem 0 0 0;
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.5;
}
.prog-no-promo-mention a {
  color: #23478A;
  text-decoration: none;
  font-weight: 500;
}
.prog-no-promo-mention a:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
  .prog-no-promo {
    padding: 1.75rem 1.25rem;
    border-radius: 14px;
  }
  .prog-no-promo-icon {
    width: 56px;
    height: 56px;
  }
  .prog-no-promo-icon i {
    font-size: 1.6rem;
  }
  .prog-no-promo-titre {
    font-size: 1.15rem;
  }
  .prog-no-promo-form-row {
    flex-direction: column;
  }
  .prog-no-promo-input,
  .prog-no-promo-form .btn-editorial {
    width: 100%;
  }
}


/* ════════════════════════════════════════════════════════════════
   DASHBOARD APPRENANT — Encart Témoignages
   ════════════════════════════════════════════════════════════════ */
.dashboard-temoignages-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 1.5rem;
}

.dashboard-temoignages-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: 14px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.dashboard-temoignages-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
}

.dashboard-temoignages-card-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #d97706;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
}

.dashboard-temoignages-card-body {
  flex: 1;
  min-width: 0;
}

.dashboard-temoignages-card-titre {
  font-size: 1.1rem;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 0.25rem 0;
}

.dashboard-temoignages-card-text {
  font-size: 0.92rem;
  color: #78350f;
  margin: 0;
  line-height: 1.45;
}

.dashboard-temoignages-card-cta {
  flex-shrink: 0;
  font-weight: 600;
  color: #92400e;
  font-size: 0.92rem;
  white-space: nowrap;
}

/* Mobile : passer en colonne */
@media (max-width: 640px) {
  .dashboard-temoignages-card {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }
  .dashboard-temoignages-card-icon {
    margin: 0 auto;
  }
}
