/* === WRAPPER === */
.two-columns-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1.875rem, calc(0.792rem + 1.805vw), 2.5rem);
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

/* === ANIMATIONS === */
.two-columns-container {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.two-columns-container.visible {
  opacity: 1;
  transform: translateX(0);
}
.two-columns-container.hiding {
  opacity: 0;
  transform: translateX(-30px);
}

/* === COLONNE TEXTE === */
.text-column {
  flex: 0 0 clamp(60%, calc(-0.9025vw + 77.328%), 65%);
  max-width: clamp(60%, calc(-0.9025vw + 77.328%), 65%);
}

.text-column h2 {
  font-size: clamp(1.5rem, calc(-0.349rem + 2.166vw), 2.25rem);
  margin: 0 0 24px 0;
  color: #333;
}

.text-column p {
  font-size: clamp(0.9rem, calc(0.475rem + 0.542vw), 1.125rem);
  line-height: 1.6;
  color: #666;
  margin: 0 0 16px 0;
}

.text-column ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.text-column li {
  font-size: clamp(0.8rem, calc(0.566rem + 0.361vw), 1rem);
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  color: #555;
}

.text-column li:before {
  content: "✓ ";
  color: #4caf50;
  font-weight: bold;
  margin-right: 8px;
}

/* === COLONNE CARTE === */
.card-column {
  flex: 0 0 clamp(25%, calc(0.9025vw + 12.672%), 30%);
  max-width: clamp(25%, calc(0.9025vw + 12.672%), 30%);
  display: flex;
  justify-content: center;
  padding-bottom: 20px;
}

.info-card {
  width: 100%;
  background-color: #fff;
  border: 4px solid #000;
  box-shadow: 4px 4px 0 #000;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 #000;
}

.info-card-image {
  width: 100%;
  aspect-ratio: 350 / 400;
  background-image: url("/assets/photo_marting.JPG");
  background-size: cover;
  background-position: top;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: clamp(3.75rem, calc(1.944rem + 3.611vw), 5rem);
}

.info-card-content {
  padding: clamp(1rem, calc(0.548rem + 0.903vw), 1.25rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.625rem, 1.5vh, 0.75rem);
}

.info-card-title {
  font-size: clamp(1.25rem, calc(0.798rem + 0.903vw), 1.5rem);
  text-align: center;
  color: #333;
  margin: 0;
}

.info-card-text {
  font-size: clamp(0.75rem, calc(0.569rem + 0.361vw), 0.875rem);
  color: #666;
  line-height: 1.5;
}
.info-card-text p {
  margin: 0 0 12px 0;
}
.info-card-text ul {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}
.info-card-text li {
  padding: 4px 0;
  font-size: clamp(0.75rem, calc(0.609rem + 0.282vw), 0.8125rem);
}

/* === RESPONSIVE (Mobile) === */
@media (max-width: 1024px) {
  .two-columns-wrapper {
    flex-direction: column;
    gap: 30px;
    padding: 15px;
  }
  .text-column,
  .card-column {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .text-column h2,
  .text-column p,
  .text-column li,
  .info-card-title,
  .info-card-image,
  .info-card-text,
  .info-card-text li {
    font-size: unset;
  }
  .info-card-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .text-column h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .text-column p,
  .text-column li {
    font-size: 16px;
  }
  .info-card {
    max-width: 600px;
    margin: 0 auto;
  }
  .info-card-title {
    font-size: 24px;
  }
  .info-card-text,
  .info-card-text li {
    font-size: 14px;
  }
}
