@import url('https://fonts.googleapis.com/css2?family=Radio+Canada:wght@400;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Radio Canada', Arial, sans-serif;
    background: linear-gradient(180deg, #eaf3fa 0%, #e5edf8 100%);
    color: #23223b;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Ajout pour icônes colorées */
.icon {
    vertical-align: middle;
    margin-right: 6px;
    font-size: 1.1em;
    opacity: 0.9;
}
.text-primary { color: #1877ff !important; }
.text-success { color: #06cc6c !important; }
.text-info { color: #00aefe !important; }
.text-warning { color: #ff8f00 !important; }
.text-danger { color: #e74c3c !important; }
.text-secondary { color: #546e7a !important; }

/* Effet de survol sur les lignes du tableau */
table tr:hover {
    background-color: #f6f9ff;
    transition: background 0.2s;
}

/* Amélioration des boutons */
button.confirm, .btn.confirm-btn {
    background: #1877ff;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(24, 119, 255, 0.12);
    cursor: pointer;
    transition: all 0.18s ease;
}
button.confirm:hover, .btn.confirm-btn:hover {
    background: #1757c7;
    box-shadow: 0 6px 20px rgba(24, 119, 255, 0.18);
    transform: translateY(-1px);
}
button.cancel, .btn.cancel-btn {
    background: #fff;
    color: #757575;
    border: 1.6px solid #dde1e5;
    border-radius: 10px;
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.18s ease;
    box-shadow: 0 2px 8px rgba(24,59,150,0.06);
}
button.cancel:hover, .btn.cancel-btn:hover {
    background: #fafbfd;
    color: #495057;
    border-color: #b8c8d9;
    box-shadow: 0 3px 12px rgba(24,59,150,0.09);
}

/* Carte autour du tableau */
.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 20px;
}
.card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(24,59,150,0.11);
    width: 100%;
    max-width: 540px;
    padding: 32px 24px 24px 24px;
    margin-top: 32px;
}
.card h2 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    text-align: center;
    color: #23223b;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.card hr {
    border: none;
    border-top: 1px solid #e1e7ed;
    margin: 1.2rem 0;
}

.card h1 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    text-align: center;
    color: #23223b;
    font-weight: 600;
}

.payment-details {
    margin-bottom: 1.5rem;
}

.card-info {
    padding: 1rem;
    border: 1.5px solid #e1e7ed;
    border-radius: 10px;
    background: #fafbfd;
    overflow-x: auto;
}

.payment-panel {
    background: #f0f4f8;
    color: #23223b;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 1.02rem;
    border: 1.5px solid #e1e7ed;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.8rem;
    border: 1px solid #e1e7ed;
    text-align: left;
    word-wrap: break-word;
}

th {
    background-color: #f0f4f8;
    font-weight: 600;
    color: #23223b;
}

.actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    text-align: center;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
}

.confirm-btn {
    background: #1877ff;
    color: #fff;
    box-shadow: 0 4px 16px rgba(24, 119, 255, 0.12);
}

.confirm-btn:hover {
    background: #1757c7;
    box-shadow: 0 6px 20px rgba(24, 119, 255, 0.18);
}

.cancel-btn {
    background: #e74c3c;
    color: #fff;
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.12);
}

.cancel-btn:hover {
    background: #c0392b;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.18);
}

.mobile-input {
    display: none;
    margin-top: 0.8rem;
}

select, input[type="text"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.6px solid #e1e7ed;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Radio Canada', Arial, sans-serif;
    margin-top: 0.5rem;
    background: #ffffff;
    color: #23223b;
    box-shadow: 0 2px 8px rgba(24, 59, 150, 0.06);
    transition: border-color 0.25s, box-shadow 0.25s;
}

select:focus, input[type="text"]:focus {
    border-color: #1877ff;
    background: #f6f9ff;
    outline: none;
    box-shadow: 0 4px 16px rgba(24, 119, 255, 0.15), 0 0 0 3px rgba(24, 119, 255, 0.08);
}

select:hover, input[type="text"]:hover {
    border-color: #b8c8d9;
    background: #fafbfd;
    box-shadow: 0 3px 12px rgba(24, 59, 150, 0.09);
}

.info-message {
    color: #e74c3c;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

@media (max-width: 600px) {
    .card {
        padding: 24px 20px;
        border-radius: 12px;
    }
    .card h2 {
        font-size: 1.3rem;
    }
    .btn {
        font-size: 0.95rem;
        padding: 0.9rem 1.2rem;
    }
    .actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    th, td {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .card {
        padding: 20px 16px;
        border-radius: 12px;
        margin-top: 10px;
    }
    
    .card h2 {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    th, td {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}
