/* ========================================
   NOUVELLE HOMEPAGE - LECTURE GUIDÉE
   Design calme, hiérarchie douce, typographie liseuse
   ======================================== */

/* --- Homepage : topbar transparente, texte clair sur la peinture --- */
body.page-home {
    --home-header-overlap: 4.75rem;
}

/* Canvas gooey (body, z-index:1) : le contenu principal doit rester au-dessus là où il se superpose au viewport */

body.page-home .home2-header {
    z-index: 30;
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

html.day-mode body.page-home .home2-header {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.16);
}

body.page-home .home2-header.scrolled {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

body.page-home .home2-logo-text {
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.32);
}

body.page-home .home2-nav-link,
body.page-home .home2-nav-dropdown-trigger {
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.22);
}

body.page-home .home2-nav-link:hover,
body.page-home .home2-nav-dropdown-trigger:hover {
    color: rgba(255, 255, 255, 0.98);
}

body.page-home .home2-nav-link.active {
    color: rgba(255, 255, 255, 0.98);
}

body.page-home .home2-header-divider {
    background: rgba(255, 255, 255, 0.24);
}

body.page-home .home2-search-button:hover .home2-search-button-inner {
    background: rgba(255, 255, 255, 0.1);
}

html.day-mode body.page-home .home2-search-button:hover .home2-search-button-inner {
    background: rgba(255, 255, 255, 0.12);
}

body.page-home .home2-search-icon,
body.page-home .home2-search-close-icon {
    color: rgba(255, 255, 255, 0.92);
}

html.day-mode body.page-home .home2-search-icon,
html.day-mode body.page-home .home2-search-close-icon {
    color: rgba(255, 255, 255, 0.92);
}

body.page-home .home2-search-label {
    color: rgba(255, 255, 255, 0.72);
}

body.page-home .home2-search-button:hover .home2-search-label {
    color: rgba(255, 255, 255, 0.92);
}

html.day-mode body.page-home .home2-search-label {
    color: rgba(255, 255, 255, 0.72);
}

html.day-mode body.page-home .home2-search-button:hover .home2-search-label {
    color: rgba(255, 255, 255, 0.92);
}

body.page-home .home2-auth-link {
    color: rgba(255, 255, 255, 0.9);
}

body.page-home .home2-auth-link-icon {
    color: rgba(255, 248, 238, 0.95);
}

body.page-home .home2-auth-link:hover .home2-auth-button-inner {
    background: rgba(255, 255, 255, 0.12);
}

html.day-mode body.page-home .home2-auth-link:hover .home2-auth-button-inner {
    background: rgba(255, 255, 255, 0.12);
}

html.day-mode body.page-home .home2-auth-link-icon {
    color: rgba(255, 248, 238, 0.95);
}

html.day-mode body.page-home .home2-auth-link:hover .home2-auth-link-icon {
    color: #fff;
}

body.page-home .home2-burger-line {
    background: rgba(255, 255, 255, 0.93);
}

/* Hero remonté sous la barre : overlap en padding-top DANS le bloc 100dvh (border-box) */
body.page-home .home-hero-fullscreen {
    margin-top: calc(-1 * var(--home-header-overlap));
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: var(--home-header-overlap);
}

/* --- Hero plein écran (100vh) : peinture immersive + poème --- */
.home-hero-fullscreen {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: #f7f3ec;
    overflow: hidden;
}

.home-hero-fullscreen__bg {
    position: absolute;
    inset: 0;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    background: url("/img/hero-bg/02.jpg") center 42% / cover no-repeat;
    transform: translateZ(0);
    z-index: 0;
}

.home-hero-fullscreen__vignette {
    position: absolute;
    inset: 0;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 88% 68% at 50% 40%, rgba(8, 10, 14, 0.12) 0%, rgba(8, 10, 14, 0.52) 52%, rgba(8, 10, 14, 0.82) 100%),
        linear-gradient(180deg, rgba(8, 10, 14, 0.28) 0%, transparent 32%, transparent 58%, rgba(8, 10, 14, 0.76) 100%);
}

html.day-mode .home-hero-fullscreen__vignette {
    background:
        radial-gradient(ellipse 88% 68% at 50% 40%, rgba(36, 31, 24, 0.22) 0%, rgba(36, 31, 24, 0.48) 50%, rgba(24, 21, 17, 0.8) 100%),
        linear-gradient(180deg, rgba(48, 42, 34, 0.38) 0%, transparent 34%, transparent 56%, rgba(28, 24, 19, 0.72) 100%);
}

.home-hero-fullscreen__inner {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 2rem 7.5rem;
    max-width: 62rem;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Bloc lecture dans le hero : sans « carte » */
.home-hero-fullscreen__reading.hero-reading {
    position: relative;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    background: transparent;
}

.home-hero-fullscreen__reading.hero-reading::before {
    display: none;
}

.home-hero-fullscreen .hero-reading-inner {
    max-width: 53rem;
    margin: 0 auto;
}

.home-hero-fullscreen__fallback {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    line-height: 1.62;
    color: rgba(247, 243, 236, 0.78);
    margin: 0 0 2rem;
    max-width: 32rem;
}

.hero-reading-verses--immersive {
    margin: 0 0 1.35rem;
    padding: 0;
    border: none;
    max-width: none;
    font-family: 'Cormorant Garamond', 'Crimson Pro', serif;
    font-size: clamp(1.9rem, 5.1vw, 3.25rem);
    font-weight: 400;
    line-height: 1.34;
    font-style: italic;
    letter-spacing: 0.018em;
    color: rgba(255, 252, 248, 0.98);
    text-shadow: 0 2px 32px rgba(0, 0, 0, 0.38);
}

.hero-reading-author--immersive {
    margin: 0 0 2.35rem;
    font-size: 1.2rem;
    line-height: 1.55;
    text-align: center;
    color: rgba(247, 243, 236, 0.72);
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.32);
}

.hero-reading-author--immersive a {
    color: inherit;
    text-decoration: none;
    border-bottom: none;
    padding-bottom: 0.06em;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

/* Soulignement après la fin du typewriter auteur (classe ajoutée en JS) */
.hero-reading-author--immersive a.hero-reading-author-link--typed {
    border-bottom: 1px solid rgba(247, 243, 236, 0.32);
}

.hero-reading-author--immersive a.hero-reading-author-link--typed:hover {
    opacity: 0.92;
    border-bottom-color: rgba(247, 243, 236, 0.5);
}

.hero-reading-author--immersive a:hover:not(.hero-reading-author-link--typed) {
    opacity: 0.92;
}

/* Ne pas appliquer les marges « page poème » du motion aux crédits immersifs */
.home2-page.home-revealed .home-hero-fullscreen .hero-reading-author--immersive {
    margin-top: 0;
    margin-bottom: 2.35rem;
}

/* --- Poursuivre : architecture de choix éditoriale (3 expériences) --- */
#home-poursuivre,
#home-pourquoi {
    scroll-margin-top: var(--home-header-overlap, 4.75rem);
}

