/* ==========================================================================
   SOOAR - DESIGN SYSTEM MINIMALISTE & ATHLÉTIQUE (STYLE STRAVA / BEVEL)
   Teinte Ardoise Modérée • Vert Mat Subtil • Arborescence Tournoi Foot/Tennis
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Rubik+One&display=swap');

/* Polices Officielles SOOAR (Dossier /font) */
@font-face {
    font-family: 'Phatt';
    src: url('../font/Revive 80 Phatt.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Phatt-Outline';
    src: url('../font/Revive 80 Phatt Outline.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Revive-Wide';
    src: url('../font/Revive 80 Wide.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Revive-Tall';
    src: url('../font/Revive 80 Tall.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Police Rubik Locale (Dossier /font/rubik - Variable & Statiques Black/ExtraBold) */
@font-face {
    font-family: 'Rubik';
    src: url('../font/rubik/Rubik-VariableFont_wght.ttf') format('truetype-variations'),
         url('../font/rubik/static/Rubik-Black.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../font/rubik/static/Rubik-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../font/rubik/static/Rubik-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../font/rubik/static/Rubik-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Teinte Ardoise Technique Équilibrée (Ni trop sombre, ni trop claire - esprit Strava) */
    --bg-base: #181d26;
    --bg-gradient-top: #252e3c;
    --bg-gradient-mid: #1c232d;
    --bg-gradient-bottom: #141920;

    /* Cartes & Boîtes Modérées (Translucides, Style Liquide Sombre Apple comme le Haut) */
    --liquid-surface: rgba(20, 26, 36, 0.52);
    --liquid-surface-hover: rgba(26, 34, 46, 0.65);
    --liquid-elevated: rgba(24, 32, 44, 0.70);
    --liquid-border: rgba(255, 255, 255, 0.08);
    --liquid-border-focus: rgba(47, 235, 153, 0.40);
    --liquid-dock: rgba(18, 24, 32, 0.94);

    /* Typographie Sobre & Lisible */
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --tech-white: #F8FAFC;

    /* Vert SOOAR Original Rendu Subtil, Doux et Translucide */
    --volt-interactive: #2feb99;
    --volt-interactive-hover: #26c781;
    --volt-interactive-soft: rgba(47, 235, 153, 0.82);
    --volt-surface: rgba(47, 235, 153, 0.10);
    --volt-surface-hover: rgba(47, 235, 153, 0.18);
    --volt-border: rgba(47, 235, 153, 0.28);
    --volt-glow: transparent;
    --volt-deep: #167a4d;
    --player-light: #72ffd4;

    /* Vert Réservé aux Infos Clés & Menu du Bas */
    --volt-critical: #2feb99;
    --volt-critical-light: #72ffd4;
    --dock-master-green: #2feb99;
    --dock-master-green-hover: #26c781;

    /* Accents Modérés */
    --rival-pink: #f43f5e;
    --cyan-speed: #38bdf8;
    --alert-red: #ef4444;
    --flame-amber: #f59e0b;
    --gold-rank: #eab308;
    --silver-rank: #94a3b8;
    --bronze-rank: #b45309;

    --font-phatt: 'Phatt', sans-serif;
    --font-rubik: 'Rubik One', 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-athlete: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --curve-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mode Clair Alternatif */
body.light-theme {
    --bg-base: #F8FAFC;
    --bg-gradient-top: #FFFFFF;
    --bg-gradient-mid: #F1F5F9;
    --bg-gradient-bottom: #E2E8F0;
    --liquid-surface: rgba(255, 255, 255, 0.90);
    --liquid-surface-hover: #FFFFFF;
    --liquid-elevated: #FFFFFF;
    --liquid-border: rgba(15, 23, 42, 0.08);
    --liquid-dock: rgba(255, 255, 255, 0.96);
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --tech-white: #0F172A;
}

/* Reset Global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-athlete);
    -webkit-font-smoothing: antialiased;
    line-height: 1.4;
}

/* Overlay Grain Asphalte Intensifié */
.asphalt-grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.085;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Viewport Mobile Épuré */
.app-viewport {
    max-width: 460px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: radial-gradient(circle at 50% 5%, var(--bg-gradient-top) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-bottom) 100%);
    display: flex;
    flex-direction: column;
    padding-bottom: 95px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   HEADER TRANSPARENT FLOTTANT (SANS BANDE GRISE)
   Logo et icônes flottants directement sur le fond sans cacher le contenu
   ========================================================================== */
.sooar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px 6px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 1600;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.yellow-badge-pill.header-points-pill {
    display: inline-flex;
    align-items: center;
    background: #dedc18;
    border-radius: 18px;
    padding: 3px 10px 3px 3px;
    height: 32px;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.40);
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: transform 0.15s ease;
}

.yellow-badge-pill.header-points-pill * {
    pointer-events: none;
}

.yellow-badge-pill.header-points-pill:active {
    transform: scale(0.94);
}

.yellow-badge-pill.header-points-pill .yb-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    background: transparent;
}

.yellow-badge-pill.header-points-pill .yb-asterisk {
    width: 20px;
    height: 20px;
}

.yellow-badge-pill.header-points-pill .yb-number {
    font-family: var(--font-rubik);
    font-size: 13px;
    font-weight: 400;
    color: #1b1b28;
    letter-spacing: -0.2px;
    line-height: 1;
}

.header-brand {
    display: flex;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
}

.sooar-official-logo {
    height: 28px;
    max-width: 100px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.75));
    transition: transform 0.2s ease;
}

.sooar-official-logo:active {
    transform: scale(0.95);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.flames-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(20, 26, 36, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 6px 11px;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.40);
    transition: transform 0.15s, box-shadow 0.15s;
}

.flames-pill:active { transform: scale(0.93); }

.flames-icon {
    width: 14px;
    height: 14px;
    fill: var(--flame-amber);
    filter: drop-shadow(0 1px 3px rgba(245, 158, 11, 0.5));
}

.flames-count {
    font-size: 12px;
    font-weight: 900;
    color: var(--flame-amber);
}

.quick-menu-trigger-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(20, 26, 36, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.40);
    transition: transform 0.15s;
}

.quick-menu-trigger-btn:active { transform: scale(0.92); }

.quick-menu-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Menu Pop-Down Déroulant */
.quick-popdown-menu {
    position: absolute;
    top: 62px;
    right: 18px;
    width: 240px;
    background: var(--liquid-dock);
    border: 1px solid var(--liquid-border);
    border-radius: 18px;
    padding: 10px;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1200;
    animation: popdownAnim 0.2s var(--curve-ease);
}

.quick-popdown-menu.active {
    display: flex;
}

@keyframes popdownAnim {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.popdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
    text-decoration: none;
}

#popdown-user-name {
    font-family: var(--font-rubik);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.popdown-item:hover, .popdown-item:active {
    background: rgba(34, 197, 94, 0.12);
    color: var(--volt-interactive);
}

.popdown-item i {
    width: 16px;
    color: var(--text-secondary);
}

.popdown-divider {
    height: 1px;
    background: var(--liquid-border);
    margin: 4px 0;
}

/* ==========================================================================
   PANNEAUX D'ONGLETS
   ========================================================================== */
.app-tab-panel {
    display: none;
    padding: 72px 18px 24px;
    animation: fadeInTab 0.2s var(--curve-ease);
}

#tab-panel-home {
    padding: 68px 18px 24px;
}

.app-tab-panel.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   ACCUEIL : AFFRONTEMENT EN FOND IMMERSIF EN HAUT (FONDU SOMBRE DOUX)
   ========================================================================== */
.home-immersive-duel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 440px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.immersive-duel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 8%;
    filter: brightness(0.92) contrast(1.05);
}

.immersive-duel-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(24, 29, 38, 0.25) 0%,
        rgba(24, 29, 38, 0.15) 20%,
        rgba(24, 29, 38, 0.60) 65%,
        rgba(24, 29, 38, 0.95) 88%,
        var(--bg-base) 100%
    );
}

/* Scène de Duel Direct Posée par-dessus (Descendue pour bien voir les visages) */
.home-duel-stage {
    position: relative;
    z-index: 2;
    padding-top: 42px;
    margin-bottom: 14px;
}

.duel-stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 8px;
}

/* Bande Verte avec Icône Étoile pour les Points & Déclencheur Infos Garmin */
.points-green-strip {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(47, 235, 153, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.30);
}

.points-green-strip:hover {
    background: rgba(16, 185, 129, 0.28);
    border-color: rgba(47, 235, 153, 0.65);
}

.points-green-strip:active {
    transform: scale(0.96);
}

.pg-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pg-star {
    color: #facc15;
    font-size: 11.5px;
    filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.6));
}

.pg-val {
    font-family: var(--font-rubik);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #2feb99;
    text-transform: uppercase;
}

.pg-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 12px;
    opacity: 0.85;
    margin-left: 2px;
}

/* ==========================================================================
   BADGE JAUNE DE LA CHARTE GRAPHIQUE (Astérisque 12 pétales + 9854789)
   ========================================================================== */
.yellow-badge-pill {
    display: inline-flex;
    align-items: center;
    background: #dedc18;
    border-radius: 24px;
    padding: 3px 14px 3px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease;
    cursor: default;
}

.yellow-badge-pill:active {
    transform: scale(0.96);
}

.yb-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dedc18;
    margin-right: 6px;
}

.yb-asterisk {
    width: 20px;
    height: 20px;
}

.yb-number {
    font-size: 15px;
    font-weight: 900;
    color: #1b1b28;
    letter-spacing: -0.3px;
    line-height: 1;
}

.duel-round-chip {
    font-family: var(--font-rubik);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #FFFFFF;
    background: rgba(20, 26, 36, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 10px;
    border-radius: 12px;
}

/* Zone de Confrontation Pure Typographie : Distance à GAUCHE + Noms en PETIT en BLANC */
.duel-stage-canvas {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 14px;
    padding: 6px 0 10px;
    box-sizing: border-box;
}

/* Sarah Morand : En haut à droite en petit en blanc (monté plus haut) */
.ath-typo-top-right {
    position: absolute;
    top: -38px;
    right: 2px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 2;
}

/* Alexandre Roche : En bas à gauche en petit en blanc */
.ath-typo-bottom-left {
    margin-top: 4px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 2;
}

.ath-name-small-white {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #FFFFFF;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.90), 0 2px 10px rgba(0, 0, 0, 0.90);
    line-height: 1.2;
}

.ath-pace-small-white {
    font-size: 10px;
    font-weight: 800;
    color: #FFFFFF;
    margin-top: 1px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.90);
    opacity: 0.92;
}

.ath-pace-small-white.volt {
    color: #4ade80;
}

/* Boutons Carrés : Infos Garmin & S'affronter (Alignés en bas à droite du texte à droite) */
.ath-canvas-actions-right {
    position: absolute;
    bottom: 2px;
    right: 2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 4;
}

.stage-square-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 0;
}

.stage-square-icon-btn:active {
    transform: scale(0.92);
}

.stage-square-icon-btn.info-btn {
    background: rgba(20, 26, 36, 0.75);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
}

.stage-square-icon-btn.info-btn:hover {
    background: rgba(32, 42, 58, 0.90);
    border-color: rgba(255, 255, 255, 0.40);
}

.stage-square-icon-btn.challenge-btn {
    background: rgba(18, 26, 38, 0.85);
    border-color: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    font-size: 13px;
}

