/* ---------- design tokens ---------- */
:root {
    --ink: #2a2f27;
    --ink-soft: #4a5244;
    --ink-faint: #7b8378;
    --paper: #f3ece0;
    --paper-warm: #efe4d0;
    --paper-deep: #e6d9bf;
    --bark: #4b3a2a;
    --moss: #4f6a4a;
    --moss-deep: #334a30;
    --amber: #c37c3a;
    --amber-warm: #d9a265;
    --plum: #6b2b4a;
    --sky: #a7bfbb;
    --line: rgba(42, 47, 39, 0.18);

    --f-serif: 'Fraunces', Georgia, serif;
    --f-sans: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
    --f-script: 'Caveat', 'Fraunces', cursive;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;

    --shadow-soft: 0 10px 32px rgba(42, 47, 39, 0.08);
    --shadow-deep: 0 24px 56px rgba(42, 47, 39, 0.14);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--f-sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    background-image:
        radial-gradient(1200px 600px at 20% -10%, rgba(195, 124, 58, 0.08), transparent 60%),
        radial-gradient(900px 500px at 90% 10%, rgba(79, 106, 74, 0.10), transparent 55%),
        radial-gradient(1000px 700px at 50% 120%, rgba(107, 43, 74, 0.06), transparent 60%);
    overflow-x: hidden;
    min-height: 100vh;
}
h1, h2, h3, h4, h5 { font-family: var(--f-serif); font-weight: 500; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
a { color: var(--moss-deep); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
a:hover { border-bottom-color: currentColor; }
button { font-family: inherit; cursor: pointer; }
em { font-style: italic; color: var(--moss-deep); }

#wallpaper-preview {
    width:100%;
}

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- atmosphere ---------- */
.atmosphere {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.roots {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0.14;
}
.root { fill: none; stroke: var(--moss-deep); stroke-width: 2.5; stroke-linecap: round; }
.root-2 { stroke: var(--bark); stroke-width: 1.8; opacity: 0.7; }
.root-3 { stroke: var(--amber); stroke-width: 1.4; opacity: 0.6; }

.leaf {
    position: absolute;
    width: 22px; height: 22px;
    border-radius: 70% 30% 70% 30% / 50% 60% 40% 50%;
    background: var(--moss);
    opacity: 0.18;
    animation: drift 24s linear infinite;
}
.leaf-a { top: 12%; left: 8%; background: var(--moss); animation-delay: -3s; }
.leaf-b { top: 28%; right: 10%; background: var(--amber); animation-delay: -11s; width: 16px; height: 16px; }
.leaf-c { bottom: 20%; left: 18%; background: var(--plum); animation-delay: -7s; opacity: 0.12; }
.leaf-d { bottom: 32%; right: 20%; background: var(--moss-deep); animation-delay: -17s; width: 14px; height: 14px; }

@keyframes drift {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(30px, 40px) rotate(90deg); }
    50%  { transform: translate(-10px, 80px) rotate(180deg); }
    75%  { transform: translate(-40px, 40px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* ---------- nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(243, 236, 224, 0.78);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    border: none;
    font-family: var(--f-serif);
    font-size: 1.1rem;
    font-weight: 600;
}
.logo-mark { width: 28px; height: 28px; color: var(--moss-deep); }
.nav-links { display: flex; gap: 24px; align-items: center; font-size: 0.95rem; }
.nav-links a { color: var(--ink-soft); border: none; }
.nav-links a:hover { color: var(--moss-deep); }
.nav-cta {
    padding: 8px 16px;
    background: var(--ink);
    color: var(--paper) !important;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
}
.nav-cta:hover { background: var(--moss-deep); border: none !important; }

@media (max-width: 720px) {
    .nav-links { gap: 14px; font-size: 0.88rem; }
    .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    z-index: 1;
    padding: 72px 24px 96px;
}
.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 24px;
}
.eyebrow-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--amber); box-shadow: 0 0 0 4px rgba(195, 124, 58, 0.18);
}
.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1;
    margin-bottom: 24px;
}
.title-script {
    display: block;
    font-family: var(--f-script);
    font-weight: 500;
    color: var(--moss-deep);
    font-size: 0.6em;
    transform: rotate(-2deg);
    margin-bottom: 6px;
    opacity: 0.9;
}
.title-main {
    display: block;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.hero-tagline {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--plum);
    border-left: 3px solid var(--amber);
    padding: 4px 0 4px 16px;
    margin-bottom: 20px;
    max-width: 540px;
}
.hero-subtitle {
    font-size: 1.08rem;
    color: var(--ink-soft);
    max-width: 560px;
    margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    font-family: var(--f-sans);
}
.btn:hover { transform: translateY(-2px); border-bottom: 2px solid transparent; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-primary {
    background: var(--ink);
    color: var(--paper);
}
.btn-primary:hover { background: var(--moss-deep); }
.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-ghost {
    background: transparent;
    color: var(--ink-soft);
    border-color: var(--line);
}
.btn-ghost:hover { background: var(--paper-deep); color: var(--ink); border-color: var(--line); }
.btn-emoji { font-size: 1.1em; }
.btn-begin { font-size: 1.1rem; padding: 16px 32px; }

/* hero tree : cycle d'arbres fractals en fondu lent */
.hero-tree { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; }
.hero-tree-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 320 / 420;
    margin: 0 auto;
}
.hero-tree-svg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 5000ms ease-in-out;
}
.hero-tree-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}
.tree-caption {
    margin-top: 4px;
    font-family: var(--f-script);
    font-size: 1.5rem;
    color: var(--ink-soft);
    text-align: center;
}
.tree-caption span { color: var(--moss-deep); }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-tree { order: -1; max-width: 220px; margin: 0 auto; }
}

