/*========================================
1. IMPORT POLICE (TOUJOURS PREMIER)
======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

/* ========================================
2. VARIABLES CSS
======================================== */
:root {
    --gold: #D4AF37;
    --gold-dark: #B8941F;
    --vinyl-red: #8B0000;
    --vinyl-purple: #4A0E4E;
    --color-primary: #D4AF37;
    --color-secondary: #FFD700;
    --color-text: #FFFFFF;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --color-bg: #000000;
}

/* ========================================
3. RESET GLOBAL
======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    font-family: var(--font-primary);
    background: var(--color-bg);
    color: var(--color-text);
    width: 100%;
}

/* ========================================
4. MISE EN PAGE
======================================== */
.site-main-content {
    padding: 2rem 2rem 2rem 2rem;
    position: relative !important;
}

.site-wrapper {
    margin-top: 90px !important;
    margin-bottom: 120px !important;
}

/* ========================================
5. HEADER FIXE
======================================== */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 90px !important;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000 !important;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    border-image: linear-gradient(to right, transparent 0%, #D4AF37 20%, #D4AF37 80%, transparent 100%) 1;
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.site-logo img {
    height: 70px;
    width: auto;
}

/* ========================================
6. FOOTER FIXE
======================================== */
.site-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, #000 100%);
    border-top: 2px solid rgba(212, 175, 55, 0.2);
    border-image: linear-gradient(to right, transparent 0%, #D4AF37 20%, #D4AF37 80%, transparent 100%) 1;
    padding: 20px !important;
    z-index: 999 !important;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-copyright-section {
    flex: 1;
    text-align: center;
}

.footer-copyright {
    color: #FFFFFF !important;
    font-size: 0.85rem;
}

.footer-legal-line {
    display: flex;
    gap: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.footer-legal-line a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-line a:hover {
    color: var(--gold);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
}

/* ========================================
7. NAVIGATION DESKTOP
======================================== */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.main-navigation a:hover {
    color: var(--color-secondary);
}

.nav-icon {
    width: 20px;
    height: 20px;
}

/* ========================================
8. HAMBURGER MENU
======================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
9. HERO SECTION
======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(to bottom right, #000000, rgba(74, 14, 78, 0.3), #000000);
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, #000000, rgba(74, 14, 78, 0.3), #000000);
}

.bg-blur {
    position: absolute;
    border-radius: 10%;
    filter: blur(50px);
}

.vinyl-background {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.06;
    pointer-events: none;
}

.vinyl-icon {
    width: 800px;
    height: 800px;
    color: var(--gold);
    animation: vinyl-spin 20s linear infinite;
}

@keyframes vinyl-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.hero-title {
    font-size: clamp(3.75rem, 10vw, 6rem);
    font-weight: 700;
    color: #D4AF37 !important;
    -webkit-text-fill-color: #D4AF37 !important;
    background: none !important;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
    line-height: 1;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 300;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    background: none !important;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    max-width: 672px;
    margin: 0 auto 3rem;
    line-height: 1.625;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gold);
    color: #000000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-decoration: none;
    animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 32px;
    height: 52px;
    border: 2.5px solid var(--gold);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.scroll-wheel {
    width: 5px;
    height: 14px;
    background: var(--gold);
    border-radius: 4px;
    animation: scroll-wheel-travel 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scroll-wheel-travel {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
10. STORY SECTION
======================================== */
.story-section {
    padding: 8rem 1rem;
    background: linear-gradient(to bottom, #000000, rgba(74, 14, 78, 0.2));
}

.story-container {
    max-width: 896px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.story-content p {
    font-size: 1.125rem;
    line-height: 1.625;
    color: rgba(255, 255, 255, 0.7);
}

.quote-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 3rem;
}

.quote-text {
    color: #FFFFFF !important;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    font-style: italic;
}

/* ========================================
11. STATS SECTION
======================================== */
.stats-section {
    padding: 6rem 1rem 2rem;
    background: linear-gradient(to bottom, rgba(74, 14, 78, 0.2), #000000);
}

.stats-container {
    max-width: 1280px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-4px);
}

.stat-icon {
    color: var(--gold);
    margin: 0 auto 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
12. MEMBRES PAGE
======================================== */
.membres-page {
    min-height: auto;
    padding: 6rem 1rem 2rem;
    background: #000000;
}

.membres-container {
    max-width: 1400px;
    margin: 0 auto;
}

.membres-header {
    text-align: center;
    margin-bottom: 4rem;
}

.membres-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.membres-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 672px;
    margin: 0 auto;
    line-height: 1.6;
}

.membres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.member-card {
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
}

.member-card:hover {
    border-color: rgba(244, 165, 35, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(244, 165, 35, 0.2);
}

.member-photo {
    position: relative;
    height: 256px;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.member-card:hover .member-photo img {
    transform: scale(1.1);
}

/* ========================================
13. CONTACT FORM
======================================== */
.contact-page {
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-form-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 24px;
    padding: 50px 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #000;
    font-weight: 700;
    padding: 16px 50px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
}

/* ========================================
14. SOCIAL LINKS
======================================== */
.social-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-link {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.social-link:hover {
    color: var(--color-secondary);
}

.social-link i,
.social-link svg {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* ========================================
15. RESPONSIVE MOBILE (768px)
======================================== */
@media (max-width: 768px) {
    .site-wrapper {
        margin-top: 90px !important;
        margin-bottom: 100px !important;
    }

    .site-main-content {
        padding: 2rem 1rem 3rem 1rem;
    }

    .header-container {
        padding: 0 15px;
    }

    .main-navigation {
        display: none !important;
        position: fixed !important;
        top: 90px !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(0, 0, 0, 0.98) !important;
        backdrop-filter: blur(10px);
        flex-direction: column !important;
        padding: 20px 0 !important;
        border-bottom: 1px solid rgba(212, 175, 55, 0.3);
        z-index: 999 !important;
        width: 100% !important;
    }

    .main-navigation.active {
        display: flex !important;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-navigation li {
        width: 100%;
    }

    .main-navigation a {
        display: flex;
        padding: 15px 20px;
        width: 100%;
        font-size: 0.95rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    h1, .page h1, h1.section-title {
        margin-top: 0 !important;
        padding: 0 0.5rem !important;
        font-size: 2rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .footer-container {
        flex-direction: column;
        gap: 15px;
    }

    .footer-legal-line {
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-form-section {
        padding: 35px 25px;
    }

    .membres-page {
        padding: 4rem 1rem 2rem;
    }

    .membres-grid {
        grid-template-columns: 1fr;
    }

    .membres-title {
        font-size: 2.5rem;
    }
}

/* ========================================
16. RESPONSIVE MOBILE PETIT (480px)
======================================== */
@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
    }

    .site-logo img {
        height: 60px;
    }

    .hamburger-line {
        width: 24px;
        height: 3px;
    }

    .footer-container {
        padding: 0 10px;
    }

    .footer-legal-line {
        font-size: 0.75rem;
        gap: 10px;
    }
}

/* ========================================
17. RESPONSIVE TABLETTE (1024px)
======================================== */
@media (max-width: 1024px) {
    .main-navigation {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .main-navigation.active,
    .main-navigation.is-open {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        position: absolute;
        top: 80px;
        right: 20px;
        left: auto !important;
        width: 280px;
        background: #000;
        padding: 20px;
        z-index: 9999;
        border: 0.5px solid #D4AF37;
        gap: 15px;
    }

    .main-navigation ul.menu {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .main-navigation ul.menu li {
        width: 100%;
        text-align: left;
        display: block !important;
    }
}

/* ========================================
18. MASQUAGE ÉLÉMENTS INUTILES
======================================== */

/* Masquer Turnstile et Cloudflare */
.wpcf7-turnstile,
div[data-sitekey],
iframe[src*="turnstile"],
iframe[src*="cloudflare"] {
    display: none !important;
}

/* Masquer SEULEMENT les liens wp-admin */
.main-navigation a[href*="wp-login.php"],
.main-navigation a[href*="/wp-admin/"] {
    display: none !important;
}

/* Afficher les liens Ultimate Member et autres */
.main-navigation a[href*="espace-membre"],
.main-navigation a[href*="/user/"],
.main-navigation a[href*="/profile/"],
.main-navigation a[href*="um_"] {
    display: flex !important;
}

.main-navigation ul li a.force-show-login {
    display: flex !important;
}

/* ========================================
19. THE EVENTS CALENDAR - DARK THEME
======================================== */
.tribe-events-c-top-bar__nav-list a,
.tribe-events-c-top-bar__nav-list li {
    color: #ffffff !important;
}

.tribe-events-c-top-bar__datepicker-button {
    background-color: #000000 !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    padding: 2px 8px !important;
}

.tribe-events-c-top-bar__datepicker-time {
    font-size: 0.85rem !important;
    font-weight: normal !important;
}

.tribe-events-c-top-bar__datepicker-button-icon-svg,
.tribe-common-c-svgicon__svg-fill {
    fill: #ffffff !important;
    stroke: #ffffff !important;
    width: 10px !important;
    margin-left: 5px !important;
}

.tribe-events-c-messages,
.tribe-common-c-loader__dot,
.tribe-events-header__messages div {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.tribe-events-header__messages * {
    color: #ffffff !important;
}

svg.tribe-common-c-svgicon--messages-not-found path:nth-child(1) {
    fill: #ff0000 !important;
}

svg.tribe-common-c-svgicon--messages-not-found path:nth-child(2),
svg.tribe-common-c-svgicon--messages-not-found path:nth-child(3),
svg.tribe-common-c-svgicon--messages-not-found path:nth-child(4) {
    stroke: #ffffff !important;
}

.tribe-events-c-messages__message {
    color: #ffffff !important;
}

/* ========================================
20. PLUGIN STYLES OVERRIDES
======================================== */
.menu-item .menu-icon,
.menu-item .dashicons,
.menu-item i,
.menu-item svg {
    color: #F4A523 !important;
    fill: #F4A523 !important;
}

.menu-item:hover .menu-icon,
.menu-item:hover .dashicons,
.menu-item:hover i,
.menu-item:hover svg {
    color: var(--color-secondary) !important;
    fill: var(--color-secondary) !important;
}