/**
 * ================================================================
 * Conclusion - Jour de fin de calendrier (v4.3.8)
 * ================================================================
 *
 * Styles pour l'activité de conclusion avec message et sondage
 * Réutilise les patterns de poll.css pour cohérence visuelle
 *
 * @version 4.3.8
 */

/* ================================================================
   1. CONTAINER
   ================================================================ */
.crowdaa-activity-conclusion {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--cal-spacing-lg, 20px);
    font-family: var(--cal-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

/* ================================================================
   2. MESSAGE DE CONCLUSION
   ================================================================ */

/* v4.12.375 - Override generic day styles for conclusion message */
/* IMPORTANT: Cibler le .crowdaa-today-content qui est AVANT .crowdaa-today-activity */
.crowdaa-advent-today-wrapper[data-day-number="999"] .crowdaa-today-content {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    border: none;
    border-left: none;
    padding: 0;
    margin-bottom: var(--cal-spacing-xl, 30px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Confetti overlay for the message */
.crowdaa-advent-today-wrapper[data-day-number="999"] .crowdaa-today-content::before {
    content: '🎉 🎊 ✨ 🌟 🎈 🎉 🎊 ✨ 🌟 🎈';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 24px;
    letter-spacing: 15px;
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
    z-index: 0;
    background: none;
    width: auto;
    height: auto;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Inner wrapper for content */
.crowdaa-advent-today-wrapper[data-day-number="999"] .crowdaa-today-content > * {
    position: relative;
    z-index: 1;
}

/* Style the actual content */
.crowdaa-advent-today-wrapper[data-day-number="999"] .crowdaa-today-content p {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    margin: 0;
    color: #2B3674;
    font-size: 18px;
    line-height: 1.8;
    font-weight: 500;
}


/* Emoji styling in text */
.crowdaa-advent-today-wrapper[data-day-number="999"] .crowdaa-today-content p::first-line {
    font-size: 20px;
    font-weight: 700;
}

.conclusion-message-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--cal-radius-lg, 16px);
    padding: var(--cal-spacing-xl, 30px);
    color: white;
    margin-bottom: var(--cal-spacing-xl, 30px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

/* Decorative elements */
.conclusion-message-box::after {
    content: '✨';
    position: absolute;
    font-size: 80px;
    opacity: 0.1;
    bottom: -20px;
    right: -10px;
    animation: sparkle 4s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.1; }
    50% { transform: rotate(15deg) scale(1.1); opacity: 0.15; }
}

.conclusion-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
}

.conclusion-icon {
    font-size: 48px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.conclusion-header h3 {
    margin: 0;
    font-size: 32px;
    font-weight: 800 !important;
    color: white !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.conclusion-content {
    font-size: 17px;
    line-height: 1.9;
    position: relative;
}

.conclusion-content p {
    margin: 0 0 18px 0;
    color: rgba(255, 255, 255, 0.98);
    font-weight: 400;
}

.conclusion-content p:last-child {
    margin-bottom: 0;
}

.conclusion-content strong,
.conclusion-content b {
    color: #FFD93D;
    font-weight: 700;
}

/* ================================================================
   3. SONDAGE DE CONCLUSION (réutilise poll.css patterns)
   ================================================================ */
.conclusion-survey-box {
    background: #f8f9fa;
    border-radius: var(--cal-radius-lg, 16px);
    padding: var(--cal-spacing-xl, 30px);
    margin-bottom: var(--cal-spacing-xl, 30px);
}

.survey-header {
    text-align: center;
    margin-bottom: var(--cal-spacing-xl, 30px);
}

.survey-icon {
    font-size: var(--cal-font-size-3xl, 48px);
    display: block;
    margin-bottom: 10px;
}

.survey-header h3 {
    margin: 0 0 10px 0;
    font-size: var(--cal-font-size-xl, 24px);
    color: #2B3674;
    font-weight: 700;
}

.survey-header p {
    margin: 0;
    color: #6B7280;
    font-size: var(--cal-font-size-base, 15px);
    line-height: 1.6;
}

/* ================================================================
   4. QUESTIONS ET OPTIONS
   ================================================================ */
.survey-question {
    margin-bottom: var(--cal-spacing-xl, 30px);
}

.question-label {
    display: block;
    font-size: var(--cal-font-size-base, 16px);
    font-weight: 600;
    color: #2B3674;
    margin-bottom: 15px;
}

.question-hint {
    font-size: var(--cal-font-size-sm, 13px);
    font-weight: 400;
    color: #6B7280;
    margin-left: 5px;
}

/* Textarea pour questions ouvertes */
.survey-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: var(--cal-radius-sm, 8px);
    font-size: var(--cal-font-size-base, 15px);
    font-family: inherit;
    resize: vertical;
    transition: border-color var(--cal-transition-base, 0.3s ease);
    line-height: 1.5;
}

.survey-textarea:focus {
    outline: none;
    border-color: #9C27B0;
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
}

/* Options (radio/checkbox) */
.survey-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.survey-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: var(--cal-radius-sm, 8px);
    cursor: pointer;
    transition: all var(--cal-transition-base, 0.3s ease);
    position: relative;
}

/* v4.3.9 - Masquer les radio/checkbox natifs (comme poll.css) */
.survey-option input[type="radio"],
.survey-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Hover effect */
.survey-option:hover {
    border-color: #9C27B0;
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: var(--cal-shadow-sm, 0 2px 10px rgba(0, 0, 0, 0.05));
}

.survey-option .option-emoji {
    font-size: 24px;
    line-height: 1;
}

.survey-option .option-text {
    flex: 1;
    font-size: var(--cal-font-size-base, 15px);
    color: #2B3674;
}

/* État sélectionné - Plusieurs sélecteurs pour compatibilité navigateurs */
.survey-option input:checked + .option-emoji,
.survey-option.selected,
.survey-option:has(input:checked) {
    border-color: #9C27B0;
    background: rgba(156, 39, 176, 0.08);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.2);
}

.survey-option input:checked ~ .option-text,
.survey-option.selected .option-text,
.survey-option:has(input:checked) .option-text {
    font-weight: 600;
    color: #9C27B0;
}

/* ================================================================
   5. BOUTONS ET ACTIONS
   ================================================================ */
.conclusion-survey-submit,
.conclusion-mark-complete-btn {
    width: 100%;
    margin-top: 10px;
    padding: 15px 30px;
    font-size: var(--cal-font-size-base, 16px);
    font-weight: 600;
    border: none;
    border-radius: var(--cal-radius-md, 12px);
    cursor: pointer;
    transition: all var(--cal-transition-base, 0.3s ease);
}

.conclusion-survey-submit {
    background: linear-gradient(135deg, #9C27B0 0%, #673AB7 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

.conclusion-survey-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(156, 39, 176, 0.4);
}

.conclusion-survey-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ================================================================
   6. MESSAGES DE CONFIRMATION
   ================================================================ */
.survey-completed-message,
.already-completed-message {
    text-align: center;
    padding: var(--cal-spacing-xl, 30px);
    background: #d4edda;
    border-radius: var(--cal-radius-md, 12px);
    color: #155724;
}

.survey-completed-message .checkmark,
.already-completed-message .checkmark {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    animation: checkmark-pop 0.5s ease;
}

@keyframes checkmark-pop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.survey-completed-message p,
.already-completed-message p {
    margin: 0 0 10px 0;
    font-size: var(--cal-font-size-base, 16px);
    font-weight: 600;
}

.survey-completed-message small {
    color: #6c757d;
    font-size: var(--cal-font-size-sm, 14px);
}

/* ================================================================
   7. SECTION COMPLÉTION
   ================================================================ */
.conclusion-complete-section {
    text-align: center;
    padding: var(--cal-spacing-lg, 20px) 0;
}

.completion-note {
    margin-top: 15px;
    font-size: var(--cal-font-size-sm, 14px);
    color: #6B7280;
    line-height: 1.5;
}

/* ================================================================
   8. RESPONSIVE MOBILE
   ================================================================ */
@media (max-width: 768px) {
    .crowdaa-activity-conclusion {
        padding: 0px;
    }

    .conclusion-message-box,
    .conclusion-survey-box {
        padding: var(--cal-spacing-lg, 20px);
    }

    .conclusion-header h3 {
        font-size: 22px;
    }

    .conclusion-icon {
        font-size: 36px;
    }

    .survey-header h3 {
        font-size: 20px;
    }

    .survey-icon {
        font-size: 36px;
    }

    .survey-option {
        padding: 12px;
    }

    .survey-option .option-emoji {
        font-size: 20px;
    }
}

/* ================================================================
   9. MODAL CONTEXT - Spécifique à #day-modal
   ================================================================ */

/* S'assurer que la conclusion s'affiche bien dans le modal */
#day-modal .crowdaa-activity-conclusion {
    width: 100%;
    max-width: 100%;
}

/* Mobile : Scroll fluide dans le modal fullscreen */
@media (max-width: 767px) {
    #day-modal .modal-content {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #day-modal .crowdaa-activity-conclusion {
        min-height: 100vh;
        padding: var(--cal-spacing-lg, 20px);
    }
}

