@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
/* @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Manrope:wght@200..800&display=swap'); */
@import url('../vendor/bootstrap/css/bootstrap.min.css');

/* =========================================================
     CHARTE MIXTE SIREXE × MOON DRIVE — version multi-étapes
     Base beige + en-tête vert sapin + vert Moon Drive #04884e
     ========================================================= */
:root {
    --forest: #123423;
    --forest-2: #0e2a1c;
    --green: #04884e;
    --green-hi: #3fbf80;
    --gold: #f7ca40;
    --orange: #f29104;
    --beige: #F0E9DC;
    --beige-field: #F6F1E7;
    --beige-dk: #E1DAC9;
    --paper: #FFFFFF;
    --ink: #23291F;
    --muted: #6B7264;
    --line: #DAD2BF;
    --line-2: #E6DFCE;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background: var(--beige);
    min-height: 100vh
}

/* ---------- EN-TÊTE ---------- */
.top {
    background: linear-gradient(160deg, var(--forest) 0%, var(--forest-2) 100%);
    padding: 36px 20px 40px;
    text-align: center;
    position: relative;
    overflow: hidden
}

.top::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--orange), transparent);
    opacity: .55
}

.brand {
    margin-bottom: 18px
}

.brand img {
    height: 60px;
    width: auto;
    display: inline-block
}

.cap-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 7px 16px;
    margin-bottom: 16px
}

.cap-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold)
}

.top h1 {
    font-weight: 600;
    font-size: clamp(24px, 3.8vw, 36px);
    line-height: 1.15;
    color: #fff;
    max-width: 22ch;
    margin: 0 auto 12px
}

.top h1 em {
    font-style: italic;
    color: var(--gold)
}

.top p.lead {
    color: rgba(255, 255, 255, .74);
    font-size: 15px;
    max-width: 56ch;
    margin: 0 auto;
    line-height: 1.6
}

/* ---------- CARTE ---------- */
.wrap {
    max-width: 640px;
    margin: 26px auto 0;
    padding: 0 20px 60px
}

.card {
    background: var(--paper);
    border-radius: 22px;
    /* box-shadow: 0 40px 90px -50px rgba(18, 52, 35, .55); */
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column
}

/* progression */
.progress-head {
    padding: 26px 30px 4px
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px
}

.progress-meta .step-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--forest);
    letter-spacing: .02em
}

.progress-meta .step-count b {
    color: var(--green)
}

.progress-meta .step-pct {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600
}

.progress {
    height: 8px;
    background: var(--beige-dk);
    border-radius: 999px;
    overflow: hidden
}

.progress .bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green), var(--green-hi));
    transition: width .4s cubic-bezier(.4, 0, .2, 1)
}

.card-body {
    padding: 26px 30px 18px;
    flex: 1
}

@media(max-width:560px) {

    .card-body,
    .progress-head {
        padding-left: 20px;
        padding-right: 20px
    }
}

/* étape */
.step {
    display: none;
    animation: fade .35s ease
}

.step.active {
    display: block
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(8px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.q-head {
    margin-bottom: 18px
}

.q-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 8px
}

.q-title {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.28;
    color: var(--ink)
}

.q-title .req {
    color: var(--orange);
    font-family: 'Inter'
}

.q-sub {
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.5
}

.intro-text {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.62;
    margin-bottom: 6px
}

/* options */
.opts {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.opt {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    background: var(--beige-field);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    transition: .16s
}

.opt:hover {
    border-color: var(--green-hi);
    background: #fff
}

.opt input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0
}

.opt .mark {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 2px solid var(--line);
    background: #fff;
    margin-top: 1px;
    transition: .16s;
    position: relative
}

.opt .mark.radio {
    border-radius: 50%
}

.opt .mark.check {
    border-radius: 6px
}

.opt .txt {
    font-size: 14.5px;
    line-height: 1.4;
    color: var(--ink)
}

.opt input:checked~.mark {
    border-color: var(--green);
    background: var(--green)
}

.opt input:checked~.mark.radio::after {
    content: "";
    position: absolute;
    inset: 4px;
    background: #fff;
    border-radius: 50%
}

.opt input:checked~.mark.check::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg)
}

.opt:has(input:checked) {
    border-color: var(--green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(4, 136, 78, .12)
}

/* sous-question conditionnelle */
.subq {
    margin-top: 16px;
    padding: 16px 18px;
    background: var(--beige);
    border: 1px dashed var(--line);
    border-radius: 12px
}

.subq.hidden {
    display: none
}

.subq .sub-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
    display: block
}

.subq .opts {
    gap: 8px
}

/* champs */
.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

@media(max-width:560px) {
    .fields {
        grid-template-columns: 1fr
    }
}

.fld {
    display: flex;
    flex-direction: column;
    gap: 7px
}

.fld.full {
    grid-column: 1/-1
}

.fld label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink)
}

.fld label .req {
    color: var(--orange)
}

.fld label .opt-tag {
    color: var(--muted);
    font-weight: 500;
    font-size: 12px
}

.fld input,
.fld select,
.fld textarea {
    font-family: 'Inter';
    font-size: 14.5px;
    color: var(--ink);
    background: var(--beige-field);
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 13px 15px;
    transition: .16s;
    width: 100%
}

.fld input::placeholder,
.fld textarea::placeholder {
    color: #9AA096
}

.fld input:focus,
.fld select:focus,
.fld textarea:focus {
    outline: none;
    border-color: var(--green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(4, 136, 78, .14)
}

.consent-line {
    margin-bottom: 10px
}

/* pied de carte : navigation */
.nav {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 18px 30px 24px;
    border-top: 1px solid var(--line-2)
}

@media(max-width:560px) {
    .nav {
        padding-left: 20px;
        padding-right: 20px
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: 'Inter';
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: .2s;
    font-size: 15px
}

.btn-prev {
    background: transparent;
    color: var(--muted);
    border-color: var(--line);
    padding: 14px 20px
}

.btn-prev:hover {
    color: var(--forest);
    border-color: var(--forest)
}

.btn-next {
    background: var(--forest);
    color: #fff;
    padding: 14px 26px;
    margin-left: auto
}

.btn-next:hover {
    background: var(--green)
}

.btn-next .arw,
.btn-prev .arw {
    transition: transform .2s
}

.btn-next:hover .arw {
    transform: translateX(3px)
}

.btn-prev:hover .arw {
    transform: translateX(-3px)
}

.btn-submit {
    background: var(--green);
    color: #fff;
    padding: 14px 26px;
    margin-left: auto
}

.btn-submit:hover {
    background: var(--forest)
}

.err {
    color: var(--orange);
    font-size: 13px;
    font-weight: 600;
    margin-right: auto;
    display: none
}

.err.show {
    display: inline
}

/* fin */
.end {
    display: none;
    text-align: center;
    padding: 40px 30px 44px
}

.end.show {
    display: block;
    animation: fade .4s ease
}

.end .ok {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #E7F0E4;
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin: 0 auto 22px
}

.end.non .ok {
    background: #F0E9DC;
    color: var(--forest)
}

.end h3 {
    font-size: 26px;
    color: var(--forest);
    margin-bottom: 12px
}

.end p {
    color: var(--muted);
    font-size: 15px;
    max-width: 46ch;
    margin: 0 auto;
    line-height: 1.6
}

.foot {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    padding: 22px 20px 0;
    line-height: 1.6
}

.foot strong {
    color: var(--forest)
}