/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #000;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    height: 60px;
    width: auto;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

/* Section du jeu */
.game-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: center;
}

.wheel-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

#wheelCanvas {
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
    transition: transform 0.1s ease;
}



.spin-button {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.spin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6);
}

.spin-button:active {
    transform: translateY(0);
}

.spin-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.game-info {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.game-info p {
    color: #666;
    margin-bottom: 20px;
}

.validity-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

/* Section valeur */
.value-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    text-align: center;
}

.value-section h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #2c3e50;
}

.value-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Boutons d'action */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 50px;
}

.btn {
    display: inline-block;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6);
}

.btn-secondary {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    color: white;
    box-shadow: 0 5px 15px rgba(149, 165, 166, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(149, 165, 166, 0.6);
}

.btn-tertiary {
    background: linear-gradient(45deg, #e91e63, #c2185b);
    color: white;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
}

.btn-tertiary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.6);
}

/* Section conditions */
.conditions-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.conditions-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #2c3e50;
}

.conditions-content p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.4;
}

.conditions-list {
    margin-top: 20px;
}

.condition-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
}

.check {
    margin-right: 12px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.condition-item p {
    margin: 0;
    color: #555;
    line-height: 1.3;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.footer h3 {
    margin-bottom: 15px;
    color: #ecf0f1;
}

.partner-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.partner-links a {
    color: #3498db;
    text-decoration: none;
    padding: 8px 15px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.partner-links a:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-1px);
}

.footer-contact {
    text-align: center;
}

.phone-btn {
    display: inline-block;
    background: linear-gradient(45deg, #e91e63, #c2185b);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
}

/* Compteur de participants */
.participant-counter {
    background: linear-gradient(45deg, #ecf0f1, #d5dbdb);
    color: #2c3e50;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.counter-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.counter-icon {
    font-size: 1.5rem;
}

.counter-text {
    font-size: 1.1rem;
}

.urgency-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    background: linear-gradient(45deg, #27ae60, #229954);
    color: white;
    padding: 25px;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-body p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.promo-code {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #27ae60;
}

.promo-code strong {
    font-size: 1.3rem;
    color: #27ae60;
}

.validity {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

.modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    flex-direction: column;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .logo {
        position: static;
        margin-bottom: 20px;
        height: 50px;
    }
    
    .game-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .wheel-container {
        padding: 20px;
    }
    
    #wheelCanvas {
        width: 300px;
        height: 300px;
    }
    
    .action-buttons {
        gap: 10px;
    }
    
    .partner-links {
        justify-content: center;
    }
    
    .counter-content {
        flex-direction: column;
        gap: 5px;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    #wheelCanvas {
        width: 250px;
        height: 250px;
    }
    
    .wheel-container {
        padding: 15px;
    }
    
    .spin-button {
        padding: 12px 20px;
        font-size: 1rem;
    }
}



/* Grille de vignettes */
.vignettes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.vignette-item {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vignette-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.vignette-image {
    width: 100%;
    max-width: 90px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.vignette-image:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive pour tablette */
@media (max-width: 1024px) {
    .vignettes-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
        max-width: 500px;
    }
    
    .vignette-image {
        max-width: 75px;
    }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .vignettes-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 6px;
        padding: 10px;
        max-width: 400px;
    }
    
    .vignette-image {
        max-width: 60px;
    }
}

@media (max-width: 480px) {
    .vignettes-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 5px;
        padding: 8px;
        max-width: 320px;
    }
    
    .vignette-image {
        max-width: 50px;
    }
}


/* Animation des confettis */
@keyframes confettiFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

