/* =========================================================
   CŒUR DE TERRE — AUDIT DE LIBERTÉ
   DESIGN PREMIUM
========================================================= */

:root {
    --green: #204c35;
    --green-light: #3d744f;
    --gold: #bf7450;
    --gold-dark: #936044;

    --cream: #f8f5ed;
    --paper: #fffdf8;
    --paper-dark: #f1f5ec;

    --text: #20362b;
    --muted: #637268;
    --border: #d8e0d2;

    --shadow:
        0 18px 50px rgba(24, 60, 52, 0.07);

    --radius: 26px;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
}

button,
input {
    font: inherit;
}


/* =========================================================
   UTILITAIRES
========================================================= */

.hidden {
    display: none !important;
}

.screen {
    min-height: 100vh;
    padding: 70px 24px;
}

.content-container {
    width: min(760px, 100%);
    margin: auto;
}

.content-container.wide {
    width: min(1100px, 100%);
}


/* =========================================================
   TYPOGRAPHIE
========================================================= */

.eyebrow,
.section-label {
    color: var(--gold-dark);

    font-size: 18px;
    font-weight: 800;

    letter-spacing: 0.20em;
    text-transform: uppercase;

    margin-bottom: 22px;
}

.eyebrow::after,
.section-label::after {
    content: "";

    display: block;

    width: 74px;
    height: 3px;

    margin-top: 14px;

    background: var(--gold);
}

h1,
h2,
h3 {
    color: var(--green);

    font-weight: 700;
    letter-spacing: -0.04em;

    line-height: 1.08;

    margin-top: 0;
}

h1 {
    font-size: clamp(44px, 6vw, 78px);
}

h2 {
    font-size: clamp(34px, 5vw, 58px);
}

p {
    color: var(--muted);
}


/* =========================================================
   BOUTONS
========================================================= */

.primary-button {
    border: 0;

    background: var(--green);
    color: white;

    padding: 17px 30px;

    border-radius: 12px;

    font-weight: 700;
    font-size: 16px;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.primary-button:hover {
    transform: translateY(-2px);

    background: var(--green-light);

    box-shadow:
        0 12px 25px rgba(23, 63, 53, .18);
}


/* =========================================================
   ACCUEIL
========================================================= */

.welcome-screen {
    display: flex;

    flex-direction: column;

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

    max-width: 1000px;

    margin: auto;
}

.brand {
    display: flex;

    align-items: center;
    gap: 10px;

    font-size: 15px;
    font-weight: 800;

    letter-spacing: .14em;

    margin-bottom: 60px;
}

.brand-symbol {
    font-size: 22px;
}

.welcome-screen .intro {
    max-width: 650px;

    font-size: 20px;

    margin-bottom: 35px;
}

.welcome-screen .reassurance {
    font-size: 13px;

    margin-top: 16px;
}


/* =========================================================
   INTRO / NIVEAUX
========================================================= */

.text-large {
    font-size: 21px;
    margin: 25px 0;
}

.highlight {
    padding: 25px;

    border-left: 4px solid var(--gold);

    background: rgba(255,255,255,.65);

    font-size: 21px;
    font-weight: 600;

    margin: 35px 0;
}

.level-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-top: 50px;
}

.level-card {
    position: relative;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    text-align: left;

    min-height: 390px;

    padding: 32px;

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

    border-radius: var(--radius);

    background: var(--paper);

    color: var(--text);

    cursor: pointer;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.level-card:hover {
    transform: translateY(-6px);

    box-shadow: var(--shadow);

    border-color: var(--gold);
}

.level-card.featured {
    border: 2px solid var(--gold);
}

.level-badge {
    color: var(--gold-dark);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: .12em;
}

.level-icon {
    font-size: 40px;

    margin: 30px 0 15px;
}

.level-name {
    color: var(--green);

    font-size: 25px;
    font-weight: 800;

    letter-spacing: .06em;
}

.level-time {
    margin-top: 5px;

    color: var(--gold-dark);

    font-weight: 700;
}

.level-description {
    margin-top: 25px;

    color: var(--muted);

    font-size: 15px;
}

.level-action {
    margin-top: auto;

    padding-top: 25px;

    color: var(--green);

    font-weight: 800;
}


/* =========================================================
   QUESTIONNAIRE
========================================================= */

.question-container {
    width: min(760px, 100%);
    margin: auto;
}

.question-header {
    display: flex;

    align-items: center;

    gap: 18px;

    margin-bottom: 100px;

    color: var(--gold-dark);

    font-weight: 800;
}

.progress-track {
    flex: 1;

    height: 4px;

    background: #ddd8cc;

    border-radius: 100px;

    overflow: hidden;
}

#progress-bar {
    width: 0;
    height: 100%;

    background: var(--gold);

    transition: width .3s ease;
}

