/* home_bundle.css â€” poem_card + lyreval_shell + home_page + intro + gooey + teasers. RÃ©gÃ©nÃ©rer : scripts/merge-layout-css.ps1 */
/* ========================================
   STYLES POUR LES CARTES DE POÈMES
   Composant réutilisable utilisé sur :
   - Page d'accueil (home/index.html.twig)
   - Page auteur (author/show.html.twig)
   - Page tous les poèmes (poem/all.html.twig)
   ======================================== */

/* --- Élément de liste (poem-item) --- */
.poem-item {
    list-style: none;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.poem-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.poem-item.hidden {
    display: none;
}

/* Effet domino : délais progressifs pour chaque poème */
.poem-item:nth-child(1) { transition-delay: 0.1s; }
.poem-item:nth-child(2) { transition-delay: 0.2s; }
.poem-item:nth-child(3) { transition-delay: 0.3s; }
.poem-item:nth-child(4) { transition-delay: 0.4s; }
.poem-item:nth-child(5) { transition-delay: 0.5s; }
.poem-item:nth-child(6) { transition-delay: 0.6s; }
.poem-item:nth-child(7) { transition-delay: 0.7s; }
.poem-item:nth-child(8) { transition-delay: 0.8s; }
.poem-item:nth-child(9) { transition-delay: 0.9s; }
.poem-item:nth-child(10) { transition-delay: 1s; }

@media (prefers-reduced-motion: reduce) {
    .poem-item {
        transform: none;
        transition: opacity 0.3s ease;
        transition-delay: 0s !important;
    }
    .poem-item.visible {
        transform: none;
    }
}

/* --- Lien/Carte de poème (poem-link) --- */
.poem-link {
    display: block;
    position: relative;
    padding: 1.5rem 1.75rem;
    background: rgba(250, 247, 242, 0.5);
    border: 1px solid rgba(224, 214, 202, 0.35);
    border-radius: 8px;
    /* Ombre extrêmement diffuse */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    /* Texte sélectionnable */
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* Mode nuit : fond sombre */
html:not(.day-mode) .poem-link {
    background: var(--bg-night);
    border-color: rgba(224, 214, 202, 0.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

html:not(.day-mode) .poem-link::before {
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(231, 231, 231, 0.015) 2px,
        rgba(231, 231, 231, 0.015) 4px
    );
}

/* Contenu de la carte (au-dessus de l'effet papier) */
.poem-link > * {
    position: relative;
    z-index: 1;
}

/* Hover : surélévation légère avec ombre très légère */
.poem-link:hover {
    background: rgba(245, 240, 232, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

html:not(.day-mode) .poem-link:hover {
    background: rgba(20, 23, 28, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* --- Titre du poème (ancrage visuel) --- */
.poem-link-title {
    display: block;
    font-family: 'Crimson Pro', 'Lora', 'Georgia', serif;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    /* Pas de guillemets, jamais en capitales */
    text-transform: none;
    letter-spacing: normal;
}

html:not(.day-mode) .poem-link-title {
    color: var(--text-night);
}

.poem-link-title:hover {
    text-decoration: none;
    color: inherit;
}

/* --- Auteur (signature discrète) --- */
.poem-link-author {
    font-family: 'Crimson Pro', 'Lora', 'Georgia', serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
}

.poem-link-author-name {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

/* Hover très léger : soulignement fin */
.poem-link-author-name:hover {
    border-bottom-color: var(--text-secondary);
}

/* --- Extrait (cœur émotionnel) --- */
.poem-link-summary {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    /* 2 lignes max avec coupe franche (pas de "...") */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Interlignage confortable */
    max-height: calc(1.7em * 2);
}

/* --- Métadonnées (vers_count, form) - optionnel --- */
.poem-link-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-placeholder);
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.poem-meta-item {
    font-style: italic;
}

/* --- Année (repère silencieux en bas) --- */
.poem-link-year {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.75rem;
    color: var(--text-placeholder);
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 0.5rem;
    /* Placée en bas, alignée à gauche */
    text-align: left;
    opacity: 0.7;
}

/* --- Tags (optionnel) --- */
.poem-link-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.poem-tag {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--border-button);
    font-family: 'Lora', serif;
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    background: rgba(231, 231, 231, 0.02);
}

.poem-tag-not-clickable {
    cursor: default;
    pointer-events: none;
}

html.day-mode .poem-tag {
    background: rgba(26, 26, 26, 0.02);
}

.poem-tag:hover {
    color: var(--text-primary);
    border-color: var(--border-button);
    background: rgba(231, 231, 231, 0.04);
}

html.day-mode .poem-tag:hover {
    background: var(--bg-button-hover);
}

/* Structure interne : ordre strict */
.poem-link {
    display: flex;
    flex-direction: column;
}

/* S'assurer que la date est toujours en bas */
.poem-link-year {
    margin-top: auto;
}

/* Accessibilité : contraste WCAG AA vérifié pour tous les éléments */

/* Responsive : ajustements pour petits écrans */
@media (max-width: 768px) {
    .poem-link {
        padding: 1.25rem 1.5rem;
    }
    
    .poem-link-title {
        font-size: 1rem;
    }
    
    .poem-link-author {
        font-size: 0.85rem;
    }
    
    .poem-link-summary {
        font-size: 0.9rem;
    }
}


/* ========================================
   PAGE D'ACCUEIL 2 - DESIGN PREMIUM
   ======================================== */

/* Éviter le scroll horizontal sur la page d'accueil (body, pas main) pour ne pas forcer overflow-y: auto sur .home2-page */
body.page-home {
    overflow-x: hidden;
}

/* Retour sur l'accueil : pas de fondu depuis opacity 0 (sinon fond crème/blanc une fraction de seconde) */
body.page-home.home-intro-done .lyreval-page-content {
    animation: none;
    opacity: 1;
}

.home2-page {
    min-height: 100vh;
    /* Pas de padding-top ici ; le hero remonte sous le topbar transparent (voir --home-header-overlap) */
    transition: padding-top 0.4s var(--lyre-ease-smooth);
}

/*
 * Secours si .home-revealed n'est pas encore sur <main> au premier paint :
 * le bloc hero est sinon opacity:0 + translateY(12px) jusqu'à DOMContentLoaded (flash crème/blanc).
 */
body.page-home.home-intro-done .home2-page:not(.home-revealed) .home-hero-fullscreen {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

.home2-page__content {
    position: relative;
    z-index: 1;
}



/* ========================================
   HEADER NAVIGATION - Éditorial, sobre, premium
   ======================================== */

.home2-header {
    position: relative;
    z-index: 20;
    background: transparent;
    border-bottom: 1px solid rgba(231, 231, 231, 0.22);
    transition: border-color 0.25s ease;
}

/* Header non-sticky : pas de comportement compact au scroll */
.home2-header.scrolled {
    border-bottom-color: rgba(231, 231, 231, 0.26);
}

html.day-mode .home2-header {
    background: transparent;
    border-bottom-color: rgba(90, 82, 73, 0.22);
}

html.day-mode .home2-header.scrolled {
    border-bottom-color: rgba(90, 82, 73, 0.26);
}

/* Header déjà vu cette session : affichage immédiat sans ré-animation à chaque navigation */
html.home2-header-seen .home2-header {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}
html.home2-header-seen .home2-header-container > .home2-header-left,
html.home2-header-seen .home2-header-container > .home2-header-logo-center,
html.home2-header-seen .home2-header-container > .home2-header-nav,
html.home2-header-seen .home2-header-container > .home2-header-right {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Contenu du header : apparition en cascade (logo → nav → recherche/compte) */
/* Sur les pages sans intro : animation au load */
body:not(.page-home) .home2-header-container > .home2-header-left,
body:not(.page-home) .home2-header-container > .home2-header-logo-center,
body:not(.page-home) .home2-header-container > .home2-header-nav,
body:not(.page-home) .home2-header-container > .home2-header-right {
    opacity: 0;
    transform: translateY(10px);
    animation: headerItemReveal 0.5s var(--lyre-ease-reveal) forwards;
}

body:not(.page-home) .home2-header-container > .home2-header-left { animation-delay: 0.12s; }
body:not(.page-home) .home2-header-container > .home2-header-logo-center { animation-delay: 0.15s; }
body:not(.page-home) .home2-header-container > .home2-header-nav { animation-delay: 0.18s; }
body:not(.page-home) .home2-header-container > .home2-header-right { animation-delay: 0.24s; }

/* Homepage : cascade déclenchée à la fin de l'intro */
body.page-home .home2-header-container > .home2-header-left,
body.page-home .home2-header-container > .home2-header-logo-center,
body.page-home .home2-header-container > .home2-header-nav,
body.page-home .home2-header-container > .home2-header-right {
    opacity: 0;
    transform: translateY(10px);
    animation: none;
}

body.page-home.home-intro-done .home2-header-container > .home2-header-left,
body.page-home.home-intro-done .home2-header-container > .home2-header-logo-center,
body.page-home.home-intro-done .home2-header-container > .home2-header-nav,
body.page-home.home-intro-done .home2-header-container > .home2-header-right {
    animation: headerItemReveal 0.5s var(--lyre-ease-reveal) forwards;
}

body.page-home.home-intro-done .home2-header-container > .home2-header-left { animation-delay: 0.08s; }
body.page-home.home-intro-done .home2-header-container > .home2-header-logo-center { animation-delay: 0.11s; }
body.page-home.home-intro-done .home2-header-container > .home2-header-nav { animation-delay: 0.15s; }
body.page-home.home-intro-done .home2-header-container > .home2-header-right { animation-delay: 0.21s; }

@keyframes headerItemReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Référencé par le media query mobile ; sans keyframes l'animation est ignorée (comportement imprévisible) */
@keyframes headerBarReveal {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home2-header-container {
    margin: 0 auto;
    padding: 1.1rem 2.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3.25rem;
    transition: padding 0.35s ease;
}

/* Logo — ancrage visuel à gauche (burger + Lyreval) */
.home2-header-left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Sur mobile uniquement : même typo, Lyreval centré dans la barre */
.home2-header-logo-center {
    display: none;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.home2-header-logo-center:hover {
    opacity: 0.88;
}

.home2-header-logo-center:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 3px;
}

.home2-burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.25rem 0.25rem -0.25rem 0;
    transition: opacity 0.2s ease;
}

.home2-burger-menu:hover {
    opacity: 0.85;
}

.home2-burger-menu:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 2px;
}

.home2-burger-line {
    width: 22px;
    height: 1.5px;
    background: rgba(231, 231, 231, 0.9);
    transition: all 0.25s ease;
    display: block;
}

html.day-mode .home2-burger-line {
    background: var(--text-primary);
}

.home2-burger-menu.active .home2-burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.home2-burger-menu.active .home2-burger-line:nth-child(2) {
    opacity: 0;
}

.home2-burger-menu.active .home2-burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.home2-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.home2-logo:hover {
    opacity: 0.88;
}

.home2-logo:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 3px;
}

.home2-logo-image {
    display: none;
}

.home2-logo-text {
    font-family: 'Crimson Pro', 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(231, 231, 231, 0.98);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

html.day-mode .home2-logo-text {
    color: var(--text-primary);
}

/* Navigation — hiérarchie claire, états discrets */
.home2-header-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2.75rem;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.home2-nav-link {
    font-family: 'Lora', serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(231, 231, 231, 0.8);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s ease, opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 0.25rem 0;
    white-space: nowrap;
}

.home2-nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.2em;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.22s ease, opacity 0.22s ease;
    opacity: 0.4;
}

.home2-nav-link:hover {
    color: rgba(231, 231, 231, 0.96);
}

.home2-nav-link:hover::after {
    width: 100%;
    opacity: 0.85;
}

.home2-nav-link.active {
    color: rgba(231, 231, 231, 0.98);
}

.home2-nav-link.active::after {
    width: 100%;
    opacity: 1;
}

.home2-nav-link:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 2px;
}

html.day-mode .home2-nav-link {
    color: rgba(43, 43, 43, 0.78);
}

html.day-mode .home2-nav-link:hover {
    color: var(--text-primary);
}

html.day-mode .home2-nav-link.active {
    color: var(--text-primary);
}

/* Menu déroulant Bibliothèque */
.home2-nav-dropdown {
    position: relative;
}

/* Même style que les autres liens nav (Accueil, Carnet, etc.) */
.home2-nav-dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Lora', serif;
    font-size: 0.8125rem;
    font-weight: 400;
    padding: 0.35rem 0;
}

.home2-nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0.4rem);
    min-width: max-content;
    padding: 0.35rem 0;
    background: rgba(18, 20, 24, 0.98);
    border: 1px solid var(--lyre-night-border-soft);
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 10001;
}

.home2-nav-dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0.25rem);
}

