/* =========================================
   APF — Témoignages clients
   Style premium, sobre, patrimonial
   ========================================= */

.apf-proof{
  --apf-olive: #7A7F2B;
  --apf-olive-soft: #8b9150;
  --apf-earth: #3A332C;
  --apf-earth-2: #544a41;
  --apf-bg: #f7f4ee;
  --apf-card: rgba(255,255,255,0.82);
  --apf-line: rgba(58,51,44,0.10);
  --apf-line-strong: rgba(58,51,44,0.16);
  --apf-text: #2f2924;
  --apf-muted: #6d655d;
  --apf-white: #ffffff;
  --apf-shadow: 0 18px 40px rgba(58,51,44,0.08);
  --apf-shadow-hover: 0 24px 54px rgba(58,51,44,0.14);
  --apf-radius-xl: 28px;
  --apf-radius-lg: 22px;
  --apf-radius-md: 16px;
  --apf-max: 1320px;

  position: relative;
  padding: clamp(56px, 8vw, 110px) 20px;
  background:
    radial-gradient(circle at top left, rgba(122,127,43,0.10), transparent 34%),
    radial-gradient(circle at bottom right, rgba(58,51,44,0.08), transparent 28%),
    linear-gradient(180deg, #fcfbf8 0%, #f5f1ea 100%);
  overflow: hidden;
}

.apf-proof::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.18) 0%, transparent 18%, transparent 82%, rgba(255,255,255,0.12) 100%);
  opacity: .7;
}

.apf-proof__wrap{
  position: relative;
  z-index: 1;
  max-width: var(--apf-max);
  margin: 0 auto;
}

/* =========================
   En-tête
   ========================= */

.apf-proof__head{
  max-width: 860px;
  margin: 0 auto 38px auto;
  text-align: center;
}

.apf-proof__topline{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--apf-muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.apf-proof__chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(122,127,43,0.18);
  border-radius: 999px;
  background: rgba(122,127,43,0.08);
  color: var(--apf-olive);
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(122,127,43,0.08);
}

.apf-proof__chip::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--apf-olive-soft), var(--apf-olive));
  box-shadow: 0 0 0 5px rgba(122,127,43,0.10);
}

.apf-proof__sep{
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(58,51,44,0.22), transparent);
}

.apf-proof__meta{
  font-weight: 500;
}

.apf-proof__title{
  margin: 0 0 14px 0;
  color: var(--apf-earth);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.apf-proof__lead{
  margin: 0 auto;
  max-width: 760px;
  color: var(--apf-muted);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.8;
}

/* =========================
   Rail / slider visuel
   ========================= */

.apf-proofRail{
  position: relative;
  padding-top: 24px;
}

.apf-proofNav{
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}

.apf-proofNav__btn{
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,245,239,0.96));
  border: 1px solid var(--apf-line);
  box-shadow: 0 10px 28px rgba(58,51,44,0.10);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.apf-proofNav__btn:hover{
  transform: translateY(-2px);
  border-color: rgba(122,127,43,0.30);
  box-shadow: 0 16px 34px rgba(58,51,44,0.14);
}

.apf-proofNav__btn span{
  position: relative;
  width: 14px;
  height: 14px;
  display: block;
}

.apf-proofNav__btn span::before{
  content: "";
  position: absolute;
  inset: 0;
  border-top: 2px solid var(--apf-earth);
  border-right: 2px solid var(--apf-earth);
  transform: rotate(45deg);
}

.apf-proofNav__btn.is-prev span::before{
  transform: rotate(-135deg);
  left: 2px;
}

.apf-proofNav__btn.is-next span::before{
  transform: rotate(45deg);
  left: -2px;
}

/* =========================
   Ligne de cartes
   ========================= */

.apf-proof__row{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 380px);
  gap: 22px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(122,127,43,0.32) rgba(58,51,44,0.06);
}

.apf-proof__row::-webkit-scrollbar{
  height: 10px;
}

.apf-proof__row::-webkit-scrollbar-track{
  background: rgba(58,51,44,0.06);
  border-radius: 999px;
}

.apf-proof__row::-webkit-scrollbar-thumb{
  background: linear-gradient(90deg, rgba(122,127,43,0.75), rgba(58,51,44,0.45));
  border-radius: 999px;
}

/* =========================
   Cartes
   ========================= */

