/* ==========================================================================
   LYREVAL — La Constellation (/lecture-thematique)
   Module de découverte poétique : composer une lecture par affinités.

   Design system inline :
   - Bases ivoire et encre, accents par humeur (rose/night/sepia/twilight/astral)
   - Typographie liseuse (Crimson Pro pour le serif, Lora pour le texte)
   - Décor : papier ivoire, halo doux, champ d'étoiles très subtil
   - Composants : chips, étapes, cartes poèmes, résumé sticky « constellation »
   ========================================================================== */

/* ---- 1. Tokens & accents ------------------------------------------------- */

.lc-page {
    /* Couleurs neutres */
    --lc-ivory:        #F4EFE6;
    --lc-ivory-soft:   #F9F4EA;
    --lc-ink:          #1F1B17;
    --lc-ink-soft:     rgba(31, 27, 23, 0.82);
    --lc-ink-quiet:    rgba(31, 27, 23, 0.58);
    --lc-muted:        #7C756C;
    --lc-rule:         rgba(31, 27, 23, 0.10);
    --lc-rule-strong:  rgba(31, 27, 23, 0.18);
    --lc-paper:        rgba(255, 252, 245, 0.62);

    /* Accent (par défaut : astral) */
    --lc-accent:       #2F6F73;
    --lc-accent-deep:  #1F4D50;
    --lc-accent-soft:  rgba(47, 111, 115, 0.14);
    --lc-accent-glow:  rgba(47, 111, 115, 0.32);

    /* Typographie */
    --lc-serif:        'Crimson Pro', 'EB Garamond', Georgia, 'Times New Roman', serif;
    --lc-text:         'Lora', Georgia, 'Times New Roman', serif;
    --lc-mono:         'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Mesures */
    --lc-radius:       14px;
    --lc-radius-sm:    10px;
    --lc-radius-lg:    20px;
    --lc-ease:         cubic-bezier(0.22, 1, 0.36, 1);
    --lc-ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    --lc-summary-h:    96px;

    position: relative;
    background: var(--lc-ivory);
    color: var(--lc-ink);
    font-family: var(--lc-text);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    padding: 56px 18px calc(var(--lc-summary-h) + 56px);
    overflow: hidden;
}

/* Variations d'accent (réagissent au thème dominant) */
.lc-page--rose     { --lc-accent: #B14A6B; --lc-accent-deep: #843853; --lc-accent-soft: rgba(177, 74, 107, 0.14); --lc-accent-glow: rgba(177, 74, 107, 0.30); }
.lc-page--night    { --lc-accent: #2D4E7A; --lc-accent-deep: #1B3050; --lc-accent-soft: rgba(45, 78, 122, 0.16); --lc-accent-glow: rgba(45, 78, 122, 0.32); }
.lc-page--sepia    { --lc-accent: #7C5B3B; --lc-accent-deep: #5A4128; --lc-accent-soft: rgba(124, 91, 59, 0.16); --lc-accent-glow: rgba(124, 91, 59, 0.30); }
.lc-page--twilight { --lc-accent: #6A4C86; --lc-accent-deep: #4A325F; --lc-accent-soft: rgba(106, 76, 134, 0.14); --lc-accent-glow: rgba(106, 76, 134, 0.32); }
.lc-page--astral   { --lc-accent: #2F6F73; --lc-accent-deep: #1F4D50; --lc-accent-soft: rgba(47, 111, 115, 0.14); --lc-accent-glow: rgba(47, 111, 115, 0.32); }

/* Contenu : largeur de lecture confortable */
.lc-hero,
.lc-compose,
.lc-validation,
.lc-results,
.lc-discover {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

/* ---- 2. Décor : papier, halo, étoiles ------------------------------------ */

.lc-paper {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.6;
    z-index: 0;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(0,0,0,0.025) 0 24%, transparent 25%),
        radial-gradient(circle at 84% 28%, rgba(0,0,0,0.018) 0 22%, transparent 23%),
        radial-gradient(circle at 28% 78%, rgba(0,0,0,0.015) 0 26%, transparent 27%),
        linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0));
    mix-blend-mode: multiply;
}

.lc-glow {
    position: absolute;
    inset: -20% -10%;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
    opacity: 0.85;
}

.lc-glow__halo {
    position: absolute;
    width: 640px;
    height: 640px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, var(--lc-accent-glow), transparent 60%);
    transition: background 0.8s var(--lc-ease);
}

.lc-glow__halo--top    { top: -120px; left: 8%; }
.lc-glow__halo--bottom { bottom: -200px; right: 4%; opacity: 0.65; }

.lc-cosmos {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.lc-star {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s, 1px);
    height: var(--s, 1px);
    border-radius: 50%;
    background: var(--lc-ink);
    opacity: var(--o, 0.25);
    box-shadow: 0 0 6px rgba(0,0,0,0.04);
    animation: lc-star-twinkle var(--d, 4s) ease-in-out infinite;
}

@keyframes lc-star-twinkle {
    0%, 100% { opacity: calc(var(--o, 0.25) * 0.55); transform: scale(0.85); }
    50%      { opacity: var(--o, 0.25); transform: scale(1.05); }
}

/* ---- 3. Hero ------------------------------------------------------------- */

.lc-hero {
    padding: 28px 0 24px;
    text-align: center;
}

.lc-hero__title {
    font-family: 'Crimson Pro', 'Lora', serif;
    font-size: clamp(1.45rem, 3.8vw, 2.65rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.28;
    margin: 0 auto clamp(0.85rem, 2vh, 1.15rem);
    color: var(--text-primary, var(--lc-ink));
    flex-shrink: 0;
}

html:not(.day-mode) .lc-hero__title {
    color: rgba(231, 231, 231, 0.98);
}

.lc-hero__title-line { display: block; }
.lc-hero__title-line--italic {
    font-style: italic;
    font-weight: 400;
    color: var(--lc-ink-soft);
}

.lc-hero__lede {
    margin: 0 auto 26px;
    color: var(--lc-ink-soft);
    max-width: 56ch;
    font-size: 17px;
    line-height: 1.65;
}

.lc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0 0 30px;
}

.lc-cta {
    appearance: none;
    border: 1px solid var(--lc-ink);
    background: var(--lc-ink);
    color: var(--lc-ivory-soft);
    padding: 13px 22px;
    border-radius: 999px;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.18s var(--lc-ease), background 0.25s var(--lc-ease), color 0.25s var(--lc-ease), box-shadow 0.25s var(--lc-ease);
    box-shadow: 0 8px 22px rgba(0,0,0,0.10);
    text-decoration: none;
}

.lc-cta:hover  { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0,0,0,0.14); }
.lc-cta:active { transform: translateY(0); }
.lc-cta__arrow { display: inline-block; transition: transform 0.25s var(--lc-ease); }
.lc-cta:hover .lc-cta__arrow { transform: translateX(2px); }

.lc-cta--ghost {
    background: transparent;
    color: var(--lc-ink);
    border-color: var(--lc-rule-strong);
    box-shadow: none;
}
.lc-cta--ghost:hover { background: rgba(255,255,255,0.55); border-color: rgba(0,0,0,0.30); }

.lc-presets {
    margin: 0 auto;
    max-width: 760px;
}

.lc-presets__label {
    margin: 0 0 12px;
    font-family: var(--lc-serif);
    font-style: italic;
    color: var(--lc-ink-quiet);
    font-size: 14px;
    letter-spacing: 0.02em;
}

.lc-presets__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.lc-preset {
    appearance: none;
    cursor: pointer;
    background: rgba(255,255,255,0.55);
    border: 1px solid var(--lc-rule);
    border-radius: 999px;
    padding: 9px 16px;
    font: inherit;
    font-family: var(--lc-serif);
    font-size: 15px;
    color: var(--lc-ink);
    transition: transform 0.18s var(--lc-ease), background 0.2s var(--lc-ease), border-color 0.2s var(--lc-ease), box-shadow 0.2s var(--lc-ease);
}

.lc-preset:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.85);
    border-color: var(--lc-rule-strong);
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

/* ---- 3.5. Doorway : trois portes d'entrée ------------------------------- */

.lc-doorway {
    margin-top: 14px;
}

.lc-doorway__title {
    margin: 0 auto 18px;
    text-align: center;
    font-family: var(--lc-serif);
    font-weight: 500;
    font-size: clamp(22px, 3.2vw, 28px);
    color: var(--lc-ink);
    letter-spacing: -0.005em;
    max-width: 28ch;
    line-height: 1.25;
}

