/**
 * AINA - Styles Dédiés Formation SAP, Espace Membres, Réservations & Diffuseur
 * Respecte l'identité visuelle SASU AINA Conseil & Formation SAP (Vert émeraude #2e7d32 / Bleu marine #0c3866)
 */

:root {
  --aina-green-dark: #3b810c;
  --aina-green: #75bf17;
  --aina-green-light: #8cd324;
  --aina-green-fresh: #75bf17;
  --aina-navy-dark: #071c33;
  --aina-navy: #0c3866;
  --aina-navy-light: #11569b;
  --aina-blue-accent: #38bdf8;
  --aina-gold: #ffb300;
  --aina-gold-dark: #f57f17;
  --aina-bg-light: #f4f8f4;
  --aina-text-dark: #1c2833;
  --aina-text-muted: #64748b;
  --aina-border: transparent;
  --gradient-1: linear-gradient(to right, #75bf17 0%, #3b810c 100%);
  --shadow-sm: 0 4px 15px rgba(12, 56, 102, 0.05);
  --shadow-md: 0 10px 30px rgba(12, 56, 102, 0.07);
  --shadow-lg: 0 18px 45px rgba(12, 56, 102, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-pill: 100px;
}

/* =========================================================================
   SWITCHER DE PLATEFORME (BARRE SUPÉRIEURE DOUBLE VITRINE)
   ========================================================================= */

.aina-dual-platform-bar {
  background: #081d33;
  color: #e2e8f0;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1010;
}

.aina-dual-platform-bar .platform-switchers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.aina-dual-platform-bar .platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.06);
}

.aina-dual-platform-bar .platform-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.aina-dual-platform-bar .platform-pill.active {
  background: linear-gradient(135deg, var(--aina-green), var(--aina-green-light));
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(46, 125, 50, 0.4);
}

.aina-dual-platform-bar .platform-pill.active-navy {
  background: linear-gradient(135deg, var(--aina-navy-light), var(--aina-blue-accent));
  color: #ffffff;
}

.aina-dual-platform-bar .quick-auth-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.aina-dual-platform-bar .auth-link {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.aina-dual-platform-bar .auth-link:hover {
  color: #a7f3d0;
}

/* =========================================================================
   HEADER VITRINE FORMATION
   ========================================================================= */

.header-formation {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 999;
}

.formation-brand-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--aina-green);
  display: block;
  margin-top: 3px;
}

/* =========================================================================
   HERO BANNER FORMATION (INSPIRÉ FLYER 2)
   ========================================================================= */

.formation-hero-section {
  position: relative;
  background: #092c4f;
  color: #ffffff;
  padding: 40px 0 85px;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

/* Diaporama d'arrière-plan (Défilement des images toutes les 5 secondes) */
.formation-hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.formation-hero-bg-slider .hero-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1), transform 5s linear;
  will-change: opacity, transform;
}

.formation-hero-bg-slider .hero-bg-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.formation-hero-bg-slider .hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(8, 29, 51, 0.90) 0%, rgba(12, 56, 102, 0.85) 45%, rgba(27, 94, 32, 0.88) 100%);
  z-index: 3;
}

.formation-hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: #f8fbf9;
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
}

.formation-hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  color: #ffffff !important;
}

.formation-hero-title .text-highlight-green {
  color: #4ade80 !important;
  text-shadow: 0 2px 10px rgba(74, 222, 128, 0.3);
}

.formation-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #e2f8e5;
  margin-bottom: 20px;
}

.formation-hero-price-tag {
  display: inline-block;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.4);
  margin-bottom: 25px;
}

.formation-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 8px 16px;
  margin: 4px;
  font-size: 14px;
  font-weight: 500;
}

.formation-feature-pill i {
  color: #4ade80;
}

/* =========================================================================
   CARTES FORMATIONS & PROGRAMMES
   ========================================================================= */

.formation-card {
  background: #ffffff;
  border-radius: 24px !important;
  border: none !important;
  box-shadow: 0 10px 30px rgba(12, 56, 102, 0.07) !important;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.formation-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(117, 191, 23, 0.2) !important;
}

