:root {
    --background: #e8efe3;
    --app-background: #fffaf5;
    --surface: #ffffff;
    --surface-soft: #f1f4ed;
    --surface-peach: #fbe4db;

    --text: #21323a;
    --text-soft: #66747a;

    --sage: #6f9b84;
    --sage-dark: #486f60;
    --sage-soft: #e3eee7;

    --coral: #cf7774;
    --coral-soft: #fae5e1;

    --blue: #7484bb;
    --blue-soft: #e8ebf5;

    --gold: #e9a441;
    --gold-soft: #fff0d9;

    --border: #ebe7e0;

    --shadow:
        0 12px 35px rgba(59, 72, 65, 0.09);

    --navigation-height: 76px;
}


* {
    box-sizing: border-box;
}


html {
    font-size: 16px;
}


body {
    margin: 0;
    background: var(--background);
    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


button,
a,
input,
textarea,
select {
    font: inherit;
}


button {
    color: inherit;
}


a {
    color: inherit;
    text-decoration: none;
}


svg {
    display: block;
}


.app-shell {
    width: 100%;
    max-width: 500px;
    min-height: 100vh;

    margin: 0 auto;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(249, 221, 207, 0.5),
            transparent 230px
        ),
        var(--app-background);

    box-shadow:
        0 0 35px rgba(54, 69, 62, 0.09);
}


.app-main {
    min-height: 100vh;

    padding:
        25px
        18px
        calc(var(--navigation-height) + 35px);
}


.home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 28px;
}


.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}


.brand-leaf {
    display: grid;
    width: 32px;
    height: 32px;

    place-items: center;

    background: var(--sage-soft);
    border-radius: 50%;
}


.brand-leaf svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: var(--sage-dark);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.brand-name {
    color: var(--sage-dark);

    font-size: 1.16rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}


.notification-button {
    display: grid;

    width: 42px;
    height: 42px;

    padding: 0;

    place-items: center;

    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    border-radius: 50%;
}


.notification-button svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: var(--text);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.welcome-section {
    margin-bottom: 19px;
}


.welcome-section h1 {
    margin: 0 0 5px;

    font-size: clamp(1.65rem, 7vw, 2.05rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}


.welcome-section p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.98rem;
}


.support-banner {
    position: relative;

    display: flex;
    min-height: 83px;

    align-items: center;
    gap: 19px;

    overflow: hidden;

    margin-bottom: 17px;
    padding: 15px 18px;

    background:
        linear-gradient(
            135deg,
            #fae2d9,
            #fff0e9
        );

    border-radius: 19px;
}


.support-banner p {
    position: relative;
    z-index: 2;

    margin: 0;

    color: #5c6566;

    font-size: 0.9rem;
    line-height: 1.45;
}


.support-banner strong {
    color: var(--text);
    font-weight: 700;
}


.support-banner p > span {
    color: var(--coral);
    font-size: 1.15rem;
}


.support-illustration {
    position: relative;
    flex: 0 0 39px;
    height: 52px;
}


.stem {
    position: absolute;
    bottom: 4px;
    left: 19px;

    width: 2px;
    height: 43px;

    background: var(--sage-dark);

    border-radius: 3px;
    transform: rotate(-8deg);
}


.leaf {
    position: absolute;
    z-index: 1;

    width: 18px;
    height: 9px;

    background: var(--sage);
    border-radius: 100% 0 100% 0;
}


.leaf-one {
    top: 8px;
    left: 18px;

    transform: rotate(-20deg);
}


.leaf-two {
    top: 22px;
    left: 5px;

    transform: rotate(45deg);
}


.leaf-three {
    top: 31px;
    left: 20px;

    transform: rotate(-18deg);
}


.indicators {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 7px;

    margin-bottom: 17px;
}


.indicator {
    display: flex;

    min-width: 0;

    align-items: center;
    flex-direction: column;

    gap: 7px;
}


.indicator-icon {
    display: grid;

    width: 46px;
    height: 46px;

    place-items: center;

    border-radius: 50%;
}


.indicator-icon svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.indicator-name {
    max-width: 100%;

    overflow: hidden;

    color: #4e5d61;

    font-size: 0.66rem;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.indicator-pain .indicator-icon {
    background: var(--coral-soft);
    color: var(--coral);
}


.indicator-fatigue .indicator-icon {
    background: var(--sage-soft);
    color: var(--sage-dark);
}


.indicator-sleep .indicator-icon {
    background: var(--blue-soft);
    color: var(--blue);
}


.indicator-mood .indicator-icon {
    background: #e4f0e8;
    color: #4f8b72;
}


.indicator-energy .indicator-icon {
    background: var(--gold-soft);
    color: var(--gold);
}


.morning-card {
    padding: 20px;

    background:
        linear-gradient(
            140deg,
            #edf2e9,
            #f7f5ed
        );

    border: 1px solid rgba(111, 155, 132, 0.16);
    border-radius: 21px;

    box-shadow: var(--shadow);
}


.morning-card-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}


.morning-icon {
    display: grid;
    flex: 0 0 47px;

    width: 47px;
    height: 47px;

    place-items: center;

    background: var(--gold-soft);
    color: var(--gold);

    border-radius: 50%;
}


.morning-icon svg {
    width: 25px;
    height: 25px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}


.eyebrow {
    display: block;

    margin-bottom: 3px;

    color: var(--text-soft);

    font-size: 0.7rem;
    font-weight: 700;

    letter-spacing: 0.045em;
    text-transform: uppercase;
}


.morning-card h2 {
    margin: 0;

    color: var(--sage-dark);

    font-size: 1.2rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}


.morning-card-text {
    margin: 15px 0 18px;

    color: var(--text-soft);

    font-size: 0.89rem;
    line-height: 1.48;
}


.primary-button {
    display: flex;

    width: 100%;
    min-height: 55px;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 14px 18px;

    background:
        linear-gradient(
            135deg,
            #c86f70,
            #d4847d
        );

    color: #ffffff;

    border-radius: 17px;

    font-size: 0.94rem;
    font-weight: 750;

    box-shadow:
        0 9px 22px rgba(190, 100, 100, 0.18);

    transition:
        transform 120ms ease,
        box-shadow 120ms ease;
}


.primary-button:active {
    transform: scale(0.985);
    box-shadow: none;
}


.duration {
    margin: 11px 0 0;

    color: var(--text-soft);

    font-size: 0.76rem;
    text-align: center;
}


.quick-access {
    margin-top: 25px;
}


.section-heading {
    margin-bottom: 12px;
}


.section-heading h2 {
    margin: 0;

    font-size: 1.05rem;
    letter-spacing: -0.025em;
}


.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 8px;
}


.quick-card {
    display: flex;

    min-width: 0;
    min-height: 104px;

    align-items: center;
    flex-direction: column;
    justify-content: center;

    gap: 9px;

    padding: 11px 5px;

    background: rgba(255, 255, 255, 0.8);

    border: 1px solid var(--border);
    border-radius: 16px;

    text-align: center;

    box-shadow:
        0 5px 16px rgba(48, 60, 54, 0.04);
}


.quick-icon {
    display: grid;

    width: 34px;
    height: 34px;

    place-items: center;

    border-radius: 12px;

    font-size: 1.15rem;
    font-weight: 700;
}


.quick-icon-green {
    background: var(--sage-soft);
    color: var(--sage-dark);
}


.quick-icon-coral {
    background: var(--coral-soft);
    color: var(--coral);
}


.quick-icon-blue {
    background: var(--blue-soft);
    color: var(--blue);
}


.quick-icon-gold {
    background: var(--gold-soft);
    color: #d48a2f;
}


.quick-card > span:last-child {
    color: #4a595d;

    font-size: 0.69rem;
    font-weight: 700;
    line-height: 1.25;
}


.gentle-message {
    display: flex;

    align-items: center;
    gap: 11px;

    margin-top: 18px;
    padding: 15px 17px;

    background: var(--surface-peach);

    border-radius: 17px;
}


.gentle-message > span {
    color: var(--coral);

    font-size: 1.35rem;
    line-height: 1;
}


.gentle-message p {
    margin: 0;

    color: #5f6667;

    font-size: 0.84rem;
    line-height: 1.4;
}


.bottom-navigation {
    position: fixed;
    z-index: 100;

    bottom: 0;
    left: 50%;

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));

    width: min(100%, 500px);
    height:
        calc(
            var(--navigation-height)
            + env(safe-area-inset-bottom)
        );

    padding:
        7px
        5px
        env(safe-area-inset-bottom);

    background: rgba(255, 255, 255, 0.96);

    border-top: 1px solid var(--border);

    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}


.nav-item {
    display: flex;

    min-width: 0;

    align-items: center;
    flex-direction: column;
    justify-content: center;

    gap: 5px;

    color: #8a9394;
}


.nav-item svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.nav-item span {
    max-width: 100%;

    overflow: hidden;

    font-size: 0.61rem;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.nav-item-active {
    color: var(--coral);
}


.nav-item-active span {
    font-weight: 800;
}


@media (min-width: 500px) {
    .app-main {
        padding-right: 24px;
        padding-left: 24px;
    }
}


@media (max-width: 360px) {
    .app-main {
        padding-right: 13px;
        padding-left: 13px;
    }

    .indicator-icon {
        width: 41px;
        height: 41px;
    }

    .indicator-name {
        font-size: 0.6rem;
    }

    .quick-card > span:last-child {
        font-size: 0.63rem;
    }
}


@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   Check du matin
   ========================================================= */

.check-page,
.result-page {
    padding-top: 3px;
}


.page-header {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 25px;
}


.page-back {
    display: grid;
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    place-items: center;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 50%;

    color: var(--text);

    font-size: 1.35rem;
}


.page-eyebrow {
    margin: 0 0 3px;

    color: var(--sage-dark);

    font-size: 0.7rem;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}


.page-header h1 {
    margin: 0;

    font-size: 1.45rem;
    letter-spacing: -0.035em;
}


.check-introduction {
    margin-bottom: 21px;
}


.check-introduction h2 {
    margin: 0 0 7px;

    font-size: 1.16rem;
    letter-spacing: -0.025em;
}


.check-introduction p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.89rem;
    line-height: 1.5;
}