.lc-doorway__lede {
    margin: -10px auto 22px;
    text-align: center;
    color: var(--lc-ink-quiet);
    font-size: 15px;
    line-height: 1.55;
    max-width: 42ch;
}

.lc-doorway__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.lc-doorway__card {
    appearance: none;
    cursor: pointer;
    width: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.55));
    border: 1px solid var(--lc-rule);
    border-radius: var(--lc-radius);
    padding: 24px 20px 22px;
    text-align: center;
    font: inherit;
    color: var(--lc-ink);
    display: grid;
    gap: 8px;
    justify-items: center;
    transition: transform 0.22s var(--lc-ease), border-color 0.25s var(--lc-ease), background 0.3s var(--lc-ease), box-shadow 0.3s var(--lc-ease);
    position: relative;
    overflow: hidden;
}

.lc-doorway__card::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 50% 50%, var(--lc-accent-glow), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s var(--lc-ease);
    pointer-events: none;
}

.lc-doorway__card:hover {
    transform: translateY(-3px);
    border-color: var(--lc-rule-strong);
    box-shadow: 0 18px 36px rgba(0,0,0,0.10);
}

.lc-doorway__card:hover::before { opacity: 0.55; }

.lc-doorway__card-glyph {
    position: relative;
    font-size: 26px;
    color: var(--lc-accent-deep);
    line-height: 1;
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--lc-accent-soft);
    background: var(--lc-accent-soft);
    margin-bottom: 4px;
}

.lc-doorway__card-title {
    position: relative;
    font-family: var(--lc-serif);
    font-weight: 500;
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: -0.005em;
}

.lc-doorway__card-desc {
    position: relative;
    color: var(--lc-ink-quiet);
    font-size: 13.5px;
    line-height: 1.5;
    max-width: 28ch;
}

.lc-doorway__card:focus-visible {
    outline: 2px solid var(--lc-accent);
    outline-offset: 3px;
}

/* Tarot : trois cartes image */
.lc-doorway__grid--tarot {
    gap: clamp(10px, 2.5vw, 22px);
    align-items: stretch;
}

.lc-doorway__card--tarot {
    padding: clamp(8px, 1.5vw, 12px);
    gap: 0;
}

.lc-doorway__card-frame {
    display: block;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(0,0,0,0.12);
    border: 1px solid var(--lc-rule-strong);
    background: rgba(255,255,255,0.4);
}

.lc-doorway__card--tarot .lc-doorway__card-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 13 / 20;
    object-fit: cover;
}

/* ---- 4. Composer (étapes) ------------------------------------------------ */

.lc-reassure {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: var(--lc-radius);
    background: var(--lc-accent-soft);
    border: 1px solid var(--lc-accent-soft);
    color: var(--lc-ink-soft);
    font-size: 14.5px;
    font-style: italic;
    font-family: var(--lc-serif);
}

.lc-reassure__symbol {
    color: var(--lc-accent-deep);
    font-style: normal;
    font-size: 16px;
    flex-shrink: 0;
}

.lc-compose {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.lc-step {
    background: var(--lc-paper);
    border: 1px solid var(--lc-rule);
    border-radius: var(--lc-radius);
    padding: 22px 22px 18px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.05);
    transition: border-color 0.25s var(--lc-ease), box-shadow 0.25s var(--lc-ease);
}

.lc-step:hover { border-color: var(--lc-rule-strong); }

.lc-step__head {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.lc-step__head--summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
    margin-bottom: 0;
}
.lc-step__head--summary::-webkit-details-marker { display: none; }

.lc-step__num {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--lc-accent-soft);
    background: rgba(255,255,255,0.55);
    color: var(--lc-accent-deep);
    font-family: var(--lc-serif);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lc-step__heading { flex: 1; min-width: 0; }

.lc-step__title {
    margin: 0 0 4px;
    font-family: var(--lc-serif);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.005em;
    color: var(--lc-ink);
}

.lc-step__hint {
    margin: 0;
    color: var(--lc-ink-quiet);
    font-size: 14px;
    line-height: 1.55;
}

.lc-step__chev {
    color: var(--lc-accent);
    font-size: 22px;
    line-height: 1;
    transition: transform 0.25s var(--lc-ease);
    align-self: center;
    margin-left: auto;
}

details[data-lc-advanced][open] .lc-step__chev { transform: rotate(90deg); }

.lc-step--details > .lc-step__head + * { margin-top: 18px; }

.lc-substep {
    margin-top: 18px;
}

.lc-substep:first-of-type { margin-top: 6px; }

.lc-substep__label {
    margin: 0 0 8px;
    font-family: var(--lc-serif);
    font-size: 14px;
    color: var(--lc-ink-quiet);
    font-style: italic;
    letter-spacing: 0.04em;
}

/* ---- 5. Chips ------------------------------------------------------------ */

.lc-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lc-chip {
    --chip-bg: rgba(255,255,255,0.65);
    --chip-border: var(--lc-rule);
    --chip-color: var(--lc-ink);

    position: relative;
    appearance: none;
    cursor: pointer;
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    color: var(--chip-color);
    border-radius: 999px;
    padding: 9px 16px;
    font: inherit;
    font-size: 15px;
    line-height: 1.3;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    transition: transform 0.16s var(--lc-ease), background 0.22s var(--lc-ease), border-color 0.22s var(--lc-ease), color 0.22s var(--lc-ease), box-shadow 0.25s var(--lc-ease);
    overflow: hidden;
    text-align: left;
}

.lc-chip__label {
    font-family: var(--lc-serif);
    font-size: 16px;
    line-height: 1.15;
}

.lc-chip__hint {
    font-size: 11.5px;
    color: var(--lc-ink-quiet);
    letter-spacing: 0.01em;
    line-height: 1.2;
    font-style: italic;
}

.lc-chip__year {
    font-family: var(--lc-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--lc-accent-deep);
    text-transform: uppercase;
    line-height: 1;
}

.lc-chip__halo {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at 50% 50%, var(--lc-accent-glow), transparent 70%);
    transition: opacity 0.35s var(--lc-ease);
}

.lc-chip:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.95);
    border-color: var(--lc-rule-strong);
    box-shadow: 0 6px 14px rgba(0,0,0,0.05);
}

.lc-chip.is-active {
    --chip-bg: var(--lc-ink);
    --chip-border: var(--lc-ink);
    --chip-color: var(--lc-ivory-soft);
    box-shadow: 0 10px 20px rgba(0,0,0,0.16), 0 0 0 4px var(--lc-accent-soft);
}

.lc-chip.is-active .lc-chip__hint  { color: rgba(255, 252, 245, 0.65); }
.lc-chip.is-active .lc-chip__year  { color: var(--lc-ivory-soft); }
.lc-chip.is-active .lc-chip__halo  { opacity: 0.65; }

.lc-chip:focus-visible {
    outline: 2px solid var(--lc-accent);
    outline-offset: 3px;
}

.lc-chips--periods .lc-chip {
    flex-direction: column;
    min-width: 88px;
    align-items: center;
    text-align: center;
    padding: 10px 16px;
}

.lc-chips--lengths .lc-chip { padding: 7px 14px; }

/* Mouvements : forme allongée avec glose en italique inline pour rendre le mot vivant */
.lc-chips--glosses .lc-chip {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 10px 16px;
}

.lc-chip__gloss {
    font-style: italic;
    font-family: var(--lc-serif);
    font-size: 13.5px;
    color: var(--lc-ink-quiet);
    line-height: 1.25;
}

.lc-chip.is-active .lc-chip__gloss { color: rgba(255, 252, 245, 0.72); }

/* Chip « Peu importe » : ton plus discret, en bordure pointillée */
.lc-chip--skip {
    --chip-bg: transparent;
    --chip-border: var(--lc-rule-strong);
    color: var(--lc-ink-quiet);
    border-style: dashed;
    font-style: italic;
}

.lc-chip--skip:hover {
    color: var(--lc-ink);
    background: rgba(255,255,255,0.55);
}

/* Chip « Voir plus / moins » : aspect texte-plus, sans encombrer */
.lc-chip--more {
    --chip-bg: transparent;
    --chip-border: transparent;
    color: var(--lc-accent-deep);
    text-decoration: underline;
    text-decoration-color: var(--lc-accent-soft);
    text-underline-offset: 4px;
    box-shadow: none;
}