.home2-nav-dropdown-link {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: rgba(231, 231, 231, 0.9);
    text-decoration: none;
    text-align: left;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    transition: background 0.15s ease, color 0.15s ease;
}

.home2-nav-dropdown-link:hover {
    background: rgba(231, 231, 231, 0.06);
    color: #fff;
}

.home2-nav-dropdown-link.active {
    color: rgba(231, 231, 231, 1);
    background: rgba(231, 231, 231, 0.08);
    cursor: default;
}

.home2-nav-dropdown-link.active:hover {
    background: rgba(231, 231, 231, 0.08);
    color: rgba(231, 231, 231, 1);
}

html.day-mode .home2-nav-dropdown-menu {
    background: rgba(252, 250, 247, 0.98);
    border-color: rgba(90, 82, 73, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

html.day-mode .home2-nav-dropdown-link {
    color: var(--text-primary);
}

html.day-mode .home2-nav-dropdown-link:hover {
    background: rgba(90, 82, 73, 0.08);
}

html.day-mode .home2-nav-dropdown-link.active {
    color: var(--text-primary);
    background: rgba(90, 82, 73, 0.1);
}

html.day-mode .home2-nav-dropdown-link.active:hover {
    background: rgba(90, 82, 73, 0.1);
    color: var(--text-primary);
}

.home2-nav-icon {
    width: 14px;
    height: 14px;
    opacity: 0.75;
}

/* Header right : recherche + compte — même hauteur, alignement vertical */
.home2-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    min-height: 0;
}

.home2-search-trigger-wrap,
.home2-auth-trigger-wrap {
    display: flex;
    align-items: center;
}

.home2-header-right .home2-search-button,
.home2-header-right .home2-auth-link {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    box-sizing: border-box;
}

/* Séparateur discret entre recherche et compte */
.home2-header-divider {
    width: 1px;
    height: 1.1rem;
    background: rgba(231, 231, 231, 0.14);
    flex-shrink: 0;
}

html.day-mode .home2-header-divider {
    background: rgba(43, 43, 43, 0.18);
}

/* Compte — même structure que la recherche (wrap + cercle icône) pour taille identique */
.home2-auth-trigger-wrap {
    position: relative;
}

.home2-auth-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Pas de soulignement au survol/tap : comportement bouton comme la recherche */
.home2-auth-link::after {
    display: none;
}

.home2-auth-link:hover {
    opacity: 0.92;
}

.home2-auth-link:focus-visible .home2-auth-button-inner {
    box-shadow: 0 0 0 2px currentColor;
}

.home2-auth-button-inner {
    width: auto;
    height: auto;
    border-radius: 999px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, box-shadow 0.18s ease;
    flex-shrink: 0;
}

html.day-mode .home2-auth-button-inner {
    background: transparent;
}

.home2-auth-link:hover .home2-auth-button-inner {
    background: rgba(255, 255, 255, 0.08);
}

html.day-mode .home2-auth-link:hover .home2-auth-button-inner {
    background: rgba(43, 43, 43, 0.05);
}

.home2-auth-link:active .home2-auth-button-inner {
    box-shadow: none;
}

/* Icône compte : couleur distincte de la recherche (ton chaud, éditorial) */
.home2-auth-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(212, 190, 155, 0.95);
    transition: color 0.2s ease;
}