.question-content {
    background: var(--paper);

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

    border-radius: var(--radius);

    padding: 60px;

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

.question-content h2 {
    font-size: clamp(32px, 5vw, 50px);
}

.question-help {
    font-size: 17px;

    margin-bottom: 45px;
}

.question-input-container {
    margin-bottom: 35px;
}

.question-input {
    width: 100%;

    padding: 20px 22px;

    border:
        2px solid var(--border);

    border-radius: 12px;

    background: white;

    color: var(--green);

    font-size: 28px;

    outline: none;
}

.question-input:focus {
    border-color: var(--gold);
}

.input-unit {
    margin-top: 8px;

    color: var(--muted);

    font-size: 14px;
}

.choice-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;
}

.choice-button {
    padding: 18px;

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

    border-radius: 12px;

    background: white;

    color: var(--green);

    cursor: pointer;
}

.choice-button.selected {
    border-color: var(--gold);

    background: var(--paper-dark);

    font-weight: 700;
}

.question-error {
    margin-top: 15px;

    color: #a34435;

    font-size: 14px;
}


/* =========================================================
   RÉSULTATS
========================================================= */

.results-container {
    width: min(1160px, 100%);

    margin: auto;

    display: flex;

    flex-direction: column;

    gap: 28px;
}

.result-card {
    background: var(--paper);

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

    border-radius: var(--radius);

    padding:
        clamp(38px, 6vw, 75px);

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

.result-card > h2 {
    max-width: 1000px;
}

.result-card > p {
    max-width: 850px;

    font-size: 18px;
}


/* =========================================================
   TITRES DE SECTION
========================================================= */

.result-card .section-label {
    font-size: 21px;

    margin-bottom: 30px;
}

.result-card .section-label::after {
    width: 80px;
    height: 3px;
}


/* =========================================================
   OUVERTURE
========================================================= */

.result-opening {
    padding-top: 80px;
    padding-bottom: 80px;
}

.results-opening-text {
    max-width: 720px;

    font-size: 21px !important;
}

.results-opening-highlight {
    color: var(--green);

    font-size: 23px !important;
    font-weight: 700;

    margin-top: 35px;
}


/* =========================================================
   HERO POURCENTAGE
========================================================= */

.week-hero {
    text-align: left;
}

.hero-percentage {
    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    margin:
        60px auto 45px;

    max-width: 700px;
}

.hero-percentage > span {
    display: block;

    color: var(--green);

    font-size:
        clamp(80px, 13vw, 150px);

    font-weight: 800;

    letter-spacing: -0.07em;

    line-height: .9;
}

.hero-percentage small {
    display: block;

    max-width: 650px;

    margin-top: 25px;

    color: var(--muted);

    font-size: 18px;

    line-height: 1.5;
}

.hero-hours {
    display: flex;

    justify-content: center;

    align-items: baseline;

    gap: 10px;

    margin-bottom: 35px;

    color: var(--muted);

    font-size: 18px;
}

.hero-hours strong {
    color: var(--green);

    font-size: 25px;
}


/* =========================================================
   TABLEAU HEURES
========================================================= */

.hours-table {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

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

    border-radius: 18px;

    overflow: hidden;

    background: white;
}

.hours-cell {
    min-height: 155px;

    padding: 24px;

    display: flex;

    flex-direction: column;

    justify-content: center;

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

.hours-cell:last-child {
    border-right: 0;
}

.hours-cell-label {
    color: var(--muted);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .08em;
}

.hours-cell strong {
    margin-top: 12px;

    color: var(--green);

    font-size: 34px;

    line-height: 1;
}

.hours-cell small {
    margin-top: 8px;

    color: var(--gold-dark);

    font-weight: 700;
}


/* =========================================================
   BARRE 168 HEURES
========================================================= */

.week-visual {
    margin-top: 45px;
}

.week-bar {
    display: flex;

    height: 45px;

    border-radius: 100px;

    overflow: hidden;

    background: #eeeae1;
}

.segment {
    height: 100%;

    transition: width .7s ease;
}

.work-segment {
    background: #183f35;
}

.commute-segment {
    background: #c9953d;
}

.sleep-segment {
    background: #9ca9a5;
}

.free-segment {
    background: #e8dfcd;
}

.legend-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

    margin-top: 30px;
}

.legend-grid > div {
    display: grid;

    grid-template-columns:
        auto 1fr;

    column-gap: 10px;

    align-items: center;
}

.legend-grid strong {
    color: var(--green);

    font-size: 20px;
}

.legend-grid small {
    grid-column: 2;

    color: var(--muted);
}

.legend-dot {
    grid-row: span 2;

    width: 12px;
    height: 12px;

    border-radius: 50%;
}

.work-dot {
    background: #183f35;
}

.commute-dot {
    background: #c9953d;
}

.sleep-dot {
    background: #9ca9a5;
}

.free-dot {
    background: #e8dfcd;
}


/* =========================================================
   TEMPS ÉVEILLÉ
========================================================= */

.awake-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;

    margin-top: 45px;
}

