
:root {
    --bg-work: #bb3574;
    --bg-pause: #2f0d42;
    --text-color: #ffffff;
    --btn-bg: rgba(255, 255, 255, 0.2);
    --btn-bg-hover: rgba(255, 255, 255, 0.4);
}

/* BONUS 5 : Thèmes visuels gérés dynamiquement */
body.work-theme { background-color: var(--bg-work); }
body.pause-theme { background-color: var(--bg-pause); }


body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--text-color);
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.5s ease;
}

.pomodoro-container {
    text-align: center;
    background: rgba(0, 0, 0, 0.15);
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 350px;
}

/* BONUS 3 : Style du compteur de sessions */
#session-counter {
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: bold;
}

#mode-title {
    font-size: 1.6rem;
    margin: 10px 0;
    text-transform: uppercase;
}

/* BONUS 6 : Style de la barre de progression */
.progress-container {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    height: 8px;
    border-radius: 4px;
    margin: 15px 0;
    overflow: hidden;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--text-color);
    transition: width 1s linear;
}

#timer-display {
    font-size: 5.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    font-variant-numeric: tabular-nums;
}

/*BOUTONS ET RÉGLAGES*/

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

button {
    background-color: var(--btn-bg);
    color: var(--text-color);
    border: none;
    padding: 10px 22px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

button:hover {
    background-color: var(--btn-bg-hover);
    transform: translateY(-2px);
}

/* BONUS 4 : Style des champs de saisie */
.settings-box {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

.settings-box h3 {
    font-size: 1rem;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    opacity: 0.8;
}

.inputs-group {
    display: flex;
    justify-content: space-around;
}

.inputs-group label {
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.inputs-group input {
    width: 60px;
    padding: 6px;
    border: none;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}