/**
 * Styles custom du site Wantz (hors widgets club)
 * Migré depuis Astra Customizer / style2.css
 */

/* ============================================
   SOMMAIRE
   1. Global & layout
   2. Liens de navigation (couleurs)
   3. Header & navigation Astra
   4. Page Staff
   5. Carrousel d'images
   6. Galerie joueurs
   7. Résultats & calendrier (conteneur)
   8. Articles : bannière & titre
   9. Page 404
  10. Mega menu — groupements d'équipes
   ============================================ */


/* ============================================
   1. GLOBAL & LAYOUT
   ============================================ */

html,
body {
    width: 100vw !important;
}

.text-balance {
    text-wrap: balance;
}

.ast-container {
    max-width: 100%;
    padding: 0;
}

.ast-builder-html-element p:first-child {
    margin-bottom: 10px;
}


/* ============================================
   2. LIENS DE NAVIGATION (COULEURS)
   Liens blancs par défaut ; doré (#d4af37) au hover,
   footer et accents homepage (.home-3-axes b).
   ============================================ */

nav a {
    color: white !important;
}

.current-menu-item a,
nav a:hover,
footer a:hover,
.home-3-axes b {
    color: #d4af37 !important;
}


/* ============================================
   3. HEADER & NAVIGATION ASTRA
   ============================================ */

/* --- Masthead fixe --- */

header#masthead {
    background: rgba(6, 6, 27, 0.75);
    position: fixed !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid black;
    width: 100vw;
}

.ast-primary-header-bar {
    background: transparent;
}

.ast-primary-header-bar .site-primary-header-wrap {
    min-height: 60px;
}

/* --- Logo --- */

.site-branding.ast-site-identity {
    width: fit-content;
    padding: 0;
    position: absolute;
    top: 8px;
    filter: drop-shadow(3px 0 0 rgba(0, 0, 0, 0.15))
        drop-shadow(-3px 0 0 rgba(0, 0, 0, 0.15))
        drop-shadow(0 3px 0 rgba(0, 0, 0, 0.15))
        drop-shadow(0 -3px 0 rgba(0, 0, 0, 0.15));
}

header .custom-logo-link img {
    max-width: 70px;
    width: 70px;
}

header .custom-logo-link img:hover {
    transform: scale(1.1);
}

/* --- Navigation desktop --- */

nav#primary-site-navigation-desktop ul li a {
    padding-top: 14px;
    padding-bottom: 14px;
}

nav#primary-site-navigation-desktop ul.sub-menu {
    background: transparent;
}

nav#primary-site-navigation-desktop ul.sub-menu li a {
    color: white !important;
    background: rgba(6, 6, 27, 0.75) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Item courant : blanc au niveau 1, doré au hover et dans les sous-menus */
.current-menu-item a {
    color: white !important;
}

nav#primary-site-navigation-desktop ul.sub-menu li:hover a,
.current-menu-item > a {
    color: #d4af37 !important;
}

/* --- Réseaux sociaux header --- */

.ast-header-social-1-wrap .ast-builder-social-element {
    margin-right: 4px;
    padding: 2px;
}

.ast-header-social-1-wrap .ast-builder-social-element svg {
    width: 20px;
    height: 20px;
}

/* --- Navigation mobile --- */

#ast-mobile-header.ast-mobile-header-wrap .ast-mobile-header-content {
    background-color: rgba(6, 6, 27, 0.75) !important;
}

#ast-hf-mobile-menu {
    background: transparent;
}

/* --- Responsive header --- */

@media (max-width: 1280px) {
    .site .site-content #primary {
        margin-top: 0;
    }

    .site-branding.ast-site-identity {
        top: 5px;
    }

    .ast-hf-mobile-menu {
        background: transparent;
    }

    .ast-mobile-header-content .ast-builder-layout-element.ast-flex.site-header-focus-item {
        padding: 20px 10px;
        justify-content: end;
    }

    .ast-header-social-1-wrap .ast-builder-social-element svg {
        width: 24px;
        height: 24px;
    }

    .ast-mobile-header-content *,
    .ast-header-break-point .main-header-menu,
    .ast-mobile-header-wrap .ast-mobile-header-content,
    .ast-desktop-header-content {
        background-color: transparent !important;
    }
}

