/* ---------- RESET ---------- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: linear-gradient(180deg, #f0f4f7, #eef6f3);
    color: #123140;
    line-height: 1.6;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: #1f3b4d;
}

.subtitle {
    font-size: 1.2rem;
    color: #4a6470;
}

#content {
    max-width: 900px;
    margin: auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(10,40,30,0.1);
}

section {
    margin-bottom: 40px;
}

h2 {
    font-size: 1.6rem;
    color: #1f3b4d;
    border-left: 6px solid #4a90e2;
    padding-left: 10px;
}

.sources ul {
    list-style: none;
    padding: 0;
}

.sources li {
    background: #f7fbfc;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 10px;
    border-left: 5px solid #4a90e2;
}

.sources a {
    color: #2c8f2c;
    font-weight: bold;
    text-decoration: none;
}

.sources a:hover {
    text-decoration: underline;
}

.comment {
    margin-top: 15px;
    font-style: italic;
    color: #2b4650;
}

/* ---------- SLIDER BALANCIER FIXE ---------- */
.slider-container {
    width: 300px;
    height: 50px;
    position: fixed;      /* Fixe en bas */
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    overflow: visible;
    perspective: 500px;
    z-index: 1000;
}

.slider-track {
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    position: relative;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transform-origin: center;
    transition: transform 0.05s;
}

.slider-ball {
    width: 40px;
    height: 40px;
    background: #2c8f2c;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ---------- START BUTTON ---------- */
.start-btn {
    display: inline-block;
    background: #2c8f2c;
    color: white;
    padding: 14px 20px;
    font-size: 1.2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.2s ease;
}

.start-btn:hover {
    background: #237423;
    transform: translateY(-2px);
}

footer {
    text-align: center;
    margin-top: 20px;
    color: #4a6470;
}

@media (max-width: 600px) {
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.3rem; }
    .start-btn { font-size: 1rem; padding: 12px 18px; }
    #content { padding: 20px; }
}


#snakeBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    z-index: 1000;
    transition: 0.2s ease;
}

#snakeBtn:hover {
    background: #e05555;
    transform: translateY(-2px);
}
