.workshops__hero {
  display: flex;
  height: 450px;
  background-color: var(--third-color);
}

/* 2. Le bloc texte à gauche (prend 50%) */
.workshops__hero-content {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem;
}

.workshops__hero-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.workshops__description p {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #444;
}

.workshops-hero-content .workshops__hero-button {
  margin-top: 0.5rem;
}

.workshops__hero-image {
  width: 50%;
  height: 100%;
}

.workshops__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;

  /* Dégradé PC (vers la gauche) */
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0) 100%
  );
}

.next-workshop {
  padding: 3rem 2.5rem;
  background-color: var(--secondary-color);
}

.next-workshop .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Partie 1 : Titre et séparateur */
.next-workshop-header {
  margin-bottom: 3rem;
}

.next-workshop-title {
  font-size: 2.2rem;
  text-align: center;
  color: var(--primary-color-2);
  margin-bottom: 0.5rem;
}

/* --- LE GRAND BLOC UNIQUE --- */
.next-workshop-single-card {
  background-color: var(--third-color);
  padding: 3rem 2.5rem;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  position: relative;
  align-items: stretch; /* S'assure que les deux colonnes prennent toute la hauteur */
}

/* Le trait vertical rose de séparation au milieu */
.next-workshop-single-card::after {
  content: "";
  position: absolute;
  top: 5rem;
  bottom: 5rem;
  left: 50%;
  width: 1px;
  background-color: var(--primary-color);
  transform: translateX(-50%);
}

/* On transforme chaque colonne en Flexbox vertical */
.next-workshop-card,
.next-workshop-details {
  background-color: transparent;
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pousse les textes en haut et le bouton tout en bas */
}

.next-workshop-card .btn--primary {
  align-self: flex-start; /* Empêche le bouton de s'étirer sur toute la largeur */
}
.workshop-main-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.workshop-main-subtitle {
  font-family: "montserrat", sans-serif;
  font-size: 1rem;
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.workshop-main-text {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.workshop-action-wrapper {
  margin-top: 4.8rem;
}

.workshop-register-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.next-workshop-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.workshop-detail-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #eae5df;
}

.workshop-detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.workshop-detail-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.workshop-detail-text h4 {
  font-family: "montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.2rem;
}

.workshop-detail-text p {
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  color: #555555;
  line-height: 1.4;
}

.custom-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.custom-bullet-list li {
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  color: #555555;
  line-height: 1.4;
  position: relative;
  padding-left: 1rem;
}

.custom-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  background-color: var(--secondary-color);
  border-radius: 50%;
}

.workshop-item-btn-wrapper {
  margin-top: 4rem;
}

.workshop-item-btn-wrapper .btn {
  padding: 8px 16px;
  font-size: 0.7rem;
}

.custom-workshops {
  padding: 3rem 2rem;
  background-color: var(--third-color);
}

.custom-workshops .container {
  max-width: 1200px;
  margin: 0 auto;
}

.custom-workshops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.custom-workshops-card {
  background-color: var(--third-color);
  padding: 3rem 2.5rem;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.custom-workshop-icon {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.custom-workshop-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.custom-workshop-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

.custom-workshop-content p {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  color: #555555;
  line-height: 1.5;
}

.custom-workshop-action {
  margin-top: 0.5rem;
}

.custom-workshop-action .btn {
  padding: 10px 20px;
  font-size: 0.75rem;
}

/* ========================================== */
/* RESPONSIVE TABLETTE (iPad Mini)            */
/* ========================================== */

@media screen and (min-width: 769px) {
  html[lang="en"] .workshops__hero {
    height: 500px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .workshops__hero {
    flex-direction: column;
    height: auto;
  }

  .workshops__hero-content {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    align-items: center;
  }

  .workshops__hero-image {
    width: 100%;
    height: 350px;
  }

  .workshops__hero-image img {
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 1) 40%
    );
    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 1) 40%
    );
  }

  .next-workshop-single-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .next-workshop-single-card::after {
    display: none;
  }

  .next-workshop-card,
  .next-workshop-details {
    padding: 1rem;
  }
  .workshop-item-btn-wrapper {
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
  }

  /* S'assure que le bouton lui-même se comporte bien en bloc centré si besoin */
  .workshop-item-btn-wrapper .btn {
    display: inline-block;
    margin: 0 auto;
  }

  .workshop-detail-item {
    padding: 1rem 0;
    gap: 1rem;
    align-items: flex-start;
  }

  .workshop-detail-icon {
    width: 38px;
    height: 38px;
  }

  .workshop-detail-text {
    flex: 1;
    min-width: 0;
  }

  .workshop-detail-text p,
  .workshop-detail-text li {
    font-size: 0.85rem;
    word-break: break-word;
  }

  .custom-workshops-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ========================================== */
/* RESPONSIVE MOBILE (< 768px)                */
/* ========================================== */

@media (max-width: 768px) {
  .workshops__hero {
    flex-direction: column;
    height: auto;
  }

  .workshops__hero-content {
    width: 100%;
    padding: 2.5rem 1.5rem;
    text-align: center;
    align-items: center;
  }

  .workshops__hero-image {
    width: 100%;
    height: 280px;
  }

  .workshops__hero-image img {
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 1) 40%
    );
    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 1) 40%
    );
  }

  .next-workshop {
    padding: 2rem 0.5rem;
  }

  .next-workshop-single-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0.5rem;
  }

  .next-workshop-single-card::after {
    display: none;
  }

  .next-workshop-card,
  .next-workshop-details {
    padding: 0.5rem;
  }
  .next-workshop-card .btn--primary {
    align-self: center; /* Centre le bouton horizontalement sur mobile */
  }

  .workshop-detail-item {
    padding: 0.8rem 0;
    gap: 0.9rem;
    align-items: flex-start;
  }

  .workshop-detail-icon {
    width: 32px;
    height: 32px;
  }

  .workshop-detail-text {
    flex: 1;
    min-width: 0;
  }

  .workshop-detail-text p,
  .workshop-detail-text li {
    font-size: 0.8rem;
    word-break: break-word;
  }

  /* Centrage des boutons sur mobile */
  .workshop-action-wrapper,
  .workshop-item-btn-wrapper {
    text-align: center;
    margin-top: 2rem;
  }

  .custom-workshops {
    padding: 2rem 1rem;
  }

  .custom-workshops-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .custom-workshops-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .custom-workshop-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
  }
}