/* Programmatic focus after scroll (home_motion.js) — hide container ring; links keep :focus-visible. */
#home-poursuivre:focus {
    outline: none;
}

.home-poursuivre {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    border-top: 1px solid rgba(43, 43, 43, 0.08);
    background: #f3ede3;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

html:not(.day-mode) .home-poursuivre {
    border-top-color: rgba(231, 231, 231, 0.09);
    background: #0c0f12;
}

.home-poursuivre__inner {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: max(2.5rem, env(safe-area-inset-top, 0px))
        max(1rem, env(safe-area-inset-right, 0px))
        max(2.5rem, env(safe-area-inset-bottom, 0px))
        max(1rem, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
}

.home-poursuivre__header {
    width: 100%;
    max-width: min(44rem, 94vw);
    margin: 0 auto clamp(2rem, 4vh, 2.75rem);
    text-align: center;
}

/* Titre principal : aligné LYREVAL (.home2-logo-text) */
.home-poursuivre__title,
.home-pourquoi__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;
    margin: 0 0 clamp(0.85rem, 2vh, 1.15rem);
    line-height: 1.28;
    color: var(--text-primary);
    flex-shrink: 0;
}

html:not(.day-mode) .home-poursuivre__title,
html:not(.day-mode) .home-pourquoi__title {
    color: rgba(231, 231, 231, 0.98);
}

.home-poursuivre__lede,
.home-pourquoi__lede {
    font-family: 'Lora', serif;
    font-size: clamp(0.98rem, 1.85vw, 1.125rem);
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.02em;
    margin: 0;
    color: rgba(43, 43, 43, 0.72);
}

html:not(.day-mode) .home-poursuivre__lede,
html:not(.day-mode) .home-pourquoi__lede {
    color: rgba(231, 231, 231, 0.62);
}

.home-poursuivre__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(1.35rem, 4vw, 1.75rem);
    width: min(100%, 34rem);
    max-width: 100%;
    min-width: 0;
    min-height: 0;
}

.home-poursuivre__item {
    margin: 0;
    padding: 0;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
}

/* Carte : zone image (gooey WebGL) + bandeau texte dessous — fond du visuel transparent pour laisser voir le canvas */
.home-poursuivre-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    border-radius: 6px;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.04) inset;
    transform: translate3d(0, 0, 0);
    transition:
        transform 0.55s var(--lyre-ease-reveal),
        box-shadow 0.55s ease,
        border-color 0.45s ease;
    -webkit-tap-highlight-color: transparent;
}

html:not(.day-mode) .home-poursuivre-card {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.home-poursuivre-card__visual {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    /* Coins haut seulement : le bas du visuel épouse le bandeau texte (pas d’image « flottante ») */
    border-radius: 6px 6px 0 0;
    aspect-ratio: 4 / 5;
    min-height: 220px;
    max-height: min(52vh, 420px);
    overflow: hidden;
    /* Évite toute ligne de texte fantôme / micro-espace sous le média */
    line-height: 0;
    /* Pas de fond opaque : l’image passe en opacity:0 quand le mesh est prêt ; sinon le WebGL sous #lyreval-page-content ne serait pas visible */
    background: transparent;
}

.home-poursuivre-card__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.home-poursuivre-card__img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    transition: transform 0.65s var(--lyre-ease-reveal);
}

/* Gooey : pas de léger zoom CSS — aligné au plan WebGL, bords nets avec le bandeau texte */
.home-poursuivre-card__visual.js-gooey-hover .home-poursuivre-card__img {
    transform: none;
}

.home-poursuivre-card__content {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: clamp(1.15rem, 3.2vw, 1.45rem) clamp(1.2rem, 3.5vw, 1.5rem) clamp(1.25rem, 3.5vw, 1.5rem);
    gap: 0.45rem;
    max-width: 100%;
    border-top: 1px solid rgba(43, 43, 43, 0.08);
    background: rgba(255, 255, 255, 0.45);
}

html:not(.day-mode) .home-poursuivre-card__content {
    border-top-color: rgba(255, 255, 255, 0.1);
    background: rgba(12, 15, 18, 0.55);
}

.home-poursuivre-card__heading {
    font-family: 'Cormorant Garamond', 'Crimson Pro', serif;
    font-size: clamp(1.28rem, 3.2vw, 1.65rem);
    font-weight: 500;
    margin: 0;
    line-height: 1.22;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

html:not(.day-mode) .home-poursuivre-card__heading {
    color: var(--text-night);
}

.home-poursuivre-card__desc {
    font-family: 'Lora', serif;
    font-size: clamp(0.88rem, 2vw, 0.98rem);
    font-weight: 400;
    line-height: 1.58;
    margin: 0 0 0.15rem;
    max-width: none;
    color: var(--text-secondary);
}

html:not(.day-mode) .home-poursuivre-card__desc {
    color: rgba(231, 231, 231, 0.72);
}

.home-poursuivre-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.35rem;
    font-family: 'Crimson Pro', 'Lora', serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-primary);
    opacity: 0.92;
}

html:not(.day-mode) .home-poursuivre-card__cta {
    color: rgba(231, 231, 231, 0.9);
}

.home-poursuivre-card__cta-arrow {
    display: inline-block;
    transition: transform 0.4s var(--lyre-ease-reveal);
}

@media (hover: hover) and (pointer: fine) {
    .home-poursuivre-card:hover {
        transform: translate3d(0, -5px, 0);
        box-shadow:
            0 18px 48px rgba(0, 0, 0, 0.12),
            0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    }

    html:not(.day-mode) .home-poursuivre-card:hover {
        box-shadow:
            0 22px 56px rgba(0, 0, 0, 0.45),
            0 0 0 1px rgba(255, 255, 255, 0.07) inset;
    }

    .home-poursuivre-card:hover .home-poursuivre-card__img {
        transform: scale(1.06);
    }

    .home-poursuivre-card__visual.js-gooey-hover:hover .home-poursuivre-card__img {
        transform: none;
    }

    .home-poursuivre-card:hover .home-poursuivre-card__cta-arrow {
        transform: translateX(5px);
    }

    .home-poursuivre-card--featured:hover {
        transform: translate3d(0, -7px, 0);
    }
}