.morning-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.check-field {
    padding: 17px;

    background: rgba(255, 255, 255, 0.83);

    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow:
        0 5px 18px rgba(48, 60, 54, 0.035);
}


.check-field-heading {
    display: grid;
    grid-template-columns: 37px 1fr auto;

    align-items: center;
    gap: 10px;

    margin-bottom: 14px;
}


.check-field-icon {
    display: grid;

    width: 37px;
    height: 37px;

    place-items: center;

    border-radius: 50%;

    font-size: 1.15rem;
    font-weight: 700;
}


.check-field-heading label {
    font-size: 0.92rem;
    font-weight: 750;
}


.check-field-heading output {
    color: var(--text-soft);

    font-size: 0.72rem;
    font-weight: 650;

    text-align: right;
}


.check-field-sleep .check-field-icon {
    background: var(--blue-soft);
    color: var(--blue);
}


.check-field-pain .check-field-icon {
    background: var(--coral-soft);
    color: var(--coral);
}


.check-field-fatigue .check-field-icon {
    background: var(--sage-soft);
    color: var(--sage-dark);
}


.check-field-mood .check-field-icon {
    background: #e4f0e8;
    color: #4f8b72;
}


.check-field-energy .check-field-icon {
    background: var(--gold-soft);
    color: var(--gold);
}


.check-field input[type="range"] {
    width: 100%;
    height: 7px;

    margin: 3px 0;

    appearance: none;

    background: #e9e7e2;
    border-radius: 20px;

    cursor: pointer;
}


.check-field input[type="range"]::-webkit-slider-thumb {
    width: 22px;
    height: 22px;

    appearance: none;

    background: #ffffff;

    border: 3px solid var(--sage);
    border-radius: 50%;

    box-shadow:
        0 2px 7px rgba(41, 55, 48, 0.18);
}


.check-field input[type="range"]::-moz-range-thumb {
    width: 17px;
    height: 17px;

    background: #ffffff;

    border: 3px solid var(--sage);
    border-radius: 50%;
}


.check-field-pain input[type="range"]::-webkit-slider-thumb {
    border-color: var(--coral);
}


.check-field-pain input[type="range"]::-moz-range-thumb {
    border-color: var(--coral);
}


.check-field-sleep input[type="range"]::-webkit-slider-thumb {
    border-color: var(--blue);
}


.check-field-sleep input[type="range"]::-moz-range-thumb {
    border-color: var(--blue);
}


.check-field-energy input[type="range"]::-webkit-slider-thumb {
    border-color: var(--gold);
}


.check-field-energy input[type="range"]::-moz-range-thumb {
    border-color: var(--gold);
}


.range-labels {
    display: flex;
    justify-content: space-between;

    margin-top: 7px;

    color: #8a9394;

    font-size: 0.65rem;
}


.errorlist {
    margin: 9px 0 0;
    padding: 0;

    color: #a94e4e;

    font-size: 0.76rem;
    list-style: none;
}


.form-error {
    padding: 13px;

    background: #fde8e5;
    color: #944c4c;

    border-radius: 13px;

    font-size: 0.84rem;
}


.note-field {
    margin-top: 5px;
}


.note-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 9px;

    font-size: 0.88rem;
    font-weight: 750;
}


.note-field label span {
    color: var(--text-soft);

    font-size: 0.7rem;
    font-weight: 500;
}


.note-field textarea {
    width: 100%;
    min-height: 92px;

    padding: 14px;

    resize: vertical;

    background: rgba(255, 255, 255, 0.84);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 16px;

    outline: none;
}


.note-field textarea:focus {
    border-color: var(--sage);

    box-shadow:
        0 0 0 3px rgba(111, 155, 132, 0.13);
}


.check-submit {
    display: flex;

    width: 100%;
    min-height: 56px;

    align-items: center;
    justify-content: center;

    margin-top: 7px;
    padding: 14px 18px;

    background:
        linear-gradient(
            135deg,
            #c86f70,
            #d4847d
        );

    color: #ffffff;

    border: 0;
    border-radius: 17px;

    font-weight: 750;

    box-shadow:
        0 9px 22px rgba(190, 100, 100, 0.18);

    cursor: pointer;
}


/* Résultat du matin */

.state-result {
    padding: 25px 21px;

    background:
        linear-gradient(
            140deg,
            #edf2e9,
            #f7f5ed
        );

    border: 1px solid rgba(111, 155, 132, 0.16);
    border-radius: 22px;

    text-align: center;

    box-shadow: var(--shadow);
}


.state-result-icon {
    display: grid;

    width: 58px;
    height: 58px;

    margin: 0 auto 15px;

    place-items: center;

    background: #ffffff;
    color: var(--sage-dark);

    border-radius: 50%;

    font-size: 1.7rem;
}


.state-result-label {
    margin: 0 0 6px;

    color: var(--text-soft);

    font-size: 0.7rem;
    font-weight: 750;

    letter-spacing: 0.05em;
    text-transform: uppercase;
}


.state-result h2 {
    margin: 0 0 11px;

    color: var(--sage-dark);

    font-size: 1.55rem;
    letter-spacing: -0.035em;
}


.state-result > p:last-child {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.9rem;
    line-height: 1.55;
}


.state-recovery {
    background:
        linear-gradient(
            140deg,
            #f8e5e0,
            #fff4ef
        );
}


.state-gentle {
    background:
        linear-gradient(
            140deg,
            #e9edf5,
            #f5f3f6
        );
}


.state-good_energy {
    background:
        linear-gradient(
            140deg,
            #fff0d6,
            #f8f4e7
        );
}


.result-summary {
    margin-top: 25px;
}


.result-summary h2 {
    margin: 0 0 13px;

    font-size: 1.05rem;
    letter-spacing: -0.025em;
}


.result-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 7px;
}


.result-grid article {
    display: flex;

    min-width: 0;
    min-height: 78px;

    align-items: center;
    flex-direction: column;
    justify-content: center;

    padding: 8px 3px;

    background: rgba(255, 255, 255, 0.83);

    border: 1px solid var(--border);
    border-radius: 14px;
}


.result-grid strong {
    font-size: 0.88rem;
}


.result-grid span {
    margin-top: 5px;

    color: var(--text-soft);

    font-size: 0.6rem;
}


.result-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin-top: 25px;
}


.result-home-button {
    margin-top: 0;
}


.secondary-button {
    display: flex;

    min-height: 50px;

    align-items: center;
    justify-content: center;

    color: var(--sage-dark);

    border: 1px solid var(--sage);
    border-radius: 16px;

    font-size: 0.9rem;
    font-weight: 700;
}

/* =========================================================
   Accueil après le check du matin
   ========================================================= */

.indicator-value {
    color: var(--text);

    font-size: 0.68rem;
    line-height: 1;
}


.morning-card-completed .morning-icon {
    font-size: 1.45rem;
}


.state-home-recovery {
    background:
        linear-gradient(
            140deg,
            #f8e3de,
            #fff3ee
        );
}


.state-home-recovery .morning-icon {
    background: #ffffff;
    color: var(--coral);
}


.state-home-gentle {
    background:
        linear-gradient(
            140deg,
            #e8edf3,
            #f5f3f5
        );
}


.state-home-gentle .morning-icon {
    background: #ffffff;
    color: var(--blue);
}


.state-home-usual {
    background:
        linear-gradient(
            140deg,
            #eaf1e9,
            #f6f5ed
        );
}


.state-home-usual .morning-icon {
    background: #ffffff;
    color: var(--sage-dark);
}


.state-home-good_energy {
    background:
        linear-gradient(
            140deg,
            #fff0d4,
            #f7f4e6
        );
}


.state-home-good_energy .morning-icon {
    background: #ffffff;
    color: var(--gold);
}


.home-state-actions {
    display: grid;
    grid-template-columns: 1fr auto;

    gap: 9px;
}


.state-link-primary,
.state-link-secondary {
    display: flex;

    min-height: 48px;

    align-items: center;
    justify-content: center;

    padding: 11px 16px;

    border-radius: 15px;

    font-size: 0.84rem;
    font-weight: 750;
}


.state-link-primary {
    background: var(--sage-dark);
    color: #ffffff;
}


.state-link-secondary {
    background: rgba(255, 255, 255, 0.72);
    color: var(--sage-dark);

    border: 1px solid rgba(72, 111, 96, 0.2);
}


.daily-advice-preview {
    margin-top: 27px;
}


.section-heading > div {
    min-width: 0;
}


.section-eyebrow {
    margin: 0 0 3px;

    color: var(--coral);

    font-size: 0.67rem;
    font-weight: 800;

    letter-spacing: 0.055em;
    text-transform: uppercase;
}


.advice-list {
    display: flex;
    flex-direction: column;

    gap: 9px;
}


.advice-card {
    display: grid;
    grid-template-columns: 42px 1fr;

    align-items: start;
    gap: 12px;

    padding: 14px;

    background: rgba(255, 255, 255, 0.82);

    border: 1px solid var(--border);
    border-radius: 17px;

    box-shadow:
        0 5px 16px rgba(48, 60, 54, 0.035);
}


.advice-icon {
    display: grid;

    width: 42px;
    height: 42px;

    place-items: center;

    border-radius: 50%;

    font-size: 1.1rem;
    font-weight: 750;
}


.advice-icon-coral {
    background: var(--coral-soft);
    color: var(--coral);
}


.advice-icon-blue {
    background: var(--blue-soft);
    color: var(--blue);
}


.advice-icon-green {
    background: var(--sage-soft);
    color: var(--sage-dark);
}


.advice-icon-gold {
    background: var(--gold-soft);
    color: var(--gold);
}


.advice-card h3 {
    margin: 1px 0 4px;

    font-size: 0.88rem;
    letter-spacing: -0.015em;
}


.advice-card p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.78rem;
    line-height: 1.45;
}

/* =========================================================
   Mon essentiel du jour
   ========================================================= */