/* ---------- sections (shared) ---------- */
section { position: relative; z-index: 1; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-tag {
    display: inline-block;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber);
    font-weight: 700;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 16px;
    font-weight: 600;
}
.section-intro {
    font-size: 1.08rem;
    color: var(--ink-soft);
    max-width: 640px;
}
.section-head.centered .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- principe ---------- */
.principe-section { padding: 72px 0; }
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}
.principle-card {
    background: var(--paper-warm);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.principle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.principle-step {
    font-family: var(--f-serif);
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--amber);
    font-style: italic;
    line-height: 1;
    margin-bottom: 14px;
}
.principle-card h3 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 600; }
.principle-card p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* ---------- pour qui ---------- */
.pour-qui-section {
    padding: 80px 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(230, 217, 191, 0.4) 50%, transparent 100%);
}
.pour-qui-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: center;
}
.pour-qui-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    font-size: 1.1rem;
    color: var(--ink);
}
.pour-qui-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    display: flex;
    gap: 12px;
    align-items: baseline;
}
.pour-qui-list li:last-child { border-bottom: none; }
.list-mark { color: var(--amber); font-size: 1.4rem; font-weight: 700; }
.pour-qui-note {
    font-style: italic;
    color: var(--ink-faint);
    font-size: 0.98rem;
    margin-top: 16px;
}
.pour-qui-signed {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
    font-family: var(--f-serif);
    font-style: italic;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.5;
}
.signed-signature {
    font-family: var(--f-script);
    font-style: normal;
    font-size: 1.3rem;
    color: var(--moss-deep);
    margin-right: 6px;
}
.quote-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    position: relative;
    box-shadow: var(--shadow-soft);
}
.quote-mark {
    font-family: var(--f-serif);
    font-size: 5rem;
    line-height: 0.5;
    color: var(--amber);
    position: absolute;
    top: 24px; left: 18px;
    opacity: 0.5;
}
.quote-text {
    font-family: var(--f-serif);
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--ink);
    position: relative;
    padding-left: 24px;
}
.quote-author {
    font-family: var(--f-script);
    color: var(--ink-faint);
    font-size: 1.2rem;
    text-align: right;
    margin: 10px 0 0;
}