.lc-chip--more:hover {
    background: var(--lc-accent-soft);
    text-decoration-color: var(--lc-accent);
}

.lc-chip--more[aria-expanded="true"] .lc-chip__label[data-lc-more-label="more"] { display: none; }
.lc-chip--more[aria-expanded="false"] .lc-chip__label[data-lc-more-label="less"] { display: none; }

/* Pied d'étape : Peu importe + Voir plus alignés */
.lc-step__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--lc-rule);
}

/* Liste de chips : extras cachés par défaut, révélés par .is-expanded */
.lc-chips:not(.is-expanded) .lc-chips__extra { display: none; }

.lc-chips.is-expanded .lc-chips__extra {
    animation: lc-extra-fade 0.45s var(--lc-ease-out) both;
}

@keyframes lc-extra-fade {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: none; }
}

/* ---- 5.5. Carte de validation : « Vous avez choisi : … » --------------- */

.lc-validation {
    margin-top: 22px;
    padding: 26px 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.62));
    border: 1px solid var(--lc-accent-soft);
    border-left: 3px solid var(--lc-accent);
    border-radius: var(--lc-radius);
    box-shadow: 0 14px 32px rgba(0,0,0,0.06);
    display: grid;
    gap: 6px;
    text-align: left;
    transition: opacity 0.4s var(--lc-ease), transform 0.4s var(--lc-ease);
    animation: lc-validation-emerge 0.5s var(--lc-ease-out);
}

.lc-validation[hidden] { display: none; }

@keyframes lc-validation-emerge {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.lc-validation__chosen-label {
    margin: 0;
    color: var(--lc-ink-quiet);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-family: var(--lc-serif);
}

.lc-validation__chosen {
    margin: 0;
    font-family: var(--lc-serif);
    font-weight: 500;
    font-size: clamp(20px, 2.6vw, 26px);
    line-height: 1.25;
    color: var(--lc-ink);
    letter-spacing: -0.005em;
}

.lc-validation__phrase {
    margin: 8px 0 0;
    font-family: var(--lc-serif);
    font-style: italic;
    font-size: 16px;
    line-height: 1.55;
    color: var(--lc-ink-soft);
    max-width: 60ch;
}

.lc-validation__count {
    margin: 6px 0 14px;
    color: var(--lc-ink-quiet);
    font-size: 14.5px;
}

.lc-validation__count strong {
    font-family: var(--lc-serif);
    color: var(--lc-ink);
    font-size: 17px;
    font-weight: 600;
}

.lc-validation__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

/* ---- 6. Résumé sticky « la constellation » ------------------------------- */

.lc-summary {
    position: sticky;
    bottom: 12px;
    z-index: 10;
    margin: 22px auto 0;
    max-width: 1080px;
    padding: 0 0;
    transition: transform 0.35s var(--lc-ease), opacity 0.35s var(--lc-ease);
}

.lc-summary.is-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.lc-summary__inner {
    background: rgba(31, 27, 23, 0.96);
    color: var(--lc-ivory-soft);
    border-radius: var(--lc-radius);
    padding: 14px 18px;
    box-shadow: 0 18px 38px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.04) inset;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr auto;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lc-summary__lead { min-width: 0; }

.lc-summary__label {
    margin: 0 0 4px;
    font-family: var(--lc-serif);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 252, 245, 0.55);
}

.lc-summary__chosen {
    margin: 0;
    font-family: var(--lc-serif);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.lc-summary__placeholder {
    color: rgba(255, 252, 245, 0.55);
    font-style: italic;
    font-weight: 400;
    font-size: 15px;
}

.lc-summary__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    text-align: right;
}

.lc-summary__count {
    margin: 0;
    font-size: 13.5px;
    color: rgba(255, 252, 245, 0.70);
    line-height: 1.3;
}

.lc-summary__count strong {
    color: var(--lc-ivory-soft);
    font-weight: 600;
    font-family: var(--lc-serif);
    font-size: 16px;
}

.lc-summary__count-empty {
    color: rgba(255, 252, 245, 0.55);
    font-style: italic;
}

.lc-summary__actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lc-btn-mini {
    appearance: none;
    cursor: pointer;
    background: rgba(255, 252, 245, 0.06);
    color: rgba(255, 252, 245, 0.85);
    border: 1px solid rgba(255, 252, 245, 0.14);
    padding: 6px 11px;
    border-radius: 999px;
    font: inherit;
    font-size: 12.5px;
    transition: background 0.2s var(--lc-ease), color 0.2s var(--lc-ease), border-color 0.2s var(--lc-ease), transform 0.16s var(--lc-ease);
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.lc-btn-mini:hover {
    background: rgba(255, 252, 245, 0.14);
    color: var(--lc-ivory-soft);
    border-color: rgba(255, 252, 245, 0.30);
    transform: translateY(-1px);
}

.lc-btn-mini--clear:hover { background: rgba(177, 74, 107, 0.20); border-color: rgba(177, 74, 107, 0.35); }

.lc-btn-mini--read {
    background: var(--lc-ivory-soft);
    color: var(--lc-ink);
    border-color: var(--lc-ivory-soft);
    font-weight: 500;
}

.lc-btn-mini--read:hover {
    background: #fff;
    color: var(--lc-ink);
    border-color: #fff;
}

/* ---- 7. Résultats : sélection de poèmes ---------------------------------- */

.lc-results { margin-top: 30px; }

.lc-results__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--lc-rule);
}

.lc-results__title {
    margin: 0;
    font-family: var(--lc-serif);
    font-weight: 500;
    font-size: 26px;
    color: var(--lc-ink);
    letter-spacing: -0.005em;
}

.lc-results__meta {
    margin: 0;
    color: var(--lc-ink-quiet);
    font-size: 13.5px;
    font-style: italic;
}

.lc-relaxed {
    margin: 0 0 18px;
    padding: 12px 16px;
    border-left: 3px solid var(--lc-accent);
    background: var(--lc-accent-soft);
    border-radius: var(--lc-radius-sm);
    color: var(--lc-ink-soft);
    font-size: 14.5px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.lc-relaxed[hidden] { display: none; }

.lc-relaxed__icon {
    color: var(--lc-accent-deep);
    font-size: 16px;
    margin-top: 1px;
}

.lc-poems {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.lc-poem-item {
    --reveal-delay: calc(var(--lc-stagger, 0) * 60ms);
    opacity: 0;
    transform: translateY(8px);
    animation: lc-poem-emerge 0.7s var(--lc-ease-out) var(--reveal-delay) forwards;
}

@keyframes lc-poem-emerge {
    to { opacity: 1; transform: none; }
}

.lc-poem {
    background: rgba(255,255,255,0.62);
    border: 1px solid var(--lc-rule);
    border-radius: var(--lc-radius);
    padding: 22px 22px 18px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.05);
    transition: border-color 0.25s var(--lc-ease), box-shadow 0.25s var(--lc-ease), transform 0.25s var(--lc-ease);
    display: grid;
    gap: 12px;
}

.lc-poem:hover {
    border-color: var(--lc-rule-strong);
    box-shadow: 0 16px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.lc-poem--feature {
    background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.55));
    border-color: rgba(0,0,0,0.10);
}

.lc-poem__head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
}

.lc-poem__index {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--lc-accent-soft);
    background: rgba(255,255,255,0.55);
    color: var(--lc-accent-deep);
    font-family: var(--lc-serif);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lc-poem__meta { min-width: 0; }

.lc-poem__title {
    margin: 0 0 2px;
    font-family: var(--lc-serif);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.005em;
}

.lc-poem--feature .lc-poem__title { font-size: 26px; }

.lc-poem__title-link {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(var(--lc-accent), var(--lc-accent));
    background-size: 0 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.35s var(--lc-ease);
}

.lc-poem__title-link:hover { background-size: 100% 1px; }

.lc-poem__author {
    margin: 0;
    color: var(--lc-ink-quiet);
    font-size: 14px;
    font-style: italic;
}

.lc-poem__author-prefix { font-style: normal; color: var(--lc-muted); }

.lc-poem__author-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.18s var(--lc-ease);
}
.lc-poem__author-link:hover { border-color: var(--lc-rule-strong); }

.lc-poem__author-dates {
    color: var(--lc-muted);
    font-style: normal;
    font-family: var(--lc-mono);
    font-size: 12px;
    margin-left: 4px;
}

