/* ==========================================================================
   USM FOOTBALL - STYLESHEET PRINCIPAL (FRONT-OFFICE)
   ========================================================================== */

/* ================= 1. VARIABLES & RESET ================= */
@font-face {
    font-family: 'Moglan';
    src: url('Assets/Moglan.ttf') format('ttf'), 
         url('Assets/Moglan.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
:root {
    --bg-dark: #050507; 
    --usm-pink: #d80056;
    --usm-pink-glow: rgba(216, 0, 86, 0.4);
    --text-light: #ffffff;
    --surface: rgba(25, 25, 30, 0.4); 
    --surface-border: rgba(255, 255, 255, 0.1);
    --card-radius: 32px; 
    --spacing-main: clamp(20px, 5vw, 60px);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
    font-family: 'Helvetica Neue', Arial, sans-serif; 
}

#agence, #services, #joueurs {
    scroll-margin-top: 50vh;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 0%, var(--usm-pink-glow) 0%, transparent 60%),
        url('https://www.transparenttextures.com/patterns/black-scales.png');
    background-attachment: fixed; 
    background-repeat: repeat; 
    color: var(--text-light); 
    line-height: 1.4; 
    overflow-x: hidden;
}

.pink-accent { 
    color: var(--usm-pink); 
    font-weight: bold;
}

.text-white { 
    color: #fff; 
}


/* ================= 2. TYPO GÉANTE & ANIMATIONS ================= */
.giant-bg-text {
    position: absolute; 
    font-size: clamp(6rem, 12vw, 15rem); 
    font-weight: 900;
    text-transform: uppercase; 
    color: rgba(255, 255, 255, 0.02);
    z-index: -1; 
    line-height: 0.8; 
    pointer-events: none; 
    white-space: nowrap;
}

.text-1 { top: 15vh; left: -5%; } 
.text-2 { top: 55vh; right: -5%; text-align: right; }

.reveal { 
    opacity: 0; 
    transform: translateY(40px); 
    transition: 0.8s cubic-bezier(0.25, 1, 0.5, 1); 
}

.reveal.visible { 
    opacity: 1; 
    transform: translateY(0); 
}


/* ================= 3. NAVBAR & LANGUES ================= */
.navbar {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px var(--spacing-main);
    background: rgba(5, 5, 7, 0.8); 
    backdrop-filter: blur(20px); 
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 100; 
    border-bottom: 1px solid var(--surface-border);
}

.logo-nav { 
    font-family: 'Moglan', sans-serif; 
    font-size: 1.5rem; 
    font-weight: 900; 
    letter-spacing: 2px; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.logo-nav img {
    height: 38px; 
    width: auto;
    transform: translateY(-5px); 
}
.logo-nav span { color: var(--usm-pink); }

.nav-links { 
    display: flex; 
    align-items: center; 
    gap: 30px; 
}

.nav-links a { 
    color: white; 
    text-decoration: none; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    font-weight: bold; 
    transition: 0.3s; 
}

.nav-links a:hover { 
    color: var(--usm-pink); 
}

.btn-premium { 
    background: var(--usm-pink); 
    color: white; 
    padding: 10px 24px; 
    border-radius: 30px; 
    border: none; 
    font-weight: bold; 
    cursor: pointer; 
}

.lang-switcher select {
    background: transparent; 
    color: var(--text-light); 
    border: 1px solid var(--surface-border);
    padding: 5px 10px; 
    border-radius: 20px; 
    font-weight: bold; 
    cursor: pointer; 
    appearance: none;
    text-align: center; 
    transition: 0.3s;
}

.lang-switcher select:hover { 
    border-color: var(--usm-pink); 
    color: var(--usm-pink); 
}

.lang-switcher select option { 
    background: var(--bg-dark); 
    color: white; 
}


/* ================= 4. HERO SECTION ================= */
.hero-massive {
    min-height: 80vh; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    text-align: center; 
    padding: 120px 20px 40px; 
    position: relative;
}

.massive-eagle-wrapper {
    width: clamp(300px, 60vw, 800px); 
    margin-bottom: 20px;
    will-change: transform; 
    transform: translateZ(0); 
    animation: float 6s ease-in-out infinite;
}

.massive-eagle-wrapper img { 
    width: 100%; 
    height: auto; 
    filter: drop-shadow(0 0 50px rgba(216,0,86,0.3)); 
}

.hero-massive h1 { 
    font-size: clamp(1.5rem, 4vw, 3rem); 
    text-transform: uppercase; 
    letter-spacing: 4px; 
    font-weight: 900; 
    margin-bottom: 15px;
}

@keyframes float { 
    0%, 100% { transform: translate3d(0, 0px, 0); } 
    50% { transform: translate3d(0, -20px, 0); } 
}


/* ================= 5. BENTO GRID (STATISTIQUES) ================= */
.bento-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 24px; 
    padding: var(--spacing-main); 
    max-width: 1400px; 
    margin: 0 auto; 
}

.bento-card {
    background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--card-radius); padding: 40px;
    backdrop-filter: blur(15px); 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    align-items: center;     
    text-align: center;      
    transition: 0.4s;
    min-height: 340px; 
}

.bento-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--usm-pink); 
    background: rgba(40, 30, 40, 0.6); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); 
}

.highlight-card { 
    background: linear-gradient(145deg, rgba(25,25,30,0.8), rgba(216,0,86,0.15)); 
}

.card-full { 
    grid-column: 1 / -1; 
    align-items: flex-start; 
    text-align: left; 
}

