﻿/* loto.css */

/* Styles de base */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 10px;
    padding: 0;
    background: #f5f5f5;
}

h2, h3, p {
    margin: 10px 0;
}

/* Logo */
.logo {
    display: block;
    margin: 0 auto 20px auto;
    width: 200px;
    height: 200px;
    object-fit: contain;
}

/* Premier prix / message d'incitation */
.prix-box {
    text-align: center;
    margin: 20px auto;
    padding: 20px;
    max-width: 500px;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-family: 'Arial Black', sans-serif;
    animation: pulse 2s infinite;
}

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

/* Formulaire joueur */
#formjoueur {
    margin-bottom: 20px;
}

#formjoueur input {
    padding: 8px;
    margin: 5px;
    width: calc(40% - 10px);
    max-width: 200px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#formjoueur button {
    padding: 10px 20px;
    background: green;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
}

#formjoueur button:hover {
    background: darkgreen;
}

/* Grille des numéros */
.grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
    max-width: 600px;
    margin: 20px auto;
}

.numero {
    padding: 12px;
    font-weight: bold;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s;
    min-height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.numero.free { background: green; }
.numero.taken { background: red; cursor: not-allowed; }

.numero:hover { transform: scale(1.1); }

/* Liste des numéros réservés */
#liste {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 500px;
    margin: 10px auto;
}

/* Boutons principaux */
button#btn-payer {
    padding: 12px 20px;
    background: blue;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px auto;
    display: block;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

button#btn-payer:hover {
    background: darkblue;
}

/* Responsive pour tablettes */
@media screen and (max-width: 768px) {
    .grid { grid-template-columns: repeat(5, 1fr); }
    .numero { font-size: 14px; padding: 10px; }
    #formjoueur input { width: calc(45% - 10px); }
    button#btn-payer { width: 80%; font-size: 16px; }
}

/* Responsive pour mobiles */
@media screen and (max-width: 480px) {
    .grid { grid-template-columns: repeat(4, 1fr); }
    .numero { font-size: 12px; padding: 8px; }
    #formjoueur input { width: 90%; margin-bottom: 8px; display: block; }
    button#btn-payer { width: 90%; font-size: 14px; }
    .prix-box { font-size: 14px; padding: 15px; }
    .logo { width: 150px; height: 150px; }
}

/* Grille dynamique adaptable */
.grid {
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
}