/* DUSTR — Mon activité */
@keyframes profileSpin{to{transform:rotate(360deg)}}
.activity-shell{max-width:1040px!important;padding-top:1.35rem}
.activity-view-tabs{width:min(360px,100%);margin:0 0 1.15rem auto!important;background:rgba(25,31,25,.72)!important;backdrop-filter:blur(14px);box-shadow:0 10px 30px rgba(0,0,0,.08)}
.activity-view-tab{min-height:40px}

.profile-hero{position:relative;overflow:hidden;padding:1.5rem!important;border-radius:22px!important;background:linear-gradient(135deg,#182019 0%,#20291f 58%,#172018 100%)!important;border-color:rgba(144,178,133,.26)!important;box-shadow:0 20px 55px rgba(4,8,5,.16)}
.profile-hero::before{content:"";position:absolute;width:330px;height:330px;right:-145px;top:-215px;border-radius:50%;background:radial-gradient(circle,rgba(145,178,133,.2),transparent 68%);pointer-events:none}
.profile-hero::after{content:"";position:absolute;width:190px;height:190px;left:-90px;bottom:-135px;border-radius:50%;background:rgba(240,123,79,.08);filter:blur(2px);pointer-events:none}
.prof-hero-top,.rank-panel{position:relative;z-index:1}
.prof-hero-top{margin-bottom:1.2rem!important;align-items:center!important}
.prof-avatar{width:68px!important;height:68px!important;border:3px solid rgba(145,178,133,.5)!important;box-shadow:0 0 0 5px rgba(145,178,133,.08)}
.prof-kicker{display:block;margin-bottom:.2rem;color:#91b285;font-size:.65rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.prof-name{font-size:1.28rem!important;letter-spacing:-.025em}
.prof-sub{display:flex;align-items:center;gap:.3rem;color:rgba(231,235,229,.58)!important}
.prof-hero-actions{gap:.5rem!important}
.prof-hero-actions .btn-sm{min-height:39px;border-radius:12px;padding:.55rem .78rem;font-size:.74rem}
.hero-action-secondary{background:rgba(255,255,255,.035)!important;border-color:rgba(255,255,255,.12)!important}
.hero-action-settings{width:39px;padding:0!important;display:grid!important;place-items:center;font-size:.95rem!important}
.hero-strava{box-shadow:0 8px 22px rgba(252,76,2,.17)}

.rank-panel{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:1rem;padding:1rem 1.05rem;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(5,10,6,.22)}
.rank-emblem{width:52px;height:52px;display:grid;place-items:center;border-radius:15px;background:rgba(145,178,133,.1);font-size:2rem!important}
.rank-title-line{display:flex;align-items:baseline;gap:.55rem;flex-wrap:wrap;margin-bottom:.42rem}
.rank-name{font-size:1.02rem!important}
.rank-level{padding:.2rem .48rem;border-radius:30px;background:rgba(145,178,133,.12);color:#a9c7a0!important;font-size:.64rem!important}
.rank-meta{display:flex;justify-content:space-between;font-size:.67rem;color:rgba(231,235,229,.5);margin-top:.3rem}
.rank-link{display:inline-flex;align-items:center;gap:.35rem;text-decoration:none;color:#b3cbaa!important;font-size:.72rem;font-weight:750;white-space:nowrap}
.xp-bar-wrap{height:8px!important;background:rgba(255,255,255,.07)!important;margin:0!important}
.xp-bar{background:linear-gradient(90deg,#72936a,#a8c99e)!important;box-shadow:0 0 15px rgba(145,178,133,.3)}
.streak-badge{margin-top:.42rem!important}

.stats-grid{gap:.72rem!important;margin:1rem 0 1.35rem!important}
.hist-stat{position:relative;overflow:hidden;min-height:108px;padding:1rem!important;text-align:left!important;border-radius:16px!important;background:linear-gradient(145deg,var(--bg2),var(--bg3))!important}
.hist-stat::after{content:"";position:absolute;right:-20px;bottom:-28px;width:75px;height:75px;border-radius:50%;background:rgba(145,178,133,.07)}
.hist-stat-icon{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:rgba(145,178,133,.11);margin:0 0 .65rem!important}
.hist-stat strong{font-size:1.42rem!important;letter-spacing:-.035em}
.hist-stat small{margin-top:.2rem!important}

.activity-dashboard{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:.8rem;margin-bottom:1.2rem}
.activity-panel{padding:1.15rem!important;margin:0!important;border-radius:17px!important}
.activity-panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:.85rem}
.activity-panel-title h3,.activity-section-head h3{margin:0;font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:var(--text3)}
.week-vs{grid-template-columns:repeat(2,1fr)!important;gap:.55rem!important}
.wv-cell{padding:.78rem!important;background:transparent!important;border-color:rgba(145,178,133,.15)!important}
.wv-val{font-size:1.15rem!important}
.activity-calendar-panel{min-width:0}
.activity-calendar-panel .act-cal-wrap{scrollbar-width:thin;scrollbar-color:rgba(145,178,133,.32) transparent}
.activity-calendar-panel .act-cal-wrap::-webkit-scrollbar{height:5px}
.activity-calendar-panel .act-cal-wrap::-webkit-scrollbar-track{background:transparent}
.activity-calendar-panel .act-cal-wrap::-webkit-scrollbar-thumb{background:rgba(145,178,133,.28);border-radius:10px}
.act-cal-day{width:10px!important;height:10px!important}
.activity-calendar-panel .act-cal-wrap{overflow-x:visible}
.activity-calendar-panel .cal-month-row{justify-content:flex-end}
.activity-calendar-panel .act-cal{justify-content:flex-end}

.progress-zone{display:grid;grid-template-columns:1.25fr .75fr;gap:.8rem;margin-bottom:1.45rem}
.challenge-panel,.badges-panel{padding:1.15rem!important;margin:0!important;border-radius:17px!important}
.badges-panel #activityBadgeRow{max-height:116px;overflow:hidden}
.badge-chip{padding:.36rem .62rem!important;font-size:.69rem!important}

.profile-lab-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem;padding:1.5rem;border:1px solid rgba(145,178,133,.26);border-radius:22px;background:linear-gradient(135deg,#182019 0%,#20291f 60%,#171f18 100%);box-shadow:0 20px 55px rgba(4,8,5,.16)}
.profile-lab-hero::after{content:"";position:absolute;right:-90px;top:-120px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(145,178,133,.19),transparent 67%);pointer-events:none}
.profile-lab-hero>*{position:relative;z-index:1}
.profile-lab-hero h2{margin:.1rem 0 .25rem;font-size:1.45rem;letter-spacing:-.04em}
.profile-lab-hero p{margin:0;color:var(--text3);font-size:.82rem}
.profile-lab-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.72rem;margin-bottom:1rem}
.profile-lab-stat{position:relative;overflow:hidden;min-height:104px;padding:1rem;border:1px solid var(--border);border-radius:16px;background:linear-gradient(145deg,var(--bg2),var(--bg3))}
.profile-lab-stat span{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:rgba(145,178,133,.11);margin-bottom:.65rem}
.profile-lab-stat strong{display:block;font-size:1.38rem;font-weight:900;letter-spacing:-.035em;color:var(--text)}
.profile-lab-stat small{display:block;margin-top:.2rem;color:var(--text3);font-size:.62rem;text-transform:uppercase;letter-spacing:.06em}
.profile-lab-columns{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}
.profile-lab-panel{padding:1.15rem;border:1px solid var(--border);border-radius:17px;background:var(--bg2)}
.profile-record-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.55rem}
.profile-record{padding:.75rem;border:1px solid rgba(145,178,133,.15);border-radius:13px;background:var(--bg3)}
.profile-record strong{display:block;color:var(--accent);font-size:1.08rem;line-height:1}
.profile-record small{display:block;margin-top:.3rem;color:var(--text3);font-size:.66rem;text-transform:uppercase;letter-spacing:.06em}
.profile-dna-row{display:flex;align-items:center;gap:.65rem;padding:.62rem 0;color:var(--text2);font-size:.82rem}
.profile-dna-row+.profile-dna-row{border-top:1px solid var(--border)}
.profile-dna-row strong{margin-left:auto;color:var(--text);font-size:.9rem}
.thumb-pending{display:flex;flex-direction:column;align-items:center;gap:.2rem;color:rgba(181,176,163,.58);font-size:.58rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.thumb-pending::before{content:"";width:28px;height:16px;border-radius:50%;border:2px solid rgba(145,178,133,.25);border-top-color:rgba(145,178,133,.8);animation:profileSpin .9s linear infinite}

.activity-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin:0 0 .75rem}
.activity-section-head h3{font-size:1rem;text-transform:none;letter-spacing:-.01em;color:var(--text)}
.activity-section-head p{margin:.2rem 0 0;color:var(--text3);font-size:.72rem}
.rides-tools{padding:.75rem;margin-bottom:.8rem;border:1px solid var(--border);border-radius:15px;background:var(--bg2)}
.rides-search-bar{margin:0!important}
.rides-search-bar input{height:43px;padding:0 .95rem!important;border-radius:11px!important;background:var(--bg3)!important}
.filters-toggle{height:43px;padding:0 .85rem;border:1px solid var(--border);border-radius:11px;background:var(--bg3);color:var(--text2);font:700 .74rem var(--font);cursor:pointer;white-space:nowrap}
.rides-filters{display:none;padding-top:.7rem}
.rides-filters.open{display:block}
.sort-chips,.filter-chips{margin-bottom:.45rem!important}

.history-ride-card{position:relative;margin-bottom:.58rem;padding:.85rem 1rem;border:1px solid var(--border);border-radius:15px;background:var(--bg2);cursor:pointer;transition:transform .16s,border-color .16s,background .16s;overflow:hidden}
.history-ride-card:hover{transform:translateY(-2px);border-color:rgba(145,178,133,.45);background:linear-gradient(100deg,var(--bg2),rgba(145,178,133,.055))}
.ride-card-main{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.85rem}
.ride-card-thumb{width:78px;height:62px;display:grid;place-items:center;flex-shrink:0;border-radius:11px;background:#111712;border:1px solid rgba(145,178,133,.11);overflow:hidden}
.ride-card-thumb .gpx-thumb{width:76px;height:60px;border-radius:10px!important;background:#111712!important}
.ride-card-top{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;margin-bottom:.25rem}
.ride-card-title{font-size:.88rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:360px}
.ride-type-chip{display:inline-flex;align-items:center;padding:.18rem .5rem;border-radius:30px;color:#fff;font-size:.61rem;font-weight:800;white-space:nowrap}
.ride-card-stats{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;color:var(--text2);font-size:.73rem}
.ride-card-date{color:var(--text3);font-size:.67rem;margin-top:.22rem}
.ride-score{min-width:58px;padding:.5rem .65rem;border-radius:12px;background:rgba(240,123,79,.12);border:1px solid rgba(240,123,79,.18);text-align:center}
.ride-score strong{display:block;color:var(--accent);font-size:1rem;line-height:1}
.ride-score small{color:var(--text3);font-size:.53rem;text-transform:uppercase;letter-spacing:.06em}
.ride-edit{width:34px;height:34px;padding:0!important;display:grid!important;place-items:center}
.terrain-bar{margin-top:.42rem;display:flex;align-items:center;gap:.5rem;max-width:300px}
.terrain-track{flex:1;display:flex;border-radius:5px;overflow:hidden;height:4px;background:var(--bg3)}
.terrain-fill{background:#91b285}
.terrain-label{font-size:.61rem;color:var(--text3);white-space:nowrap}

@media(max-width:760px){
  .activity-shell{padding-top:.8rem}.profile-hero{padding:1.15rem!important}.prof-hero-actions{width:100%;display:grid!important;grid-template-columns:1fr 1fr auto}.prof-hero-actions .btn-sm{justify-content:center}.hero-strava{grid-column:1/-1;grid-row:2}.rank-panel{grid-template-columns:auto minmax(0,1fr)}.rank-link{grid-column:1/-1;justify-content:flex-end}.stats-grid,.profile-lab-grid{grid-template-columns:repeat(2,1fr)!important}.activity-dashboard,.progress-zone,.profile-lab-columns{grid-template-columns:1fr}.profile-lab-hero{align-items:flex-start;flex-direction:column}.activity-view-tabs{width:100%;margin-bottom:.8rem!important}.ride-card-main{grid-template-columns:auto minmax(0,1fr)}.ride-card-side{grid-column:1/-1;display:flex!important;flex-direction:row!important;justify-content:flex-end}.ride-card-title{max-width:190px}}
@media(max-width:430px){
  .prof-avatar{width:58px!important;height:58px!important}.prof-name{font-size:1.12rem!important}.prof-hero-actions{grid-template-columns:1fr auto}.hero-action-secondary:first-child{grid-column:1/-1}.rank-emblem{width:44px;height:44px}.hist-stat{min-height:98px}.ride-card-thumb{width:64px;height:56px}.ride-card-thumb .gpx-thumb{width:62px;height:54px}.rides-search-bar{flex-wrap:wrap}.rides-search-bar input{width:100%;flex-basis:100%}.filters-toggle{width:100%}}