.data-label { 
    font-size: 1rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    color: #888; 
    font-weight: bold;
    height: 48px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-full .data-label {
    height: auto;
    justify-content: flex-start;
}

.data-huge {
    font-size: clamp(1.8rem, 2.8vw, 3.4rem); 
    font-weight: 900;
    line-height: 1.2; 
    white-space: nowrap; 
    letter-spacing: -1px; 
    margin: auto 0; 
    background: linear-gradient(135deg, #fff, var(--usm-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 15px; 
}

.data-desc { 
    color: #aaa; 
    font-size: 0.95rem; 
    margin: 0;
    height: 48px; 
    line-height: 24px; 
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ================= 6. SERVICES (SLIDER HORIZONTAL PC) ================= */
#services-container { 
    display: flex !important; 
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* 🪄 Sécurité anti-colonne */
    gap: 30px !important; 
    margin-top: 10px; 
    overflow-x: auto !important; /* 🪄 Force le scroll interne */
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth; 
    scrollbar-width: none; 
    padding-bottom: 20px;
    width: 100% !important;       /* 🪄 OBLIGE le slider à rester dans l'écran */
    max-width: 100vw !important;  
    box-sizing: border-box !important;
}
#services-container::-webkit-scrollbar { display: none; }

#services-container .bento-service-card {
    flex: 0 0 auto !important;    /* 🪄 Empêche l'écrasement ou l'étirement */
    width: 320px !important;      /* 🪄 Largeur stricte fixée */
    height: 320px !important;     /* 🪄 Hauteur stricte fixée (Carré parfait) */
    scroll-snap-align: start; 
    display: flex !important; 
    flex-direction: column !important; 
    justify-content: flex-end !important;
    box-shadow: inset 0 3px 0 0 var(--usm-pink), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 30px !important; 
    border-radius: 16px !important;
    text-decoration: none; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    background-color: var(--bg-dark);
    clip-path: inset(0 0 0 0 round 16px);
    -webkit-clip-path: inset(0 0 0 0 round 16px);
    box-sizing: border-box !important;
    margin: 0 !important;
}

#services-container .bento-service-card:hover {
    transform: translateY(-5px);
    box-shadow: inset 0 3px 0 0 rgba(216, 0, 86, 0.8), inset 0 0 0 1px rgba(216, 0, 86, 0.3), 0 15px 35px rgba(0,0,0,0.6);
}

#services-container .srv-card-content, 
#services-container .srv-card-arrow { position: relative; z-index: 2; }

#services-container .srv-card-content h3 { font-size: 1.6rem; color: #fff; margin-bottom: 10px; text-shadow: 0 2px 15px rgba(0,0,0,0.9); }
#services-container .srv-card-content p { 
    font-size: 0.95rem; color: #eee; line-height: 1.5; 
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; 
    text-shadow: 0 2px 15px rgba(0,0,0,0.9);
}

#services-container .srv-card-arrow { 
    align-self: flex-end; margin-top: 25px; color: var(--usm-pink); font-weight: bold; 
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; 
}
#services-container .bento-service-card:hover .srv-card-arrow { transform: translateX(8px); color: #fff; }


/* ================= 7. SECTION VIP (FONDATEUR) ================= */
.founder-vip-section {
    display: flex; 
    flex-wrap: wrap; 
    margin: 20px auto 80px; 
    max-width: 1360px;
    background: var(--surface); 
    border: 1px solid rgba(216, 0, 86, 0.3); 
    border-radius: var(--card-radius); 
    overflow: hidden; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* 🪄 Animation douce de la hauteur/largeur */
}

/* 🪄 Préparation des éléments pour le fondu JS */
#vip-title-display, #vip-quote-display, #vip-desc-display, #vip-licenses-display, #vip-img-display {
    transition: opacity 0.3s ease-in-out;
}

.vip-photo-wrapper { 
    flex: 1 1 400px; 
    position: relative; 
    min-height: 500px; 
}

.vip-photo-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: top center; 
    filter: contrast(1.1) brightness(0.9); 
}

.vip-photo-wrapper::after {
    content: ''; 
    position: absolute; 
    inset: 0;
    background: linear-gradient(to right, transparent 60%, rgba(25, 25, 30, 0.8) 100%), 
                linear-gradient(to top, rgba(5, 5, 7, 0.9) 0%, transparent 30%);
}

.vip-content { 
    flex: 1 1 500px; 
    padding: 60px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    background: linear-gradient(135deg, rgba(25, 25, 30, 0.9), rgba(216, 0, 86, 0.05)); 
}

.vip-badge { 
    align-self: flex-start; 
    background: var(--usm-pink); 
    color: white; 
    padding: 8px 16px; 
    border-radius: 20px; 
    font-weight: 900; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    margin-bottom: 20px; 
}

.vip-name { 
    font-size: clamp(2.5rem, 5vw, 4.5rem); 
    font-weight: 900; 
    line-height: 1; 
    text-transform: uppercase; 
    margin-bottom: 10px; 
}

.vip-name span { color: var(--usm-pink); }

.vip-quote { 
    font-size: 1.5rem; 
    color: #fff; 
    font-style: italic; 
    margin-bottom: 30px; 
    border-left: 4px solid var(--usm-pink); 
    padding-left: 15px; 
}

.vip-desc { 
    color: #aaa; 
    font-size: 1.1rem; 
    margin-bottom: 30px; 
    line-height: 1.6; 
    white-space: pre-line;
}

.licenses-wrapper { 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap;
}

.license-badge { 
    background: rgba(0,0,0,0.5); 
    border: 1px solid rgba(255,255,255,0.2); 
    padding: 10px 20px; 
    border-radius: 20px; 
    font-weight: bold; 
    font-size: 1rem; 
}


/* ================= 8. ROSTER & SLIDER (NETFLIX STYLE) ================= */
.players-section { 
    padding: var(--spacing-main); 
    max-width: 1400px; 
    margin: 0 auto; 
}

.players-section h2 { 
    font-size: 2.5rem; 
    text-transform: uppercase; 
    margin-bottom: 20px;
}

.player-filters { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn { 
    background: transparent; 
    color: #aaa; 
    border: 1px solid var(--surface-border); 
    padding: 10px 24px; 
    border-radius: 30px; 
    cursor: pointer; 
    transition: 0.3s; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    font-weight: bold; 
}

.filter-btn.active, .filter-btn:hover { 
    background: var(--usm-pink); 
    color: white; 
    border-color: var(--usm-pink);
}

.category-block {
    margin-bottom: 60px;
    position: relative;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(216, 0, 86, 0.2);
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.category-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--usm-pink);
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-controls {
    display: flex;
    gap: 12px;
}

.slider-btn {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.2rem;
}

.slider-btn:hover {
    background: var(--usm-pink);
    border-color: var(--usm-pink);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(216, 0, 86, 0.5);
}

.slider-container {
    position: relative;
    width: 100%;
}

.horizontal-scroller {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin; 
    scrollbar-color: #444 rgba(255, 255, 255, 0.05);
}

.horizontal-scroller::-webkit-scrollbar {
    height: 8px; 
    display: block; 
}

.horizontal-scroller::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05); 
    border-radius: 10px;
}

