* {
    --primary-color: #1a73e8;
    --secondary-color: #4CAF50;
    --background-color: #f4f7f6;
    --card-background: white;
    --text-color: #333;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

header {
    color: rgb(255, 22, 22);
    padding-top: 2em;
    margin: 0;
    text-align: center;
}

h1 {
    margin: 0;
    padding: 0 10px;
    font-size: 4em;
}

main {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

section {
    background: var(--card-background);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 0.75rem rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}


img, svg, canvas {
    max-width: 100%;
    height: auto;
}

#GraphHumain section:nth-of-type(2) .chart-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    padding: 0;
}


#replayBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 50;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #1a73e8;
    color: #1a73e8;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

#replayBtn:hover {
    background: #1a73e8;
    color: white;
}

.hybride1 {
    position: relative; 
    display: block;
    width: 100%;
    height: auto;
    z-index: 10;
    background: transparent;
}

.hybride2, .hybride3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hybride2 { z-index: 1; }
.hybride3 { z-index: 2; }

@keyframes wipeRight {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes wipeUp {
    from {
        clip-path: inset(100% 0 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

.hidden-start {
    opacity: 0;
}

.anim-left {
    opacity: 1;
    animation: wipeRight 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.anim-up {
    opacity: 1;
    animation: wipeUp 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
    overflow: hidden;
}

.chart-container svg {
    width: 100%;
    height: auto;
    display: block;
}

.chart-container2 {
    height: auto;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.graphcrea {
    width: auto; 
    max-width: 100%;
    max-height: 600px;
}

.centerbutton {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#btnIA {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
    font-size: 2em;
    font-weight: bolder;
    width: 14em;
    height: 3em;
    border-radius: 50px;
    border: none;
    box-shadow: inset 0.1em 0.1em 0.1em 0 rgba(255, 255, 255, 0.37), inset -0.1em -0.1em 0.1em 0 rgba(41, 41, 41, 0.103);
    transition: 0.5s;
    filter: drop-shadow(10px 10px 4px #0000001c);
}

#btnIA:hover {
    box-shadow: inset 0.1em 0.1em 0.1em 0 rgba(41, 41, 41, 0.103), inset -0.1em -0.1em 0.1em 0 rgba(255, 255, 255, 0.37);
    cursor: pointer;
    filter: drop-shadow(0px 0px 0px #0000001c);
}

#GraphIa {
    display: none;
    width: 100%;
}

#GraphHumain {
    display: block;
    transition: display 1s;
}

.containerGraphsIa {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.graphIndivIa {
    padding: 1em;
    height: auto;
    width: 100%;  
    max-width: 1000px; 
    display: block; 
    object-fit: contain;
}

img {
    filter: drop-shadow(0 0 0.75rem rgba(0, 0, 0, 0.164));
}

footer {
    text-align: center;
    padding-bottom: 1em;
    color: #6e6e6e;
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 1.5em;
    }

    section {
        padding: 15px;
    }

    .chart-container {
        height: 250px;
    }
    
    .graphIndivIa {
        height: 250px;
    }
}