/* ============================================================
   Loto Arterris — Design identique au site Gestion des Planifications
   Bootstrap 5.3.2 — Segoe UI — palette bleu/blanc Bootstrap native
   ============================================================ */

/* Base */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ---- Cartes avec effet hover ---- */
.card-hover {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* ---- Icônes circulaires (accueil) ---- */
.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* ---- Navbar ---- */
.navbar-nav .nav-link.active {
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* ---- Tables ---- */
.table th {
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.table td {
    vertical-align: middle;
}

/* ---- Formulaires ---- */
.form-label {
    font-weight: 500;
    color: #495057;
}

/* ---- Alertes ---- */
.alert {
    border-radius: 8px;
}

/* ---- Modals ---- */
.modal-header {
    border-radius: 0;
}

/* ---- Cards header ---- */
.card-header {
    font-weight: 600;
}

/* ---- Boutons groupés ---- */
.btn-group .btn { border-radius: 0; }
.btn-group .btn:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.btn-group .btn:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* ---- List group admin ---- */
.list-group-item { border-left: 0; border-right: 0; }
.list-group-item:first-child { border-top: 0; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .container { padding-left: 10px; padding-right: 10px; }
    .table-responsive { font-size: 0.85rem; }
    .btn-group-sm .btn { padding: 0.2rem 0.4rem; }
}

/* ---- Animations ---- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* ============================================================
   LOTO — Spécifique
   ============================================================ */

/* Page de connexion */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 24px 16px;
}
.login-card {
    width: 100%;
    max-width: 420px;
}
.login-logo {
    text-align: center;
    margin-bottom: 8px;
}

/* Stat cards */
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 2px;
}
.stat-value {
    font-size: 1.55rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.1;
}

/* Numéros de loterie */
.numbers-display {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #0d6efd;
    padding: 10px 0 14px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 14px;
}

/* Barre d'échéance abonnement */
.expiry-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}
.expiry-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.4s ease;
}
.expiry-fill.ok      { background: #198754; }
.expiry-fill.warning { background: #ffc107; }
.expiry-fill.expired { background: #dc3545; }

/* Bannière de renouvellement (dashboard membre) */
.payment-banner {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-radius: 8px;
    padding: 20px 24px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.25);
}
.banner-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3px;
}
.banner-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}
.banner-url {
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.55);
    word-break: break-all;
}
.btn-banner {
    background: #ffc107;
    color: #212529;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    transition: background 0.18s;
}
.btn-banner:hover {
    background: #ffca2c;
    color: #212529;
}
@media (max-width: 600px) {
    .payment-banner { flex-direction: column; align-items: flex-start; padding: 16px; }
    .btn-banner { width: 100%; text-align: center; }
}

/* Chart.js container */
.chart-container {
    position: relative;
    height: 280px;
}

/* Color preview (dots) */
.color-preview {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #dee2e6;
    vertical-align: middle;
}
