/* --- style.css --- */
:root {
    --primary: #E94560;
    --primary-light: #ff7b9c;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-panel: #121212;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --text-muted: #888;
    --border-color: #2a2a2a;
}

/* --- RESET & BASES --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
    -webkit-font-smoothing: antialiased;
}

/* TYPO */
h1,
h2,
h3,
.logo,
.form-title,
.token-label,
.card-title,
.stat-num,
.nav-link,
.cta-btn,
.zone-title,
.gear-name,
.fame-name,
.review-author,
.kpi-value,
.kpi-label,
.season-title,
.modal-title,
.m-versus,
.m-badge,
.section-title,
.badge,
.division-label,
.table-club-name,
.sc-number,
.sc-detail-val,
.insta-user,
.status-badge,
.stat-sub,
.form-date,
.form-group label,
.form-submit,
.faq-question,
.faq-title,
.page-title,
.brand,
.btn-back,
.kpi-link {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-mono,
.wf-val,
.pass-badge,
.m-date,
.season-val {
    font-family: 'JetBrains Mono', monospace;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* --- UTILITAIRES & SYSTEME DESIGN --- */
/* BOUTONS UNIFIÉS */
.btn {
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s all ease;
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1.2;
    text-align: center;
}

/* Bouton Plein (CTA Principal & Insta) */
.btn-primary {
    background-color: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.4);
}

/* Bouton Contour (Retour) */
.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--primary);
    background-color: rgba(233, 69, 96, 0.1);
    color: #ffffff;
}

.sport-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(233, 69, 96, 0.6) 50%, transparent 100%);
    margin: 0;
    position: relative;
    z-index: 20;
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.4);
    opacity: 0.8;
}

/* ANIMATION CLASSIQUE (Contenu) */
.reveal {
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* --- LOADER --- */
#loader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.viewfinder-container {
    position: relative;
    width: 320px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vf-frame {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.vf-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: var(--primary);
    border-style: solid;
}

.vf-tl {
    top: -2px;
    left: -2px;
    border-width: 4px 0 0 4px;
}

.vf-tr {
    top: -2px;
    right: -2px;
    border-width: 4px 4px 0 0;
}

.vf-bl {
    bottom: -2px;
    left: -2px;
    border-width: 0 0 4px 4px;
}

.vf-br {
    bottom: -2px;
    right: -2px;
    border-width: 0 4px 4px 0;
}

.vf-info {
    position: absolute;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
}

.vf-iso {
    top: 10px;
    left: 15px;
}

.vf-shutter {
    top: 10px;
    right: 15px;
}

.vf-aperture {
    bottom: 10px;
    left: 15px;
}

.vf-rec {
    bottom: 10px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ff0000;
}

.rec-dot {
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    animation: blinkRed 1s infinite;
}

.focus-center {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.focus-crosshair {
    width: 60px;
    height: 60px;
    position: relative;
    margin-bottom: 15px;
}

.focus-crosshair::before,
.focus-crosshair::after {
    content: '';
    position: absolute;
    background: var(--primary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.focus-crosshair::before {
    width: 100%;
    height: 2px;
}

.focus-crosshair::after {
    width: 2px;
    height: 100%;
}

.focus-box-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary);
    animation: focusPulse 0.8s infinite alternate;
}

.loader-text {
    color: white;
    font-size: 0.9rem;
    letter-spacing: 4px;
    font-weight: 700;
    text-transform: uppercase;
    animation: blinkText 1s infinite;
    font-family: 'Oswald', sans-serif;
}

@keyframes focusPulse {
    from {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes blinkText {
    50% {
        opacity: 0.5;
    }
}

@keyframes blinkRed {
    50% {
        opacity: 0.2;
    }
}

body.fast-load .hero-tag,
body.fast-load .main-title,
body.fast-load .hero h2,
body.fast-load .cta-btn,
body.fast-load header {
    animation-delay: 0s !important;
    animation-duration: 0.5s !important;
}

#loader.loaded {
    opacity: 0;
    pointer-events: none;
}

html.fast-load #loader {
    display: none !important;
}

/* --- OVERLAYS --- */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.03;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
}

#cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 8000;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    transition: opacity 0.3s ease;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateY(-100%);
    animation: slideDown 0.8s ease forwards 1.5s;
}

.logo,
.brand {
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
}

.logo span,
.brand span {
    color: var(--primary);
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    opacity: 0.9;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    color: #fff;
}