/* Desktop : Modal centré avec largeur max */
@media (min-width: 768px) {
    #day-modal .modal-content {
        max-width: 900px;
        max-height: 90vh;
        overflow-y: auto;
    }

    #day-modal .crowdaa-activity-conclusion {
        max-width: 800px;
        padding: var(--cal-spacing-xl, 30px);
    }
}

/* Desktop large : Modal encore plus spacieux */
@media (min-width: 1024px) {
    #day-modal .modal-content {
        max-width: 1000px;
    }
}

/* ============================================================================
   v4.12.377 - CLASSEMENT FINAL (LEADERBOARD) - Refonte UX/UI complète
   Design ultra-compact, séparation media/prize, hiérarchie visuelle optimale
   ========================================================================== */

.conclusion-leaderboard-box {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border: 2px solid #6366f1;
    border-radius: 20px;
    padding: 32px 24px;
    margin-top: 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

/* v4.12.388 - Vrais confettis CSS (formes colorées) */
.conclusion-opening-confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
    animation: fadeOut 3s forwards;
}

.conclusion-opening-confetti .opening-confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10%;
    opacity: 1;
}

/* Carrés et rectangles */
.conclusion-opening-confetti .opening-confetti:nth-child(1),
.conclusion-opening-confetti .opening-confetti:nth-child(5),
.conclusion-opening-confetti .opening-confetti:nth-child(9),
.conclusion-opening-confetti .opening-confetti:nth-child(13),
.conclusion-opening-confetti .opening-confetti:nth-child(17) {
    background: #f94144;
    animation: confetti-fall-1 3s ease-out forwards;
}