.awake-main {
    padding: 35px;

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

    border-radius: 18px;

    background: var(--paper-dark);

    display: flex;

    flex-direction: column;
}

.mini-label {
    color: var(--gold-dark);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: .08em;
}

.awake-main strong {
    margin: 15px 0 8px;

    color: var(--green);

    font-size: 55px;

    line-height: 1;
}

.awake-main small {
    color: var(--muted);
}

.awake-percentage {
    display: flex;

    align-items: center;

    gap: 25px;

    margin-top: 25px;

    padding: 25px;

    border-left: 4px solid var(--gold);

    background: var(--paper-dark);
}

.awake-percentage strong {
    color: var(--green);

    font-size: 45px;
}

.awake-percentage span {
    color: var(--muted);
}


/* =========================================================
   TRANSPORT
========================================================= */

.transport-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    margin-top: 45px;
}

.transport-stat {
    padding: 30px;

    background: var(--paper-dark);

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

    border-radius: 18px;
}

.transport-stat span {
    display: block;

    color: var(--gold-dark);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .08em;
}

.transport-stat strong {
    display: block;

    margin-top: 12px;

    color: var(--green);

    font-size: 38px;
}

.transport-punchline {
    display: flex;

    align-items: center;

    gap: 25px;

    margin-top: 25px;

    padding: 35px;

    border:
        2px solid var(--gold);

    border-radius: 18px;

    background: #fffaf0;
}

.transport-punchline > strong {
    color: var(--green);

    font-size: 65px;

    line-height: 1;
}

.transport-punchline p {
    margin: 0;

    color: var(--green);

    font-size: 18px;

    font-weight: 600;
}

.transport-punchline span {
    display: block;

    margin-left: auto;

    color: var(--gold-dark);

    font-weight: 800;
}


/* =========================================================
   ANNÉE
========================================================= */

.year-card {
    background:
        linear-gradient(
            135deg,
            #fffdfa 0%,
            #f7f0e4 100%
        );
}

.year-hero {
    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    margin: 60px auto;

}

.year-hero strong {
    color: var(--green);

    font-size:
        clamp(85px, 14vw, 160px);

    line-height: .9;

    letter-spacing: -.07em;
}

.year-hero span {
    max-width: 650px;

    margin-top: 25px;

    color: var(--muted);

    font-size: 19px;
}

.year-comparison {
    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 25px;
}

.year-comparison > div:not(.comparison-arrow) {
    padding: 30px;

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

    border-radius: 18px;

    background: white;
}

.year-comparison span {
    display: block;

    color: var(--gold-dark);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .08em;
}

.year-comparison strong {
    display: block;

    margin-top: 12px;

    color: var(--green);

    font-size: 38px;
}

.comparison-arrow {
    color: var(--gold);

    font-size: 30px;
}

