/* Outils du panel */
#toolbar-tools {
    display: block;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Ligne 1 : Sélecteur */
.mode-selector {
    background: #f5f5f5;
    border-radius: 12px;
    margin: 0 10px 15px 10px;
    overflow: hidden;
}

.mode-btn {
    float: left;
    width: 50%;
    box-sizing: border-box;
    text-align: center;
    padding: 8px 0;
    cursor: pointer;
    color: #181713;
    font-size: 13px;
    font-weight: 500;
}

.mode-btn.active {
    background: #181713;
    color: #FFF;
    border-radius: 12px;
}

.mode-btn svg {
    vertical-align: middle;
    margin-right: 4px;
    margin-top: -2px;
}

.mode-btn span {
    vertical-align: middle;
}

/* Ligne 2 : Export */
.export-container {
    text-align: center;
    margin-bottom: 15px;
    padding: 0 10px;
}

.export-btn {
    display: block;
    width: 100%;
    background: #181713;
    color: #FFF;
    border: none;
    border-radius: 12px;
    padding: 10px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.export-btn:hover {
    background: #333333;
}

.export-btn svg {
    position: absolute;
    left: 15px;
    top: 50%;
    margin-top: -9px;
}

/* Ligne 3 : Punaises */
.pins-container {
    text-align: center;
    margin-bottom: 15px;
}

.pins-toggle {
    display: inline-block;
    cursor: pointer;
}

.pins-icon {
    display: inline-block;
    vertical-align: middle;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #181713;
    line-height: 38px;
    text-align: center;
    margin-right: 8px;
}

.pins-toggle.active .pins-icon {
    background: #181713;
    color: #FFF;
}

.pins-toggle svg {
    vertical-align: middle;
    margin-top: -4px;
}

.pins-label {
    display: inline-block;
    vertical-align: middle;
    font-size: 13px;
    color: #181713;
    font-weight: 500;
}

/* Ligne 4 : Séparateur */
.full-separator {
    height: 1px;
    background: #e0e0e0;
    margin: 0 -20px 15px -20px;
}

/* Panel et Stats */

#stats-panel {
    position: absolute;
    top: 20px;
    right: 10px;
    width: 280px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 20px;
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #181713;
}

#stats-extra {
    height: auto;
    overflow: visible;
}

.stats-row {
    width: 100%;
    margin-bottom: 12px;
}

.stat-box {
    display: block;
    float: left;
    box-sizing: border-box;
}

.half {
    width: 50%;
}

.third {
    width: 33.33%;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: #181713;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    margin-bottom: 0;
}

.stat-val {
    display: block;
    color: #181713;
}

#stat-ele-neg {
    color: #181713;
}

.stat-val.large {
    font-size: 38px;
    line-height: 1;
}

.stat-val.small {
    font-size: 24px;
    line-height: 1.2;
}

.unit {
    font-size: 0.5em;
    color: #181713;
}

.clear {
    clear: both;
}

.chart-row {
    width: 100%;
    height: auto;
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.elevation-chart {
    width: 100%;
    height: auto;
    display: block;
}

.grid-line {
    stroke: #e0e0e0;
    stroke-width: 1;
    stroke-dasharray: 6 4;
}

/* Zone sous la courbe d'élévation */
.chart-area {
    fill: #ededed55;
}





.chart-line {
    fill: none;
    stroke: #181713;
    stroke-width: 2.5;
}

.point-main {
    fill: #18171300;
    stroke: none;
    r: 3.5px;
}