.priority-home-card {
    display: grid;
    grid-template-columns: 49px 1fr;

    align-items: start;
    gap: 14px;

    margin-top: 25px;
    padding: 19px;

    background:
        linear-gradient(
            135deg,
            #fae4dc,
            #fff0e9
        );

    border: 1px solid rgba(207, 119, 116, 0.12);
    border-radius: 20px;
}


.priority-home-icon {
    display: grid;

    width: 49px;
    height: 49px;

    place-items: center;

    background: rgba(255, 255, 255, 0.75);
    color: var(--coral);

    border-radius: 50%;

    font-size: 1.5rem;
}


.priority-home-content h2 {
    margin: 2px 0 6px;

    font-size: 1.02rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}


.priority-home-content > p:not(.section-eyebrow) {
    margin: 0 0 11px;

    color: var(--text-soft);

    font-size: 0.8rem;
    line-height: 1.4;
}


.priority-home-content a {
    color: var(--coral);

    font-size: 0.78rem;
    font-weight: 750;
}


.priority-page {
    padding-top: 3px;
}


.priority-introduction {
    display: grid;
    grid-template-columns: 49px 1fr;

    align-items: start;
    gap: 14px;

    margin-bottom: 21px;
    padding: 18px;

    background: var(--surface-peach);

    border-radius: 19px;
}


.priority-introduction-icon {
    display: grid;

    width: 49px;
    height: 49px;

    place-items: center;

    background: #ffffff;
    color: var(--coral);

    border-radius: 50%;

    font-size: 1.45rem;
}


.priority-introduction h2 {
    margin: 1px 0 6px;

    font-size: 1rem;
}


.priority-introduction p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.82rem;
    line-height: 1.45;
}


.priority-form {
    display: flex;
    flex-direction: column;

    gap: 15px;
}


.priority-form-field {
    padding: 18px;

    background: rgba(255, 255, 255, 0.84);

    border: 1px solid var(--border);
    border-radius: 19px;
}


.priority-form-field label {
    display: block;

    margin-bottom: 11px;

    font-size: 0.91rem;
    font-weight: 750;
}


.priority-form-field textarea {
    width: 100%;
    min-height: 105px;

    padding: 14px;

    resize: vertical;

    background: #fffdfb;
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 15px;

    outline: none;
}


.priority-form-field textarea:focus {
    border-color: var(--coral);

    box-shadow:
        0 0 0 3px rgba(207, 119, 116, 0.12);
}


.priority-help {
    margin: 10px 0 0;

    color: var(--text-soft);

    font-size: 0.73rem;
    line-height: 1.4;
}


.priority-examples {
    margin-top: 25px;
}


.priority-examples > p {
    margin: 0 0 10px;

    color: var(--text-soft);

    font-size: 0.75rem;
    font-weight: 700;

    text-transform: uppercase;
}


.priority-examples > div {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}


.priority-examples span {
    padding: 8px 11px;

    background: var(--sage-soft);
    color: var(--sage-dark);

    border-radius: 20px;

    font-size: 0.71rem;
    font-weight: 650;
}

/* =========================================================
   Notes quotidiennes
   ========================================================= */

.notes-page {
    padding-top: 3px;
}


.notes-introduction {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 20px;
    padding: 16px;

    background: var(--surface-peach);

    border-radius: 18px;
}


.notes-introduction > span {
    display: grid;
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    place-items: center;

    background: #ffffff;
    color: var(--coral);

    border-radius: 50%;

    font-size: 1.2rem;
}


.notes-introduction p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.82rem;
    line-height: 1.45;
}


.notes-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.note-category-field {
    margin: 0;
    padding: 17px;

    background: rgba(255, 255, 255, 0.84);

    border: 1px solid var(--border);
    border-radius: 18px;
}


.note-category-field legend {
    padding: 0 5px;

    font-size: 0.87rem;
    font-weight: 750;
}


#id_category {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 8px;
}


#id_category > div label {
    display: flex;
    min-height: 41px;

    align-items: center;
    gap: 7px;

    padding: 9px 10px;

    background: var(--surface-soft);

    border: 1px solid transparent;
    border-radius: 13px;

    color: var(--text-soft);

    font-size: 0.72rem;
    font-weight: 650;

    cursor: pointer;
}


#id_category input {
    accent-color: var(--coral);
}


#id_category > div label:has(input:checked) {
    background: var(--coral-soft);
    color: var(--coral);

    border-color: rgba(207, 119, 116, 0.25);
}


.note-text-field {
    padding: 17px;

    background: rgba(255, 255, 255, 0.84);

    border: 1px solid var(--border);
    border-radius: 18px;
}


.note-text-field label {
    display: block;

    margin-bottom: 10px;

    font-size: 0.87rem;
    font-weight: 750;
}


.note-text-field textarea {
    width: 100%;
    min-height: 110px;

    padding: 14px;

    resize: vertical;

    background: #fffdfb;
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 14px;

    outline: none;
}


.note-text-field textarea:focus {
    border-color: var(--coral);

    box-shadow:
        0 0 0 3px rgba(207, 119, 116, 0.12);
}


.today-notes {
    margin-top: 28px;
}


.notes-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}


.note-card {
    padding: 15px;

    background: rgba(255, 255, 255, 0.84);

    border: 1px solid var(--border);
    border-radius: 16px;
}


.note-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 8px;
}


.note-category {
    padding: 5px 9px;

    background: var(--sage-soft);
    color: var(--sage-dark);

    border-radius: 20px;

    font-size: 0.65rem;
    font-weight: 750;
}


.note-card time {
    color: var(--text-soft);

    font-size: 0.67rem;
}


.note-card p {
    margin: 0;

    font-size: 0.82rem;
    line-height: 1.5;
}


.empty-notes {
    padding: 25px 18px;

    background: rgba(255, 255, 255, 0.7);

    border: 1px dashed var(--border);
    border-radius: 17px;

    color: var(--text-soft);

    text-align: center;
}


.empty-notes > span {
    font-size: 1.4rem;
}


.empty-notes p {
    margin: 8px 0 0;

    font-size: 0.8rem;
}


.home-notes {
    margin-top: 25px;
}


.home-notes-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 11px;
}


.home-notes-heading h2 {
    margin: 2px 0 0;

    font-size: 1.03rem;
}


.home-notes-heading > a {
    color: var(--coral);

    font-size: 0.74rem;
    font-weight: 750;
}


.home-notes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.home-notes-list article {
    padding: 13px 14px;

    background: rgba(255, 255, 255, 0.82);

    border: 1px solid var(--border);
    border-radius: 15px;
}

/* =========================================================
   Check du soir
   ========================================================= */

.evening-page,
.evening-result-page {
    padding-top: 3px;
}


.evening-introduction {
    display: grid;
    grid-template-columns: 49px 1fr;

    align-items: center;
    gap: 14px;

    margin-bottom: 20px;
    padding: 18px;

    background:
        linear-gradient(
            135deg,
            #e8ebf5,
            #f4f0f4
        );

    border-radius: 19px;
}


.evening-introduction > span {
    display: grid;

    width: 49px;
    height: 49px;

    place-items: center;

    background: #ffffff;
    color: var(--blue);

    border-radius: 50%;

    font-size: 1.45rem;
}


.evening-introduction h2 {
    margin: 0 0 5px;

    font-size: 1rem;
}


.evening-introduction p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.8rem;
    line-height: 1.4;
}


.check-field-evening .check-field-icon {
    background: var(--coral-soft);
    color: var(--coral);
}


.priority-outcome-field {
    margin: 4px 0 0;
    padding: 18px;

    background: var(--surface-peach);

    border: 0;
    border-radius: 19px;
}


.priority-outcome-field legend {
    padding: 0 5px;

    font-size: 0.88rem;
    font-weight: 750;
}


.priority-outcome-text {
    margin: 2px 0 13px;

    font-size: 0.9rem;
    font-weight: 750;
}


#id_priority_outcome {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 7px;
}


#id_priority_outcome label {
    display: flex;
    min-height: 52px;

    align-items: center;
    justify-content: center;

    padding: 8px;

    background: rgba(255, 255, 255, 0.72);

    border: 1px solid transparent;
    border-radius: 13px;

    font-size: 0.68rem;
    font-weight: 700;

    text-align: center;
    cursor: pointer;
}


#id_priority_outcome input {
    position: absolute;
    opacity: 0;
}


#id_priority_outcome label:has(input:checked) {
    background: var(--sage-dark);
    color: #ffffff;
}


.priority-outcome-reassurance {
    margin: 12px 0 0;

    color: var(--text-soft);

    font-size: 0.69rem;
    line-height: 1.4;
}


.evening-result-message {
    padding: 25px 20px;

    background:
        linear-gradient(
            140deg,
            #e8ebf5,
            #f6f1f4
        );

    border-radius: 21px;

    text-align: center;
}


.evening-result-message > span {
    display: grid;

    width: 55px;
    height: 55px;

    margin: 0 auto 14px;

    place-items: center;

    background: #ffffff;
    color: var(--blue);

    border-radius: 50%;

    font-size: 1.5rem;
}


.evening-result-message h2 {
    margin: 0 0 8px;

    font-size: 1.2rem;
}


.evening-result-message p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.84rem;
    line-height: 1.5;
}


.evening-result-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 9px;

    margin-top: 18px;
}


.evening-result-values article {
    display: flex;
    min-height: 83px;

    align-items: center;
    flex-direction: column;
    justify-content: center;

    background: rgba(255, 255, 255, 0.84);

    border: 1px solid var(--border);
    border-radius: 16px;
}


.evening-result-values strong {
    font-size: 1rem;
}


.evening-result-values span {
    margin-top: 5px;

    color: var(--text-soft);

    font-size: 0.7rem;
}


.evening-priority-result,
.evening-note-result {
    margin-top: 18px;
    padding: 18px;

    background: rgba(255, 255, 255, 0.84);

    border: 1px solid var(--border);
    border-radius: 18px;
}


.evening-priority-result h2 {
    margin: 4px 0 10px;

    font-size: 1rem;
}


