:root { --gold: #E1AD01; --dark: #3E2723; --white: #FFFFFF; --cream: #FFF9E1; }
body { font-family: 'Poppins', sans-serif; margin: 0; background: #fdfdfd; color: var(--dark); overflow-x: hidden; }

.slideshow-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; animation: fadeBg 12s infinite; }
.slide:nth-child(1) { animation-delay: 0s; } .slide:nth-child(2) { animation-delay: 4s; } .slide:nth-child(3) { animation-delay: 8s; }
@keyframes fadeBg { 0%, 100% {opacity:0} 10%, 33% {opacity:1} }

header { background: var(--gold); padding: 15px; text-align: center; color: white; font-weight: bold; }
.container { max-width: 480px; margin: auto; padding: 15px; }
.step { display: none; }
.step.active { display: block; animation: fadeIn 0.4s ease; }

.score-circle-container { display: flex; flex-direction: column; align-items: center; background: white; padding: 30px; border-radius: 25px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); margin-bottom: 25px; border: 2px solid var(--cream); }
.big-score { font-size: 5.5rem; font-weight: 800; color: var(--gold); line-height: 1; margin: 10px 0; }
.score-label { font-size: 1rem; text-transform: uppercase; font-weight: 600; opacity: 0.8; }

.auth-card, .hero-card, .bilan-final { background: white; padding: 25px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); margin-bottom: 20px; }
input, select { width: 100%; padding: 12px; margin: 10px 0; border: 1.5px solid #eee; border-radius: 12px; box-sizing: border-box; }

.testimonials-container { background: var(--cream); padding: 15px; border-radius: 15px; margin: 20px 0; min-height: 85px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--gold); }
.testimonial-slide { display: none; text-align: center; font-size: 0.85rem; }
.testimonial-slide.active { display: block; }

.success-message { background: #d4edda; color: #155724; padding: 15px; border-radius: 10px; text-align: center; font-weight: bold; margin-bottom: 20px; }
.progress-container { background: #eee; height: 10px; border-radius: 5px; margin-top: 15px; }
.progress-bar { background: var(--gold); height: 100%; width: 0; border-radius: 5px; transition: width 0.3s; }

.camera-wrapper { position: relative; height: 320px; background: #000; border-radius: 25px; overflow: hidden; border: 4px solid var(--gold); }
#video { width: 100%; height: 100%; object-fit: cover; }
.camera-controls { display: flex; gap: 10px; margin: 15px 0; }
.previews { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.slot { height: 50px; background: #eee; border-radius: 8px; background-size: cover; border: 1px solid var(--gold); }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.s-box { background: var(--cream); border: 1px solid var(--gold); padding: 10px; border-radius: 10px; text-align: center; font-size: 0.75rem; }
.alert-red { background: #fff5f5; border-left: 5px solid #d32f2f; padding: 12px; margin-bottom: 20px; border-radius: 8px; font-size: 0.8rem; }
.gold-title { color: var(--gold); margin-bottom: 10px; font-size: 0.85rem; text-transform: uppercase; font-weight: bold; }
.week-box { background: var(--cream); border: 1px solid #eee; padding: 10px; border-radius: 8px; font-size: 0.75rem; margin-bottom: 5px; }

.referral-box { background: var(--dark); color: white; padding: 25px; border-radius: 25px; text-align: center; }
.dots-container { display: flex; justify-content: center; gap: 8px; margin: 15px 0; }
.dot { width: 14px; height: 14px; background: #555; border: 1.5px solid var(--gold); border-radius: 50%; }
.dot.filled { background: #25D366 !important; box-shadow: 0 0 10px #25D366; }

.btn-main, .btn-wa, .btn-share { border: none; padding: 16px; border-radius: 12px; width: 100%; font-weight: bold; cursor: pointer; }
.btn-main { background: var(--gold); color: white; }
.btn-share { background: #25D366; color: white; margin-top: 10px; }
.btn-secondary { background: #eee; border-radius: 8px; padding: 10px; cursor: pointer; border:none; }
.btn-capture { background: var(--gold); color:white; border-radius: 8px; padding: 10px; flex-grow:1; border:none; font-weight:bold; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }