/* ===============================
   MENU GLOBAL

   Remplace les règles nicepage.css
   =============================== */
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* empêche un éventuel scroll horizontal */
}
/* Conteneur principal du menu */
.u-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* par défaut aligné à droite */
  gap: 20px;
  font-weight: 600;
}

/* Alignement à droite */
.u-align-right {
  justify-content: flex-end;
}

/* Style des liens */
.u-menu a {
  color: var(--dark-bg);
  padding: 10px 15px;
  transition: color 0.3s ease, background 0.3s ease;
}

.u-menu a:hover {
  color: var(--accent-color);
}

/* Menu simple (un seul niveau) */
.u-menu-one-level ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
}

.u-menu-one-level li {
  position: relative;
}

/* SECTION DU BOUTON */
.cta-section {
  text-align: center;
}

.cta-container {
	 margin: 25px auto 0 auto; 
    max-width: 300px;
  max-width: 300px; /* largeur raisonnable */

}

/* ===============================
   VERSION MOBILE — OFFCANVAS
   =============================== */
.u-offcanvas {
  display: none; /* caché en desktop */
}

.u-offcanvas-button {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Menu déroulant sur mobile */
@media (max-width: 991px) {
  .u-menu-one-level ul {
    display: none; /* on cache la nav horizontale */
    flex-direction: column;
    background: white;
    position: absolute;
    top: 60px;
    right: 15px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
  }

  .u-offcanvas-button {
    display: block; /* le bouton burger */
  }

  /* Quand le menu est actif */
  .u-menu-one-level.active ul {
    display: flex;
  }
}
/* =======================
   HEADER & NAVIGATION
   ======================= */
.site-header {
  width: 100%;
  background-color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-header .logo img {
  height: 50px;
  object-fit: contain;
}

/* Navigation */
.navbar {
  position: relative;
}

/* Desktop menu */
.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #3a0ca3;
}

/* =======================
   BURGER MENU
   ======================= */
.burger {
  display: none; /* caché sur desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 999;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #3a0ca3, #4361ee);
  border-radius: 3px;
  transition: all 0.3s ease;
}
/* Animation burger ouvert */
.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
@media (max-width: 939px) {
  .burger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    flex-direction: column;
    width: 200px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    margin-bottom: 10px;
  }
}

/* ===== Responsive ===== */
@media (max-width: 939px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 200px;
    background: white;
    flex-direction: column;
    padding: 80px 20px;
    gap: 20px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .burger {
    display: flex;
    width: 40px;
  }
}

@media (max-width: 768px) {
  .contact-form-wrapper {
    padding: 30px 20px;
    margin: 20px;
  }

  .contact-title {
    font-size: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .card-container {
    grid-template-columns: 1fr !important; /* 1 seule carte */

    .stats-grid {
      grid-template-columns: 1fr; /* 1 élément par ligne */
      gap: 20px;
    }

    .stats-section .section-title {
      font-size: 1.6rem;
    }

    .stat-value {
      font-size: 1.5rem;
    }

    .cta-button {
      width: 100%; /* bouton full-width sur mobile */
      padding: 12px 0;
    }
  }

  .card-card-h2 {
    width: 90%;
    padding: 20px;
  }

  .card-name-h2 {
    line-height: 1.6;
  }
  
   .legal-container {
        padding: 15px;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }
  
  
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Section centrée et largeur adaptable */
.card-card-h2 {
  width: 60%;

  margin: 40px auto;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* Ligne colorée en haut */
.card-card-h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3a0ca3, #4361ee);
}

/* Titre centré et fluide */
.card-name-h2 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 700;
  color: #3a0ca3;
  text-align: center;
  line-height: 1.8;
  margin: 0;
  padding: 0 10px;
}
@media (max-width: 480px) {
  .card-card-h2 {
    width: 95%;
    padding: 15px;
  }

  .card-name-h2 {
    font-size: 1.1rem;
  }
}
/* RESPONSIVE */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr !important;
  }

  .hero-text-block {
    padding: 30px 20px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }
}
/* ===== FOOTER ===== */
.site-footer {
  background: black; /* couleur principale sombre */
  color: white;
  padding: 10px 5px;
  text-align: center;
}

.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  max-height: 40px;
  margin-bottom: 0px;
}

.footer-text {
  font-size: 0.9rem;
  margin-top: 10px;
  color: #ccc;
  line-height: 1.5;
}

/* Ajouter à base.css pour améliorer toutes les pages */

/* Amélioration de la typographie */
body {
  font-family: "Roboto", "Open Sans", sans-serif;
  line-height: 1.7;
  color: #333;
}

