/* ============================================================
   PADEL COLLECTION — Section "Nos valeurs"
   Deux panneaux égaux (1fr 1fr) : contenu vanille (gauche) + photo (droite).
   Seul le texte du panneau gauche change entre les slides (cross-fade).
   Icons et flèches : SVGs inline depuis Figma, couleur via --fill-0.
   ============================================================ */

.values {
  background: var(--color-sand);
  padding: 0 12px 12px;
}

/* ---- Grille 2 colonnes égales ---- */
.values__track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: min(570px, 55vw);
}

/* ============================================================
   PANNEAU GAUCHE — fond vanille
   ============================================================ */
.values__panel--content {
  background: var(--color-vanille);
  border-radius: var(--radius-card);
  padding: var(--space-xl) clamp(48px, 8.5vw, 120px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-l);
}

/* ---- Zone de slides — superposées via CSS Grid ---- */
.values__slide-area {
  flex: 1;
  display: grid;
  align-content: start;
}

.values__slide {
  /* Toutes les slides dans la même cellule */
  grid-row: 1;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-l);      /* 48px : entre quote et texte */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease), visibility 0s 500ms;
  pointer-events: none;
}

.values__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease), visibility 0s 0s;
  pointer-events: auto;
}

/* Grand guillemet en haut de chaque slide */
.values__quote {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

/* Groupe titre + description */
.values__slide-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);      /* 24px */
}

.values__slide-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 3.5vw, 48px);
  color: var(--color-noir);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

.values__slide-desc {
  font-family: var(--font-body);
  font-size: var(--fs-text-2);
  color: var(--color-noir);
  line-height: 1.55;
  max-width: 38ch;
}

/* ============================================================
   CONTRÔLES — indicateurs icônes + flèches nav
   ============================================================ */
.values__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

/* ---- Indicateurs (barre icônes, fond sable) ---- */
.values__indicators {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--color-sand);
  padding: 12px;
  border-radius: var(--radius-card);
}

.values__indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  /* CSS variable héritée par les SVGs inline */
  --fill-0: var(--color-gres);
  opacity: 0.35;
  transition: opacity 400ms var(--ease);
}

.values__indicator.is-active {
  --fill-0: var(--color-noir);
  opacity: 1;
}

.values__indicator:hover:not(.is-active) {
  opacity: 0.65;
}

.values__indicator svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* ---- Flèches de navigation ---- */
.values__arrows {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.values__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  --fill-0: var(--color-gres);
  transition: opacity var(--duration-fast) var(--ease);
}

.values__arrow:hover { opacity: 0.6; }
.values__arrow:disabled { opacity: 0.3; cursor: default; }

.values__arrow svg {
  width: 48px;
  height: 48px;
  display: block;
}

/* Même SVG retourné pour la flèche précédente */
.values__arrow--prev svg {
  transform: rotate(180deg);
}

/* ============================================================
   PANNEAU DROIT — photo pleine hauteur
   ============================================================ */
.values__panel--photo {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-gres);
}

@keyframes kenBurns {
  from { transform: scale(1)    translate(0, 0); }
  to   { transform: scale(1.07) translate(-1.5%, 1%); }
}

.values__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 800ms var(--ease);
  will-change: opacity, transform;
}

.values__photo.is-active {
  opacity: 1;
  animation: kenBurns 10s ease-in-out infinite alternate;
}

.values__panel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .values__panel--content {
    padding: var(--space-l) var(--space-l);
  }
  .values__track {
    min-height: min(500px, 60vw);
  }
}

/* Mobile ≤ 768px — colonne unique */
@media (max-width: 768px) {
  .values__track {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .values__panel--content {
    padding: var(--space-l) var(--space-m);
    min-height: 460px;
  }
  .values__panel--photo {
    height: 260px;
  }
  .values__slide-title {
    font-size: clamp(32px, 8vw, 48px);
  }
}

/* Petit mobile ≤ 480px */
@media (max-width: 480px) {
  .values__panel--content {
    padding: var(--space-m) var(--space-m);
    min-height: 400px;
  }
  .values__panel--photo {
    height: 200px;
  }
}