.lc-poem__voice {
    align-self: center;
    font-family: var(--lc-serif);
    font-size: 11.5px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--lc-rule-strong);
    color: var(--lc-ink-soft);
    background: rgba(255,255,255,0.45);
    white-space: nowrap;
}

.lc-poem__voice--discret {
    color: var(--lc-accent-deep);
    border-color: var(--lc-accent-soft);
    background: var(--lc-accent-soft);
}

.lc-poem__verses {
    margin: 0;
    padding: 0;
    color: var(--lc-ink-soft);
    font-style: italic;
    font-family: var(--lc-serif);
    font-size: 17px;
    line-height: 1.55;
    display: grid;
    gap: 2px;
    border-left: 2px solid var(--lc-accent-soft);
    padding-left: 14px;
}

.lc-poem--feature .lc-poem__verses { font-size: 19px; }

.lc-poem__quote-mark { color: var(--lc-muted); font-style: normal; }

.lc-poem__excerpt {
    margin: 0;
    color: var(--lc-ink-soft);
    font-style: italic;
    border-left: 2px solid var(--lc-accent-soft);
    padding-left: 14px;
    font-size: 15.5px;
}

.lc-poem__tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lc-poem__tag {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--lc-rule);
    background: rgba(255,255,255,0.55);
    color: var(--lc-ink-quiet);
    line-height: 1.5;
    letter-spacing: 0.005em;
}

.lc-poem__tag--theme  { color: var(--lc-accent-deep); border-color: var(--lc-accent-soft); background: var(--lc-accent-soft); }
.lc-poem__tag--form   { font-style: italic; }
.lc-poem__tag--length { font-family: var(--lc-mono); font-size: 11px; letter-spacing: 0.02em; }

.lc-poem__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding-top: 6px;
}

.lc-poem__cta {
    text-decoration: none;
    color: var(--lc-ink);
    border: 1px solid var(--lc-ink);
    padding: 9px 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    transition: background 0.22s var(--lc-ease), color 0.22s var(--lc-ease), transform 0.16s var(--lc-ease);
}

.lc-poem__cta:hover {
    background: var(--lc-ink);
    color: var(--lc-ivory-soft);
    transform: translateY(-1px);
}

.lc-poem__cta-arrow { display: inline-block; transition: transform 0.25s var(--lc-ease); }
.lc-poem__cta:hover .lc-poem__cta-arrow { transform: translateX(2px); }

.lc-poem__similar {
    color: var(--lc-ink-quiet);
    font-size: 13px;
    text-decoration: none;
    font-style: italic;
    margin-left: auto;
    border-bottom: 1px solid transparent;
    transition: color 0.22s var(--lc-ease), border-color 0.22s var(--lc-ease);
}

.lc-poem__similar:hover {
    color: var(--lc-accent-deep);
    border-color: var(--lc-accent-soft);
}

/* État vide */
.lc-empty {
    list-style: none;
    border: 1px dashed var(--lc-rule-strong);
    border-radius: var(--lc-radius);
    padding: 28px 22px;
    background: rgba(255,255,255,0.45);
    text-align: center;
}

.lc-empty__line {
    margin: 0 auto 6px;
    font-family: var(--lc-serif);
    font-size: 19px;
    color: var(--lc-ink);
    max-width: 36ch;
}

.lc-empty__hint {
    margin: 0 auto 16px;
    color: var(--lc-ink-quiet);
    max-width: 40ch;
    font-size: 14.5px;
}

.lc-empty__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* ---- 8. Découverte : actions secondaires --------------------------------- */

.lc-discover {
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid var(--lc-rule);
}

.lc-discover__title {
    margin: 0 0 18px;
    font-family: var(--lc-serif);
    font-weight: 500;
    font-size: 22px;
    color: var(--lc-ink);
    text-align: center;
    letter-spacing: -0.005em;
}

.lc-discover__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.lc-discover__card {
    appearance: none;
    cursor: pointer;
    background: var(--lc-paper);
    border: 1px solid var(--lc-rule);
    border-radius: var(--lc-radius);
    padding: 18px 18px 16px;
    text-align: left;
    font: inherit;
    color: var(--lc-ink);
    display: grid;
    gap: 6px;
    transition: border-color 0.25s var(--lc-ease), background 0.25s var(--lc-ease), transform 0.18s var(--lc-ease), box-shadow 0.25s var(--lc-ease);
}

.lc-discover__card:hover {
    transform: translateY(-2px);
    border-color: var(--lc-rule-strong);
    background: rgba(255,255,255,0.85);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.lc-discover__card-symbol {
    font-size: 18px;
    color: var(--lc-accent);
    line-height: 1;
}

.lc-discover__card-title {
    font-family: var(--lc-serif);
    font-weight: 500;
    font-size: 17px;
    line-height: 1.25;
    margin-top: 4px;
}

.lc-discover__card-desc {
    color: var(--lc-ink-quiet);
    font-size: 13.5px;
    line-height: 1.5;
}

/* ---- 9. Reveal-on-scroll & swap ---------------------------------------- */

[data-lc-reveal] {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.7s var(--lc-ease), transform 0.7s var(--lc-ease);
    will-change: opacity, transform;
}

[data-lc-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.lc-poems.is-swapping {
    opacity: 0.30;
    filter: blur(1.5px);
    transition: opacity 0.22s var(--lc-ease), filter 0.22s var(--lc-ease);
}

.lc-summary.is-pulsing .lc-summary__inner {
    animation: lc-summary-pulse 0.6s var(--lc-ease);
}

@keyframes lc-summary-pulse {
    0%   { box-shadow: 0 18px 38px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.04) inset, 0 0 0 0 var(--lc-accent-glow); }
    50%  { box-shadow: 0 18px 38px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.10) inset, 0 0 0 6px var(--lc-accent-glow); }
    100% { box-shadow: 0 18px 38px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.04) inset, 0 0 0 0 transparent; }
}

/* ---- 11. Responsive ------------------------------------------------------ */

@media (min-width: 720px) {
    .lc-page { padding: 70px 28px calc(var(--lc-summary-h) + 70px); }
    .lc-step { padding: 26px 26px 22px; }
    .lc-poem { padding: 26px 26px 22px; }
    .lc-summary__inner { padding: 16px 22px; }
    .lc-poem__voice { font-size: 11px; }
}