.horizontal-scroller::-webkit-scrollbar-thumb {
    background: #444; 
    border-radius: 10px;
    transition: 0.3s;
}

.horizontal-scroller::-webkit-scrollbar-thumb:hover {
    background: var(--usm-pink); 
}

.player-card { 
    background: var(--surface); 
    border: 1px solid var(--surface-border); 
    border-radius: 24px; 
    overflow: hidden; 
    padding: 15px; 
    transition: 0.4s; 
    flex: 0 0 280px; 
    scroll-snap-align: start;
    margin: 0;
}

.player-card:hover { 
    border-color: var(--usm-pink); 
    transform: translateY(-10px); 
    background: rgba(25, 25, 30, 0.8);
}

.player-img-container { 
    width: 100%; 
    height: 320px; 
    border-radius: 16px; 
    overflow: hidden; 
    background: #111;
}

.player-img-container img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0.8; 
    transition: 0.4s;
}

.player-card:hover img { 
    opacity: 1; 
    transform: scale(1.05);
}

.player-info { 
    padding: 15px 5px 5px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.player-info h3 { 
    font-size: 1.2rem; 
    text-transform: uppercase; 
    margin-bottom: 5px;
}

.player-stat { 
    background: rgba(255,255,255,0.1); 
    padding: 5px 12px; 
    border-radius: 12px; 
    font-size: 0.8rem; 
    font-weight: bold;
}


/* ================= 9. FOOTER & LIENS ================= */
:root {
    --usm-pink: #D80056; /* Assure-toi que cette variable est définie */
    --footer-bg: #0A0A0C;
    --footer-text: #AAAAAA;
}

.usm-universal-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 20px 20px;
    font-family: 'Montserrat', sans-serif; /* Ou ta police principale */
    border-top: 1px solid rgba(216, 0, 86, 0.2);
    margin-top: auto; /* Pour le pousser en bas si contenu court */
}

.usm-universal-footer a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.footer-container {
    max-width: 1360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr; /* Info plus large, Nav plus étroite */
    gap: 60px;
    margin-bottom: 60px;
}

/* Colonne Info */
.footer-logo {
    max-height: 50px;
    margin-bottom: 20px;
}

.footer-tagline {
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-hardcoded {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.contact-item i {
    color: var(--usm-pink);
    width: 20px;
    text-align: center;
}

.contact-item a:hover {
    color: #fff;
}

/* Colonnes Titres */
.footer-col h3 {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--usm-pink);
}

/* Colonne Nav */
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 15px;
}

.footer-nav a {
    font-size: 1rem;
    font-weight: 500;
}

.footer-nav a:hover {
    color: #fff;
    padding-left: 5px; /* Petit effet au hover */
}

/* Colonne Social & Admin */
.social-links-container {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 1.2rem;
    color: #fff;
}

.social-icon:hover {
    background-color: var(--usm-pink);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(216, 0, 86, 0.3);
}

.admin-access-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(216, 0, 86, 0.1);
    border: 1px solid rgba(216, 0, 86, 0.3);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
}

.admin-access-btn i {
    color: var(--usm-pink);
    font-size: 0.9rem;
}

.admin-access-btn:hover {
    background: var(--usm-pink);
    border-color: var(--usm-pink);
    box-shadow: 0 5px 20px rgba(216, 0, 86, 0.2);
}

/* Bottom */
.footer-bottom {
    max-width: 1360px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom a:hover {
    color: var(--usm-pink);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-info {
        grid-column: 1 / -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ================= 10. PAGE CONTACT ================= */
.contact-section { padding: var(--spacing-main); max-width: 1200px; margin: 0 auto 80px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.contact-info { align-items: flex-start; text-align: left; justify-content: flex-start; }
.contact-form-box { align-items: stretch; text-align: left; justify-content: flex-start; }

.contact-info-item { margin-top: 25px; }
.contact-info-item h3 { color: var(--usm-pink); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.contact-info-item p { color: #fff; font-size: 1.2rem; font-weight: bold; }

.public-form { display: flex; flex-direction: column; gap: 15px; width: 100%; margin-top: 20px; }
.public-form input, .public-form select, .public-form textarea { 
    width: 100%; padding: 15px; border-radius: 8px; 
    background: rgba(0,0,0,0.4); border: 1px solid var(--surface-border); 
    color: white; font-size: 1rem; transition: 0.3s; font-family: inherit;
}
.public-form input:focus, .public-form select:focus, .public-form textarea:focus { 
    border-color: var(--usm-pink); outline: none; background: rgba(216, 0, 86, 0.05); box-shadow: 0 0 15px rgba(216,0,86,0.2);
}
.public-form select option { background: var(--bg-dark); color: white; }

/* ================= 11. CARTES SERVICES & PAGE DYNAMIQUE ================= */

/* 🪄 L'ancien code de la grille a été supprimé d'ici pour laisser le Slider de la Section 6 fonctionner ! */

/* Header de la page service unique */
.service-hero {
    position: relative; height: 50vh; min-height: 400px; display: flex; align-items: flex-end;
    padding: var(--spacing-main); background: #050507; margin-top: 80px; overflow: hidden;
}
.service-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; transition: 0.5s; }
.service-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-dark) 0%, transparent 100%); }
.service-hero-content { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; }
.service-hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); text-transform: uppercase; margin-bottom: 0; color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,0.8); }