.stage-square-icon-btn.challenge-btn:hover {
    background: rgba(28, 38, 54, 0.95);
    border-color: rgba(255, 255, 255, 0.50);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}

/* Distance Unique en Phatt : ALIGNÉE À GAUCHE (pas centrée) */
.duel-single-distance.left-aligned {
    text-align: left;
    align-self: flex-start;
    margin: 8px 0 2px;
    z-index: 2;
}

.duel-single-distance.left-aligned .phatt-dist-wrapper {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.duel-single-distance.left-aligned .phatt-dist-val {
    font-family: 'Phatt', sans-serif;
    font-size: 52px;
    line-height: 0.9;
    color: #FFFFFF;
    letter-spacing: -1px;
    filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.85));
}

.duel-single-distance.left-aligned .phatt-dist-unit {
    font-family: 'Phatt', sans-serif;
    font-size: 26px;
    color: #FFFFFF;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.85));
}

.duel-single-distance.left-aligned .duel-dist-sub {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
    text-align: left;
}

/* ==========================================================================
   LIGNE DE DÉPART DE COURSE ATHLÉTIQUE (STARTING BLOCKS & GATE DE DUEL)
   Connectée directement au sport et à la confrontation sur l'asphalte
   ========================================================================== */
.athletic-start-gate {
    width: 100%;
    margin-top: 4px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.start-gate-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(16, 21, 29, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 10px 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Couloirs de départ athlétiques */
.start-lane {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.start-lane.lane-player {
    align-items: flex-start;
    text-align: left;
}

.start-lane.lane-rival {
    align-items: flex-end;
    text-align: right;
}

.start-lane-block {
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
}

.lane-rival .start-lane-block {
    flex-direction: row-reverse;
}

.lane-num {
    font-family: var(--font-rubik);
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.10);
    color: #FFFFFF;
}

.lane-player .lane-num {
    color: var(--volt-interactive);
    background: rgba(47, 235, 153, 0.15);
}

.lane-runner {
    font-family: var(--font-athlete);
    font-size: 11px;
    font-weight: 800;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lane-mark {
    font-family: var(--font-athlete);
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 2px;
}

.lane-player .lane-mark {
    color: rgba(47, 235, 153, 0.90);
}

/* Hub Central Déclencheur : Feux de Départ + Bouton Tactile "TOP DÉPART" */
.start-trigger-hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 0 4px;
}

/* Rampe de Feux de Départ */
.start-lights-strip {
    display: flex;
    gap: 4px;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    padding: 2px 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.start-light {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0.55;
}

.start-light.red {
    background: #ef4444;
}

.start-light.amber {
    background: #f59e0b;
}

.start-light.green {
    background: #2feb99;
    opacity: 1;
}

/* Bouton Tactile "TOP DÉPART" Athlétique */
.start-trigger-btn {
    border: 1.5px solid rgba(47, 235, 153, 0.55);
    background: linear-gradient(135deg, rgba(47, 235, 153, 0.22) 0%, rgba(18, 24, 34, 0.95) 100%);
    border-radius: 12px;
    padding: 6px 12px;
    color: #FFFFFF;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.40);
    transition: transform 0.16s var(--curve-ease), border-color 0.16s ease, background 0.16s ease;
}

.start-trigger-btn:hover {
    border-color: var(--volt-interactive);
    background: linear-gradient(135deg, rgba(47, 235, 153, 0.32) 0%, rgba(22, 30, 42, 0.98) 100%);
    transform: translateY(-1px);
}

.start-trigger-btn:active {
    transform: scale(0.95);
}

.trigger-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.trigger-inner i {
    font-size: 10px;
    color: var(--volt-interactive);
}

.trigger-label {
    font-family: var(--font-rubik);
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #FFFFFF;
}

.start-trigger-caption {
    font-family: var(--font-rubik);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.60);
    text-transform: uppercase;
}

/* Ligne d'asphalte et puce d'avance Minetti */
.start-asphalt-line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0 8px;
    position: relative;
}

.asphalt-hash {
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,0.40) 0px, rgba(255,255,255,0.40) 8px, transparent 8px, transparent 14px);
    border-radius: 1px;
}

.start-gate-delta-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(20, 26, 36, 0.60);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px 12px;
    font-family: var(--font-athlete);
    font-size: 10.5px;
    color: var(--text-secondary);
}

.start-gate-delta-pill i {
    color: var(--volt-interactive);
    font-size: 11px;
}

.start-gate-delta-pill .delta-lead {
    color: var(--volt-interactive);
    font-weight: 800;
}

/* ==========================================================================
   JAUGE DE CONFRONTATION MINETTI (SPECTRE DÉGRADÉ & CURSEURS BLANC / MENTHE)
   Inspirée fidèlement de l'image de spectre de duel avec les 2 curseurs
   ========================================================================== */
