@charset "UTF-8";
/* ==========================================
   STYLES HORAIRE D'INSTRUCTION - CADETS ST-JEAN
   ========================================== */
/* ==========================================
   VARIABLES SPÉCIFIQUES À L'HORAIRE
   ========================================== */
:root {
  --schedule-period-spacing: 2rem;
  --activity-card-spacing: 1rem;
  --timeline-border-width: 3px;
  --activity-min-height: 120px;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.evening-schedule-hero {
  position: relative;
  padding: 4rem 0;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
}
.evening-schedule-hero.no-schedule {
  min-height: 60vh;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(65, 72, 51, 0.85) 50%, rgba(10, 77, 107, 0.8) 100%);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #f8d73f;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.schedule-icon {
  font-size: 2.25rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ==========================================
   CONTENEUR PRINCIPAL
   ========================================== */
.evening-schedule-page {
  min-height: 100vh;
  background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 20%);
}

.schedule-container {
  padding: 3rem 1rem;
}

.schedule-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ==========================================
   MESSAGE GÉNÉRAL
   ========================================== */
.schedule-message {
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: 0.2s ease-in-out;
}
.schedule-message:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.message-header {
  background: linear-gradient(135deg, #000000 0%, #414833 100%);
  color: #ffffff;
  padding: 1.5rem 2rem;
}
.message-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-icon {
  font-size: 1.875rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.message-content {
  padding: 2rem;
  line-height: 1.625;
}
.message-content p {
  margin-bottom: 1rem;
  color: #374151;
}
.message-content p:last-child {
  margin-bottom: 0;
}
.message-content ul, .message-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
.message-content ul li, .message-content ol li {
  margin-bottom: 0.5rem;
  color: #374151;
}
.message-content strong {
  color: #000000;
  font-weight: 600;
}

/* ==========================================
   TIMELINE ET HORAIRE
   ========================================== */
.schedule-timeline {
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.timeline-header {
  background: linear-gradient(135deg, #0a4d6b 0%, #347c94 100%);
  color: #ffffff;
  padding: 1.5rem 2rem;
}
.timeline-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.timeline-container {
  padding: 1.5rem;
}

.timeline-period {
  display: flex;
  margin-bottom: var(--schedule-period-spacing);
  border-left: var(--timeline-border-width) solid #d5a837;
  position: relative;
}
.timeline-period:last-child {
  margin-bottom: 0;
}
.timeline-period::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--timeline-border-width) - 8px);
  top: 1rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d5a837;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.period-time {
  flex-shrink: 0;
  width: 160px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.time-badge {
  background: linear-gradient(135deg, #000000 0%, #414833 100%);
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  min-width: 120px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  display: block;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.period-activities {
  flex: 1;
  padding: 0.5rem 1rem;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--activity-card-spacing);
}

/* ==========================================
   CARTES D'ACTIVITÉS
   ========================================== */
.activity-card {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: 0.2s ease-in-out;
  position: relative;
  min-height: var(--activity-min-height);
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.activity-card:hover {
  border-color: #d5a837;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.activity-card.group-1 {
  border-left: 4px solid #0a4d6b;
  background: linear-gradient(to right, rgba(10, 77, 107, 0.02) 0%, transparent 50%);
}
.activity-card.group-2 {
  border-left: 4px solid #8f2024;
  background: linear-gradient(to right, rgba(143, 32, 36, 0.02) 0%, transparent 50%);
}
.activity-card.group-3 {
  border-left: 4px solid #10b981;
  background: linear-gradient(to right, rgba(16, 185, 129, 0.02) 0%, transparent 50%);
}
.activity-card.group-4 {
  border-left: 4px solid #90762c;
  background: linear-gradient(to right, rgba(144, 118, 44, 0.02) 0%, transparent 50%);
}
.activity-card:nth-child(n+5) {
  border-left: 4px solid #945733;
  background: linear-gradient(to right, rgba(148, 87, 51, 0.02) 0%, transparent 50%);
}

.activity-header {
  margin-bottom: 1rem;
}
.activity-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #000000;
  margin: 0;
  line-height: 1.25;
}

.training-levels {
  position: relative;
}
.training-levels::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #d5a837 0%, transparent 100%);
  border-radius: 1px;
}

.activity-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.25rem;
  transition: 0.15s ease-in-out;
}
.detail-item:hover {
  background: #f9fafb;
}
.detail-item.formation {
  border: 1px solid rgba(52, 124, 148, 0.2);
  background: rgba(52, 124, 148, 0.05);
}
.detail-item.instructor {
  border: 1px solid rgba(213, 168, 55, 0.2);
  background: rgba(213, 168, 55, 0.05);
}

.detail-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.75rem;
  color: #4b5563;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-value {
  font-size: 0.875rem;
  color: #1f2937;
  font-weight: 500;
  line-height: 1.25;
}
.detail-value.instructor-name {
  color: #000000;
  font-weight: 600;
}

.oren-link {
  color: #0a4d6b !important;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: 0.15s ease-in-out;
}
.oren-link:hover {
  color: #347c94 !important;
  text-decoration: underline;
}
.oren-link:focus {
  outline: 2px solid #d5a837;
  outline-offset: 2px;
  border-radius: 0.125rem;
}

.external-icon {
  font-size: 0.8em;
  opacity: 0.7;
}

/* ==========================================
   ÉTATS VIDES
   ========================================== */
.no-activities,
.no-schedule-content {
  text-align: center;
  padding: 3rem;
  color: #4b5563;
}

.no-activities {
  background: #f9fafb;
  border: 2px dashed #d1d5db;
  border-radius: 0.5rem;
  margin: 1rem;
}

.no-activities-icon,
.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 4rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  max-width: 500px;
  margin: 0 auto;
}
.empty-state h3 {
  font-size: 1.5rem;
  color: #000000;
  margin: 0 0 1rem 0;
}
.empty-state p {
  color: #4b5563;
  margin: 0;
}