@media (max-width: 820px) {
    .pour-qui-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- parcours ---------- */
.parcours-section { padding: 80px 0; }
.parcours-steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    position: relative;
}
.parcours-step {
    position: relative;
    padding-top: 24px;
    counter-increment: step;
}
.step-dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 6px rgba(195, 124, 58, 0.18);
    margin-bottom: 16px;
}
.parcours-step h4 {
    font-family: var(--f-serif);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.parcours-step h4::before {
    content: counter(step, decimal-leading-zero) ' · ';
    color: var(--amber);
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
    margin-right: 4px;
}
.parcours-step p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* ---------- experience : conteneur ---------- */
.experience-section { padding: 48px 0 100px; }
.experience-container { max-width: 980px; }
.experience {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 56px 48px 40px;
    box-shadow: var(--shadow-deep);
    position: relative;
    overflow: hidden;
}
.experience::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--moss) 0%, var(--amber) 50%, var(--plum) 100%);
    opacity: 0.6;
}
.exp-stage[hidden] { display: none; }

/* ---------- fade blanc entre dernière question et bouquet ---------- */
.white-fade {
    position: absolute;
    inset: 0;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 700ms ease;
    z-index: 60;
}
.white-fade.active { opacity: 1; }

/* ---------- transition entre questions (sans "respire") ----------
   Au clic sur une option :
   - les autres s'effacent discrètement,
   - l'option choisie se détache (plus petite, italique, un peu plus haute),
   - puis la question suivante arrive avec son breadcrumb mis à jour.
   Durée totale ~1.2s, en guise de "respiration visuelle". */