.minetti-gauge-card {
    width: 100%;
    background: rgba(16, 22, 30, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 14px 10px;
    box-sizing: border-box;
}

.minetti-gauge-card.start-gate-gauge {
    margin-top: 4px;
    background: rgba(16, 21, 29, 0.75);
    border-color: rgba(255, 255, 255, 0.10);
}

.minetti-gauge-card.under-chart {
    margin-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.minetti-gauge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 6px;
}

.gauge-ath-left,
.gauge-ath-right {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.gauge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gauge-dot.mint {
    background: #2feb99;
    box-shadow: 0 0 6px rgba(47, 235, 153, 0.6);
}

.gauge-dot.white {
    background: #FFFFFF;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.gauge-name {
    font-family: var(--font-athlete);
    font-size: 10.5px;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gauge-val {
    font-family: var(--font-athlete);
    font-size: 10px;
    font-weight: 800;
}

.gauge-val.volt {
    color: var(--volt-interactive);
}

.gauge-val.rival {
    color: var(--text-secondary);
}

.gauge-delta-badge {
    font-family: var(--font-rubik);
    font-size: 8.5px;
    font-weight: 400;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #FFFFFF;
    background: rgba(47, 235, 153, 0.15);
    border: 1px solid rgba(47, 235, 153, 0.35);
    padding: 2px 7px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Conteneur Piste & Curseurs */
.minetti-track-wrap {
    position: relative;
    width: 100%;
    height: 32px;
    display: flex;
    align-items: center;
    margin: 4px 0 6px;
}

/* Barre de Dégradé Exacte de l'Image : Rouge (Retard) -> Jaune -> Vert (Avance) */
.minetti-gradient-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ef4444 0%, #f97316 26%, #facc15 50%, #84cc16 76%, #10b981 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.40);
}

/* Curseurs Circulaires (Thumb) */
.minetti-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.minetti-thumb:hover {
    transform: translate(-50%, -50%) scale(1.12);
}

/* Curseur 1 : Blanc avec anneau argenté (Sarah Morand) */
.minetti-thumb.thumb-white {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2.5px solid #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    z-index: 2;
}

/* Curseur 2 : Menthe / Cyan avec anneau blanc épais (Alexandre Roche +6m) */
.minetti-thumb.thumb-mint {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #6ee7b7;
    border: 3px solid #FFFFFF;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.50);
    z-index: 3;
}

/* Étiquettes au-dessus des curseurs */
.thumb-floating-tag {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-athlete);
    font-size: 8.5px;
    font-weight: 800;
    color: #FFFFFF;
    background: rgba(15, 20, 28, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 1px 5px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.40);
}

.thumb-floating-tag.volt {
    color: #2feb99;
    border-color: rgba(47, 235, 153, 0.35);
}

/* Pied de la jauge */
.minetti-gauge-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-athlete);
    font-size: 9.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

.gauge-gain-highlight {
    font-weight: 800;
    color: var(--volt-interactive);
}

/* ==========================================================================
   CURSEURS CARRÉS AU BORD ARRONDI NOIR ET BLANC SUR LA JAUGE COLORÉE
   Blanc devant = Blanc à droite | Noir devant = Noir à droite (Blanc = Moi)
   ========================================================================== */
.track-thumb-square {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    z-index: 3;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.track-thumb-square:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

/* Carré Blanc (Alexandre Roche / Moi) */
.track-thumb-square.thumb-white-square {
    background: #FFFFFF;
    border: 2px solid #0f172a;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.50), 0 0 10px rgba(255, 255, 255, 0.60);
}

/* Carré Noir (Sarah Morand / Rival) */
.track-thumb-square.thumb-black-square {
    background: #0f172a;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.70);
}

.thumb-square-tag {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    padding: 1px 6px;
    border-radius: 6px;
    font-family: var(--font-athlete);
    font-size: 8.5px;
    font-weight: 900;
    white-space: nowrap;
    line-height: 1.2;
    pointer-events: none;
}

.thumb-white-square .thumb-square-tag {
    bottom: calc(100% + 6px);
    top: auto;
    background: #FFFFFF;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.40);
}

.thumb-black-square .thumb-square-tag {
    top: calc(100% + 6px);
    bottom: auto;
    background: #0f172a;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.50);
}

/* ==========================================================================
   CARRÉ VERT AVEC ICÔNE TRENDING_UP EN HAUT À DROITE DU WIDGET NOIR ET BLANC
   ========================================================================== */
.vs-top-lead-square {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #2feb99;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 10px rgba(47, 235, 153, 0.45);
    cursor: default;
}

.vs-top-lead-square .vs-trend-icon {
    font-size: 19px;
    color: #1f1f1f;
    font-weight: 700;
    line-height: 1;
    user-select: none;
}

/* ==========================================================================
   TÉLÉMÉTRIE DE COURSE BRUTE GARMIN & ENJEU EN POINTS (MODALE DÉTAILS)
   ========================================================================== */
.garmin-points-stakes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.stake-box {
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stake-box.win {
    background: rgba(16, 185, 129, 0.12);
    border: 1.5px solid rgba(16, 185, 129, 0.40);
}

.stake-box.loss {
    background: rgba(239, 68, 68, 0.12);
    border: 1.5px solid rgba(239, 68, 68, 0.40);
}

.stake-label {
    font-family: var(--font-rubik);
    font-size: 8.5px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.stake-box.win .stake-label { color: #2feb99; }
.stake-box.loss .stake-label { color: #f87171; }

.stake-val {
    font-family: var(--font-phatt);
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.stake-box.win .stake-val { color: #2feb99; }
.stake-box.loss .stake-val { color: #ef4444; }

.stake-desc {
    font-family: var(--font-athlete);
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.garmin-raw-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    background: rgba(20, 26, 36, 0.50);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.garmin-raw-table tr:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.garmin-raw-table td {
    padding: 9px 12px;
    font-size: 11px;
}

.garmin-raw-table .garmin-k {
    color: var(--text-secondary);
    font-family: var(--font-athlete);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
}

.garmin-raw-table .garmin-v {
    text-align: right;
    color: #FFFFFF;
    font-family: var(--font-athlete);
    font-weight: 800;
    font-size: 12px;
}

.garmin-raw-table .garmin-v.volt {
    color: var(--volt-interactive);
}

/* ==========================================================================
   PROFIL STRATÉGIQUE GARMIN PACEPRO (5.0 KM) POUR BATTRE LE RIVAL
   Remplace la bande de répétition des noms sous l'image de confrontation
   ========================================================================== */
.pacepro-duel-card {
    width: 100%;
    background: rgba(16, 22, 30, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 14px 14px 12px;
    margin-top: 4px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.40);
    box-sizing: border-box;
}

.pacepro-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 8px;
}

.pacepro-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pacepro-title-row i {
    color: var(--volt-interactive);
    font-size: 11px;
}

.pacepro-title {
    font-family: var(--font-rubik);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #FFFFFF;
}

.pacepro-subtitle {
    font-family: var(--font-athlete);
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.pacepro-target-chip {
    font-family: var(--font-rubik);
    font-size: 8.5px;
    font-weight: 400;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--volt-interactive);
    background: rgba(47, 235, 153, 0.14);
    border: 1px solid rgba(47, 235, 153, 0.35);
    padding: 3px 8px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Bande des 5 Kilomètres Colorés PacePro */
.pacepro-splits-strip {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    background: rgba(10, 14, 20, 0.60);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 10px 8px 8px;
    margin-bottom: 12px;
}

.pacepro-split-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.split-elev-bar {
    width: 100%;
    border-radius: 6px 6px 2px 2px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 3px;
    transition: transform 0.16s ease;
}

.split-elev-bar:hover {
    transform: translateY(-2px);
}

.split-dplus {
    font-family: var(--font-athlete);
    font-size: 7.5px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
}

/* Couleurs Garmin PacePro par tronçon */
.split-km1 .split-elev-bar {
    background: linear-gradient(180deg, #06b6d4 0%, rgba(6, 182, 212, 0.45) 100%);
    border: 1px solid rgba(6, 182, 212, 0.6);
}

.split-km2 .split-elev-bar {
    background: linear-gradient(180deg, #10b981 0%, rgba(16, 185, 129, 0.45) 100%);
    border: 1px solid rgba(16, 185, 129, 0.6);
}

.split-km3 .split-elev-bar {
    background: linear-gradient(180deg, #f59e0b 0%, rgba(245, 158, 11, 0.45) 100%);
    border: 1px solid rgba(245, 158, 11, 0.6);
}

.split-km4 .split-elev-bar {
    background: linear-gradient(180deg, #22c55e 0%, rgba(34, 197, 94, 0.45) 100%);
    border: 1px solid rgba(34, 197, 94, 0.6);
}

.split-km5 .split-elev-bar {
    background: linear-gradient(180deg, #2feb99 0%, rgba(47, 235, 153, 0.55) 100%);
    border: 1px solid #2feb99;
    box-shadow: 0 0 8px rgba(47, 235, 153, 0.35);
}

.split-km-badge {
    font-family: var(--font-rubik);
    font-size: 7.5px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-top: 5px;
}

.split-pace {
    font-family: var(--font-athlete);
    font-size: 10px;
    font-weight: 900;
    color: #FFFFFF;
    margin-top: 1px;
    white-space: nowrap;
}

.split-pace.volt {
    color: var(--volt-interactive);
}

.split-lead {
    font-family: var(--font-athlete);
    font-size: 8px;
    font-weight: 800;
    margin-top: 2px;
    padding: 1px 4px;
    border-radius: 4px;
}

.split-lead.positive {
    color: #72ffd4;
    background: rgba(47, 235, 153, 0.12);
}

.split-lead.win {
    color: #0f172a;
    background: #2feb99;
    font-weight: 900;
}

/* Pied PacePro (Centré sans bouton de lancement) */
.pacepro-footer-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
}

.pacepro-summary-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-athlete);
    font-size: 10px;
    color: var(--text-secondary);
}

.pacepro-summary-text i {
    font-size: 10px;
    color: var(--volt-interactive);
}

.pacepro-summary-text strong {
    color: #FFFFFF;
}

.pacepro-launch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(47, 235, 153, 0.25) 0%, rgba(20, 26, 36, 0.95) 100%);
    border: 1.5px solid rgba(47, 235, 153, 0.55);
    border-radius: 12px;
    padding: 7px 14px;
    color: #FFFFFF;
    font-family: var(--font-rubik);
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: all 0.16s var(--curve-ease);
    flex-shrink: 0;
}

.pacepro-launch-btn i {
    font-size: 9px;
    color: var(--volt-interactive);
}

.pacepro-launch-btn:hover {
    border-color: var(--volt-interactive);
    background: linear-gradient(135deg, rgba(47, 235, 153, 0.38) 0%, rgba(26, 34, 46, 0.98) 100%);
    transform: translateY(-1px);
}

.pacepro-launch-btn:active {
    transform: scale(0.96);
}

/* ==========================================================================
   WIDGET PROFIL D'ÉLÉVATION DANS LES LIGUES (SOOAROS & CLASSEMENTS)
   ========================================================================== */
.circuit-elevation-widget {
    background: rgba(20, 26, 36, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.30);
}

.circuit-elev-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.circuit-elev-title {
    font-family: var(--font-rubik);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #FFFFFF;
}

.circuit-elev-sub {
    font-family: var(--font-athlete);
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.circuit-elev-pill {
    font-family: var(--font-rubik);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--volt-interactive);
    background: rgba(47, 235, 153, 0.12);
    border: 1px solid rgba(47, 235, 153, 0.30);
    padding: 3px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.circuit-svg-wrap {
    width: 100%;
    height: 90px;
    margin: 4px 0 10px;
}

.circuit-elev-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.circuit-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    background: rgba(10, 14, 20, 0.45);
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.c-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.c-stat span {
    font-family: var(--font-rubik);
    font-size: 7px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.c-stat strong {
    font-family: var(--font-athlete);
    font-size: 10px;
    font-weight: 800;
    color: #FFFFFF;
    margin-top: 2px;
}

.c-stat strong.volt {
    color: var(--volt-interactive);
}

/* ==========================================================================
   WIDGET ÉLITE (MEILLEURS APPORTS EN POINTS À L'ÉQUIPE)
   Badge de points sur le bas droit du cercle : Jaune #1, Orange #2, etc.
   ========================================================================== */
.team-elite-widget {
    background: rgba(20, 26, 36, 0.60);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.30);
}

.team-elite-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.team-elite-title {
    font-family: var(--font-rubik);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #FFFFFF;
}

.team-elite-subtitle {
    font-family: var(--font-athlete);
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.team-elite-podium-row {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0 8px;
}

.elite-podium-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
}

/* Avatar avec Badge en bas à droite */
.elite-avatar-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    margin-bottom: 8px;
}

.elite-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.elite-podium-col.rank-1 .elite-avatar-img {
    border-color: #facc15;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.35);
}

.elite-podium-col.rank-2 .elite-avatar-img {
    border-color: #f97316;
}

.elite-podium-col.rank-3 .elite-avatar-img {
    border-color: #d97706;
}

/* Badge de Points Posé sur le Bas Droit du Cercle */
.elite-points-badge {
    position: absolute;
    bottom: -3px;
    right: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 2px 5px;
    border-radius: 10px;
    font-family: var(--font-athlete);
    font-size: 8.5px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.50);
    border: 1.5px solid #181d26;
    white-space: nowrap;
}

/* Jaune pour le meilleur, Orange ensuite, etc. */
.elite-points-badge.gold {
    background: #facc15;
    color: #1b1b28;
}

.elite-points-badge.orange {
    background: #f97316;
    color: #FFFFFF;
}

.elite-points-badge.amber {
    background: #d97706;
    color: #FFFFFF;
}

.elite-podium-name {
    font-family: var(--font-athlete);
    font-size: 11px;
    font-weight: 800;
    color: #FFFFFF;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.elite-podium-pct {
    font-family: var(--font-athlete);
    font-size: 9.5px;
    color: var(--text-secondary);
    margin-top: 1px;
}

/* Badge dans la liste détaillée des athlètes */
.rank-avatar-wrap {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.rank-avatar-points-pill {
    position: absolute;
    bottom: -2px;
    right: -3px;
    display: inline-flex;
    align-items: center;
    padding: 1px 4px;
    border-radius: 8px;
    font-family: var(--font-athlete);
    font-size: 7.5px;
    font-weight: 900;
    line-height: 1;
    border: 1px solid #181d26;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.rank-avatar-points-pill.gold {
    background: #facc15;
    color: #1b1b28;
}

.rank-avatar-points-pill.orange {
    background: #f97316;
    color: #FFFFFF;
}

.rank-avatar-points-pill.amber {
    background: #d97706;
    color: #FFFFFF;
}

.rank-avatar-points-pill.slate {
    background: #64748b;
    color: #FFFFFF;
}

/* ==========================================================================
   DESIGN DUAL NOIR ET BLANC (MI-CLAIR / MI-FONCÉ) POUR TOUS LES VERSUS
   ========================================================================== */
.versus-split-card {
    display: flex;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    margin-bottom: 14px;
}

.versus-split-card .vs-col {
    flex: 1;
    min-width: 0;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.versus-split-card .vs-col-light {
    background: linear-gradient(155deg, #f8fafc 0%, #e2e8f0 100%);
    color: #0f172a;
}

.versus-split-card .vs-col-dark {
    background: linear-gradient(155deg, #151a24 0%, #090c13 100%);
    color: #f8fafc;
    border-left: 1px solid rgba(255, 255, 255, 0.10);
}

.vs-col-badge {
    font-family: var(--font-rubik);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 6px;
    align-self: flex-start;
    margin-bottom: 6px;
}

.vs-col-light .vs-col-badge {
    background: rgba(15, 23, 42, 0.08);
    color: #1e293b;
}

.vs-col-dark .vs-col-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.vs-ath-name {
    font-family: var(--font-athlete);
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vs-col-light .vs-ath-name {
    color: #1e293b;
}

.vs-col-dark .vs-ath-name {
    color: #f8fafc;
}

.vs-stat-num {
    font-family: var(--font-phatt);
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.vs-col-light .vs-stat-num {
    color: #0f172a;
}

.vs-col-dark .vs-stat-num {
    color: #ffffff;
}

.vs-stat-sub {
    font-family: var(--font-athlete);
    font-size: 9px;
    font-weight: 700;
}

.vs-col-light .vs-stat-sub {
    color: #64748b;
}

.vs-col-dark .vs-stat-sub {
    color: #94a3b8;
}

.vs-status-pill {
    margin-top: 8px;
    align-self: flex-start;
    padding: 3px 6px;
    border-radius: 6px;
    font-family: var(--font-rubik);
    font-size: 7.5px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.vs-status-pill.win {
    background: #0f172a;
    color: #2feb99;
}

.vs-status-pill.ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

/* Compatibilité boutons secondaires */
.duel-stage-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 16px;
}

.duel-delta-chip {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(20, 26, 36, 0.70);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.duel-delta-chip i {
    color: var(--volt-interactive);
    font-size: 11px;
    flex-shrink: 0;
}

.duel-delta-chip .delta-lead {
    color: var(--volt-interactive);
    font-weight: 900;
}

.duel-compact-action-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(47, 235, 153, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(47, 235, 153, 0.38);
    border-radius: 12px;
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #FFFFFF;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.duel-compact-action-btn:hover {
    background: rgba(47, 235, 153, 0.24);
    border-color: rgba(47, 235, 153, 0.55);
    transform: translateY(-1px);
}

.duel-compact-action-btn:active {
    transform: scale(0.96);
}

/* ==========================================================================
   DÉTAILS DE L'ACTIVITÉ DU JOUR (DESIGN DUAL MI-CLAIR MI-FONCÉ DUEL)
   Inspiré directement de la photo de split hero (Jour vs Nuit)
   ========================================================================== */
.today-activity-section {
    margin-bottom: 22px;
    width: 100%;
}

.today-split-card {
    display: flex;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    margin-bottom: 8px;
}

/* Volet Gauche : Mi-Clair (Journée / Alexandre Roche) */
.split-col {
    flex: 1;
    min-width: 0;
    padding: 16px 14px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.split-col-light {
    background: linear-gradient(155deg, #f8fafc 0%, #e2e8f0 100%);
    color: #0f172a;
}

.split-col-dark {
    background: linear-gradient(155deg, #151a24 0%, #090c13 100%);
    color: #f8fafc;
    border-left: 1px solid rgba(255, 255, 255, 0.10);
}

/* Badge En-tête Couloir */
.split-col-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-rubik);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 8px;
    align-self: flex-start;
    margin-bottom: 6px;
}

.split-col-light .split-col-badge {
    background: rgba(15, 23, 42, 0.08);
    color: #1e293b;
}

.split-col-dark .split-col-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.split-ath-name {
    font-family: var(--font-athlete);
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.split-col-light .split-ath-name {
    color: #334155;
}

.split-col-dark .split-ath-name {
    color: #94a3b8;
}

/* Bloc Allure Clé (Titre en Rubik One, Nombre en Phatt) */
.split-metric-block {
    margin-bottom: 12px;
}

.split-metric-label {
    font-family: var(--font-rubik);
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.split-col-light .split-metric-label {
    color: #475569;
}

.split-col-dark .split-metric-label {
    color: #94a3b8;
}

.split-pace-val {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.split-phatt-num {
    font-family: var(--font-phatt);
    font-size: 32px;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -1px;
}

.split-col-light .split-phatt-num {
    color: #0f172a;
}

.split-col-dark .split-phatt-num {
    color: #ffffff;
}

.split-pace-unit {
    font-family: var(--font-athlete);
    font-size: 9.5px;
    font-weight: 700;
}

.split-col-light .split-pace-unit {
    color: #64748b;
}

.split-col-dark .split-pace-unit {
    color: #94a3b8;
}

/* Sous-métriques de l'activité */
.split-sub-metrics {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    border-top: 1px dashed;
    padding-top: 8px;
}

.split-col-light .split-sub-metrics {
    border-color: rgba(15, 23, 42, 0.12);
}

.split-col-dark .split-sub-metrics {
    border-color: rgba(255, 255, 255, 0.10);
}

.split-sub-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.split-sub-item .sub-lbl {
    font-family: var(--font-athlete);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.split-col-light .split-sub-item .sub-lbl {
    color: #64748b;
}

.split-col-dark .split-sub-item .sub-lbl {
    color: #94a3b8;
}

.split-sub-item .sub-val {
    font-family: var(--font-athlete);
    font-size: 11px;
    font-weight: 800;
}

.split-col-light .split-sub-item .sub-val {
    color: #0f172a;
}

.split-col-dark .split-sub-item .sub-val {
    color: #f8fafc;
}

.split-sub-item .sub-val.phatt-sub {
    font-family: var(--font-phatt);
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
}

/* Pastille statut */
.split-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-rubik);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 8px;
    margin-top: auto;
}

.split-tag-pill.light-tag {
    background: #0f172a;
    color: #2feb99;
}

.split-tag-pill.dark-tag {
    background: rgba(255, 255, 255, 0.10);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Barre de Spécifications Techniques sous la carte split */
.today-specs-strip {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(20, 26, 36, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 8px 12px;
}

.spec-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.spec-k {
    font-family: var(--font-rubik);
    font-size: 7.5px;
    font-weight: 400;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.spec-v {
    font-family: var(--font-athlete);
    font-size: 10px;
    font-weight: 800;
    color: #FFFFFF;
}

.spec-sep {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   CARTE GRAPHIQUE D'ÉVOLUTION DE LA PERFORMANCE (ALIGNÉE SUR LE STYLE DU HAUT)
   ========================================================================== */
.evolution-chart-card {
    background: rgba(20, 26, 36, 0.50);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.30);
}

.evo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.evo-title {
    font-family: var(--font-rubik);
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #FFFFFF;
}

.evo-subtitle {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 1px;
    font-weight: 600;
}

.evo-stat-badge {
    background: rgba(20, 26, 36, 0.70);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 4px 10px;
    text-align: right;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.evo-gain-val {
    font-size: 11px;
    font-weight: 900;
    color: var(--volt-interactive);
    line-height: 1;
}

.evo-gain-lbl {
    font-size: 8px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.60);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.evo-metrics-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 8px 2px 14px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 12px;
}

.evo-metric-col {
    display: flex;
    flex-direction: column;
}

.evo-m-lbl {
    font-size: 8.5px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.50);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.evo-m-val {
    font-size: 17px;
    font-weight: 900;
    color: #FFFFFF;
    margin-top: 2px;
    letter-spacing: -0.3px;
}

.evo-m-val small {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
}

.evo-m-val.volt { color: var(--volt-interactive); }
.evo-m-val.cyan { color: var(--cyan-speed); }

.evo-chart-viewport {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.evo-chart-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.evo-point {
    cursor: pointer;
    transition: r 0.15s ease, stroke-width 0.15s ease;
}

.evo-point:hover, .evo-point:active {
    r: 6;
    stroke-width: 3.5;
}

.evo-point-active {
    animation: evoActivePulse 2s infinite ease-in-out;
    cursor: pointer;
}

@keyframes evoActivePulse {
    0%, 100% { r: 6; }
    50% { r: 8; }
}

.evo-tooltip {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 26, 36, 0.90);
    backdrop-filter: blur(14px);
    border: 1px solid var(--volt-interactive);
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    color: #FFFFFF;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0.95;
    transition: opacity 0.2s ease;
}

.evo-timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 6px;
    padding: 0 6px;
}

.duel-stage-actions {
    margin-top: 4px;
}

.duel-stage-delta {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 10px;
    background: rgba(20, 26, 36, 0.55);
    backdrop-filter: blur(12px);
    padding: 6px 12px;
    border-radius: 12px;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Bouton Interactif Style Liquid Apple */
.interactive-volt-btn {
    width: 100%;
    padding: 13px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0.12) 100%), var(--volt-interactive);
    color: #0c121c;
    border-top: 1.5px solid rgba(255, 255, 255, 0.50);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.20);
    border-bottom: 1px solid rgba(0, 0, 0, 0.35);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.interactive-volt-btn:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(0, 0, 0, 0.15) 100%), var(--volt-interactive-hover);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.interactive-volt-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Benchmarks à Plat */
.perf-stat-card {
    background: var(--liquid-surface);
    border: 1px solid var(--liquid-border);
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
}

.perf-stat-item {
    display: flex;
    flex-direction: column;
}

.perf-stat-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.perf-stat-number {
    font-size: 18px;
    font-weight: 900;
    color: var(--text-primary);
}

/* Sports Scroller */
.sports-scroller {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 16px;
    scrollbar-width: none;
}

.sports-scroller::-webkit-scrollbar { display: none; }

.sport-chip {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--liquid-surface);
    border: 1px solid var(--liquid-border);
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.sport-chip.active {
    background: rgba(34, 197, 94, 0.15);
    border-color: var(--volt-interactive);
    color: var(--text-primary);
}

.section-headline {
    font-family: var(--font-rubik);
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-headline span {
    font-family: var(--font-rubik);
    font-weight: 400;
}

.headline-action {
    color: var(--volt-interactive);
    cursor: pointer;
    text-decoration: none;
    font-weight: 800;
}

/* ==========================================================================
   ARBORESCENCE TYPE POULE FOOT / TENNIS (CONNECTEURS PROPRES)
   ========================================================================== */
.bracket-pure-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Boîte du dessus cliquable */
.tier-trigger-box {
    background: var(--liquid-surface);
    border: 1px solid var(--liquid-border);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.tier-trigger-box:hover, .tier-trigger-box:active {
    border-color: var(--liquid-border-focus);
}

.tier-trigger-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tier-badge-pill {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 9px;
    font-weight: 800;
    color: var(--text-secondary);
    align-self: flex-start;
}

.tier-trigger-title {
    font-size: 17px;
    font-weight: 900;
    color: var(--text-primary);
}

.tier-trigger-sub {
    font-size: 11px;
    color: var(--text-secondary);
}

.tier-trigger-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 12px;
}

/* ==========================================================================
   ARBRE DE DUEL TYPE LIGUE AVEC EMBRANCHEMENTS (GAGNÉ / PERDU / REPRISE DU FLUX)
   ========================================================================== */
/* ==========================================================================
   ARBRE DE TOURNOI VERTICAL DESCENDANT (MODE ARBRE VERS LE BAS)
   ========================================================================== */
.vtree-pure-container {
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 110px;
}

.vtree-canvas {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 6px;
}

.vtree-level-header {
    margin: 8px 0 6px;
    text-align: center;
}

.vtree-level-tag {
    font-family: var(--font-rubik);
    font-size: 8.5px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid var(--liquid-border);
}

.vtree-level-tag.live-tag {
    color: var(--volt-interactive);
    background: var(--volt-surface);
    border-color: var(--volt-border);
    animation: livePulseTag 2s infinite ease-in-out;
}

@keyframes livePulseTag {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

/* Lignes de Nœuds Horizontales */
.vtree-row {
    display: flex;
    width: 100%;
    gap: 6px;
    justify-content: space-between;
}

.vtree-row-4 .vtree-node {
    flex: 1;
    min-width: 0;
    padding: 6px 6px;
}

.vtree-row-2 {
    gap: 12px;
    padding: 0 10px;
    box-sizing: border-box;
}

.vtree-row-2 .vtree-node {
    flex: 1;
    padding: 8px 10px;
}

/* Nœud de Match Compact */
.vtree-node {
    background: var(--liquid-surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--liquid-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.vtree-node.highlight-user {
    border-color: var(--volt-border);
    background: linear-gradient(135deg, var(--volt-surface) 0%, var(--liquid-surface) 100%);
}

.vtree-node-ath {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
}

.vtree-node-ath span {
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 4px;
}

.vtree-node-ath.winner {
    color: #FFFFFF;
    font-weight: 800;
}

.vtree-node-ath.winner strong {
    color: var(--volt-interactive);
    font-size: 10px;
}

.vtree-node-ath.loser {
    opacity: 0.50;
    font-size: 9.5px;
}

/* Connecteurs SVG Descendants */
.vtree-svg-connector {
    width: 100%;
    height: 38px;
    margin: 2px 0;
    overflow: visible;
}

.vtree-path {
    stroke: rgba(255, 255, 255, 0.14);
    stroke-width: 2px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vtree-path.volt {
    stroke: var(--volt-border);
    stroke-width: 2.2px;
}

.vtree-path.loss {
    stroke: rgba(245, 158, 11, 0.40);
    stroke-width: 2px;
}

/* Carte de Demi-Finale Active Centrale */
.vtree-active-match-card {
    width: 100%;
    max-width: 380px;
    background: linear-gradient(135deg, var(--volt-surface) 0%, rgba(20, 26, 36, 0.90) 100%);
    border: 1.5px solid var(--volt-border);
    border-radius: 18px;
    padding: 12px 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.40);
    box-sizing: border-box;
}

.vtree-active-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.vtree-active-pill {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.6px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.vtree-diff-badge {
    font-size: 9px;
    font-weight: 800;
    color: var(--volt-interactive);
    background: var(--volt-surface);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid var(--volt-border);
}

.vtree-active-athletes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.vtree-ath-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(14, 19, 27, 0.60);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.vtree-ath-row.user {
    border-color: var(--volt-border);
}

.vtree-ath-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #FFFFFF;
}

.vtree-pace {
    font-size: 12px;
    font-weight: 900;
}

.vtree-pace.volt { color: var(--volt-interactive); }
.vtree-pace.pink { color: var(--rival-pink); }

.vtree-play-btn {
    padding: 10px 14px;
    font-size: 11px;
}

/* L'Embranchement Fourche Descendante */
.vtree-fork-connector {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 2px 0 6px;
}

.vtree-fork-svg {
    width: 100%;
    height: 44px;
    overflow: visible;
}

.vtree-fork-badges {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    top: -12px;
}

.fork-badge {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 6px;
}

.fork-badge.win-badge {
    background: var(--volt-surface);
    color: var(--volt-interactive);
    border: 1px solid var(--volt-border);
}

.fork-badge.loss-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Les Deux Colonnes de Branches : Finale vs Consolidation */
.vtree-branches-row {
    display: flex;
    width: 100%;
    gap: 10px;
    align-items: stretch;
}

.vtree-branch-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.vtree-branch-label {
    font-family: var(--font-rubik);
    font-size: 8.5px;
    font-weight: 400;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-align: center;
    padding: 4px;
    border-radius: 8px;
}

.win-col-label {
    background: var(--volt-surface);
    color: var(--volt-interactive);
    border: 1px solid var(--volt-border);
}

.loss-col-label {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.30);
}

/* Nœud Finale Apex */
.final-apex-node {
    padding: 12px 10px;
    text-align: center;
    border-color: rgba(234, 179, 8, 0.35);
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.10) 0%, var(--liquid-surface) 100%);
    flex: 1;
    justify-content: center;
}

.vtree-final-trophy {
    font-size: 22px;
    color: var(--gold-rank);
    margin-bottom: 4px;
}

.vtree-final-title {
    font-size: 11px;
    font-weight: 900;
    color: #FFFFFF;
}

.vtree-final-sub {
    font-size: 9.5px;
    color: var(--text-secondary);
    margin-top: 1px;
}

.vtree-promotion-tag {
    font-size: 9px;
    font-weight: 800;
    color: var(--volt-interactive);
    margin-top: 6px;
}

/* Nœud Consolidation */
.consolidation-node {
    padding: 10px 10px;
    border-color: rgba(245, 158, 11, 0.30);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, var(--liquid-surface) 100%);
    text-align: center;
}

.vtree-consolidation-title {
    font-size: 10.5px;
    font-weight: 900;
    color: #f59e0b;
}

.vtree-consolidation-sub {
    font-size: 9.5px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.vtree-consolidation-note {
    font-size: 8.5px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Passerelle Fléchée de Remontée */
.vtree-reentry-bridge {
    margin-top: 4px;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.10);
    border: 1px dashed rgba(56, 189, 248, 0.35);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    color: #38bdf8;
    line-height: 1.25;
}

.vtree-reentry-bridge i {
    font-size: 13px;
    flex-shrink: 0;
}

/* ==========================================================================
   CALENDRIER DES FLAMMES D'ASSIDUITÉ SOOAR (HABIT TRACKER)
   ========================================================================== */
.flames-icon-filled {
    width: 17px;
    height: 17px;
    display: inline-block;
}

.flame-calendar-sheet {
    padding: 12px 16px 28px;
}

.flame-hero-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 14px;
}

.flame-hero-icon-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.flame-hero-svg {
    width: 58px;
    height: 58px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.40));
}

.flame-streak-massive {
    font-size: 32px;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: -0.5px;
    line-height: 1;
}

.flame-streak-massive small {
    font-size: 14px;
    color: #f59e0b;
    font-weight: 800;
}

.flame-streak-sub {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Grille du Calendrier */
.flame-calendar-card {
    background: rgba(20, 26, 36, 0.75);
    border: 1px solid var(--liquid-border);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 12px;
}

.cal-month-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 4px;
}

.cal-month-title {
    font-family: var(--font-rubik);
    font-size: 11px;
    font-weight: 400;
    color: #FFFFFF;
    letter-spacing: 0.6px;
}

.cal-month-stat {
    font-size: 10px;
    font-weight: 800;
    color: #f59e0b;
}

.cal-weekdays-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 9px;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.cal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day-cell {
    aspect-ratio: 1;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 3px 2px;
    position: relative;
    min-height: 38px;
}

.cal-day-cell.empty {
    background: transparent;
    border: none;
}

.cal-day-num {
    font-size: 9px;
    font-weight: 800;
    color: var(--text-secondary);
    line-height: 1;
}

.cal-flame-icon {
    width: 14px;
    height: 14px;
}

.cal-day-cell.completed {
    background: rgba(245, 158, 11, 0.10);
    border-color: rgba(245, 158, 11, 0.25);
}

.cal-day-cell.completed .cal-day-num {
    color: #FFFFFF;
}

.cal-day-cell.today-active {
    background: rgba(245, 158, 11, 0.22);
    border: 1.5px solid #f59e0b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.cal-day-cell.today-active .cal-day-num {
    color: #FFFFFF;
    font-weight: 900;
}

.cal-flame-icon.pulsing {
    animation: flamePulse 1.6s infinite ease-in-out;
}

@keyframes flamePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.cal-day-cell.future .cal-day-num {
    color: var(--text-muted);
}

.cal-target-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 3px;
}

.flame-shield-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(20, 26, 36, 0.65);
    border: 1px solid var(--liquid-border);
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 11px;
    color: #FFFFFF;
}

.flame-btn-svg {
    width: 16px;
    height: 16px;
    fill: #FFFFFF;
    margin-right: 4px;
}

/* Liste de Sélection de Palier */
.tier-list-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 60vh;
    overflow-y: auto;
}

.tier-select-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--liquid-border);
    cursor: pointer;
}

.tier-select-item.active {
    border-color: var(--volt-interactive);
    background: rgba(34, 197, 94, 0.08);
}

/* ==========================================================================
   PAGE CLASSEMENT (MONDIAL / RÉGIONAL / TEAM) + RECHERCHE ANIMÉE
   ========================================================================== */
.ranking-toolbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ranking-search-container {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.ranking-search-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--liquid-surface);
    border: 1px solid var(--liquid-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s var(--curve-ease);
}

.ranking-search-toggle-btn:hover,
.ranking-search-container.open .ranking-search-toggle-btn {
    color: #FFFFFF;
    background: var(--liquid-elevated);
    border-color: var(--volt-interactive);
}

.ranking-search-input {
    width: 0;
    opacity: 0;
    padding: 0;
    border: none;
    margin-right: 0;
    background: rgba(20, 26, 36, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    pointer-events: none;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.25s ease, margin-right 0.25s ease;
}

.ranking-search-container.open .ranking-search-input {
    width: 175px;
    opacity: 1;
    padding: 7px 32px 7px 12px;
    margin-right: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: auto;
    outline: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.ranking-search-container.open .ranking-search-input:focus {
    border-color: var(--volt-interactive);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.ranking-search-clear-btn {
    position: absolute;
    right: 48px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    padding: 4px;
    display: none;
}

.ranking-scope-switcher {
    display: flex;
    background: var(--liquid-surface);
    border: 1px solid var(--liquid-border);
    border-radius: 14px;
    padding: 3px;
    margin-bottom: 14px;
}

.scope-btn {
    flex: 1;
    padding: 8px 0;
    border: none;
    border-radius: 11px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-rubik);
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.15s;
}

.scope-btn.active {
    background: rgba(34, 197, 94, 0.15);
    color: var(--volt-interactive);
}

.ranking-table-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ranking-row {
    background: var(--liquid-surface);
    border: 1px solid var(--liquid-border);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ranking-row.current-user-row {
    border-color: var(--volt-interactive);
    background: rgba(34, 197, 94, 0.08);
}

.rank-position-col {
    width: 28px;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    color: var(--text-secondary);
}

.rank-medal-1 { color: var(--gold-rank); }
.rank-medal-2 { color: var(--silver-rank); }
.rank-medal-3 { color: var(--bronze-rank); }

.rank-ath-col {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    margin-left: 4px;
}

.rank-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.rank-ath-name {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary);
}

.rank-division-badge {
    font-size: 10px;
    color: var(--text-secondary);
}

.rank-perf-col {
    text-align: right;
}

.rank-time-flat {
    font-size: 13px;
    font-weight: 900;
    color: var(--text-primary);
}

.rank-gap-pace {
    font-size: 10px;
    color: var(--cyan-speed);
    font-weight: 700;
}

/* ==========================================================================
   PAGE TEAMS
   ========================================================================== */
.team-hero-banner {
    background: var(--liquid-surface);
    border: 1px solid var(--liquid-border);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 16px;
}

.team-badge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.team-title-large {
    font-family: var(--font-rubik);
    font-size: 19px;
    font-weight: 400;
    letter-spacing: -0.2px;
    color: var(--text-primary);
}

.team-motto {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-style: italic;
}

.team-mode-toggle-card {
    display: flex;
    background: rgba(20, 26, 35, 0.6);
    border: 1px solid var(--liquid-border);
    border-radius: 12px;
    padding: 3px;
    margin-bottom: 14px;
}

.team-mode-btn {
    flex: 1;
    padding: 7px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s;
}

.team-mode-btn.active {
    background: rgba(34, 197, 94, 0.15);
    color: var(--volt-interactive);
}

.team-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.team-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.team-progress-fill {
    height: 100%;
    background: var(--volt-interactive);
    border-radius: 3px;
}

.team-members-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ==========================================================================
   HUD LIVE GPS & DUEL
   ========================================================================== */
.live-activity-hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-base);
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.live-activity-hud.active {
    display: flex;
}

.hud-map-container {
    flex: 1;
    position: relative;
    width: 100%;
    background: #181d26;
}

#leaflet-live-map {
    width: 100%;
    height: 100%;
}

.hud-floating-header {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hud-sport-pill {
    background: var(--liquid-dock);
    border: 1px solid var(--liquid-border);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 800;
    color: var(--volt-interactive);
}

.hud-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--liquid-dock);
    border: 1px solid var(--liquid-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hud-confrontation-overlay {
    position: absolute;
    top: 68px;
    left: 14px;
    right: 14px;
    z-index: 1000;
    background: var(--liquid-dock);
    border: 1px solid var(--liquid-border);
    border-radius: 16px;
    padding: 10px 14px;
}

.confrontation-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 6px;
}

.player-stat-tag { color: var(--volt-interactive); }
.rival-stat-tag { color: var(--rival-pink); }

.confrontation-track-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 3px;
    position: relative;
    margin: 8px 0;
}

.confrontation-cursor-player {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--volt-interactive);
    border: 2px solid #FFFFFF;
    transition: left 0.3s linear;
}

.confrontation-cursor-rival {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--rival-pink);
}

.hud-bottom-telemetry {
    background: var(--liquid-dock);
    border-top: 1px solid var(--liquid-border);
    padding: 16px 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1000;
}

.hud-main-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: center;
}

.hud-data-unit {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.6px;
}

.hud-massive-val {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-primary);
}

.hud-massive-val.volt { color: var(--volt-interactive); }

.hud-secondary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid var(--liquid-border);
}

.hud-sec-label {
    font-size: 8px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.hud-sec-val {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
}

.hud-controls-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 4px;
}

.hud-pause-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--liquid-surface);
    border: 1px solid var(--liquid-border);
    color: var(--text-primary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hud-stop-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--alert-red);
    border: none;
    color: #FFFFFF;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ==========================================================================
/* ==========================================================================
   BARRE DE NAVIGATION BASSE : INTÉGRATION STYLE GRAIN & FONDU SOMBRE
   Épure athlétique, fondu dégradé continu, micro-grain asphalte, sans effet vieux iPhone
   ========================================================================== */
.floating-liquid-dock {
    position: fixed;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 418px;
    height: 62px;
    padding: 4px 12px;
    background: linear-gradient(
        180deg,
        rgba(22, 28, 38, 0.82) 0%,
        rgba(16, 22, 31, 0.94) 50%,
        rgba(12, 16, 23, 0.99) 100%
    );
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 26px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1500;
    box-shadow: 
        0 14px 38px rgba(0, 0, 0, 0.55),
        0 2px 10px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    transition: transform 0.25s var(--curve-ease);
    overflow: hidden;
}

/* Micro-texture grain incrustée directement dans le fondu de la barre */
.floating-liquid-dock::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 1;
}

.dock-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    background: transparent;
    border: none;
    transition: all 0.18s var(--curve-ease);
    position: relative;
    z-index: 2;
    gap: 2px;
}

.dock-item:active {
    transform: scale(0.92);
}

.dock-item.active {
    color: #FFFFFF;
    background: transparent;
    box-shadow: none;
    border: none;
}

.dock-item.active .dock-icon-svg {
    fill: var(--volt-interactive);
}

.dock-item.active .dock-label {
    color: #FFFFFF;
}

/* Point indicateur actif sobre et fin */
.dock-item.active::after {
    content: "";
    position: absolute;
    bottom: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--volt-interactive);
}

/* Icônes Pleins */
.dock-icon-svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: none;
    transition: fill 0.18s ease, transform 0.18s ease;
}

.dock-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.55;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.dock-item.active .dock-icon-img {
    opacity: 1;
    transform: scale(1.05);
}

.dock-label {
    font-family: var(--font-rubik);
    font-size: 8.5px;
    font-weight: 400;
    margin-top: 1px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: inherit;
    transition: color 0.18s ease;
}

/* BOUTON D'ACTION CENTRAL : Épuré, sans effet bulle ni faux reflet */
.dock-master-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    bottom: 3px;
    flex-shrink: 0;
    z-index: 3;
}