.home2-auth-link:hover .home2-auth-link-icon {
    color: rgba(230, 215, 185, 1);
}

html.day-mode .home2-auth-link-icon {
    color: rgba(100, 82, 58, 0.85);
}

html.day-mode .home2-auth-link:hover .home2-auth-link-icon {
    color: rgba(80, 65, 45, 1);
}

/* ========================================
   RECHERCHE — déclencheur éditorial
   ======================================== */

.home2-search-trigger-wrap {
    position: relative;
}

.home2-search-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    position: relative;
    z-index: 10003;
    transition: opacity 0.2s ease;
}

.home2-search-button:hover {
    opacity: 0.92;
}

.home2-search-button:focus-visible {
    outline: none;
}

.home2-search-button:focus-visible .home2-search-button-inner {
    box-shadow: 0 0 0 2px currentColor;
}

.home2-search-button-inner {
    width: auto;
    height: auto;
    border-radius: 999px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, box-shadow 0.18s ease;
    position: relative;
}

html.day-mode .home2-search-button-inner {
    background: transparent;
}

.home2-search-button:hover .home2-search-button-inner {
    background: rgba(255, 255, 255, 0.08);
}

html.day-mode .home2-search-button:hover .home2-search-button-inner {
    background: rgba(43, 43, 43, 0.05);
}

.home2-search-button:active .home2-search-button-inner {
    transform: scale(0.97);
}

.home2-search-icon,
.home2-search-close-icon {
    width: 18px;
    height: 18px;
    color: rgba(231, 231, 231, 0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
}

html.day-mode .home2-search-icon,
html.day-mode .home2-search-close-icon {
    color: var(--text-primary);
}

.home2-search-close-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.85);
}

.home2-search-button.active .home2-search-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.85);
}

.home2-search-button.active .home2-search-close-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
    display: block !important;
}

