/* ============================================
   BRAND PARTNERS V4 — Section Audit IA (Home)
   ============================================ */

@keyframes audit-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes audit-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,181,122,0); }
  50% { box-shadow: 0 8px 30px rgba(232,181,122,0.2); }
}

/* Section principale — parallax JS (cross-platform desktop + mobile) */
.audit-section {
  position: relative;
  padding: clamp(5rem, 11vw, 9rem) 0;
  color: #FAFAF8;
  overflow: hidden;
  isolation: isolate;
  background: #0A0A0A;
}
/* Image background en couche absolue, plus grande que la section pour laisser room au translate */
.audit-section__bg {
  position: absolute;
  top: -25%; left: 0; right: 0;
  width: 100%; height: 150%;
  background-image: url('../assets/images/citation-art.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  will-change: transform;
  transform: translateY(0);
}
/* Overlay sombre + lueur bleue */
.audit-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(165deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.65) 50%, rgba(10,10,10,0.88) 100%);
  z-index: -1;
}
.audit-section::after {
  content: ''; position: absolute; top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(46,0,255,0.18) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}
.audit-section .container { position: relative; z-index: 1; }

/* Hero accroche */
.audit-section__head { max-width: 760px; margin-bottom: 3.5rem; }
.audit-section__eyebrow {
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: #E8B57A; font-weight: 500; margin-bottom: 1.2rem;
  display: inline-flex; align-items: center; gap: 0.7rem;
  opacity: 0; animation: audit-fade-in 0.7s ease-out 0.1s forwards;
}
.audit-section__eyebrow::before {
  content: ''; width: 32px; height: 1px; background: #E8B57A;
}
.audit-section__title {
  font-family: var(--font-editorial); font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.02em;
  color: #FFFFFF; margin: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.3);
  opacity: 0; animation: audit-fade-in 0.8s ease-out 0.3s forwards;
}
.audit-section__title em {
  font-style: italic;
  background: linear-gradient(135deg, #E8B57A 0%, #FCD9A8 50%, #E8B57A 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.audit-section__sub {
  margin-top: 1.5rem; font-size: 1.05rem; line-height: 1.65;
  color: rgba(250,250,248,0.78); max-width: 65ch;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  opacity: 0; animation: audit-fade-in 0.7s ease-out 0.5s forwards;
}

/* Grid des 4 cards (desktop) */
.audit-section__grid {
  display: grid; grid-template-columns: 1fr 1fr 1.2fr 1fr; gap: 1rem;
  opacity: 0; animation: audit-fade-in 0.8s ease-out 0.7s forwards;
}

/* Card style Apple Glass laiteux */
.audit-section__card {
  background: rgba(250,250,248,0.12);
  border: 1px solid rgba(250,250,248,0.22);
  backdrop-filter: blur(30px) saturate(180%) brightness(105%);
  -webkit-backdrop-filter: blur(30px) saturate(180%) brightness(105%);
  padding: 1.6rem 1.4rem; color: inherit; text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 280px;
  display: flex; flex-direction: column; gap: 0.6rem;
  position: relative; overflow: hidden;
}
.audit-section__card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0.6;
}
.audit-section__card:hover {
  background: rgba(250,250,248,0.18);
  transform: translateY(-4px);
  border-color: rgba(232,181,122,0.5);
  color: inherit;
}
.audit-section__card-num {
  font-family: var(--font-editorial); font-style: italic;
  color: #E8B57A; font-size: 0.95rem; position: relative;
}
.audit-section__card-name {
  font-family: var(--font-editorial); font-size: 1.6rem; font-weight: 300;
  line-height: 1.1; color: #FAFAF8; position: relative;
  margin: 0;
}
.audit-section__card-price {
  font-family: var(--font-editorial); font-style: italic; font-size: 1.6rem;
  background: linear-gradient(135deg, #E8B57A 0%, #FCD9A8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin: 0.4rem 0; position: relative;
}
.audit-section__card-price small {
  font-family: var(--font-body); font-size: 0.6rem;
  color: rgba(250,250,248,0.55); margin-left: 0.2rem; font-style: normal;
  -webkit-text-fill-color: rgba(250,250,248,0.55);
}
.audit-section__card ul {
  list-style: none; padding: 0; margin: 0;
  font-size: 0.78rem; line-height: 1.55;
  color: rgba(250,250,248,0.82); flex: 1; position: relative;
}
.audit-section__card ul li { padding: 0.28rem 0; }
.audit-section__card ul li::before { content: '— '; color: #E8B57A; }

/* Card recommandée (Stratégique) */
.audit-section__card--reco {
  background: linear-gradient(165deg, rgba(232,181,122,0.22) 0%, rgba(232,181,122,0.10) 100%);
  border-color: rgba(232,181,122,0.6);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  animation: audit-glow-pulse 4s ease-in-out infinite;
}
.audit-section__card--reco .audit-section__card-name {
  font-style: italic; color: #E8B57A;
}
.audit-section__card--reco .audit-section__card-num { color: #FCD9A8; }
.audit-section__card--reco::after {
  content: '★ Recommandé'; position: absolute; top: 0.6rem; right: 0.6rem;
  background: rgba(232,181,122,0.95); color: #1A1A1A;
  font-size: 0.55rem; padding: 0.18rem 0.5rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 700; z-index: 2;
}

/* Footer compteur + CTA */
.audit-section__bottom {
  margin-top: 3rem;
  display: flex; justify-content: space-between;
  align-items: center; gap: 2rem; flex-wrap: wrap;
  padding-top: 2rem; border-top: 1px solid rgba(250,250,248,0.12);
  opacity: 0; animation: audit-fade-in 0.7s ease-out 0.9s forwards;
}
.audit-section__counter {
  font-family: var(--font-editorial); font-style: italic;
  color: rgba(250,250,248,0.6); font-size: 1rem;
}
.audit-section__counter strong {
  background: linear-gradient(135deg, #E8B57A 0%, #FCD9A8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-size: 1.6rem; margin-right: 0.4rem; font-weight: 400;
}
.audit-section__btn {
  background: linear-gradient(135deg, #E8B57A 0%, #FCD9A8 100%);
  color: #1A1A1A !important; padding: 1.1rem 2rem;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.6rem;
  transition: all 0.3s ease; border: none; cursor: pointer;
}
.audit-section__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(232,181,122,0.4);
  color: #1A1A1A !important;
}
.audit-section__btn::after { content: '↗'; font-size: 1rem; }

/* Dots indicator (caché desktop, visible mobile) */
.audit-section__dots { display: none; }


/* ================================
   MOBILE — Swipe horizontal
   ================================ */
@media (max-width: 768px) {
  .audit-section {
    padding: clamp(3rem, 9vw, 5rem) 0;
    /* Parallax JS conservé sur mobile (transform GPU, fluide cross-platform) */
  }
  .audit-section__head {
    margin-bottom: 2rem;
    padding: 0 var(--gutter, 1.2rem);
  }
  .audit-section__eyebrow { font-size: 0.7rem; letter-spacing: 0.2em; }
  .audit-section__title { font-size: 2.4rem; line-height: 1.05; }
  .audit-section__sub { font-size: 0.9rem; margin-top: 1rem; line-height: 1.55; }

  /* Grid devient swipe horizontal */
  .audit-section__grid {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    gap: 0.6rem;
    padding: 0 var(--gutter, 1.2rem) 1rem;
    margin: 0;
    scroll-padding-left: var(--gutter, 1.2rem);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .audit-section__grid::-webkit-scrollbar { display: none; }
  .audit-section__card {
    flex: 0 0 80%; /* 80% viewport, 10% peek de la suivante */
    scroll-snap-align: start;
    min-height: auto; padding: 1.3rem 1.2rem;
  }
  .audit-section__card-name { font-size: 1.4rem; }
  .audit-section__card-price { font-size: 1.5rem; }
  .audit-section__card ul { font-size: 0.78rem; }

  /* Dots indicator visible mobile */
  .audit-section__dots {
    display: flex; justify-content: center; gap: 0.45rem;
    margin-top: 0.8rem; padding: 0 var(--gutter, 1.2rem);
  }
  .audit-section__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(232,181,122,0.3);
    transition: all 0.35s ease; cursor: pointer; border: none; padding: 0;
  }
  .audit-section__dot.is-active {
    background: #E8B57A; width: 22px; border-radius: 4px;
  }

  .audit-section__bottom {
    flex-direction: column; gap: 1.2rem; align-items: stretch;
    margin: 2rem var(--gutter, 1.2rem) 0;
    padding: 1.5rem 0 0; text-align: center;
  }
  .audit-section__counter { font-size: 0.88rem; }
  .audit-section__counter strong { font-size: 1.3rem; }
  .audit-section__btn {
    padding: 1rem; font-size: 0.78rem;
    justify-content: center; width: 100%;
  }
}