.evening-priority-result > span {
    display: inline-flex;

    padding: 6px 10px;

    background: var(--sage-soft);
    color: var(--sage-dark);

    border-radius: 20px;

    font-size: 0.7rem;
    font-weight: 750;
}


.evening-note-result > p:last-child {
    margin: 8px 0 0;

    font-size: 0.84rem;
    line-height: 1.5;
}


.evening-home-card {
    display: grid;
    grid-template-columns: 49px 1fr;

    align-items: start;
    gap: 14px;

    margin-top: 25px;
    padding: 19px;

    background:
        linear-gradient(
            135deg,
            #e8ebf5,
            #f6f1f4
        );

    border-radius: 20px;
}


.evening-home-icon {
    display: grid;

    width: 49px;
    height: 49px;

    place-items: center;

    background: #ffffff;
    color: var(--blue);

    border-radius: 50%;

    font-size: 1.45rem;
}


.evening-home-content h2 {
    margin: 3px 0 6px;

    font-size: 1rem;
    line-height: 1.3;
}


.evening-home-content > p:not(.section-eyebrow) {
    margin: 0 0 11px;

    color: var(--text-soft);

    font-size: 0.78rem;
    line-height: 1.4;
}


.evening-home-content a {
    color: var(--blue);

    font-size: 0.77rem;
    font-weight: 750;
}
.home-notes-list article > span {
    color: var(--sage-dark);

    font-size: 0.64rem;
    font-weight: 800;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}


.home-notes-list article p {
    margin: 5px 0 0;

    color: var(--text-soft);

    font-size: 0.78rem;
    line-height: 1.4;
}

/* =========================================================
   Suivi et historique
   ========================================================= */

.tracking-page {
    padding-top: 3px;
}


.tracking-message {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 25px;
    padding: 16px;

    background: var(--sage-soft);

    border-radius: 18px;
}


.tracking-message > span {
    display: grid;
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    place-items: center;

    background: #ffffff;
    color: var(--sage-dark);

    border-radius: 50%;

    font-size: 1.25rem;
}


.tracking-message p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.81rem;
    line-height: 1.45;
}


.weekly-summary {
    margin-bottom: 27px;
}


.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 9px;
}


.summary-grid article {
    display: flex;
    min-height: 100px;

    align-items: center;
    flex-direction: column;
    justify-content: center;

    padding: 13px;

    background: rgba(255, 255, 255, 0.84);

    border: 1px solid var(--border);
    border-radius: 17px;

    text-align: center;
}


.summary-grid strong {
    color: var(--sage-dark);

    font-size: 1.25rem;
}


.summary-grid span {
    margin-top: 5px;

    color: var(--text-soft);

    font-size: 0.68rem;
    line-height: 1.3;
}


.weekly-indicators {
    overflow: hidden;

    margin-bottom: 28px;
    padding: 17px 10px;

    background: rgba(255, 255, 255, 0.84);

    border: 1px solid var(--border);
    border-radius: 19px;
}


.weekly-indicators > h2 {
    margin: 0 7px 16px;

    font-size: 1rem;
}


.tracking-grid {
    display: grid;
    grid-template-columns:
        minmax(57px, 1.25fr)
        repeat(7, minmax(28px, 1fr));

    align-items: center;

    row-gap: 11px;
}


.tracking-day-heading {
    display: flex;

    align-items: center;
    flex-direction: column;

    color: var(--text-soft);

    font-size: 0.58rem;
}


.tracking-day-heading strong {
    margin-top: 2px;

    color: var(--text);

    font-size: 0.66rem;
}


.tracking-metric-name {
    padding-left: 5px;

    color: var(--text-soft);

    font-size: 0.62rem;
    font-weight: 700;
}


.tracking-value-cell {
    display: grid;
    place-items: center;
}


.tracking-dot {
    display: grid;

    width: 27px;
    height: 27px;

    place-items: center;

    border-radius: 50%;

    color: #ffffff;

    font-size: 0.61rem;
    font-weight: 800;
}


.tracking-dot-good {
    background: var(--sage);
}


.tracking-dot-medium {
    background: var(--gold);
}


.tracking-dot-high {
    background: var(--coral);
}


.tracking-empty {
    color: #c6c9c6;

    font-size: 0.72rem;
}


.tracking-legend {
    display: flex;
    flex-wrap: wrap;

    gap: 8px 13px;

    margin-top: 17px;
    padding: 13px 6px 0;

    border-top: 1px solid var(--border);
}


.tracking-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: var(--text-soft);

    font-size: 0.59rem;
}


.tracking-legend i {
    display: inline-block;

    width: 8px;
    height: 8px;

    border-radius: 50%;
}


.legend-good {
    background: var(--sage);
}


.legend-medium {
    background: var(--gold);
}


.legend-high {
    background: var(--coral);
}


.history-section {
    margin-top: 5px;
}


.history-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}


.history-card {
    padding: 16px;

    background: rgba(255, 255, 255, 0.84);

    border: 1px solid var(--border);
    border-radius: 18px;
}


.history-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 13px;
}


.history-card-heading > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;
}


.history-card-heading strong {
    font-size: 0.83rem;
}


.history-card-heading small {
    color: var(--text-soft);

    font-size: 0.65rem;
}


.history-state {
    padding: 5px 8px;

    border-radius: 20px;

    font-size: 0.59rem;
    font-weight: 750;
}


.state-pill-recovery {
    background: var(--coral-soft);
    color: var(--coral);
}


.state-pill-gentle {
    background: var(--blue-soft);
    color: var(--blue);
}


.state-pill-usual {
    background: var(--sage-soft);
    color: var(--sage-dark);
}


.state-pill-good_energy {
    background: var(--gold-soft);
    color: #c47d25;
}


.history-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 6px;
}


.history-values span {
    display: flex;

    align-items: center;
    flex-direction: column;

    padding: 8px 3px;

    background: var(--surface-soft);

    border-radius: 11px;

    color: var(--text-soft);

    font-size: 0.58rem;
}


.history-values strong {
    margin-top: 4px;

    color: var(--text);

    font-size: 0.69rem;
}


.history-priority {
    margin-top: 11px;
    padding: 11px;

    background: var(--surface-peach);

    border-radius: 12px;
}


.history-priority > span {
    color: var(--coral);

    font-size: 0.59rem;
    font-weight: 800;

    text-transform: uppercase;
}


.history-priority p {
    margin: 4px 0;

    font-size: 0.75rem;
    font-weight: 700;
}


.history-priority small {
    color: var(--text-soft);

    font-size: 0.64rem;
}


.history-evening {
    margin: 11px 0 0;

    color: var(--text-soft);

    font-size: 0.7rem;
    line-height: 1.45;
}


.empty-history {
    padding: 25px;

    background: rgba(255, 255, 255, 0.7);

    border: 1px dashed var(--border);
    border-radius: 18px;

    color: var(--text-soft);

    text-align: center;
}


.empty-history > span {
    font-size: 1.4rem;
}


.empty-history p {
    margin: 8px 0 0;

    font-size: 0.8rem;
}


/* =========================================================
   Page Conseils
   ========================================================= */

.advice-page {
    padding-top: 3px;
}


.advice-state-card {
    display: grid;
    grid-template-columns: 55px 1fr;

    align-items: start;
    gap: 15px;

    padding: 20px;

    border-radius: 21px;

    box-shadow: var(--shadow);
}


.advice-state-icon {
    display: grid;

    width: 55px;
    height: 55px;

    place-items: center;

    background: rgba(255, 255, 255, 0.8);

    border-radius: 50%;

    font-size: 1.5rem;
}


.advice-state-card div > p {
    margin: 1px 0 4px;

    color: var(--text-soft);

    font-size: 0.68rem;
    font-weight: 750;

    letter-spacing: 0.045em;
    text-transform: uppercase;
}


.advice-state-card h2 {
    margin: 0 0 8px;

    font-size: 1.2rem;
    letter-spacing: -0.025em;
}


.advice-state-card div > span {
    color: var(--text-soft);

    font-size: 0.79rem;
    line-height: 1.45;
}


.advice-state-recovery {
    background:
        linear-gradient(
            140deg,
            #f8e3de,
            #fff3ee
        );
}


.advice-state-recovery .advice-state-icon {
    color: var(--coral);
}


.advice-state-gentle {
    background:
        linear-gradient(
            140deg,
            #e8ebf5,
            #f5f3f6
        );
}


.advice-state-gentle .advice-state-icon {
    color: var(--blue);
}


.advice-state-usual {
    background:
        linear-gradient(
            140deg,
            #e7efe8,
            #f6f5ed
        );
}


.advice-state-usual .advice-state-icon {
    color: var(--sage-dark);
}


.advice-state-good_energy {
    background:
        linear-gradient(
            140deg,
            #fff0d4,
            #f8f5e8
        );
}


.advice-state-good_energy .advice-state-icon {
    color: var(--gold);
}


.personalized-advice,
.simple-support {
    margin-top: 28px;
}


.full-advice-list,
.support-list {
    display: flex;
    flex-direction: column;

    gap: 10px;
}


.full-advice-card,
.support-list article {
    display: grid;
    grid-template-columns: 45px 1fr;

    align-items: start;
    gap: 13px;

    padding: 16px;

    background: rgba(255, 255, 255, 0.84);

    border: 1px solid var(--border);
    border-radius: 17px;
}


.full-advice-card h3,
.support-list h3 {
    margin: 1px 0 5px;

    font-size: 0.9rem;
}


.full-advice-card p,
.support-list p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.78rem;
    line-height: 1.45;
}


.support-tip-icon {
    display: grid;

    width: 45px;
    height: 45px;

    place-items: center;

    border-radius: 50%;

    font-size: 1.15rem;
    font-weight: 800;
}


.support-tip-water {
    background: var(--blue-soft);
    color: var(--blue);
}


.support-tip-food {
    background: var(--gold-soft);
    color: var(--gold);
}


.support-tip-movement {
    background: var(--sage-soft);
    color: var(--sage-dark);
}