.formation-card-header {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  background: linear-gradient(135deg, #0c3866, #165b33);
}

.formation-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.formation-card:hover .formation-card-img {
  transform: scale(1.05);
}

.formation-badge-top {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(12, 56, 102, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.formation-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.formation-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--aina-navy);
  margin-bottom: 10px;
}

.formation-card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  color: var(--aina-text-muted);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.formation-price-display {
  font-size: 22px;
  font-weight: 800;
  color: var(--aina-green);
  margin: 12px 0;
}

.formation-module-badge {
  display: inline-block;
  background: #eef7ee;
  color: #2e7d32;
  font-weight: 600;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  margin: 2px 4px 4px 0;
}

/* =========================================================================
   FORMULAIRE D'INSCRIPTION & VÉRIFICATION D'ÂGE (18+)
   ========================================================================= */

.wizard-card {
  background: #ffffff;
  border-radius: 26px !important;
  box-shadow: 0 15px 45px rgba(12, 56, 102, 0.08) !important;
  border: none !important;
  padding: 38px;
  position: relative;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.wizard-steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 40px;
  right: 40px;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.wizard-step-item {
  position: relative;
  z-index: 2;
  text-align: center;
}

.wizard-step-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 8px;
  transition: all 0.3s ease;
}

.wizard-step-item.active .wizard-step-circle {
  border-color: var(--aina-green);
  background: var(--aina-green);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.35);
}

.wizard-step-item.completed .wizard-step-circle {
  border-color: var(--aina-green);
  background: #e8f5e9;
  color: var(--aina-green);
}

.age-verifier-box {
  padding: 20px 24px;
  border-radius: 18px !important;
  background: #f8fafc;
  border: none !important;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(12, 56, 102, 0.04);
}

.age-verifier-box.age-valid {
  background: #f0fdf4 !important;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.15) !important;
}

.age-verifier-box.age-invalid {
  background: #fef2f2 !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.15) !important;
}

.upload-dropzone {
  border: 2px dashed rgba(117, 191, 23, 0.35) !important;
  border-radius: 20px !important;
  padding: 26px;
  text-align: center;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.upload-dropzone:hover {
  border-color: var(--aina-green);
  background: #f4fbf4;
}

.upload-dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* =========================================================================
   DASHBOARDS (RESPONSABLE, ÉTUDIANT, CLIENT)
   ========================================================================= */

.dashboard-wrapper {
  background: #f8fafc;
  min-height: 85vh;
  padding: 40px 0 70px;
}

.dash-header-card {
  background: linear-gradient(135deg, var(--aina-navy), #124b89);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.dash-header-card::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.18) 0%, transparent 70%);
  border-radius: 50%;
}

.kpi-stat-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 18px;
}

.kpi-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.kpi-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.kpi-icon.icon-green {
  background: #e8f5e9;
  color: var(--aina-green);
}

.kpi-icon.icon-blue {
  background: #e0f2fe;
  color: var(--aina-navy-light);
}

.kpi-icon.icon-orange {
  background: #fff7ed;
  color: #ea580c;
}

.kpi-icon.icon-purple {
  background: #f3e8ff;
  color: #7e22ce;
}

.kpi-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}

.kpi-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

/* Badges de Statut */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-badge.status-en_attente {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.status-validee,
.status-badge.status-confirmee {
  background: #dcfce7;
  color: #166534;
}

.status-badge.status-rejetee,
.status-badge.status-annulee {
  background: #fee2e2;
  color: #991b1b;
}

.status-badge.status-en_formation,
.status-badge.status-en_cours {
  background: #e0e7ff;
  color: #3730a3;
}

.status-badge.status-diplomee,
.status-badge.status-terminee {
  background: #f3e8ff;
  color: #6b21a8;
}

/* =========================================================================
   ÉCRAN ANNONCEUR / KIOSQUE LOOP (PAGE DIFFUSEUR)
   ========================================================================= */

.signage-body {
  margin: 0;
  padding: 0;
  background: #020b14;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
}

.signage-topbar {
  background: rgba(12, 56, 102, 0.85);
  backdrop-filter: blur(12px);
  padding: 14px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(74, 222, 128, 0.4);
  z-index: 100;
}

.signage-screen-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signage-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s ease;
  transform: scale(1.02);
  display: flex;
}

.signage-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.signage-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35) blur(10px);
  z-index: 1;
}

.signage-content-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  padding: 40px 60px;
  gap: 50px;
}

