/* Reset et base */
.xplore-press-section * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Section Presse */
.press-section {
  padding: 50px 0 30px 0px;
  background: #ffffff;
  width: 100%;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #222222;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #222222;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Grille de presse */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: center;
}

/* Pour une seule carte, centrer et limiter la largeur */
.press-grid:has(.press-card:only-child) {
  grid-template-columns: minmax(300px, 500px);
  justify-content: center;
}

.press-card {
  background: var(--xplore-card-background, #ffffff);
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06),
    0 3px 8px var(--xplore-primary-rgba, rgba(229, 156, 120, 0.08));
  border: 2px solid var(--xplore-primary-rgba, rgba(229, 156, 120, 0.4));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  min-height: 300px;
  opacity: 0;
  transform: translateY(30px);
}

.press-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.press-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08),
    0 6px 15px var(--xplore-primary-rgba-hover, rgba(229, 156, 120, 0.12));
  border-color: var(--xplore-primary-rgba-hover, rgba(229, 156, 120, 0.7));
  background: var(--xplore-card-background, #ffffff);
}

.press-quote {
  position: relative;
  max-width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.press-quote p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--xplore-text, #2c3e50);
  line-height: 1.7;
  position: relative;
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.article-link {
  display: inline-flex;
  align-items: center;
  color: var(--xplore-primary, #e59c78);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.5rem 1rem;
  border: 2px solid var(--xplore-primary, #e59c78);
  border-radius: 25px;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin-top: auto;
  background: transparent;
  align-self: center;
  position: relative;
  overflow: hidden;
}

.article-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--xplore-primary, #e59c78);
  transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.article-link:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px
    var(--xplore-primary-rgba-shadow, rgba(229, 156, 120, 0.3));
  border-color: var(--xplore-primary, #e59c78);
}

.article-link:hover::before {
  left: 0;
}

.press-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  width: 100%;
}

.press-logo img {
  height: 40px;
  max-width: 120px;
  object-fit: contain;
  object-position: center;
}

.section-header {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-header.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .press-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .press-card {
    padding: 2rem 1.5rem;
  }

  .press-quote p {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .press-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .press-card {
    padding: 1.5rem 1rem;
  }

  .press-quote p {
    font-size: 0.95rem;
  }

  .press-logo img {
    height: 35px;
    max-width: 100px;
  }
}