/* Label "Recherche" — visible sur desktop, discret */
.home2-search-label {
    font-family: 'Lora', serif;
    font-size: 0.8125rem;
    color: var(--lyre-night-text-muted);
    letter-spacing: 0.02em;
    transition: color 0.2s ease, font-size 0.35s ease;
}

.home2-search-button:hover .home2-search-label {
    color: rgba(231, 231, 231, 0.9);
}

html.day-mode .home2-search-label {
    color: var(--text-secondary);
}

html.day-mode .home2-search-button:hover .home2-search-label {
    color: var(--text-primary);
}

html.day-mode .home2-language {
    color: var(--text-primary);
}





/* Footer — clôture éditoriale (pages avec home_footer) */
.home2-footer-wrapper {
    max-width: min(720px, 92vw);
    margin: 6rem auto 2.5rem;
    padding: 0 1.5rem;
}

.home-footer {
    box-sizing: border-box;
    max-width: min(748px, 94vw);
    margin: 5rem auto 3rem;
    padding: 0 clamp(1.25rem, 4vw, 1.75rem);
    text-align: left;
    font-family: 'Lora', serif;
    color: rgba(231, 231, 231, 0.72);
}

html.day-mode .home-footer {
    color: var(--text-secondary);
}

/* Page d'accueil : footer révélé après le CTA / au scroll (timers : public/assets/js/home_motion.js) */
body.page-home .home-footer {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.52s var(--lyre-ease-smooth),
                transform 0.52s var(--lyre-ease-smooth);
}

body.page-home .home-footer.revealed {
    opacity: 1;
    transform: translateY(0);
}

.home-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}


.home-footer__nav {
    width: 100%;
    margin-bottom: 2.65rem;
}

/* Grille : léger déséquilibre des largeurs pour éviter le « template 3× égal » sans casser la lecture */
.home-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, 0.92fr);
    column-gap: clamp(1.35rem, 3.5vw, 2.15rem);
    row-gap: 2.35rem;
    align-items: start;
    padding-top: 0.15rem;
}

/* Intertitres : ton manuscrit / revue, pas libellés UI en petites capitales serrées */
.home-footer__group-title {
    font-family: 'Lora', serif;
    font-size: 0.8125rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.06em;
    text-transform: none;
    margin: 0 0 1.05rem;
    color: rgba(231, 231, 231, 0.52);
}

html.day-mode .home-footer__group-title {
    color: var(--text-placeholder);
    opacity: 0.92;
}

.home-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

.home-footer__list li {
    margin: 0;
}

/* Liens : lisibles ; soulignement révélé ; flèche réservée à l’invitation finale */
.home-footer__link {
    display: inline-block;
    padding: 0.38rem 0;
    font-size: 0.9375rem;
    line-height: 1.48;
    color: rgba(231, 231, 231, 0.9);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 0.24em;
    text-decoration-thickness: 1px;
    transition: text-decoration-color 0.22s ease, color 0.22s ease, opacity 0.22s ease;
    opacity: 0.93;
}

html.day-mode .home-footer__link {
    color: var(--text-primary);
    opacity: 0.91;
}

.home-footer__link:hover {
    text-decoration-color: currentColor;
    opacity: 1;
}

.home-footer__link:focus-visible {
    outline: 1px dotted rgba(231, 231, 231, 0.55);
    outline-offset: 3px;
    opacity: 1;
}

html.day-mode .home-footer__link:focus-visible {
    outline-color: rgba(90, 82, 73, 0.5);
}

/* Bas de page : une bande lisible (identité + dernière porte) plutôt que deux lignes déconnectées */
.home-footer__bottom {
    padding-top: 1.85rem;
    margin-top: 0.15rem;
    border-top: 1px solid rgba(231, 231, 231, 0.1);
}

html.day-mode .home-footer__bottom {
    border-top-color: rgba(90, 82, 73, 0.12);
}

.home-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem 2rem;
    row-gap: 1.15rem;
}

.home-footer__colophon {
    margin: 0;
    flex: 1 1 12rem;
    min-width: min(100%, 16rem);
    font-size: 0.8125rem;
    line-height: 1.65;
    color: rgba(231, 231, 231, 0.62);
}

html.day-mode .home-footer__colophon {
    color: var(--text-secondary);
}

.home-footer__copyright,
.home-footer__strapline {
    display: inline;
}

.home-footer__dot {
    margin: 0 0.4em;
    opacity: 0.42;
    user-select: none;
}

/* Dernière invitation : même famille que le texte, à part entière du geste de fin */
.home-footer__invite {
    flex: 0 1 auto;
    align-self: center;
    font-family: 'Lora', serif;
    font-size: 0.875rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.5;
    color: rgba(231, 231, 231, 0.88);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.12em;
    transition: color 0.22s ease, opacity 0.22s ease, border-color 0.22s ease;
    opacity: 0.94;
}

html.day-mode .home-footer__invite {
    color: var(--text-primary);
    opacity: 0.93;
}

.home-footer__invite:hover {
    opacity: 1;
    border-bottom-color: rgba(231, 231, 231, 0.35);
}

html.day-mode .home-footer__invite:hover {
    border-bottom-color: rgba(90, 82, 73, 0.35);
}

.home-footer__invite:focus-visible {
    outline: 1px dotted rgba(231, 231, 231, 0.55);
    outline-offset: 4px;
    opacity: 1;
}

html.day-mode .home-footer__invite:focus-visible {
    outline-color: rgba(90, 82, 73, 0.5);
}

.home-footer__invite-arrow {
    display: inline-block;
    margin-left: 0.28em;
    transition: transform 0.25s var(--lyre-ease-smooth);
}

.home-footer__invite:hover .home-footer__invite-arrow {
    transform: translateX(0.12em);
}

/*
 * Footer — composition mobile (≤720px) : dernière page d’un journal, pas un plan de site compressé.
 * Repli intentionnel : phrase centrée, colonnes empilées dans un cadre étroit centré, texte aligné à gauche,
 * air entre les blocs, invitation finale distincte. Le desktop au-dessus de ce breakpoint reste inchangé.
 */