.signage-media-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.signage-media-box img {
  max-height: 82vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  border: 3px solid rgba(255, 255, 255, 0.15);
}

.signage-progress-bar-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  width: 100%;
  position: relative;
}

.signage-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
  width: 0%;
  transition: width 0.1s linear;
}

.signage-bottom-ticker {
  background: #061524;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  white-space: nowrap;
}

.ticker-badge {
  background: var(--aina-green);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 13px;
  margin-right: 20px;
  text-transform: uppercase;
}

.ticker-marquee {
  display: inline-block;
  animation: tickerSlide 35s linear infinite;
  font-size: 17px;
  font-weight: 500;
  color: #e2e8f0;
}

@keyframes tickerSlide {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.signage-controls-overlay {
  position: absolute;
  bottom: 80px;
  right: 30px;
  z-index: 120;
  display: flex;
  gap: 10px;
  opacity: 0.15;
  transition: opacity 0.3s;
}

.signage-controls-overlay:hover {
  opacity: 1;
}

/* =========================================================================
   TUTORIEL INTERACTIF & GUIDE WEB
   ========================================================================= */

.tutorial-spotlight {
  position: fixed;
  z-index: 99998;
  box-shadow: 0 0 0 9999px rgba(10, 25, 47, 0.75);
  border-radius: 8px;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 2px solid #22c55e;
}

.tutorial-popover {
  position: fixed;
  z-index: 99999;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  padding: 22px;
  max-width: 380px;
  border-left: 5px solid var(--aina-green);
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.manual-sidebar {
  position: sticky;
  top: 90px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.manual-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.manual-nav-link:hover,
.manual-nav-link.active {
  background: #f0fdf4;
  color: var(--aina-green-dark);
  font-weight: 600;
}

.test-credential-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  margin-bottom: 15px;
  border-left: 4px solid var(--aina-navy);
}

.test-credential-card.role-admin { border-left-color: #ef4444; }
.test-credential-card.role-etudiant { border-left-color: #16a34a; }
.test-credential-card.role-client { border-left-color: #0288d1; }

/* =========================================================================
   VOLET LATÉRAL & BOUTON TOGGLE AINA (MENU OFF-CANVAS)
   ========================================================================= */

.hidden-bar.aina-drawer-sidebar {
  position: fixed !important;
  right: 0 !important;
  top: 0 !important;
  height: 100vh !important;
  max-width: 390px !important;
  width: 100% !important;
  z-index: 999999 !important;
  background: #09203a !important;
  color: #f8fafc !important;
  box-shadow: -8px 0 35px rgba(0, 0, 0, 0.45) !important;
  -webkit-transform: translateX(100%) !important;
  transform: translateX(100%) !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease !important;
  opacity: 0 !important;
  visibility: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

body.active-hidden-bar .hidden-bar.aina-drawer-sidebar {
  -webkit-transform: translateX(0) !important;
  transform: translateX(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.hidden-bar-back-drop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(8, 20, 35, 0.75) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 999990 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s ease !important;
}

body.active-hidden-bar .hidden-bar-back-drop {
  opacity: 1 !important;
  visibility: visible !important;
}

body.active-hidden-bar {
  overflow: hidden !important;
}

.aina-side-toggle-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f1f5f9;
  color: #0c3866;
  border: 1px solid #cbd5e1;
  font-size: 19px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.aina-side-toggle-btn:hover {
  background: #2e7d32;
  color: #ffffff !important;
  border-color: #2e7d32;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.28);
}

.header-formation .aina-side-toggle-btn {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.header-formation .aina-side-toggle-btn:hover {
  background: #166534;
  border-color: #166534;
  color: #ffffff !important;
}

/* =========================================================================
   CARROUSEL DE BLOG - ALIGNEMENT PARFAIT DES CARTES & TRONCATURE DU TEXTE VERT
   ========================================================================= */

.news-section .news-block.swiper-slide {
  height: auto !important;
  display: flex !important;
}

.news-section .news-block .inner-box {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.3s ease !important;
}

.news-section .news-block .inner-box .content-box {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  justify-content: space-between !important;
  padding: 22px 22px 18px !important;
}

.news-section .news-block .inner-box .content-box .content {
  padding: 0 !important;
  flex-grow: 1 !important;
}

.news-section .news-block .inner-box .content-box .content .title {
  font-size: 19px !important;
  line-height: 1.35 !important;
  min-height: 52px !important;
  max-height: 52px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-bottom: 10px !important;
}

/* Troncature dynamique et hauteur fixe du texte vert pour empêcher tout débordement */
.news-section .news-block .inner-box .content-box .content .text {
  color: #2e7d32 !important;
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  min-height: 40px !important;
  max-height: 40px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-bottom: 16px !important;
}

.news-section .news-block .inner-box .content-box .btn-box {
  margin-top: auto !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 48px !important;
  padding-right: 56px !important;
}

.news-section .news-block .inner-box .content-box .btn-box .readmore {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  border: 2px solid #2e7d32 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #2e7d32 !important;
  background: transparent !important;
  transition: all 0.3s ease !important;
}

.news-section .news-block .inner-box:hover .content-box .btn-box .readmore {
  background: #2e7d32 !important;
  color: #ffffff !important;
}

/* Flèches de navigation du blog */
.news-section .nav-box {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 24px !important;
}

.news-section .swiper-button-prev,
.news-section .swiper-button-next {
  position: static !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  border: 1.5px solid #0c3866 !important;
  color: #0c3866 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  background: #ffffff !important;
  margin: 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

.news-section .swiper-button-prev:after,
.news-section .swiper-button-next:after {
  display: none !important;
}

.news-section .swiper-button-prev:hover,
.news-section .swiper-button-next:hover {
  background: #0c3866 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(12, 56, 102, 0.2) !important;
}

/* =========================================================================
   HEADERS FINS UNIFIÉS & STICKY HEADER SANS AUCUN LIEN (DA PÔLE SERVICE)
   ========================================================================= */

/* Suppression stricte de tout lien horizontal dans les en-têtes (tout est dans le volet latéral) */
.main-header .main-menu,
.main-header .navigation,
.main-header .nav-outer {
  display: none !important;
}

/* En-tête fin dédié uniquement pour les dashboards */
.main-header.header-slim-dashboard {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(12, 56, 102, 0.05) !important;
  padding: 0 !important;
}

.main-header.header-slim-dashboard .logo-box img {
  max-height: 48px !important;
  width: auto !important;
  transition: transform 0.2s ease;
}

.main-header.header-slim-dashboard .logo-box a:hover img {
  transform: scale(1.02);
}

/* En-tête classique restauré Pôle Service (header-style-one) */
.main-header.header-style-one .header-lower .main-box {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}

.main-header.header-style-one .header-lower .outer-box {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  margin-top: 0 !important;
}

.main-header.header-style-one .header-lower .outer-box .btn-box {
  display: block !important;
}

.main-header.header-style-one .header-lower .outer-box .btn-box .theme-btn {
  padding: 10px 24px !important;
  border-radius: 8px !important;
}

.main-header.header-style-two .main-box {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.main-header.header-style-two .main-box .outer-box {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
}

/* Sticky Header fin apparaissant au défilement (Strictement aucun lien, uniquement logo + action + drawer) */
.sticky-header {
  position: fixed !important;
  visibility: hidden !important;
  opacity: 0 !important;
  left: 0px !important;
  top: 0px !important;
  width: 100% !important;
  height: 66px !important;
  z-index: 99999 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 20px rgba(12, 56, 102, 0.08) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transform: translateY(-100%) !important;
  pointer-events: none !important;
}

.sticky-header.fixed-header {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.sticky-header .auto-container {
  width: 100% !important;
}

.sticky-header .inner-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 100% !important;
}

.sticky-header .logo {
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.sticky-header .logo img {
  max-height: 42px !important;
  width: auto !important;
}

.sticky-header .outer-box {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

/* INTERDICTION STRICTE DE LIENS HORIZONTAUX DANS LE STICKY HEADER */
.sticky-header .main-menu,
.sticky-header .navigation,
.sticky-header nav,
.sticky-header .nav-outer,
.sticky-header .navbar-header {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Uniformisation des boutons d'action AINA DA Pôle Service */
.aina-side-toggle-btn {
  width: 42px !important;
  height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  background: #f1f5f9 !important;
  color: #0c3866 !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 18px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04) !important;
}

.aina-side-toggle-btn:hover {
  background: #72b834 !important;
  color: #ffffff !important;
  border-color: #72b834 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(114, 184, 52, 0.3) !important;
}

/* Harmonisation DA des cartes de bienvenue Dashboard */
.dash-header-card {
  background: linear-gradient(135deg, #0c3866 0%, #0a2540 100%) !important;
  border: none !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(12, 56, 102, 0.15) !important;
}

/* =========================================================================
   HARMONISATION STRICTE DES BOUTONS & CHARTE GRAPHIQUE PÔLE FORMATION = PÔLE SERVICE
   ========================================================================= */

.site-formation,
.site-formation body {
  font-family: var(--body-font-family), "Outfit", sans-serif;
}

.site-formation h1,
.site-formation h2,
.site-formation h3,
.site-formation h4,
.site-formation h5,
.site-formation h6,
.site-formation p,
.site-formation a,
.site-formation span:not([class*="fa-"]):not([class*="flaticon-"]):not([class*="lnr-"]):not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fat):not(.fad),
.site-formation input,
.site-formation button:not([class*="toggle"]):not([class*="btn-icon"]),
.site-formation select,
.site-formation textarea {
  font-family: var(--body-font-family), "Outfit", sans-serif;
}

/* Préservation et protection absolue des icônes FontAwesome, Flaticon & Linearicons */
.site-formation .fa,
.site-formation .fas,
.site-formation .far,
.site-formation .fal,
.site-formation .fat,
.site-formation .fad,
.site-formation .fa-solid,
.site-formation .fa-regular,
.site-formation .fa-light,
.site-formation .fa-thin,
.site-formation .fa-duotone {
  font-family: "Font Awesome 6 Pro" !important;
}

.site-formation .fab,
.site-formation .fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
}

.site-formation [class^="flaticon-"],
.site-formation [class*=" flaticon-"] {
  font-family: "Flaticon" !important;
}

.site-formation [class^="lnr-"],
.site-formation [class*=" lnr-"] {
  font-family: "Linearicons-Free" !important;
}

.site-formation .cursive-text {
  font-family: var(--heading-font-family), "Birthstone", cursive !important;
  font-size: 1.5em;
  color: var(--theme-color1);
}

/* Boutons principaux arrondis en pilule avec dégradé vert */
.site-formation .btn-success,
.site-formation .theme-btn,
.site-formation .btn-style-one,
.site-formation button[type="submit"].btn-success,
.site-formation a.btn-success {
  background: var(--gradient-1) !important;
  color: #ffffff !important;
  border-radius: 100px !important;
  border: none !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 15px rgba(59, 129, 12, 0.3) !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.site-formation .btn-success:hover,
.site-formation .theme-btn:hover,
.site-formation .btn-style-one:hover,
.site-formation button[type="submit"].btn-success:hover,
.site-formation a.btn-success:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(59, 129, 12, 0.45) !important;
  color: #ffffff !important;
}

/* Bouton Outline en Pilule & Alignement Horizontal CTA Hero */
.formation-hero-section .theme-btn-main {
  margin: 0 !important;
  margin-bottom: 0 !important;
  display: -webkit-inline-box !important;
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  vertical-align: middle !important;
}

.formation-hero-section .theme-btn-main .theme-btn {
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 28px !important;
  display: -webkit-inline-box !important;
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  -webkit-box-pack: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  margin-right: 10px !important;
  margin-bottom: 0 !important;
}

.formation-hero-section .theme-btn-main .theme-btn-arrow-right,
.formation-hero-section .theme-btn-main .theme-btn-arrow-left {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  display: -webkit-inline-box !important;
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  -webkit-box-pack: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.btn-outline-pill {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 100px !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  padding: 0 32px !important;
  box-sizing: border-box !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 2px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  line-height: 1 !important;
  margin: 0 !important;
  vertical-align: middle !important;
  transition: all 0.3s ease !important;
}

.btn-outline-pill:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Suppression des bordures dures sur les conteneurs */
.site-formation .card,
.site-formation .feature-box,
.site-formation .info-box,
.site-formation .border-box {
  border: none !important;
  border-radius: 22px !important;
  box-shadow: 0 10px 30px rgba(12, 56, 102, 0.06) !important;
}


