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

body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #4D8196;
    background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 100vh;
    color: #333;
    padding: 20px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

header h1 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.header-inputs {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.input-group label {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    opacity: 0.9;
}

.input-group input {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    background: white;
    color: #333;
    min-width: 150px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.input-group input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 233, 143, 0.3), 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.input-group input::placeholder {
    color: #999;
    font-style: italic;
}



.bingo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    background-color: #AD553D;
    border-radius: 15px;
    padding: 12px;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.bingo-cell {
    background: white;
    border: none;
    padding: 18px;
    font-size: 16px;
    text-align: center;
    resize: none;
    outline: none;
    min-height: 100px;
    font-family: inherit;
    transition: all 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.bingo-cell::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.bingo-cell:focus {
    background-color: #FFE98F;
    box-shadow: inset 0 0 0 2px #4D8196;
}

.bingo-cell.free-space {
    background-color: #AD553D;
    background-image: url('./assets/Fichier_972x.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
    cursor: not-allowed;
    border: 2px solid #AD553D;
}

.bingo-cell.free-space::placeholder {
    color: #666;
}

.controls {
    text-align: center;
    margin-top: 20px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.btn-primary {
    background: #AD553D;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(173, 85, 61, 0.4);
    background: #964a35;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

footer {
    text-align: center;
    color: white;
    opacity: 0.8;
    margin-top: 30px;
}

/* Responsive design */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .header-inputs {
        flex-direction: column;
        gap: 15px;
    }
    
    .input-group input {
        min-width: 200px;
        font-size: 14px;
    }
    
    .bingo-cell {
        padding: 10px;
        font-size: 12px;
        min-height: 60px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
        margin: 5px;
    }
}

/* Print styles for better export quality */
@media print {
    body {
        background: white;
    }
    
    .container {
        max-width: none;
    }
    
    .controls, footer {
        display: none;
    }
    
    .bingo-container {
        box-shadow: none;
        border: 2px solid #333;
    }
}