/* Cercles */
.conclusion-opening-confetti .opening-confetti:nth-child(2),
.conclusion-opening-confetti .opening-confetti:nth-child(6),
.conclusion-opening-confetti .opening-confetti:nth-child(10),
.conclusion-opening-confetti .opening-confetti:nth-child(14),
.conclusion-opening-confetti .opening-confetti:nth-child(18) {
    background: #f3722c;
    border-radius: 50%;
    animation: confetti-fall-2 3s ease-out forwards;
}

/* Rectangles allongés */
.conclusion-opening-confetti .opening-confetti:nth-child(3),
.conclusion-opening-confetti .opening-confetti:nth-child(7),
.conclusion-opening-confetti .opening-confetti:nth-child(11),
.conclusion-opening-confetti .opening-confetti:nth-child(15),
.conclusion-opening-confetti .opening-confetti:nth-child(19) {
    background: #f8961e;
    width: 8px;
    height: 14px;
    animation: confetti-fall-3 3s ease-out forwards;
}

/* Petits carrés */
.conclusion-opening-confetti .opening-confetti:nth-child(4),
.conclusion-opening-confetti .opening-confetti:nth-child(8),
.conclusion-opening-confetti .opening-confetti:nth-child(12),
.conclusion-opening-confetti .opening-confetti:nth-child(16),
.conclusion-opening-confetti .opening-confetti:nth-child(20) {
    background: #90be6d;
    width: 6px;
    height: 6px;
    animation: confetti-fall-4 3s ease-out forwards;
}