.master-play-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(47, 235, 153, 0.22) 0%, rgba(20, 26, 36, 0.92) 100%);
    border: 1.5px solid rgba(47, 235, 153, 0.45);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease, border-color 0.18s ease;
}

.master-play-btn:hover {
    border-color: var(--volt-interactive);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.50);
    transform: translateY(-2px);
}

.master-play-btn:active {
    transform: scale(0.92);
}

.master-play-triangle {
    width: 18px;
    height: 18px;
    fill: var(--volt-interactive);
    margin-left: 2px;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   PARCOURS SOOAROS FAÇON DUOLINGO (HISTORIQUE VERTICAL HAUT / BAS)
   ========================================================================== */
.duolingo-path-container {
    position: relative;
    padding: 0 4px 100px;
    width: 100%;
    box-sizing: border-box;
}

/* Barre de Contrôle Sticky Haut */
.duo-sticky-control-bar {
    position: sticky;
    top: 58px;
    z-index: 30;
    background: rgba(24, 29, 38, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--liquid-border);
    border-radius: 18px;
    padding: 10px 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.duo-current-status-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.duo-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 800;
    color: var(--volt-interactive);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.duo-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--volt-interactive);
    animation: duoPulseDot 1.6s infinite ease-in-out;
}

@keyframes duoPulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.duo-status-title {
    font-size: 15px;
    font-weight: 900;
    color: #FFFFFF;
}

