/* =========================================
   EVOLUTION PAGE STYLES
========================================= */

/* --- Hero Section --- */
.evolution-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    padding-top: 180px;
}

.evolution-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.7);
    z-index: 1;
}

.evolution-hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}

.evolution-hero__title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.evolution-hero__underline {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 15px;
    pointer-events: none;
}

.evolution-hero__underline path {
    stroke: #967259;
    stroke-width: 4;
    stroke-linecap: round;
    fill: none;
}

.evolution-hero__subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Evolution Content Section --- */
.evolution-section {
    padding: 100px 0;
    background-color: #F3F4F6;
}

.evolution-section h2 {
    font-size: 36px;
    font-weight: 800;
    color: #1F2937;
    margin-bottom: 24px;
}

.evolution-section>.container>p {
    font-size: 16px;
    line-height: 1.8;
    color: #4B5563;
    margin-bottom: 60px;
    max-width: 1000px;
}

/* --- Charts Grid --- */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.chart-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.chart-container h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    text-align: center;
    margin-bottom: 40px;
    text-decoration: underline;
    text-decoration-color: #967259;
    text-underline-offset: 8px;
}

/* --- Pie Chart --- */
.pie-chart-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.pie-chart {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: conic-gradient(#A7AB9F 0% 84%,
            #D1B59D 84% 95%,
            #967259 95% 100%);
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.pie-chart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #374151;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-color--nettoyage {
    background-color: #A7AB9F;
}

.legend-color--catering {
    background-color: #D1B59D;
}

.legend-color--vitres {
    background-color: #967259;
}

/* --- Line Chart --- */
.line-chart-wrapper {
    display: flex;
    flex-direction: column;
}

.line-chart {
    position: relative;
    height: 300px;
    border-left: 2px solid #E5E7EB;
    border-bottom: 2px solid #E5E7EB;
    margin-left: 40px;
    margin-bottom: 30px;
}

.y-axis {
    position: absolute;
    left: -45px;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 12px;
    color: #6B7280;
}

.x-axis {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6B7280;
    padding-right: 20px;
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.chart-points {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.chart-point {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #967259;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, 50%);
}

.chart-point::after {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

/* Point positions based on values */
.chart-point--2008 {
    left: 5%;
    bottom: 25%;
}

.chart-point--2012 {
    left: 35%;
    bottom: 42%;
}

.chart-point--2015 {
    left: 65%;
    bottom: 56%;
}

.chart-point--2018 {
    left: 95%;
    bottom: 90%;
}

.chart-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 14px;
    color: #374151;
}

.chart-legend-line {
    width: 30px;
    height: 3px;
    background: #967259;
    border-radius: 2px;
}

/* --- Stats Section --- */
.evolution-stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #967259 0%, #755541 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

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

.stat-box__number {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
}

.stat-box__label {
    font-size: 16px;
    opacity: 0.9;
}

/* --- CTA Section --- */
.evolution-cta {
    padding: 80px 0;
    background-color: #0F172A;
    text-align: center;
    color: white;
}

.evolution-cta h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.evolution-cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.evolution-cta .btn {
    background-color: #967259;
    color: white;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.evolution-cta .btn:hover {
    background-color: #755541;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .evolution-hero__title {
        font-size: 42px;
    }
}

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

    .stat-box__number {
        font-size: 36px;
    }
}