/* Styles pour le système de badge Mowatin Mocharik - Version Créative */

/* Section Badge Motivant - Visible dès l'entrée */
.badge-motivation-section {
    background: linear-gradient(135deg, #c41e3a 0%, #2e8b57 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.badge-motivation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/zellige-pattern.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.badge-motivation-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 50px;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.badge-visual {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.community-badge {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.community-badge-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    animation: badgeFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
    z-index: 2;
    position: relative;
}

@keyframes badgeFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
    }
    50% {
        transform: translateY(-10px) scale(1.05);
        filter: drop-shadow(0 0 50px rgba(255, 215, 0, 1));
    }
}

.badge-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    from {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    to {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.badge-content {
    flex: 1;
    color: white;
    text-align: center;
}

.badge-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Amiri', serif;
    color: #ffd700;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    to {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

.badge-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.participation-stats {
    margin-bottom: 30px;
}

.stat-highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px 30px;
    border-radius: 20px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.5);
    animation: statPulse 3s ease-in-out infinite;
}

@keyframes statPulse {
    0%, 100% {
        transform: scale(1);
        border-color: rgba(255, 215, 0, 0.5);
    }
    50% {
        transform: scale(1.02);
        border-color: rgba(255, 215, 0, 0.8);
    }
}

.big-number {
    display: block;
    font-size: 48px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: numberCount 2s ease-out;
}

@keyframes numberCount {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-text {
    display: block;
    font-size: 18px;
    color: white;
    margin-top: 5px;
    font-family: 'Amiri', serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.motivation-text {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-family: 'Amiri', serif;
}

.challenge-text {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #c41e3a;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 30px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: challengeBounce 2s ease-in-out infinite;
}

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

.challenge-text i {
    color: #c41e3a;
    margin: 0 10px;
    animation: starTwinkle 1.5s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.2);
    }
}

.action-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.btn-participate {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
    padding: 18px 40px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: buttonPulse 3s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    }
}

.btn-participate:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: linear-gradient(45deg, #20c997, #28a745);
}

.btn-participate i {
    font-size: 22px;
    animation: iconBounce 1s ease-in-out infinite alternate;
}

@keyframes iconBounce {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-2px);
    }
}

.badge-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: white;
    font-size: 14px;
}

.preview-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    animation: previewSpin 4s linear infinite;
}

@keyframes previewSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Modal de badge obtenu - Version améliorée */
.badge-earned-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.badge-earned-modal.show {
    opacity: 1;
    visibility: visible;
}