.duo-status-sub {
    font-size: 11px;
    color: var(--text-secondary);
}

.duo-view-segmented {
    display: inline-flex;
    background: rgba(14, 19, 27, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3px;
    gap: 2px;
}

.duo-segment-btn {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 16px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.duo-segment-btn.active {
    background: var(--volt-interactive);
    color: #0c121c;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.30);
}

.duo-scroll-hint {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 8px 12px 14px;
}

/* Le Chemin Vertical Winding Road */
.duo-road-wrapper {
    position: relative;
    width: 100%;
}

.duo-connecting-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.duo-svg-road-path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 8 8;
}

.duo-nodes-flow {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Bannières de Ligue (Checkpoints de progression) */
.duo-league-banner {
    padding: 12px 16px;
    border-radius: 18px;
    margin: 18px 0 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--liquid-border);
}

.duo-league-banner.apex {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.18) 0%, rgba(20, 26, 36, 0.85) 100%);
    border-color: rgba(234, 179, 8, 0.40);
}

.duo-league-banner.elite {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18) 0%, rgba(20, 26, 36, 0.85) 100%);
    border-color: rgba(34, 197, 94, 0.40);
}

.duo-league-banner.pro {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18) 0%, rgba(20, 26, 36, 0.85) 100%);
    border-color: rgba(56, 189, 248, 0.40);
}