nav a:hover {
    color: var(--primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease-in-out;
}

nav a:hover::after {
    width: 100%;
}

@keyframes slideDown {
    to {
        transform: translateY(0);
    }
}

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(to right, #0a0a0a 0%, rgba(10, 10, 10, 0.3) 100%), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    will-change: transform;
}

.hero-content {
    z-index: 2;
}

.hero-tag {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-size: 1rem;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.3s;
    font-family: 'Oswald', sans-serif;
}

.main-title {
    font-size: 6rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 0.9;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.35s;
    background: linear-gradient(45deg, #ffffff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.main-title:hover {
    opacity: 1 !important;
    text-shadow: 2px 2px 0px var(--primary);
    transform: skew(-2deg);
    -webkit-text-fill-color: #fff;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.5s;
    font-family: 'Oswald', sans-serif;
}

.type-text {
    color: var(--primary);
    border-right: 3px solid white;
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

/* Animation spécifique pour le bouton du Hero */
.hero .btn {
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.65s;
}

body.fast-load .hero .btn {
    animation-delay: 0s !important;
    opacity: 1;
}

/* --- SECTIONS COMMUNES --- */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 4rem;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s;
    cursor: default;
    letter-spacing: 2px;
}

.section-header h2:hover,
.section-header h2.scroll-active {
    color: var(--primary);
    transform: translateX(10px) scale(1.05);
}

.section-header span {
    color: var(--primary);
    transition: 0.3s;
}

.section-header h2:hover span,
.section-header h2.scroll-active span {
    color: white;
    text-shadow: 0 0 15px var(--primary);
}

.status-badge {
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    display: inline-block;
    vertical-align: middle;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
    background: #00ff41;
    box-shadow: 0 0 10px #00ff41;
    animation: blinkStatus 2s infinite;
}

@keyframes blinkStatus {
    50% {
        opacity: 0.4;
    }
}

/* --- CARDS & UI (UNIFIÉ) --- */
/* Design Premium partagé entre Accueil et Stats */
.tilt-card,
.stat-card,
.social-card-new,
.kpi-card-enhanced {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
}

/* Effet Hover Premium */
.tilt-card:hover,
.stat-card:hover,
.social-card-new:hover,
.kpi-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(233, 69, 96, 0.15);
    border-color: var(--primary);
    z-index: 5;
}

/* Style interne Stat Card (Accueil) */
.stat-card {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-num {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    display: block;
    margin-bottom: 0px;
    transform: translateZ(10px);
}

.stat-label {
    color: #888;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    transform: translateZ(10px);
    margin-top: 5px;
    font-family: 'Montserrat', sans-serif;
}

.stat-sub {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Style interne Photo Card */
.tilt-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
    opacity: 0.8;
    filter: grayscale(100%);
}

.tilt-card:hover img {
    transform: scale(1.05);
    opacity: 1;
    filter: grayscale(0%);
}

/* Hover Glow Animation */
.hover-glow {
    transition: all 0.3s ease;
    cursor: default;
}

.hover-glow:hover {
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.8), 0 0 30px rgba(233, 69, 96, 0.5);
    transform: scale(1.05);
}

.stat-item.hover-glow:hover {
    background: rgba(233, 69, 96, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
}

/* --- PORTFOLIO --- */
.portfolio {
    padding: 6rem 5%;
    background: var(--bg-dark);
    position: relative;
    z-index: 10;
}

.gallery.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
    /* Reduce overall width to make cards smaller on desktop */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    perspective: 1500px;
    min-height: 420px;
}

/* --- MATCH TIMELINE --- */
.match-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 180px;
}

.photo-card {
    height: 420px;
    cursor: pointer;
    overflow: hidden;
    background: #000;
    contain: layout style;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 20%, transparent);
    transform: translateY(100%) translateZ(30px);
    opacity: 0;
    transition: 0.5s;
}

.photo-card:hover .card-overlay,
.photo-card.scroll-active .card-overlay {
    transform: translateY(0) translateZ(30px);
    opacity: 1;
}

.card-cat {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
    font-family: 'Oswald', sans-serif;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 5px;
}

.card-count {
    font-size: 0.9rem;
    color: #ccc;
}

#gal-nav {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeUp 0.5s ease;
}

#gal-nav button {
    padding: 0.6rem 2rem;
    font-size: 0.9rem;
    font-family: 'Oswald', sans-serif;
    background: transparent;
    border: 1px solid var(--primary);
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

#gal-nav button:hover {
    background: var(--primary);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
    transform: translateY(-2px);
}

#gal-nav h3 {
    display: block;
    margin-top: 15px;
    font-size: 2rem;
}

/* --- LIGHTBOX --- */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

#lightbox.open {
    display: flex;
    opacity: 1;
}

#lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(113, 75, 103, 0.3);
    transform: scale(0.9);
    transition: 0.4s;
}

#lightbox.open img {
    transform: scale(1);
}

#lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10003;
}

#lightbox-close:hover {
    color: var(--primary);
    transform: rotate(90deg) scale(1.1);
}

.lb-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 3rem;
    cursor: pointer;
    z-index: 10002;
    transition: 0.3s;
    padding: 20px;
}

.lb-nav-btn:hover {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

#lb-prev {
    left: 20px;
}

#lb-next {
    right: 20px;
}

/* --- HOME SECTIONS --- */
.split-section {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
    z-index: 10;
}

.split-stats {
    flex: 1;
    min-width: 300px;
    background: var(--bg-card);
    padding: 4rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    perspective: 1000px;
}

.split-zone {
    flex: 1;
    min-width: 300px;
    background: var(--bg-dark);
    padding: 4rem 5%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #222;
}

.zone-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.zone-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
}

.zone-badge:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(233, 69, 96, 0.2);
}

.zone-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.zone-title {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.zone-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.zone-item {
    font-size: 1.1rem;
    font-weight: 400;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.zone-item i {
    color: var(--primary);
    font-size: 0.9rem;
}

.badges-section {
    padding: 3rem 5%;
    background: var(--bg-dark);
    position: relative;
    z-index: 10;
}

.competitions-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.comp-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 250px;
    transition: 0.3s;
    cursor: default;
}

.comp-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.badge-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

.badge-info {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1.2;
}

.badge-sub {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

.special-badge {
    border-color: var(--primary);
    background: rgba(233, 69, 96, 0.05);
}

.special-badge:hover {
    background: rgba(233, 69, 96, 0.15);
}

.gear-section {
    padding: 5rem 5%;
    background: linear-gradient(to bottom, var(--bg-dark), #150d14);
    position: relative;
    z-index: 10;
}

.gear-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 5rem;
}

.gear-item {
    text-align: center;
    width: 160px;
    transition: 0.3s;
    opacity: 0.7;
}

.gear-item:hover {
    transform: translateY(-10px) scale(1.1);
    opacity: 1;
}

.gear-icon {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    display: inline-block;
}

.gear-item:hover .gear-icon {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary);
}

.gear-name {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--primary);
    display: block;
    margin-bottom: 2px;
}

