/* Avis vérifiés (22/11/2026) : la section de la page Elite et la page Avis. */
.av-form [hidden], [data-avis-vide-texte][hidden] { display: none !important; }
.av-resume { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; font-size: 14px; color: var(--sous); }
.av-resume b { font: 600 17px 'JetBrains Mono', monospace; color: var(--texte); }
.av-etoiles { color: #E5B964; letter-spacing: 2px; }
.av-grille { max-width: 1040px; margin: 28px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 340px)); justify-content: center; gap: 14px; }
.av-carte { padding: 20px; border-radius: 20px; background: var(--carte); border: 1px solid var(--bord); display: grid; gap: 8px; align-content: start; }
.av-tete { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.av-pseudo { font: 600 13.5px 'JetBrains Mono', monospace; color: var(--texte); }
.av-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(116, 181, 140, .14); color: #74B58C; }
.av-texte { font-size: 14px; line-height: 1.65; color: var(--sous); white-space: pre-line; }
.av-date { font-size: 12px; color: var(--mute); }
.av-regles { max-width: 760px; margin: 26px auto 0; padding: 18px 22px; border-left: 2px solid var(--violet); border-radius: 0 16px 16px 0; background: rgba(166, 129, 242, .08); font-size: 14px; line-height: 1.7; color: var(--sous); }
.av-regles b { color: var(--texte); font-weight: 600; }
.av-form { max-width: 560px; margin: 0 auto; padding: 30px 28px; border-radius: 26px; background: var(--carte); border: 1px solid rgba(166, 129, 242, .35); display: grid; gap: 14px; }
.av-form h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 30px; }
.av-form label { font-size: 13px; color: var(--sous); }
.av-notes { display: flex; gap: 6px; }
.av-notes button { font-size: 34px; line-height: 1; background: none; border: 0; cursor: pointer; color: rgba(242, 239, 248, .22); padding: 2px; transition: color .15s, transform .15s; }
.av-notes button.on { color: #E5B964; }
.av-notes button:hover { transform: scale(1.12); }
.av-form textarea { width: 100%; min-height: 130px; padding: 13px 15px; border-radius: 14px; border: 1px solid rgba(236, 232, 244, .14); background: #1E1C24; color: var(--texte); font: 400 15px/1.6 'Inter', system-ui, sans-serif; resize: vertical; }
.av-form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(166, 129, 242, .25); }
.av-accord { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--sous); }
.av-accord input { margin-top: 3px; accent-color: #A681F2; width: 16px; height: 16px; }
.av-erreur { color: #D58282; font-size: 13.5px; min-height: 1em; }
.av-merci { text-align: center; display: grid; gap: 10px; justify-items: center; }
@media (max-width: 768px) { .av-form textarea { font-size: 16px; } .av-form { padding: 24px 18px; } }

/* La bulle d'info en relief (22/11/2026) */
[data-avis-info] { position: relative; display: flex; justify-content: center; margin-top: 18px; }
.av-info { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 99px; border: 1px solid rgba(166, 129, 242, .3); background: rgba(166, 129, 242, .08); color: var(--texte); font: 500 13.5px Inter, sans-serif; cursor: pointer; transition: background .3s, border-color .3s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.av-info:hover, .av-info[aria-expanded="true"] { background: rgba(166, 129, 242, .16); border-color: rgba(166, 129, 242, .6); transform: translateY(-2px); }
.av-bulle { position: relative; width: 30px; height: 30px; flex: none; perspective: 200px; animation: av-flotte 3.2s ease-in-out infinite alternate; }
.av-bulle-i { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; font: italic 700 16px Georgia, serif; color: #fff; text-shadow: 0 1px 2px rgba(40, 20, 90, .6);
  background: radial-gradient(circle at 32% 28%, #F3EDFF 0 8%, #C7AEFA 22%, #A681F2 48%, #6B45C9 78%, #3E2690 100%);
  box-shadow: 0 6px 14px -4px rgba(106, 69, 201, .9), 0 0 18px rgba(166, 129, 242, .55), inset -3px -4px 8px rgba(40, 20, 90, .55), inset 2px 2px 5px rgba(255, 255, 255, .35);
  transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.av-info:hover .av-bulle-i, .av-info[aria-expanded="true"] .av-bulle-i { transform: rotateY(360deg) scale(1.08); }
@keyframes av-flotte { from { transform: translateY(-1.5px); } to { transform: translateY(1.5px); } }
.av-info-carte { position: absolute; z-index: 30; top: calc(100% + 12px); left: 50%; width: min(460px, calc(100vw - 32px)); padding: 18px 20px; border-radius: 18px; text-align: left;
  background: linear-gradient(160deg, rgba(62, 54, 82, .97), rgba(35, 33, 41, .97)); border: 1px solid rgba(166, 129, 242, .4); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8), 0 0 40px rgba(166, 129, 242, .18);
  transform-origin: 50% 0; transform: translateX(-50%) perspective(700px) rotateX(-24deg) scale(.94); opacity: 0; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.av-info-carte.ouverte { transform: translateX(-50%) perspective(700px) rotateX(0) scale(1); opacity: 1; }
.av-info-carte::before { content: ''; position: absolute; top: -7px; left: calc(50% - 7px); width: 12px; height: 12px; transform: rotate(45deg); background: rgba(62, 54, 82, .97); border-left: 1px solid rgba(166, 129, 242, .4); border-top: 1px solid rgba(166, 129, 242, .4); }
.av-info-carte b { display: block; margin-bottom: 6px; font-size: 14px; color: var(--texte); }
.av-info-carte p { font-size: 13.5px; line-height: 1.65; color: var(--sous); }
@media (prefers-reduced-motion: reduce) { .av-bulle { animation: none; } .av-info-carte { transition: none; } }

/* ── Les cartes d'avis en relief (22/11/2026) ─────────────────────── */
.av-carte { position: relative; overflow: hidden; padding: 26px 26px 22px; border-radius: 24px; gap: 12px;
  background: linear-gradient(155deg, #3B3450, #2B2932 58%); border: 1px solid rgba(188, 160, 247, .2);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .07);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s; }
.av-carte.incline { transition: transform .1s linear, border-color .3s, box-shadow .3s; border-color: rgba(188, 160, 247, .5); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), 0 0 50px rgba(166, 129, 242, .2); }
.av-reflet { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(188, 160, 247, .16), transparent 45%); opacity: 0; transition: opacity .3s; }
.av-carte.incline .av-reflet { opacity: 1; }
.av-guillemet { position: absolute; top: -8px; right: 18px; font: italic 700 130px/1 Georgia, serif; pointer-events: none;
  background: linear-gradient(160deg, rgba(188, 160, 247, .55), rgba(166, 129, 242, .05)); -webkit-background-clip: text; background-clip: text; color: transparent; transform: translateZ(30px); }
.av-tete { justify-content: flex-start; gap: 12px; flex-wrap: nowrap; transform: translateZ(26px); }
.av-avatar { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; padding: 2px; display: grid;
  background: conic-gradient(from var(--av-a, 0deg), #A681F2, #F0B7E0, #74B58C, #A681F2); animation: av-anneau 6s linear infinite; }
.av-avatar span { display: grid; place-items: center; border-radius: 50%; background: #2B2932; font: 700 14px 'JetBrains Mono', monospace; color: #F2EFF8; }
@property --av-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes av-anneau { to { --av-a: 360deg; } }
.av-qui { display: grid; gap: 4px; min-width: 0; }
.av-qui .av-pseudo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-qui .av-badge { justify-self: start; }
.av-etoiles-anim { display: flex; gap: 3px; font-size: 19px; transform: translateZ(20px); }
.av-etoiles-anim span { color: rgba(236, 232, 244, .14); transform: scale(.4); opacity: 0; }
.av-etoiles-anim span.on { color: #E5B964; text-shadow: 0 0 14px rgba(229, 185, 100, .55); }
.av-carte.vu .av-etoiles-anim span { animation: av-etoile .5s cubic-bezier(.3, 1.6, .5, 1) forwards; animation-delay: calc(.15s + var(--e) * .09s); }
@keyframes av-etoile { to { transform: scale(1); opacity: 1; } }
.av-carte .av-texte { position: relative; font-size: 14.5px; line-height: 1.7; color: #DCD7E6; transform: translateZ(14px); }
.av-carte .av-date { transform: translateZ(10px); }

/* Page Avis : les cartes arrivent en cascade */
.av-grille:not(.av-mode-anneau) .av-carte { opacity: 0; transform: perspective(1000px) translateY(40px) rotateX(14deg); }
.av-grille:not(.av-mode-anneau) .av-carte.vu { opacity: 1; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity .7s ease calc(var(--i, 0) * 90ms), transform .8s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * 90ms); }
.av-grille:not(.av-mode-anneau) .av-carte.vu.incline { transition: transform .1s linear, border-color .3s, box-shadow .3s; }


.av-lire { justify-self: start; padding: 0; border: 0; background: none; font: 600 13px Inter, sans-serif; color: var(--violet-clair); cursor: pointer; transform: translateZ(14px); }
.av-lire:hover { color: #fff; }
.av-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.av-fleche { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(188, 160, 247, .3); background: rgba(166, 129, 242, .08); color: var(--texte); font-size: 17px; cursor: pointer; transition: background .3s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.av-fleche:hover { background: rgba(166, 129, 242, .22); transform: scale(1.08); }
.av-points { display: flex; gap: 7px; }
.av-points button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: rgba(236, 232, 244, .2); cursor: pointer; transition: width .4s cubic-bezier(.2, .8, .2, 1), background .3s; }
.av-points button.actif { width: 26px; background: var(--violet); box-shadow: 0 0 12px rgba(166, 129, 242, .7); }
.av-compteur { font: 600 12px 'JetBrains Mono', monospace; color: var(--mute); min-width: 38px; text-align: center; }
@media (max-width: 560px) {
  .av-guillemet { font-size: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .av-avatar { animation: none; }
  .av-etoiles-anim span { transform: none; opacity: 1; animation: none !important; }
  .av-grille:not(.av-mode-anneau) .av-carte { opacity: 1; transform: none; }
}

/* ── L'anneau qui tourne (accueil et page Elite) ───────────────────── */
.av-grille.av-mode-anneau { display: block; max-width: none; margin: 30px auto 0; }
.av-anneau-scene { position: relative; perspective: 1700px; cursor: grab; touch-action: pan-y; user-select: none; }
.av-anneau-scene:active { cursor: grabbing; }
.av-anneau { position: absolute; left: 50%; top: 40px; width: 340px; margin-left: -170px; transform-style: preserve-3d; }
.av-anneau .av-carte { position: absolute; top: 0; left: 0; width: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform: rotateY(var(--r)) translateZ(var(--R)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  filter: brightness(calc(.42 + var(--f, 1) * .58)); transition: border-color .4s, box-shadow .4s; pointer-events: none; }
.av-anneau .av-carte.face { pointer-events: auto; border-color: rgba(188, 160, 247, .65); box-shadow: 0 50px 90px -30px rgba(166, 129, 242, .5), 0 0 0 1px rgba(188, 160, 247, .2); }
.av-anneau .av-carte.incline { transition: border-color .4s, box-shadow .4s; }
.av-anneau .av-texte { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.av-anneau-sol { position: absolute; left: 50%; bottom: 0; width: min(1000px, 100%); height: 120px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(166, 129, 242, .3), transparent); filter: blur(10px); pointer-events: none; }
.av-carte-info { align-content: center; text-align: center; justify-items: center; background: linear-gradient(155deg, #3F3360, #2B2932 70%); }
.av-carte-info .av-info-titre { font-size: 19px; font-weight: 600; color: var(--texte); letter-spacing: -.01em; }
.av-carte-info .av-texte { max-width: 260px; font-size: 14px; color: var(--sous); }
.av-info-note { display: grid; gap: 6px; justify-items: center; margin-bottom: 4px; }
.av-info-note .av-etoiles { font-size: 22px; letter-spacing: 3px; }
.av-info-note strong { font: 700 38px/1 'JetBrains Mono', monospace; color: var(--texte); }

/* Un avis ouvert en grand */
.av-voile { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(20, 18, 26, .74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .35s; perspective: 1200px; }
.av-voile.ouvert { opacity: 1; pointer-events: auto; }
.av-voile .av-carte { width: min(640px, 100%); max-height: calc(100vh - 100px); overflow: auto; transform: rotateY(-70deg) scale(.8); opacity: 0; transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
.av-voile.ouvert .av-carte { transform: none; opacity: 1; }
.av-voile .av-texte { font-size: 15.5px; }
.av-voile-fermer { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(188, 160, 247, .4); background: rgba(166, 129, 242, .12); color: #fff; font-size: 22px; cursor: pointer; }
@media (max-width: 560px) {
  .av-anneau { width: 270px; margin-left: -135px; }
  .av-anneau .av-carte { padding: 20px 18px 16px; }
}
/* L'anneau ne doit jamais élargir la page sur téléphone : ce qui dépasse sur les côtés est coupé. */
.av-grille.av-mode-anneau { overflow: hidden; }
@supports (overflow: clip) { .av-grille.av-mode-anneau { overflow: visible; overflow-x: clip; } }