.duo-league-banner.amateur {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.15) 0%, rgba(20, 26, 36, 0.85) 100%);
    border-color: rgba(148, 163, 184, 0.25);
}

.duo-league-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.duo-league-banner.apex .duo-league-icon { color: var(--gold-rank); }
.duo-league-banner.elite .duo-league-icon { color: var(--volt-interactive); }
.duo-league-banner.pro .duo-league-icon { color: var(--cyan-speed); }
.duo-league-banner.amateur .duo-league-icon { color: var(--text-secondary); }

.duo-league-name {
    font-size: 13px;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.duo-league-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Ligne de Nœud Serpentin */
.duo-step-row {
    display: flex;
    width: 100%;
}

.duo-step-row.pos-left { justify-content: flex-start; padding-left: 8px; }
.duo-step-row.pos-center { justify-content: center; }
.duo-step-row.pos-right { justify-content: flex-end; padding-right: 8px; }

.duo-node-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 250px;
}

/* Cercle Sphérique de Nœud */
.duo-node-circle {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    position: relative;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
    z-index: 3;
}

.duo-node-circle:active {
    transform: scale(0.92);
}

/* État Qualifié Passé */
.qualified-step .duo-node-circle {
    background: radial-gradient(circle at 35% 25%, #22c55e 0%, #15803d 100%);
    border: 3px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    color: #FFFFFF;
}

.duo-check-icon {
    font-size: 20px;
}

/* État Actif En Cours (Pulsation) */
.current-step .duo-node-circle {
    width: 78px;
    height: 78px;
    background: radial-gradient(circle at 35% 25%, #72ffd4 0%, #05e39c 55%, #15803d 100%);
    border: 4px solid #FFFFFF;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    color: #0c121c;
    animation: duoActivePulse 2s infinite ease-in-out;
}

@keyframes duoActivePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.duo-current-icon {
    font-size: 24px;
    color: #0c121c;
}

/* État Verrouillé Futur */
.locked-step .duo-node-circle {
    background: rgba(36, 45, 60, 0.70);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: var(--text-muted);
    opacity: 0.85;
}

.duo-lock-icon {
    font-size: 18px;
}

.duo-node-number {
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    margin-top: 1px;
}

/* Fiche / Vignette Détaillée Associée au Nœud */
.duo-tier-card {
    margin-top: 8px;
    width: 100%;
    background: rgba(28, 35, 48, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--liquid-border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    transition: transform 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.duo-tier-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.duo-card-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 52px;
    overflow: hidden;
}

.duo-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.duo-card-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(20, 26, 36, 0.90) 100%);
}

.duo-card-tag {
    position: absolute;
    bottom: 5px;
    left: 8px;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.duo-card-tag.qualified {
    background: rgba(34, 197, 94, 0.25);
    color: var(--volt-interactive);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.duo-card-tag.active {
    background: var(--volt-interactive);
    color: #0c121c;
}

.duo-card-tag.locked {
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-muted);
}

.duo-card-body {
    padding: 8px 12px 10px;
}

.duo-card-title {
    font-size: 12px;
    font-weight: 900;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.duo-card-meta {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.duo-card-sub {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.duo-btn-open-bracket {
    width: 100%;
    margin-top: 6px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 900;
    border-radius: 10px;
    background: var(--volt-interactive);
    color: #0c121c;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s ease;
}

.duo-btn-open-bracket:hover {
    background: var(--volt-interactive-hover);
}

/* Modale d'Archive de Qualification Passée */
.history-banner-box {
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
}

.history-modal-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(14, 19, 27, 0.9) 100%);
}

.history-banner-content {
    position: absolute;
    bottom: 10px;
    left: 14px;
    right: 14px;
}

.history-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.history-meta-box {
    background: rgba(20, 26, 36, 0.6);
    border: 1px solid var(--liquid-border);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

/* ==========================================================================
   MODALES
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 3000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.bottom-sheet {
    width: 100%;
    max-width: 450px;
    background: var(--liquid-dock);
    border-top-left-radius: 26px;
    border-top-right-radius: 26px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.40);
    border-left: 1px solid var(--liquid-border);
    border-right: 1px solid var(--liquid-border);
    padding: 12px 18px 36px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.28s var(--curve-ease);
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    will-change: transform;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.50);
}

.modal-overlay.active .bottom-sheet {
    transform: translateY(0);
}

.sheet-drag-handle {
    width: 42px;
    height: 5px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 3px;
    margin: 2px auto 14px;
    cursor: grab;
    touch-action: none;
    transition: background 0.15s, transform 0.15s;
}

.sheet-drag-handle:active, .bottom-sheet.is-dragging .sheet-drag-handle {
    background: var(--volt-interactive);
    transform: scaleX(1.15);
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.sheet-title {
    font-family: var(--font-rubik);
    font-size: 13.5px;
    font-weight: 400;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.sheet-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
}

.team-input-field {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--liquid-surface);
    border: 1px solid var(--liquid-border);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.team-input-field:focus {
    outline: none;
    border-color: var(--volt-interactive);
}

.result-hero-banner {
    text-align: center;
    padding: 12px 0;
}

.result-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.result-badge.won {
    background: var(--volt-interactive);
    color: #FFFFFF;
}

.result-badge.lost {
    background: var(--rival-pink);
    color: #FFFFFF;
}

.result-comparison-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: rgba(20, 26, 35, 0.5);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
}

.profile-canvas-chart {
    width: 100%;
    height: 110px;
    background: rgba(20, 26, 35, 0.4);
    border-radius: 12px;
    margin-bottom: 14px;
}

/* ==========================================================================
   MODALE DES AVANTAGES & RÉCOMPENSES DES POINTS SOOAR (PARTENARIAT NIKE & OFFRES)
   ========================================================================== */
.points-rewards-sheet {
    max-height: 88vh;
    padding-bottom: 40px;
}

.rewards-hero-card {
    background: linear-gradient(145deg, rgba(28, 36, 48, 0.85) 0%, rgba(16, 21, 29, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.40);
}

.rewards-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}

.yellow-badge-pill.hero-pill {
    padding: 4px 14px 4px 5px;
    height: 36px;
    border-radius: 20px;
}

.yellow-badge-pill.hero-pill .yb-circle {
    width: 28px;
    height: 28px;
}

.yellow-badge-pill.hero-pill .yb-number {
    font-size: 15px;
}

.rewards-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-rubik);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.6px;
    color: #dedc18;
    background: rgba(222, 220, 24, 0.15);
    border: 1px solid rgba(222, 220, 24, 0.40);
    padding: 5px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.rewards-hero-title {
    font-family: var(--font-rubik);
    font-size: 14px;
    font-weight: 400;
    color: #FFFFFF;
    letter-spacing: 0.3px;
    margin: 0 0 6px 0;
    line-height: 1.25;
}

.rewards-hero-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0 0 14px 0;
}

.rewards-hero-desc strong {
    color: #FFFFFF;
}

.points-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: rgba(12, 16, 22, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 8px;
}

.pstat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pstat-val {
    font-family: var(--font-rubik);
    font-size: 12px;
    font-weight: 400;
    color: #dedc18;
    letter-spacing: 0.3px;
    line-height: 1.1;
}

.pstat-lbl {
    font-size: 8.5px;
    color: var(--text-muted);
    margin-top: 3px;
    text-transform: uppercase;
    font-weight: 800;
}

/* ==========================================================================
   BANDE DÉFILANTE DE PUBS & MARQUES PARTENAIRES (TICKER MARQUEE)
   ========================================================================== */
.partner-marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    margin: 6px 0 16px;
    padding: 4px 0;
    border-radius: 14px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.partner-marquee-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: partnerMarqueeScroll 24s linear infinite;
}

.partner-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes partnerMarqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 6px));
    }
}

