/* slide home */
/* Smartphones très petits (max 334px) */
@media (max-width: 334px) {
  .hero-title {
    font-size: 1rem;
  }

  .hero-subtitle {
    font-size: 10px;
  }

 

  .hero-buttons {
    gap: 5px;
    justify-content: center;
  }

  .prev-btn,
  .next-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }
}

/* Smartphones (portrait <= 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

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



  .prev-btn,
  .next-btn {
    width: 30px;
    height: 30px;
  }
}

/* Petites tablettes / téléphones larges (<= 768px) */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-content {
    padding: 0 15px;
  }

 
  .hero-buttons {
    justify-content: center;
  }
}

/* Tablettes (<= 992px) */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }
}

/* Écrans moyens et larges (>= 1200px) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }
}


/* Container principal section about */
.about-content {
  display: flex;
  /* flex-wrap: wrap; */
  gap: 60px;
  align-items: center;
  flex-wrap: nowrap;
}

/* Texte */
.about-text {
  opacity: 0;
  animation: fadeInLeft 1s forwards 0.3s;
}

.about-text p {
  margin-bottom: 25px;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #555;
}

/* Images */
.about-image {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 1s forwards 0.5s;
}

.about-image img {
  flex: 1 1 calc(33.333% - 10px);
  max-width: calc(33.333% - 10px);
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hover */
.about-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Animations */
@keyframes floatMain {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.float-anim {
  animation: floatMain 4s ease-in-out infinite;
}

.delay-1 {
  animation-delay: 0.3s;
}

.delay-2 {
  animation-delay: 0.6s;
}

.delay-3 {
  animation-delay: 0.9s;
}

.delay-4 {
  animation-delay: 1.2s;
}

.delay-5 {
  animation-delay: 1.5s;
}

/* Scroll animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transition: all 1s ease;
}

.reveal-on-scroll.active {
  opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
    gap: 40px;
  }

  .about-text,
  .about-image {
    width: 100%;
  }

  .about-image img {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 576px) {
  .about-image img {
    flex: 1 1 100%;
    max-width: 100%;
  }

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

.module-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* max-width: 350px; */
  margin: 20px auto;
}










.under a:hover {
  text-decoration: underline;
  color: #555b60;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.course-container {
  max-width: 900px;
  margin: 40px auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
}

.course-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #202020;
}

.rating {
  color: #ffb900;
  margin-bottom: 25px;
}

.rating-count {
  color: #666;
  font-size: 14px;
}

.info-box {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 20px 0;
  margin: 20px 0;
}

.info-item {
  text-align: center;
  padding: 0 15px;
}

.info-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.info-value {
  font-weight: 600;
  font-size: 15px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  margin: 30px 0 20px;
  color: #202020;
}