.advice-reminder {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 22px;
    padding: 16px;

    background: var(--surface-peach);

    border-radius: 17px;
}


.advice-reminder > span {
    color: var(--coral);

    font-size: 1.3rem;
}


.advice-reminder p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.78rem;
    line-height: 1.45;
}


.advice-empty-state {
    padding: 29px 21px;

    background:
        linear-gradient(
            140deg,
            #e7efe8,
            #f7f5ed
        );

    border-radius: 21px;

    text-align: center;
}


.advice-empty-state > span {
    display: grid;

    width: 57px;
    height: 57px;

    margin: 0 auto 15px;

    place-items: center;

    background: #ffffff;
    color: var(--sage-dark);

    border-radius: 50%;

    font-size: 1.5rem;
}


.advice-empty-state h2 {
    margin: 0 0 8px;

    font-size: 1.15rem;
}


.advice-empty-state p {
    margin: 0 0 19px;

    color: var(--text-soft);

    font-size: 0.82rem;
    line-height: 1.5;
}


.medical-information {
    margin: 23px 6px 0;

    color: #8a9290;

    font-size: 0.66rem;
    line-height: 1.45;

    text-align: center;
}


/* =========================================================
   Profil
   ========================================================= */

.profile-page {
    padding-top: 9px;
}


.profile-header {
    display: grid;
    grid-template-columns: 76px 1fr;

    align-items: center;
    gap: 17px;

    margin-bottom: 25px;
}


.profile-avatar {
    display: grid;

    width: 76px;
    height: 76px;

    place-items: center;

    background:
        linear-gradient(
            145deg,
            var(--surface-peach),
            var(--coral-soft)
        );

    color: var(--coral);

    border: 4px solid #ffffff;
    border-radius: 50%;

    font-size: 1.7rem;
    font-weight: 800;

    box-shadow:
        0 8px 22px rgba(80, 67, 62, 0.1);
}


.profile-header h1 {
    margin: 2px 0 4px;

    font-size: 1.5rem;
    letter-spacing: -0.035em;
}


.profile-header div:last-child > p:last-child {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.8rem;
}


.profile-success {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 17px;
    padding: 13px 15px;

    background: var(--sage-soft);
    color: var(--sage-dark);

    border-radius: 14px;

    font-size: 0.79rem;
    font-weight: 700;
}


.profile-success span {
    display: grid;

    width: 24px;
    height: 24px;

    place-items: center;

    background: #ffffff;

    border-radius: 50%;
}


.profile-form-card {
    padding: 18px;

    background: rgba(255, 255, 255, 0.84);

    border: 1px solid var(--border);
    border-radius: 19px;
}


.profile-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


.profile-field label {
    display: block;

    margin-bottom: 9px;

    font-size: 0.83rem;
    font-weight: 750;
}


.profile-field input {
    width: 100%;
    min-height: 50px;

    padding: 12px 14px;

    background: #fffdfb;
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 14px;

    outline: none;
}


.profile-field input:focus {
    border-color: var(--coral);

    box-shadow:
        0 0 0 3px rgba(207, 119, 116, 0.12);
}


.profile-field > p {
    margin: 8px 0 0;

    color: var(--text-soft);

    font-size: 0.68rem;
    line-height: 1.4;
}


.profile-statistics {
    margin-top: 26px;
}


.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 8px;
}


.profile-stats-grid article {
    display: flex;
    min-height: 92px;

    align-items: center;
    flex-direction: column;
    justify-content: center;

    padding: 10px 5px;

    background: rgba(255, 255, 255, 0.84);

    border: 1px solid var(--border);
    border-radius: 16px;

    text-align: center;
}


.profile-stats-grid strong {
    color: var(--sage-dark);

    font-size: 1.2rem;
}


.profile-stats-grid span {
    margin-top: 5px;

    color: var(--text-soft);

    font-size: 0.62rem;
    line-height: 1.3;
}


.profile-links {
    display: flex;
    flex-direction: column;
    gap: 8px;

    margin-top: 24px;
}


.profile-links > a {
    display: grid;
    grid-template-columns: 40px 1fr auto;

    align-items: center;
    gap: 11px;

    padding: 13px;

    background: rgba(255, 255, 255, 0.84);

    border: 1px solid var(--border);
    border-radius: 16px;
}


.profile-links > a > span {
    display: grid;

    width: 40px;
    height: 40px;

    place-items: center;

    background: var(--sage-soft);
    color: var(--sage-dark);

    border-radius: 12px;
}


.profile-links div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.profile-links strong {
    font-size: 0.81rem;
}


.profile-links small {
    color: var(--text-soft);

    font-size: 0.67rem;
}


.profile-links b {
    color: var(--text-soft);

    font-size: 1.25rem;
}


.local-data-information {
    display: grid;
    grid-template-columns: 42px 1fr;

    gap: 12px;

    margin-top: 24px;
    padding: 16px;

    background: var(--blue-soft);

    border-radius: 17px;
}


.local-data-information > span {
    display: grid;

    width: 42px;
    height: 42px;

    place-items: center;

    background: #ffffff;
    color: var(--blue);

    border-radius: 50%;
}


.local-data-information h2 {
    margin: 1px 0 5px;

    font-size: 0.86rem;
}


.local-data-information p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.7rem;
    line-height: 1.45;
}

/* =========================================================
   Planning
   ========================================================= */

.planning-page,
.schedule-form-page {
    padding-top: 3px;
}


.planning-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 22px;
}


.planning-header h1 {
    margin: 2px 0 0;

    font-size: 1.55rem;
    letter-spacing: -0.035em;
}


.planning-add-button {
    display: grid;
    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    place-items: center;

    background: var(--coral);
    color: #ffffff;

    border-radius: 50%;

    font-size: 1.55rem;

    box-shadow:
        0 8px 18px rgba(207, 119, 116, 0.2);
}


.movement-guidance {
    display: grid;
    grid-template-columns: 52px 1fr;

    align-items: start;
    gap: 14px;

    padding: 19px;

    border-radius: 20px;
}


.movement-guidance > span {
    display: grid;

    width: 52px;
    height: 52px;

    place-items: center;

    background: rgba(255, 255, 255, 0.8);

    border-radius: 50%;

    font-size: 1.45rem;
}


.movement-guidance div > p {
    margin: 1px 0 4px;

    color: var(--text-soft);

    font-size: 0.63rem;
    font-weight: 800;

    text-transform: uppercase;
}


.movement-guidance h2 {
    margin: 0 0 6px;

    font-size: 1rem;
}


.movement-guidance small {
    color: var(--text-soft);

    font-size: 0.74rem;
    line-height: 1.45;
}


.movement-guidance-recovery {
    background: var(--coral-soft);
}


.movement-guidance-gentle {
    background: var(--blue-soft);
}


.movement-guidance-usual,
.movement-guidance-empty {
    background: var(--sage-soft);
}


.movement-guidance-good-energy {
    background: var(--gold-soft);
}


.movement-guidance-empty a {
    display: inline-block;

    margin-top: 8px;

    color: var(--sage-dark);

    font-size: 0.72rem;
    font-weight: 750;
}


.planning-today,
.upcoming-planning {
    margin-top: 27px;
}


.section-heading > a {
    color: var(--coral);

    font-size: 0.74rem;
    font-weight: 750;
}


.event-list,
.upcoming-event-list {
    display: flex;
    flex-direction: column;

    gap: 9px;
}


.event-card {
    display: grid;
    grid-template-columns: 48px 1fr;

    align-items: start;
    gap: 13px;

    padding: 15px;

    background: rgba(255, 255, 255, 0.84);

    border: 1px solid var(--border);
    border-radius: 17px;
}


.event-type-icon,
.event-type-mini {
    display: grid;

    place-items: center;

    border-radius: 50%;

    font-weight: 800;
}


.event-type-icon {
    width: 48px;
    height: 48px;

    font-size: 1.2rem;
}


.event-type-mini {
    width: 34px;
    height: 34px;
}


.event-type-activity {
    background: var(--sage-soft);
    color: var(--sage-dark);
}


.event-type-medical {
    background: var(--coral-soft);
    color: var(--coral);
}


.event-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 9px;
}


.event-card-heading > span {
    color: var(--text-soft);

    font-size: 0.63rem;
    font-weight: 750;

    text-transform: uppercase;
}


.event-status {
    padding: 4px 7px;

    border-radius: 20px;

    font-size: 0.58rem;
    font-weight: 750;
}


.event-status-planned {
    background: var(--blue-soft);
    color: var(--blue);
}


.event-status-completed {
    background: var(--sage-soft);
    color: var(--sage-dark);
}


.event-status-partial,
.event-status-postponed {
    background: var(--gold-soft);
    color: #b87925;
}


.event-status-cancelled {
    background: #efedeb;
    color: var(--text-soft);
}


.event-card h3 {
    margin: 5px 0 4px;

    font-size: 0.92rem;
}


.event-card-content > p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.72rem;
}


.event-location {
    display: block;

    margin-top: 5px;

    color: var(--text-soft);

    font-size: 0.67rem;
}


.empty-planning {
    padding: 24px 18px;

    background: rgba(255, 255, 255, 0.7);

    border: 1px dashed var(--border);
    border-radius: 18px;

    text-align: center;
}


.empty-planning > span {
    color: var(--sage);

    font-size: 1.5rem;
}


.empty-planning p {
    margin: 8px auto;

    max-width: 290px;

    color: var(--text-soft);

    font-size: 0.78rem;
    line-height: 1.45;
}


.empty-planning a {
    color: var(--coral);

    font-size: 0.72rem;
    font-weight: 750;
}


.upcoming-event {
    display: grid;
    grid-template-columns: 44px 1fr 34px;

    align-items: center;
    gap: 12px;

    padding: 13px;

    background: rgba(255, 255, 255, 0.84);

    border: 1px solid var(--border);
    border-radius: 16px;
}


.upcoming-date {
    display: flex;

    align-items: center;
    flex-direction: column;

    padding: 7px 4px;

    background: var(--surface-soft);

    border-radius: 11px;
}


.upcoming-date strong {
    font-size: 0.9rem;
}