.service-content-wrapper { max-width: 900px; margin: 50px auto 100px; padding: 0 var(--spacing-main); }
.service-desc { font-size: 1.15rem; line-height: 1.8; color: #ccc; white-space: pre-line; }
.btn-back { display: inline-block; margin-bottom: 20px; color: var(--usm-pink); text-decoration: none; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.btn-back:hover { color: #fff; transform: translateX(-5px); }

/* ================= 12. LAYOUT PAGE DYNAMIQUE (SIDEBAR) ================= */
/* ================= 12. LAYOUT PAGE DYNAMIQUE (SIDEBAR) ================= */
.service-page-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1400px;
    margin: 50px auto 100px;
    padding: 0 var(--spacing-main);
}

.service-main-content {
    flex: 1 1 600px; 
}

.service-sidebar {
    flex: 0 0 350px; 
    width: 100%;
}

.service-desc { 
    font-size: 1.15rem; 
    line-height: 1.8; 
    color: #ccc; 
    white-space: pre-line; 
}

/* Le design des boutons de la liste à droite */
.sidebar-srv-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    margin-bottom: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sidebar-srv-link:hover, .sidebar-srv-link.active {
    border-color: var(--usm-pink);
    background: rgba(216, 0, 86, 0.1);
    transform: translateX(8px); 
    color: var(--usm-pink);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ================= 13. APPARITION DOUCE ================= */
img {
    transition: opacity 1.2s ease-in-out;
}

/* ================= 14. OPTIMISATION MOBILE (ULTRA RESPONSIVE) ================= */

/* 1. RÈGLE D'OR : Verrouillage absolu anti-débordement horizontal */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

@media (max-width: 850px) {
    /* 2. HEADER STRICTEMENT CADRÉ (CORRIGÉ) */
    .navbar {
        flex-direction: row !important; 
        justify-content: space-between !important; 
        align-items: center;
        padding: 15px 20px;
        width: 100%;
        left: 0; 
        box-sizing: border-box;
    }

    /* 3. TEXTES GÉANTS EN ARRIÈRE-PLAN */
    .giant-bg-text { font-size: 4rem; }

    /* 4. HERO SECTION */
    .hero-massive { padding-top: 160px; width: 100%; box-sizing: border-box; }
    .massive-eagle-wrapper { width: 90%; }

    /* 5. STATISTIQUES (BENTO GRID) */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    .bento-card { min-height: auto; padding: 15px 10px; width: 100%; }
    .data-label { height: auto; min-height: 35px; font-size: 0.75rem; line-height: 1.2; }
    .data-huge { font-size: 1.8rem; margin: 5px 0; }
    .data-desc { height: auto; -webkit-line-clamp: 4; font-size: 0.75rem; line-height: 1.3; }
    .card-full { grid-column: 1 / -1; align-items: center; text-align: center; }
    .card-full .data-label { justify-content: center; }

   /* 🪄 6. DESIGN SERVICES EN SLIDER MOBILE (Format Cinéma & Ancrage Haut) */
    #services-container { 
        gap: 15px !important; 
        padding: 0 15px 20px 15px !important; 
    }
    #services-container .bento-service-card {
        flex: 0 0 85% !important; 
        width: 85% !important;
        height: 220px !important; 
        scroll-snap-align: center !important; 
        padding: 25px 20px !important;
        justify-content: space-between !important; /* 🪄 Pousse le texte en haut et la flèche en bas */
        align-items: flex-start !important; /* 🪄 Ancre tout le bloc à gauche */
        text-align: left !important; /* 🪄 Force l'alignement du texte à gauche */
    }
    /* Dégradé ajusté pour protéger le texte en haut et la flèche en bas, clair au centre */
    .bento-service-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.8) 100%);
        z-index: 1;
    }
    .srv-card-content {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        width: 100%; /* S'assure que le titre prend bien toute la largeur pour s'aligner à gauche */
    }
    
    .srv-card-content h3 { 
        font-size: 1.15rem; 
        line-height: 1.2;
        margin-bottom: 6px; 
        display: -webkit-box;
        -webkit-line-clamp: 2; 
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .srv-card-content p { 
        font-size: 0.85rem; 
        line-height: 1.3; 
        display: -webkit-box;
        -webkit-line-clamp: 2; 
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .srv-card-arrow { 
        position: relative; 
        z-index: 2; 
        font-size: 0.8rem; 
        margin-top: auto; /* 🪄 Pousse la flèche vers le bas au maximum */
        align-self: flex-end; /* 🪄 Garde la flèche bien calée à droite */
    }

    /* 7. SECTION FONDATEUR */
    .founder-vip-section { flex-direction: column; margin: 20px 15px 60px; width: calc(100% - 30px); }
    .vip-photo-wrapper, .vip-content { flex: 1 1 100%; width: 100%; }
    .vip-photo-wrapper { height: 350px; min-height: 350px; }
    .vip-content { padding: 30px 20px; }
    .vip-name { font-size: 2.5rem; }

    /* 8. ROSTER & SLIDER JOUEURS */
    .players-section { padding: 15px; width: 100%; overflow: hidden; box-sizing: border-box; }
    .player-filters { justify-content: center; }
    .category-block { width: 100%; max-width: 100%; }
    .slider-container { width: 100%; max-width: 100%; }
    .horizontal-scroller { width: 100%; padding-bottom: 20px; }
    .player-card { flex: 0 0 240px; }
    .player-img-container { height: 280px; }

    /* 9. PAGES INTERNES */
    .contact-grid { grid-template-columns: 1fr; }
    .service-page-layout { flex-direction: column; padding: 15px; width: 100%; box-sizing: border-box; }
    .service-sidebar { flex: 1 1 100%; }
    .service-hero h1 { font-size: 2rem; }

    /* 10. CACHER LE BADGE INSTAGRAM SUR MOBILE */
    #instagram-feed {
        height: 750px !important; 
    }
    #instagram-feed iframe, 
    #instagram-feed [class*="elfsight-app"] {
        margin-top: -45px !important; 
        height: calc(100% + 85px) !important; 
    }
    .insta-overlay-fix {
        width: 100% !important; 
        height: 40px !important; 
        left: 0;
    }
}

/* Optimisation extrême pour les très petits téléphones (iPhone SE, etc.) */
@media (max-width: 480px) {
    .nav-links a {
        font-size: 0.75rem; 
    }
    .btn-premium {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    .data-huge {
        font-size: 1.8rem; 
    }
    .data-label {
        font-size: 0.75rem;
    }
}

/* ================= 15. PAGE PRESSE ================= */
.presse-hero { 
    padding: 160px 20px 60px; 
    text-align: center; 
}
.presse-hero h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem); 
    text-transform: uppercase; 
}

