/* ========== BASE STYLES ========== */
body {
    font-size: 16px;
}

/* ========== LOGO ========== */
.logo-navbar {
    height: 40px;
}

@media (max-width: 768px) {
    .logo-navbar {
        height: 30px;
    }
}

.footer-logo {
    height: 30px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .footer-logo {
        height: 25px;
    }
}

/* ========== FOOTER ========== */
.footer-content {
    font-size: 0.9rem;
}

.footer-separator {
    display: inline;
}

@media (max-width: 768px) {
    .footer-content {
        font-size: 0.8rem;
        gap: 0.5rem !important;
    }
    
    .footer-separator {
        display: none;
    }
}

/* ========== TABLES ========== */
@media (max-width: 768px) {
    .table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
}

table {
    table-layout: auto;
}

.table-align-middle td,
.table-align-middle th {
    vertical-align: middle;
}

.table-sm tr td,
.table-sm tr th {
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
}

.table-responsive {
    margin-bottom: 1rem;
}

.dataTables_wrapper {
    margin-bottom: 1rem;
}

/* ========== BUTTONS ========== */
.btn {
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-discord {
    background-color: #5865F2;
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-discord:hover {
    background-color: #4752C4;
    color: white;
}

/* ========== COUNTDOWN STYLES ========== */
.countdown {
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 100px;
    padding: 0.3rem 0.5rem;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    color: #212529;
    display: inline-block;
    text-align: center;
    font-family: monospace;
}

.countdown.running {
    background-color: #d1ecf1;
    color: #0d6efd;
    border: 1px solid #b6d4e0;
    box-shadow: 0 0 0 1px #b6d4e0;
    animation: pulse 2s infinite;
}

.countdown:not(.running) {
    color: #dc3545;
}

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

/* ========== CARDS ========== */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ========== BADGES ========== */
.badge {
    font-weight: 500;
}

/* ========== AVATARS ========== */
.avatar-container {
    position: relative;
}

.avatar-equipe {
    transition: transform 0.2s;
}

.avatar-equipe:hover {
    transform: scale(1.1);
    z-index: 10;
}

/* ========== FORMS ========== */
.form-control {
    border-radius: 0.25rem;
}

/* ========== ALERTS ========== */
.alert {
    border-radius: 0.25rem;
}

/* ========== DROPDOWN MENUS ========== */
.dropdown-menu {
    border-radius: 0.25rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.dropdown-item i {
    margin-right: 8px;
}

/* Ouvrir dropdown au survol (desktop uniquement) */
@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* ========== TOOLTIPS ========== */
.tooltip-inner {
    max-width: 300px;
    text-align: left;
}

/* ========== DATE STYLES ========== */
.dates-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-future {
    color: #28a745;
    font-weight: bold;
}

.text-past {
    color: #6c757d;
    font-style: italic;
}