.upcoming-date span {
    color: var(--text-soft);

    font-size: 0.6rem;
}


.upcoming-content > span {
    color: var(--text-soft);

    font-size: 0.58rem;
    font-weight: 750;

    text-transform: uppercase;
}


.upcoming-content h3 {
    margin: 3px 0;

    font-size: 0.82rem;
}


.upcoming-content p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.65rem;
}


.no-upcoming-events {
    color: var(--text-soft);

    font-size: 0.78rem;
}


/* Formulaire planning */

.schedule-form {
    display: flex;
    flex-direction: column;

    gap: 14px;
}


.schedule-type-field,
.schedule-field,
.repeat-section {
    margin: 0;
    padding: 16px;

    background: rgba(255, 255, 255, 0.84);

    border: 1px solid var(--border);
    border-radius: 17px;
}


.schedule-type-field legend {
    padding: 0 5px;

    font-size: 0.83rem;
    font-weight: 750;
}


#id_event_type {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 8px;
}


#id_event_type label {
    display: flex;
    min-height: 48px;

    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 10px;

    background: var(--surface-soft);

    border: 1px solid transparent;
    border-radius: 13px;

    font-size: 0.72rem;
    font-weight: 700;

    cursor: pointer;
}


#id_event_type input {
    accent-color: var(--coral);
}


#id_event_type label:has(input:checked) {
    background: var(--coral-soft);
    color: var(--coral);

    border-color: rgba(207, 119, 116, 0.25);
}


.schedule-field label,
.repeat-count-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 9px;

    font-size: 0.8rem;
    font-weight: 750;
}


.schedule-field label span {
    color: var(--text-soft);

    font-size: 0.65rem;
    font-weight: 500;
}


.schedule-field input,
.schedule-field textarea,
.repeat-count-field select {
    width: 100%;
    min-height: 48px;

    padding: 11px 13px;

    background: #fffdfb;
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 13px;

    outline: none;
}


.schedule-field textarea {
    min-height: 88px;

    resize: vertical;
}


.schedule-field input:focus,
.schedule-field textarea:focus,
.repeat-count-field select:focus {
    border-color: var(--coral);

    box-shadow:
        0 0 0 3px rgba(207, 119, 116, 0.12);
}


.schedule-field > small {
    display: block;

    margin-top: 7px;

    color: var(--text-soft);

    font-size: 0.64rem;
}


.schedule-two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 9px;
}


.repeat-checkbox {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 0.8rem;
    font-weight: 750;

    cursor: pointer;
}


.repeat-checkbox input {
    width: 18px;
    height: 18px;

    accent-color: var(--coral);
}


.repeat-count-field {
    margin-top: 14px;
}


/* =========================================================
   Activité déjà réalisée
   ========================================================= */

.planning-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;

    width: 100%;
    margin-top: 18px;
}


.planning-action-card {
    display: flex;
    min-width: 0;
    min-height: 122px;

    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;

    gap: 11px;

    padding: 15px;

    border-radius: 17px;

    box-sizing: border-box;
    text-decoration: none;
    overflow: hidden;
}


.planning-action-icon {
    display: grid;
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    place-items: center;

    background: rgba(255, 255, 255, 0.82);

    border-radius: 50%;

    font-size: 1.1rem;
    font-weight: 800;
}


.planning-action-content {
    display: flex;
    width: 100%;
    min-width: 0;

    flex-direction: column;
    gap: 4px;
}


.planning-action-card strong {
    display: block;

    font-size: 0.82rem;
    line-height: 1.25;

    overflow-wrap: normal;
    word-break: normal;
}


.planning-action-card small {
    display: block;

    color: var(--text-soft);

    font-size: 0.68rem;
    line-height: 1.35;

    overflow-wrap: normal;
    word-break: normal;
}


.planning-action-plan {
    background: var(--coral-soft);
    color: var(--coral);
}


.planning-action-done {
    background: var(--sage-soft);
    color: var(--sage-dark);
}


@media (max-width: 380px) {
    .planning-actions {
        grid-template-columns: 1fr;
    }

    .planning-action-card {
        min-height: auto;
    }
}


.completed-activity-page {
    padding-top: 3px;
}


.completed-activity-introduction {
    display: grid;
    grid-template-columns: 49px 1fr;

    align-items: center;
    gap: 14px;

    margin-bottom: 20px;
    padding: 18px;

    background: var(--sage-soft);

    border-radius: 19px;
}


.completed-activity-introduction > span {
    display: grid;

    width: 49px;
    height: 49px;

    place-items: center;

    background: #ffffff;
    color: var(--sage-dark);

    border-radius: 50%;

    font-size: 1.2rem;
    font-weight: 800;
}


.completed-activity-introduction h2 {
    margin: 0 0 5px;

    font-size: 0.95rem;
}


.completed-activity-introduction p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.76rem;
    line-height: 1.45;
}


.completed-activity-form {
    display: flex;
    flex-direction: column;

    gap: 14px;
}


.activity-form-field,
.activity-feelings-section,
.activity-feeling-choice {
    margin: 0;
    padding: 16px;

    background: rgba(255, 255, 255, 0.84);

    border: 1px solid var(--border);
    border-radius: 17px;
}


.activity-form-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 9px;

    font-size: 0.78rem;
    font-weight: 750;
}


.activity-form-field label span {
    color: var(--text-soft);

    font-size: 0.63rem;
    font-weight: 500;
}


.activity-form-field input,
.activity-form-field textarea {
    width: 100%;
    min-height: 47px;

    padding: 11px 13px;

    background: #fffdfb;
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 13px;

    outline: none;
}


.activity-form-field textarea {
    min-height: 88px;

    resize: vertical;
}


.activity-form-field input:focus,
.activity-form-field textarea:focus {
    border-color: var(--sage);

    box-shadow:
        0 0 0 3px rgba(111, 155, 132, 0.13);
}


.activity-form-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 9px;
}


.activity-feelings-section {
    display: flex;
    flex-direction: column;

    gap: 12px;
}


.activity-feelings-heading h2 {
    margin: 2px 0 4px;

    font-size: 0.95rem;
}


.activity-feelings-heading > small {
    color: var(--text-soft);

    font-size: 0.67rem;
}


.activity-feelings-section .activity-form-field {
    padding: 0;

    background: transparent;
    border: 0;
}


.activity-feeling-choice legend {
    padding: 0 5px;

    font-size: 0.8rem;
    font-weight: 750;
}


#id_feeling {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 7px;
}


#id_feeling label {
    display: flex;
    min-height: 54px;

    align-items: center;
    justify-content: center;

    padding: 8px;

    background: var(--surface-soft);

    border: 1px solid transparent;
    border-radius: 13px;

    font-size: 0.66rem;
    font-weight: 700;

    text-align: center;

    cursor: pointer;
}


#id_feeling input {
    position: absolute;
    opacity: 0;
}


#id_feeling label:has(input:checked) {
    background: var(--sage-dark);
    color: #ffffff;
}


.planning-heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.planning-heading-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f9e3df;
    color: #d46f6d;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.planning-heading-actions .completed-activity-link {
    background: #e2eee8;
    color: #35675e;
}


.event-card-actions {
    display: flex;
    width: 100%;

    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 13px;
    padding-top: 12px;

    border-top: 1px solid var(--border);
}


.event-status-form {
    margin: 0;
}


.event-completion-control {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--sage-dark);

    font-size: 0.7rem;
    font-weight: 750;

    cursor: pointer;
}


.event-completion-control input {
    width: 18px;
    height: 18px;

    margin: 0;

    accent-color: var(--sage-dark);
    cursor: pointer;
}


.event-edit-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


.event-edit-actions a {
    color: var(--sage-dark);

    font-size: 0.7rem;
    font-weight: 750;
    text-decoration: none;
}


.event-edit-actions .event-delete-link {
    color: var(--coral);
}

.event-edit-actions .event-feedback-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    color: var(--sage-dark);
    background: var(--sage-soft);
    border-radius: 999px;
}


/* Ressenti d'une activité planifiée */

.feedback-event-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 17px;
    background: var(--surface-peach);
    border: 1px solid var(--border);
    border-radius: 19px;
}

.feedback-event-summary > span {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--coral);
    background: #ffffff;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 800;
}

.feedback-event-summary > div {
    min-width: 0;
}

.feedback-event-summary p,
.feedback-event-summary h2,
.feedback-event-summary small {
    margin: 0;
}

.feedback-event-summary p {
    color: var(--coral);
    font-size: 0.62rem;
    font-weight: 800;
}

.feedback-event-summary h2 {
    margin-top: 4px;
    color: var(--text);
    font-size: 0.95rem;
}

.feedback-event-summary small {
    display: block;
    margin-top: 5px;
    color: var(--text-soft);
    font-size: 0.67rem;
}

.feedback-status-choice {
    padding: 16px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--border);
    border-radius: 17px;
}

#id_status {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

#id_status label {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    padding: 9px;
    color: var(--text-soft);
    background: var(--surface-soft);
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 0.68rem;
    font-weight: 750;
    text-align: center;
    cursor: pointer;
}

#id_status input {
    position: absolute;
    opacity: 0;
}

#id_status label:has(input:checked) {
    color: #ffffff;
    background: var(--sage-dark);
}

@media (max-width: 430px) {
    .event-edit-actions {
        width: 100%;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .event-edit-actions .event-feedback-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}


.event-delete-page {
    padding-top: 10px;
}


.event-delete-card {
    margin-top: 22px;
    padding: 22px;

    background: rgba(255, 255, 255, 0.88);

    border: 1px solid var(--border);
    border-radius: 20px;
}


.event-delete-card h1 {
    margin: 6px 0 15px;
    font-size: 1.35rem;
}


.event-delete-card strong,
.event-delete-card small {
    display: block;
}


.event-delete-card small {
    margin-top: 5px;
    color: var(--text-soft);
}


.event-delete-card form {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin-top: 22px;
}


.event-delete-button,
.event-cancel-button {
    display: flex;
    min-height: 46px;

    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    border-radius: 14px;

    font: inherit;
    font-weight: 750;
    text-decoration: none;
}


.event-delete-button {
    color: white;
    background: var(--coral);

    border: 0;
    cursor: pointer;
}


.event-cancel-button {
    color: var(--text);
    background: var(--surface);

    border: 1px solid var(--border);
}



/* =========================================================
   Suivi santé, poids, IMC et menstruations
   ========================================================= */

.health-page {
    width: 100%;
    padding-bottom: 35px;
}


.health-header {
    margin-bottom: 22px;
}


.health-header h1 {
    margin: 6px 0 10px;

    font-size: 1.8rem;
    letter-spacing: -0.04em;
}


.health-header > div > p:last-child {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.88rem;
    line-height: 1.5;
}


/* Résumé */

.health-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;

    margin-bottom: 27px;
}