/* Slider Vidéos */
.video-slider-wrapper { 
    max-width: 1400px; 
    margin: 0 auto 80px; 
    padding: 0 var(--spacing-main); 
}
.video-slider { 
    display: flex; 
    gap: 20px; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    scrollbar-width: none; /* Cache la barre de scroll moche sur Firefox */
    padding-bottom: 20px; 
    scroll-behavior: smooth;
}
.video-slider::-webkit-scrollbar { 
    display: none; /* Cache la barre sur Chrome/Safari */
}
.video-card { 
    flex: 0 0 clamp(280px, 40vw, 500px); 
    scroll-snap-align: start; 
    background: var(--surface); 
    border: 1px solid var(--surface-border); 
    border-radius: 16px; 
    overflow: hidden; 
    transition: 0.3s;
}
.video-card:hover { border-color: var(--usm-pink); transform: translateY(-5px); }
.video-container { 
    position: relative; 
    padding-bottom: 56.25%; /* Ratio 16:9 parfait pour YouTube */
    height: 0; 
}
.video-container iframe { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    border: 0; 
}
.video-title { padding: 15px; font-size: 1rem; font-weight: bold; color: white; }

/* Mosaïque Articles (Effet Vrai Journal Plié) */
.mosaic-wrapper { max-width: 1400px; margin: 0 auto 100px; padding: 0 var(--spacing-main); }
.mosaic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 35px; }

.mosaic-item { 
    position: relative; 
    cursor: pointer; 
    aspect-ratio: 1 / 1; 
    background: #eaeaea; /* Couleur papier légèrement grisée */
    display: flex; align-items: center; justify-content: center;
    /* Plus de marge à gauche pour la pliure, moins à droite */
    padding: 12px 8px 12px 18px; 
    
    /* 🪄 L'EFFET PLIURE : Très arrondi à gauche, angles droits à droite */
    border-radius: 14px 2px 2px 14px; 
    
    /* 🪄 OMBRES 3D : Lignes blanches et grises alternées pour simuler les pages */
    box-shadow: 
        2px 2px 0px #fff, 
        3px 3px 2px rgba(0,0,0,0.15), 
        5px 5px 0px #fff, 
        6px 6px 3px rgba(0,0,0,0.15), 
        8px 8px 0px #fff, 
        10px 10px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

/* Mosaïque Articles (Effet Vrai Journal Plié - Grand format) */
.mosaic-wrapper { max-width: 1400px; margin: 0 auto 100px; padding: 0 var(--spacing-main); }

.mosaic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 35px; }

.mosaic-item { 
    position: relative; 
    cursor: pointer; 
    aspect-ratio: 1 / 1; 
    background: #eaeaea; 
    display: flex; align-items: center; justify-content: center;
    padding: 6px 4px 6px 14px; 
    
    border-radius: 14px 2px 2px 14px; 
    box-shadow: 
        2px 2px 0px #fff, 
        3px 3px 2px rgba(0,0,0,0.15), 
        5px 5px 0px #fff, 
        6px 6px 3px rgba(0,0,0,0.15), 
        8px 8px 0px #fff, 
        10px 10px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.mosaic-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px 2px 2px 14px;
    background: linear-gradient(to right, rgba(0,0,0,0.15) 0%, rgba(255,255,255,0.4) 6%, transparent 15%);
    pointer-events: none;
    z-index: 2;
}

.mosaic-item img { 
    width: 100%; height: 100%; 
    object-fit: cover !important; 
    object-position: top center; 
    display: block;
    z-index: 1;
    filter: contrast(1.03) sepia(0.02); 
    transition: transform 0.5s ease; 
    border-radius: 2px;
}

.mosaic-item:hover { 
    transform: translateY(-5px) translateX(-2px); 
    box-shadow: 
        3px 3px 0px #fff, 4px 4px 3px rgba(0,0,0,0.15), 
        7px 7px 0px #fff, 8px 8px 4px rgba(0,0,0,0.15), 
        11px 11px 0px #fff, 15px 15px 20px rgba(0,0,0,0.4);
    border: 1px solid var(--usm-pink); 
}
.mosaic-item:hover img { transform: scale(1.02); }


/* Modale (Lightbox Responsive & Mini-Slider) */
.lightbox { 
    position: fixed; inset: 0; background: rgba(0,0,0,0.92); 
    z-index: 9999; display: none; align-items: center; justify-content: center; 
}
.lightbox.active { display: flex; }

.lightbox-container { 
    display: flex; flex-direction: row; align-items: center; justify-content: center; 
    gap: 40px; width: 95vw; max-width: 1400px; height: 90vh; position: relative; 
}

/* 🪄 NOUVEAU : La colonne qui gère le média + le slider */
.lightbox-left-col {
    flex: 1 1 auto; display: flex; flex-direction: column; 
    height: 100%; max-width: calc(100% - 390px); gap: 15px;
}

.lightbox-media { 
    flex: 1 1 auto; height: calc(100% - 135px); /* Laisse 135px pour le slider en bas */
    display: flex; align-items: center; justify-content: center; 
}
.lightbox-media img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox-media iframe { width: 100%; max-width: 1000px; aspect-ratio: 16 / 9; height: auto; max-height: 100%; border: none; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.9); }

/* 🪄 NOUVEAU : Le bloc du Mini-Slider */
.lightbox-slider-wrapper {
    flex: 0 0 120px; display: flex; align-items: center; gap: 15px;
    background: rgba(25, 25, 30, 0.85); border-radius: 16px; padding: 10px 15px;
    border: 1px solid rgba(255,255,255,0.1);
}
.lightbox-slider-btn { background: transparent; color: white; border: none; font-size: 1.5rem; cursor: pointer; transition: 0.3s; }
.lightbox-slider-btn:hover { color: var(--usm-pink); }

.lightbox-mini-slider {
    display: flex; gap: 15px; overflow-x: auto; scroll-behavior: smooth;
    flex: 1; height: 100%; scrollbar-width: none; align-items: center;
}
.lightbox-mini-slider::-webkit-scrollbar { display: none; }