.year-free-box {
    margin-top: 20px;

    padding: 40px;

    border-radius: 20px;

    background: var(--green);

    color: white;

    text-align: center;
}

.year-free-box span {
    display: block;

    color: #d9b46e;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: .12em;
}

.year-free-box strong {
    display: block;

    margin: 10px 0;

    font-size: 65px;

    line-height: 1;
}

.year-free-box small {
    display: block;

    max-width: 650px;

    margin: auto;

    color: rgba(255,255,255,.75);

    font-size: 15px;
}


/* =========================================================
   TEMPS INVISIBLE
========================================================= */

.invisible-list {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;

    margin-top: 40px;
}

.invisible-list > div {
    display: flex;

    gap: 18px;

    align-items: center;

    padding: 20px;

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

    border-radius: 14px;

    background: var(--paper-dark);
}

.invisible-list span {
    color: var(--gold);

    font-weight: 800;
}

.invisible-list p {
    margin: 0;

    color: var(--green);

    font-weight: 600;
}

.invisible-conclusion {
    margin-top: 30px;

    padding: 30px;

    border-left: 4px solid var(--gold);

    background: #fffaf0;

    color: var(--green);

    font-size: 20px;
}


/* =========================================================
   CYCLE
========================================================= */

.cycle {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    margin-top: 35px;

    flex-wrap: wrap;
}

.cycle-item {
    padding: 25px;

    min-width: 150px;

    text-align: center;

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

    border-radius: 15px;

    background: var(--paper-dark);
}

.cycle-item strong {
    display: block;

    color: var(--green);
}

.cycle-item span {
    display: block;

    margin-top: 5px;

    color: var(--muted);

    font-size: 12px;
}

.cycle-arrow {
    color: var(--gold);

    font-size: 28px;
}


/* =========================================================
   CONCLUSION
========================================================= */

.final-card {
    text-align: center;

    padding:
        clamp(50px, 8vw, 100px);
}

.final-card h2 {
    max-width: 850px;

    margin-left: auto;
    margin-right: auto;
}

.final-card p {
    max-width: 700px;

    margin:
        25px auto;

    font-size: 20px;
}

.final-highlight {
    max-width: 750px;

    margin: 45px auto;

    padding: 35px;

    border:
        2px solid var(--gold);

    border-radius: 18px;

    background: #fffaf0;

    color: var(--green);

    font-size: 23px;

    font-weight: 700;
}

.final-mission {
    margin-top: 65px;
}

.final-mission span {
    display: block;

    margin-bottom: 20px;

    color: var(--gold-dark);

    font-size: 14px;

    font-weight: 800;

    letter-spacing: .2em;
}

.final-mission strong {
    display: block;

    color: var(--green);

    font-size: clamp(30px, 5vw, 52px);

    line-height: 1.2;

    letter-spacing: -.03em;
}


/* =========================================================
   RESPONSIVE
========================================================= */

/* =========================================================
   LIEN VISUEL AVEC LE SIMULATEUR
========================================================= */