@media (max-width: 720px) {
    .home2-footer-wrapper {
        max-width: min(26rem, calc(100vw - 2rem));
        margin: 3.25rem auto 2.75rem;
        padding: 0 1rem;
    }

    .home-footer {
        max-width: min(26rem, calc(100vw - 2rem));
        margin: 3.5rem auto 3.25rem;
        padding: 2.75rem 1.25rem 3.5rem;
    }



    /* Nav : bloc centré, contenu aligné à gauche pour une lecture naturelle au pouce */
    .home-footer__nav {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2.85rem;
        max-width: min(22.5rem, 100%);
        width: 100%;
    }

    .home-footer__grid {
        grid-template-columns: 1fr;
        row-gap: 0;
        column-gap: 0;
        padding-top: 0;
    }

    /* Séparateurs très discrets entre groupes : pause visuelle sans empiler le vide */
    .home-footer__group + .home-footer__group {
        margin-top: 2.5rem;
        padding-top: 2.5rem;
        border-top: 1px solid rgba(231, 231, 231, 0.08);
    }

    html.day-mode .home-footer__group + .home-footer__group {
        border-top-color: rgba(90, 82, 73, 0.1);
    }

    .home-footer__group-title {
        margin-bottom: 1rem;
        font-size: 0.84375rem;
        letter-spacing: 0.07em;
    }

    .home-footer__list {
        gap: 0.2rem;
    }

    .home-footer__link {
        display: flex;
        align-items: center;
        min-height: 2.875rem;
        padding: 0.45rem 0;
        font-size: 1rem;
        line-height: 1.45;
        -webkit-tap-highlight-color: transparent;
    }

    /* Bas de page : métadonnées empilées, puis dernière ligne comme envolée */
    .home-footer__bottom {
        padding-top: 2.15rem;
        margin-top: 0.35rem;
        max-width: min(22.5rem, 100%);
        margin-left: auto;
        margin-right: auto;
    }

    .home-footer__bottom-inner {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
    }

    /* Copyright et ligne de mission sur deux lignes lisibles (on retire le point médian) */
    .home-footer__colophon {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
        text-align: left;
        font-size: 0.8125rem;
        line-height: 1.55;
        flex: none;
        min-width: 0;
        color: rgba(231, 231, 231, 0.68);
    }

    html.day-mode .home-footer__colophon {
        opacity: 0.98;
    }

    .home-footer__dot {
        display: none;
    }

    .home-footer__invite {
        align-self: flex-start;
        margin-top: 2rem;
        padding-top: 1.65rem;
        border-top: 1px solid rgba(231, 231, 231, 0.12);
        font-size: 0.96875rem;
        line-height: 1.45;
        width: 100%;
        max-width: 100%;
        padding-bottom: 0.2em;
    }

    html.day-mode .home-footer__invite {
        border-top-color: rgba(90, 82, 73, 0.14);
    }

    .home-footer__invite-arrow {
        margin-left: 0.32em;
    }

    /* Touch : léger retour au tap sans effet « bouton app » */
    .home-footer__link:active,
    .home-footer__invite:active {
        opacity: 0.88;
    }

    html.day-mode .home-footer__link:active,
    html.day-mode .home-footer__invite:active {
        opacity: 0.9;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-footer__link,
    .home-footer__invite,
    .home-footer__invite-arrow {
        transition: none;
    }

    .home-footer__invite:hover .home-footer__invite-arrow {
        transform: none;
    }

    body.page-home .home-footer {
        transition: none;
    }
}

/* ========================================
   MENU LATÉRAL MOBILE
   ======================================== */

.home2-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.home2-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.home2-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-day);
    z-index: 10002;
    transform: translateX(-100%);
    transition: transform 0.3s var(--lyre-ease-smooth);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

html:not(.day-mode) .home2-sidebar {
    background: var(--bg-night);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
}

.home2-sidebar.active {
    transform: translateX(0);
}

.home2-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(90, 82, 73, 0.15);
}

html:not(.day-mode) .home2-sidebar-header {
    border-bottom-color: rgba(231, 231, 231, 0.15);
}

.home2-sidebar-logo {
    text-decoration: none;
}

