/* ========================================
   📋 PANNEAU LATÉRAL FORMATIONS
   ======================================== */

.formation-panel {
  position: fixed;
  top: 80px;
  right: 0;
  bottom: 230px;
  transform: translateX(100%);
  width: 320px;
  max-height: none;
  background: #fff;
  border-radius: 20px 0 0 20px;
  box-shadow: -6px 0 40px rgba(0,0,0,0.18);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: visible;
  transition: transform 0.5s cubic-bezier(0.34,1.2,0.64,1);
  pointer-events: none;
}

.formation-panel.visible {
  transform: translateX(0);
  pointer-events: auto;
}

/* Onglet dépassant à gauche — toujours cliquable */
.formation-panel-tab {
  position: absolute;
  left: -42px;
  top: 40%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  width: 42px;
  padding: 18px 0;
  border-radius: 12px 0 0 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: -4px 0 16px rgba(239,68,68,0.35);
  animation: tab-pulse 2.5s infinite;
  writing-mode: vertical-rl;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  pointer-events: auto;
}

.formation-panel-tab i {
  writing-mode: horizontal-tb;
  font-size: 18px;
  animation: bell-ring 2.5s infinite;
  margin-bottom: 6px;
}

@keyframes tab-pulse {
  0%,100% { box-shadow: -4px 0 16px rgba(239,68,68,0.35); }
  50%      { box-shadow: -4px 0 28px rgba(239,68,68,0.8); }
}

@keyframes bell-ring {
  0%,100% { transform: rotate(0deg); }
  10%     { transform: rotate(20deg); }
  20%     { transform: rotate(-20deg); }
  30%     { transform: rotate(14deg); }
  40%     { transform: rotate(-14deg); }
  50%     { transform: rotate(0deg); }
}

/* Image affiche */
/* .formation-panel-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
} */

.formation-panel-img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  background: #1a1a2e;
}

.formation-panel-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #fef3c7, #fee2e2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  flex-shrink: 0;
}

/* Corps du panneau */
.formation-panel-body {
  padding: 18px 18px 20px;
  overflow-y: auto;
  flex: 1;
}

.formation-panel-body::-webkit-scrollbar { width: 4px; }
.formation-panel-body::-webkit-scrollbar-thumb { background: #f0f0f0; border-radius: 4px; }

.formation-panel-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b22, #ef444422);
  color: #ef4444;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.formation-panel-titre {
  font-size: 16px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 14px;
  line-height: 1.35;
  font-family: 'Montserrat', sans-serif;
}

.formation-panel-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.formation-panel-objectifs {
  font-size: 13px;
  color: #444;
  line-height: 1.6;
  margin: 0 0 16px;
  font-family: 'Montserrat', sans-serif;
}

.formation-panel-voir-plus {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 16px;
  font-family: 'Montserrat', sans-serif;
  transition: opacity 0.2s;
}
.formation-panel-voir-plus:hover { opacity: 0.75; }

.formation-panel-infosup {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #f9f9f9;
  border-radius: 10px;
  display: none;
  font-family: 'Montserrat', sans-serif;
}
.formation-panel-infosup.open { display: block; }

.formation-panel-inscrire {
  display: block;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff !important;
  padding: 13px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  text-align: center;
  transition: opacity 0.2s, transform 0.2s;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  border: none;
  width: 100%;
  box-sizing: border-box;
}
.formation-panel-inscrire:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff !important;
  text-decoration: none !important;
}

.formation-panel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 0;
  margin-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.formation-panel-nav-btn {
  background: #f5f5f5;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.formation-panel-nav-btn:hover { background: #ef4444; color: #fff; }

.formation-panel-dots { display: flex; gap: 5px; align-items: center; }

.formation-panel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.formation-panel-dot.active { background: #ef4444; transform: scale(1.3); }

.formation-panel-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
  pointer-events: auto;
}
.formation-panel-close:hover { background: #ef4444; }