@media (min-width: 980px) {
    .lc-summary__inner {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
    .lc-summary__chosen { font-size: 18px; }
}

@media (max-width: 719px) {
    .lc-page { padding: 36px 14px calc(var(--lc-summary-h) + 36px); }
    .lc-hero { padding: 16px 0 18px; }
    .lc-hero__lede { font-size: 15.5px; }

    /* Doorway : empile en plein largeur, mais on garde les 3 colonnes très étroites pour les écrans
       tablette ; sur mobile vrai (≤620), grille en 1 colonne. */
    .lc-doorway__grid { grid-template-columns: 1fr; gap: 10px; }
    .lc-doorway__grid--tarot { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .lc-doorway__card:not(.lc-doorway__card--tarot) { padding: 18px 16px; gap: 6px; }
    .lc-doorway__card--tarot { padding: 6px; }
    .lc-doorway__card-frame { max-width: none; }
    .lc-doorway__card-glyph { width: 44px; height: 44px; font-size: 22px; }
    .lc-doorway__card-title { font-size: 17px; }
    .lc-doorway__card-desc { font-size: 13px; }

    .lc-validation { padding: 20px 18px; }

    .lc-step { padding: 18px 16px 14px; }
    .lc-step__title { font-size: 19px; }
    .lc-step__hint { font-size: 13px; }
    .lc-step__num { width: 32px; height: 32px; font-size: 12.5px; }

    /* Mobile : chips en scroll horizontal pour les listes courtes (thèmes, périodes, formes, longueurs) */
    .lc-chips--themes,
    .lc-chips--periods,
    .lc-chips--forms,
    .lc-chips--lengths {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        margin: 0 -16px;
        padding: 4px 16px 14px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
        mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
    }

    .lc-chips--themes > li,
    .lc-chips--periods > li,
    .lc-chips--forms > li,
    .lc-chips--lengths > li { scroll-snap-align: start; flex-shrink: 0; }

    /* Les mouvements (avec gloses) doivent rester en wrap : chaque chip est large */
    .lc-chips--glosses .lc-chip { width: 100%; }
    .lc-chips--glosses { flex-direction: column; gap: 6px; }

    .lc-poem { padding: 18px 16px 14px; }
    .lc-poem__head { grid-template-columns: auto 1fr; gap: 12px; }
    .lc-poem__voice { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
    .lc-poem__title { font-size: 19px; }
    .lc-poem--feature .lc-poem__title { font-size: 22px; }
    .lc-poem__verses { font-size: 16px; }
    .lc-poem--feature .lc-poem__verses { font-size: 17px; }

    .lc-summary {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        margin: 0;
        z-index: 30;
    }
    .lc-summary__inner {
        padding: 12px 14px;
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .lc-summary__meta {
        align-items: stretch;
        text-align: left;
    }
    .lc-summary__actions { justify-content: flex-start; }
    .lc-summary__chosen { font-size: 15.5px; -webkit-line-clamp: 2; line-clamp: 2; }

    .lc-poem__similar { margin-left: 0; }
    .lc-poem__footer { gap: 10px; }
}

/* ---- 12. Accessibilité : reduce motion --------------------------------- */

@media (prefers-reduced-motion: reduce) {
    [data-lc-reveal] { opacity: 1; transform: none; transition: none; }
    .lc-poems.is-swapping { opacity: 1; filter: none; transition: none; }
    .lc-poem-item { opacity: 1; transform: none; animation: none; }
    .lc-star { animation: none; }
    .lc-chip, .lc-cta, .lc-poem__cta, .lc-btn-mini, .lc-preset, .lc-discover__card { transition: none; }
    .lc-summary.is-pulsing .lc-summary__inner { animation: none; }
}

/* ---- 13. Initial state : avant le premier choix, on garde l'esprit ------ */

.lc-page--initial .lc-summary__inner { background: rgba(31, 27, 23, 0.88); }
.lc-page--initial .lc-results__title { color: var(--lc-ink-soft); }

/* Petite finition : surélever le texte sticky face à la safe-area iOS */
@supports (padding: env(safe-area-inset-bottom)) {
    @media (max-width: 719px) {
        .lc-summary { bottom: calc(12px + env(safe-area-inset-bottom)); }
    }
}

/* =============================================================================
   ---- 14. WIZARD : composer pas à pas, dans une carte focalisée -----------
   ============================================================================ */

.lc-wizard {
    margin-top: 30px;
    padding: 26px 26px 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,252,245,0.74));
    border: 1px solid var(--lc-rule);
    border-radius: var(--lc-radius-lg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.07), 0 0 0 1px rgba(255,255,255,0.4) inset;
    position: relative;
    overflow: hidden;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.lc-wizard__panel.lc-doorway--step {
    margin: 0;
    padding: 0 0 10px;
}

.lc-wizard__panel.lc-doorway.lc-doorway--step {
    margin-top: 0;
}

.lc-wizard--on-intro .lc-viz {
    opacity: 0.38;
    transition: opacity 0.35s var(--lc-ease);
}

.lc-wizard::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, var(--lc-accent-soft), transparent 55%),
        radial-gradient(circle at 90% 100%, var(--lc-accent-soft), transparent 50%);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.lc-wizard > * { position: relative; z-index: 1; }

.lc-wizard__head {
    text-align: center;
    margin-bottom: 22px;
}

.lc-wizard__progress {
    margin: 0 auto 14px;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: var(--lc-ink-quiet);
    font-family: var(--lc-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lc-wizard__progress-step {
    color: var(--lc-accent-deep);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s var(--lc-ease);
}

.lc-wizard__progress-label {
    margin-left: 12px;
    color: var(--lc-ink);
    font-family: var(--lc-serif);
    font-size: 13px;
    font-style: italic;
    letter-spacing: 0.04em;
    text-transform: none;
}

/* ---- Visualisation de la constellation : 2 étoiles (émotion ↔ durée) ---- */

.lc-viz {
    margin: 4px auto 18px;
    width: 100%;
    max-width: 360px;
    line-height: 0;
}

.lc-viz--pair,
.lc-viz--triple {
    max-width: 280px;
}

.lc-viz svg { width: 100%; height: auto; max-height: 64px; overflow: visible; }

.lc-viz__line {
    stroke: var(--lc-rule-strong);
    stroke-width: 1.5;
    stroke-dasharray: 4 4;
    transition: stroke 0.5s var(--lc-ease), stroke-dasharray 0.5s var(--lc-ease);
}

.lc-viz__line.is-lit {
    stroke: var(--lc-accent);
    stroke-dasharray: 60 60;
    stroke-dashoffset: 0;
    animation: lc-viz-line-draw 0.6s var(--lc-ease-out) both;
}

@keyframes lc-viz-line-draw {
    from { stroke-dashoffset: 60; opacity: 0.4; }
    to   { stroke-dashoffset: 0;  opacity: 1;   }
}

.lc-viz__star circle {
    fill: rgba(255,255,255,0.85);
    stroke: var(--lc-rule-strong);
    stroke-width: 1.5;
    transition: fill 0.4s var(--lc-ease), stroke 0.4s var(--lc-ease), r 0.4s var(--lc-ease);
}

.lc-viz__star text {
    font-family: var(--lc-serif);
    font-size: 12px;
    fill: var(--lc-rule-strong);
    transition: fill 0.4s var(--lc-ease);
}

.lc-viz__star.is-current circle {
    stroke: var(--lc-accent);
    stroke-width: 2;
    r: 11;
    animation: lc-viz-pulse 1.6s var(--lc-ease) infinite;
}

@keyframes lc-viz-pulse {
    0%, 100% { filter: drop-shadow(0 0 0 var(--lc-accent-glow)); }
    50%      { filter: drop-shadow(0 0 8px var(--lc-accent-glow)); }
}

.lc-viz__star.is-lit circle {
    fill: var(--lc-accent);
    stroke: var(--lc-accent-deep);
}

.lc-viz__star.is-lit text {
    fill: var(--lc-ivory-soft);
}

.lc-viz__star.is-skipped circle {
    fill: rgba(255,255,255,0.55);
    stroke: var(--lc-rule);
    stroke-dasharray: 2 3;
}

/* Petite étoile de feedback quand on coche une chip — éphémère */
.lc-viz__spark {
    fill: var(--lc-accent);
    opacity: 0;
    transform-origin: center;
}

.lc-viz__spark.is-firing {
    animation: lc-viz-spark 0.7s var(--lc-ease-out);
}

@keyframes lc-viz-spark {
    0%   { opacity: 0; transform: scale(0.4); }
    35%  { opacity: 1; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(2.6); }
}

.lc-wizard__title {
    margin: 0 0 8px;
    font-family: var(--lc-serif);
    font-weight: 500;
    font-size: clamp(24px, 3.4vw, 32px);
    line-height: 1.18;
    letter-spacing: -0.005em;
    color: var(--lc-ink);
    transition: opacity 0.4s var(--lc-ease);
}

.lc-wizard__hint {
    margin: 0 auto;
    color: var(--lc-ink-quiet);
    font-size: 14.5px;
    line-height: 1.55;
    max-width: 56ch;
    transition: opacity 0.4s var(--lc-ease);
}

/* ---- Viewport : panels en pile, un seul actif à la fois ---- */

.lc-wizard__viewport {
    position: relative;
    min-height: 220px;
    display: grid; /* astuce : permet à .is-active de définir la hauteur ; les inactifs sont absolus */
}

.lc-wizard__panel {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateX(36px);
    transition: opacity 0.42s var(--lc-ease), transform 0.5s var(--lc-ease);
    pointer-events: none;
    will-change: opacity, transform;
}

.lc-wizard__panel.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.lc-wizard__panel.is-leaving-right {
    opacity: 0;
    transform: translateX(-36px);
    transition: opacity 0.32s var(--lc-ease), transform 0.4s var(--lc-ease);
}

.lc-wizard__panel.is-leaving-left {
    opacity: 0;
    transform: translateX(36px);
    transition: opacity 0.32s var(--lc-ease), transform 0.4s var(--lc-ease);
}

.lc-wizard__panel.is-entering-left {
    opacity: 0;
    transform: translateX(-36px);
}

/* À l'intérieur d'un panel : on aligne les chips au centre pour donner du calme */
.lc-wizard__panel .lc-chips {
    justify-content: center;
}

.lc-wizard__panel-actions {
    margin-top: 16px;
    text-align: center;
}

/* ---- Footer du wizard ---- */

.lc-wizard__nav {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--lc-rule);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
}

.lc-wizard__btn {
    appearance: none;
    cursor: pointer;
    background: rgba(255,255,255,0.55);
    color: var(--lc-ink);
    border: 1px solid var(--lc-rule-strong);
    border-radius: 999px;
    padding: 10px 18px;
    font: inherit;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.16s var(--lc-ease), background 0.22s var(--lc-ease), border-color 0.22s var(--lc-ease), color 0.22s var(--lc-ease), opacity 0.22s var(--lc-ease);
}

.lc-wizard__btn:hover { transform: translateY(-1px); background: rgba(255,255,255,0.85); }

.lc-wizard__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.lc-wizard__btn--prev { justify-self: start; }
.lc-wizard__btn--next {
    justify-self: end;
    background: var(--lc-ink);
    color: var(--lc-ivory-soft);
    border-color: var(--lc-ink);
}

.lc-wizard__btn--next:hover { background: #000; border-color: #000; }

.lc-wizard__btn--skip {
    justify-self: center;
    background: transparent;
    border-style: dashed;
    color: var(--lc-ink-quiet);
    font-style: italic;
    border-color: var(--lc-rule);
}

.lc-wizard__btn--skip:hover { color: var(--lc-ink); border-color: var(--lc-rule-strong); }

/* =============================================================================
   ---- 15. REVEAL : la constellation est composée, on la nomme ----------
   ============================================================================ */

.lc-reveal {
    text-align: center;
    padding: 18px 8px;
    display: grid;
    gap: 6px;
    justify-items: center;
}

.lc-reveal__kicker {
    margin: 0;
    color: var(--lc-ink-quiet);
    font-family: var(--lc-serif);
    font-style: italic;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.lc-reveal__name {
    margin: 4px 0 4px;
    font-family: var(--lc-serif);
    font-weight: 500;
    font-size: clamp(28px, 4.8vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--lc-ink);
    max-width: 22ch;
    /* Gradient ink → accent pour la mise en valeur */
    background: linear-gradient(120deg, var(--lc-ink) 0%, var(--lc-ink) 40%, var(--lc-accent-deep) 70%, var(--lc-ink) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: lc-reveal-name-shimmer 4s var(--lc-ease) infinite;
}

@keyframes lc-reveal-name-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.lc-reveal__rarity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 4px;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid var(--lc-accent-soft);
    background: var(--lc-accent-soft);
    color: var(--lc-accent-deep);
    font-family: var(--lc-mono);
    font-size: 11.5px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.lc-reveal__rarity-dot { font-size: 12px; line-height: 1; }

.lc-reveal[data-rarity="legendaire"] .lc-reveal__rarity {
    background: var(--lc-ink);
    color: var(--lc-ivory-soft);
    border-color: var(--lc-ink);
}

.lc-reveal__chosen {
    margin: 4px 0 0;
    color: var(--lc-ink-soft);
    font-family: var(--lc-serif);
    font-size: 16px;
    line-height: 1.4;
    max-width: 46ch;
}

.lc-reveal__count {
    margin: 4px 0 18px;
    color: var(--lc-ink);
    font-size: 15px;
}

.lc-reveal__count strong {
    font-family: var(--lc-serif);
    font-weight: 600;
    font-size: 19px;
    color: var(--lc-accent-deep);
}

.lc-reveal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 4px;
}

/* Pluie d'étoiles éphémère lors de la révélation */
.lc-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.lc-confetti__star {
    position: absolute;
    top: -10%;
    width: 6px;
    height: 6px;
    color: var(--lc-accent);
    font-size: 10px;
    line-height: 1;
    opacity: 0;
    animation: lc-confetti-fall 1.8s var(--lc-ease-out) forwards;
}

@keyframes lc-confetti-fall {
    0%   { opacity: 0; transform: translateY(0) rotate(0deg) scale(0.6); }
    20%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(420px) rotate(360deg) scale(1.1); }
}

/* =============================================================================
   ---- 16. POEM CARDS : bouton « ouvrir dans le drawer » et CTA Lire ici ----
   ============================================================================ */

.lc-poem { position: relative; }

.lc-poem__open {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    cursor: pointer;
    background: rgba(255,255,255,0.55);
    border: 1px solid var(--lc-rule);
    border-radius: 999px;
    color: var(--lc-ink-quiet);
    font: inherit;
    font-size: 13px;
    transition: background 0.22s var(--lc-ease), color 0.22s var(--lc-ease), transform 0.16s var(--lc-ease), border-color 0.22s var(--lc-ease);
    z-index: 2;
}

.lc-poem__open:hover {
    background: var(--lc-ink);
    color: var(--lc-ivory-soft);
    border-color: var(--lc-ink);
    transform: rotate(45deg);
}

.lc-poem__open-icon { line-height: 1; transition: transform 0.25s var(--lc-ease); }

.lc-poem__cta {
    appearance: none;
    cursor: pointer;
    font: inherit;
    background: var(--lc-ink);
    color: var(--lc-ivory-soft);
    border-color: var(--lc-ink);
}

.lc-poem__cta:hover {
    background: #000;
    color: var(--lc-ivory-soft);
}

/* =============================================================================
   ---- 17. LOOP : recomposer pour boucler la découverte ---------------------
   ============================================================================ */

.lc-loop {
    margin: 26px auto 0;
    padding: 22px 24px;
    max-width: 760px;
    border: 1px dashed var(--lc-rule-strong);
    border-radius: var(--lc-radius);
    background:
        radial-gradient(circle at 80% 50%, var(--lc-accent-soft), transparent 60%),
        rgba(255,255,255,0.42);
    text-align: center;
}

.lc-loop__line {
    margin: 0 0 12px;
    color: var(--lc-ink-soft);
    font-family: var(--lc-serif);
    font-size: 16.5px;
    line-height: 1.5;
}

.lc-loop__line strong {
    color: var(--lc-accent-deep);
    font-weight: 500;
}

.lc-loop__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================================================
   ---- 18. TOAST : feedback gamification (achievements, succès) -------------
   ============================================================================ */

.lc-toast {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translate(-50%, -20px);
    z-index: 60;
    background: var(--lc-ink);
    color: var(--lc-ivory-soft);
    padding: 12px 20px;
    border-radius: 999px;
    font-family: var(--lc-serif);
    font-size: 14.5px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.20);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s var(--lc-ease), transform 0.32s var(--lc-ease);
}

.lc-toast[hidden] { display: none !important; }

.lc-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.lc-toast__glyph {
    color: var(--lc-accent);
    font-size: 16px;
}

/* =============================================================================
   ---- 19. DRAWER : reading overlay, glisse depuis le bas ------------------
   ============================================================================ */

.lc-drawer {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    grid-template-rows: 1fr;
    align-items: end;
    pointer-events: none;
}

.lc-drawer[hidden] { display: none; }

.lc-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 12, 10, 0.55);
    opacity: 0;
    transition: opacity 0.35s var(--lc-ease);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: auto;
}

.lc-drawer__panel {
    position: relative;
    background: var(--lc-ivory);
    color: var(--lc-ink);
    border-radius: var(--lc-radius-lg) var(--lc-radius-lg) 0 0;
    max-width: 880px;
    width: 100%;
    margin: 0 auto;
    height: min(92vh, 920px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    box-shadow: 0 -30px 80px rgba(0,0,0,0.30);
    transform: translateY(100%);
    transition: transform 0.42s var(--lc-ease-out);
    pointer-events: auto;
    overflow: hidden;
    border: 1px solid var(--lc-rule);
    border-bottom: none;
}

.lc-drawer.is-open .lc-drawer__backdrop { opacity: 1; }
.lc-drawer.is-open .lc-drawer__panel    { transform: translateY(0); }

.lc-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    border-bottom: 1px solid var(--lc-rule);
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lc-drawer__pos {
    margin: 0;
    color: var(--lc-ink-quiet);
    font-size: 13px;
    line-height: 1.3;
    display: grid;
    gap: 1px;
}

.lc-drawer__pos-kicker {
    font-family: var(--lc-serif);
    font-style: italic;
    font-size: 12px;
    color: var(--lc-muted);
    letter-spacing: 0.04em;
}

.lc-drawer__pos-num {
    font-family: var(--lc-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--lc-ink-soft);
}

.lc-drawer__close {
    appearance: none;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--lc-rule-strong);
    background: rgba(255,255,255,0.55);
    color: var(--lc-ink);
    font-size: 18px;
    line-height: 1;
    transition: background 0.22s var(--lc-ease), color 0.22s var(--lc-ease), transform 0.18s var(--lc-ease);
}

.lc-drawer__close:hover { background: var(--lc-ink); color: var(--lc-ivory-soft); transform: rotate(90deg); }

.lc-drawer__content {
    overflow-y: auto;
    padding: 32px 32px 28px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Style éditorial du poème dans le drawer */
.lc-drawer__poem-title {
    margin: 0 0 4px;
    font-family: var(--lc-serif);
    font-weight: 500;
    font-size: clamp(28px, 4.4vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--lc-ink);
}

.lc-drawer__poem-author {
    margin: 0 0 18px;
    color: var(--lc-ink-quiet);
    font-family: var(--lc-serif);
    font-style: italic;
    font-size: 16px;
}

.lc-drawer__poem-author a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--lc-rule-strong);
}

