/* ==========================================================================
   Black Sphère Awards — « Intégrer le réseau » (complète vote.css : .sheet-form, .vfield, .btn)
   ========================================================================== */
.rs-wrap { width: min(860px, 100% - 2rem); }
/* Moins d'espace entre le titre de la page et le formulaire */
.rs-hero { padding-bottom: .25rem; }
.rs-section { padding-top: .9rem; padding-bottom: 3rem; }
.rs-form { scroll-margin-top: 100px; }
.rs-step { display: grid; gap: 1.6rem; animation: rsIn .35s ease both; }
.rs-nav { display: grid; grid-template-columns: auto 1fr; gap: .75rem; }
.rs-lead { margin-top: .75rem; max-width: 40rem; color: #d4d4d4; font-size: 1.05rem; }
.rs-form { gap: 1.6rem; padding: 1.75rem; }
.rs-form fieldset { display: grid; gap: 1rem; }
.rs-form legend { padding: 0; }
.rs-grid { display: grid; gap: 1.1rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rs-full { grid-column: 1 / -1; }
@media (max-width: 639px) { .rs-grid { grid-template-columns: 1fr; } .rs-form { padding: 1.1rem; } }

/* Erreurs */
.ferr { min-height: 0; margin-top: .35rem; font-size: .78rem; color: #ff9c94; }
.ferr:empty { display: none; }
.vfield [aria-invalid="true"], .vfield .iti input[aria-invalid="true"] { border-color: #ff6b60 !important; background: rgba(255, 107, 96, .07) !important; }
.rs-alert { padding: .8rem 1rem; border-radius: .8rem; background: rgba(255, 107, 96, .12); border: 1px solid rgba(255, 107, 96, .45); color: #ffb4ad; font-size: .9rem; }

/* Liste déroulante avec recherche */
.cb { position: relative; }
.cb-box { position: relative; }
.cb-box input { padding-right: 2.6rem; cursor: pointer; text-overflow: ellipsis; }
.cb-box input:not([readonly]) { cursor: text; }
.cb-box svg { position: absolute; right: 1rem; top: 50%; width: 16px; height: 16px; translate: 0 -50%; fill: none; stroke: #d4af37; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: rotate .2s; }
.cb.is-open .cb-box svg { rotate: 180deg; }
.cb-list { position: absolute; z-index: 30; inset: calc(100% + .35rem) 0 auto 0; max-height: 260px; overflow-y: auto; margin: 0; padding: .35rem; list-style: none; border-radius: .8rem; background: #121212; border: 1px solid rgba(212, 175, 55, .45); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .85); overscroll-behavior: contain; }
.cb-list li { padding: .6rem .75rem; border-radius: .55rem; cursor: pointer; font-size: .95rem; color: #e5e5e5; }
.cb-list li[aria-selected="true"] { color: #f5e3a1; font-weight: 600; }
.cb-list li.is-active { background: rgba(212, 175, 55, .18); color: #fff; }
.cb-list .cb-none { color: #a3a3a3; cursor: default; }

/* Choix du statut */
.rs-cards { display: grid; gap: .8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 639px) { .rs-cards { grid-template-columns: 1fr; } }
.rs-card { position: relative; display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: .9rem; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); cursor: pointer; transition: border-color .25s, background .25s; }
.rs-card:hover { border-color: rgba(212, 175, 55, .6); }
.rs-card input { position: absolute; opacity: 0; pointer-events: none; }
.rs-card::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 2px solid #737373; transition: all .2s; }
.rs-card:has(input:checked) { border-color: #d4af37; background: rgba(212, 175, 55, .1); }
.rs-card:has(input:checked)::before { border-color: #d4af37; background: radial-gradient(#d4af37 45%, transparent 50%); }
.rs-card:has(input:focus-visible) { outline: 2px solid #d4af37; outline-offset: 2px; }
.rs-card strong { display: block; color: #fff; font-size: 1rem; }
.rs-card small { display: block; margin-top: .15rem; color: #a3a3a3; font-size: .82rem; line-height: 1.4; }

.vfield .rs-check, .rs-check { display: flex; gap: .7rem; align-items: flex-start; margin: 0; text-transform: none; letter-spacing: 0; font-size: .85rem; line-height: 1.5; color: #cfcfcf; cursor: pointer; }
.rs-check input { flex: none; width: 20px; height: 20px; margin-top: 2px; padding: 0; accent-color: #d4af37; }

/* Bouton : spinner pendant l'envoi */
.rs-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(10, 10, 10, .25); border-top-color: #0a0a0a; animation: rsSpin .7s linear infinite; }
#rs-submit.is-busy .rs-spin { display: inline-block; }
#rs-submit.is-busy { cursor: progress; }
@keyframes rsSpin { to { rotate: 360deg; } }
.rs-form.is-busy fieldset, .rs-form.is-busy .vfield { opacity: .6; pointer-events: none; }

/* Succès + fiche */
.rs-done { display: grid; gap: 2rem; animation: rsIn .5s ease both; }
@keyframes rsIn { from { opacity: 0; translate: 0 12px; } }
.rs-ok { display: grid; justify-items: center; gap: .6rem; padding: 2rem 1.25rem; text-align: center; border-radius: 1rem; border: 1px solid rgba(123, 224, 170, .45); background: rgba(123, 224, 170, .07); }
.rs-ok h2 { font-size: 1.7rem; font-weight: 700; color: #fff; }
.rs-ok p { max-width: 36rem; color: #cfcfcf; }
.rs-tick { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #7be0aa; box-shadow: 0 0 0 8px rgba(123, 224, 170, .18); }
.rs-tick svg { width: 32px; height: 32px; fill: none; stroke: #07210f; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; animation: rsDraw .6s .2s ease both; }
@keyframes rsDraw { from { stroke-dashoffset: 30; } }
.rs-fiche { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 759px) { .rs-fiche { grid-template-columns: 1fr; } }
.rs-canvas-box { border-radius: 1rem; overflow: hidden; border: 1px solid rgba(212, 175, 55, .4); box-shadow: 0 30px 60px -30px rgba(212, 175, 55, .45); background: #000; line-height: 0; }
#rs-canvas { width: 100%; height: auto; touch-action: none; cursor: grab; }
#rs-canvas.is-drag { cursor: grabbing; }
.rs-side { display: grid; gap: 1rem; padding: 1.25rem; border-radius: 1rem; border: 1px solid rgba(212, 175, 55, .22); background: rgba(10, 10, 10, .72); }
.rs-side h3 { font-size: 1.15rem; font-weight: 700; color: #fff; }
.rs-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.rs-actions.center { justify-content: center; }
.rs-actions .btn { flex: 1 1 auto; }
.rs-zoom { display: grid; gap: .4rem; }
.rs-zoom label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #a3a3a3; }
.rs-zoom input { width: 100%; accent-color: #d4af37; }

/* Caméra */
.rs-modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 1rem; background: rgba(0, 0, 0, .86); backdrop-filter: blur(6px); }
.rs-modal-panel { width: min(520px, 100%); display: grid; gap: 1rem; padding: 1rem; border-radius: 1rem; border: 1px solid rgba(212, 175, 55, .4); background: #121212; }
#rs-video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .8rem; background: #000; scale: -1 1; }

/* Alerte de confirmation (SweetAlert2) */
.rs-swal-btn { color: #0a0a0a !important; font-weight: 700 !important; letter-spacing: .02em; }
