:root {
  --primary: #0d1b3e;
  /* Bleu Nuit Officiel */
  --primary-light: #1e3a8a;
  --midnight-blue: #162447;
  --accent: #d63c41;
  /* Rouge TechCo adouci */
  --accent-hover: #b82d31;
  --blue-light: #e0f2fe;
  /* Bleu Ciel Très Léger */
  --blue-accent: #0ea5e9;
  /* Bleu Ciel Vif pour icônes */
  --bg-light: #f8fbff;

  /* Fond épuré */
  --white: #ffffff;
  --text-dark: #0d1b3e;
  --text-muted: #64748b;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-premium: 0 20px 40px rgba(13, 27, 62, 0.08);

  /* Thèmes Soft pour le Wizard */
  --sage-bg: #f1f8f1;
  --sage-accent: rgba(67, 160, 71, 0.82);
  /* Vert SAGE adouci */
  --perfecto-bg: #FEF9F0;
  --perfecto-accent: rgba(238, 178, 50, 0.82);
  /* Jaune/Orange PERFECTO adouci */
  --hypersoft-bg: #fff5f5;
  --hypersoft-accent: rgba(214, 60, 65, 0.82);

  /* Dynamisé par JS */
  --theme-bg: var(--bg-light);
  --theme-primary: var(--primary);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Heebo', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--theme-bg);
  overflow-x: hidden;
  transition: background-color 0.6s ease;
}

h1,
h2,
h3,
h4,
.tech-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  padding: 8px 0;
  /* Navbar plus fine */
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #eef2f6;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 42px;
  /* Logo plus petit */
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.hamburger:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
  margin-right: 80px;
  /* Décale les liens vers le centre */
}

.catchy-phrase {
  background: rgba(13, 27, 62, 0.05);
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  display: inline-block;
  margin-top: 10px;
}

.catchy-phrase i {
  color: var(--primary);
  margin-right: 8px;
}

/* .module-icon — icône dans les cartes module (wizard) */
.module-icon {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 6px;
  transition: all 0.25s ease;
}

@keyframes pulse-soft {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }

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

.module-item:hover .module-icon {
  animation: none;
  transform: scale(1.2);
  color: var(--primary);
}

.nav-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

/* Animation soulignement glissant style TechCo */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
  /* Conserve la couleur — pas de rouge */
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.btn-primary {
  color: white;
  padding: 10px 25px;
  /* Ajustement pour qu'il soit élégant dans le menu */
}

.nav-links a.btn-primary:hover {
  color: white;
  transform: none;
  /* Enlève le survol (pas de déplacement) */
  background: var(--accent);
}