.exp-main.exp-leaving .exp-header,
.exp-main.exp-leaving .exp-whisper,
.exp-main.exp-leaving .exp-trail,
.exp-main.exp-leaving .exp-question-title,
.exp-main.exp-leaving .exp-ambi-hint,
.exp-main.exp-leaving .exp-ambi-actions {
    opacity: 0;
    transition: opacity 500ms ease;
    pointer-events: none;
}
.exp-main.exp-leaving .exp-option:not(.exp-option-chosen) {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 400ms ease, transform 400ms ease;
    pointer-events: none;
}
.exp-option.exp-option-chosen {
    transform: scale(0.72) translateY(-90px);
    opacity: 0.35;
    background: var(--paper);
    border-color: var(--amber);
    color: var(--moss-deep);
    font-size: 0.9rem;
    font-style: italic;
    transition:
        transform 700ms cubic-bezier(0.4, 0, 0.2, 1),
        opacity 700ms ease,
        background 500ms ease,
        border-color 500ms ease,
        color 500ms ease,
        font-size 500ms ease;
    pointer-events: none;
}
.exp-main.exp-arriving .exp-whisper,
.exp-main.exp-arriving .exp-question-title,
.exp-main.exp-arriving .exp-options,
.exp-main.exp-arriving .exp-ambi-hint,
.exp-main.exp-arriving .exp-ambi-actions {
    animation: softFadeIn 650ms ease both;
}
.exp-main.exp-arriving .exp-trail .exp-trail-item:last-child {
    animation: trailLand 700ms ease both;
}
@keyframes softFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes trailLand {
    0%   { opacity: 0; transform: translateY(-10px) scale(1.08); color: var(--moss-deep); }
    45%  { opacity: 1; transform: translateY(0) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- breadcrumb (fil du parcours) ---------- */
.exp-trail {
    list-style: none;
    padding: 10px 0 18px;
    margin: 0 0 24px;
    border-bottom: 1px dashed var(--line);
    font-family: var(--f-serif);
    font-style: italic;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.55;
}
.exp-trail-item { display: block; }
.exp-trail-item + .exp-trail-item {
    padding-left: 1.4em;
    margin-top: 3px;
    color: var(--ink-faint);
    font-size: 0.94rem;
}
.exp-trail-arrow {
    color: var(--amber);
    font-style: normal;
    font-weight: 700;
    margin-right: 8px;
}
.exp-trail-and {
    color: var(--amber);
    font-style: italic;
    margin: 0 4px;
    font-weight: 400;
}

/* ---------- shared stage text ---------- */
.exp-whisper {
    font-family: var(--f-script);
    font-size: 1.4rem;
    color: var(--moss-deep);
    margin-bottom: 8px;
}
.exp-title {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    font-weight: 500;
    margin-bottom: 16px;
}
.exp-lead {
    color: var(--ink-soft);
    font-size: 1.08rem;
    margin-bottom: 28px;
    max-width: 580px;
}
.exp-fineprint {
    margin-top: 16px;
    font-size: 0.88rem;
    color: var(--ink-faint);
    font-style: italic;
}

/* ---------- QUESTION : deux colonnes ---------- */
.exp-two-col {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 36px;
    align-items: start;
}
.exp-tree-side {
    position: sticky;
    top: 24px;
    text-align: center;
}
.exp-tree {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
}
.exp-tree svg {
    width: 100%;
    height: auto;
    display: block;
}
.exp-tree-caption {
    font-family: var(--f-script);
    font-size: 1.2rem;
    color: var(--ink-faint);
    margin-top: 6px;
}
.exp-tree-large {
    max-width: 320px;
}

.exp-main { min-width: 0; }
.exp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}
.exp-progress { display: flex; gap: 10px; }
.progress-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--line);
    transition: background 0.3s ease, transform 0.3s ease;
}
.progress-dot.active { background: var(--amber); transform: scale(1.3); }
.progress-dot.done { background: var(--moss); }
.exp-back {
    background: transparent;
    border: none;
    color: var(--ink-faint);
    font-family: var(--f-sans);
    font-size: 0.92rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
}
.exp-back:hover { background: var(--paper-deep); color: var(--ink); }

.exp-question-title {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.25;
    margin-bottom: 20px;
    font-weight: 500;
}
.exp-ambi-hint {
    background: rgba(195, 124, 58, 0.1);
    border-left: 3px solid var(--amber);
    padding: 10px 14px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.98rem;
    color: var(--ink);
    margin: 0 0 20px;
}
.exp-ambi-hint strong { color: var(--amber); }

.exp-options {
    display: grid;
    gap: 12px;
}
.exp-option {
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    padding: 18px 22px;
    background: var(--paper-warm);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    font-family: var(--f-serif);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}
.exp-option::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--amber);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
}
.exp-option:hover {
    transform: translateX(4px);
    background: var(--paper);
    border-color: var(--amber);
    box-shadow: var(--shadow-soft);
}
.exp-option:hover::before { transform: translateX(0); }

.exp-option-label { display: block; }
.exp-option-tag {
    display: block;
    font-family: var(--f-script);
    font-size: 1.05rem;
    color: var(--moss-deep);
    margin-top: 4px;
    opacity: 0.8;
}

/* ambivalent toggle state */
.exp-option-toggle { padding-right: 48px; }
.exp-option-check {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    background: var(--paper);
    font-weight: 700;
    transition: all 0.2s ease;
}
.exp-option-picked {
    background: var(--paper);
    border-color: var(--moss);
    transform: translateX(4px);
}
.exp-option-picked::before { transform: translateX(0); background: var(--moss); }
.exp-option-picked .exp-option-check {
    background: var(--moss);
    border-color: var(--moss);
    color: var(--paper);
}

.exp-ambi-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--line);
    flex-wrap: wrap;
}
.exp-ambi-count {
    font-family: var(--f-script);
    color: var(--ink-soft);
    font-size: 1.15rem;
}