body {
    background:
        radial-gradient(circle at 10% 8%, #edf2e6 0, transparent 22rem),
        radial-gradient(circle at 95% 34%, #f3e8d9 0, transparent 25rem),
        var(--cream);
}

.brand {
    color: var(--green);
    font-family: Arial, sans-serif;
}

.brand-symbol {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #8bad83;
    border-radius: 50%;
    font-size: 16px;
}

.welcome-screen {
    position: relative;
    overflow: hidden;
}

.welcome-screen::after {
    content: "";
    position: absolute;
    right: -10rem;
    bottom: -11rem;
    width: 35rem;
    height: 35rem;
    border: 1px solid #86a47a55;
    border-radius: 50%;
    pointer-events: none;
}

.welcome-screen > * {
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-label {
    color: var(--green-light);
    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: .16em;
}

.eyebrow::after,
.section-label::after {
    width: 48px;
    background: var(--gold);
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

.primary-button {
    border-radius: 999px;
    padding: 16px 25px;
    background: var(--green);
    font-family: Arial, sans-serif;
    letter-spacing: .015em;
}

.primary-button:hover {
    background: var(--green-light);
    box-shadow: 0 12px 26px rgba(32, 76, 53, .18);
}

.content-container,
.question-container,
.results-container {
    position: relative;
    z-index: 1;
}

.level-card,
.result-card,
.question-content {
    border-color: #e0e8dc;
    box-shadow: 0 18px 50px rgba(31, 67, 40, .08);
}

.level-card.featured {
    border-color: #80a779;
    background: linear-gradient(150deg, #f8fcf5, #edf5e7);
}

.level-card:hover {
    box-shadow: 0 22px 46px rgba(31, 67, 40, .13);
}

.question-input {
    border-color: #cfdcc9;
    border-radius: 12px;
}

.input-unit {
    color: var(--green);
    font-family: Arial, sans-serif;
}

.choice-button {
    border-radius: 12px;
    border-color: #d4e0cf;
}

.choice-button.selected {
    border-color: var(--green-light);
    background: #eef6e9;
    color: var(--green);
}

.week-hero,
.final-card {
    border-color: transparent;
    background: linear-gradient(135deg, #204c35, #3d744f);
}

.week-hero h2,
.week-hero p,
.week-hero .section-label,
.final-card h2,
.final-card p,
.final-card .section-label {
    color: #fff;
}

.week-hero .section-label::after,
.final-card .section-label::after {
    background: #c7dfbb;
}

.simulator-invitation {
    max-width: 720px;
    margin: 55px auto 0;
    padding: 28px;
    border: 1px solid #ffffff48;
    border-radius: 18px;
    background: #ffffff12;
    text-align: left;
}

.simulator-invitation > span,
.simulator-invitation small {
    display: block;
    color: #dcebd5;
    font: 700 11px/1.45 Arial, sans-serif;
    letter-spacing: .12em;
}

.simulator-invitation h3 {
    max-width: 620px;
    margin: 10px 0 12px;
    color: #fff;
    font-size: clamp(25px, 3vw, 34px);
}

.simulator-invitation p { max-width: 610px; color: #edf5e8; }

.simulator-button {
    margin: 8px 0 15px;
    background: #fff;
    color: var(--green);
}

.simulator-button:hover { background: #edf5e7; }

.simulator-button b { margin-left: 10px; font-size: 20px; }

.local-preview-message {
    margin: 18px 0 0;
    padding: 13px 15px;
    border: 1px solid #ffffff55;
    border-radius: 10px;
    background: #172f2255;
    color: #edf5e8 !important;
    font-size: .88rem;
}

@media (max-width: 850px) {

    .level-grid {
        grid-template-columns: 1fr;
    }

    .hours-table {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .hours-cell:nth-child(2) {
        border-right: 0;
    }

    .hours-cell:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

    .legend-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .awake-grid {
        grid-template-columns: 1fr;
    }

    .transport-grid {
        grid-template-columns: 1fr;
    }

    .transport-punchline {
        flex-direction: column;

        text-align: center;
    }

    .transport-punchline span {
        margin-left: 0;
    }

    .year-comparison {
        grid-template-columns: 1fr;
    }

    .comparison-arrow {
        transform: rotate(90deg);

        text-align: center;
    }

    .invisible-list {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .screen {
        padding:
            35px 15px;
    }

    .result-card {
        padding: 30px 22px;

        border-radius: 20px;
    }

    .result-card .section-label {
        font-size: 16px;
    }

    .hero-percentage > span {
        font-size: 90px;
    }

    .hero-hours {
        flex-direction: column;

        align-items: center;

        text-align: center;
    }

    .hours-table {
        grid-template-columns: 1fr;
    }

    .hours-cell {
        border-right: 0;

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

    .hours-cell:last-child {
        border-bottom: 0;
    }

    .legend-grid {
        grid-template-columns: 1fr 1fr;
    }

    .awake-percentage {
        flex-direction: column;

        align-items: flex-start;
    }

    .transport-punchline > strong {
        font-size: 55px;
    }

    .year-hero strong {
        font-size: 100px;
    }

    .year-free-box strong {
        font-size: 50px;
    }

    .cycle {
        flex-direction: column;
    }

    .cycle-arrow {
        transform: rotate(90deg);
    }

    .question-content {
        padding: 30px 22px;
    }

}
