﻿:root {
    /* Colors */
    --bg-dark: #121212;
    --bg-darker: #0d0d0d;
    --bg-card: rgba(40, 40, 40, 0.4);
    --text-main: #ffffff;
    --text-muted: #b0b0b0;

    /* Primary Red Accent */
    --accent-red: #ff3333;
    --accent-red-hover: #ff5555;
    --accent-red-glow: rgba(255, 51, 51, 0.3);

    /* Blue Accent (Welcoming) */
    --accent-blue: #0066ee;
    --accent-blue-glow: rgba(0, 102, 238, 0.3);

    /* 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: 1400px;
    --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;
    width: 100vw;
}

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;
    justify-content: center;
    /* Centrer le contenu */
    max-width: 100%;
    /* EmpÃªcher le dÃ©bordement */
}

.btn-primary.pill {
    border-radius: 30px;
}

.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);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.95);
    padding: 0.8rem 0;
    backdrop-filter: blur(10px);
}

.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;
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-red);
}

/* Hamburger Menu button */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 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(13, 13, 13, 0.85) 0%, rgba(13, 13, 13, 0.7) 50%, rgba(0, 50, 150, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    width: 100%;
}

.hero h1 {
    font-size: clamp(4rem, 11vw, 9rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    color: #ffffff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-weight: 900;
}

.hero h1 span {
    background: transparent;
    padding: 0;
    display: inline-block;
}

.hero h1 span::first-letter {
    color: var(--accent-red);
}

.hero h1 span b {
    color: var(--accent-red);
    font-weight: 950;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: white;
    background: transparent;
    padding: 0 15px;
    margin-bottom: 3.5rem;
    max-width: 100%;
    text-align: center;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.9), 0 2px 5px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.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 / 3;
    grid-row: 2 / 3;
}

.img-2 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.img-3 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

@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(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.about-grid-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.junior-senior-section {
    text-align: center;
    padding: 5rem 0;
}

.junior-senior-box {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 40px;
    max-width: 1000px;
    margin: 20px auto;
    text-align: left;
}

.junior-senior-box p {
    color: #888;
    line-height: 1.6;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


.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 */
.auth-tabs {
    padding: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Responsive Header Improvements - Retour Ã  la version sans burger */
@media (max-width: 992px) {
    .nav-toggle {
        display: none !important;
    }

    .nav-content {
        flex-direction: column !important;
        gap: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .nav-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.4rem !important;
        width: 100% !important;
        position: static !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    .navbar {
        height: auto !important;
        padding: 0.5rem 0 !important;
        background: #000 !important;
    }

    .nav-actions .nav-link {
        font-size: 0.85rem !important;
        margin: 0 !important;
        padding: 4px 8px !important;
        display: inline-flex !important;
    }
}

@media (max-width: 768px) {
    .logo span {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-large,
    .btn-primary,
    .btn-glass {
        width: 100%;
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }

    .about-grid-bottom {
        grid-template-columns: 1fr;
    }

    .gyms-grid {
        grid-template-columns: 1fr;
    }

    /* Auth card improvements for mobile */
    .auth-section .container {
        padding: 0 1rem;
    }

    .auth-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .full-width {
        grid-column: span 1 !important;
    }

    .radio-group {
        flex-direction: column;
        gap: 1rem !important;
    }
}

/* Animations (continued) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Logo Styles */
.nav-logo-img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    border: 2px solid #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    overflow: hidden;
    flex-shrink: 0;
    background: #000;
    position: relative;
}

.nav-logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Shimmer/Shine Effect */
.nav-logo-img::after,
.hero-logo-img::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
}

.hero-logo-container {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-logo-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 6px solid #ffd700;
    outline: 3px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.6);
    overflow: hidden;
    background: #000;
    position: relative;
    animation: gold-pulse 3s infinite ease-in-out;
}

.hero-logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes shine {
    0% {
        left: -150%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

@keyframes gold-pulse {
    0% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 45px rgba(255, 215, 0, 0.6);
        transform: scale(1.03);
    }

    100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }
}

/* Coin Flip Animation */
.logo-spin {
    animation: coin-flip 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes coin-flip {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

@media (max-width: 992px) { div[style*='height: 100px'], div[style*='height: 180px'] { height: 230px !important; } .auth-tabs { margin-top: 20px !important; } }

@media (max-width: 992px) { .header-spacer { height: 230px !important; } }