.apf-proofCard{
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px 24px 22px;
  border-radius: var(--apf-radius-xl);
  border: 1px solid rgba(255,255,255,0.52);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(250,247,242,0.86) 100%);
  box-shadow: var(--apf-shadow);
  scroll-snap-align: start;
  transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
  overflow: hidden;
  isolation: isolate;
}

.apf-proofCard::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(122,127,43,0.10), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 48%);
  z-index: -1;
}

.apf-proofCard::after{
  content: "“";
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 5.4rem;
  line-height: 1;
  color: rgba(122,127,43,0.08);
  font-family: Georgia, "Times New Roman", serif;
  pointer-events: none;
}

.apf-proofCard:hover{
  transform: translateY(-6px);
  box-shadow: var(--apf-shadow-hover);
  border-color: rgba(122,127,43,0.22);
}

/* Liseré haut de carte */
.apf-proofCard__bar{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--apf-line);
}

/* =========================
   Note / bougies
   ========================= */

.apf-proofRate{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.apf-proofRate__candles{
  display: inline-flex;
  gap: 8px;
}

.apf-proofRate__candles i{
  position: relative;
  width: 12px;
  height: 24px;
  display: inline-block;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(58,51,44,0.16), rgba(58,51,44,0.10));
  overflow: visible;
}

.apf-proofRate__candles i::before{
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 8px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 50% 50% 55% 55%;
  background: rgba(58,51,44,0.20);
  filter: blur(0.2px);
}

.apf-proofRate__candles i.on{
  background: linear-gradient(180deg, #d7dca2 0%, var(--apf-olive) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.20), 0 4px 10px rgba(122,127,43,0.18);
}

.apf-proofRate__candles i.on::before{
  background: radial-gradient(circle at 45% 35%, #fff7c8 0%, #f4cb62 45%, #d49533 100%);
  box-shadow: 0 0 12px rgba(244,203,98,0.55);
}

.apf-proofRate__label{
  color: var(--apf-earth);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* =========================
   Tag
   ========================= */

.apf-proofTag{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(58,51,44,0.06);
  border: 1px solid rgba(58,51,44,0.08);
  color: var(--apf-earth-2);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* =========================
   Corps du témoignage
   ========================= */

.apf-proofCard__text{
  margin: 0 0 24px 0;
  color: var(--apf-text);
  font-size: 1.02rem;
  line-height: 1.9;
  font-weight: 400;
  text-wrap: pretty;
  flex: 1;
}

/* =========================
   Pied de carte
   ========================= */

.apf-proofCard__foot{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--apf-line);
  color: var(--apf-muted);
  font-size: 0.96rem;
}

.apf-proofCard__name{
  color: var(--apf-earth);
  font-weight: 700;
}

.apf-proofCard__dot{
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(122,127,43,0.55);
}

.apf-proofCard__city{
  font-weight: 500;
}

/* =========================
   Focus accessibilité
   ========================= */

.apf-proofNav__btn:focus-visible,
.apf-proofCard:focus-visible{
  outline: 3px solid rgba(122,127,43,0.28);
  outline-offset: 4px;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 980px){
  .apf-proof{
    padding-left: 16px;
    padding-right: 16px;
  }

  .apf-proof__row{
    grid-auto-columns: minmax(300px, 86vw);
    gap: 18px;
  }

  .apf-proofCard{
    padding: 22px 20px 20px;
    border-radius: 22px;
  }

  .apf-proofCard__text{
    font-size: 0.98rem;
    line-height: 1.8;
  }
}

@media (max-width: 640px){
  .apf-proof__head{
    margin-bottom: 28px;
  }

  .apf-proof__topline{
    gap: 10px;
  }

  .apf-proof__meta{
    width: 100%;
  }

  .apf-proofNav{
    justify-content: center;
    margin-bottom: 14px;
  }

  .apf-proofNav__btn{
    width: 48px;
    height: 48px;
  }

  .apf-proof__row{
    grid-auto-columns: 92%;
    padding-bottom: 14px;
  }

  .apf-proofCard__bar{
    flex-direction: column;
    align-items: flex-start;
  }

  .apf-proofTag{
    margin-top: -2px;
  }
}

/* =========================
   Réduction animations
   ========================= */

@media (prefers-reduced-motion: reduce){
  .apf-proofNav__btn,
  .apf-proofCard{
    transition: none;
  }

  .apf-proof__row{
    scroll-behavior: auto;
  }
}