:root {
    /* Colors */
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: rgba(25, 25, 25, 0.6);
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;

    /* Primary Red Accent */
    --accent-red: #e60000;
    --accent-red-hover: #ff1a1a;
    --accent-red-glow: rgba(230, 0, 0, 0.4);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Glassmorphism */
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --glass-blur: blur(12px);

    /* Layout */
    --container-max: 1200px;
    --section-pad: 5rem 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Base Components */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent-red);
    color: #fff;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 0 15px var(--accent-red-glow);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-red-hover);
    box-shadow: 0 0 25px var(--accent-red-glow);
    transform: translateY(-2px);
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.8rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Typography Enhancements */
.text-red {
    color: var(--accent-red);
    text-shadow: 0 0 10px rgba(230, 0, 0, 0.3);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-top: 1rem;
}

.text-link:hover {
    gap: 0.8rem;
}

/* Spacing Utilities */
.pt-10 {
    padding-top: var(--section-pad);
}

.pb-10 {
    padding-bottom: var(--section-pad);
}

.mt-1 {
    margin-top: 1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.9), transparent);
    z-index: 100;
    backdrop-filter: blur(5px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo-icon {
    color: var(--accent-red);
    font-size: 1.8rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--accent-red);
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    background-color: var(--bg-card);
    min-width: 160px;
    box-shadow: var(--glass-shadow);
    z-index: 1000;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    overflow: hidden;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: background 0.3s;
}

.nav-dropdown-content a i {
    width: 20px;
}

.nav-dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-red);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1549719386-74dfcbf7dbed?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.8) 50%, rgba(230, 0, 0, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
}

/* Custom Layout Utilites */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-2 {
    margin-top: 2rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #fff;
}

/* Base Sections */
.bio-section {
    position: relative;
    background-color: var(--bg-dark);
    /* Alternate background for contrast */
}

.bio-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.bio-text {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.8;
}

.bio-text p {
    margin-bottom: 1rem;
}

.bio-text strong {
    color: var(--accent-red);
    font-size: 1.2rem;
}

.bio-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 1rem;
}

.bio-img {
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.bio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bio-img:hover img {
    transform: scale(1.05);
}

.img-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    /* Tall image on the left */
}

.img-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.img-3 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

@media (max-width: 992px) {
    .bio-layout {
        grid-template-columns: 1fr;
    }

    .bio-gallery {
        grid-template-rows: repeat(2, 150px);
    }
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 5vh;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow: hidden;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
}

.lightbox-close:hover {
    color: var(--accent-red);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.about-section {
    position: relative;
    background-color: var(--bg-darker);
}

.gyms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: -6rem;
    /* Overlap hero */
    position: relative;
    z-index: 10;
}

.gym-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-bottom: 2px solid var(--accent-red);
}

.gym-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gym-card:hover .gym-image img {
    transform: scale(1.05);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}


.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(230, 0, 0, 0.5);
}

.icon-wrapper {
    background: linear-gradient(135deg, var(--accent-red), #990000);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    box-shadow: 0 5px 15px var(--accent-red-glow);
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.glass-card p {
    color: var(--text-muted);
}

.post-actions {
    display: flex;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.action-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
}

.action-btn:hover {
    color: var(--accent-red);
}

/* Boutons de Présence */
.btn-presence {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.btn-presence:hover {
    background: rgba(255, 255, 255, 0.1);
}

.active-present {
    background: rgba(46, 204, 113, 0.2);
    border-color: #2ecc71;
    color: #2ecc71;
}

.active-absent {
    background: rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-actions .nav-link {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-large,
    .btn-glass {
        width: 100%;
        justify-content: center;
    }

    .about-grid {
        margin-top: 2rem;
    }
}

/* Animations (continued) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}