/* ============================================================
   LensArt Testimonials v2 — Slider premium
   Cormorant Garamond + DM Sans | Palette brun chaud & or
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
.lat-section {
  --lat-bg:       #f4efe6;
  --lat-card:     #fdfaf6;
  --lat-brown:    #2a1508;
  --lat-brown-m:  #6b3a1f;
  --lat-gold:     #c8913a;
  --lat-gold-lt:  #e8c87a;
  --lat-muted:    #7a6555;
  --lat-light:    #a89080;
  --lat-border:   rgba(42,21,8,0.10);
  --lat-gap:      21px;
  --lat-radius:   20px;
  --lat-shadow:   0 4px 30px rgba(42,21,8,0.08);
  --lat-shadow-h: 0 16px 56px rgba(42,21,8,0.16);
  --lat-font-d:   'Cormorant Garamond', Georgia, serif;
  --lat-font-b:   'DM Sans', sans-serif;

  font-family: var(--lat-font-b);
  padding: 2em 0 3em;
  position: relative;
}

/* ── Viewport ──────────────────────────────────────────────── */
.lat-slider-viewport {
  overflow: hidden;
  border-radius: var(--lat-radius);
}

/* ── Track ─────────────────────────────────────────────────── */
.lat-slider-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
  cursor: grab;
  user-select: none;
}
.lat-slider-track:active { cursor: grabbing; }

/* ── Slide ─────────────────────────────────────────────────── */
.lat-slide {
  flex: 0 0 calc(33.333% - 14px);
  margin-right: var(--lat-gap);
  background: var(--lat-card);
  border-radius: var(--lat-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--lat-shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.lat-slide:hover {
  box-shadow: var(--lat-shadow-h);
  transform: translateY(-4px);
}

/* ── Photo (haut) ──────────────────────────────────────────── */
.lat-slide__photo {
  position: relative;
  height: 300px;
  overflow: hidden;
  flex-shrink: 0;
}
.lat-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}
.lat-slide:hover .lat-slide__img { transform: scale(1.06); }

/* Overlay bas de photo */
.lat-slide__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(30,12,2,0.38) 100%);
  pointer-events: none;
}

/* Badge prestation */
.lat-slide__badge {
  position: absolute;
  bottom: 14px;
  left: 16px;
  z-index: 2;
  font-family: var(--lat-font-b);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fdfaf6;
  background: rgba(42,21,8,0.50);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 5px 13px;
  border-radius: 100px;
}

/* Placeholder sans photo */
.lat-slide__photo-placeholder {
  height: 160px;
  background: linear-gradient(135deg, #e8ddd0, #d9ccbc);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(122,74,32,0.25);
}

/* ── Contenu (bas) ─────────────────────────────────────────── */
.lat-slide__content {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

/* Étoiles */
.lat-slide__stars { display: flex; gap: 3px; }
.lat-slide__star { font-size: 13px; color: rgba(42,21,8,0.15); line-height: 1; }
.lat-slide__star--on { color: var(--lat-gold); }

/* Citation — grande police serif */
.lat-slide__quote {
  font-family: var(--lat-font-d);
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 400;
  color: var(--lat-brown);
  line-height: 1.3;
  margin: 0;
  position: relative;
}
/* Guillemet décoratif */
.lat-slide__quote::before {
  content: '\201C';
  font-size: 4.5em;
  color: rgba(200,145,58,0.18);
  position: absolute;
  top: -0.5em;
  left: -0.08em;
  line-height: 1;
  pointer-events: none;
  font-style: normal;
}

/* Texte complet — clampé 3 lignes */
.lat-slide__text {
  font-size: 0.87rem;
  line-height: 1.8;
  color: var(--lat-muted);
  font-weight: 300;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.lat-slide__text.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* Bouton lire plus */
.lat-slide__readmore {
  font-family: var(--lat-font-b);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--lat-gold);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  align-self: flex-start;
  transition: color 0.2s;
}
.lat-slide__readmore:hover { color: var(--lat-brown-m); }

/* Séparateur */
.lat-slide__sep {
  height: 1px;
  background: var(--lat-border);
  margin: 2px 0;
}

/* Footer auteur */
.lat-slide__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.lat-slide__author { display: flex; flex-direction: column; gap: 2px; }
.lat-slide__name {
  font-family: var(--lat-font-d);
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
  color: var(--lat-brown);
}
.lat-slide__meta {
  font-size: 11px;
  color: var(--lat-light);
  letter-spacing: 0.04em;
}
.lat-slide__ig {
  color: var(--lat-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
  transition: color 0.2s, transform 0.2s;
}
.lat-slide__ig:hover { color: var(--lat-brown); transform: scale(1.15); }

/* ── Navigation ────────────────────────────────────────────── */
.lat-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.8em;
  padding: 0 2px;
}

/* Dots */
.lat-dots { display: flex; gap: 8px; align-items: center; }
.lat-dot {
  width: 6px; height: 6px;
  border-radius: 100px;
  background: rgba(42,21,8,0.18);
  border: none; cursor: pointer; padding: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lat-dot--active { width: 24px; background: var(--lat-brown); }

/* Compteur */
.lat-counter {
  font-family: var(--lat-font-d);
  font-size: 1rem;
  color: var(--lat-light);
}
.lat-counter strong { color: var(--lat-brown); font-weight: 600; }

/* Flèches */
.lat-arrows { display: flex; gap: 10px; }
.lat-arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--lat-border);
  background: var(--lat-card);
  color: var(--lat-brown);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lat-arrow:hover {
  background: var(--lat-brown);
  border-color: var(--lat-brown);
  color: var(--lat-card);
  transform: scale(1.08);
}
.lat-arrow:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

/* ── Note globale ──────────────────────────────────────────── */
.lat-aggregate {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--lat-brown);
  color: var(--lat-card);
  border-radius: 100px;
  padding: 14px 28px;
  margin-top: 2.4em;
  /* Centrage */
  display: flex;
  justify-content: center;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
.lat-aggregate__stars { color: var(--lat-gold-lt); font-size: 17px; letter-spacing: 3px; }
.lat-aggregate__text { font-size: 13.5px; font-weight: 300; opacity: 0.9; }
.lat-aggregate__text strong { font-weight: 600; color: var(--lat-gold-lt); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .lat-slide { flex: 0 0 calc(50% - 11px); }
}
@media (max-width: 580px) {
  .lat-slide { flex: 0 0 calc(100%); margin-right: 21px; }
  .lat-slide__photo { height: 250px; }
  .lat-slide__quote { font-size: 1.3rem; }
  .lat-slide__content { padding: 20px 22px 22px; }
}

/* ── Accessibilité ─────────────────────────────────────────── */
.lat-arrow:focus-visible,
.lat-dot:focus-visible,
.lat-slide__readmore:focus-visible,
.lat-slide__ig:focus-visible {
  outline: 2px solid var(--lat-gold);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .lat-slider-track { transition: none; }
  .lat-slide, .lat-slide__img { transition: none; animation: none; }
}
