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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f6fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

@media print {

    /* 1. Cacher absolument tout */
    html,
    body {
        height: 100vh;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    body * {
        visibility: hidden !important;
    }

    /* 2. Afficher uniquement le conteneur d'impression */
    #printContent,
    #printContent * {
        visibility: visible !important;
    }

    #printContent {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: 98vh !important;
        /* Empêche le débordement sur page 2 */
        margin: 0 !important;
        padding: 5mm !important;
        box-sizing: border-box !important;
    }

    /* 3. Mise en page ultra-compacte */
    .print-header {
        text-align: center;
        margin-bottom: 5px;
    }

    .print-header h2 {
        font-size: 16pt;
        margin: 0;
    }

    .print-info {
        display: flex !important;
        justify-content: space-between !important;
        border-bottom: 1.5pt solid black !important;
        padding: 5px 0 !important;
        margin-bottom: 10px !important;
        font-size: 11pt !important;
    }

    .print-results {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        /* 2 colonnes */
        gap: 5px !important;
    }

    .print-question {
        border: 0.5pt solid #ccc !important;
        padding: 4px !important;
        font-size: 9pt !important;
        page-break-inside: avoid !important;
    }

    .print-summary {
        margin-top: 10px !important;
        padding: 8px !important;
        border: 1.5pt solid black !important;
        text-align: center !important;
        background-color: #f0f0f0 !important;
        -webkit-print-color-adjust: exact;
        /* Force la couleur grise en PDF */
    }

    /* 4. Forcer le format Portrait et supprimer les marges du navigateur */
    @page {
        size: portrait;
        margin: 0 !important;
    }
}


/* Modal d'identification */
.student-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.90);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.student-card {
    background: white;
    border-radius: 25px;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
    position: relative;
    animation: slideUp 0.4s ease;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

.student-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(135deg, #5b7bd5 0%, #4a63b3 100%);
    z-index: 0;
}

.student-card::after {
    content: '✏️';
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4em;
    background: white;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border: 5px solid white;
    z-index: 1;
}

.student-title {
    font-size: 2em;
    font-weight: 800;
    margin-bottom: 8px;
    margin-top: 80px;
    text-align: center;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 45px;
    position: relative;
    z-index: 2;
}

.student-subtitle {
    color: #64748b;
    font-size: 1.05em;
    margin-bottom: 35px;
    text-align: center;
    line-height: 1.6;
    font-weight: 500;
    padding: 0 45px;
    position: relative;
    z-index: 2;
}

.student-input-group {
    margin-bottom: 25px;
    position: relative;
    padding: 0 45px;
    z-index: 2;
}

.student-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.student-label::before {
    content: '👤';
    font-size: 1.2em;
}

.student-input-group:nth-child(3) .student-label::before {
    content: '🎓';
}

.student-input {
    width: 100%;
    padding: 16px 20px;
    border: 3px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    background: #f8fafc;
    font-weight: 600;
}

.student-input:focus {
    outline: none;
    border-color: #5b7bd5;
    background: white;
    box-shadow: 0 0 0 4px rgba(91, 123, 213, 0.15);
    transform: translateY(-2px);
}

.student-input::placeholder {
    color: #94a3b8;
    font-style: italic;
    font-weight: 500;
}

.student-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    padding: 0 45px 45px 45px;
    position: relative;
    z-index: 2;
}

.student-btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.student-btn.cancel {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: white;
}

.student-btn.cancel:hover {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(100, 116, 139, 0.5);
}

.student-btn.confirm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.student-btn.confirm::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.student-btn.confirm:hover::before {
    width: 300px;
    height: 300px;
}

.student-btn.confirm:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

.header-bar {
    background: #5b7bd5;
    color: white;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    height: 50px;
}

.header-left {
    font-size: 1.1em;
    font-weight: 600;
}

.header-right {
    font-size: 0.9em;
}

.timer-widget {
    position: fixed;
    top: 70px;
    left: 20px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 12px 15px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 180px;
    z-index: 500;
    border: 3px solid #f39c12;
}

.timer-title {
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    color: #f39c12;
}