.lc-drawer__poem-author a:hover { border-color: var(--lc-accent); color: var(--lc-accent-deep); }

.lc-drawer__poem-tags {
    margin: 0 0 26px;
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lc-drawer__poem-tags .lc-poem__tag { background: rgba(255,255,255,0.85); }

.lc-drawer__poem-body {
    margin: 0 0 8px;
    font-family: var(--lc-serif);
    font-size: clamp(17px, 2.1vw, 19px);
    line-height: 1.8;
    color: var(--lc-ink);
    white-space: pre-wrap;
    border-left: 2px solid var(--lc-accent-soft);
    padding-left: 18px;
}

.lc-drawer__poem-empty {
    margin: 18px 0;
    color: var(--lc-ink-quiet);
    font-style: italic;
}

.lc-drawer__nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    padding: 14px 22px;
    border-top: 1px solid var(--lc-rule);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lc-drawer__btn {
    appearance: none;
    cursor: pointer;
    background: rgba(255,255,255,0.55);
    border: 1px solid var(--lc-rule-strong);
    color: var(--lc-ink);
    border-radius: 999px;
    padding: 10px 16px;
    font: inherit;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.22s var(--lc-ease), color 0.22s var(--lc-ease), transform 0.16s var(--lc-ease), border-color 0.22s var(--lc-ease);
}

.lc-drawer__btn:hover { transform: translateY(-1px); background: rgba(255,255,255,0.85); }
.lc-drawer__btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

.lc-drawer__btn--prev { justify-self: start; }
.lc-drawer__btn--next {
    justify-self: end;
    background: var(--lc-ink);
    color: var(--lc-ivory-soft);
    border-color: var(--lc-ink);
}
.lc-drawer__btn--next:hover { background: #000; }
.lc-drawer__btn--full {
    justify-self: center;
    color: var(--lc-accent-deep);
    border-style: dashed;
}

/* Verrou du scroll du body quand le drawer est ouvert */
body.lc-drawer-open {
    overflow: hidden;
}

/* Animation d'entrée du poème dans le drawer */
.lc-drawer__content.is-poem-changing {
    opacity: 0.4;
    transform: translateY(6px);
    transition: opacity 0.18s var(--lc-ease), transform 0.18s var(--lc-ease);
}

/* =============================================================================
   ---- 20. RESPONSIVE — wizard + drawer + reveal sur mobile ----------------
   ============================================================================ */

@media (max-width: 719px) {
    .lc-wizard { padding: 20px 16px 16px; border-radius: var(--lc-radius); }
    .lc-wizard__title { font-size: 22px; }
    .lc-wizard__hint  { font-size: 13.5px; }
    .lc-wizard__viewport { min-height: 200px; }
    .lc-wizard__nav { grid-template-columns: 1fr 1fr; gap: 8px; }
    .lc-wizard__btn { padding: 9px 14px; font-size: 13.5px; }
    .lc-wizard__btn--skip { grid-column: 1 / -1; order: -1; justify-self: stretch; }

    .lc-viz { max-width: 280px; }
    .lc-viz svg { max-height: 56px; }

    .lc-poem__open { top: 10px; right: 10px; width: 28px; height: 28px; font-size: 12px; }

    .lc-drawer__panel {
        height: 92vh;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
    }
    .lc-drawer__content { padding: 22px 18px 22px; }
    .lc-drawer__head, .lc-drawer__nav { padding: 12px 16px; }
    .lc-drawer__btn-label { display: none; }
    .lc-drawer__btn--full .lc-drawer__btn-label { display: inline; }

    .lc-loop { padding: 18px 18px; margin-top: 22px; }
    .lc-loop__line { font-size: 15px; }

    .lc-toast { font-size: 13.5px; padding: 10px 16px; }
}

/* =============================================================================
   ---- 21. REDUCED MOTION : tout reste lisible, sans bouger ----------------
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    .lc-wizard__panel { transition: none; }
    .lc-wizard__panel:not(.is-active) { display: none; }
    .lc-viz__line.is-lit { animation: none; }
    .lc-viz__star.is-current circle { animation: none; }
    .lc-viz__spark.is-firing { animation: none; opacity: 0; }
    .lc-reveal__name { animation: none; }
    .lc-confetti__star { animation: none; opacity: 0; }
    .lc-drawer__panel { transition: none; }
    .lc-drawer__backdrop { transition: none; }
    .lc-toast { transition: none; }
    .lc-poem__open:hover { transform: none; }
    .lc-drawer__close:hover { transform: none; }
}

/* =============================================================================
   ---- 22. LE TIRAGE : carte du jour (flip), ciel (collection), spread ------
   ============================================================================ */

.lt-page { min-height: 100vh; }

.lt-tirage,
.lt-ciel,
.lt-spread-invite {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

/* ---- Le tirage : étape rituelle ---- */

.lt-tirage {
    text-align: center;
    margin-top: 8px;
    padding: 8px 0 12px;
}

.lt-tirage__day {
    margin: 0 0 18px;
    font-family: var(--lc-serif);
    font-style: italic;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: var(--lc-ink-quiet);
    text-transform: capitalize;
}

html:not(.day-mode) .lt-tirage__day { color: rgba(231, 231, 231, 0.7); }

.lt-tirage__stage {
    display: grid;
    justify-items: center;
    gap: 18px;
    perspective: 1600px;
}

/* ---- Les trois cartes à choisir (face cachée) ---- */

.lt-tirage__choices {
    display: none;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(6px, 2.5vw, 24px);
    min-height: clamp(260px, 60vw, 360px);
    padding-top: 12px;
}

.lt-tirage.is-ritual:not(.is-revealed) .lt-tirage__choices { display: flex; }

.lt-tirage__choice {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    width: clamp(118px, 27vw, 184px);
    aspect-ratio: 28 / 43;
    border-radius: 16px;
    /* éventail : carte gauche / centre / droite */
    transform: rotate(calc((var(--lt-i) - 1) * 7deg));
    transition: transform 0.5s var(--lc-ease), filter 0.5s var(--lc-ease), opacity 0.5s var(--lc-ease);
    will-change: transform;
}

/* la carte du centre se détache légèrement */
.lt-tirage__choice[data-lt-choice="1"] { transform: translateY(-16px); }

.lt-tirage__choice:hover,
.lt-tirage__choice:focus-visible {
    transform: translateY(-24px) scale(1.05) rotate(0deg);
    outline: none;
    filter: drop-shadow(0 20px 32px rgba(0,0,0,0.34));
}

.lt-tirage__choice.is-chosen {
    transform: translateY(-30px) scale(1.14) rotate(0deg);
    z-index: 3;
    animation: lt-chosen-pulse 0.7s var(--lc-ease-out);
}

.lt-tirage__choice.is-dismissed {
    opacity: 0;
    transform: scale(0.78) translateY(28px);
    pointer-events: none;
}

@keyframes lt-chosen-pulse {
    0%   { transform: translateY(-22px) scale(1.05); }
    45%  { transform: translateY(-36px) scale(1.18); }
    100% { transform: translateY(-30px) scale(1.14); }
}

.lt-tirage__back {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--lc-rule-strong);
    box-shadow: 0 22px 50px rgba(0,0,0,0.24);
    background:
        radial-gradient(circle at 50% 36%, var(--lc-accent-glow), transparent 62%),
        linear-gradient(160deg, #1d1916, #2a241d);
    transition: box-shadow 0.45s var(--lc-ease), border-color 0.45s var(--lc-ease);
}

.lt-tirage__choice.is-chosen .lt-tirage__back {
    border-color: var(--lc-accent);
    box-shadow: 0 0 0 2px var(--lc-accent-soft), 0 28px 64px rgba(0,0,0,0.38), 0 0 44px var(--lc-accent-glow);
}

.lt-tirage__back-frame {
    position: relative;
    width: 64%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 252, 245, 0.22);
}

.lt-tirage__back-glyph {
    color: rgba(255, 252, 245, 0.85);
    font-size: clamp(26px, 7vw, 40px);
    line-height: 1;
}

.lt-tirage__back-ring {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 252, 245, 0.18);
}

/* ---- La carte révélée (héros) ---- */

.lt-tirage__hero {
    position: relative;
    display: inline-block;
    width: clamp(220px, 54vw, 320px);
}

.lt-tirage.is-ritual:not(.is-revealed) .lt-tirage__hero { display: none; }

.lt-tirage__hero-card {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 300 / 462;
    background: #14110e;
    border: 1px solid var(--lc-rule-strong);
    box-shadow: 0 28px 64px rgba(0,0,0,0.32), 0 0 0 1px var(--lc-accent-soft);
}

.lt-tirage.is-revealed .lt-tirage__hero-card {
    animation: lt-hero-emerge 0.85s var(--lc-ease-out);
}

.lt-tirage__hero .lt-tirage__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* halo qui respire derrière la carte */
.lt-tirage__hero-glow {
    position: absolute;
    inset: -18%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, var(--lc-accent-glow), transparent 66%);
    opacity: 0;
    pointer-events: none;
}