/* Amélioration des liens */
a {
  transition: all 0.3s ease;
}

/* Conteneurs communs */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
html {
  scroll-behavior: smooth;
}
/* Assurer la cohérence du header sur toutes les pages de formation */
.formation-detail-header {
  background: linear-gradient(135deg, #6a0dad 0%, #d8b3ff 100%);
  padding: 4rem 0;
}

.formation-title {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Empêcher l'agrandissement du texte */
ul,
ol,
li {
  font-size: 1rem;
  line-height: 1.5;
}

/* Reset des tailles pour le contenu des formations */
.formation-content * {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}
/* ===== CORRECTION GLOBALE ICÔNES SVG ===== */

/* Toutes les icônes SVG du site */
svg:not(.logo svg) {
  width: 24px !important;
  height: 24px !important;
}

/* Empêcher les SVG de déformer la page */
img[src*=".svg"],
svg image {
  max-width: 24px !important;
  max-height: 24px !important;
}
/* ===== SYSTÈME UNIFIÉ ICÔNES - DESIGN MODERNE ===== */

/* Toutes les icônes mêmes dimensions */
.u-icon,
.u-file-icon,
.formation-icon,
.program-icon,
.stat-icon,
[class*="icon"],
svg:not(.logo svg) {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  display: inline-block;
  vertical-align: middle;
}

/* Icônes avec couleurs DSM */
.u-icon img,
.u-file-icon img,
.formation-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(25%) sepia(80%) saturate(2000%)
    hue-rotate(240deg);
}

/* Icônes dans le texte */
.formation-list .u-icon,
.formation-list .u-file-icon {
  width: 20px !important;
  height: 20px !important;
  margin-right: 8px;
}

.formation-list li::before {
  content: none !important;
}

/* Design moderne pour les icônes */
.u-icon {
  background: linear-gradient(135deg, #3a0ca3, #4361ee);
  border-radius: 6px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(58, 12, 163, 0.3);
}

/* Animation hover */
.u-icon:hover {
  transform: scale(1.1);
  transition: all 0.3s ease;
}
/* ===== STYLE MENU ACTIF ===== */

.nav-link.active {
  background: linear-gradient(
    135deg,
    #6a0dad 0%,
    #d8b3ff 100%
  ); /* couleurs DSM */
  color: #fff; /* texte blanc pour contraste */
  border-radius: 8px; /* un peu plus arrondi */
  padding: 10px 15px; /* espace intérieur plus visible */
  font-weight: 700; /* plus gras */
  font-size: 1.05rem; /* un peu plus grand */
  position: relative;
  box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3); /* légère profondeur */
  transition: all 0.3s ease;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background: var(--primary-color);
}

.button-commun {
  display: block; /* prend toute la largeur du parent */
  width: 100%; /* largeur complète */
  max-width: 100%; /* sécurise la largeur */
  text-align: center; /* centre le texte */
  background: linear-gradient(135deg, #6a0dad 0%, #d8b3ff 100%);
  color: white;
  padding: 12px 0; /* padding vertical, horizontal supprimé pour full width */
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: auto;
  margin-bottom: 20px;

  /* Optionnel : effet hover moderne */
  box-shadow: 0 5px 15px rgba(106, 13, 173, 0.4);
}

.button-commun:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(106, 13, 173, 0.5);
}

.button-commun:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/*card management*/
/* Grid des formations */
.card-grid {
  padding: 20px 0;
  background: #f8f9fa;
}

.stats-section-all {
  padding: 20px 0;
  background: #f8f9fa;
}
.stats-section {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 cartes par ligne */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Cartes de formation modernes */
.card-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.card-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3a0ca3, #4361ee);
}

.card-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-content {
  padding: 10px;

  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 20px;
  transition: transform 0.3s ease;
}

.card-card:hover .card-image {
  transform: scale(1.1);
}

.card-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #3a0ca3;
  margin-bottom: 15px;
  line-height: 1.4;
}
.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: #3a0ca3;
  margin-bottom: 25px;
  line-height: 1.6;
  position: relative;
  padding-left: 10px;
  border-left: 4px solid #3a0ca3; /* barre DSM à gauche */
}

.card-description {
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Style des listes */
.card-description ul {
  list-style: none; /* retire les puces classiques */
  padding: 0;
  margin: 0;
}

.card-description ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  text-align: left;
}

.card-description ul li::before {
  content: "âÂÂ"; /* coche stylisée */
  position: absolute;
  left: 0;
  top: 0;
  color: #3a0ca3;
  font-weight: bold;
}