.course-description {
  line-height: 1.6;
  color: #555;
  margin-bottom: 25px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.feature-icon {
  color: #2ec4b6;
  font-size: 18px;
  margin-right: 10px;
  margin-top: 2px;
}

.requirement-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.requirement-icon {
  color: #30bae7;
  font-size: 8px;
  margin-right: 10px;
  margin-top: 8px;
}

.curriculum-item {
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 5px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.curriculum-item:hover {
  background-color: #f8f8f8;
}

.instructor-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.module-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.module-img {
  position: relative;
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #30bae7, #2ec4b6);
}

.module-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.module-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.course-tags .badge {
  font-size: 0.7rem;
  padding: 5px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.card-title a {
  color: #333;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
}

.card-title a:hover {
  color: #2ec4b6;
}

.module-card-body ul {
  padding-left: 18px;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 1rem;
}

.instructor-info {
  gap: 8px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
}

.instructor-info .btn,
.instructor-info .btn2 {
  flex: 1;
  font-size: 0.8rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .instructor-info{
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .module-img {
    height: 180px;
  }

  .card-title a {
    font-size: 0.95rem;
  }

  .module-card-body ul {
    font-size: 0.8rem;
  }
}




.formation-box {
  max-width: 600px;
  margin: 2rem auto;
  background: #f0f9ff;
  border: 1px solid #b6e0fe;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  font-family: 'Segoe UI', sans-serif;
}

.formation-header {
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
  color: #01559b;
  margin-bottom: 1rem;
}

.formation-body p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
}

.tag {
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: bold;
}

.tag.red {
  background-color: #dc3545;
  color: white;
}

.tag.green {
  background-color: #28a745;
  color: white;
}

.pagination .page-item.active {
  background-color: #01559b !important;
}

.active>.page-link,
.page-link.active {
  color: white !important;
  background-color: #01559b !important;
  border-color: #01559b !important;
}

.page-link {
  color: #01559b !important;
}


/* Supprimer les bordures par défaut de Bootstrap */
.nav-tabs {
  border-bottom: none;
}

/* Style personnalisé des onglets */
.custom-tab {
  border: none;
  border-radius: 999px;
  /* Arrondi maximal pour effet "pilule" */
  padding: 8px 20px;
  margin-right: 10px;
  font-weight: 600;
  background-color: #f0f0f0;
  color: #333;
  transition: all 0.3s ease;
}

/* Survol */
.custom-tab:hover {
  background-color: #e0e0e0;
  color: #000;
}

/* Onglet actif */
.custom-tab.active {
  background-color: #7e81867d;
  /* Bleu vif comme sur ton image */
  color: #01559b;
}

/* Empêche Bootstrap de casser le style */
































/* .calendar-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  margin-top: 40px;
} */

/* Calendrier */
.calendar {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.month-year {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
}

.nav-btn {
  background: linear-gradient(135deg, #667eea, #01559b);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.day-header {
  text-align: center;
  padding: 15px 10px;
  font-weight: 600;
  color: #7f8c8d;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 10px;
}

.day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 2px;
  position: relative;
}

.day:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

.day.other-month {
  color: #bdc3c7;
}

.day.has-session {
  background: linear-gradient(135deg, #667eea, #01559b);
  color: white;
  font-weight: 700;
}

.day.has-session:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5);
}

.day.has-session::after {
  content: '';
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}

/* Liste des sessions */
.sessions-list {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.sessions-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.sessions-header h3 {
  color: #2c3e50;
  font-size: 1.5rem;
  font-weight: 600;
  margin-left: 10px;
}

.session-item {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
  cursor: pointer;
}

.session-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-left-color: #01559b;
}

.session-date {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.session-date i {
  margin-right: 8px;
  color: #667eea;
}

.session-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.session-time {
  color: #7f8c8d;
  font-size: 0.95rem;
}

.session-spots {
  background: #e74c3c;
  color: white;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
}

.session-spots.available {
  background: #27ae60;
}

.register-btn {
  background: linear-gradient(135deg, #667eea, #01559b);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-size: 0.95rem;
}

.register-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.register-btn:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .calendar-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sessions-list {
    order: -1;
  }
}

@media (max-width: 768px) {
  

  .header h1 {
    font-size: 2rem;
  }

  .calendar {
    padding: 20px;
  }

  .day {
    font-size: 0.9rem;
  }
}
@media (max-width: 480px){
  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
  }
}
@media (max-width: 399px){
  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
  }
}
@media (max-width: 321px){
  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }
}
/* Animation d'entrée */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.day.session-started {
  background: linear-gradient(135deg, #7c7f83, #56595e);
  color: white;
  font-weight: 700;
}

.day.session-started:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px #01559b;
}

.day.session-started::after {
  content: '';
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}
.day.session-ended {
    background-color: #e2e8f0;
    color: #718096;
}
.day.session-started {
    background-color: #fefcbf;
    color: #b7791f;
}
.day.has-session {
    background-color: #c6f6d5;
    color: #276749;
}
.day.today {
    border: 2px solid #667eea;
    background-color: #f0f4ff;
    font-weight: bold;
    color: #333;
}