.partner-ad-card {
    position: relative;
    width: 175px;
    height: 110px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #0f141c;
}

.partner-ad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.82) contrast(1.05);
    transition: transform 0.35s ease;
}

.partner-ad-card:hover .partner-ad-img {
    transform: scale(1.05);
}

.partner-ad-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 21, 29, 0.12) 0%, rgba(16, 21, 29, 0.70) 55%, rgba(12, 16, 22, 0.95) 100%);
}

.partner-ad-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    font-family: var(--font-rubik);
    font-size: 8px;
    font-weight: 400;
    padding: 3px 6px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.partner-ad-badge.red {
    background: #ef4444;
    color: #FFFFFF;
}

.partner-ad-badge.cyan {
    background: #06b6d4;
    color: #FFFFFF;
}

.partner-ad-badge.volt {
    background: #2feb99;
    color: #10151d;
    font-weight: 800;
}

.partner-ad-badge.amber {
    background: #f59e0b;
    color: #10151d;
    font-weight: 800;
}

.partner-ad-badge.purple {
    background: #a855f7;
    color: #FFFFFF;
}

.partner-ad-info {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
}

.partner-ad-brand {
    font-family: var(--font-rubik);
    font-size: 10px;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1.15;
    letter-spacing: 0.4px;
}

.partner-ad-sub {
    font-size: 8.5px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   PARTENARIAT VEDETTE : NIKE × SOOAR
   ========================================================================== */
.nike-spotlight-card {
    background: linear-gradient(145deg, rgba(30, 36, 48, 0.92) 0%, rgba(16, 20, 28, 0.98) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.50);
}

.nike-spotlight-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.nike-spotlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.nike-brand-lockup {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nike-swoosh-icon {
    width: 28px;
    height: 16px;
    flex-shrink: 0;
}

.nike-label {
    font-family: var(--font-rubik);
    font-size: 11px;
    font-weight: 400;
    color: #FFFFFF;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.nike-status-pill {
    font-family: var(--font-rubik);
    font-size: 8px;
    font-weight: 400;
    background: rgba(47, 235, 153, 0.18);
    color: #2feb99;
    border: 1px solid rgba(47, 235, 153, 0.45);
    border-radius: 10px;
    padding: 3px 8px;
    letter-spacing: 0.5px;
}

.nike-offer-title {
    font-family: var(--font-rubik);
    font-size: 13.5px;
    font-weight: 400;
    color: #FFFFFF;
    letter-spacing: 0.4px;
    margin: 0 0 6px 0;
    line-height: 1.25;
}

.nike-offer-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0 0 12px 0;
}

.nike-offer-desc strong {
    color: #FFFFFF;
}

.nike-perks-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
    background: rgba(10, 14, 20, 0.50);
    border-radius: 10px;
    padding: 10px 12px;
}

.nike-perk-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #FFFFFF;
}

.nike-perk-item i {
    font-size: 11px;
    color: #2feb99;
    flex-shrink: 0;
}

.promo-code-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 14, 20, 0.85);
    border: 1.5px dashed rgba(222, 220, 24, 0.45);
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 12px;
}

.promo-code-box {
    display: flex;
    flex-direction: column;
}

.promo-code-lbl {
    font-size: 8px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.promo-code-val {
    font-family: monospace;
    font-size: 16px;
    font-weight: 900;
    color: #dedc18;
    letter-spacing: 1.2px;
    margin-top: 1px;
}

.promo-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: #FFFFFF;
    font-family: var(--font-rubik);
    font-size: 9.5px;
    font-weight: 400;
    padding: 7px 14px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.promo-copy-btn:active {
    transform: scale(0.94);
}

.nike-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #FFFFFF;
    color: #10151d;
    border-radius: 12px;
    padding: 11px;
    font-family: var(--font-rubik);
    font-size: 10.5px;
    font-weight: 400;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
    transition: transform 0.15s ease, background 0.15s ease;
    box-sizing: border-box;
}

.nike-cta-btn:active {
    transform: scale(0.98);
}

.nike-cta-btn:hover {
    background: #f1f5f9;
}

/* ==========================================================================
   CATALOGUE DES AUTRES RÉCOMPENSES
   ========================================================================== */
.partner-catalog-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 16px;
}

.catalog-reward-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(20, 26, 36, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.30);
}

.reward-brand-logo-col {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(14, 18, 25, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reward-brand-icon {
    font-size: 16px;
}

.reward-brand-icon.cyan { color: #06b6d4; }
.reward-brand-icon.volt { color: #2feb99; }
.reward-brand-icon.amber { color: #f59e0b; }

.reward-info-col {
    flex: 1;
    min-width: 0;
}

.reward-brand-name {
    font-family: var(--font-rubik);
    font-size: 8.5px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.reward-title {
    font-size: 11px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.25;
    margin: 2px 0;
}

.reward-cost {
    font-size: 9.5px;
    color: var(--text-secondary);
}

.reward-cost .cost-unlocked {
    color: #2feb99;
    font-weight: 800;
}

.reward-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(47, 235, 153, 0.18);
    border: 1px solid rgba(47, 235, 153, 0.45);
    border-radius: 8px;
    color: #2feb99;
    font-family: var(--font-rubik);
    font-size: 9px;
    font-weight: 400;
    padding: 6px 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.reward-action-btn:active {
    transform: scale(0.93);
}

/* ==========================================================================
   CARTE EXPLICATIVE DU FONCTIONNEMENT DES POINTS
   ========================================================================== */
.rewards-explainer-card {
    background: rgba(16, 21, 29, 0.60);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.explainer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-rubik);
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: 0.6px;
    color: #FFFFFF;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.explainer-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.explainer-step:last-child {
    margin-bottom: 0;
}

.step-num {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(222, 220, 24, 0.20);
    border: 1px solid #dedc18;
    color: #dedc18;
    font-family: var(--font-rubik);
    font-size: 9px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.step-txt {
    font-size: 10.5px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.step-txt strong {
    color: #FFFFFF;
}

/* ==========================================================================
   ICÔNES MATERIAL SYMBOLS : ASTERISK & PLAY ARROW
   ========================================================================== */
.yb-asterisk-icon {
    font-size: 20px;
    color: #1f1f1f;
    font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 24;
    line-height: 1;
    user-select: none;
}

.stage-square-icon-btn.challenge-btn .challenge-play-icon {
    font-size: 22px;
    color: #FFFFFF !important;
    font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 24;
    line-height: 1;
    user-select: none;
}

/* ==========================================================================
   SOUS-PANNEAUX ATHLÉTIQUES (BOUTIQUE, FICHE PRODUIT, LAB PACEPRO)
   Affichés derrière le header fixe et le dock flottant
   ========================================================================== */
#tab-panel-rewards,
#tab-panel-product-detail,
#tab-panel-pacepro {
    display: none;
    padding: 72px 18px 24px;
    animation: fadeInTab 0.2s var(--curve-ease);
}

#tab-panel-rewards.active,
#tab-panel-product-detail.active,
#tab-panel-pacepro.active {
    display: block;
}

.subpage-nav-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.subpage-back-circle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
}

.subpage-back-circle-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
}

.subpage-back-circle-btn:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.24);
}

.subpage-back-circle-btn .material-symbols-outlined {
    font-size: 20px;
    color: #FFFFFF;
    line-height: 1;
}

/* ==========================================================================
   BOUTIQUE PRIVILÈGES & SLIDER GROSSES BOÎTES PHOTOS EN PHATT
   ========================================================================== */
.shop-intro-header {
    margin-bottom: 16px;
}

.shop-intro-tag {
    font-family: var(--font-rubik);
    font-size: 8.5px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--volt-interactive);
    text-transform: uppercase;
}

.shop-phatt-title {
    font-family: var(--font-phatt);
    font-size: 22px;
    line-height: 1.05;
    color: #FFFFFF;
    letter-spacing: -0.5px;
    margin: 4px 0 6px;
}

.shop-micro-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* Container du Slider */
.rewards-big-slider-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.rewards-big-slider-track {
    position: relative;
    width: 100%;
    height: 310px;
    border-radius: 20px;
    overflow: hidden;
    background: #0f141c;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.60);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.rewards-slide-box {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(0.96);
    cursor: pointer;
    box-sizing: border-box;
}

.rewards-slide-box.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    z-index: 2;
}

.slide-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.06);
    transition: transform 3s ease;
}

.rewards-slide-box.active .slide-bg-img {
    transform: scale(1.04);
}

.slide-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 20, 28, 0.25) 0%,
        rgba(15, 20, 28, 0.15) 30%,
        rgba(10, 14, 20, 0.75) 70%,
        rgba(8, 11, 16, 0.98) 100%
    );
}

.slide-top-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
}