/* Positions horizontales variées */
.conclusion-opening-confetti .opening-confetti:nth-child(1) { left: 5%; animation-delay: 0s; }
.conclusion-opening-confetti .opening-confetti:nth-child(2) { left: 12%; animation-delay: 0.1s; }
.conclusion-opening-confetti .opening-confetti:nth-child(3) { left: 18%; animation-delay: 0.05s; }
.conclusion-opening-confetti .opening-confetti:nth-child(4) { left: 25%; animation-delay: 0.15s; }
.conclusion-opening-confetti .opening-confetti:nth-child(5) { left: 32%; animation-delay: 0.08s; }
.conclusion-opening-confetti .opening-confetti:nth-child(6) { left: 38%; animation-delay: 0.12s; }
.conclusion-opening-confetti .opening-confetti:nth-child(7) { left: 45%; animation-delay: 0.03s; }
.conclusion-opening-confetti .opening-confetti:nth-child(8) { left: 52%; animation-delay: 0.18s; }
.conclusion-opening-confetti .opening-confetti:nth-child(9) { left: 58%; animation-delay: 0.06s; }
.conclusion-opening-confetti .opening-confetti:nth-child(10) { left: 65%; animation-delay: 0.14s; }
.conclusion-opening-confetti .opening-confetti:nth-child(11) { left: 72%; animation-delay: 0.02s; }
.conclusion-opening-confetti .opening-confetti:nth-child(12) { left: 78%; animation-delay: 0.16s; }
.conclusion-opening-confetti .opening-confetti:nth-child(13) { left: 85%; animation-delay: 0.09s; }
.conclusion-opening-confetti .opening-confetti:nth-child(14) { left: 92%; animation-delay: 0.11s; }
.conclusion-opening-confetti .opening-confetti:nth-child(15) { left: 8%; animation-delay: 0.13s; }
.conclusion-opening-confetti .opening-confetti:nth-child(16) { left: 22%; animation-delay: 0.07s; }
.conclusion-opening-confetti .opening-confetti:nth-child(17) { left: 48%; animation-delay: 0.17s; }
.conclusion-opening-confetti .opening-confetti:nth-child(18) { left: 62%; animation-delay: 0.04s; }
.conclusion-opening-confetti .opening-confetti:nth-child(19) { left: 75%; animation-delay: 0.19s; }
.conclusion-opening-confetti .opening-confetti:nth-child(20) { left: 88%; animation-delay: 0.01s; }

/* Animations de chute variées */
@keyframes confetti-fall-1 {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        top: 110%;
        transform: translateX(-40px) rotate(720deg);
        opacity: 0;
    }
}

@keyframes confetti-fall-2 {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        top: 110%;
        transform: translateX(60px) rotate(-540deg);
        opacity: 0;
    }
}

@keyframes confetti-fall-3 {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        top: 110%;
        transform: translateX(-30px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes confetti-fall-4 {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        top: 110%;
        transform: translateX(50px) rotate(-720deg);
        opacity: 0;
    }
}

@keyframes fadeOut {
    0%, 90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* Shimmer subtil */
.conclusion-leaderboard-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    animation: shimmer 4s infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ======================
   Header du leaderboard
   ====================== */
.leaderboard-header {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.leaderboard-icon {
    display: inline-block;
    font-size: 40px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.4));
}

.leaderboard-header h3 {
    color: #fbbf24 !important;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
    line-height: 1.2;
}

.leaderboard-header p {
    color: #e0e7ff;
    font-size: 15px;
    font-weight: 400;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}

/* =================================
   Podium - Ultra-compact (60px)
   ================================= */
.leaderboard-podium {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.podium-position {
    display: block;
    width: 100%;
}

/* Carte podium : 60px de hauteur fixe, layout horizontal */
.podium-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-radius: 12px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px 0 10px;
    position: relative;
    overflow: visible;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.podium-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Gagnant : effet doré */
.podium-position.winner .podium-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.25);
    height: 64px; /* Légèrement plus grand */
}

.podium-position.winner .podium-card:hover {
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.35);
}

/* Badge de rang : 40px */
.rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3730a3 0%, #1e1b4b 100%);
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.podium-position.rank-1 .rank-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    width: 44px;
    height: 44px;
}