@media (max-width: 740px) {
    .exp-two-col { grid-template-columns: 1fr; }
    .exp-tree-side { position: static; max-width: 180px; margin: 0 auto 16px; }
    .exp-tree { max-width: 180px; }
}

/* ---------- RÉFLEXION ---------- */
.reflection-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 36px;
    align-items: center;
    margin-top: 32px;
}
.reflection-tree-side { text-align: center; }
.reflection-text .btn { margin-right: 8px; margin-bottom: 10px; }
.reflection-summary {
    font-family: var(--f-serif);
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--ink);
    margin: 0 0 28px;
    font-weight: 400;
}
.reflection-summary em {
    color: var(--plum);
    font-style: italic;
}

@media (max-width: 740px) {
    .reflection-grid { grid-template-columns: 1fr; }
    .reflection-tree-side { max-width: 220px; margin: 0 auto; }
}

/* ---------- FINAL ---------- */
.final-head { margin-bottom: 32px; }
.final-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: start;
    margin-bottom: 32px;
}
.final-preview-side {
    position: sticky;
    top: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.wallpaper-frame {
    background: #000;
    border-radius: 22px;
    overflow: hidden;
    padding: 10px;
    box-shadow: var(--shadow-deep);
    display: block;
    width: 100%;
}
#wallpaper-preview {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    background: #1a1a1a;
    aspect-ratio: 1170 / 2532;
}
.btn-download-wp {
    width: 100%;
    justify-content: center;
}
.preview-hint {
    font-family: var(--f-script);
    font-size: 1.15rem;
    color: var(--ink-faint);
    margin: 0;
    line-height: 1.3;
}
.final-activities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
@media (max-width: 720px) {
    .final-grid { grid-template-columns: 1fr; }
    .final-preview-side { position: static; max-width: 280px; margin: 0 auto; }
}