.home2-sidebar-logo-text {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

html:not(.day-mode) .home2-sidebar-logo-text {
    color: rgba(231, 231, 231, 0.95);
}

.home2-sidebar-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home2-sidebar-close:hover {
    opacity: 0.7;
}

html:not(.day-mode) .home2-sidebar-close {
    color: rgba(231, 231, 231, 0.9);
}

.home2-sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.home2-sidebar-link {
    font-family: 'Lora', serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(90, 82, 73, 0.1);
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

html:not(.day-mode) .home2-sidebar-link {
    color: rgba(231, 231, 231, 0.85);
    border-bottom-color: rgba(231, 231, 231, 0.1);
}

/* Annule le style :visited du navigateur (ex. lien /rechercher déjà consulté) */
.home2-sidebar-link:link,
.home2-sidebar-link:visited {
    color: var(--text-primary);
}

html:not(.day-mode) .home2-sidebar-link:link,
html:not(.day-mode) .home2-sidebar-link:visited {
    color: rgba(231, 231, 231, 0.85);
}

.home2-sidebar-link:hover {
    background: rgba(90, 82, 73, 0.05);
    color: var(--text-primary);
}

html:not(.day-mode) .home2-sidebar-link:hover {
    background: rgba(231, 231, 231, 0.05);
    color: rgba(231, 231, 231, 1);
}

.home2-sidebar-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

/* Sidebar : bouton — bords latéraux/haut retirés (UA), même filet bas que .home2-sidebar-link (pas border:none global) */
.home2-sidebar-search-trigger {
    width: 100%;
    text-align: left;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(90, 82, 73, 0.1);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.home2-sidebar-search-trigger:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    /* Apparition de la barre supérieure sur mobile (glissement + contenu en cascade) */
    body.page-home.home-intro-done .home2-header {
        animation: headerBarReveal 0.5s var(--lyre-ease-reveal) 0.04s forwards;
    }
    body.page-home .home2-header-container > .home2-header-left,
    body.page-home .home2-header-container > .home2-header-logo-center {
        opacity: 0;
        transform: translateY(-8px);
    }
    body.page-home.home-intro-done .home2-header-container > .home2-header-left {
        animation: headerItemReveal 0.4s var(--lyre-ease-reveal) 0.1s forwards;
    }
    body.page-home.home-intro-done .home2-header-container > .home2-header-logo-center {
        animation: headerItemReveal 0.4s var(--lyre-ease-reveal) 0.2s forwards;
    }

    .home2-header-container {
        padding: 0.75rem 1rem;
        gap: 1rem;
    }

    .home2-header.scrolled .home2-header-container {
        padding: 0.5rem 1rem;
    }

    html.day-mode .home2-header {
        border: none;
        height: auto;
    }

    /* Mobile : burger à gauche, LYREVAL centré (lien dédié), pas de search/compte en barre */
    .home2-logo {
        display: none;
    }

    .home2-header-logo-center {
        display: flex;
        flex: 1;
        justify-content: center;
        align-items: center;
        min-width: 0;
        padding: 0 0.5rem;
    }

    .home2-burger-menu {
        display: flex;
    }

    .home2-header-nav {
        display: none; /* Cacher la nav sur mobile, utiliser le menu burger */
    }

    .home2-header-right {
        display: none; /* Recherche et compte dans le menu burger */
    }

    .home2-search-label {
        display: none;
    }

    .home2-auth-link-text {
        display: none;
    }

    /* Hero mobile (hors plein écran) */
    .hero-reading:not(.home-hero-fullscreen__reading) {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .hero-reading-daily,
    .hero-reading-daily.hero-reading-daily--has-verses {
        gap: 0;
    }
    .hero-reading-cta:not(.hero-reading-cta--immersive) {
        min-height: auto;
        padding: 0.55rem 1.2rem;
        border-radius: 3px;
    }

    .home2-search-panel {
        width: calc(100vw - 2rem);
        right: -1rem;
    }

    /* Footer mobile : styles regroupés sous @media (max-width: 720px) pour éviter les conflits en cascade */
}

@media (prefers-reduced-motion: reduce) {
    .home2-header {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .home2-header-container > .home2-header-left,
    .home2-header-container > .home2-header-logo-center,
    .home2-header-container > .home2-header-nav,
    .home2-header-container > .home2-header-right {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

}





/* ========================================
   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: 62rem;
    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-nouveautes:focus,
#home-bibliotheque:focus,
#home-poursuivre:focus {
    outline: none;
}

.home-poursuivre {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: auto;
    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: 0 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    min-height: auto;
    padding: max(3rem, env(safe-area-inset-top, 0px))
        max(1rem, env(safe-area-inset-right, 0px))
        max(3.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;
    -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);
    }

    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 {
        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);
    text-decoration: none;
    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 {
    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);
}

/* 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 */

/* 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 {
        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;
    }
    .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;
    }
}





/* ========================================
   HOMEPAGE INTRO & MOTION SYSTEM
   Intro éditoriale : logo, marque, tagline
   Style Awwwards — cinématique, épuré
   ======================================== */

/* --- Couche atmosphère (fond vivant, très subtil) --- */
.home2-page.has-atmosphere {
    position: relative;
}

.home-atmosphere {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.home-atmosphere__gradient {
    position: absolute;
    inset: -20%;
    background: radial-gradient(
        ellipse 120% 80% at 50% 20%,
        rgba(255, 255, 255, 0.03) 0%,
        transparent 50%
    );
    animation: atmosphereBreath 25s ease-in-out infinite;
}

html:not(.day-mode) .home-atmosphere__gradient {
    background: radial-gradient(
        ellipse 120% 80% at 50% 15%,
        rgba(255, 255, 255, 0.02) 0%,
        transparent 45%
    );
}

@keyframes atmosphereBreath {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
    .home-atmosphere__gradient {
        animation: none;
        opacity: 0.8;
    }
}

/* --- Scroll verrouillé pendant l'intro (évite de décaler le hero derrière l'overlay) --- */
html.home-intro-lock {
    overflow: hidden;
}

html.home-intro-lock body {
    overflow: hidden;
    touch-action: none;
}

/* --- Overlay d'intro --- */
.home-intro {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-day);
    /* Opacité explicite + couche composite : fondu de sortie fluide (voile ivoire → contenu). */
    opacity: 1;
    transform: translateZ(0);
    transition: opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

html:not(.day-mode) .home-intro {
    background: var(--bg-night);
}

.home-intro.home-intro--done {
    pointer-events: none;
    opacity: 0;
}

/* Fond léger derrière le bloc (lueur douce) */
.home-intro__backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 115% 85% at 50% 42%,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.02) 45%,
        transparent 68%
    );
    pointer-events: none;
}

html:not(.day-mode) .home-intro__backdrop {
    background: radial-gradient(
        ellipse 115% 85% at 50% 42%,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.02) 48%,
        transparent 65%
    );
}

.home-intro__inner {
    position: relative;
    text-align: center;
    padding: clamp(1.5rem, 5vw, 3.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.25rem, 3vh, 2.5rem);
    width: min(96vw, 42rem);
    min-height: min(72vh, 38rem);
    transform: translateY(-4vh);
}

/* --- Logo (lyre) : apparition en douceur --- */
.home-intro__logo-wrap {
    position: relative;
    margin-bottom: 0;
    opacity: 0;
    transform: scale(0.94);
    animation: introLogoReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.home-intro__logo-wrap::after {
    content: '';
    position: absolute;
    inset: -45%;
    background: radial-gradient(
        ellipse 80% 80% at 50% 50%,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 70%
    );
    opacity: 0;
    animation: introLogoGlow 2s ease-out 0.3s forwards;
    pointer-events: none;
}

html:not(.day-mode) .home-intro__logo-wrap::after {
    background: radial-gradient(
        ellipse 80% 80% at 50% 50%,
        rgba(255, 255, 255, 0.06) 0%,
        transparent 70%
    );
}

@keyframes introLogoReveal {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes introLogoGlow {
    0% { opacity: 0; }
    40% { opacity: 1; }
    100% { opacity: 0.6; }
}

.home-intro__logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: clamp(11rem, 32vw, 19rem);
    max-height: clamp(13rem, 38vw, 22rem);
    object-fit: contain;
    filter: none;
}

/* Mode jour : logo sombre pour contraste */
html.day-mode .home-intro__logo {
    filter: brightness(0.15);
}

/* --- Titre Lyreval (lettre par lettre, effet harpe) --- */
.home-intro__title {
    font-family: 'Crimson Pro', 'Lora', serif;
    font-size: clamp(2.65rem, 10.5vw, 5.25rem);
    font-weight: 500;
    letter-spacing: 0.18em;
    margin: 0;
    color: var(--text-primary);
    display: inline-flex;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 0.12em;
    max-width: 100%;
    line-height: 1.05;
}

html:not(.day-mode) .home-intro__title {
    color: rgba(231, 231, 231, 0.98);
}

.home-intro__title-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px) scale(0.88);
    animation: introLetterPluck 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
    animation-delay: calc(0.65s + var(--i) * 0.09s);
}

@keyframes introLetterPluck {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.88);
    }
    55% {
        opacity: 1;
        transform: translateY(-2px) scale(1.06);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- Tagline --- */
.home-intro__tagline {
    font-family: 'Lora', serif;
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin: 0;
    opacity: 0;
    transform: translateY(8px);
    animation: introTaglineReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 1.05s forwards;
}

html:not(.day-mode) .home-intro__tagline {
    color: rgba(231, 231, 231, 0.78);
}

@keyframes introTaglineReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skip : tout apparaît vite */
.home-intro.home-intro--skip .home-intro__logo-wrap,
.home-intro.home-intro--skip .home-intro__tagline {
    animation-duration: 0.25s;
}

.home-intro.home-intro--skip .home-intro__logo-wrap {
    animation-delay: 0s;
}

.home-intro.home-intro--skip .home-intro__title-letter {
    animation-duration: 0.15s;
    animation-delay: calc(0.05s + var(--i) * 0.02s);
}

.home-intro.home-intro--skip .home-intro__tagline {
    animation-delay: 0.1s;
}

.home-intro.home-intro--skip .home-intro__logo-wrap::after {
    animation: none;
    opacity: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .home-intro {
        transition: opacity 0.28s ease-out;
    }
    .home-intro__logo-wrap,
    .home-intro__title-letter,
    .home-intro__tagline {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .home-intro__logo-wrap::after {
        animation: none;
        opacity: 0;
    }
}


/**
 * Styles minimaux pour le module GooeyHoverEffect.
 * À inclure sur les pages qui utilisent l’effet gooey.
 */

/* Canvas WebGL : derrière le contenu (Codrops : #scene z-index 3, contenu z-index 5) */
.gooey-hover-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Bloc cible : position relative pour que l’image ait des dimensions */
.js-gooey-hover {
  position: relative;
}

/* Cartes « Poursuivre » (home) : cible = .home-poursuivre-card__visual.js-gooey-hover (pas le lien) */
.home-poursuivre-card__visual.js-gooey-hover {
  overflow: hidden;
  /* Renforce home_page : base du visuel droite (joint au bandeau), même si un autre shorthand traîne */
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.home-poursuivre-card__visual.js-gooey-hover .home-poursuivre-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  /* border-radius ne descend pas aux enfants : sans ça, img { inherit } lisait 0 sur le média */
  border-radius: inherit;
}

/* Remplissage cover (texture WebGL alignée sur getBoundingClientRect du bloc visuel) */
.home-poursuivre-card__visual.js-gooey-hover .home-poursuivre-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  box-sizing: border-box;
  /* Même coins que le visuel (haut arrondi, bas nuls), y compris avant is-loaded */
  border-radius: inherit;
}

/* Zone image path-card : clipping cohérent avec le cadre (utilisé page Parcours, etc.) */
.path-card .path-card__media {
  overflow: hidden;
  border-radius: inherit;
}

/* Image : masquée une fois le mesh chargé ; la hitbox reste sur le parent */
.js-gooey-hover img.is-loaded {
  opacity: 0;
  pointer-events: auto;
}

/* Cartes « Poursuivre » : remplissage cover (hauteur explicite sur le bloc visuel) — pas de height:auto ici */
.js-gooey-hover:not(.home-poursuivre-card__visual) img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.3s ease;
}


