/* WeLap : animations légères (accueil) */
@property --mo-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* Apparition en cascade des cartes */
.mo [data-mo] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.mo [data-mo].mo-in { opacity: 1; transform: none; }

/* Cartes compatibilité et véhicules : accent orange au survol */
@media (hover: hover) {
  .values article { transition: background-color .3s ease, box-shadow .3s ease, opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .values article:hover { background-color: #0c0d10; box-shadow: inset 0 2px 0 #ff6b35; }
}

/* Carte Premium : liseré lumineux qui tourne */
.plan--featured { position: relative; isolation: isolate; }
.plan--featured::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--mo-a), transparent 0 62%, rgba(255,107,53,.15) 70%, #ff6b35 80%, rgba(255,107,53,.15) 88%, transparent 94%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: mo-spin 6s linear infinite; pointer-events: none; z-index: 1; }
@keyframes mo-spin { to { --mo-a: 360deg; } }

/* Avis */
.rv-score { display: flex; align-items: center; gap: 1rem 1.25rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.rv-num { font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif; font-style: italic; font-weight: 700; font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: .9; color: #ff6b35; }
.rv-stars { color: #ff6b35; letter-spacing: .12em; font-size: 1.6rem; line-height: 1; }
.rv-stars i { font-style: normal; display: inline-block; }
.rv-score .small { line-height: 1.35; }
.mo .rv-score .rv-stars i { transform: scale(0); }
.mo .rv-score.mo-in .rv-stars i { animation: mo-pop .45s cubic-bezier(.3,1.6,.5,1) forwards; }
.mo .rv-score.mo-in .rv-stars i:nth-child(2) { animation-delay: .12s; }
.mo .rv-score.mo-in .rv-stars i:nth-child(3) { animation-delay: .24s; }
.mo .rv-score.mo-in .rv-stars i:nth-child(4) { animation-delay: .36s; }
.mo .rv-score.mo-in .rv-stars i:nth-child(5) { animation-delay: .48s; }
@keyframes mo-pop { to { transform: scale(1); } }

.rv-marquee { overflow: hidden; margin-top: 2.5rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rv-track { display: flex; width: max-content; animation: mo-marquee 45s linear infinite; }
.rv-set { display: flex; gap: 1.25rem; padding: .5rem 1.25rem .5rem 0; }
.rv-marquee:hover .rv-track { animation-play-state: paused; }
@keyframes mo-marquee { to { transform: translateX(-50%); } }
.rv-card { flex: none; width: min(340px, 78vw); margin: 0; padding: 1.5rem; border-radius: 20px; background: #0f1013; border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; transition: border-color .3s ease, transform .3s ease; }
.rv-card:hover { border-color: rgba(255,107,53,.45); transform: translateY(-4px); }
.rv-card .rv-stars { font-size: 1rem; }
.rv-card h3 { font-size: 1.25rem; margin: .7rem 0 .5rem; }
.rv-card blockquote { margin: 0; color: #f4f4f1; line-height: 1.55; flex: 1; }
.rv-card figcaption { margin-top: 1.1rem; font-size: .85rem; opacity: .6; }

/* Respect du réglage « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
  .plan--featured::before { animation: none; }
  .rv-marquee { -webkit-mask-image: none; mask-image: none; padding: 0 1.25rem; }
  .rv-track { animation: none; width: auto; }
  .rv-set { flex-wrap: wrap; padding: 0; }
  .rv-set[aria-hidden] { display: none; }
}