.activity-card {
    position: relative;
    background: var(--paper-warm);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 20px 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    user-select: none;
}
.activity-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
    border-color: var(--moss);
}
.activity-card:focus-visible {
    outline: 2px solid var(--moss-deep);
    outline-offset: 2px;
}
.activity-ressemble {
    background: var(--paper);
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(195, 124, 58, 0.1);
}
.activity-voisine {
    border-style: dashed;
    background: rgba(239, 228, 208, 0.55);
}
.activity-selected {
    background: linear-gradient(135deg, rgba(79, 106, 74, 0.1), rgba(79, 106, 74, 0.16));
    border-color: var(--moss-deep);
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(79, 106, 74, 0.28), var(--shadow-soft);
    animation: selectPulse 350ms ease;
}
@keyframes selectPulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.03); }
    100% { transform: scale(1); }
}
.activity-selected::after {
    content: '✓';
    position: absolute;
    top: -12px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--moss-deep);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 2px 10px rgba(79, 106, 74, 0.4);
    border: 2px solid var(--paper);
}
.activity-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--amber);
    color: var(--paper);
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 700;
}
.activity-badge-voisine {
    background: var(--moss);
    color: var(--paper);
}
.activity-emoji { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.activity-name {
    font-family: var(--f-serif);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--ink);
}
.activity-hint {
    font-size: 0.92rem;
    color: var(--ink-soft);
    margin: 0 0 12px;
    line-height: 1.45;
    flex-grow: 1;
}
.activity-step {
    font-family: var(--f-serif);
    font-size: 0.98rem;
    font-style: italic;
    color: var(--moss-deep);
    background: rgba(79, 106, 74, 0.08);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin: 0;
    line-height: 1.45;
}
.activity-step-mark {
    color: var(--amber);
    font-weight: 700;
    font-style: normal;
    margin-right: 4px;
}
.activity-hint a,
.activity-step a {
    color: var(--moss-deep);
    text-decoration: underline;
    text-decoration-color: var(--amber);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
    font-weight: 700;
    border-bottom: none;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.activity-hint a:hover,
.activity-step a:hover {
    color: var(--plum);
    text-decoration-color: var(--plum);
}

/* ---------- INVITATION (final blocks) ---------- */
.invitation-section {
    padding: 36px 0 0;
    border-top: 1px dashed var(--line);
    margin-top: 16px;
}
.invitation-title {
    font-family: var(--f-serif);
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--ink);
}
.invitation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.invitation-card {
    background: var(--paper-warm);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.invitation-card h4 {
    font-family: var(--f-serif);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.invitation-icon { font-size: 1.3rem; }
.invitation-card p {
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.5;
}
.invitation-url {
    font-size: 0.88rem !important;
    color: var(--ink-faint) !important;
    font-style: italic;
}
.invitation-script-preview {
    font-family: var(--f-serif);
    font-style: italic;
    background: var(--paper);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    border-left: 3px solid var(--amber);
    margin: 4px 0 !important;
    color: var(--ink) !important;
    font-size: 0.95rem !important;
    line-height: 1.5;
}
.invitation-card .btn { margin-top: auto; align-self: flex-start; }
.share-preview {
    width: 100%;
    max-width: 240px;
    margin-top: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}
.invite-branches {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 6px 0 10px;
}
.invite-branch {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    text-align: left;
    font-family: var(--f-serif);
    font-size: 0.95rem;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.invite-branch:hover {
    background: var(--paper-deep);
    border-color: var(--amber);
    transform: translateX(2px);
}
.invite-branch-arrow { color: var(--amber); font-weight: 700; margin-right: 6px; }

.final-fineprint {
    font-size: 0.88rem;
    color: var(--ink-faint);
    font-style: italic;
    margin: 24px 0 0;
    text-align: center;
}

@media (max-width: 740px) {
    .final-grid { grid-template-columns: 1fr; }
    .final-tree-side { position: static; max-width: 220px; margin: 0 auto; }
}

/* ---------- SAFETY NET ---------- */
.safety-net {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px dashed var(--line);
}
.safety-net-inner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.88rem;
    color: var(--ink-faint);
    line-height: 1.6;
    max-width: 760px;
}
.safety-net-inner p { margin: 0; }
.safety-net-inner a {
    color: var(--moss-deep);
    font-weight: 700;
    border-bottom: 1px dotted var(--moss-deep);
}
.safety-net-inner a:hover { color: var(--plum); border-bottom-color: var(--plum); }
.safety-mark { color: var(--amber); font-size: 1.4rem; line-height: 1; }
.safety-desc { color: var(--ink-faint); font-style: italic; }

/* ---------- experience responsive ---------- */
@media (max-width: 720px) {
    .experience { padding: 36px 24px 32px; }
    .exp-option { padding: 14px 18px; font-size: 1rem; }
    .exp-option-toggle { padding-right: 44px; }
}

/* ---------- footer ---------- */
.footer {
    padding: 56px 0 40px;
    border-top: 1px solid var(--line);
    background: rgba(230, 217, 191, 0.3);
    margin-top: 48px;
    position: relative;
    z-index: 1;
}
.footer-inner { text-align: center; max-width: 680px; }
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 20px;
}
.footer-tagline {
    font-family: var(--f-serif);
    font-style: italic;
    color: var(--plum);
    font-size: 1.05rem;
    margin-bottom: 16px;
}
.footer-copy {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.footer-privacy {
    color: var(--ink-faint);
    font-size: 0.88rem;
    margin: 0;
}

/* ---------- toast ---------- */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    padding: 12px 24px;
    background: var(--ink);
    color: var(--paper);
    border-radius: 999px;
    font-size: 0.95rem;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 100;
    box-shadow: var(--shadow-deep);
    pointer-events: none;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ---------- animations ---------- */
.exp-stage:not([hidden]) {
    animation: fadeUp 0.4s ease;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

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