.mini-slider-item {
    flex: 0 0 140px; height: 90px; border-radius: 8px; cursor: pointer;
    opacity: 0.4; transition: 0.3s; overflow: hidden; border: 2px solid transparent;
}
.mini-slider-item.active, .mini-slider-item:hover { opacity: 1; border-color: var(--usm-pink); }
.mini-slider-item img { width: 100%; height: 100%; object-fit: cover; }

/* 🪄 L'effet Journal conservé pour le mini-slider */
.mini-slider-item.is-article { background: #eaeaea; padding: 4px; border-radius: 8px 2px 2px 8px; }
.mini-slider-item.is-article img { object-fit: cover !important; object-position: top center; border-radius: 2px; }

/* La Sidebar (Inchangée) */
.lightbox-sidebar { 
    flex: 0 0 350px; max-height: 80vh; overflow-y: auto; background: rgba(25, 25, 30, 0.85); 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 30px; box-shadow: -10px 0 40px rgba(0,0,0,0.5); 
}
.lightbox-sidebar::-webkit-scrollbar { width: 4px; }
.lightbox-sidebar::-webkit-scrollbar-thumb { background: var(--usm-pink); border-radius: 4px; }

.lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 3rem; cursor: pointer; background: transparent; border: none; transition: 0.3s; z-index: 10000; }
.lightbox-close:hover { color: var(--usm-pink); transform: scale(1.1); }

@media (max-width: 950px) {
    .lightbox-container { flex-direction: column; gap: 20px; padding-top: 60px; }
    .lightbox-left-col { max-width: 100%; height: 45vh; }
    .lightbox-media { height: 100%; }
    .lightbox-slider-wrapper { display: none; /* Cache le mini slider sur mobile pour gagner de la place */ }
    .lightbox-sidebar { flex: 1 1 auto; width: 100%; max-height: 40vh; border-radius: 20px 20px 0 0; padding: 20px; }
    .lightbox-media iframe { width: 100%; height: 100%; }
}

/* 🪄 Masquage manuel précis du Watermark Instagram - RÉGLAGE FINAL FINAL */
#instagram-feed {
    position: relative;
    padding-top: 0; 
    
    /* 🪄 ON POUSSE À 840px : Pour libérer le bas des photos à 100% */
    height: 840px; 
    
    overflow: hidden; 
    /* Ombre interne maintenue pour noyer le logo Elfsight */
    box-shadow: inset 0 -60px 50px var(--bg-dark);
    border-bottom: 2px solid var(--surface-border);
}

/* 🪄 AJUSTEMENT DU CONTENU INTERNE (Le haut est déjà parfait) */
#instagram-feed iframe, 
#instagram-feed [class*="elfsight-app"] {
    margin-top: -90px !important; 
    height: calc(100% + 150px) !important; 
    width: 100% !important;
    display: block;
}

/* 🪄 Badge de recouvrement pour le coin inférieur droit */
.insta-overlay-fix {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 260px; 
    height: 80px; 
    background: var(--bg-dark); 
    z-index: 100; 
    pointer-events: none; 
}

/* ================= MENU MOBILE ================= */
@media (max-width: 950px) {
    #mobile-menu-btn { display: block !important; }
    .nav-links {
        position: fixed !important; top: 0; right: -100%; width: 100%; height: 100vh;
        background: rgba(5, 5, 7, 0.98) !important; backdrop-filter: blur(15px);
        flex-direction: column !important; align-items: center !important; justify-content: center !important;
        gap: 30px !important; font-size: 1.5rem; transition: 0.4s ease-in-out; z-index: 10000;
    }
    .nav-links.active { right: 0; }
    #close-menu-btn { display: block !important; }
}

.footer-separator { margin: 0 10px; color: #555; }
.admin-secret-link { color: inherit; text-decoration: none; cursor: default; }

/* ================= BARRE SOCIALE FLOTTANTE (RESTAVRÉE & AGRANDIE) ================= */
.sticky-social-bar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 25px; /* Espacement agrandi */
    background: rgba(10, 10, 12, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-right: none;
    padding: 30px 20px; /* Boîte agrandie */
    border-radius: 16px 0 0 16px;
    backdrop-filter: blur(10px);
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
}

.sticky-icon {
    color: #888;
    transition: all 0.3s ease;
    display: none; /* Masqué par défaut tant que Firebase n'a pas validé le lien */
}

/* 🪄 ICÔNES X2.5 PLUS GRANDES */
.sticky-icon svg {
    width: 45px !important; 
    height: 45px !important;
    stroke-width: 1.5 !important; /* Trait affiné pour rester élégant en grand */
}

.sticky-icon:hover {
    color: var(--usm-pink);
    transform: scale(1.15) translateX(-5px);
    filter: drop-shadow(0 0 12px rgba(216, 0, 86, 0.6));
}

@media (max-width: 768px) {
    .sticky-social-bar { display: none; }
}

/* ================= BANDEROLE IMAGES (MARQUEE) ================= */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 40px 0;
    background: var(--bg-dark);
    position: relative;
}
/* Dégradés sur les bords pour fondre les images dans le décor */
.marquee-wrapper::before, .marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15vw;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark) 10%, transparent);
}
.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark) 10%, transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    /* 40s = Vitesse raisonnable et classe. Fluidité absolue via translate3d */
    animation: scrollMarquee 40s linear infinite; 
    will-change: transform;
}
.marquee-item {
    width: 280px;
    height: 380px;
    margin: 0 15px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.05);
}
.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) brightness(0.6);
    transition: all 0.5s ease;
}
.marquee-item img:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

@keyframes scrollMarquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); } /* -50% car on duplique le contenu en JS pour boucler */
}

/* ================= 16. BARRE DE CONTACT MOBILE (BOTTOM BAR) ================= */
.mobile-bottom-bar {
    display: none; /* Toujours caché sur PC */
}

@media (max-width: 850px) {
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: rgba(10, 10, 12, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(216, 0, 86, 0.3); /* Liseré rose */
        z-index: 10000;
        justify-content: space-evenly;
        align-items: center;
        box-shadow: 0 -5px 25px rgba(0,0,0,0.6);
        /* Support intelligent pour la barre iOS d'iPhone */
        padding-bottom: env(safe-area-inset-bottom); 
    }

    .mobile-bar-icon {
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        height: 100%;
        transition: 0.3s;
    }

    .mobile-bar-icon:hover, .mobile-bar-icon:active {
        color: var(--usm-pink);
        background: rgba(216, 0, 86, 0.1);
    }

    .mobile-bar-separator {
        width: 1px;
        height: 30px;
        background: rgba(255, 255, 255, 0.1);
    }

    /* On repousse le bas du site pour que la barre ne cache rien */
    body {
        padding-bottom: calc(65px + env(safe-area-inset-bottom)) !important;
    }
}