@media (hover: none) {
    .home-poursuivre-card:active {
        transform: scale(0.992);
    }
}

.home-poursuivre-card:focus-visible {
    outline: 2px solid rgba(80, 72, 64, 0.55);
    outline-offset: 4px;
}

html:not(.day-mode) .home-poursuivre-card:focus-visible {
    outline-color: rgba(247, 243, 236, 0.65);
}

/* Tablette : colonne généreuse */
@media (min-width: 768px) and (max-width: 1023px) {
    .home-poursuivre__inner {
        padding-top: max(2.75rem, env(safe-area-inset-top, 0px));
        padding-bottom: max(2.75rem, env(safe-area-inset-bottom, 0px));
        padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
        padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
    }

    .home-poursuivre__grid {
        width: min(100%, 36rem);
        max-width: 100%;
        min-width: 0;
        gap: clamp(1.5rem, 3vw, 2rem);
    }

    .home-poursuivre-card__visual {
        max-height: min(48vh, 400px);
    }
}

/* Bureau : trois colonnes, respiration éditoriale */
@media (min-width: 1024px) {
    .home-poursuivre__inner {
        padding-top: max(3rem, env(safe-area-inset-top, 0px));
        padding-bottom: max(3rem, env(safe-area-inset-bottom, 0px));
        padding-left: clamp(1.5rem, 3vw, 2.75rem);
        padding-right: clamp(1.5rem, 3vw, 2.75rem);
    }

    .home-poursuivre__header {
        max-width: min(52rem, 94vw);
        margin-bottom: clamp(2.25rem, 4.5vh, 3rem);
    }

    .home-poursuivre__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 1fr auto;
        align-items: stretch;
        gap: clamp(56px, 5vw, 88px);
        width: min(100%, min(860px, 94vw));
        max-width: 100%;
        min-width: 0;
    }

    .home-poursuivre__item {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 2;
        min-height: 0;
        min-width: 0;
    }

    .home-poursuivre__item:only-child {
        grid-column: 1 / -1;
        justify-self: center;
        width: min(100%, 22rem);
        max-width: 100%;
        min-width: 0;
    }

    .home-poursuivre-card {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 2;
        flex: 1;
        width: 100%;
        height: 100%;
        min-height: 0;
        align-items: stretch;
        border-radius: 5px;
    }

    .home-poursuivre-card__visual {
        grid-row: 1;
        aspect-ratio: auto;
        flex: unset;
        align-self: stretch;
        /* La rangée subgrid impose la hauteur ; 100% remplit la cellule pour le média absolu + mesh gooey */
        height: 100%;
        max-height: 100%;
        min-height: min(42vh, 380px);
        border-radius: 5px 5px 0 0;
    }

    .home-poursuivre-card--featured .home-poursuivre-card__visual {
        min-height: min(46vh, 420px);
    }

    .home-poursuivre-card__content {
        grid-row: 2;
        flex: 1 1 auto;
        align-self: stretch;
        min-height: 0;
        /* Jointure nette avec le visuel : pas d’espace fantôme au-dessus du bandeau */
        margin-top: 0;
    }

    /* Carte centrale : hiérarchie douce (ombre) */
    .home-poursuivre-card--featured {
        z-index: 1;
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow:
            0 12px 48px rgba(0, 0, 0, 0.12),
            0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    }

    html:not(.day-mode) .home-poursuivre-card--featured {
        box-shadow:
            0 16px 56px rgba(0, 0, 0, 0.42),
            0 0 0 1px rgba(255, 255, 255, 0.09) inset;
    }

    /* Navigateurs sans subgrid : retour au flex (bandeaux pas forcément égaux) */
    @supports not (grid-template-rows: subgrid) {
        .home-poursuivre__grid {
            grid-template-rows: none;
        }

        .home-poursuivre__item {
            display: flex;
            flex-direction: column;
        }

        .home-poursuivre__item:only-child {
            align-self: center;
            width: min(100%, 34rem);
            max-width: 100%;
            min-width: 0;
        }

        .home-poursuivre-card {
            display: flex;
            flex-direction: column;
            flex: 1 1 auto;
        }

        .home-poursuivre-card__visual {
            grid-row: unset;
            flex: 1 1 auto;
        }

        .home-poursuivre-card__content {
            grid-row: unset;
        }
    }
}

@media (max-width: 768px) {
    body.page-home {
        --home-header-overlap: 4.25rem;
    }
    .home-hero-fullscreen__inner {
        /* Moins de marge latérale = colonne de lecture plus large ; typo calée sur le desktop */
        padding: 2.65rem 1.05rem 5.75rem;
        justify-content: center;
    }
    body.page-home .home-hero-fullscreen__inner {
        padding-top: 2.65rem;
        padding-left: 1.05rem;
        padding-right: 1.05rem;
        padding-bottom: 5.75rem;
    }
    .hero-reading-verses--immersive {
        font-size: clamp(1.52rem, 6.6vw, 2.24rem);
        line-height: 1.4;
        margin-bottom: 1.25rem;
    }
    .home-hero-fullscreen .hero-reading-verse-line + .hero-reading-verse-line {
        margin-top: 0.42rem;
    }
    .hero-reading-author--immersive {
        font-size: clamp(1.05rem, 3.1vw, 1.125rem);
        margin-bottom: 1.85rem;
    }
    .home-hero-fullscreen__fallback {
        font-size: clamp(1.12rem, 3.4vw, 1.22rem);
        margin-bottom: 1.65rem;
    }
    .hero-reading-cta--immersive {
        padding: 1.05rem 2.15rem 1.1rem;
        font-size: clamp(0.875rem, 2.9vw, 0.9375rem);
        letter-spacing: 0.08em;
        width: 100%;
        max-width: 24rem;
        box-sizing: border-box;
        justify-content: center;
        border-radius: 3px;
    }
    .home-poursuivre__inner {
        padding-top: max(2.25rem, env(safe-area-inset-top, 0px));
        padding-bottom: max(2.25rem, env(safe-area-inset-bottom, 0px));
        padding-left: max(1.15rem, env(safe-area-inset-left, 0px));
        padding-right: max(1.15rem, env(safe-area-inset-right, 0px));
        max-width: 100%;
    }
    .home-poursuivre__header {
        margin-bottom: clamp(1.35rem, 3.5vh, 1.85rem);
    }
}

/* --- Bibliothèque : section exploration (après « Poursuivre », avant « Pourquoi ») --- */
#home-bibliotheque {
    scroll-margin-top: var(--home-header-overlap, 4.75rem);
}

