.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffdf76;
}

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 1200px;
}

.brand {
    font-size: 1.2rem;
    color: #574b3b;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
}

.title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #d68d1f 0%, #9e6208 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: #574b3b;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-cta {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(180deg, #d68d1f 0%, #9e6208 100%);
    color: white;
    text-decoration: none;
    margin: 0.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 10px rgb(255, 255, 240);
}

.logo {
    position: fixed; 
    top: 5px;       
    left: 20px;      
    z-index: 10;
    max-width: 170px;
}

.logo:hover{
    transition: all 0.3s ease;
    transform: translateY(-10px);
}

/*graphique bâtons*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;    
    overflow-x: hidden;
    background: #ffdf76;
    min-height: 100vh;
}

.baton {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 1100px;
    width: 100%;
}

.resume {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 1100px;
    margin: 60px auto 40px;
    color: #574b3b;
}

.titre-baton {
    text-align: center;
    color: #574b3b;
    margin-bottom: 6%;
    font-size: 2em;
}

.chart-container {
    position: relative;
    height: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 20px 10px;
    border-bottom: 3px solid #333;
}

.bar {
    width: 80px;
    min-width: 80px;
    background: linear-gradient(135deg, #ecd27a 0%, #fac720 100%);
    border-radius: 8px 8px 0 0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bar:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.bar-value {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    color: #333;
    font-size: 0.9em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bar:hover .bar-value {
    opacity: 1;
}

.bar-label {
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    color: #464655;
    font-size: 0.85em;
    max-width: 80px;
}

.info {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #fffadf;
    border-radius: 10px;
    color: #574b3b;
}

.explanation {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(234, 214, 102, 0.1) 0%, rgba(248, 221, 131, 0.253) 100%);
    border-radius: 15px;
    border-left: 5px solid #fae483;
    min-height: 80px;
    transition: all 0.3s ease;
}

.explanation h3 {
    color: #c5a515;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.explanation p {
    color: #574b3b;
    line-height: 1.6;
}

.explanation.hidden {
    opacity: 0;
    transform: translateY(-10px);
}

.bar.active {
    filter: brightness(1.2);
    transform: scale(1.05);
}



/*graphique rond*/


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;    
    overflow-x: hidden;
    background: #ffdf76;
    min-height: 100vh;
    padding: 20px;
}

.main-title {
    text-align: center;
    color: #574b3b;
    margin-bottom: 40px;
    font-size: 2.5em;
    font-weight: 800;
}

.charts-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1800px;
    margin: 0 auto;
}

.chart-container-rond {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    flex: 1;
    min-width: 450px;
    max-width: 550px;
}

.chart-title {
    text-align: center;
    color: #574b3b;
    margin-bottom: 30px;
    font-size: 1.8em;
    font-weight: 700;
}

.canvas-wrapper {
    position: relative;
    height: 500px;
    margin-bottom: 20px;
}

canvas {
    display: block;
    cursor: pointer;
}

.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip.show {
    opacity: 1;
}

.tooltip-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 16px;
}

.tooltip-value {
    color: #4ade80;
    font-weight: 600;
}

.legend {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.legend-item:hover {
    transform: translateY(-2px);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-text {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .charts-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .chart-container {
        max-width: 100%;
    }
}
