/**
 * Avantages Section Styles
 * @package Karden_Avenir
 * @version 1.0.0
 */

/*  AVANTAGES  */
.avantages {
  overflow: hidden;
}

.avantages-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(30px, 4.5vw, 60px);
}

.avantages-content h2 {
  margin-bottom: 12px;
}

.avantages-intro {
  font-size: clamp(12px, 2vw, 14px);
  line-height: 1.7;
  color: var(--text);
  margin-bottom: clamp(20px, 3vw, 30px);
}

/*  AVANTAGES GRID  */
.avantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(6px, 1.2vw, 12px) clamp(8px, 1.5vw, 14px);
}

/*  AVANTAGE CARD  */
.avantage-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: clamp(10px, 1.5vw, 14px) clamp(12px, 1.8vw, 16px);
  font-size: clamp(10px, 1.4vw, 12.5px);
  font-weight: 500;
  color: var(--blue-dark);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.avantage-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px 0 0 3px;
  transition: width var(--transition-fast);
}

.avantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-cyan);
  border-color: rgba(41, 199, 218, 0.1);
}

.avantage-card:hover::before {
  width: 4px;
}

/*  AVANTAGES VISUALS  */
.avantages-visuals {
  position: relative;
  width: 100%;
  min-height: clamp(280px, 40vw, 420px);
}

/*  PHOTO  */
.photo {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.6s ease;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo:hover img {
  transform: scale(1.04);
}

.photo-1 {
  width: 68%;
  height: clamp(180px, 25vw, 280px);
  top: 0;
  left: 0;
  z-index: 1;
}

.photo-2 {
  width: 64%;
  height: clamp(160px, 22vw, 240px);
  bottom: 0;
  right: 0;
  z-index: 2;
}

.avantages-visuals:hover .photo-1 {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
}

.avantages-visuals:hover .photo-2 {
  transform: translateY(5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
}