/* Cartes nouveautés (accueil + archive) */

.catalog-teaser-card {
    border: 1px solid rgba(43, 43, 43, 0.08);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.55);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

html:not(.day-mode) .catalog-teaser-card {
    border-color: rgba(231, 231, 231, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.catalog-teaser-card__date {
    font-family: 'Lora', serif;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    margin: 0 0 0.85rem;
    color: rgba(43, 43, 43, 0.5);
}

html:not(.day-mode) .catalog-teaser-card__date {
    color: rgba(231, 231, 231, 0.45);
}

.catalog-teaser-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: clamp(0.85rem, 2vw, 1.15rem);
    align-items: stretch;
    min-height: 0;
}

.catalog-teaser-card--author .catalog-teaser-card__body,
.catalog-teaser-card--work .catalog-teaser-card__body {
    flex-direction: row;
    align-items: flex-start;
}

.catalog-teaser-card__media {
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(43, 43, 43, 0.06);
}

html:not(.day-mode) .catalog-teaser-card__media {
    background: rgba(231, 231, 231, 0.06);
}

.catalog-teaser-card__media--portrait {
    width: clamp(4.5rem, 12vw, 5.5rem);
    height: clamp(4.5rem, 12vw, 5.5rem);
}

.catalog-teaser-card__media--cover {
    width: clamp(3.5rem, 10vw, 4.5rem);
    min-height: 5rem;
}

.catalog-teaser-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-teaser-card__media--portrait .catalog-teaser-card__img {
    aspect-ratio: 1;
}

.catalog-teaser-card__media--cover .catalog-teaser-card__img {
    min-height: 5rem;
    object-fit: cover;
}

.catalog-teaser-card__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.catalog-teaser-card__headline {
    font-family: 'Crimson Pro', 'Lora', serif;
    font-size: clamp(1.2rem, 2.8vw, 1.55rem);
    font-weight: 500;
    margin: 0 0 0.35rem;
    line-height: 1.25;
    color: var(--text-primary);
}

html:not(.day-mode) .catalog-teaser-card__headline {
    color: rgba(231, 231, 231, 0.96);
}

.catalog-teaser-card__meta {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    font-style: italic;
    margin: 0 0 0.75rem;
    color: rgba(43, 43, 43, 0.6);
}

html:not(.day-mode) .catalog-teaser-card__meta {
    color: rgba(231, 231, 231, 0.55);
}

.catalog-teaser-card__description {
    flex: 1;
    font-family: 'Lora', serif;
    font-size: clamp(0.92rem, 1.65vw, 1.02rem);
    line-height: 1.6;
    margin: 0 0 0.85rem;
    color: rgba(43, 43, 43, 0.78);
}

html:not(.day-mode) .catalog-teaser-card__description {
    color: rgba(231, 231, 231, 0.72);
}

.catalog-teaser-card__poems {
    list-style: none;
    margin: 0 0 1.15rem;
    padding: 0;
    max-height: 9.5rem;
    overflow-y: auto;
    scrollbar-width: thin;
    border-top: 1px solid rgba(43, 43, 43, 0.07);
}

html:not(.day-mode) .catalog-teaser-card__poems {
    border-top-color: rgba(231, 231, 231, 0.08);
}

.catalog-teaser-card__poem {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(43, 43, 43, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

html:not(.day-mode) .catalog-teaser-card__poem {
    border-bottom-color: rgba(231, 231, 231, 0.06);
}

.catalog-teaser-card__poem-link {
    font-family: 'Crimson Pro', 'Lora', serif;
    font-size: 1rem;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.catalog-teaser-card__poem-link:hover {
    opacity: 0.75;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.catalog-teaser-card__poem-desc {
    font-family: 'Lora', serif;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(43, 43, 43, 0.58);
}

html:not(.day-mode) .catalog-teaser-card__poem-desc {
    color: rgba(231, 231, 231, 0.5);
}

.catalog-teaser-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'Lora', serif;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: inherit;
    margin-top: 0.25rem;
    transition: opacity 0.2s ease;
}

.catalog-teaser-card__cta:hover {
    opacity: 0.72;
}

.catalog-teaser-card__cta-arrow {
    transition: transform 0.2s ease;
}

.catalog-teaser-card__cta:hover .catalog-teaser-card__cta-arrow {
    transform: translateX(0.2em);
}

@media (max-width: 480px) {
    .catalog-teaser-card--author .catalog-teaser-card__body,
    .catalog-teaser-card--work .catalog-teaser-card__body {
        flex-direction: column;
    }

    .catalog-teaser-card__media--portrait,
    .catalog-teaser-card__media--cover {
        width: 100%;
        max-width: 5.5rem;
    }
}


/* Teaser accueil — layout carrousel (cartes : catalog_teaser.css) */

#home-nouveautes {
    scroll-margin-top: var(--home-header-overlap, 4.75rem);
}

.home-teaser {
    position: relative;
    z-index: 2;
    width: 100%;
    border-top: 1px solid rgba(43, 43, 43, 0.06);
    background: #faf7f2;
    box-sizing: border-box;
}

html:not(.day-mode) .home-teaser {
    border-top-color: rgba(231, 231, 231, 0.07);
    background: #0e1115;
}

.home-teaser__inner {
    max-width: min(72rem, 100%);
    margin: 0 auto;
    padding: clamp(3rem, 7vh, 4.5rem) 0 clamp(3.5rem, 8vh, 5rem);
    box-sizing: border-box;
}

.home-teaser .home-bibliotheque__header {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}

.home-teaser__archive-link {
    font-family: 'Lora', serif;
    font-size: 0.92rem;
    margin: 1rem 0 0;
}

.home-teaser__archive-link a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.home-teaser__archive-link a:hover {
    opacity: 1;
}

.home-teaser__track-wrap {
    width: 100%;
    overflow: hidden;
}

.home-teaser__list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: clamp(1rem, 2.5vw, 1.35rem);
    margin: 0;
    padding: 0.15rem max(1rem, env(safe-area-inset-right, 0px)) 0.85rem
        max(1rem, env(safe-area-inset-left, 0px));
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-inline: max(1rem, env(safe-area-inset-left, 0px));
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(43, 43, 43, 0.28) transparent;
}

html:not(.day-mode) .home-teaser__list {
    scrollbar-color: rgba(231, 231, 231, 0.22) transparent;
}

.home-teaser__list::-webkit-scrollbar {
    height: 6px;
}

.home-teaser__list::-webkit-scrollbar-track {
    background: transparent;
}

.home-teaser__list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(43, 43, 43, 0.22);
}

html:not(.day-mode) .home-teaser__list::-webkit-scrollbar-thumb {
    background: rgba(231, 231, 231, 0.2);
}

.home-teaser__list:focus-visible {
    outline: 2px solid rgba(43, 43, 43, 0.35);
    outline-offset: 4px;
}

html:not(.day-mode) .home-teaser__list:focus-visible {
    outline-color: rgba(231, 231, 231, 0.45);
}

.home-teaser__list-item {
    flex: 0 0 min(20.5rem, calc(100vw - 2.5rem));
    width: min(20.5rem, calc(100vw - 2.5rem));
    max-width: 22rem;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    min-height: 100%;
}

.home-teaser__list-item .catalog-teaser-card {
    height: 100%;
}

.home-teaser--single .home-teaser__list {
    justify-content: center;
    overflow-x: hidden;
}

@media (max-width: 480px) {
    .home-teaser__list-item {
        flex-basis: min(18.5rem, calc(100vw - 2rem));
        width: min(18.5rem, calc(100vw - 2rem));
    }
}