/* --- Hero --- */
.hero {
  padding: 100px 0;
  background: radial-gradient(circle at top right, #f1f5f9, #ffffff);
  text-align: center;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.btn-main,
.btn-primary {
  padding: 15px 35px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: var(--transition);
}

.btn-main:hover,
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  color: white;
}

.btn-outline {
  padding: 15px 35px;
  background: transparent;
  color: var(--primary);
  text-decoration: none;
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-weight: 700;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* --- Wizard Navigation & Steps --- */
/* Masqué par défaut dans la modale — afficheé uniquement via .active ---  */
.software-group {
  display: none;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(13, 27, 62, 0.08);
  box-shadow: var(--shadow-premium);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.software-group.active {
  /* Flex column : header fixe + modules scrollables + footer fixe */
  display: flex !important;
  flex-direction: column;
  height: 100%;
  flex: 1;
  min-height: 0;
  opacity: 1;
  transform: translateY(0);
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.wizard-footer-nav {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding: 20px 0;
}

/* En modale : le nav du bas est fixe (pas sticky) — il ne scroll plus */
.sticky-wizard-nav {
  position: relative;
  /* plus sticky — c'est le flex qui le fixe en bas */
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  margin-top: 0;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 10;
  border-radius: 0 0 20px 20px;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-total-display {
  display: flex;
  flex-direction: column;
}

.modal-total-display .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.modal-total-display .value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.nav-buttons {
  display: flex;
  gap: 12px;
}


.btn-wizard {
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.btn-wizard-prev {
  background: #f1f5f9;
  color: var(--text-dark);
}

.btn-wizard-prev:hover {
  background: #e2e8f0;
}

.btn-wizard-next {
  background: var(--theme-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-wizard-finish {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(13, 27, 62, 0.2);
}


.btn-wizard-finish:hover {
  transform: scale(1.05);
}



/* --- Delivery Banner --- */
.delivery-banner {
  background: white;
  border-radius: 12px;
  padding: 20px 30px;
  margin: 30px auto 50px;
  max-width: 800px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f6;
}

.delivery-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.delivery-pill {
  display: flex;
  align-items: center;
  gap: 15px;
}

.pill-icon {
  font-size: 1.8rem;
  color: var(--primary);
  background: #f1f5f9;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.pill-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.pill-text strong {
  color: var(--primary);
  font-size: 1.1rem;
}

.pill-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.delivery-separator {
  color: #cbd5e1;
  font-size: 1.2rem;
  margin: 0 10px;
}

.delivery-note {
  width: 100%;
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

.delivery-note i {
  margin-right: 5px;
}

/* --- Discovery Cards --- */
.discovery-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.discovery-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid #eef2f6;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.discovery-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-premium);
  border-color: var(--primary);
}

.discovery-card img {
  height: 60px;
  margin-bottom: 20px;
  object-fit: contain;
}

.discovery-card h3 {
  font-family: 'Outfit', sans-serif;
  margin-bottom: 15px;
  color: var(--primary);
}

.discovery-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.price-tag {
  display: inline-block;
  padding: 5px 15px;
  background: #f1f5f9;
  color: var(--primary);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}

.module-price-badge {
  background: #0d1b3e !important;
  color: white !important;
  padding: 8px 25px;
  border-radius: 50px;
  border: none;
  font-size: 1.1rem;
  font-weight: 800;
  text-align: right;
  line-height: 1.1;
  box-shadow: 0 4px 15px rgba(13, 27, 62, 0.15);
}

.module-price-badge small {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Theme overrides */
body.theme-sage {
  --theme-bg: var(--sage-bg);
  --theme-primary: var(--sage-accent);
}

body.theme-perfecto {
  --theme-bg: var(--perfecto-bg);
  --theme-primary: var(--perfecto-accent);
}

body.theme-hypersoft {
  --theme-bg: var(--hypersoft-bg);
  --theme-primary: var(--hypersoft-accent);
}

.software-group.active {
  /* Suppress active border as requested */
  border: none;
  border-top: 8px solid var(--theme-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.software-group .module-item.selected {
  background: white;
  border-color: var(--theme-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.software-group .module-item.selected .checkmark {
  background: var(--theme-primary);
  opacity: 1;
  transform: scale(1);
}

.software-group .module-item.selected label {
  color: var(--theme-primary);
}

.software-group .module-item.selected label .module-icon {
  color: var(--theme-primary);
}

/* Specific to Discovery Cards buttons to avoid black border */
.discovery-card .btn-main {
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.discovery-card .btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* --- Solutions Grid --- */
.solutions {
  padding: 100px 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-header p {
  color: #64748b;
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1rem;
  text-align: center;
  color: #64748b;
  margin-top: 0;
  margin-bottom: 15px;
  display: block;
}

.underline {
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 0 auto 40px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.solution-card {
  background: white;
  height: 180px;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  border: 1px solid rgba(13, 27, 62, 0.05);
  box-shadow: var(--shadow-premium);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: white;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.solution-card:hover .card-overlay {
  transform: translateY(0);
}

.solution-card.active {
  border: 2px solid var(--accent);
  transform: scale(1.03);
  box-shadow: 0 25px 50px rgba(227, 30, 37, 0.1);
}

.solution-card.active .card-overlay {
  background: var(--accent);
  transform: translateY(0);
}

.solution-card.active .card-overlay span {
  content: "Sélectionné";
}

.solution-card img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
}

.contact-card-mini {
  background: var(--primary);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: none;
}

.contact-card-mini h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--accent);
}

.contact-card-mini p {
  font-size: 0.85rem;
  margin-bottom: 5px;
  opacity: 0.9;
}

/* --- Modules --- */
.formations {
  padding: 80px 0;
  background: #f8fafc;
}

/* Seule zone qui scrolle dans la modale */
.modules-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 900px;
  padding: 15px 20px 0;
  margin: 0 auto;
  overflow-y: auto !important;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  max-height: 60vh;
  /* Légèrement réduit pour esthétique */
}


.module-item {
  background: white;
  padding: 0;
  /* Padding géré par le label interne pour que le clic couvre toute la carte */
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid #eef2f6;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.module-item input {
  display: none;
}

.module-item .checkmark {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition);
}

.module-item.selected .checkmark {
  opacity: 1;
  transform: scale(1);
}

.module-item label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  width: 100%;
  flex: 1;
  min-height: 120px;
  cursor: pointer;
  padding: 20px 16px;
}

.module-item .icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
  pointer-events: none;
}

/* Icône principale des cartes de modules (classe utilisée dans le HTML) */
.module-item .module-icon {
  font-size: 2rem;
  display: block;
  color: var(--primary);
  pointer-events: none;
  transition: transform 0.25s ease, color 0.25s ease;
}

.module-item .name {
  display: block;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.3;
  pointer-events: none;
}

.module-item.selected {
  border-color: var(--accent);
  background: #f0f9ff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 174, 239, 0.1);
}

.pricing-summary {
  margin-bottom: 35px;
  padding: 25px;
  text-align: center;
  background: var(--blue-light);
  border: 1px solid rgba(14, 165, 233, 0.1);
  color: var(--primary);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(13, 27, 62, 0.03);
}

.pricing-summary p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  opacity: 0.9;
}

.total-badge {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.total-badge::before {
  content: '\f15b';
  font-family: 'Font Awesome 6 Free';
  font-size: 1.2rem;
  color: var(--blue-accent);
}


/* --- Registration Form --- */
.registration {
  padding: 100px 0;
  background: white;
}

.form-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.form-header p {
  color: #64748b;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

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

.form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.form-group input,
.form-group select {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: #f8fafc;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.1);
}

/* Animation idle "press me" style jeu vidéo */
@keyframes btn-idle-glow {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(28, 52, 97, 0.3), 0 0 0 0 rgba(255, 255, 255, 0);
  }

  50% {
    box-shadow: 0 4px 25px rgba(28, 52, 97, 0.5), 0 0 18px 3px rgba(255, 255, 255, 0.12);
  }
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: #1c3461;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: btn-idle-glow 2s ease-in-out infinite;
}

/* Trait blanc qui traverse de gauche à droite au survol */
.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg,
      transparent 20%,
      rgba(255, 255, 255, 0.22) 50%,
      transparent 80%);
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
}

.btn-submit:hover::before {
  opacity: 1;
  animation: shimmer-sweep 0.38s ease forwards;
}

@keyframes shimmer-sweep {
  0% {
    left: -80%;
  }

  100% {
    left: 130%;
  }
}

.btn-submit:hover {
  background: #243d71;
  /* légèrement plus clair au survol */
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(13, 27, 62, 0.35);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ===== CATALOGUE DE FORMATIONS PAR LOGICIEL ===== */
/* (les styles de base .software-group sont définis en haut — ici uniquement les overrides de catalogue) */


.software-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 25px 15px;
  background: var(--theme-bg);
  border-bottom: none;
}

.software-group-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  background: white;
  padding: 8px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.software-group-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 2px;
}

.software-group-header p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.software-group .modules-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 25px;
  background: #ffffff;
}

.software-group .module-item {
  background: #fff;
  border-radius: 16px;
  border: 2px solid #f1f5f9;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(13, 27, 62, 0.02);
}

.software-group .module-item:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 16px rgba(13, 27, 62, 0.05);
}

.software-group .module-item.selected {
  border-color: var(--theme-primary);
  background: var(--theme-bg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.software-group .module-item input[type="checkbox"] {
  display: none;
}

.software-group .module-item label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 24px 16px;
  cursor: pointer;
  min-height: 120px;
  flex: 1;
  width: 100%;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.software-group .module-item.selected label {
  color: var(--theme-primary);
}

/* Icône dans les cartes modules (style desktop commun) */
.software-group .module-item .module-icon {
  font-size: 2rem;
  display: block;
  color: var(--primary);
  pointer-events: none;
  transition: transform 0.25s ease, color 0.25s ease;
}

/* Icône colorée quand la carte est sélectionnée */
.software-group .module-item.selected .module-icon {
  color: var(--theme-primary);
}

/* Nom du module visible explicitement */
.software-group .module-item .name {
  display: block;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.3;
  pointer-events: none;
}

.software-group .module-item.selected .name {
  color: var(--theme-primary);
}

.software-group .module-item .checkmark {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  background: var(--theme-primary);
  color: white;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.software-group .module-item.selected .checkmark {
  opacity: 1;
  transform: scale(1);
}

/* ===== COLONNE GAUCHE — fond clair/blanc ===== */
.footer-left {
  background: #fdfdfe;
  /* Presque blanc pour le logo */
  width: 340px;
  min-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 32px;
  gap: 32px;
}

/* Logo TechCo */
.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0d1b3e;
  letter-spacing: -.5px;
}

.logo-sub {
  font-size: .5rem;
  font-weight: 700;
  color: #e31e25;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Newsletter */
.newsletter-row {
  display: flex;
  width: 100%;
  max-width: 260px;
  /* Longueur réduite selon demande */
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.newsletter-row input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid #ccc;
  border-right: none;
  font-family: 'Heebo', sans-serif;
  font-size: .88rem;
  color: #333;
  outline: none;
  background: #fff;
}

.newsletter-row button {
  padding: 11px 16px;
  background: #0d1b3e;
  color: #fff;
  border: none;
  font-family: 'Heebo', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  /* Empêche le bouton d'être écrasé */
  transition: background .2s;
}

.newsletter-row button:hover {
  background: #e31e25;
}

/* ==========================================================================
   FOOTER — SOURCE UNIQUE (Minimalist & Pro) — RÉDUIT ×2/3
   ========================================================================== */
.assoh-footer {
  background: var(--midnight-blue);
  color: #EEF9FF;
  padding: 8px 0 0;
  border-top: none;
  font-family: 'Manrope', sans-serif;
  position: relative;
}

.footer-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.footer-logo {
  max-height: 20px;
  height: auto;
  width: auto;
  margin-bottom: 4px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: var(--transition);
}

.f-col.branding p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #ffffff;
  /* blanc pur */
  margin-bottom: 0;
}

/* Footer Titles */
.footer-title {
  color: var(--blue-accent);
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 6px;
  /* réduit: 12 × 2/3 = 8px */
  font-size: 0.82rem;
  color: rgba(238, 249, 255, 0.75);
  cursor: default;
  /* figé, pas de pointeur interactif */
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Puce arrow — discrète */
.footer-links li::before {
  content: '›';
  font-size: 0.9rem;
  color: #EEF9FF;
  opacity: 0.35;
  flex-shrink: 0;
}

/* Hover figé — aucun mouvement */
.footer-links li:hover {
  color: rgba(238, 249, 255, 0.75);
  transform: none;
}

.footer-links a {
  color: #EEF9FF;
  text-decoration: none;
  font-size: 0.82rem;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: #ffffff;
}

/* Agencies Column */
.agences-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* réduit: 20 × 2/3 ≈ 13px */
}

.agence-item {
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
  /* gris — adresses */
  margin-bottom: 6px;
}

.agence-item strong {
  display: block;
  color: #ffffff;
  /* blanc pur — pays */
  font-size: 0.82rem;
  margin-bottom: 3px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.agence-item a {
  color: #EEF9FF;
  text-decoration: none;
  font-weight: 600;
}

/* Copyright & Bottom Links */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.bottom-links a {
  color: rgba(238, 249, 255, 0.5);
  text-decoration: none;
  font-size: 0.72rem;
  margin-left: 16px;
  transition: var(--transition);
}

.bottom-links a:hover {
  color: #ffffff;
}

.contact-country-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.country-name {
  color: #EEF9FF;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
}

.c-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #EEF9FF;
  transition: var(--transition);
  margin-bottom: 2px;
}

.c-line:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.c-line i {
  color: #EEF9FF;
  font-size: 0.85rem;
  opacity: 0.5;
  transition: var(--transition);
}

.c-line:hover i {
  opacity: 1;
  color: #EEF9FF;
}

.c-line a {
  color: inherit;
  text-decoration: none;
  font-size: 0.78rem;
  transition: var(--transition);
}

.social-icons-group {
  display: flex;
  gap: 8px;
  padding-top: 2px;
}

.social-icons-group a {
  width: 28px;
  height: 28px;
  background: rgba(238, 249, 255, 0.1);
  color: #EEF9FF;
  border: 1px solid rgba(238, 249, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.82rem;
  text-decoration: none;
  transition: var(--transition);
}

.social-icons-group a:hover {
  background: rgba(238, 249, 255, 0.2);
  transform: translateY(-2px);
  color: #EEF9FF;
  border-color: rgba(238, 249, 255, 0.4);
}

.footer-copyright {
  background: #081126;
  margin-top: 8px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  color: rgba(238, 249, 255, 0.4);
  text-transform: uppercase;
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 6px 15px rgba(13, 27, 62, 0.2);
  transition: all 0.3s ease;
  z-index: 9999;

  /* Invisible par défaut en haut de page */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(13, 27, 62, 0.3);
}

@media (max-width: 991px) {
  .footer-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .f-col.branding p {
    margin: 0 auto;
  }

  .c-line {
    justify-content: center;
  }

  .social-icons-group {
    justify-content: center;
  }

  .scroll-top {
    position: static;
    margin: 20px auto 0;
    transform: none;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablettes & Mobiles)
   ========================================================================== */
@media (max-width: 991px) {

  /* Grilles 2 colonnes sur tablette */
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .modules-container,
  .software-group .modules-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  /* Formulaire 1 colonne */
  .form-grid {
    grid-template-columns: 1fr;
  }

  /* Titres réduits */
  .hero h1 {
    font-size: 3rem;
  }

  /* Discovery Cards 2 colonnes sur tablette */
  .discovery-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  /* Solution card réduit */
  .solution-card {
    height: 150px;
    padding: 20px;
  }

  .solution-card img {
    max-height: 55px;
  }

  /* Discovery card compact */
  .discovery-card {
    padding: 20px;
  }

  .discovery-card img {
    height: 50px;
    margin-bottom: 15px;
  }

  /* Sections padding réduit */
  .solutions {
    padding: 60px 0;
  }

  .formations {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  /* Versions section */
  .versions-section {
    padding: 20px;
  }

  .version-badge {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {

  /* En-tête / Menu Hamburger */
  nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #eef2f6;
    display: none;
    /* Masqué par défaut */
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  /* Héros compact */
  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-btns {
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
  }

  /* Grilles 1 colonne sur smartphone */
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .modules-container,
  .software-group .modules-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
    padding: 10px 12px 0;
  }

  /* Solution card mobile */
  .solution-card {
    height: 130px;
    padding: 15px;
    border-radius: 12px;
  }

  .solution-card img {
    max-height: 45px;
  }

  .card-overlay {
    font-size: 0.75rem;
    padding: 8px;
  }

  /* Module items compacts */
  .module-item {
    padding: 0 !important;
    border-radius: 12px;
    min-height: 100px !important;
    display: flex !important;
    flex-direction: column !important;
    background: white !important;
  }

  .software-group .module-item label,
  .module-item label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100px !important;
    padding: 15px 10px !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-size: 0.85rem !important;
    text-align: center !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
  }

  .module-item .module-icon {
    font-size: 1.5rem !important;
    color: var(--primary) !important;
    margin-bottom: 4px !important;
    display: block !important;
    transition: all 0.25s ease;
  }

  .module-item .name {
    font-size: 0.85rem !important;
    color: var(--text-dark) !important;
    font-weight: 700 !important;
    display: block !important;
    line-height: 1.2 !important;
  }

  .software-group .module-item.selected label {
    color: var(--theme-primary) !important;
  }

  .software-group .module-item.selected label .module-icon,
  .software-group .module-item.selected label .name {
    color: var(--theme-primary) !important;
  }

  .module-item .checkmark {
    width: 18px;
    height: 18px;
    top: 8px;
    right: 8px;
    font-size: 8px;
  }

  /* Formulaire compact */
  .form-wrapper {
    padding: 25px 15px;
  }

  .form-header h2 {
    font-size: 1.8rem;
  }

  /* Sections réduites */
  .solutions {
    padding: 40px 0;
  }

  .formations {
    padding: 40px 0;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .section-header p {
    font-size: 0.85rem;
  }

  /* Section Contact / Footer (Alignement Centré) */
  .contact-details {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .contact-country-block {
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 10px;
  }

  .contact-title {
    text-align: center;
    margin-bottom: 15px;
  }

  /* Delivery Banner (Présentiel/Distanciel) */
  .delivery-banner {
    padding: 15px;
  }

  .delivery-banner-inner {
    flex-direction: column;
    gap: 10px;
  }

  .delivery-pill {
    width: 100%;
    justify-content: center;
  }

  .delivery-separator {
    transform: rotate(90deg);
    margin: 5px 0;
  }

  /* Discovery Cards 1 colonne */
  .discovery-cards {
    grid-template-columns: 1fr;
  }

  /* En-tête de Modale */
  .software-group-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 15px 5px 15px;
    gap: 10px;
    position: relative;
  }

  .software-group-header .header-left {
    flex-direction: row;
    align-items: center !important;
    gap: 15px !important;
    width: calc(100% - 40px);
    /* Leave room for close button */
  }

  .software-group-logo {
    height: 32px;
    padding: 6px 12px;
  }

  .software-group-header h3 {
    font-size: 1.05rem !important;
  }

  .software-group-header .header-right {
    width: 100%;
    justify-content: flex-start !important;
  }

  .module-price-badge {
    text-align: center;
    padding: 6px 20px;
    font-size: 0.95rem;
  }

  .modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    margin: 0;
  }

  .view-switch {
    flex-direction: row;
    flex-wrap: wrap;
    border-radius: 50px;
    padding: 4px;
  }

  .view-switch-btn {
    flex: 1;
    border-radius: 50px;
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .level-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    border-radius: 50px;
  }

  .level-tab {
    flex: 1;
    padding: 8px 5px;
    font-size: 0.8rem;
  }

  .sticky-wizard-nav {
    flex-direction: column;
    gap: 10px;
    padding: 12px 15px;
  }

  .modal-total-display {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .modal-total-display .value {
    font-size: 1.2rem;
  }

  .nav-buttons {
    width: 100%;
    flex-direction: row;
    gap: 10px;
  }

  .btn-wizard {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
    justify-content: center;
  }

  .wizard-modal-container {
    height: 90vh;
    height: 90dvh;
    width: 98%;
  }

  .modules-container,
  .software-group .modules-container,
  .sage-syllabus-container {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    background: #fff !important;
  }
}

/* ===== TRÈS PETITS ÉCRANS (smartphones < 480px) ===== */
@media (max-width: 480px) {

  /* Hero */
  .hero {
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 1.7rem;
    line-height: 1.25;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .hero-btns {
    flex-direction: column;
    gap: 12px;
  }

  .btn-main,
  .btn-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Nav logo + liens */
  .logo img {
    height: 32px;
  }

  /* Section headers */
  .section-header h2 {
    font-size: 1.3rem;
  }

  /* Solutions grid: 1 col sur très petit écran */
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .solution-card {
    height: 110px;
    padding: 12px;
  }

  .solution-card img {
    max-height: 38px;
  }

  /* Discovery cards: 1 col */
  .discovery-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .discovery-card {
    padding: 15px;
  }

  .discovery-card img {
    height: 40px;
    margin-bottom: 10px;
  }

  /* Modules: 1 col sur très petit écran */
  .modules-container,
  .software-group .modules-container {
    grid-template-columns: 1fr !important;
    gap: 8px;
    padding: 8px 10px 0;
  }

  /* Delivery banner */
  .delivery-banner {
    padding: 12px;
    margin: 20px auto 30px;
  }

  .pill-icon {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }

  .pill-text strong {
    font-size: 1rem;
  }

  /* Version badges */
  .version-badges {
    gap: 8px;
  }

  .version-badge {
    padding: 5px 12px;
    font-size: 0.78rem;
  }

  /* Modal sur tout l'écran */
  .wizard-modal-container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    top: 0;
    left: 0;
    transform: translate(0, 0) scale(1);
  }

  .wizard-modal-container.modal-active {
    transform: translate(0, 0) scale(1);
  }

  .software-group-header {
    padding: 10px 12px 5px;
  }

  .software-group-logo {
    height: 28px;
    padding: 4px 8px;
  }

  .software-group-header h3 {
    font-size: 0.95rem !important;
  }

  .view-switch-btn {
    font-size: 0.78rem;
    padding: 7px 8px;
  }

  .level-selector-wrapper {
    padding: 0 12px 8px !important;
  }

  .level-info {
    margin-top: 6px !important;
    margin-bottom: 2px !important;
    gap: 2px !important;
  }

  .level-duration {
    font-size: 0.82rem !important;
  }

  .level-note {
    font-size: 0.65rem !important;
  }

  .level-tab {
    font-size: 0.75rem;
    padding: 6px 4px;
  }

  .sticky-wizard-nav {
    padding: 8px 12px !important;
    gap: 6px !important;
  }

  .modal-total-display .value {
    font-size: 1.1rem !important;
  }

  .btn-wizard {
    padding: 8px 10px !important;
    font-size: 0.8rem !important;
  }

  /* Footer */
  .footer-logo {
    height: 35px;
  }
}

/* ===== MODAL UX STYLES (Focused Flow) ===== */
.blur-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 11, 30, 0.85);
  /* Plus sombre pour masquer les couleurs du site */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

/* Effet de flou global sur le reste du site quand la modale est ouverte */
body.modal-open header,
body.modal-open main,
body.modal-open footer {
  filter: blur(15px);
  /* Flou intense sur le contenu en arrière-plan */
  pointer-events: none;
  /* Désactive les interactions avec le fond */
  transition: filter 0.4s ease;
  user-select: none;
}

body.modal-open .blur-backdrop {
  opacity: 1;
  visibility: visible;
}

body.modal-open {
  overflow: hidden;
  /* Empêche le scroll de la page derrière */
}

.wizard-modal-container {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 9999;
  width: 95%;
  max-width: 900px;
  height: 85vh;
  /* Moins haut, plus élégant et centré */
  background: #ffffff;
  /* Fond opaque pour ne pas être flouté */
  border-radius: 24px;
  overflow: hidden;
  /* Désactive le scroll de la modale elle-même */
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.wizard-modal-container.modal-active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.wizard-modal-container .software-group {
  margin: 0;
  /* En modale, on n'a plus besoin du margin-bottom */
}

/* Bouton Fermer Modale (X) */
.modal-close-btn {
  margin-left: 15px;
  background: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  font-size: 1.1rem;
  color: #64748b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* ===== LEVEL SELECTOR (Initiation, Avancé, Consultant) ===== */
.level-selector-wrapper {
  padding: 0 25px 20px;
  background: var(--theme-bg);
  border-bottom: 1px solid rgba(13, 27, 62, 0.05);
}

.level-tabs {
  display: flex;
  gap: 5px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 50px;
}

.level-tab {
  flex: 1;
  padding: 10px 10px;
  border: none;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.level-tab:hover {
  color: var(--text-dark);
}

.level-tab.active {
  background: white;
  color: var(--theme-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.level-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 15px;
  margin-bottom: 5px;
  text-align: center;
}

.level-duration {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
}

.level-duration i {
  color: var(--theme-primary);
  margin-right: 5px;
}

.level-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}


.modal-close-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1) rotate(180deg);
  border-color: var(--primary);
}


/* Force SweetAlert2 au-dessus de la modale TechCo (Z-index 10000) */
.swal2-container {
  z-index: 10000 !important;
}

/* ===== BOUTON A BASCULE (SWITCH) MODALE SAGE ===== */
.view-switch-wrapper {
  padding: 15px 25px 5px;
  background: var(--theme-bg);
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(13, 27, 62, 0.05);
}

.view-switch {
  display: flex;
  background: #e2e8f0;
  padding: 4px;
  border-radius: 50px;
  width: 100%;
  max-width: 480px;
}

.view-switch-btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.view-switch-btn:hover {
  color: var(--text-dark);
}

.view-switch-btn.active {
  background: white;
  color: var(--theme-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* ===== ACCORDEON SYLLABUS SAGE ===== */
.sage-syllabus-container {
  display: none;
  /* géré par data-view */
  padding: 20px 25px;
  overflow-y: auto !important;
  flex: 1;
  max-height: 60vh;
  scrollbar-width: thin;
}

.syllabus-header {
  margin-bottom: 20px;
  text-align: center;
}

.syllabus-header h4 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.syllabus-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 25px;
}

.accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: var(--theme-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.accordion-header {
  width: 100%;
  padding: 15px 20px;
  background: white;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.accordion-header span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.accordion-header span i {
  color: var(--theme-primary);
  font-size: 1.1rem;
}

.accordion-header .arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.accordion-item.active {
  border-color: var(--theme-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.accordion-item.active .accordion-header {
  color: var(--theme-primary);
  border-bottom: 1px solid #f1f5f9;
}

.accordion-item.active .arrow {
  transform: rotate(180deg);
  color: var(--theme-primary);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: #fafcfd;
}

.accordion-content ul {
  padding: 15px 20px 15px 45px;
  margin: 0;
  list-style-type: disc;
  font-size: 0.85rem;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-content ul li strong {
  color: var(--text-dark);
}

/* ===== VERSIONS SECTION ===== */
.versions-section {
  padding: 25px 30px;
  background: #f1f5f9;
  border-radius: 12px;
  margin-top: 25px;
}

.versions-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.versions-icon {
  font-size: 1.8rem;
  color: var(--theme-primary);
}

.versions-section h5 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.versions-section p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.version-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.version-badge {
  background: white;
  border: 1px solid #e2e8f0;
  color: var(--text-dark);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.version-badge em {
  font-style: normal;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 6px;
  font-size: 0.85rem;
}

/* ===== GESTION AFFICHAGE SYLLABUS SAGE ===== */
#step-1[data-view="syllabus"] .sage-syllabus-container {
  display: block !important;
}

#step-1[data-view="syllabus"] .level-selector-wrapper,
#step-1[data-view="syllabus"] .modules-container,
#step-1[data-view="syllabus"] .module-price-badge,
#step-1[data-view="syllabus"] .sticky-wizard-nav {
  display: none !important;
}

#step-1[data-view="selection"] .sage-syllabus-container {
  display: none !important;
}

/* Titles logic */
#step-1[data-view="syllabus"] .title-selection {
  display: none;
}

#step-1[data-view="syllabus"] .title-syllabus {
  display: block;
}

#step-1[data-view="selection"] .title-syllabus {
  display: none;
}

#step-1[data-view="selection"] .title-selection {
  display: block;
}

/* ============================================================
   FIX DÉFINITIF — Modules desktop : icônes + noms visibles
   Coller À LA FIN de style.css (après tous les @media)
   ============================================================ */

/* ============================================================
   FIX DÉFINITIF — Modules desktop : icônes + noms visibles
   + 5 modules alignés horizontalement (pas d'ascenseur)
   Coller À LA FIN de style.css (après tous les @media)
   ============================================================ */

/* ── 1. Carte : ancre pour le checkmark absolu ── */
.software-group .module-item,
.modules-container .module-item {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  min-height: 130px !important;
  height: auto !important;
}

/* ── 2. Label : flex column centré, coche hors flux ── */
.software-group .module-item label,
.modules-container .module-item label {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  min-height: 130px !important;
  height: auto !important;
  padding: 20px 10px !important;
  cursor: pointer !important;
  text-align: center !important;
  overflow: visible !important;
}

/* ── 3. Icône toujours visible ── */
.software-group .module-item .module-icon,
.modules-container .module-item .module-icon {
  display: block !important;
  font-size: 1.8rem !important;
  color: var(--primary) !important;
  flex-shrink: 0 !important;
  pointer-events: none;
  line-height: 1 !important;
}

.software-group .module-item.selected .module-icon,
.modules-container .module-item.selected .module-icon {
  color: var(--theme-primary) !important;
}

/* ── 4. Nom toujours visible ── */
.software-group .module-item .name,
.modules-container .module-item .name {
  display: block !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  line-height: 1.3 !important;
  color: var(--text-dark) !important;
  pointer-events: none;
}

.software-group .module-item.selected .name,
.modules-container .module-item.selected .name {
  color: var(--theme-primary) !important;
}

/* ── 5. Checkmark : sorti du flux flex du label,
        ancré en absolu sur la carte (.module-item) ── */
.software-group .module-item label .checkmark,
.modules-container .module-item label .checkmark {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  flex: none !important;
  align-self: auto !important;
  margin: 0 !important;
  pointer-events: none;
  z-index: 2;
}

/* ── 6. Grille 5 colonnes sur desktop — 1 ligne, 0 ascenseur ── */
.software-group .modules-container,
.modules-container.level-grid {
  grid-template-columns: repeat(5, 1fr) !important;
  max-height: none !important;
  overflow: visible !important;
  overflow-y: visible !important;
  padding: 20px 25px !important;
}

/* ── Responsive : on repasse à 2 colonnes sur mobile (inchangé) ── */
@media (max-width: 768px) {

  .software-group .modules-container,
  .modules-container.level-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    overflow-y: auto !important;
  }
}