/* ============================================
   BORDEAUX TELECOM — Styles Custom
   ============================================ */

/* ---------- Boutons ---------- */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background-color: #C4A265;
    color: #2D1015;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 0.125rem;
    transition: all 0.3s ease;
    border: 1px solid #C4A265;
    cursor: pointer;
    text-decoration: none;
}
.btn-gold:hover {
    background-color: #D4B275;
    border-color: #D4B275;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 162, 101, 0.3);
}

.btn-bordeaux {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background-color: #6B2D3A;
    color: #F8F6F3;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 0.125rem;
    transition: all 0.3s ease;
    border: 1px solid #6B2D3A;
    cursor: pointer;
    text-decoration: none;
}
.btn-bordeaux:hover {
    background-color: #4A1E28;
    border-color: #4A1E28;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 45, 58, 0.3);
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background-color: transparent;
    color: #F8F6F3;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 0.125rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(248, 246, 243, 0.4);
    cursor: pointer;
    text-decoration: none;
}
.btn-outline-white:hover {
    background-color: rgba(248, 246, 243, 0.1);
    border-color: rgba(248, 246, 243, 0.8);
}

.btn-outline-bordeaux {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background-color: transparent;
    color: #6B2D3A;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 0.125rem;
    transition: all 0.3s ease;
    border: 1px solid #6B2D3A;
    cursor: pointer;
    text-decoration: none;
}
.btn-outline-bordeaux:hover {
    background-color: #6B2D3A;
    color: #F8F6F3;
}

/* ---------- Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay variants */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ---------- Formulaires ---------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E5E2DE;
    border-radius: 0.25rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    color: #2D2D2D;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #6B2D3A;
    box-shadow: 0 0 0 3px rgba(107, 45, 58, 0.1);
}
input::placeholder,
textarea::placeholder {
    color: #999;
}

label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666;
    margin-bottom: 0.375rem;
}

/* ---------- Tables ---------- */
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666;
    border-bottom: 1px solid #E5E2DE;
    background-color: #F5F3F0;
}
.data-table td {
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    color: #2D2D2D;
    border-bottom: 1px solid #E5E2DE;
}
.data-table tbody tr:hover {
    background-color: #F8F6F3;
}

/* ---------- Cards ---------- */
.card {
    background-color: #fff;
    border: 1px solid #E5E2DE;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: box-shadow 0.2s ease;
}
.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* ---------- Admin Layout ---------- */
.admin-sidebar {
    background-color: #2D1015;
    min-height: 100vh;
    width: 260px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 40;
}
.admin-main {
    margin-left: 260px;
    min-height: 100vh;
    background-color: #F8F6F3;
}

@media (max-width: 1023px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
}

/* ---------- KPI Cards ---------- */
.kpi-card {
    background-color: #fff;
    border: 1px solid #E5E2DE;
    border-radius: 0.5rem;
    padding: 1.25rem;
    transition: box-shadow 0.2s ease;
}
.kpi-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.kpi-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: #6B2D3A;
}
.kpi-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666;
    margin-top: 0.25rem;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    font-size: 0.8125rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}
.pagination a {
    color: #2D2D2D;
    text-decoration: none;
}
.pagination a:hover {
    background-color: #F5F3F0;
}
.pagination .active {
    background-color: #6B2D3A;
    color: #fff;
}
.pagination .disabled {
    color: #999;
    pointer-events: none;
}

/* ---------- Navbar scroll state ---------- */
#main-nav.scrolled {
    background-color: rgba(45, 16, 21, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F3F0;
}
::-webkit-scrollbar-thumb {
    background: #C4A265;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4B275;
}

/* ---------- Print styles ---------- */
@media print {
    .no-print {
        display: none !important;
    }
    body {
        background: white !important;
    }
}