.health-summary-card {
    display: flex;
    min-width: 0;
    min-height: 86px;

    flex-direction: column;
    justify-content: space-between;

    gap: 8px;

    padding: 13px;

    background: var(--sage-soft);

    border-radius: 17px;
    box-sizing: border-box;
}


.health-summary-card:nth-child(2) {
    background: var(--coral-soft);
}


.health-summary-bmi {
    background: var(--blue-soft);
}


.health-summary-card span {
    color: var(--text-soft);

    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.25;
}


.health-summary-card strong {
    color: var(--text);

    font-size: 1rem;
}


/* Sections */

.health-section {
    margin-top: 18px;
    padding: 19px;

    background: rgba(255, 255, 255, 0.82);

    border: 1px solid var(--border);
    border-radius: 20px;
}


.health-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    margin-bottom: 15px;
}


.health-section-heading h2 {
    margin: 3px 0 0;

    font-size: 1.2rem;
    letter-spacing: -0.03em;
}


.health-section-introduction {
    margin: -5px 0 17px;

    color: var(--text-soft);

    font-size: 0.78rem;
    line-height: 1.5;
}


/* Formulaires */

.health-form {
    display: flex;
    width: 100%;

    flex-direction: column;
    gap: 15px;
}


.health-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}


.health-field {
    display: flex;
    min-width: 0;

    flex-direction: column;
    gap: 7px;
}


.health-field label,
.flow-field legend {
    color: var(--text);

    font-size: 0.74rem;
    font-weight: 750;
}


.health-field input,
.health-field select,
.health-field textarea {
    width: 100%;
    min-width: 0;
    min-height: 46px;

    padding: 11px 13px;

    color: var(--text);
    background: rgba(255, 252, 249, 0.95);

    border: 1px solid var(--border);
    border-radius: 13px;

    box-sizing: border-box;

    font: inherit;
    font-size: 0.82rem;
    outline: none;
}


.health-field input:focus,
.health-field select:focus,
.health-field textarea:focus {
    border-color: var(--sage-dark);

    box-shadow:
        0 0 0 3px rgba(83, 124, 112, 0.12);
}


.health-input-with-unit {
    display: flex;
    min-width: 0;

    align-items: center;
    gap: 8px;
}


.health-input-with-unit input {
    flex: 1;
}


.health-input-with-unit > span {
    flex: 0 0 auto;

    color: var(--text-soft);

    font-size: 0.78rem;
    font-weight: 700;
}


.health-submit-button {
    width: 100%;
    min-height: 48px;

    padding: 11px 16px;

    color: white;
    background: var(--coral);

    border: 0;
    border-radius: 14px;

    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;

    cursor: pointer;
}


.health-submit-button:hover {
    filter: brightness(0.98);
}


.health-submit-button:focus-visible {
    outline: 3px solid rgba(207, 119, 116, 0.25);
    outline-offset: 2px;
}


.form-error {
    display: block;

    color: var(--coral);

    font-size: 0.7rem;
    line-height: 1.35;
}


/* Choix du flux */

.flow-field {
    min-width: 0;
    margin: 0;
    padding: 0;

    border: 0;
}


.flow-field legend {
    margin-bottom: 9px;
}


.flow-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}


.flow-option {
    display: flex;
    min-width: 0;
    min-height: 44px;

    align-items: center;
    gap: 8px;

    padding: 10px 12px;

    color: var(--text-soft);
    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 13px;

    box-sizing: border-box;

    font-size: 0.75rem;
    font-weight: 700;

    cursor: pointer;
}


.flow-option:has(input:checked) {
    color: var(--coral);
    background: var(--coral-soft);

    border-color: rgba(207, 119, 116, 0.35);
}


.flow-option input {
    width: 17px;
    height: 17px;

    margin: 0;

    accent-color: var(--coral);
}


/* Historiques */

.health-history {
    display: flex;
    flex-direction: column;
    gap: 8px;

    margin-top: 22px;
}


.health-history h3 {
    margin: 0 0 3px;

    font-size: 0.9rem;
}


.health-history-row {
    display: flex;
    min-width: 0;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 12px 13px;

    background: var(--surface);

    border-radius: 13px;
}


.health-history-row > div {
    display: flex;
    min-width: 0;

    flex-direction: column;
    gap: 3px;
}


.health-history-row strong {
    font-size: 0.78rem;
}


.health-history-row small {
    color: var(--text-soft);

    font-size: 0.68rem;
    line-height: 1.35;
}


.bmi-badge,
.flow-badge {
    flex: 0 0 auto;

    padding: 6px 9px;

    background: var(--blue-soft);
    color: var(--text-soft);

    border-radius: 999px;

    font-size: 0.65rem;
    font-weight: 750;
}


.flow-spotting {
    background: #f7e9ee;
    color: #9c6676;
}


.flow-light {
    background: #fbe9e6;
    color: #b66565;
}


.flow-medium {
    background: var(--coral-soft);
    color: var(--coral);
}


.flow-heavy {
    background: #f4dcda;
    color: #9f5555;
}


/* Très petits écrans */

@media (max-width: 420px) {
    .health-summary {
        grid-template-columns: 1fr;
    }

    .health-summary-card {
        min-height: 70px;
    }

    .health-form-grid {
        grid-template-columns: 1fr;
    }

    .health-section {
        padding: 16px;
    }
}


/* Calendrier menstruel */

.menstrual-calendar {
    margin-top: 24px;
    padding: 16px;

    background: #fff9f7;

    border: 1px solid var(--border);
    border-radius: 18px;
}


.menstrual-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    text-align: center;
}


.menstrual-calendar-header h3 {
    margin: 3px 0 0;
    font-size: 1rem;
}


.menstrual-calendar-navigation {
    display: grid;
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    place-items: center;

    color: var(--coral);
    background: white;

    border: 1px solid var(--border);
    border-radius: 50%;

    font-size: 1.4rem;
    text-decoration: none;
}


.menstrual-calendar-help {
    margin: 14px 0;

    color: var(--text-soft);

    font-size: 0.72rem;
    line-height: 1.45;
    text-align: center;
}


.menstrual-calendar-weekdays,
.menstrual-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}


.menstrual-calendar-weekdays {
    margin-bottom: 6px;
}


.menstrual-calendar-weekdays span {
    color: var(--text-soft);

    font-size: 0.58rem;
    font-weight: 750;
    text-align: center;
}


.menstrual-calendar-day {
    position: relative;

    display: grid;
    min-width: 0;
    aspect-ratio: 1;

    place-items: center;

    padding: 0;

    color: var(--text);
    background: white;

    border: 1px solid transparent;
    border-radius: 10px;

    font: inherit;
    font-size: 0.7rem;

    cursor: pointer;
}


.menstrual-calendar-day:disabled {
    cursor: default;
}


.menstrual-calendar-day-outside {
    opacity: 0.25;
}


.menstrual-calendar-day-today {
    border-color: var(--sage-dark);
}


.menstrual-calendar-day-selected {
    outline: 3px solid rgba(207, 119, 116, 0.25);
    outline-offset: 1px;
}


.menstrual-calendar-day i {
    position: absolute;
    bottom: 4px;

    width: 5px;
    height: 5px;

    background: currentColor;

    border-radius: 50%;
}


.menstrual-calendar-day.flow-spotting {
    color: #9c6676;
    background: #f7e9ee;
}


.menstrual-calendar-day.flow-light {
    color: #b66565;
    background: #fbe9e6;
}


.menstrual-calendar-day.flow-medium {
    color: var(--coral);
    background: var(--coral-soft);
}


.menstrual-calendar-day.flow-heavy {
    color: #934c4c;
    background: #f1d5d3;
}


.menstrual-day-editor {
    margin-top: 16px;
    padding: 15px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 15px;
}


.menstrual-day-editor-heading {
    display: flex;
    flex-direction: column;
    gap: 3px;

    margin-bottom: 14px;
}


.menstrual-day-editor-heading span {
    color: var(--text-soft);

    font-size: 0.63rem;
    font-weight: 700;
    text-transform: uppercase;
}


.menstrual-day-editor-heading strong {
    font-size: 0.85rem;
    text-transform: capitalize;
}


.menstrual-flow-options {
    margin-top: 9px;
}


.menstrual-flow-button {
    display: flex;
    min-height: 42px;

    align-items: center;
    gap: 8px;

    padding: 10px 11px;

    color: var(--text-soft);
    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 12px;

    font: inherit;
    font-size: 0.7rem;
    font-weight: 750;

    cursor: pointer;
}


.menstrual-flow-button > span {
    width: 9px;
    height: 9px;

    background: var(--coral-soft);

    border-radius: 50%;
}


.menstrual-flow-button-selected {
    color: var(--coral);
    border-color: var(--coral);
}


.flow-choice-spotting > span {
    background: #d9a9b7;
}


.flow-choice-light > span {
    background: #e9aaa5;
}


.flow-choice-medium > span {
    background: var(--coral);
}


.flow-choice-heavy > span {
    background: #934c4c;
}


.menstrual-flow-clear {
    width: 100%;

    margin-top: 11px;
    padding: 8px;

    color: var(--text-soft);
    background: transparent;

    border: 0;

    font: inherit;
    font-size: 0.68rem;
    text-decoration: underline;

    cursor: pointer;
}