.podium-position.rank-2 .rank-badge {
    background: linear-gradient(135deg, #e5e7eb 0%, #9ca3af 100%);
}

.podium-position.rank-3 .rank-badge {
    background: linear-gradient(135deg, #cd7f32 0%, #92400e 100%);
}

.rank-badge .medal {
    font-size: 24px;
    display: block;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.podium-position.rank-1 .rank-badge .medal {
    font-size: 28px;
}

/* Info participant : flex:1 avec ellipsis */
.participant-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.participant-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.podium-position.winner .participant-name {
    font-size: 18px;
    color: #92400e;
}

.participant-points {
    font-size: 14px;
    font-weight: 700;
    color: #6366f1;
    white-space: nowrap;
    flex-shrink: 0;
}

.podium-position.winner .participant-points {
    font-size: 16px;
    color: #f59e0b;
}

/* ==================================
   Winner Glory Section (séparée)
   ================================== */
.winner-glory-section {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.3) 0%, rgba(253, 230, 138, 0.3) 100%);
    border: 2px solid #fbbf24;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.glory-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.glory-icon {
    font-size: 32px;
    line-height: 1;
}

.glory-header h4 {
    color: #f59e0b !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0;
    line-height: 1.2;
}

.glory-media {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    background: #000;
}

.glory-media img,
.glory-media video {
    width: 100%;
    height: auto;
    display: block;
}

.glory-media video {
    max-height: 400px;
    object-fit: contain;
}

/* ==========================
   Prize CTA Section
   ========================== */
.prize-cta-section {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
    position: relative;
    z-index: 1;
}

.prize-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.prize-text {
    color: white;
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .conclusion-leaderboard-box {
        padding: 24px 16px;
        margin-top: 24px;
    }

    .leaderboard-header h3 {
        font-size: 24px;
    }

    .leaderboard-header p {
        font-size: 14px;
    }

    .leaderboard-icon {
        font-size: 36px;
    }

    .podium-card {
        padding: 0 16px 0 8px;
    }

    .participant-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .participant-name {
        font-size: 15px;
    }

    .podium-position.winner .participant-name {
        font-size: 16px;
    }

    .participant-points {
        font-size: 13px;
    }

    .podium-position.winner .participant-points {
        font-size: 14px;
    }

    .glory-header h4 {
        font-size: 18px;
    }

    .glory-media video {
        max-height: 300px;
    }

    .prize-text {
        font-size: 15px;
    }
}

/* Desktop : layout horizontal pour les infos */
@media (min-width: 769px) {
    .participant-info {
        gap: 16px;
    }
}

/* ========================================
   v4.12.374 - SONDAGE MULTISTEP
   ======================================== */

/* Masquer toutes les questions par défaut */
.conclusion-survey-form .survey-question {
    display: none;
}

/* Afficher uniquement la question active */
.conclusion-survey-form .survey-question.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Compteur de questions */
.survey-counter {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #7c3aed;
    margin-bottom: 12px;
}

.survey-counter .current-q {
    font-size: 18px;
    font-weight: 800;
    color: #9333ea;
}

/* Barre de progression */
.survey-progress {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
    padding: 0 20px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e9d5ff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.progress-dot.active {
    background: #9333ea;
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.2);
}

.progress-dot.completed {
    background: #a855f7;
}

/* Boutons de navigation */
.survey-navigation {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #f3e8ff;
}

.survey-nav-btn {
    flex: 1;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.survey-prev-btn {
    background: #f3e8ff;
    color: #7c3aed;
    border: 2px solid #e9d5ff;
}

.survey-prev-btn:hover {
    background: #e9d5ff;
    border-color: #d8b4fe;
    transform: translateX(-4px);
}

.survey-next-btn {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: white;
    border: 2px solid transparent;
}

.survey-next-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.survey-next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Responsive pour navigation */
@media (max-width: 480px) {
    .survey-navigation {
        flex-direction: column;
    }

    .survey-nav-btn {
        width: 100%;
    }

    .survey-prev-btn:hover {
        transform: translateY(-2px);
    }

    .survey-next-btn:hover:not(:disabled) {
        transform: translateY(-2px);
    }
}