.lt-tirage.is-revealed .lt-tirage__hero-glow {
    opacity: 1;
    animation: lt-hero-breathe 4.6s ease-in-out infinite;
}

@keyframes lt-hero-emerge {
    0%   { opacity: 0; transform: translateY(16px) scale(0.9) rotateY(26deg); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: translateY(0) scale(1) rotateY(0); }
}

@keyframes lt-hero-breathe {
    0%, 100% { opacity: 0.5;  transform: scale(0.98); }
    50%      { opacity: 0.88; transform: scale(1.05); }
}

.lt-tirage__prompt {
    display: none;
    margin: 0 auto;
    max-width: 40ch;
    color: var(--lc-ink-quiet);
    font-family: var(--lc-serif);
    font-style: italic;
    font-size: 15px;
    line-height: 1.5;
}

.lt-tirage.is-ritual:not(.is-revealed) .lt-tirage__prompt { display: block; }

.lt-tirage__prompt strong { color: var(--lc-accent-deep); font-weight: 600; font-style: normal; }

html:not(.day-mode) .lt-tirage__prompt { color: rgba(231, 231, 231, 0.72); }
html:not(.day-mode) .lt-tirage__prompt strong { color: var(--lc-accent); }

/* Révélation de l'arcane */
.lt-tirage__reveal {
    margin: 22px auto 0;
    max-width: 52ch;
    animation: lc-validation-emerge 0.6s var(--lc-ease-out);
}