.menstrual-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-top: 14px;
}


.menstrual-calendar-legend span {
    padding: 5px 8px;

    border-radius: 999px;

    font-size: 0.58rem;
    font-weight: 700;
}


/* Estimation des prochaines règles */

.menstrual-prediction-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;

    align-items: start;

    margin: 18px 0;
    padding: 16px;

    background: var(--blue-soft);

    border: 1px solid var(--border);
    border-radius: 17px;
}


.menstrual-prediction-card.prediction-stable {
    background: var(--sage-soft);
}


.menstrual-prediction-card.prediction-variable {
    background: var(--gold-soft);
}


.menstrual-prediction-card.prediction-uncertain {
    background: var(--coral-soft);
}


.menstrual-prediction-icon {
    display: grid;

    width: 44px;
    height: 44px;

    place-items: center;

    color: var(--coral);
    background: rgba(255, 255, 255, 0.82);

    border-radius: 50%;

    font-size: 1.25rem;
}


.menstrual-prediction-content {
    display: flex;
    min-width: 0;

    flex-direction: column;
    gap: 5px;
}


.menstrual-prediction-content p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
}


.menstrual-prediction-content h3 {
    margin: 0;

    font-size: 0.94rem;
}


.menstrual-prediction-content > span {
    color: var(--text);

    font-size: 0.73rem;
    line-height: 1.4;
}


.menstrual-prediction-content small {
    color: var(--text-soft);

    font-size: 0.66rem;
    line-height: 1.4;
}


.menstrual-prediction-content a {
    margin-top: 4px;

    color: var(--coral);

    font-size: 0.68rem;
    font-weight: 750;
    text-decoration: none;
}


.menstrual-calendar-day-predicted {
    color: #b27a33;
    background: var(--gold-soft);

    border: 1px dashed #d6a75c;
}


.prediction-legend {
    color: #9b6a2e;
    background: var(--gold-soft);
}


/* =========================================================
   INSCRIPTION ET CONNEXION
   ========================================================= */

.auth-page {
    width: 100%;
    max-width: 620px;
    min-height: calc(100vh - 90px);
    margin: 0 auto;
    padding: 48px 30px 130px;
}

.auth-header {
    margin-bottom: 32px;
}

.auth-header .page-eyebrow {
    margin: 0 0 22px;
    color: #2f6558;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-header h1 {
    margin: 0 0 22px;
    color: #082c3c;
    font-size: clamp(2rem, 7vw, 2.55rem);
    line-height: 1.08;
}

.auth-header > p:last-child {
    max-width: 540px;
    margin: 0;
    color: #45616c;
    font-size: 1rem;
    line-height: 1.65;
}


/* Formulaire */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #eadfd8;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(44, 64, 57, 0.06);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    color: #082c3c;
    font-size: 0.95rem;
    font-weight: 700;
}

.form-field input {
    display: block;
    width: 100%;
    min-height: 56px;
    padding: 14px 16px;
    color: #173846;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.3;
    background: #fffaf7;
    border: 1px solid #e7ddd6;
    border-radius: 16px;
    outline: none;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.form-field input::placeholder {
    color: #879397;
}

.form-field input:hover {
    border-color: #d8c7bd;
}

.form-field input:focus {
    background: #ffffff;
    border-color: #d47774;
    box-shadow: 0 0 0 4px rgba(212, 119, 116, 0.13);
}

.field-help {
    display: block;
    color: #708187;
    font-size: 0.82rem;
    line-height: 1.5;
}

.field-error {
    margin: 0;
    color: #b44d4a;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}


/* Erreurs générales */

.form-alert {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.form-alert p {
    margin: 0;
}

.form-alert-error {
    color: #923f3c;
    background: #fde7e4;
    border: 1px solid #f2c7c3;
}


/* Bouton principal */

.auth-submit-button {
    width: 100%;
    min-height: 58px;
    margin-top: 4px;
    padding: 14px 20px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    background: #d47774;
    border: 0;
    border-radius: 17px;
    box-shadow: 0 10px 24px rgba(212, 119, 116, 0.22);
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-submit-button:hover {
    background: #c96865;
    box-shadow: 0 12px 28px rgba(212, 119, 116, 0.28);
}

.auth-submit-button:active {
    transform: translateY(1px);
}


/* Bas du formulaire */

.auth-footer {
    margin-top: 28px;
    padding: 22px;
    text-align: center;
    background: #e8f1ec;
    border-radius: 20px;
}

.auth-footer p {
    margin: 0 0 8px;
    color: #52686e;
    font-size: 0.92rem;
}

.auth-footer a {
    color: #2f6558;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}


/* Adaptation téléphone */

@media (max-width: 600px) {
    .auth-page {
        padding: 34px 20px 120px;
    }

    .auth-header {
        margin-bottom: 26px;
    }

    .auth-header h1 {
        margin-bottom: 18px;
    }

    .auth-form {
        gap: 18px;
        padding: 22px 18px;
        border-radius: 21px;
    }

    .form-field input {
        min-height: 54px;
        font-size: 16px;
    }

    .auth-submit-button {
        min-height: 56px;
    }
}


/* Déconnexion */

.profile-logout-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 28px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #eadfd8;
    border-radius: 22px;
}

.profile-logout-card h2 {
    margin: 5px 0 10px;
    color: #082c3c;
    font-size: 1.25rem;
}

.profile-logout-card p {
    margin: 0;
    color: #60737a;
    line-height: 1.5;
}

.profile-logout-card form {
    width: 100%;
}

.logout-button {
    width: 100%;
    min-height: 54px;
    padding: 13px 18px;
    color: #b65350;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    background: #fff7f5;
    border: 1px solid #e7aaa6;
    border-radius: 16px;
    cursor: pointer;
}

.logout-button:hover {
    color: #ffffff;
    background: #c96865;
    border-color: #c96865;
}


.form-alert-success {
    margin-bottom: 20px;
    color: #2f6558;
    background: #e3f0e9;
    border: 1px solid #c8ded2;
}


/* =========================================================
   Bilan sportif doux sur sept jours
   ========================================================= */

.activity-summary-section {
    margin-bottom: 28px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--border);
    border-radius: 22px;
}

.activity-summary-section .section-heading {
    align-items: flex-end;
    margin-bottom: 17px;
}

.activity-summary-section .section-heading a {
    color: var(--coral);
    font-size: 0.68rem;
    font-weight: 800;
    text-decoration: none;
}

.activity-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.activity-summary-grid article {
    display: flex;
    min-width: 0;
    min-height: 91px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 11px 7px;
    background: var(--surface-soft);
    border-radius: 15px;
    text-align: center;
}

.activity-summary-grid strong {
    color: var(--sage-dark);
    font-size: 1.02rem;
    line-height: 1.15;
}

.activity-summary-grid span {
    margin-top: 6px;
    color: var(--text-soft);
    font-size: 0.61rem;
    line-height: 1.35;
}

.activity-feelings {
    margin-top: 16px;
    padding: 14px;
    background: #fffaf7;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.activity-feelings > p:first-child {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 0.71rem;
    font-weight: 800;
}

.activity-feelings > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.feeling-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 0.61rem;
    font-weight: 750;
}

.feeling-better {
    color: var(--sage-dark);
    background: var(--sage-soft);
}

.feeling-same {
    color: var(--blue);
    background: var(--blue-soft);
}

.feeling-harder {
    color: var(--coral);
    background: var(--coral-soft);
}

.activity-response-details {
    margin: 11px 0 0;
    color: var(--text-soft);
    font-size: 0.67rem;
    line-height: 1.5;
}

.activity-summary-empty {
    margin: 15px 0 0;
    padding: 13px 14px;
    color: var(--text-soft);
    background: var(--surface-soft);
    border-radius: 14px;
    font-size: 0.69rem;
    line-height: 1.5;
}

.activity-guidance {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
}

.activity-guidance > span {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    font-size: 1.05rem;
}

.activity-guidance > div {
    min-width: 0;
}

.activity-guidance p {
    margin: 0 0 4px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.activity-guidance h3 {
    margin: 0 0 6px;
    color: var(--text);
    font-size: 0.83rem;
    line-height: 1.3;
}

.activity-guidance small {
    display: block;
    color: var(--text-soft);
    font-size: 0.67rem;
    line-height: 1.5;
}

.activity-guidance-recovery {
    color: var(--coral);
    background: var(--coral-soft);
}

.activity-guidance-gentle,
.activity-guidance-balanced {
    color: var(--blue);
    background: var(--blue-soft);
}

.activity-guidance-favorable,
.activity-guidance-neutral {
    color: var(--sage-dark);
    background: var(--sage-soft);
}

.activity-summary-note {
    margin: 12px 2px 0;
    color: var(--text-soft);
    font-size: 0.59rem;
    line-height: 1.45;
}

@media (max-width: 380px) {
    .activity-summary-section {
        padding: 17px 14px;
    }

    .activity-summary-grid {
        grid-template-columns: 1fr;
    }

    .activity-summary-grid article {
        min-height: 72px;
    }
}


/* Accès au suivi santé */

.health-access-card {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    margin-bottom: 28px;
    padding: 16px;
    color: inherit;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--border);
    border-radius: 18px;
    text-decoration: none;
    box-sizing: border-box;
}

.health-access-icon {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--coral);
    background: var(--coral-soft);
    border-radius: 50%;
    font-size: 1.2rem;
}

.health-access-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.health-access-content strong {
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.3;
}

.health-access-content small {
    color: var(--text-soft);
    font-size: 0.66rem;
    line-height: 1.4;
}

.health-access-arrow {
    flex: 0 0 auto;
    color: var(--coral);
    font-size: 1.45rem;
    font-weight: 700;
}

.health-access-card:hover {
    border-color: #e7aaa6;
    box-shadow: 0 8px 20px rgba(60, 76, 69, 0.06);
}


/* Signature Evajust */

.brand-lockup {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.brand-tagline {
    margin: 0 0 0 41px;
    color: var(--text-soft);
    font-size: 0.65rem;
    line-height: 1.25;
    letter-spacing: 0.01em;
}