.home-bibliotheque {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0;
    border-top: 1px solid rgba(43, 43, 43, 0.06);
    background: #f6f1e9;
    box-sizing: border-box;
}

html:not(.day-mode) .home-bibliotheque {
    border-top-color: rgba(231, 231, 231, 0.07);
    background: #0c0f12;
}

.home-bibliotheque__inner {
    max-width: min(44rem, 94vw);
    margin: 0 auto;
    padding: clamp(3.25rem, 7.5vh, 4.75rem) max(1rem, env(safe-area-inset-right, 0px))
        clamp(3.75rem, 9vh, 5.25rem) max(1rem, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
}

.home-bibliotheque__header {
    width: 100%;
    max-width: min(40rem, 100%);
    margin: 0 auto clamp(2.25rem, 5vh, 3rem);
    text-align: center;
}

.home-bibliotheque__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;
    margin: 0 0 clamp(0.85rem, 2vh, 1.15rem);
    line-height: 1.28;
    color: var(--text-primary);
}

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

.home-bibliotheque__lede {
    font-family: 'Lora', serif;
    font-size: clamp(0.98rem, 1.85vw, 1.125rem);
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.02em;
    margin: 0;
    max-width: min(38rem, 100%);
    margin-left: auto;
    margin-right: auto;
    color: rgba(43, 43, 43, 0.72);
}

html:not(.day-mode) .home-bibliotheque__lede {
    color: rgba(231, 231, 231, 0.62);
}

.home-bibliotheque__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 100%;
    margin: 0 auto;
}

.home-bibliotheque__link {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 1.5rem);
    padding: clamp(1.15rem, 2.8vh, 1.5rem) clamp(0.75rem, 2vw, 1.25rem);
    text-decoration: none;
    color: inherit;
    border: none;
    border-bottom: 1px solid rgba(43, 43, 43, 0.07);
    background: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    transition:
        background-color 0.4s ease,
        padding-left 0.4s ease;
    -webkit-tap-highlight-color: transparent;
}

.home-bibliotheque__link:first-child {
    border-top: 1px solid rgba(43, 43, 43, 0.07);
}