/* ================= ANIMATION BOUTON HERO (PULSE + FLASHLIGHT) ================= */
.btn-premium {
    position: relative;
    overflow: hidden;
    animation: btn-pulse 2s infinite; /* Pulsation continue */
}

/* Le rayon lumineux qui balaie le bouton */
.btn-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    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: btn-flashlight 3s infinite; /* Passe toutes les 3 secondes */
}

@keyframes btn-pulse {
    0% { box-shadow: 0 0 10px rgba(216, 0, 86, 0.4); }
    50% { box-shadow: 0 0 25px rgba(216, 0, 86, 0.8), 0 0 45px rgba(216, 0, 86, 0.5); }
    100% { box-shadow: 0 0 10px rgba(216, 0, 86, 0.4); }
}

@keyframes btn-flashlight {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; } /* Pause de 80% du temps avant de recommencer */
}

/* ================= ANIMATION DES BOUTONS VIP (SWITCH DYNAMIQUE) ================= */

#tab-founder, #tab-agency {
    position: relative;
    overflow: hidden;
}

/* 🪄 L'animation s'active UNIQUEMENT sur le bouton inactif */
#tab-founder:not(.active), #tab-agency:not(.active) {
    animation: tab-pulse 2s infinite; 
}

#tab-founder:not(.active)::after, #tab-agency:not(.active)::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    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: tab-flashlight 3s infinite;
}

@keyframes tab-pulse {
    0% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.05); }
    50% { box-shadow: 0 0 15px rgba(255, 255, 255, 0.3); }
    100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.05); }
}

@keyframes tab-flashlight {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}


/* ================= CHARGEMENT PROGRESSIF / ANTI-POP ================= */
.progressive-zone {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.progressive-zone.is-loading {
    opacity: 0.78;
}

.progressive-zone.is-ready {
    opacity: 1;
    animation: progressiveReveal 0.42s ease both;
}

@keyframes progressiveReveal {
    from { opacity: 0.55; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.skeleton-card,
.skeleton-line,
.skeleton-dot {
    position: relative;
    overflow: hidden;
    background: linear-gradient(110deg, rgba(255,255,255,0.055) 8%, rgba(255,255,255,0.11) 18%, rgba(255,255,255,0.055) 33%);
    background-size: 200% 100%;
    animation: skeletonSweep 1.25s linear infinite;
    border: 1px solid rgba(255,255,255,0.08);
}

@keyframes skeletonSweep {
    to { background-position-x: -200%; }
}

.skeleton-service-card {
    flex: 0 0 auto;
    width: 320px;
    height: 320px;
    border-radius: 16px;
}

.skeleton-roster-block {
    width: 100%;
    margin-bottom: 60px;
}

.skeleton-player-card {
    flex: 0 0 280px;
    height: 395px;
    border-radius: 24px;
}

.skeleton-press-card {
    min-height: 220px;
    border-radius: 22px;
}

.skeleton-line.skeleton-title {
    width: 220px;
    height: 22px;
    border-radius: 999px;
}

.skeleton-dot {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.dynamic-img {
    opacity: 0;
    transition: opacity 0.65s ease-in-out, filter 0.65s ease-in-out;
}

.dynamic-img.loaded {
    opacity: var(--final-opacity, 1);
}

#services-container:empty,
#roster-categories-container:empty {
    min-height: 320px;
}

#services-container.is-loading,
#roster-categories-container.is-loading {
    min-height: 320px;
}

/* ================= FINAL LAYERED FIX - VIP + ROSTER V3 ================= */
@media (min-width: 769px) {
    .founder-vip-section {
        height: clamp(640px, 46vw, 760px);
        min-height: clamp(640px, 46vw, 760px);
        max-height: 760px;
        flex-wrap: nowrap;
        align-items: stretch;
        contain: paint;
    }

    .vip-photo-wrapper,
    .vip-content {
        height: 100%;
        min-height: 0;
    }

    .vip-photo-wrapper {
        flex: 0 0 clamp(390px, 34%, 470px);
        max-width: 470px;
        min-width: 390px;
    }

    .vip-content {
        flex: 1 1 auto;
        overflow: hidden;
    }
}

.vip-photo-wrapper {
    position: relative;
    overflow: hidden;
    background: #050507;
    isolation: isolate;
}

.vip-photo-wrapper img.vip-layer-founder,
#vip-agency-img-display {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: contrast(1.1) brightness(0.9);
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: opacity;
}

#vip-img-display.vip-layer-founder {
    z-index: 0;
    opacity: 1 !important;
}

#vip-agency-img-display {
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    object-position: center center;
    transition: opacity 0.68s cubic-bezier(0.25, 1, 0.5, 1);
}

#vip-agency-img-display.is-active {
    opacity: 1;
}

.vip-photo-wrapper::after {
    z-index: 2;
    pointer-events: none;
}

#vip-title-display,
#vip-quote-display,
#vip-desc-display,
#vip-licenses-display {
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.vip-panel-switching {
    opacity: 0 !important;
    transform: translateY(6px);
}

#vip-title-display { min-height: 92px; }
#vip-quote-display {
    min-height: 76px;
    max-height: 132px;
    overflow-y: auto;
}
#vip-desc-display {
    min-height: 150px;
    max-height: 230px;
    overflow-y: auto;
    padding-right: 6px;
}

#vip-quote-display::-webkit-scrollbar,
#vip-desc-display::-webkit-scrollbar { width: 4px; }
#vip-quote-display::-webkit-scrollbar-thumb,
#vip-desc-display::-webkit-scrollbar-thumb {
    background: rgba(216, 0, 86, 0.45);
    border-radius: 999px;
}

#vip-licenses-display {
    display: flex !important;
    min-height: 48px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