.badge-earned-modal.hide {
    opacity: 0;
    visibility: hidden;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.celebration-container {
    position: relative;
    background: linear-gradient(135deg, #c41e3a 0%, #2e8b57 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.celebration-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/zellige-pattern.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.badge-celebration {
    position: relative;
    z-index: 2;
}

.badge-glow {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.earned-badge-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    animation: badgeEarnedGlow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
}

@keyframes badgeEarnedGlow {
    from {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
    }
    to {
        transform: scale(1.05);
        filter: drop-shadow(0 0 50px rgba(255, 215, 0, 1));
    }
}

.congratulations-title {
    color: #ffd700;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Amiri', serif;
}

.badge-title-earned {
    color: white;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Amiri', serif;
}

.badge-description {
    color: white;
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-family: 'Amiri', serif;
}

.participation-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
    font-size: 14px;
    color: white;
    margin-top: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-family: 'Amiri', serif;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-buttons button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.share-badge-btn {
    background: linear-gradient(45deg, #1da1f2, #0d8bd9) !important;
}

.download-certificate-btn {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
}

.close-modal-btn {
    background: linear-gradient(45deg, #dc3545, #c82333) !important;
}

/* Confettis */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    animation: confettiFall linear infinite;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Badge permanent */
.permanent-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.badge-container-permanent {
    background: linear-gradient(135deg, #c41e3a 0%, #2e8b57 100%);
    padding: 15px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.badge-container-permanent:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.8);
}

.permanent-badge-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
}

.badge-info {
    display: flex;
    flex-direction: column;
}

.badge-title-permanent {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-family: 'Amiri', serif;
}

.badge-subtitle-permanent {
    color: #ffd700;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.share-permanent-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.share-permanent-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Fonction pour faire défiler vers le vote */
function scrollToVote() {
    const voteSection = document.getElementById('sondage') || document.querySelector('.vote-section');
    if (voteSection) {
        voteSection.scrollIntoView({ behavior: 'smooth' });
    }
}

/* Responsive */
@media (max-width: 768px) {
    .badge-motivation-container {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .badge-visual {
        flex: none;
    }
    
    .community-badge-image {
        width: 150px;
        height: 150px;
    }
    
    .badge-title {
        font-size: 28px;
    }
    
    .badge-subtitle {
        font-size: 20px;
    }
    
    .big-number {
        font-size: 36px;
    }
    
    .motivation-text {
        font-size: 18px;
    }
    
    .challenge-text {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .btn-participate {
        font-size: 18px;
        padding: 15px 30px;
    }
    
    .celebration-container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .congratulations-title {
        font-size: 28px;
    }
    
    .badge-title-earned {
        font-size: 22px;
    }
    
    .badge-description {
        font-size: 16px;
    }
    
    .earned-badge-image {
        width: 120px;
        height: 120px;
    }
    
    .participation-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons button {
        width: 100%;
        max-width: 250px;
    }
    
    .permanent-badge {
        top: 10px;
        right: 10px;
    }
    
    .badge-container-permanent {
        padding: 12px 16px;
    }
    
    .permanent-badge-image {
        width: 35px;
        height: 35px;
    }
    
    .badge-title-permanent {
        font-size: 12px;
    }
    
    .badge-subtitle-permanent {
        font-size: 10px;
    }
    
    .share-permanent-btn {
        width: 30px;
        height: 30px;
    }
}


/* Styles pour les messages personnalisés et animations ultra-créatives */

/* Conteneur principal du badge */
.mowatin-badge-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mowatin-badge-container.hidden {
    display: none;
}

.mowatin-badge-container.permanent {
    animation: badgePulse 2s infinite;
}

.mowatin-badge-container.earning-animation {
    animation: badgeEarning 3s ease-in-out;
    transform-origin: center;
}

/* Badge wrapper avec effets */
.badge-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}

.badge-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(193, 39, 45, 0.3);
    transition: transform 0.3s ease;
}

.badge-wrapper:hover .badge-image {
    transform: scale(1.1);
}

.badge-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, #C1272D, #006233, #FFD700);
    opacity: 0.7;
    z-index: -1;
    animation: glowRotate 3s linear infinite;
}

/* Animations du badge */
@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes badgeEarning {
    0% { 
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% { 
        transform: scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% { 
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

@keyframes glowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Confettis */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #C1272D;
    animation: confettiFall linear infinite;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Modal du badge */
.badge-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.badge-modal {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 3px solid #FFD700;
    animation: modalSlideIn 0.5s ease;
}

@keyframes modalSlideIn {
    from { 
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.badge-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 15px;
}

.badge-modal-header h2 {
    color: #C1272D;
    font-size: 24px;
    margin: 0;
    text-align: center;
    flex: 1;
    font-weight: bold;
}

.close-modal {
    background: none;
    border: none;
    font-size: 30px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f0f0f0;
    color: #C1272D;
}

/* Affichage du badge dans la modal */
.badge-display {
    text-align: center;
    margin-bottom: 25px;
}

.modal-badge-image {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
    animation: badgeFloat 3s ease-in-out infinite;
}

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

.badge-title h3 {
    color: #006233;
    font-size: 22px;
    margin: 5px 0;
    font-weight: bold;
}

.badge-title h4 {
    color: #C1272D;
    font-size: 18px;
    margin: 5px 0;
    font-style: italic;
}

/* Messages personnalisés */
.personalized-message {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 5px solid #006233;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.message-arabic {
    margin-bottom: 15px;
    direction: rtl;
    text-align: right;
}

.message-arabic p {
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
    margin: 0;
    font-weight: 500;
}

.message-french {
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
}

.message-french p {
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
    margin: 0;
    font-weight: 500;
}

/* Statistiques du badge */
.badge-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #006233 0%, #228B22 100%);
    border-radius: 15px;
    padding: 20px;
    color: white;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    line-height: 1.3;
    opacity: 0.9;
}

/* Actions du badge */
.badge-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.share-badge-btn,
.download-certificate-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share-badge-btn {
    background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
    color: white;
}

.share-badge-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.3);
}

.download-certificate-btn {
    background: linear-gradient(135deg, #C1272D 0%, #a91e24 100%);
    color: white;
}

.download-certificate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(193, 39, 45, 0.3);
}

/* Menu de partage */
.share-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.share-menu {
    background: white;
    border-radius: 15px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.share-menu h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
}

.share-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.share-option {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.share-option:hover {
    border-color: #006233;
    background: #f8f9fa;
    transform: translateY(-2px);
}

.platform-icon {
    font-size: 18px;
}

.close-share-menu {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.close-share-menu:hover {
    background: #5a6268;
}

/* Responsive Design */
@media (max-width: 768px) {
    .badge-modal {
        padding: 20px;
        margin: 10px;
    }
    
    .badge-modal-header h2 {
        font-size: 20px;
    }
    
    .modal-badge-image {
        width: 100px;
        height: 100px;
    }
    
    .badge-actions {
        flex-direction: column;
    }
    
    .share-options {
        grid-template-columns: 1fr;
    }
    
    .mowatin-badge-container {
        top: 10px;
        right: 10px;
    }
    
    .badge-wrapper {
        width: 60px;
        height: 60px;
    }
}

/* Animations supplémentaires pour l'effet "wow" */
.badge-modal-content > * {
    animation: contentSlideUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.badge-modal-content > *:nth-child(1) { animation-delay: 0.1s; }
.badge-modal-content > *:nth-child(2) { animation-delay: 0.2s; }
.badge-modal-content > *:nth-child(3) { animation-delay: 0.3s; }
.badge-modal-content > *:nth-child(4) { animation-delay: 0.4s; }

@keyframes contentSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet de brillance sur le badge */
.badge-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 3s infinite;
}

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