html:not(.day-mode) .home-bibliotheque__link {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

html:not(.day-mode) .home-bibliotheque__link:first-child {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.home-bibliotheque__link-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(43, 43, 43, 0.04);
    color: rgba(43, 43, 43, 0.55);
    transition:
        background-color 0.4s ease,
        color 0.4s ease;
}

html:not(.day-mode) .home-bibliotheque__link-icon {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(231, 231, 231, 0.55);
}

.home-bibliotheque__link-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.home-bibliotheque__link-heading {
    font-family: 'Crimson Pro', 'Lora', serif;
    font-size: clamp(0.9375rem, 1.65vw, 1.0625rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.35;
    color: var(--text-primary);
}

html:not(.day-mode) .home-bibliotheque__link-heading {
    color: rgba(231, 231, 231, 0.94);
}

.home-bibliotheque__link-desc {
    font-family: 'Lora', serif;
    font-size: clamp(0.84rem, 1.4vw, 0.92rem);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0.015em;
    color: rgba(43, 43, 43, 0.55);
}

html:not(.day-mode) .home-bibliotheque__link-desc {
    color: rgba(231, 231, 231, 0.5);
}

.home-bibliotheque__link-arrow {
    flex-shrink: 0;
    font-size: 0.92rem;
    color: rgba(43, 43, 43, 0.3);
    transition:
        transform 0.4s ease,
        color 0.4s ease;
}

html:not(.day-mode) .home-bibliotheque__link-arrow {
    color: rgba(231, 231, 231, 0.25);
}

@media (hover: hover) and (pointer: fine) {
    .home-bibliotheque__link:hover {
        background: rgba(43, 43, 43, 0.025);
        padding-left: clamp(1.1rem, 2.5vw, 1.65rem);
    }

    html:not(.day-mode) .home-bibliotheque__link:hover {
        background: rgba(255, 255, 255, 0.025);
    }

    .home-bibliotheque__link:hover .home-bibliotheque__link-icon {
        background: rgba(43, 43, 43, 0.07);
        color: rgba(43, 43, 43, 0.72);
    }

    html:not(.day-mode) .home-bibliotheque__link:hover .home-bibliotheque__link-icon {
        background: rgba(255, 255, 255, 0.08);
        color: rgba(231, 231, 231, 0.72);
    }

    .home-bibliotheque__link:hover .home-bibliotheque__link-arrow {
        transform: translateX(4px);
        color: rgba(43, 43, 43, 0.5);
    }

    html:not(.day-mode) .home-bibliotheque__link:hover .home-bibliotheque__link-arrow {
        color: rgba(231, 231, 231, 0.45);
    }
}

@media (hover: none) {
    .home-bibliotheque__link:active {
        background: rgba(43, 43, 43, 0.03);
    }

    html:not(.day-mode) .home-bibliotheque__link:active {
        background: rgba(255, 255, 255, 0.03);
    }
}

.home-bibliotheque__link:focus-visible {
    outline: 2px solid rgba(80, 72, 64, 0.55);
    outline-offset: -2px;
}

html:not(.day-mode) .home-bibliotheque__link:focus-visible {
    outline-color: rgba(247, 243, 236, 0.65);
}

@media (min-width: 640px) {
    .home-bibliotheque__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-bibliotheque__link {
        border-bottom: 1px solid rgba(43, 43, 43, 0.07);
    }

    .home-bibliotheque__link:first-child,
    .home-bibliotheque__link:nth-child(2) {
        border-top: 1px solid rgba(43, 43, 43, 0.07);
    }

    html:not(.day-mode) .home-bibliotheque__link:nth-child(2) {
        border-top-color: rgba(255, 255, 255, 0.06);
    }

    .home-bibliotheque__link:nth-child(odd) {
        border-right: 1px solid rgba(43, 43, 43, 0.07);
    }

    html:not(.day-mode) .home-bibliotheque__link:nth-child(odd) {
        border-right-color: rgba(255, 255, 255, 0.06);
    }
}

@media (max-width: 639px) {
    .home-bibliotheque__inner {
        padding-left: max(1.1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1.1rem, env(safe-area-inset-right, 0px));
    }

    .home-bibliotheque__link-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .home-bibliotheque__link-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* --- Pourquoi Lyreval (après choix éditoriaux, avant le pied de page) --- */
.home-pourquoi {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(43, 43, 43, 0.08);
    background: #f3ede3;
    box-sizing: border-box;
}

html:not(.day-mode) .home-pourquoi {
    border-top-color: rgba(231, 231, 231, 0.09);
    background: #0c0f12;
}

.home-pourquoi__inner {
    max-width: min(42rem, 94vw);
    margin: 0 auto;
    padding: clamp(3.25rem, 7.5vh, 4.75rem) max(1rem, env(safe-area-inset-right, 0px))
        clamp(3.75rem, 9vh, 5.25rem) max(1rem, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
}

.home-pourquoi__header {
    width: 100%;
    max-width: min(40rem, 100%);
    margin: 0 auto;
    text-align: center;
}

.home-pourquoi__header .home-pourquoi__lede {
    max-width: min(38rem, 100%);
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    .home-pourquoi__inner {
        padding-left: max(1.1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1.1rem, env(safe-area-inset-right, 0px));
    }
}

/* --- Pourquoi Lyreval : chorégraphie scroll (révélation calme, pas « marketing ») --- */
.home-pourquoi.home-pourquoi--choreo {
    --home-pourquoi-choreo-ease: cubic-bezier(0.28, 0.12, 0.22, 1);
    --home-pourquoi-choreo-d-inner: 0.78s;
    --home-pourquoi-choreo-d-title: 0.62s;
    --home-pourquoi-choreo-d-lede: 0.78s;
    --home-pourquoi-choreo-delay-title: 0.2s;
    --home-pourquoi-choreo-delay-lede: 0.34s;
}

.home-pourquoi.home-pourquoi--choreo:not(.home-pourquoi--revealed) {
    pointer-events: none;
}

.home-pourquoi.home-pourquoi--choreo:not(.home-pourquoi--revealed) .home-pourquoi__inner {
    opacity: 0;
    transform: translateY(24px);
}

.home-pourquoi.home-pourquoi--choreo:not(.home-pourquoi--revealed) .home-pourquoi__title {
    opacity: 0;
    transform: translateY(10px);
}

.home-pourquoi.home-pourquoi--choreo:not(.home-pourquoi--revealed) .home-pourquoi__lede {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(4px);
}

.home-pourquoi.home-pourquoi--choreo.home-pourquoi--revealed {
    pointer-events: auto;
}

.home-pourquoi.home-pourquoi--choreo.home-pourquoi--revealed .home-pourquoi__inner {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity var(--home-pourquoi-choreo-d-inner) var(--home-pourquoi-choreo-ease),
        transform var(--home-pourquoi-choreo-d-inner) var(--home-pourquoi-choreo-ease);
}

.home-pourquoi.home-pourquoi--choreo.home-pourquoi--revealed .home-pourquoi__title {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity var(--home-pourquoi-choreo-d-title) var(--home-pourquoi-choreo-ease),
        transform var(--home-pourquoi-choreo-d-title) var(--home-pourquoi-choreo-ease);
    transition-delay: var(--home-pourquoi-choreo-delay-title);
}

.home-pourquoi.home-pourquoi--choreo.home-pourquoi--revealed .home-pourquoi__lede {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition:
        opacity var(--home-pourquoi-choreo-d-lede) var(--lyre-ease-reveal),
        transform var(--home-pourquoi-choreo-d-lede) var(--lyre-ease-reveal),
        filter 1s var(--lyre-ease-reveal);
    transition-delay: var(--home-pourquoi-choreo-delay-lede);
}

.home-hero-fullscreen__scroll-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    padding-bottom: 1rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s var(--lyre-ease-reveal),
        transform 0.35s var(--lyre-ease-reveal);
}

/* Avec home-cta-revealed (après CTA + DELAY_AFTER_CTA_MS dans home_motion.js) */
.home2-page.home-cta-revealed .home-hero-fullscreen__scroll-wrap {
    opacity: 1;
    transform: translateY(0);
}

.home-hero-scroll {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 1rem 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Lora', serif;
    color: rgba(247, 243, 236, 0.58);
    transition: color 0.28s ease, opacity 0.28s ease;
    -webkit-tap-highlight-color: transparent;
}

.home-hero-scroll:hover,
.home-hero-scroll:focus-visible {
    color: rgba(247, 243, 236, 0.92);
}

.home-hero-scroll:focus-visible {
    outline: 1px solid rgba(247, 243, 236, 0.45);
    outline-offset: 5px;
    border-radius: 4px;
}

.home-hero-scroll__label {
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.home-hero-scroll__icon {
    animation: home-hero-scroll-breathe 2.85s ease-in-out infinite;
}

@keyframes home-hero-scroll-breathe {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.72;
    }
    50% {
        transform: translateY(6px);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-fullscreen__scroll-wrap {
        transition: none;
        opacity: 1;
        transform: none;
    }
    .home-hero-scroll__icon {
        animation: none;
    }
}

/* --- Hero (ancien bloc page / hors plein écran si réutilisé) --- */
.hero-reading {
    position: relative;
    max-width: 42rem;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    text-align: center;
}
.hero-reading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    height: 100%;
    background: transparent;
    z-index: -1;
}
.hero-reading-inner {
    max-width: 36rem;
    margin: 0 auto;
}
.hero-reading-daily {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-reading-author:not(.hero-reading-author--immersive) {
    font-size: 0.9375rem;
    color: rgba(43, 43, 43, 0.7);
    text-align: center;
}
.hero-reading-author:not(.hero-reading-author--immersive) a {
    color: inherit;
    text-decoration: none;
}
.hero-reading-author:not(.hero-reading-author--immersive) a:hover {
    opacity: 0.85;
}
html:not(.day-mode) .hero-reading-author:not(.hero-reading-author--immersive) {
    color: rgba(231, 231, 231, 0.65);
}

.hero-reading-verses:not(.hero-reading-verses--immersive) {
    margin: 0 0 0.25rem;
    padding: 0;
    border: none;
    font-family: 'Crimson Pro', 'Lora', serif;
    font-size: 1.25rem;
    line-height: 1.6;
    font-style: italic;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
    max-width: 32rem;
}
html:not(.day-mode) .hero-reading-verses:not(.hero-reading-verses--immersive) {
    color: rgba(231, 231, 231, 0.88);
}
.hero-reading-verse-line {
    display: block;
    text-align: center;
}
.hero-reading-verse-line + .hero-reading-verse-line {
    margin-top: 0.35rem;
}

@keyframes hero-verse-char-in {
    from {
        opacity: 0;
        transform: translateY(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-reading-verse-char {
    opacity: 0;
    display: inline;
}
.home2-page.home-revealed .hero-reading-verse-char {
    animation: hero-verse-char-in 0.28s ease forwards;
    animation-delay: calc(0.16s + (var(--line-offset, 0) + var(--i, 0)) * 0.045s);
}

/* CTA secondaire (sections Parcours, etc.) */
.hero-reading-cta:not(.hero-reading-cta--immersive) {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.45rem 1.3rem;
    min-height: auto;
    font-family: 'Crimson Pro', 'Lora', serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: none;
    text-decoration: none;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid rgba(43, 43, 43, 0.12);
    border-radius: 3px;
    transition: color 0.22s ease,
        border-color 0.22s ease,
        background-color 0.22s ease;
}
.hero-reading-cta:not(.hero-reading-cta--immersive):hover {
    color: rgba(43, 43, 43, 0.9);
    border-color: rgba(43, 43, 43, 0.22);
    background-color: rgba(43, 43, 43, 0.02);
}
.hero-reading-cta:not(.hero-reading-cta--immersive):active {
    background-color: rgba(43, 43, 43, 0.04);
}
.hero-reading-cta:focus {
    outline: none;
}
.hero-reading-cta:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 2px;
    opacity: 0.9;
}
.hero-reading-cta__text {
    position: relative;
    padding-bottom: 0.03em;
}
.hero-reading-cta__arrow {
    display: inline-flex;
    position: relative;
    font-size: 0.9em;
    opacity: 0.75;
    margin-left: 0.1rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.hero-reading-cta:not(.hero-reading-cta--immersive):hover .hero-reading-cta__arrow {
    opacity: 0.92;
    transform: translateX(3px);
}

.hero-reading-cta--daily:not(.hero-reading-cta--immersive) .hero-reading-cta__arrow {
    opacity: 0.9;
}

html:not(.day-mode) .hero-reading-cta:not(.hero-reading-cta--immersive) {
    color: rgba(231, 231, 231, 0.9);
    border-color: rgba(231, 231, 231, 0.18);
}
html:not(.day-mode) .hero-reading-cta:not(.hero-reading-cta--immersive):hover {
    border-color: rgba(231, 231, 231, 0.32);
    background-color: rgba(255, 255, 255, 0.02);
}
html:not(.day-mode) .hero-reading-cta:not(.hero-reading-cta--immersive):active {
    background-color: rgba(255, 255, 255, 0.04);
}

/* CTA immersif : bloc noir mat, typo identique au mot « LYREVAL » du topbar (.home2-logo-text) */
.hero-reading-cta--immersive {
    margin-top: 0.2rem;
    padding: 1.2rem 3rem 1.25rem;
    font-family: 'Crimson Pro', 'Lora', serif;
    font-size: clamp(0.875rem, 1.55vw, 1.0625rem);
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(236, 234, 230, 0.96);
    background: #97979742;
    border: none;
    border-radius: 3px;
    box-shadow: none;
    text-shadow: none;
    transition: color 0.28s ease, background-color 0.28s ease;
}

.hero-reading-cta--immersive:visited {
    color: rgba(236, 234, 230, 0.96);
}

.hero-reading-cta--immersive:hover {
    color: rgba(248, 246, 242, 1);
    background: #141414;
    text-decoration: none;
}

.hero-reading-cta--immersive:active {
    background: #0a0a0a;
}

.hero-reading-cta--immersive .hero-reading-cta__text {
    text-decoration: none;
    border-bottom: none;
    padding-bottom: 0;
    box-shadow: none;
}

.hero-reading-cta--immersive .hero-reading-cta__arrow {
    font-size: 0.88em;
    font-weight: 300;
    letter-spacing: 0;
    opacity: 0.85;
    transition: transform 0.35s var(--lyre-ease-reveal), opacity 0.25s ease;
}

.hero-reading-cta--immersive:hover .hero-reading-cta__arrow {
    transform: translateX(4px);
    opacity: 0.95;
}

.hero-reading-cta--immersive:focus,
.hero-reading-cta--immersive:focus-visible {
    text-decoration: none;
}

.hero-reading-cta--immersive:focus-visible {
    outline: 2px solid rgba(236, 234, 230, 0.55);
    outline-offset: 3px;
}

/* --- Parcours de lecture : composition éditoriale asymétrique (exhibition-like) --- */
.home-featured-paths {
    position: relative;
    max-width: 78rem;
    margin: 0 auto;
    padding: 5rem 1.5rem 6rem;
    border-top: 1px solid rgba(43, 43, 43, 0.08);
}
.home-featured-paths::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    height: 100%;
    background: rgba(43, 43, 43, 0.04);
    z-index: -1;
}
html:not(.day-mode) .home-featured-paths {
    border-top-color: var(--lyre-night-border-soft);
}
html:not(.day-mode) .home-featured-paths::before {
    background: rgba(255, 255, 255, 0.03);
}

/* Section intro */
.home-featured-paths-header {
    max-width: 36rem;
    margin: 0 auto 4rem;
    text-align: center;
}
.home-featured-paths-kicker {
    font-family: 'Lora', serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin: 0 0 0.75rem;
    color: var(--text-secondary);
}
.home-featured-paths-title {
    font-family: 'Cormorant Garamond', 'Crimson Pro', serif;
    font-size: 1.0625rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
    text-align: center;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
}
.home-featured-paths-title--main {
    font-size: clamp(1.75rem, 3.8vw, 2.125rem);
    margin: 0 0 0.75rem;
}
.home-featured-paths-subtitle {
    font-size: 0.975rem;
    line-height: 1.55;
    margin: 0;
    text-align: center;
    color: var(--text-secondary);
}
html:not(.day-mode) .home-featured-paths-title {
    color: var(--lyre-night-text-muted);
}
html:not(.day-mode) .home-featured-paths-subtitle {
    color: rgba(231, 231, 231, 0.65);
}

/* Grille legacy masquée dans la section « Parcours en vedette » (layout éditorial à la place) */
.home-featured-paths .home-featured-paths-grid {
    display: none;
}
.home-featured-paths-cta-wrap {
    margin: 4rem 0 0;
    text-align: center;
}
.home-featured-paths-cta-wrap .hero-reading-cta {
    display: inline-flex;
}

/* --- Editorial staggered layout: zig-zag (right → left → right → left) --- */
.home-paths-layout {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto auto;
    gap: 0 2rem;
    row-gap: 4.5rem;
    margin-top: 0;
    align-items: start;
}

.home-paths-item {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Varied widths + intentional vertical offsets (uneven editorial rhythm) */
.home-paths-item--1 {
    grid-column: 7 / -1;
    grid-row: 1;
    justify-self: end;
    max-width: 42rem;
}
.home-paths-item--2 {
    grid-column: 1 / 7;
    grid-row: 2;
    justify-self: start;
    max-width: 38rem;
    margin-top: 0.5rem;
}
.home-paths-item--3 {
    grid-column: 6 / -1;
    grid-row: 3;
    justify-self: end;
    max-width: 40rem;
    margin-top: 1rem;
}
.home-paths-item--4 {
    grid-column: 1 / 6;
    grid-row: 4;
    justify-self: start;
    max-width: 36rem;
    margin-top: 0.25rem;
}

.home-paths-item__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.home-paths-item__media {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.home-paths-item__image,
.home-paths-item__placeholder {
    display: block;
    width: 100%;
    height: auto;
    min-height: 200px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 1s var(--lyre-ease-smooth),
                filter 0.5s ease;
}

.home-paths-item__placeholder {
    background: linear-gradient(160deg, #191f2a 0%, #2d2436 50%, #1a212f 100%);
}
.home-paths-item__placeholder--sea {
    background: linear-gradient(155deg, #1d2b3a 0%, #2c4054 50%, #1a2735 100%);
}
.home-paths-item__placeholder--memory {
    background: linear-gradient(155deg, #2b2620 0%, #3c3327 50%, #241f1a 100%);
}

.home-paths-item__text {
    margin-top: 1.5rem;
    max-width: 100%;
}

.home-paths-item__meta {
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
    color: var(--text-secondary);
}

.home-paths-item__title {
    font-family: 'Crimson Pro', 'Lora', serif;
    font-size: 1.375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 0 0 0.35rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.home-paths-item__subtitle {
    font-family: 'Lora', serif;
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0 0 0.85rem;
    color: var(--text-secondary);
}

.home-paths-item__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-bottom: 0.06em;
    border-bottom: 1px solid rgba(43, 43, 43, 0.28);
    color: var(--text-primary);
    transition: border-color 0.3s ease, color 0.3s ease, gap 0.3s ease;
}

.home-paths-item__cta-arrow {
    font-size: 0.95rem;
    opacity: 0.85;
    transition: transform 0.35s var(--lyre-ease-smooth);
}

html:not(.day-mode) .home-paths-item__title {
    color: var(--text-night);
}
html:not(.day-mode) .home-paths-item__cta {
    border-bottom-color: rgba(231, 231, 231, 0.32);
}

/* Hover: subtle, premium */
.home-paths-item__link:hover .home-paths-item__image {
    transform: scale(1.02);
}
.home-paths-item__link:hover .home-paths-item__title {
    color: var(--text-primary);
}
html:not(.day-mode) .home-paths-item__link:hover .home-paths-item__title {
    color: rgba(255, 255, 255, 0.98);
}
.home-paths-item__link:hover .home-paths-item__cta {
    border-bottom-color: rgba(43, 43, 43, 0.55);
    gap: 0.5rem;
}
.home-paths-item__link:hover .home-paths-item__cta-arrow {
    transform: translateX(2px);
}
html:not(.day-mode) .home-paths-item__link:hover .home-paths-item__cta {
    border-bottom-color: rgba(231, 231, 231, 0.55);
}

/* Tablet: simplified staggered, still editorial */
@media (max-width: 900px) {
    .home-featured-paths {
        padding: 4rem 1.25rem 5rem;
    }
    .home-featured-paths-header {
        margin-bottom: 3rem;
    }
    .home-paths-layout {
        grid-template-columns: 1fr 1fr;
        row-gap: 3.5rem;
        column-gap: 1.5rem;
    }
    .home-paths-item--1 {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        max-width: 100%;
    }
    .home-paths-item--2 {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        max-width: 100%;
    }
    .home-paths-item--3 {
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
        max-width: 100%;
    }
    .home-paths-item--4 {
        grid-column: 1;
        grid-row: 4;
        justify-self: start;
        max-width: 100%;
    }
}

/* Mobile: stack vertically, generous spacing, no cards */
@media (max-width: 640px) {
    .home-featured-paths {
        padding: 3.5rem 1rem 4.5rem;
    }
    .home-featured-paths-header {
        margin-bottom: 2.5rem;
    }
    .home-paths-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        row-gap: 3rem;
    }
    .home-paths-item--1,
    .home-paths-item--2,
    .home-paths-item--3,
    .home-paths-item--4 {
        grid-column: 1;
        grid-row: auto;
        justify-self: stretch;
        max-width: none;
    }
    .home-paths-item__text {
        max-width: none;
    }
}

/* ========================================
   HOMEPAGE MOTION — Révélation hero en séquence
   Délais JS (intro, CTA, footer) : public/assets/js/home_motion.js.
   .home-reveal / #home-pourquoi : IntersectionObserver dans le même fichier.
   ======================================== */
/* Hero plein écran : apparition douce de la scène */
.home2-page .home-hero-fullscreen {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.15s var(--lyre-ease-reveal),
                transform 0.15s var(--lyre-ease-reveal);
}

/* Intro outro: pre-reveal uniquement du decor du hero pour une transition de fond continue. */
.home2-page.home-intro-outro .home-hero-fullscreen {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

.home2-page.home-intro-outro .home-hero-fullscreen__inner {
    opacity: 0;
}

.home2-page.home-revealed .home-hero-fullscreen,
.home2-page.home-hero-paint-visible:not(.home-revealed) .home-hero-fullscreen {
    opacity: 1;
    transform: translateY(0);
}

/* Pas de transition sur le shell hero lors du premier paint de secours (évite un flash puis un second mouvement) */
.home2-page.home-hero-paint-visible:not(.home-revealed) .home-hero-fullscreen {
    transition: none;
}

.home2-page.home-revealed .home-hero-fullscreen__inner,
.home2-page.home-hero-paint-visible:not(.home-revealed) .home-hero-fullscreen__inner {
    opacity: 1;
}

.home2-page .hero-reading-author,
.home2-page .hero-reading-verses,
.home2-page .hero-reading-cta {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.42s var(--lyre-ease-smooth),
                transform 0.42s var(--lyre-ease-smooth);
}

.home2-page.home-revealed .hero-reading-author {
    margin-bottom: 2rem;
    margin-top: 1rem;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.12s;
}
.home2-page.home-revealed .hero-reading-verses {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.home2-page.home-revealed .hero-reading-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.28s;
}

/* Quand le typewriter est actif, le CTA reste caché puis apparaît après la dernière lettre */
.home2-page.home-revealed .hero-reading-daily--has-verses .hero-reading-cta {
    opacity: 0;
    transform: translateY(10px);
    transition-delay: 0s;
}
.home2-page.home-revealed .hero-reading-daily--has-verses .hero-reading-cta.hero-reading-cta--visible {
    opacity: 1;
    transform: translateY(0);
    transition-duration: 0.55s;
    transition-delay: 0s;
}

/* Sections : reveal au scroll — courbe douce pour une apparition fluide */
.home-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.75s var(--lyre-ease-reveal),
                transform 0.75s var(--lyre-ease-reveal);
}

.home-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.home-reveal-stagger .home-featured-paths-title,
.home-reveal-stagger .home-featured-paths-subtitle,
.home-reveal-stagger .home-paths-item,
.home-reveal-stagger .home-daily-poem__label,
.home-reveal-stagger .home-daily-poem__title,
.home-reveal-stagger .home-daily-poem__author,
.home-reveal-stagger .home-daily-poem__excerpt,
.home-reveal-stagger .home-daily-poem__cta {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.7s var(--lyre-ease-reveal),
                transform 0.7s var(--lyre-ease-reveal);
}

.home-reveal-stagger.revealed .home-featured-paths-title {
    transition-delay: 0.02s;
    opacity: 1;
    transform: translateY(0);
}
.home-reveal-stagger.revealed .home-featured-paths-subtitle {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.home-reveal-stagger.revealed .home-daily-poem__label { transition-delay: 0.02s; }
.home-reveal-stagger.revealed .home-daily-poem__title { transition-delay: 0.1s; }
.home-reveal-stagger.revealed .home-daily-poem__author { transition-delay: 0.22s; }
.home-reveal-stagger.revealed .home-daily-poem__excerpt { transition-delay: 0.35s; }
.home-reveal-stagger.revealed .home-daily-poem__cta { transition-delay: 0.5s; }

/* Parcours éditoriaux : apparition en domino des items */
.home-reveal-stagger.revealed .home-paths-item:nth-child(1) {
    transition-delay: 0.08s;
    opacity: 1;
    transform: translateY(0);
}
.home-reveal-stagger.revealed .home-paths-item:nth-child(2) {
    transition-delay: 0.22s;
    opacity: 1;
    transform: translateY(0);
}
.home-reveal-stagger.revealed .home-paths-item:nth-child(3) {
    transition-delay: 0.36s;
    opacity: 1;
    transform: translateY(0);
}
.home-reveal-stagger.revealed .home-paths-item:nth-child(4) {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateY(0);
}

/* CTA hero : hover géré dans le bloc .hero-reading-cta ci-dessus */

/* Bloc Poème du jour (homepage) */
.home-daily-poem {
    max-width: 40rem;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    border-top: 1px solid rgba(43, 43, 43, 0.08);
}

html:not(.day-mode) .home-daily-poem {
    border-top-color: var(--lyre-night-border-soft);
}

.home-daily-poem__label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 1rem;
    color: var(--text-secondary);
}

html:not(.day-mode) .home-daily-poem__label {
    color: rgba(231, 231, 231, 0.6);
}

.home-daily-poem__title {
    font-family: 'Crimson Pro', 'Lora', serif;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

html:not(.day-mode) .home-daily-poem__title {
    color: var(--text-night);
}

.home-daily-poem__author {
    font-size: 0.9375rem;
    margin: 0 0 1rem;
    color: var(--text-secondary);
}

html:not(.day-mode) .home-daily-poem__author {
    color: rgba(231, 231, 231, 0.75);
}

.home-daily-poem__author a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.06em;
    transition: opacity 0.2s ease;
}

.home-daily-poem__author a:hover {
    opacity: 0.85;
}

.home-daily-poem__excerpt {
    font-family: 'Lora', serif;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 1.25rem;
    color: var(--text-secondary);
    font-style: italic;
}

html:not(.day-mode) .home-daily-poem__excerpt {
    color: rgba(231, 231, 231, 0.8);
}

.home-daily-poem__cta {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.08em;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-daily-poem__cta:hover {
    opacity: 0.85;
    transform: translateX(2px);
}

html:not(.day-mode) .home-daily-poem__cta {
    color: var(--text-night);
}

/* Reduced motion : tout en place, pas d'animation */
@media (prefers-reduced-motion: reduce) {
    .home2-page .home-hero-fullscreen {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .home2-page .hero-reading-title,
    .home2-page .hero-reading-author,
    .home2-page .hero-reading-verses,
    .home2-page .hero-reading-verse-char,
    .home2-page .hero-reading-cta {
        opacity: 1;
        transform: none;
        transition: none;
        animation: none;
    }
    .home2-page.home-revealed .hero-reading-daily--has-verses .hero-reading-cta {
        opacity: 1;
        transform: none;
    }
    body.page-home .home-footer {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .home-reveal,
    .home-reveal-stagger .home-featured-paths-title,
    .home-reveal-stagger .home-featured-paths-subtitle,
    .home-reveal-stagger .home-paths-item,
    .home-reveal-stagger .home-daily-poem__label,
    .home-reveal-stagger .home-daily-poem__title,
    .home-reveal-stagger .home-daily-poem__author,
    .home-reveal-stagger .home-daily-poem__excerpt,
    .home-reveal-stagger .home-daily-poem__cta {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .home-pourquoi.home-pourquoi--choreo .home-pourquoi__inner,
    .home-pourquoi.home-pourquoi--choreo .home-pourquoi__title,
    .home-pourquoi.home-pourquoi--choreo .home-pourquoi__lede {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
    .home-pourquoi.home-pourquoi--choreo {
        pointer-events: auto !important;
    }
    .home-daily-poem__cta:hover {
        transform: none;
    }
    .hero-reading-cta:hover .hero-reading-cta__arrow {
        transform: none;
    }
    .home-paths-item__link:hover .home-paths-item__image,
    .home-paths-item__link:hover .home-paths-item__cta-arrow {
        transform: none;
    }
    .hero-reading-cta--immersive:hover {
        transform: none;
    }
    .hero-reading-cta--immersive:hover .hero-reading-cta__arrow {
        transform: none;
    }
    .home-poursuivre-card:hover,
    .home-poursuivre-card--featured:hover {
        transform: none;
    }
    .home-poursuivre-card:hover .home-poursuivre-card__img {
        transform: scale(1.02);
    }
    .home-poursuivre-card:hover .home-poursuivre-card__visual.js-gooey-hover .home-poursuivre-card__img {
        transform: none;
    }
    .home-poursuivre-card:hover .home-poursuivre-card__cta-arrow {
        transform: none;
    }
    .home-poursuivre-card:active {
        transform: none;
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .hero-reading:not(.home-hero-fullscreen__reading) {
        padding: 2rem 1.25rem 2.5rem;
    }
}



