* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    height: 100vh;
    overflow: hidden;
    padding: 1rem;
}

.vote-container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
}

.modal {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: min(20px, 4vh);
    padding: min(2rem, 4vh);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: white;
    max-width: min(90vw, 500px);
    width: 100%;
    animation: fadeInScale 0.4s ease forwards;
}

.columnFlex {
    display: flex;
    flex-direction: column;
    gap: min(1.5rem, 3vh);
}

.rowFlex {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: min(1rem, 2vh);
}

.button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-weight: 600;
    border: none;
    height: min(50px, 8vh);
    width: 100%;
    border-radius: min(12px, 2vh);
    transition: all 0.3s ease;
    user-select: none;
    font-size: clamp(1rem, 2.5vh, 1.2rem);
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.backButton {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.backButton:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

.slidecontainer {
    width: 100%;
    margin: min(1rem, 2vh) 0;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    border-radius: min(8px, 1.5vh);
    width: 100%;
    height: min(12px, 2vh);
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: min(40px, 6vh);
    height: min(40px, 6vh);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.slider::-moz-range-thumb {
    width: min(40px, 6vh);
    height: min(40px, 6vh);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.noteText {
    color: white;
    font-weight: bold;
    font-size: clamp(3rem, 12vh, 6rem);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin: min(1rem, 2vh) 0;
    line-height: 1;
}

/* Styles pour les titres et textes */
.wine-title {
    font-size: clamp(1.8rem, 5vh, 2.5rem);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: min(0.5rem, 1vh);
}

.wine-type {
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.2rem, 3vh, 1.5rem);
    opacity: 0.9;
    margin-bottom: min(1rem, 2vh);
}

.wine-price {
    font-size: clamp(1.4rem, 3.5vh, 1.8rem);
    font-weight: 600;
    margin-bottom: min(1rem, 2vh);
    color: #fbbf24;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.category-title {
    font-size: clamp(1.5rem, 4vh, 2rem);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: min(1rem, 2vh);
}

.status-text {
    font-size: clamp(1.1rem, 2.5vh, 1.3rem);
    opacity: 0.9;
    margin-bottom: min(1rem, 2vh);
}

/* Animation d'apparition */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive pour petits écrans */
@media (max-height: 600px) {
    .modal {
        padding: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .columnFlex {
        gap: 1rem;
    }
    
    .noteText {
        font-size: clamp(2rem, 8vh, 4rem);
    }
}