#vip-licenses-display.vip-licenses-hidden,
#vip-licenses-display[aria-hidden="true"] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#roster-categories-container {
    transition: min-height 0.35s ease;
}

#roster-categories-container.roster-is-preparing {
    pointer-events: none;
}

.player-img-container {
    position: relative;
    background:
        radial-gradient(circle at 30% 18%, hsla(var(--roster-hue, 330), 76%, 45%, 0.42), transparent 38%),
        radial-gradient(circle at 75% 82%, rgba(216, 0, 86, 0.22), transparent 44%),
        linear-gradient(135deg, #17171f 0%, #08080c 72%);
    overflow: hidden;
    isolation: isolate;
}

.player-img-container::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(110deg, rgba(255,255,255,0.03), rgba(255,255,255,0.11), rgba(255,255,255,0.03));
    transform: translateX(-120%);
    animation: rosterSoftSweep 1.55s ease-in-out infinite;
    opacity: 0.7;
    transition: opacity 0.35s ease;
}

.player-img-container::after {
    content: '';
    position: absolute;
    inset: -8%;
    z-index: 0;
    background:
        radial-gradient(circle at 42% 26%, hsla(var(--roster-hue, 330), 72%, 48%, 0.33), transparent 42%),
        linear-gradient(160deg, rgba(255,255,255,0.08), transparent 62%);
    filter: blur(18px) saturate(1.2);
    opacity: 0.8;
}

.player-img-container.roster-holder-ready::before {
    opacity: 0;
    animation-play-state: paused;
}

.player-img-container img {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: scale(1.018);
    transition: opacity 0.78s ease, transform 0.82s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.player-img-container img.roster-img-ready {
    opacity: 0.9 !important;
    transform: scale(1);
}

.player-card:hover .player-img-container img.roster-img-ready {
    opacity: 1 !important;
    transform: scale(1.05);
}

@keyframes rosterSoftSweep {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

@media (max-width: 768px) {
    .founder-vip-section {
        min-height: auto;
        contain: paint;
    }

    .vip-photo-wrapper {
        height: 420px;
        min-height: 420px;
    }

    .vip-content {
        min-height: 500px;
        padding: 42px 28px;
    }

    #vip-title-display { min-height: 92px; }
    #vip-quote-display { min-height: 78px; max-height: 120px; }
    #vip-desc-display { min-height: 150px; max-height: 210px; }
}


/* ================= FINAL SCROLL + SECTION RHYTHM V4 ================= */
:root {
    --front-section-gap: clamp(76px, 8vw, 116px);
}

.bento-grid {
    margin-bottom: var(--front-section-gap) !important;
    padding-bottom: 0 !important;
}

.founder-vip-section {
    margin-top: 0 !important;
    margin-bottom: var(--front-section-gap) !important;
}

#services {
    margin-top: 0 !important;
    margin-bottom: var(--front-section-gap) !important;
}

.players-section {
    padding-top: 0 !important;
}

@media (max-width: 768px) {
    :root {
        --front-section-gap: 64px;
    }

    #agence, #services, #joueurs {
        scroll-margin-top: 90px;
    }

    .bento-grid,
    .founder-vip-section,
    #services {
        margin-bottom: var(--front-section-gap) !important;
    }
}
/* ==========================================================================
   HOTFIX URGENT - VIP text overflow + service cards top alignment
   Date: 2026-04-28
   ========================================================================== */

/* Le script public force parfois une hauteur fixe inline sur certains écrans.
   Ces règles reprennent la main pour laisser le bloc respirer. */
.founder-vip-section {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-items: stretch !important;
}

.founder-vip-section .vip-content {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    justify-content: flex-start !important;
    overflow: visible !important;
    padding: clamp(34px, 4vw, 60px) !important;
}

.founder-vip-section .vip-photo-wrapper {
    height: auto !important;
    min-height: clamp(520px, 42vw, 680px) !important;
    max-height: none !important;
    align-self: stretch !important;
}

.founder-vip-section .vip-tabs {
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-bottom: clamp(14px, 2vw, 22px) !important;
}

.founder-vip-section .vip-name {
    font-size: clamp(2.6rem, 4.2vw, 4.15rem) !important;
    line-height: 0.95 !important;
    margin-bottom: clamp(12px, 1.4vw, 18px) !important;
    overflow-wrap: anywhere;
}

.founder-vip-section .vip-quote {
    font-size: clamp(1.05rem, 1.45vw, 1.35rem) !important;
    line-height: 1.36 !important;
    margin-bottom: clamp(16px, 2vw, 24px) !important;
}

.founder-vip-section .vip-desc {
    font-size: clamp(0.95rem, 1.05vw, 1.08rem) !important;
    line-height: 1.55 !important;
    margin-bottom: clamp(16px, 2vw, 24px) !important;
}

/* Les cartes services doivent présenter le texte en haut du bloc. */
#services-container .bento-service-card {
    justify-content: flex-start !important;
    align-items: stretch !important;
}

#services-container .srv-card-content {
    width: 100% !important;
}

#services-container .srv-card-arrow {
    margin-top: auto !important;
}

@media (max-width: 1180px) {
    .founder-vip-section {
        max-width: calc(100vw - 40px) !important;
    }

    .founder-vip-section .vip-content {
        padding: 36px !important;
    }

    .founder-vip-section .vip-name {
        font-size: clamp(2.25rem, 4vw, 3.35rem) !important;
    }

    .founder-vip-section .vip-quote {
        font-size: clamp(1rem, 1.35vw, 1.2rem) !important;
    }
}

@media (max-width: 900px) {
    .founder-vip-section {
        overflow: hidden !important;
    }

    .founder-vip-section .vip-photo-wrapper {
        min-height: 420px !important;
    }

    .founder-vip-section .vip-content {
        padding: 32px 24px !important;
    }
}

@media (max-width: 560px) {
    .founder-vip-section .vip-photo-wrapper {
        min-height: 360px !important;
    }

    .founder-vip-section .vip-name {
        font-size: clamp(2rem, 12vw, 2.75rem) !important;
    }

    .founder-vip-section .vip-quote {
        font-size: 1rem !important;
    }

    #services-container .bento-service-card {
        height: 300px !important;
    }
}