.timer-display {
    font-size: 2em;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    margin-bottom: 8px;
    color: #f39c12;
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

.timer-display.warning {
    animation: pulse 1s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.score-display {
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 8px;
    border-radius: 6px;
    margin-top: 6px;
}

.score-label {
    font-size: 0.7em;
    color: #f39c12;
    margin-bottom: 3px;
}

.score-value {
    font-size: 1.2em;
    font-weight: 700;
    color: #f39c12;
}

.stop-print-btn {
    width: 100%;
    margin-top: 6px;
    padding: 6px 8px;
    background: #d35400;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stop-print-btn:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

.main-container {
    flex: 1;
    max-width: 1600px;
    margin: 15px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.page-title {
    text-align: center;
    margin: 10px 0 20px 0;
}

.page-title h1 {
    font-size: 2em;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

.page-title p {
    font-size: 1em;
    color: #64748b;
}

.progress-section {
    margin-bottom: 20px;
    text-align: center;
}

.progress-text {
    color: #1e293b;
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 8px;
}

.progress-bar-container {
    background: #e2e8f0;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    height: 100%;
    background: #10b981;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.content-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    margin: 15px 0;
    flex-wrap: nowrap;
    flex: 1;
}

.ticket-section {
    flex: 0 0 auto;
}

.receipt-container {
    background: white;
    border: 2px dashed #666;
    padding: 15px;
    font-family: 'Courier New', monospace;
    width: 350px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    color: #222;
    max-height: 500px;
    overflow-y: auto;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px dashed #666;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.receipt-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #000;
}

.receipt-info {
    font-size: 0.8em;
    color: #444;
    margin: 2px 0;
}

.receipt-items {
    margin: 15px 0;
    line-height: 1.5;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
    color: #222;
    font-size: 0.9em;
}

.receipt-footer {
    border-top: 2px dashed #666;
    padding-top: 10px;
    margin-top: 15px;
}

.receipt-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin: 8px 0;
    color: #000;
    font-size: 1em;
}

.receipt-thanks {
    text-align: center;
    margin-top: 15px;
    font-size: 0.75em;
    color: #555;
    border-top: 1px dashed #666;
    padding-top: 10px;
}

.money-display-section {
    flex: 1;
    min-width: 350px;
    max-width: 700px;
}

.money-block {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.money-block-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #cbd5e1;
}

.money-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.banknote {
    width: 120px;
    height: 60px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3em;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.banknote::before {
    content: '€';
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 0.6em;
    opacity: 0.7;
}

.banknote-500 {
    background: linear-gradient(135deg, #8b4789, #6b356b);
}

.banknote-200 {
    background: linear-gradient(135deg, #d4a11f, #b8891a);
}

.banknote-100 {
    background: linear-gradient(135deg, #4a9b4f, #3a7b3f);
}

.banknote-50 {
    background: linear-gradient(135deg, #e67e22, #c96516);
}

.banknote-20 {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.banknote-10 {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.banknote-5 {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.coin {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9em;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 3px solid;
}

/* Pièces en EUROS - Blanches/Argentées */
.coin-2,
.coin-200,
.coin-1,
.coin-100 {
    background: radial-gradient(circle, #f0f0f0, #c0c0c0);
    border-color: #808080;
    color: #2c3e50;
}

/* Centimes DORÉS - 50c, 20c, 10c */
.coin-050,
.coin-020,
.coin-010 {
    background: radial-gradient(circle, #ffd700, #daa520);
    border-color: #b8860b;
    color: #8b6914;
}

.coin-050 {
    font-size: 0.8em;
}

.coin-020 {
    font-size: 0.8em;
    width: 45px;
    height: 45px;
}

.coin-010 {
    font-size: 0.8em;
    width: 42px;
    height: 42px;
}

/* Petits centimes CUIVRE - 5c, 2c, 1c */
.coin-005,
.coin-002,
.coin-001 {
    background: radial-gradient(circle, #cd7f32, #a0522d);
    border-color: #8b4513;
    color: #654321;
    font-size: 0.7em;
}

.coin-005 {
    width: 40px;
    height: 40px;
}

.coin-002 {
    width: 38px;
    height: 38px;
}

.coin-001 {
    width: 35px;
    height: 35px;
    font-size: 0.65em;
}

.input-section {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    align-self: stretch;
}

.input-label {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
    font-size: 1.1em;
    text-align: center;
}

.money-input {
    width: 250px;
    padding: 15px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1.8em;
    font-weight: 600;
    text-align: center;
    font-family: 'Courier New', monospace;
    background: white;
    margin-bottom: 12px;
}

.money-input:focus {
    outline: none;
    border-color: #5b7bd5;
    box-shadow: 0 0 0 3px rgba(91, 123, 213, 0.1);
}

.encaissement-btn {
    width: 250px;
    padding: 15px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
    margin-top: 15px;
}

.encaissement-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.footer-cerpeg {
    background: #1e293b;
    color: #94a3b8;
    text-align: center;
    padding: 12px;
    font-size: 0.85em;
}

.result-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: 1000;
}

.result-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.result-icon {
    font-size: 5em;
    margin-bottom: 20px;
}

.result-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 15px;
}

.result-card.correct {
    border: 4px solid #10b981;
}

.result-card.correct .result-icon {
    color: #10b981;
}

.result-card.correct .result-title {
    color: #10b981;
}

.result-card.incorrect {
    border: 4px solid #ef4444;
}

.result-card.incorrect .result-icon {
    color: #ef4444;
}

.result-card.incorrect .result-title {
    color: #ef4444;
}

.result-details {
    font-size: 1.1em;
    color: #64748b;
    margin-bottom: 10px;
}

.completion-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.completion-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.completion-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.final-score {
    font-size: 4em;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 20px;
}

.completion-message {
    font-size: 1.2em;
    color: #64748b;
    margin-bottom: 30px;
}

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

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #64748b;
    color: white;
}

.btn.success {
    background: #10b981;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.error-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 900;
    animation: fadeIn 0.3s ease;
}

.error-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 4px solid #ef4444;
    position: relative;
    animation: shake 0.5s ease, slideUp 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.error-icon {
    font-size: 5em;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
    filter: drop-shadow(0 4px 8px rgba(239, 68, 68, 0.3));
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.error-title {
    font-size: 1.8em;
    font-weight: 800;
    color: #ef4444;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.error-message {
    font-size: 1.15em;
    color: #475569;
    margin-bottom: 25px;
    line-height: 1.6;
    font-weight: 500;
    background: #fef2f2;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ef4444;
}

.error-button {
    padding: 14px 35px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.error-button:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5);
}

.error-button:active {
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .timer-widget {
        position: relative;
        top: auto;
        right: auto;
        margin: 15px auto;
        width: 90%;
        max-width: 300px;
    }

    .content-container {
        flex-direction: column;
        align-items: center;
        flex-wrap: wrap;
    }

    .money-display-section {
        min-width: auto;
        width: 100%;
    }

    .input-section {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
    }

    .banknote {
        width: 100px;
        height: 50px;
        font-size: 1.1em;
    }

    .money-input {
        width: 220px;
        font-size: 1.5em;
    }

    .encaissement-btn {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .header-bar {
        flex-direction: column;
        gap: 4px;
        height: auto;
        text-align: center;
    }

    .receipt-container {
        width: 100%;
        max-width: 350px;
    }

    .page-title h1 {
        font-size: 1.5em;
    }

    .money-block {
        padding: 15px;
    }

    .banknote {
        width: 90px;
        height: 45px;
        font-size: 1em;
    }
}





/* Zone de dépôt */
.drop-zone {
    width: 100%;
    min-height: 120px;
    max-height: 500px;
    overflow-y: auto;
    background: #fff;
    border: 3px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
    margin-bottom: 10px;
}

.drop-zone::-webkit-scrollbar {
    width: 8px;
}

.drop-zone::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.drop-zone::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.drop-zone::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.drop-zone>* {
    flex-shrink: 0;
}

.drop-zone.drag-over {
    background: #e0e7ff;
    border-color: #5b7bd5;
}

.drop-zone-placeholder {
    width: 100%;
    text-align: center;
    color: #94a3b8;
    font-size: 1.1em;
    font-weight: 500;
    padding: 20px;
    pointer-events: none;
}

.current-render-total {
    font-size: 1.4em;
    font-weight: bold;
    color: #1e293b;
    margin: 10px 0;
}

.render-summary {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1.3em;
    font-weight: 700;
    color: #1e293b;
    margin: 15px 0;
    border: 2px solid #cbd5e1;
    text-align: center;
}

.render-summary span {
    color: #5b7bd5;
    font-size: 1.2em;
}

.btn-clear {
    width: 60%;
    padding: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    margin-bottom: 12px;
    font-size: 10px;
}

.btn-clear:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-clear:active {
    transform: translateY(0);
}

/* Tiroir-Caisse */
.cash-drawer {
    grid-column: 1 / -1;
    /* Prend toute la largeur */
    background: #334155;
    padding: 20px;
    border-radius: 15px;
    margin-top: 30px;
}

.cash-drawer .money-block-title {
    color: white;
    border-bottom-color: #475569;
}

.drawer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.banknote,
.coin {
    cursor: grab;
    user-select: none;
}

.banknote:active,
.coin:active {
    cursor: grabbing;
}

.btn-reset {
    background: #94a3b8;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
}

.instructions-box {
    background: linear-gradient(135deg, #dcf1ff, #cde1ff);
    border: 2px solid #3f60cd;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 200px 20px 200px;
    text-align: center;
  font-size: 18px;
}