.slide-brand-pill {
    font-family: var(--font-rubik);
    font-size: 9px;
    font-weight: 400;
    background: rgba(16, 21, 29, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.slide-discount-pill {
    font-family: var(--font-rubik);
    font-size: 9px;
    font-weight: 400;
    background: #ef4444;
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.45);
}

.slide-discount-pill.cyan { background: #06b6d4; box-shadow: 0 4px 12px rgba(6, 182, 212, 0.45); }
.slide-discount-pill.volt { background: #2feb99; color: #10151d; font-weight: 800; box-shadow: 0 4px 12px rgba(47, 235, 153, 0.45); }
.slide-discount-pill.amber { background: #f59e0b; color: #10151d; font-weight: 800; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45); }
.slide-discount-pill.purple { background: #a855f7; color: #FFFFFF; box-shadow: 0 4px 12px rgba(168, 85, 247, 0.45); }

.slide-bottom-info {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 3;
    display: flex;
    flex-direction: column;
}

.slide-phatt-name {
    font-family: var(--font-phatt);
    font-size: 26px;
    line-height: 1;
    color: #FFFFFF;
    letter-spacing: -0.6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.90);
    margin-bottom: 6px;
}

.slide-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.slide-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slide-phatt-cost {
    font-family: var(--font-phatt);
    font-size: 18px;
    color: #dedc18;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
    flex-shrink: 0;
}

/* Indicateurs Dots */
.rewards-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.slider-dot {
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.20);
    cursor: pointer;
    transition: all 0.25s ease;
}

.slider-dot.active {
    width: 38px;
    background: var(--volt-interactive);
    box-shadow: 0 0 10px rgba(47, 235, 153, 0.6);
}

/* Grille Complète des Produits */
.shop-products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
}

.shop-grid-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(20, 26, 36, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.shop-grid-card:hover {
    background: rgba(26, 34, 48, 0.85);
    border-color: rgba(255, 255, 255, 0.22);
}

.shop-grid-card:active {
    transform: scale(0.98);
}

.grid-card-thumb {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #0f141c;
}

.grid-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-tag {
    position: absolute;
    bottom: 4px;
    left: 4px;
    font-family: var(--font-rubik);
    font-size: 7.5px;
    font-weight: 400;
    padding: 2px 5px;
    border-radius: 5px;
    text-transform: uppercase;
}

.grid-tag.red { background: #ef4444; color: #fff; }
.grid-tag.cyan { background: #06b6d4; color: #fff; }
.grid-tag.volt { background: #2feb99; color: #10151d; font-weight: 800; }
.grid-tag.amber { background: #f59e0b; color: #10151d; font-weight: 800; }
.grid-tag.purple { background: #a855f7; color: #fff; }

.grid-card-content {
    flex: 1;
    min-width: 0;
}

.grid-brand {
    font-family: var(--font-rubik);
    font-size: 8px;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.grid-phatt-title {
    font-family: var(--font-phatt);
    font-size: 16px;
    color: #FFFFFF;
    line-height: 1.1;
    margin: 2px 0 6px;
    letter-spacing: -0.3px;
}

.grid-cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid-phatt-pts {
    font-family: var(--font-phatt);
    font-size: 14px;
    color: #dedc18;
}

.grid-status-unlocked {
    font-family: var(--font-rubik);
    font-size: 8px;
    color: #2feb99;
    background: rgba(47, 235, 153, 0.14);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(47, 235, 153, 0.35);
}

/* ==========================================================================
   FICHE PRODUIT DÉTAIL RAPIDE & LÉGÈRE
   ========================================================================== */
.product-hero-media {
    position: relative;
    width: 100%;
    height: 260px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 18px;
    background: #0f141c;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.product-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 14, 20, 0.85) 100%);
}

.product-hero-badge {
    position: absolute;
    bottom: 12px;
    left: 14px;
    font-family: var(--font-rubik);
    font-size: 10px;
    font-weight: 400;
    padding: 4px 10px;
    border-radius: 8px;
    background: #ef4444;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.product-brand-tag {
    font-family: var(--font-rubik);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.product-phatt-headline {
    font-family: var(--font-phatt);
    font-size: 26px;
    line-height: 1.05;
    color: #FFFFFF;
    letter-spacing: -0.6px;
    margin: 0 0 16px;
}

.product-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(20, 26, 36, 0.75);
    border: 1.5px solid rgba(222, 220, 24, 0.35);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.price-lbl {
    font-size: 8px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.60);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.price-phatt-pts {
    font-family: var(--font-phatt);
    font-size: 26px;
    color: #dedc18;
    line-height: 1;
    margin-top: 2px;
}

.product-solde-calc {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.solde-lbl {
    font-size: 8px;
    color: var(--text-muted);
    font-weight: 800;
}

.solde-val {
    font-size: 11px;
    font-weight: 800;
    color: #FFFFFF;
}

.solde-after {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.specs-heading {
    font-family: var(--font-rubik);
    font-size: 10px;
    color: #FFFFFF;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.specs-perks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.specs-perk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.35;
}

.specs-perk-item i {
    color: var(--volt-interactive);
    font-size: 13px;
    flex-shrink: 0;
}

.product-cta-bar {
    width: 100%;
}

.pay-points-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #dedc18;
    color: #10151d;
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-family: var(--font-rubik);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(222, 220, 24, 0.35);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.pay-points-btn:active {
    transform: scale(0.97);
}

/* ==========================================================================
   MODALE DE VALIDATION DE COMMANDE EN POINTS
   ========================================================================== */
.confirm-sheet {
    max-height: 60vh;
}

.confirm-payment-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 4px 6px;
}

.confirm-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(47, 235, 153, 0.15);
    border: 1.5px solid var(--volt-interactive);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
}

.confirm-phatt-title {
    font-family: var(--font-phatt);
    font-size: 20px;
    line-height: 1.1;
    color: #FFFFFF;
    letter-spacing: -0.4px;
    margin: 0 0 10px;
}

.confirm-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0 0 14px;
}

.confirm-desc strong {
    color: #FFFFFF;
}

.confirm-calc-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 18, 25, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 18px;
}

.confirm-actions-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.confirm-cancel-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    font-family: var(--font-rubik);
    font-size: 10.5px;
    font-weight: 400;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
}

.confirm-submit-btn {
    flex: 1.5;
    background: var(--volt-interactive);
    border: none;
    color: #10151d;
    font-family: var(--font-rubik);
    font-size: 11px;
    font-weight: 400;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(47, 235, 153, 0.40);
}

/* ==========================================================================
   LAB STRATÉGIE PACEPRO INTERACTIF
   ========================================================================== */
.pacepro-lab-header {
    margin-bottom: 16px;
}

.pacepro-live-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.plive-item {
    background: rgba(20, 26, 36, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
}

.plive-lbl {
    font-size: 8px;
    font-weight: 900;
    color: var(--text-muted);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.plive-phatt {
    font-family: var(--font-phatt);
    font-size: 24px;
    color: #FFFFFF;
    line-height: 1;
    margin: 3px 0 2px;
    letter-spacing: -0.5px;
}

.plive-phatt.volt {
    color: var(--volt-interactive);
}

.plive-sub {
    font-size: 9.5px;
    color: var(--text-secondary);
}

.pacepro-interactive-track-card {
    background: rgba(16, 22, 30, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.track-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.track-title {
    font-family: var(--font-rubik);
    font-size: 10px;
    color: #FFFFFF;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.track-coach-pill {
    font-family: var(--font-rubik);
    font-size: 8px;
    background: rgba(47, 235, 153, 0.15);
    color: var(--volt-interactive);
    border: 1px solid rgba(47, 235, 153, 0.35);
    padding: 3px 8px;
    border-radius: 8px;
    text-transform: uppercase;
}

.lab-confrontation-track {
    position: relative;
    width: 100%;
    height: 18px;
    margin: 12px 0 22px;
}

.lab-slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
}

.slider-labels-row {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
}

.slider-center-marker {
    color: rgba(255, 255, 255, 0.75);
}

.lab-range-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 3px;
    outline: none;
    margin: 8px 0;
}

.lab-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #FFFFFF;
    border: 2px solid var(--volt-interactive);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: transform 0.1s ease;
}

.lab-range-slider::-webkit-slider-thumb:active {
    transform: scale(1.18);
}

.coach-advice-card {
    background: rgba(16, 21, 29, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    padding: 12px 14px;
    margin-top: 14px;
    margin-bottom: 20px;
}

.coach-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-rubik);
    font-size: 9px;
    color: #FFFFFF;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.coach-text {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

.coach-text strong {
    color: #FFFFFF;
}

.pacepro-cta-box {
    margin-top: 14px;
}

/* ==========================================================================
   GESTIONNAIRE DE SOOAROS DANS L'INTERFACE (DESIGN VECTORIEL & PHATT)
   ========================================================================== */
.gestionnaire-sooaro-card {
    border-radius: 18px !important;
    background: rgba(18, 24, 34, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
    overflow: hidden;
    padding: 0 !important;
}

.gestionnaire-sooaro-card.active, .gestionnaire-sooaro-card.current {
    border-color: rgba(47, 235, 153, 0.45) !important;
    box-shadow: 0 0 20px rgba(47, 235, 153, 0.15) !important;
}

/* Supprime toute superposition de tag absolue sur les boutons */
.gestionnaire-sooaro-card .duo-card-tag {
    display: none !important;
}

.sooaro-badge-interface {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(28, 36, 48, 0.90) 0%, rgba(14, 18, 26, 0.95) 100%);
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sooaro-badge-left {
    display: flex;
    flex-direction: column;
}

.sooaro-phatt-tag {
    font-family: var(--font-rubik);
    font-size: 7.5px;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 400;
}

.sooaro-phatt-id {
    font-family: var(--font-phatt);
    font-size: 26px;
    line-height: 0.95;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.sooaro-real-emblem {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.sooaro-phatt-title {
    font-family: var(--font-phatt);
    font-size: 16px;
    color: #FFFFFF;
    line-height: 1.1;
    letter-spacing: -0.4px;
    margin-bottom: 6px;
}

.sooaro-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 6px;
}

.sooaro-pool-pill {
    font-size: 9.5px;
    font-weight: 700;
    font-family: var(--font-rubik);
    color: #2feb99;
    background: rgba(47, 235, 153, 0.12);
    border: 1px solid rgba(47, 235, 153, 0.30);
    padding: 2px 7px;
    border-radius: 6px;
}

.sooaro-duels-text {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

.sooaro-status-tag {
    font-size: 9.5px;
    font-weight: 700;
    font-family: var(--font-rubik);
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.sooaro-status-tag.qualified {
    background: rgba(47, 235, 153, 0.12);
    border: 1px solid rgba(47, 235, 153, 0.30);
    color: #2feb99;
}

.sooaro-status-tag.locked {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--text-muted);
}

.sooaro-pace-tag {
    font-family: var(--font-phatt);
    font-size: 12px;
    color: var(--cyan-speed);
}

.sooaro-sub-date {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.duo-action-btn-clean {
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-rubik);
    border-radius: 10px;
    background: rgba(18, 25, 36, 0.95);
    color: #FFFFFF;
    border: 1px solid rgba(47, 235, 153, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.duo-action-btn-clean:hover {
    background: rgba(28, 38, 54, 0.98);
    border-color: #2feb99;
}

.duo-action-btn-clean .material-symbols-outlined {
    color: #FFFFFF !important;
}

/* Bannière Phatt dans la modale d'archive */
.history-banner-box.in-interface-phatt {
    height: 110px;
    background: linear-gradient(135deg, #182230 0%, #0d1219 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0 16px;
}

.history-phatt-hero-tag {
    position: absolute;
    right: 12px;
    bottom: -10px;
    font-family: var(--font-phatt);
    font-size: 90px;
    color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
    line-height: 1;
}

.history-phatt-title {
    font-family: var(--font-phatt);
    font-size: 22px;
    color: #FFFFFF;
    letter-spacing: -0.5px;
    margin: 4px 0 0;
}

/* PacePro Lab : Bouton Info & Aide Pliable */
.pacepro-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pacepro-info-trigger-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pacepro-info-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
}

.pacepro-help-collapsible {
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(16, 22, 32, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.10);
}