/* ==========================================
   LÉGENDE
   ========================================== */
.schedule-legend {
  background: #f3f4f6;
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  border: 1px solid #e5e7eb;
}

.legend-header {
  margin-bottom: 1rem;
}
.legend-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #000000;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 0.125rem;
  flex-shrink: 0;
}
.legend-color.formation-color {
  background: #347c94;
}
.legend-color.instructor-color {
  background: #d5a837;
}
.legend-color.free-color {
  background: #9ca3af;
}

/* ==========================================
   BOUTONS
   ========================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease-in-out;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:focus {
  outline: 2px solid #f8d73f;
  outline-offset: 2px;
}

.btn-primary {
  background: #d5a837;
  color: #000000 !important;
}
.btn-primary:hover {
  background: #f8d73f;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
/* Tablettes - Large */
@media (max-width: 1280px) {
  .activities-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .period-time {
    width: 140px;
  }
}
/* Tablettes - Medium */
@media (max-width: 1024px) {
  .timeline-period {
    flex-direction: column;
  }
  .timeline-period::before {
    left: -8px;
    top: 1.5rem;
  }

  .period-time {
    width: auto;
    justify-content: flex-start;
    padding: 1rem 0 0.5rem 1.5rem;
  }

  .time-badge {
    min-width: auto;
    display: inline-block;
  }

  .period-activities {
    padding: 0.5rem 1.5rem;
  }

  .activities-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
/* Mobile - Large */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.875rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .schedule-container {
    padding: 2rem 0.5rem;
  }

  .message-header,
.timeline-header {
    padding: 0.75rem 1rem;
  }
  .message-header h2,
.timeline-header h2 {
    font-size: 1.125rem;
    gap: 0.5rem;
  }

  .section-icon {
    font-size: 1.5rem;
  }

  .schedule-icon {
    font-size: 1.875rem;
  }

  .message-content {
    padding: 1rem;
  }

  .timeline-container {
    padding: 0.75rem;
  }

  .period-activities {
    padding: 0.5rem 1rem;
  }

  .activity-card {
    padding: 0.75rem;
  }

  .activity-header h3 {
    font-size: 1rem;
  }

  .detail-item {
    padding: 0.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .detail-icon {
    font-size: 1rem;
    margin-top: 0;
  }

  .schedule-legend {
    padding: 1rem;
  }

  .legend-header h3 {
    font-size: 1rem;
  }
}
/* Mobile - Extra Small */
@media (max-width: 375px) {
  .container {
    padding: 0 0.5rem;
  }

  .time-badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    min-width: 100px;
  }

  .activity-card {
    margin: 0;
  }

  .detail-content {
    gap: 0.5rem;
  }

  .detail-value {
    font-size: 0.75rem;
  }
}
/* ==========================================
   ACCESSIBILITÉ
   ========================================== */