.lt-tirage__reveal[hidden] { display: none; }

.lt-tirage.is-ritual:not(.is-revealed) .lt-tirage__reveal { display: none; }

.lt-tirage__kicker {
    margin: 0 0 4px;
    font-family: var(--lc-mono);
    font-size: 11.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lc-accent-deep);
}

html:not(.day-mode) .lt-tirage__kicker { color: var(--lc-accent); }

.lt-tirage__name {
    margin: 0 0 10px;
    font-family: var(--lc-serif);
    font-weight: 500;
    font-size: clamp(26px, 4.4vw, 40px);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--lc-ink);
}

html:not(.day-mode) .lt-tirage__name { color: rgba(236, 236, 236, 0.98); }

.lt-tirage__message {
    margin: 0;
    font-family: var(--lc-serif);
    font-style: italic;
    font-size: clamp(16px, 2.2vw, 19px);
    line-height: 1.6;
    color: var(--lc-ink-soft);
}

html:not(.day-mode) .lt-tirage__message { color: rgba(231, 231, 231, 0.82); }

.lt-poem-section[hidden] { display: none; }

/* ---- Le ciel : série + collection d'arcanes ---- */

.lt-ciel {
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--lc-rule);
}

.lt-ciel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px 24px;
    margin-bottom: 20px;
}

.lt-ciel__title {
    margin: 0;
    font-family: var(--lc-serif);
    font-weight: 500;
    font-size: 24px;
    color: var(--lc-ink);
    letter-spacing: -0.005em;
}

html:not(.day-mode) .lt-ciel__title { color: rgba(236, 236, 236, 0.96); }

.lt-ciel__stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.lt-ciel__stat {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.lt-ciel__stat-num {
    font-family: var(--lc-serif);
    font-weight: 600;
    font-size: 20px;
    color: var(--lc-accent-deep);
}

html:not(.day-mode) .lt-ciel__stat-num { color: var(--lc-accent); }

.lt-ciel__stat-label {
    font-size: 13.5px;
    color: var(--lc-ink-quiet);
    letter-spacing: 0.02em;
}

html:not(.day-mode) .lt-ciel__stat-label { color: rgba(231, 231, 231, 0.66); }

/* Barre de progression de la collection */
.lt-ciel__progress {
    height: 6px;
    margin: 0 0 22px;
    border-radius: 999px;
    background: var(--lc-rule);
    overflow: hidden;
}

.lt-ciel__progress-bar {
    display: block;
    height: 100%;
    width: var(--lt-fill, 0%);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--lc-accent-soft), var(--lc-accent));
    transition: width 0.85s var(--lc-ease-out);
}

.lt-ciel__deck {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 10px;
}

.lt-ciel__slot {
    position: relative;
    text-align: center;
}

.lt-ciel__slot-frame {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--lc-rule);
    background: rgba(255,255,255,0.4);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.25s var(--lc-ease), box-shadow 0.25s var(--lc-ease), border-color 0.25s var(--lc-ease);
}

.lt-ciel__slot-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 28 / 43;
    object-fit: cover;
    filter: grayscale(1) brightness(0.6) contrast(0.9);
    opacity: 0.4;
    transition: filter 0.4s var(--lc-ease), opacity 0.4s var(--lc-ease);
}

.lt-ciel__slot.is-revealed .lt-ciel__slot-img {
    filter: none;
    opacity: 1;
}

.lt-ciel__slot.is-revealed .lt-ciel__slot-frame {
    border-color: var(--lc-accent-soft);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12), 0 0 0 1px var(--lc-accent-soft);
}

.lt-ciel__slot.is-revealed:hover .lt-ciel__slot-frame {
    transform: translateY(-2px);
}

.lt-ciel__slot-num {
    position: absolute;
    top: 4px;
    left: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: rgba(20, 17, 14, 0.78);
    color: rgba(255, 252, 245, 0.9);
    font-family: var(--lc-mono);
    font-size: 10px;
    line-height: 18px;
    letter-spacing: 0.02em;
}

.lt-ciel__slot.is-just-lit .lt-ciel__slot-frame {
    animation: lt-slot-lit 1.1s var(--lc-ease);
}

@keyframes lt-slot-lit {
    0%   { box-shadow: 0 0 0 0 var(--lc-accent-glow); }
    40%  { box-shadow: 0 0 0 8px var(--lc-accent-glow); }
    100% { box-shadow: 0 8px 20px rgba(0,0,0,0.12), 0 0 0 1px var(--lc-accent-soft); }
}

/* ---- Spread (trois cartes) ---- */

.lt-spread-invite { margin-top: 40px; }

.lt-spread[hidden] { display: none; }

.lt-spread__kicker {
    margin: 0 0 2px;
    font-family: var(--lc-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lc-accent-deep);
}

html:not(.day-mode) .lt-spread__kicker { color: var(--lc-accent); }

@media (min-width: 760px) {
    .lt-spread__poems {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }
}

@media (max-width: 719px) {
    .lt-ciel__deck { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
    .lt-ciel__head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .lt-tirage__choices { gap: 4px; min-height: 300px; }
    .lt-tirage__choice { width: clamp(92px, 27vw, 136px); }
    .lt-tirage__choice { transform: rotate(calc((var(--lt-i) - 1) * 9deg)); }
    .lt-tirage__choice[data-lt-choice="1"] { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
    .lt-tirage__choice,
    .lt-tirage__hero-card,
    .lt-tirage__hero-glow { animation: none; transition: none; }
    .lt-ciel__slot.is-just-lit .lt-ciel__slot-frame { animation: none; }
    .lt-tirage__reveal { animation: none; }
    .lt-ciel__progress-bar { transition: none; }
}
