:root {
    --content-width: min(320px, calc(100vw - 48px));
    --black: #40382F;
    --bg: #f2ebdc;
    --track: #dccfb5;
    --muted: #7a6f60;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background: var(--bg);
    color: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
}

a {
    text-decoration: none;
    color: var(--black);
}

/* ---------- STRUCTURE ---------- */

.contain {
    width: var(--content-width);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

nav {
    width: 100%;
    height: 10vh;
    height: 10dvh;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav p {
    font-weight: 500;
    font-size: 16px;
}

/* ---------- BARRE DE PROGRESSION ---------- */

.zone_progress {
    display: flex;
}

.progress_separ {
    width: 10px;
    height: 7px;
    margin: 4px;
    border-radius: 999px;
    background-color: var(--track);
    transition: background 0.3s;
}

.progress_separ.active {
    background-color: var(--black);
}

/* ---------- CONTENU ---------- */

.center_hero {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 32px;
    padding-bottom: 10vh;
    padding-bottom: 10dvh;
}

.title_feeling {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
}

.center_div_hero p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--muted);
}

.next {
    width: 220px;
    height: 56px;
    border: none;
    border-radius: 12px;
    background: var(--black);
    color: var(--bg);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.next:hover {
    opacity: 0.85;
    transform: scale(1.04);
}

.next:active {
    transform: scale(0.95);
}
.days_label {
    position: absolute;
    right: 100%;
    top: 50%;
    margin-right: 6px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

.days_label.show {
    animation: daysLabel 1.8s ease forwards;
}

@keyframes daysLabel {
    0%   { opacity: 0; transform: translate(6px, -50%); }
    20%  { opacity: 0.7; transform: translate(0, -50%); }
    70%  { opacity: 0.7; transform: translate(0, -50%); }
    100% { opacity: 0; transform: translate(-4px, -50%); }
}
/* ---------- DESKTOP ---------- */

@media (min-width: 768px) {
    :root {
        --content-width: 440px;
    }

    nav {
        min-height: 88px;
    }

    nav p {
        font-size: 18px;
    }

    .progress_separ {
        width: 12px;
        height: 8px;
    }

    .title_feeling {
        font-size: 2.2rem;
    }

    .center_div_hero p {
        font-size: 1.2rem;
    }

    .center_hero {
        gap: 40px;
    }

    .next {
        width: 260px;
        height: 62px;
        font-size: 16px;
    }
}