.gear-detail {
    font-size: 0.8rem;
    color: #ccc;
    font-style: italic;
}

.fame-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.fame-card {
    min-width: 260px;
    height: 360px;
    position: relative;
}

.fame-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, var(--primary), transparent);
    transform: translateY(100%) translateZ(20px);
    transition: 0.4s;
}

.fame-card:hover .fame-overlay,
.fame-card.scroll-active .fame-overlay {
    transform: translateY(0) translateZ(20px);
}

/* --- INSTAGRAM --- */
.insta-section {
    padding: 6rem 5%;
    background: var(--bg-card);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.insta-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    perspective: 1500px;
}

.insta-card {
    width: 260px;
    height: 320px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.insta-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insta-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(113, 75, 103, 0.9), transparent);
    transform: translateY(100%) translateZ(20px);
    transition: 0.4s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.insta-card:hover .insta-meta,
.insta-card.scroll-active .insta-meta {
    transform: translateY(0) translateZ(20px);
}

.insta-user {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.insta-icon {
    color: white;
    font-size: 1.4rem;
}

/* --- CONTACT --- */
.contact-section {
    padding: 6rem 5%;
    background: #050505;
    text-align: center;
    position: relative;
    z-index: 10;
}

.contact-cta-text {
    margin-bottom: 2rem;
    color: #aaa;
    font-size: 1.1rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: left;
}

.faq-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.faq-question {
    padding: 15px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.3s;
    border-bottom: 1px solid #333;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    color: #aaa;
    font-size: 0.95rem;
}

.faq-answer.open {
    padding-bottom: 15px;
}

/* TERRAIN & FORMULAIRE RESTAURÉS */
.tactical-board {
    max-width: 800px;
    height: 450px;
    margin: 0 auto 4rem auto;
    background: radial-gradient(circle at center, #1a201a 0%, #0a0d0a 100%);
    border: 4px solid #fff;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    perspective: 1000px;
}

.tactical-line {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.mid-line {
    width: 0;
    height: 100%;
    left: 50%;
    top: 0;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
}

.center-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.center-spot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
}

.box-left {
    width: 60px;
    height: 160px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border-left: none;
}

.box-right {
    width: 60px;
    height: 160px;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-right: none;
}

/* Boutons fixes mais avec effet hover */
.player-token {
    position: absolute;
    width: 65px;
    height: 65px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.player-token i {
    color: #ffffff !important;
    font-size: 1.6rem;
    transition: 0.3s;
    opacity: 1 !important;
}

.player-token:hover {
    background: var(--primary);
    border-color: white;
    transform: scale(1.15);
    box-shadow: 0 0 20px var(--primary);
}

.token-label {
    position: absolute;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    background: rgba(0, 0, 0, 0.85);
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: 0.3s;
    white-space: nowrap;
    width: fit-content;
}

.player-token:hover .token-label {
    opacity: 1;
    top: 85px;
}

/* Style original de la feuille de match */
.match-sheet-form {
    max-width: 600px;
    margin: 4rem auto 0 auto;
    background: #fff;
    color: #000;
    padding: 2rem;
    transform: rotate(-1deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.match-sheet-form::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.form-header {
    border-bottom: 2px solid #000;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.form-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.8rem;
}

.form-date {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #555;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #000;
    background: #f0f0f0;
    font-family: 'Montserrat', sans-serif;
}

.form-submit {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 1rem;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    transition: 0.3s;
    letter-spacing: 2px;
    font-size: 1.1rem;
}

.form-submit:hover {
    background: var(--primary);
}

/* --- PAGE STATS / DATA --- */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5%;
    position: relative;
    z-index: 10;
    overflow-x: hidden;
}

.page-header {
    margin-bottom: 4rem;
    border-left: 4px solid var(--primary);
    padding-left: 20px;
}

.page-title {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 10px;
    font-weight: 700;
    transition: 0.3s ease;
}

.title-primary {
    color: var(--primary);
    transition: 0.3s;
}

.title-white {
    color: #fff;
    transition: 0.3s;
}

.page-title:hover {
    transform: translateX(10px) scale(1.02);
}

.page-title:hover .title-primary {
    color: #fff;
    text-shadow: 0 0 20px var(--primary);
}

.page-title:hover .title-white {
    color: var(--primary);
}

.page-subtitle {
    color: var(--text-muted);
    max-width: 600px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Section Saison (Progress Bar) - moved global for mobile */
.season-container {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin-bottom: 4rem;
    position: relative;
}

.season-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 15px;
}

.season-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.season-val {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.progress-track {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #ff7b9c);
    width: 0%;
    transition: width 1.5s ease-out;
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.4);
    position: relative;
}

.season-dates {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .kpi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .kpi-value {
        font-size: 3.5rem;
        font-weight: 700;
        line-height: 1;
        margin-bottom: 0.5rem;
        color: #fff;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }

    .kpi-label {
        color: var(--text-muted);
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    /* Espacement pour les boutons dans les cartes */
    .card-overlay .btn {
        margin-top: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    }

    .card-overlay .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
    }

    /* Tableaux Data */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 15px;
        transition: all 0.3s ease;
        cursor: default;
    }

    .section-title:hover {
        transform: translateX(10px) scale(1.02);
        color: var(--primary);
        text-shadow: 0 0 20px var(--primary);
    }

    .section-title::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border-color);
        transition: 0.3s;
    }

    .section-title:hover::after {
        background: var(--primary);
        box-shadow: 0 0 10px var(--primary);
    }

    .data-table-wrapper {
        background: var(--bg-panel);
        border: 1px solid var(--border-color);
        overflow-x: auto;
        margin-bottom: 4rem;
    }

    .data-table {
        width: 100%;
        border-collapse: collapse;
        min-width: 600px;
    }

    .data-table th {
        text-align: left;
        padding: 1.5rem;
        color: var(--text-muted);
        font-weight: 400;
        font-size: 0.8rem;
        text-transform: uppercase;
        border-bottom: 1px solid var(--border-color);
    }

    .data-table td {
        padding: 1.5rem;
        border-bottom: 1px solid #1a1a1a;
        font-size: 0.95rem;
    }

    .data-table tr:last-child td {
        border-bottom: none;
    }

    .data-table tr:hover {
        background: rgba(255, 255, 255, 0.02);
    }

    .badge {
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        font-family: 'Oswald', sans-serif;
        letter-spacing: 1px;
    }

    .badge-n1 {
        background: #fff;
        color: #000;
    }

    .badge-n3 {
        background: #333;
        color: #fff;
        border: 1px solid #555;
    }

    .badge-cup {
        background: #E9B109;
        color: #000;
    }

    .badge-u19 {
        background: var(--primary);
        color: #fff;
    }

    .pass-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 12px;
        border-radius: 4px;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .pass-pitch {
        background: rgba(0, 255, 65, 0.1);
        color: #00ff41;
        border-color: rgba(0, 255, 65, 0.3);
    }

    .pass-full {
        background: rgba(233, 69, 96, 0.1);
        color: var(--primary);
        border-color: rgba(233, 69, 96, 0.3);
    }

    .table-club-name {
        font-weight: 700;
        color: #fff;
        display: block;
        font-family: 'Oswald', sans-serif;
        letter-spacing: 0.5px;
    }

    .table-sub-text {
        font-size: 0.75rem;
        color: #666;
    }

    /* Sections Clubs */
    .club-section-wrapper {
        margin-bottom: 4rem;
    }

    .division-row {
        background: var(--bg-panel);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 2rem;
        margin-bottom: 2rem;
        position: relative;
        overflow: hidden;
    }

    .division-row::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
    }

    .row-l1::before {
        background: #DAA520;
    }

    .row-nat::before {
        background: var(--primary);
    }

    .row-reg::before {
        background: #fff;
    }

    .division-label {
        font-family: 'Oswald', sans-serif;
        text-transform: uppercase;
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        color: var(--text-muted);
        letter-spacing: 2px;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .division-logo {
        height: 35px;
        width: auto;
        display: block;
    }

    .club-grid-dashboard {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        align-items: center;
    }

    .club-bubble {
        width: 90px;
        height: 90px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 1px solid rgba(255, 255, 255, 0.05);
        padding: 15px;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .club-bubble img {
        max-width: 100%;
        max-height: 100%;
        filter: grayscale(100%) brightness(0.8);
        opacity: 0.7;
        transition: 0.3s;
    }

    .club-bubble:hover {
        transform: translateY(-5px) scale(1.1);
        background: rgba(233, 69, 96, 0.1);
        border-color: var(--primary);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .club-bubble:hover img {
        filter: grayscale(0%);
        opacity: 1;
    }

    .grid-2-cols {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .info-panel {
        background: var(--bg-panel);
        border: 1px solid var(--border-color);
        padding: 2rem;
        height: 100%;
    }

    .workflow-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #222;
        padding-bottom: 10px;
    }

    .workflow-item:last-child {
        border: none;
        margin: 0;
        padding: 0;
    }

    .wf-label {
        color: #aaa;
        font-size: 0.9rem;
    }

    .wf-val {
        font-weight: 700;
        color: #fff;
        font-family: 'JetBrains Mono', monospace;
    }

    /* Social Cards */
    .social-dashboard-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .social-card-new {
        padding: 1.5rem;
        text-align: center;
    }

    .sc-insta {
        border-top: 3px solid #E1306C;
    }

    .sc-tiktok {
        border-top: 3px solid #00f2ea;
    }

    .sc-icon {
        font-size: 1.5rem;
        margin-bottom: 10px;
        display: inline-block;
    }

    .sc-number {
        display: block;
        font-size: 2rem;
        font-weight: 700;
        font-family: 'Oswald', sans-serif;
        line-height: 1;
        margin: 10px 0;
    }

    .sc-label {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #888;
        display: block;
        margin-bottom: 5px;
    }

    .sc-grid-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sc-detail-item {
        text-align: center;
    }

    .sc-detail-val {
        display: block;
        font-family: 'Oswald', sans-serif;
        font-size: 1.1rem;
        font-weight: 700;
        color: #fff;
    }

    .sc-detail-lbl {
        font-size: 0.65rem;
        color: #888;
        text-transform: uppercase;
    }

    .footer-note {
        text-align: center;
        color: #444;
        font-size: 0.8rem;
        margin-top: 4rem;
        padding-top: 2rem;
        border-top: 1px solid var(--border-color);
    }
}

/* --- MODAL MATCHS (STYLE) --- */
#match-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(5px);
}

#match-modal.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #101010;
    border: 1px solid var(--primary);
    padding: 0;
    border-radius: 12px;
    width: 95%;
    max-width: 650px;
    position: relative;
    box-shadow: 0 0 50px rgba(233, 69, 96, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s;
    overflow: hidden;
}

#match-modal.open .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 2rem 2.5rem 1rem 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #151515;
}

.modal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    margin: 0;
    text-transform: uppercase;
}

.close-modal {
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.match-list {
    list-style: none;
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
}

.match-list::-webkit-scrollbar {
    width: 5px;
}

.match-list::-webkit-scrollbar-thumb {
    background: #333;
}

.match-row {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    align-items: center;
    padding: 1.2rem 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.2s;
}

.match-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.match-row:last-child {
    border-bottom: none;
}

.m-affiche-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.club-logo-mini {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.m-versus {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}

.m-versus span {
    color: #555;
    font-size: 0.9rem;
    margin: 0 5px;
}

.m-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    min-width: 100px;
}

.bg-cup {
    background: linear-gradient(45deg, #E9B109, #b8860b);
    color: #000;
    box-shadow: 0 0 10px rgba(233, 177, 9, 0.3);
}

.bg-n1 {
    background: #fff;
    color: #000;
}

.bg-u19 {
    background: var(--primary);
    color: #fff;
}

/* --- RESPONSIVE MOBILE & TABLETTE (Correction Finale Taille & Débordement) --- */
@media (max-width: 1024px) {

    /* 1. SÉCURITÉ GLOBALE ANTI-DÉBORDEMENT */
    html,
    body {
        overflow-x: hidden !important;
        position: relative;
        max-width: 100vw !important;
        width: 100vw !important;
    }

    /* Réduction des marges globales du site sur mobile */
    .dashboard-container,
    .portfolio,
    .recent-matches-section,
    .contact-section,
    .split-stats,
    .split-zone,
    .insta-section,
    .gear-section,
    .about-section {
        padding: 3rem 15px !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .comp-badge {
        min-width: unset !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* FIX: Header cache les titres sur mobile */
    .dashboard-container,
    .about-section {
        padding-top: 160px !important;
    }

    /* 2. HEADER & TYPO COMPACTE */
    header {
        flex-direction: column;
        padding: 15px 5%;
        gap: 15px;
        text-align: center;
    }

    header nav ul {
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

    header nav a {
        font-size: 0.8rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    /* Titre plus petit */
    .hero h1 {
        font-size: 2.5rem;
    }

    .main-title {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    /* 3. GRILLES SUR 1 COLONNE */
    .grid-2-cols,
    .kpi-grid,
    .social-dashboard-grid,
    .stats-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* AMÉLIORATION PAGE STATS - Cartes KPI plus compactes */
    .kpi-grid,
    .photo-card {
        margin-bottom: 1.5rem !important;
    }

    .photo-card {
        min-height: 280px !important;
        max-height: 320px !important;
    }

    .card-title {
        font-size: 1.5rem !important;
    }

    .card-count {
        font-size: 0.85rem !important;
    }

    /* AMÉLIORATION PAGE STATS - Espacements optimisés */
    .section-title {
        margin-bottom: 1.5rem !important;
        text-align: center !important;
    }

    .club-section-wrapper {
        margin-bottom: 2rem !important;
    }

    .division-row {
        margin-bottom: 1rem !important;
        padding: 1rem !important;
    }

    .club-grid-dashboard {
        gap: 0.8rem !important;
    }

    /* AMÉLIORATION PAGE STATS - Lisibilité workflow */
    .grid-2-cols {
        gap: 1.5rem !important;
    }

    .info-panel {
        padding: 1.5rem !important;
    }

    .workflow-item {
        padding: 0.5rem 0 !important;
    }

    .wf-label,
    .wf-val {
        font-size: 0.9rem !important;
    }

    /* AMÉLIORATION PAGE STATS - Stats sociales */
    .social-dashboard-grid {
        gap: 1rem !important;
    }

    .social-card-new {
        padding: 1.5rem !important;
    }

    /* AMÉLIORATION PAGE ABOUT - Centrage complet */
    .about-container {
        text-align: center !important;
    }

    .about-text {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
    }

    .zone-badge {
        text-align: center !important;
        margin: 0 auto 2rem auto !important;
    }

    .zone-list {
        align-items: center !important;
    }

    .zone-item {
        justify-content: center !important;
    }

    .stats-grid {
        justify-content: center !important;
    }

    .stat-item {
        text-align: center !important;
    }

    /* 4. TABLEAU "ACCORDÉON" COMPACT */
    .data-table-wrapper {
        width: 100% !important;
        background: transparent;
        border: none;
        padding: 0 !important;
        margin: 0 !important;
    }

    .data-table,
    .data-table tbody {
        display: block;
        width: 100%;
    }

    .data-table thead {
        display: none;
    }

    .data-table tr {
        display: block;
        width: 100% !important;
        margin-bottom: 1.5rem;
        background: #121212;
        border: 1px solid var(--border-color);
        border-left: 3px solid var(--primary);
        border-radius: 8px;
        padding: 1rem;
        /* Padding interne réduit */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        box-sizing: border-box;
        /* CRUCIAL pour ne pas dépasser */
    }

    .data-table td {
        display: block;
        width: 100%;
        padding: 0.3rem 0;
        /* Espacement vertical réduit */
        border: none;
        text-align: left;
        font-size: 0.85rem;
        /* Texte plus petit */
        word-wrap: break-word;
        /* Coupe les mots longs */
    }

    /* Styles spécifiques pour hiérarchiser */
    .data-table td:nth-child(1) {
        font-size: 1rem;
        font-weight: bold;
        color: #fff;
        margin-bottom: 2px;
    }

    /* Niveau */
    .data-table td:nth-child(2) {
        color: var(--primary);
        font-size: 0.8rem;
        margin-bottom: 5px;
        font-family: 'Oswald', sans-serif;
    }

    /* Compétition */
    .data-table td:nth-child(3) {
        color: #ccc;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 8px;
    }

    .data-table td:nth-child(4) {
        margin-top: 0;
    }

    /* Badge */
    .pass-badge {
        width: 100%;
        justify-content: center;
        font-size: 0.75rem;
        padding: 5px;
    }

    /* 5. CARTES & SURVOL "ALWAYS ON" */
    .tilt-card,
    .stat-card,
    .social-card-new {
        transform: none !important;
        filter: grayscale(0%) !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
    }

    .tilt-card img {
        filter: grayscale(0%) !important;
        opacity: 1 !important;
        transform: scale(1.05) !important;
    }

    .card-overlay {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0.6) 80%, transparent) !important;
        padding: 1.5rem !important;
    }

    .kpi-value,
    .stat-num {
        color: #fff !important;
    }

    .kpi-icon {
        color: var(--primary) !important;
        opacity: 1 !important;
    }

    /* 6. INSTAGRAM & MODAL */
    .insta-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .insta-card {
        width: 100% !important;
        height: 200px !important;
        /* Moins haut */
    }

    .modal-content {
        width: 95% !important;
        margin: 0 auto;
    }

    .match-row {
        padding: 0.8rem !important;
    }

    .m-versus {
        font-size: 1rem !important;
    }

    /* Cache le curseur lumineux sur mobile */
    #cursor-glow {
        display: none;
    }

    /* 1. TYPO & HEADER */
    .hero h1 {
        font-size: 3rem;
    }

    .main-title {
        font-size: 3.5rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    header {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 15px;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* 2. LAYOUT / GRILLES */
    .split-zone {
        padding: 3rem 5%;
    }

    .stats-cards-grid {
        grid-template-columns: 1fr;
    }

    .grid-2-cols,
    .kpi-grid,
    .social-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .club-grid-dashboard {
        justify-content: center;
    }

    /* CORRECTION INSTAGRAM MOBILE */
    .insta-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .insta-card {
        width: 100% !important;
        height: 250px !important;
        margin: 0 !important;
        transform: none !important;
        border-radius: 8px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .insta-card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: top center !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .insta-meta {
        padding: 10px !important;
        left: 0 !important;
        width: 100% !important;
        bottom: 0 !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent) !important;
        flex-direction: row !important;
        justify-content: space-between !important;
    }

    .insta-user {
        font-size: 0.7rem !important;
    }

    .insta-icon {
        font-size: 1.1rem !important;
    }

    /* IMAGES & TITRES TOUJOURS ACTIFS */
    .tilt-card,
    .stat-card,
    .social-card-new,
    .kpi-card-enhanced {
        transform: none !important;
        filter: grayscale(0%) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }

    .tilt-card img,
    .photo-card img {
        filter: grayscale(0%) !important;
        opacity: 1 !important;
        transform: scale(1.05) !important;
    }

    .card-overlay,
    .fame-overlay {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) translateZ(0) !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 30%, rgba(0, 0, 0, 0.5) 70%, transparent) !important;
        padding-bottom: 1.5rem !important;
    }

    .kpi-value,
    .stat-num,
    .sc-number {
        color: #fff !important;
    }

    .kpi-icon,
    .gear-icon,
    .zone-icon,
    .sc-icon {
        color: var(--primary) !important;
        text-shadow: 0 0 15px rgba(233, 69, 96, 0.4) !important;
        transform: scale(1) !important;
        opacity: 1 !important;
    }

    .tilt-card .kpi-value {
        color: var(--primary) !important;
    }

    /* TABLEAU STATS (CORRECTION DÉCALAGE DROITE) */
    .data-table-wrapper {
        /* On annule la sortie de piste compliquée */
        background: transparent;
        border: none;
        overflow: visible;
        /* On force le tableau à rester DANS la page */
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        left: auto !important;
        right: auto !important;
        padding: 0 !important;
    }

    .data-table,
    .data-table tbody {
        display: block;
        width: 100% !important;
        /* AJOUT DE LA CORRECTION ICI */
        min-width: 0 !important;
    }

    .data-table thead {
        display: none;
    }

    .data-table tr {
        display: block;
        /* On remplit simplement l'espace disponible */
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 1.5rem 0;
        /* Marge en bas uniquement */
        background: #121212;
        border: 1px solid var(--border-color);
        border-left: 3px solid var(--primary);
        border-radius: 8px;
        padding: 1rem;
        position: relative;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        box-sizing: border-box;
        /* Important pour que le padding ne déborde pas */
    }

    .data-table td {
        display: block;
        width: 100% !important;
        padding: 0.5rem 0;
        border: none;
        text-align: left;
        /* Coupe les mots trop longs si nécessaire */
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Le reste du style des cellules reste identique */
    .data-table td:nth-child(1) {
        font-size: 1.2rem;
        font-weight: bold;
        color: #fff;
        margin-bottom: 5px;
    }

    .data-table td:nth-child(2) {
        color: var(--primary);
        font-family: 'Oswald', sans-serif;
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .data-table td:nth-child(3) {
        color: #ccc;
        font-size: 0.9rem;
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 10px;
        width: 100% !important;
    }

    .data-table td:nth-child(4) {
        margin-top: 5px;
        width: 100%;
    }

    .pass-badge {
        width: 100%;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

    /* MODAL MATCHS */
    .modal-content {
        width: 92% !important;
        max-height: 85vh;
        margin: 0 auto;
        border: 1px solid var(--primary);
    }

    .match-list {
        padding: 0 10px;
    }

    .match-row {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 1rem 0.5rem !important;
        background: rgba(255, 255, 255, 0.02);
        margin-bottom: 10px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .m-date {
        display: inline-block;
        background: rgba(255, 255, 255, 0.1);
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 0.7rem;
        color: #fff;
        margin-bottom: 5px;
    }

    .m-affiche-container {
        justify-content: center;
        width: 100%;
        gap: 10px;
        flex-direction: column;
    }

    .club-logo-mini {
        width: 45px !important;
        height: 45px !important;
    }

    .m-versus {
        font-size: 1.1rem !important;
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }

    .m-badge {
        width: 100%;
        margin-top: 5px;
        font-size: 0.8rem;
        padding: 6px 0;
    }

    /* GLOBAL */
    #cursor-glow {
        display: none;
    }

    /* CORRECTION GAP / WORKFLOW */
    .club-section-wrapper,
    .grid-2-cols {
        margin-bottom: 2rem !important;
    }

    .workflow-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }

    .wf-val {
        text-align: left;
        color: var(--primary);
    }

    /* FIX: Logos clubs trop grands sur mobile */
    .club-grid-dashboard {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 1rem !important;
    }

    .club-bubble {
        width: 60px !important;
        height: 60px !important;
        padding: 10px !important;
        display: flex !important;
    }

    .club-bubble img {
        max-width: 40px !important;
        max-height: 40px !important;
    }

    .division-row {
        margin-bottom: 1.5rem !important;
    }

    .division-logo {
        height: 25px !important;
    }

    /* FIX: Titre "À Propos de Moi" coupé sur mobile */
    h2.about-subtitle {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
    }

    .about-section h2 {
        font-size: 1.5rem !important;
    }

    .page-title {
        font-size: 1.6rem !important;
    }
}

/* --- FILTRES GALERIE --- */
#gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.6rem 1.5rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 50px;
    transition: 0.3s;
    font-size: 0.85rem;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

/* --- ABOUT NEW SECTION --- */
.about-section {
    padding: 6rem 5%;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
    position: relative;
    z-index: 10;
}

.about-container {
    display: flex;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-profile {
    flex: 0 0 350px;
    text-align: center;
}

.profile-frame {
    width: 300px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    margin: 0 auto 1.5rem auto;
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.profile-socials a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    transition: 0.3s;
}

.profile-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.3);
}

.about-content {
    flex: 1;
}

.about-subtitle {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.about-subtitle .highlight {
    display: block;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 5px;
    letter-spacing: 2px;
    font-family: 'Oswald', sans-serif;
}

.about-text {
    color: #aaa;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.text-white {
    color: #fff;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-item .stat-label {
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.zone-action {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.zone-action h4 {
    color: #fff;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}

.zone-action h4 i {
    color: var(--primary);
    margin-right: 8px;
}

.zone-action p {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .about-profile {
        flex: auto;
        width: 100%;
    }

    .profile-frame {
        max-width: 200px;
        /* Reduced from 280px */
        height: auto;
        aspect-ratio: 3/4;
    }

    .about-text {
        text-align: center !important;
        padding: 0 10px;
    }

    .zone-action {
        text-align: center !important;
    }

    .zone-badge {
        text-align: center !important;
    }

    .zone-list {
        align-items: center !important;
    }

    .zone-item {
        justify-content: center !important;
    }

    /* Centrage des cartes Matchs/Niveau */
    .stats-grid {
        display: flex !important;
        justify-content: center !important;
        gap: 1.5rem !important;
        flex-wrap: wrap !important;
    }

    .stat-item {
        text-align: center !important;
        flex: 0 1 auto !important;
    }

    .stat-number,
    .stat-label {
        text-align: center !important;
    }

    /* Fix: Scroll anchors cachés par le header */
    #portfolio,
    #contact {
        scroll-margin-top: 160px;
    }
}

/* --- RECENT MATCHES SECTION --- */
.recent-matches-section {
    padding: 6rem 5%;
    background: var(--bg-dark);
    position: relative;
}

.match-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.match-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.match-card:hover::before {
    transform: scaleX(1);
}

.match-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.2);
}

.match-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.match-date i {
    color: var(--primary);
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.match-team-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.match-team-name {
    font-size: 0.9rem;
    color: #fff;
    text-align: center;
    font-weight: 600;
}

.match-vs {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
}

.match-competition {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .match-timeline {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .match-card {
        padding: 1.5rem 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Centrage global */
        text-align: center;
    }

    .match-date {
        justify-content: center;
        /* Centrage de la date */
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .match-team-logo {
        width: 30px !important;
        /* Un peu plus grand que 25px pour lisibilité */
        height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
    }

    .match-team-name {
        font-size: 0.8rem;
        /* Un peu plus lisible */
        word-break: break-word;
    }

    .match-vs {
        font-size: 1rem;
    }

    .match-teams {
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
        /* Centrage des équipes */
    }

    /* Style Badge comme Historique Accred */
    .match-competition {
        background: #222;
        color: #fff;
        border: 1px solid #333;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        margin-top: 5px;
        padding: 0.6rem 1.2rem;
        width: auto;
        min-width: 120px;
        text-align: center;
    }
}

/* Force animations on mobile if they were disabled globally */
@media (max-width: 768px) {
    .reveal {
        /* Reset to allow JS animation */
        opacity: 0;
        transition: opacity 0.6s ease;
    }

    .reveal.active {
        opacity: 1;
    }
}



/* ===========================
   DATA VISUALIZATION SECTION STYLES
   =========================== */
.data-viz-section {
    margin: 4rem auto;
    max-width: 1400px;
    padding: 0 2rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.chart-container {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chart-container:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 60px rgba(233, 69, 96, 0.2);
    transform: translateY(-5px);
}

.chart-container:hover::before {
    opacity: 1;
}

.chart-container h3 {
    font-family: 'Oswald', sans-serif;
    color: #fff;
    margin-bottom: 1.8rem;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.chart-container:hover h3 {
    color: var(--primary);
}

.chart-container h3 i {
    color: var(--primary);
    font-size: 1.1rem;
}

.chart-container canvas {
    max-height: 320px;
    margin-bottom: 1rem;
}

.chart-note {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-style: italic;
    letter-spacing: 0.5px;
}

/* Responsive adjustments for charts */
@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .chart-container {
        padding: 2rem 1.5rem;
    }

    .chart-container h3 {
        font-size: 1.1rem;
    }

    .chart-container canvas {
        max-height: 280px;
    }

    .data-viz-section {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .chart-container {
        padding: 1.5rem 1rem;
    }

    .chart-container h3 {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .chart-container canvas {
        max-height: 250px;
    }
}

/* --- ABOUT PAGE STYLES --- */
.about-section {
    padding: 120px 10% 4rem;
    min-height: 100vh;
    background: var(--bg-dark);
}

.about-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease;
}

.about-container.active {
    opacity: 1;
    transform: translateY(0);
}

.about-profile {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-frame {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.profile-frame:hover img {
    transform: scale(1.05);
}

.profile-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--bg-panel);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-socials a {
    font-size: 1.5rem;
    color: var(--text-gray);
    transition: 0.3s;
}

.profile-socials a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.about-content {
    flex: 1;
}

.about-subtitle {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: white;
}

.about-subtitle .highlight {
    color: var(--primary);
    display: block;
}

.about-text {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.text-white {
    color: white;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.stat-item {
    background: var(--bg-panel);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: 0.3s;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    font-family: 'Oswald', sans-serif;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zone-action {
    background: linear-gradient(45deg, rgba(233, 69, 96, 0.1), transparent);
    padding: 2rem;
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
}

.zone-action h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.zone-action p {
    color: var(--text-gray);
    margin: 0;
}

/* Responsive About */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        align-items: center;
    }



    .about-profile {
        width: 100%;
        max-width: 400px;
    }

    .about-subtitle {
        font-size: 2rem;
        text-align: center;
    }
}

/* --- CUSTOM OVERRIDES --- */
.kpi-grid .photo-card {
    height: 250px;
}

.kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 0 5%;
}


/* --- MOBILE OPTIMIZATIONS (STATS PAGE) --- */
@media (max-width: 768px) {

    /* 1. Fix Charts Overflow */
    .data-viz-section {
        padding: 0 1rem;
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }

    .charts-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-top: 1rem !important;
    }

    .chart-container {
        padding: 1.5rem 1rem !important;
    }

    /* 2. Compact KPI Grid (2 cols) */
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 5px !important;
    }

    .kpi-grid .photo-card {
        height: 160px !important;
        /* Much smaller height */
    }

    /* Target icons inside the photo-card to override inline styles */
    .kpi-grid .photo-card i {
        font-size: 2rem !important;
    }

    .kpi-grid .card-title {
        font-size: 1.1rem !important;
        margin-bottom: 5px !important;
    }

    .kpi-grid .card-cat {
        font-size: 0.6rem !important;
        margin-bottom: 0 !important;
    }

    .kpi-grid .card-overlay {
        padding: 0.8rem !important;
    }

    /* 3. Button adjustments */
    .kpi-grid .btn {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.65rem !important;
        width: 100% !important;
    }

    /* 4. Table adjustments */
    .data-table-wrapper {
        padding: 0 5px !important;
    }
}

/* --- APPAREILS TACTILES (Tablettes et mobiles sans survol) --- */
@media (hover: none) {

    .photo-card,
    .tilt-card,
    .stat-card,
    .social-card-new {
        transform: none !important;
    }

    .photo-card img,
    .tilt-card img {
        opacity: 1 !important;
        transform: scale(1.05) !important;
    }

    .card-overlay {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0.6) 80%, transparent) !important;
        padding: 1.5rem !important;
    }
}