/* Custom Styles pour FitZone - Thème Fitness Énergique */

:root {
    --primary-color: #dc3545; /* Danger/Rouge */
    --secondary-color: #212529; /* Dark/Noir */
    --accent-color: #ffc107; /* Warning/Orange */
    --success-color: #28a745;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(220, 53, 69, 0.3), rgba(0, 0, 0, 0.7)),
                url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1920') center/cover;
    display: flex;
    align-items: center;
    padding-top: 56px;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar-scrolled {
    background-color: rgba(33, 37, 41, 0.98) !important;
    box-shadow: 0 2px 20px rgba(220, 53, 69, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(220, 53, 69, 0.3);
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

/* Alert Code Promo */
.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(255, 193, 7, 0.3);
    }
    50% {
        box-shadow: 0 5px 30px rgba(255, 193, 7, 0.6);
    }
}

code {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Table */
.table-dark {
    color: #fff;
}

.table-dark th {
    border-top: 3px solid var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
}

.table-dark tbody tr:hover {
    background-color: rgba(220, 53, 69, 0.1);
    transform: scale(1.02);
    transition: all 0.2s ease;
}

.badge {
    padding: 0.5em 0.8em;
    font-weight: 600;
}

/* Pricing Cards */
.card-header {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.6s ease-out;
}

/* Section Spacing */
section {
    scroll-margin-top: 70px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    code {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .display-3 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    code {
        font-size: 0.7rem !important;
        word-break: break-all;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c82333, #16181b);
}

/* Glow effect on hover for icons */
.bi-lightning-charge-fill,
.bi-fire,
.bi-heart-fill,
.bi-heart-pulse-fill {
    transition: all 0.3s ease;
}

.card:hover .bi-fire {
    filter: drop-shadow(0 0 10px rgba(220, 53, 69, 0.7));
    transform: scale(1.1);
}

.card:hover .bi-heart-fill {
    filter: drop-shadow(0 0 10px rgba(220, 53, 69, 0.7));
    transform: scale(1.1);
}

.card:hover .bi-people-fill {
    filter: drop-shadow(0 0 10px rgba(40, 167, 69, 0.7));
    transform: scale(1.1);
}