/* Mode à contraste élevé */
@media (prefers-contrast: high) {
  .activity-card {
    border-width: 3px;
  }

  .time-badge {
    border: 2px solid #000000;
  }

  .oren-link {
    text-decoration: underline;
  }
}
/* Mode sombre */
@media (prefers-color-scheme: dark) {
  .evening-schedule-page {
    background: linear-gradient(to bottom, #111827 0%, #1f2937 20%);
  }

  .schedule-message,
.schedule-timeline {
    background: #1f2937;
    border: 1px solid #374151;
  }

  .activity-card {
    background: #1f2937;
    border-color: #4b5563;
  }
  .activity-card:hover {
    background: #374151;
  }

  .message-content,
.detail-value {
    color: #e5e7eb;
  }

  .detail-label {
    color: #9ca3af;
  }

  .training-levels {
    color: #f8d73f;
  }
}
/* Réduction des animations */
@media (prefers-reduced-motion: reduce) {
  *,
*::before,
*::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .activity-card:hover {
    transform: none;
  }

  .schedule-message:hover,
.btn-primary:hover {
    transform: none;
  }
}
/* Mode impression */
@media print {
  .evening-schedule-hero {
    background: none !important;
    color: #000000 !important;
    padding: 1rem 0;
  }

  .hero-overlay,
.hero-bg-image {
    display: none !important;
  }

  .schedule-message,
.schedule-timeline,
.activity-card {
    box-shadow: none !important;
    border: 1px solid #9ca3af !important;
    break-inside: avoid;
  }

  .message-header,
.timeline-header {
    background: #e5e7eb !important;
    color: #000000 !important;
  }

  .time-badge {
    background: #d1d5db !important;
    color: #000000 !important;
  }

  .oren-link {
    color: #000000 !important;
    text-decoration: underline !important;
  }
  .oren-link::after {
    content: " (" attr(href) ")";
    font-size: 0.75rem;
    word-break: break-all;
  }

  .timeline-period {
    page-break-inside: avoid;
  }

  .activities-grid {
    grid-template-columns: 1fr !important;
  }
}
/* ==========================================
   ANIMATIONS ET TRANSITIONS
   ========================================== */
/* Animation d'apparition pour les cartes */
.activity-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.timeline-period:nth-child(1) .activity-card {
  animation-delay: 0.1s;
}

.timeline-period:nth-child(2) .activity-card {
  animation-delay: 0.2s;
}

.timeline-period:nth-child(3) .activity-card {
  animation-delay: 0.3s;
}

.timeline-period:nth-child(4) .activity-card {
  animation-delay: 0.4s;
}

.timeline-period:nth-child(n+5) .activity-card {
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Animation pour la timeline */
.timeline-period::before {
  transform: scale(0);
  animation: scaleIn 0.4s ease-out 0.3s forwards;
}

@keyframes scaleIn {
  to {
    transform: scale(1);
  }
}
/* Hover effects avancés */
.activity-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(213, 168, 55, 0.1), transparent);
  transition: left 0.3s ease-in-out;
}
.activity-card:hover::before {
  left: 100%;
}

/* Focus visible amélioré */
.oren-link:focus-visible,
.btn:focus-visible {
  outline: 3px solid #f8d73f;
  outline-offset: 3px;
  border-radius: 0.25rem;
  box-shadow: 0 0 0 6px rgba(248, 215, 63, 0.2);
}

/* ==========================================
   VARIANTES DE COULEURS POUR LES GROUPES
   ========================================== */
.activity-card {
  border-left-color: var(--group-color);
  background: linear-gradient(to right, var(--group-bg) 0%, transparent 50%);
}
.activity-card.group-1 {
  --group-color: #0a4d6b;
  --group-bg: rgba(10, 77, 107, 0.05);
}
.activity-card.group-2 {
  --group-color: #8f2024;
  --group-bg: rgba(143, 32, 36, 0.05);
}
.activity-card.group-3 {
  --group-color: #10b981;
  --group-bg: rgba(16, 185, 129, 0.05);
}
.activity-card.group-4 {
  --group-color: #90762c;
  --group-bg: rgba(144, 118, 44, 0.05);
}
.activity-card.group-5 {
  --group-color: #945733;
  --group-bg: rgba(148, 87, 51, 0.05);
}
.activity-card.group-6 {
  --group-color: #9c8781;
  --group-bg: rgba(156, 135, 129, 0.05);
}
.activity-card .training-levels::after {
  background: linear-gradient(90deg, var(--group-color) 0%, transparent 100%);
}

/* ==========================================
   ÉTAT DE CHARGEMENT
   ========================================== */
.schedule-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}
.schedule-loading .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #d1d5db;
  border-top: 4px solid #d5a837;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.schedule-loading .loading-text {
  margin-left: 1rem;
  color: #4b5563;
  font-weight: 500;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* ==========================================
   OPTIMISATIONS PERFORMANCE
   ========================================== */
.activity-card,
.timeline-period,
.schedule-message {
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* GPU acceleration pour les animations */
.activity-card:hover,
.btn-primary:hover {
  transform: translateY(-2px) translateZ(0);
}

/* ==========================================
   ÉTATS SPÉCIAUX
   ========================================== */
/* Carte d'activité en cours */
.activity-card.current-activity {
  border-color: #d5a837;
  box-shadow: 0 0 0 3px rgba(213, 168, 55, 0.3), 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.activity-card.current-activity::after {
  content: "En cours";
  position: absolute;
  top: -1px;
  right: -1px;
  background: #d5a837;
  color: #000000;
  padding: 0.25rem 0.5rem;
  border-radius: 0 0.5rem 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Activité terminée */
.activity-card.completed-activity {
  opacity: 0.7;
}
.activity-card.completed-activity::after {
  content: "Terminé";
  position: absolute;
  top: -1px;
  right: -1px;
  background: #10b981;
  color: #ffffff;
  padding: 0.25rem 0.5rem;
  border-radius: 0 0.5rem 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

-header,
.timeline-header {
  padding: 1rem 1.5rem;
}
-header h2,
.timeline-header h2 {
  font-size: 1.25rem;
}

.message-content {
  padding: 1.5rem;
}

.timeline-container {
  padding: 1rem;
}

.timeline-period {
  margin-bottom: 2rem;
}

.activity-card {
  padding: 1rem;
  min-height: auto;
}

.legend-items {
  flex-direction: column;
  gap: 0.75rem;
}

/*# sourceMappingURL=horaire.css.map */