@media (max-width: 544px) {
    header .custom-logo-link img,
    .ast-header-break-point .site-branding img,
    .ast-header-break-point .custom-logo-link img {
        max-width: 65px;
        width: 65px;
    }
}


/* ============================================
   4. PAGE STAFF
   ============================================ */

.staff-subtitle {
    text-decoration: underline;
    text-decoration-color: #d4af37;
}

.staff-member {
    height: 100%;
}

.staff-member img {
    object-fit: cover;
    height: 100%;
}

.staff-member figure {
    aspect-ratio: 1 / 1;
}

.staff-member p {
    text-align: left;
    margin-top: 8px !important;
}


/* ============================================
   5. CARROUSEL D'IMAGES
   ============================================ */

.image-carousel img {
    max-width: 50vw;
    max-height: 200px;
    background: white;
    padding: 4px;
    border-radius: 3px;
}

.image-carousel .swiper-slide {
    margin-top: auto;
    margin-bottom: auto;
}

@media screen and (min-width: 768px) {
    .image-carousel img {
        max-width: 30vw;
        max-height: 150px;
    }
}

@media screen and (min-width: 1024px) {
    .image-carousel img {
        max-width: 12vw;
        max-height: 100px;
    }
}


/* ============================================
   6. GALERIE JOUEURS
   ============================================ */

.players-gallery .elementor-image-gallery .gallery .gallery-item:hover {
    transform: scale(1.025);
    transition: all 0.2s ease-out;
}

@media screen and (max-width: 1440px) {
    .players-gallery .elementor-image-gallery .gallery .gallery-item {
        max-width: 33.3% !important;
    }
}

@media screen and (max-width: 1024px) {
    .players-gallery .elementor-image-gallery .gallery .gallery-item {
        max-width: 50% !important;
    }
}

@media screen and (max-width: 768px) {
    .players-gallery .elementor-image-gallery .gallery .gallery-item {
        max-width: 100% !important;
        padding: 10px 0;
    }
}


/* ============================================
   7. RÉSULTATS & CALENDRIER (conteneur)
   Styles des widgets dans club-widgets.css
   ============================================ */

@media screen and (max-width: 768px) {
    .results-content {
        width: inherit;
    }
}

@media screen and (min-width: 768px) {
    .results-content {
        min-width: 660px;
        width: fit-content;
    }
}


/* ============================================
   8. ARTICLES : BANNIÈRE & TITRE
   ============================================ */

.ast-single-entry-banner {
    background-image: url("/wp-content/uploads/2026/04/pexels-photo-36843674-36843674-scaled-e1776793591187.jpg");
    background-position: center left;
    background-repeat: no-repeat;
    background-size: cover;
}

header h1.entry-title {
    position: absolute;
    top: 350px;
    left: 180px;
    z-index: 10;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    header h1.entry-title {
        top: 220px;
        left: 20px;
    }
}

/* ============================================
   9. PAGE 404
   ============================================ */

.club-404 {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
}

.club-404__inner {
    max-width: 520px;
    width: 100%;
    text-align: center;
    background-color: #0F172A;
    border: 1px solid #4c4a4a;
    border-radius: 6px;
    padding: 48px 32px;
}

.club-404__code {
    margin: 0 0 8px;
    font-size: clamp(4rem, 12vw, 6rem);
    font-weight: 700;
    line-height: 1;
    color: #d4af37;
    letter-spacing: -0.02em;
}

.club-404__title {
    margin: 0 0 16px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.club-404__message {
    margin: 0 0 28px;
    font-size: 1rem;
    line-height: 1.6;
    color: #d1d5db;
}

.club-404__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 45px;
    margin-bottom: 24px;
    padding: 15px 35px;
    background-color: #d4af37;
    border: none;
    border-radius: 6px;
    color: #ffffff !important;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 15px;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

.club-404__cta:hover,
.club-404__cta:focus {
    background-color: #be9d31;
    color: #ffffff !important;
}

.club-404__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    padding-top: 20px;
    border-top: 1px solid #4c4a4a;
}

.club-404__links a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.club-404__links a:hover {
    color: #d4af37 !important;
}

@media (max-width: 768px) {
    .club-404 {
        padding-top: 80px;
    }

    .club-404__inner {
        padding: 32px 20px;
    }
}


/* ============================================
   10. MEGA MENU — GROUPEMENTS D'ÉQUIPES
   ============================================ */

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-column-standard > a.mega-menu-link, #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link {
    cursor: default;
}