

/* INTRO */
/* SECTION 1: Hero Section*/

/* Hero Section Styling */
.hero-section {
    position: relative;
    min-height: 80vh;
    width: 100%;
    overflow: visible; /* allow ornament to overlap the next section */
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    /* horizontal sheen + vertical fade to blend into next section (no ornament image) */
    background:
        linear-gradient(90deg,
            rgba(10,15,30,0.08) 50%,
            rgba(10,15,30,0.06) 45%,
            rgba(10,15,30,0.045) 80%,
            rgba(10,15,30,0.02) 100%),
        linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
    background-position: center, center;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    z-index: 1;
    pointer-events: none;
    opacity: 0.98;
}

/* absolute ornament element for finer control (preferred over ::after layering) */
.hero-ornament { display: none; }
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 200, 120, 0.08), transparent 35%),
                radial-gradient(circle at 70% 60%, rgba(255, 190, 90, 0.08), transparent 40%);
    mix-blend-mode: screen;
    opacity: 0.7;
    animation: goldenGlow 6s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}
@keyframes goldenGlow {
    0% { opacity: 0.45; }
    100% { opacity: 0.9; }
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video fills the container */
    z-index: -1; /* Keeps the video behind the content */
}




.hero-content {
    position: relative;
    z-index: 2;
    min-height: 80vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
    text-align: left;
    color: #f5f7ff;
    padding: 40px 32px 20px;
    animation: fadeIn 2s ease-in-out;
    text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}
.hero-tagline,
.hero-hook {
    font-family: 'EB Garamond', 'Montserrat', serif;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    align-items: center;
    max-width: 1100px;
    width: 100%;
}

.hero-cover {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    max-width: 420px;
    max-height: 680px;
    overflow: hidden;
    margin-top: 30px; /* push it down slightly to avoid touching nav */
}

.hero-cover video,
.hero-cover img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    object-position: center 15%;
}

.hero-frame {
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    align-items: center;
    max-width: 1100px;
    width: 100%;
}

.hero-inner.slide-next {
    animation: slideNext 0.6s ease;
}
.hero-inner.slide-prev {
    animation: slidePrev 0.6s ease;
}

.hero-desc {
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.03);
}

.hero-desc p {
    margin: 4px 0;
}

.hero-tagline {
    font-size: 0.95rem;
    opacity: 0.95;
}
.hero-hook {
    line-height: 1.8;
    font-size: 1.05rem;
}


.hero-nav:hover { background: rgba(0,0,0,0.6); transform: translateY(-50%) scale(1.03); opacity: 0.9; }
.hero-prev { left: 12px; background-image: url('../Assets/Images/UX/Arrow_Left.png'); }
.hero-next { right: 12px; background-image: url('../Assets/Images/UX/Arrow_Right.png'); }

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(145deg, rgba(0,0,0,0.5), rgba(0,0,0,0.65));
    border: 1px solid rgba(255,255,255,0.24);
    color: #f7e26b;
    font-size: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: background 0.2s ease, transform 0.2s ease;
}


.hero-nav:hover { background: rgba(0,0,0,0.6); transform: translateY(-50%) scale(1.03); }
.hero-prev { left: 12px; }
.hero-next { right: 12px; }

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-copy p {
    font-family: 'Andarilho', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.6;
}

.hero-title {
    font-family: 'Quentin', cursive;
    font-size: 3.8rem;
    margin-bottom: 6px;
    color: #f7e26b;
    letter-spacing: 0.6px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #fff;
}

.scroll-indicator {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    color: #e6cd43;
    font-size: 1.5rem;
}

/* === Yellow Arrow at bottom of hero === */
.hero-arrow {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

.hero-arrow svg {
    width: 32px;
    height: 32px;
    color: #f8d061;
    stroke-width: 3;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Sections Principales (Featured/Story Selection) --- */
.story-selection-section, .midstack-section {
    position: relative;
    margin: 32px auto;
    padding: 64px 24px;
    max-width: 1200px;
    background: linear-gradient(180deg, rgba(0,0,0,0.90), rgba(25, 5, 56, 0.78)), url('../Assets/Images/Background_images/Images_27.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border: 2px solid rgba(248, 208, 97, 0.40);
    border-radius: 20px;
    box-shadow: 0 18px 54px rgba(0,0,0,0.5);
    animation: borderShimmer 3s ease-in-out infinite;
}

/* --- Cartes de Livres --- */
.story-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.story-card {
    background: linear-gradient(180deg, #111, #222);
    border-radius: 15px;
    overflow: hidden;
    max-width: 300px;
    width: 100%;
    transition: transform 0.4s ease;
}
.story-card:hover { transform: scale(1.05) rotate(1deg); }
.story-card video { width: 100%; height: 360px; object-fit: cover; }























/* --- Éléments Décoratifs (Fleurs, Sparkles) --- */
.decor-wrapper { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.decor { position: absolute; mix-blend-mode: screen; }
.decor.flower { font-size: 26px; animation: floatFlower 6s ease-in-out infinite; }
.decor.sparkle { animation: twinkle 2.8s linear infinite; }

/* --- Éparpillement céleste des décorations --- */
.decor-wrapper {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.decor {
    position: absolute;
    opacity: 0.6;
    animation: floatMagic 6s ease-in-out infinite;
}







/* Distribution aléatoire sur la section "Now Available" */
.story-selection-section .decor:nth-child(1) { top: 5%; left: 10%; animation-delay: 0s; }
.story-selection-section .decor:nth-child(2) { top: 15%; right: 12%; animation-delay: 1.5s; font-size: 30px; }
.story-selection-section .decor:nth-child(3) { bottom: 10%; left: 15%; animation-delay: 0.8s; }
.story-selection-section .decor:nth-child(4) { top: 45%; left: 4%; animation-delay: 2.2s; }
.story-selection-section .decor:nth-child(5) { bottom: 35%; right: 7%; animation-delay: 1.2s; font-size: 28px; }
.story-selection-section .decor:nth-child(6) { top: 65%; right: 20%; animation-delay: 0.5s; }
.story-selection-section .decor:nth-child(7) { bottom: 5%; right: 15%; animation-delay: 3s; }
.story-selection-section .decor:nth-child(8) { top: 30%; left: 45%; animation-delay: 1.8s; }
.story-selection-section .decor:nth-child(9) { bottom: 45%; left: 35%; animation-delay: 2.5s; }

/* Distribution sur la section "TikTok" */
.midstack-section .decor:nth-child(1) { top: 10%; left: 8%; animation-delay: 0s; }
.midstack-section .decor:nth-child(2) { top: 25%; right: 15%; animation-delay: 2s; }
.midstack-section .decor:nth-child(3) { bottom: 15%; left: 20%; animation-delay: 1s; }
.midstack-section .decor:nth-child(4) { bottom: 10%; right: 5%; animation-delay: 3.5s; }
/* Couche de paillettes fixe */
.sparkle-layer { position: fixed; inset: 0; pointer-events: none; z-index: 600; }
.sparkle { position: absolute; border-radius: 50%; background: radial-gradient(circle, #fff, transparent); opacity: 0; animation: sparkle-move linear infinite, sparkle-twinkle ease-in-out infinite; }

/* --- Animations --- */
@keyframes borderShimmer {
    0%, 100% { box-shadow: 0 16px 50px rgba(0,0,0,0.3), 0 0 20px rgba(248, 208, 97, 0.1); }
    50% { box-shadow: 0 16px 50px rgba(0,0,0,0.3), 0 0 40px rgba(248, 208, 97, 0.25); }
}
@keyframes floatFlower {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-10px); opacity: 0.7; }
}
@keyframes floatMagic {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-8px) scale(1.05); opacity: 0.85; }
}
@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* --- Subtle Magic Shine (No more white blobs) --- */
@keyframes shineMagic {
    0%, 100% { 
        text-shadow: 0 0 5px rgba(248, 208, 97, 0.5); 
        color: #f8d061; 
        opacity: 0.4;
    }
    50% { 
        text-shadow: 0 0 12px rgba(248, 208, 97, 0.8); 
        color: #fff9e6; /* Creamy white, not blinding */
        opacity: 0.9;
    }
}

/* --- Fix: Remove the "Blob" and keep the glow --- */
.decor.sparkle {
    background: none !important; /* This deletes that ugly gray oval */
    border: none !important;
    font-size: 16px;
    color: #f8d061;
    /* This creates the "heavenly" glow without the blur-blob */
    text-shadow: 0 0 10px rgba(248, 208, 97, 0.8), 0 0 20px rgba(248, 208, 97, 0.4);
    opacity: 0.8;
    display: inline-block;
    animation: shineMagic 4s infinite ease-in-out, floatMagic 7s infinite ease-in-out;
}

/* Also check your global sparkle halos and remove their background if they look like blobs */
.sparkle-layer .sparkle {
    background: none !important; 
}
/* --- Variations for better heavenly flow --- */
.story-selection-section .decor:nth-child(even) {
    animation-direction: alternate-reverse;
    animation-duration: 8s;
}

.story-selection-section .decor:nth-child(3n) {
    transform: rotate(45deg);
    font-size: 18px;
}
















/* --- SECTION : ABOUT (MODERN) --- */
.about-section-modern {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.1), rgba(51, 51, 51, 0.2));
    color: #f5e1e1;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    gap: 20px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.about-text-container {
    flex: 1;
    max-width: 600px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.about-title {
    font-family: var(--ff-heading);
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.about-video {
    flex: 1;
    max-width: 600px;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
}

.about-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}







/* Style pour les messages du Continuum (Courier) */
.reader-log {
    font-family: 'Courier New', Courier, monospace !important;
    background: rgba(248, 208, 97, 0.08); /* Fond léger doré */
    border-left: 4px solid #f8d061; /* Barre latérale dorée */
    padding: 15px 20px;
    margin: 30px 0;
    color: #f8d061;
    font-size: 0.95rem;
    line-height: 1.5;
    letter-spacing: 0.5px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

.log-cursor {
    font-weight: bold;
    margin-right: 5px;
    animation: blink 1s infinite;
}

/* Style pour les pensées (Italique) */
.thought-text {
    color: #bfc7d9;
    font-style: italic;
    opacity: 0.9;
}

@keyframes blink {
    50% { opacity: 0; }
}


/* Style pour le séparateur de scène *** */
.scene-divider {
    text-align: center;
    font-size: 1.5rem;
    color: #f8d061; /* Couleur dorée pour rester dans le thème */
    margin: 40px 0;
    letter-spacing: 15px; /* Espace entre les étoiles */
    opacity: 0.8;
    font-family: 'serif';
}








/* --- SECTION : EXPLORE STORIES (CARDS & GRID) --- */
.story-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.story-card {
    background: linear-gradient(180deg, #111, #222);
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    max-width: 300px;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease;
}

.story-card:hover { transform: scale(1.05) rotate(1deg); }

.story-card video {
    width: 100%;
    height: 450px;
    object-fit: cover;
    filter: brightness(0.9);
}

.story-info { padding: 15px; text-align: center; color: var(--accent); }

/* --- LISTE DES CHAPITRES (Expansion) --- */
.chapters-list {
    list-style: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s ease, opacity 0.4s ease;
    background: #1c1c1c;
    border-top: 1px solid #444;
}

.chapters-list.expanded { max-height: 300px; opacity: 1; }

.chapters-list li { padding: 12px 18px; border-bottom: 1px solid #333; }

.chapters-list li a {
    text-decoration: none;
    color: #ffcc66;
    font-weight: bold;
    display: block;
}

.chapters-list li:hover { background: #292929; }

/* --- HERO UX POLISH --- */
.hero-section::after {
    background: linear-gradient(90deg, rgba(8,12,20,0.16) 40%, rgba(8,12,20,0.10) 70%, rgba(8,12,20,0.06) 100%);
}
.hero-copy p { font-family: 'EB Garamond', serif !important; font-size: 17px; line-height: 1.7; }
.hero-cta { animation: heroPulse 6s ease-in-out infinite; }

@keyframes heroPulse {
    0%, 100% { box-shadow: 0 10px 28px rgba(255, 165, 0, 0.15); transform: translateY(0); }
    50% { box-shadow: 0 14px 36px rgba(255, 165, 0, 0.26); transform: translateY(-2px); }
}

/* --- ORNAMENT OVERLAP --- */
.story-selection-section, .midstack-section { overflow: visible; }
.story-selection-section::before, .story-selection-section::after {
    content: "✿"; position: absolute; font-size: 24px; color: rgba(248,208,97,0.36); z-index: 1;
}
.story-selection-section::before { top: -12px; left: -12px; }
.story-selection-section::after { bottom: -12px; right: -12px; }

/* --- MOBILE OPTIMIZATIONS --- */
@media (max-width: 768px) {
    .hero-section { min-height: 60vh; padding: 20px 16px; }
    .hero-content { flex-direction: column; }
    .story-card { width: 100%; max-width: 100%; }
}





/* --- Correction Titre Now Available --- */
.story-selection-section h2 {
    color: #f8d061 !important; /* Jaune doré */
    text-align: center !important;
    font-family: 'Quentin', cursive !important;
    width: 100%;
    margin-bottom: 40px;
}





/* --- Centrage complet de la section TikTok --- */
.midstack-section {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.midstack-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.midstack-card h2 {
    color: #f8d061 !important;
    margin-bottom: 20px !important;
}

/* Force le bouton TikTok au centre */
.midstack-card .btn-primary {
    margin: 0 auto !important;
}











/* --- Effet Parallax Robuste --- */
.parallax-band {
    position: relative;
    /* On garde overflow: visible pour que les fleurs puissent dépasser si besoin, 
       mais attention : le fond (::before) doit être bien géré */
    overflow: hidden; /* CONSEIL : 'hidden' est plus sûr pour le parallax, sinon le fond dépasse sur les autres sections */
    background: none !important;
    min-height: 400px; /* Sécurité pour les petites sections */
}

.parallax-band::before {
    content: "";
    position: absolute;
    /* "Bleed" : On agrandit le fond de 20% en haut et en bas pour compenser le mouvement */
    top: -15%; 
    left: 0;
    width: 100%;
    height: 130%; 
    
    background-image: linear-gradient(180deg, rgba(0,0,0,0.90), rgba(25, 5, 56, 0.78)), 
                      url('../Assets/Images/Background_images/Images_27.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    z-index: -1;
    /* On utilise translate3d pour de meilleures performances (GPU) */
    transform: translate3d(0, var(--parallax-y, 0px), 0);
    will-change: transform;
}

/* S'assurer que le contenu reste au dessus */
.parallax-band > *:not(.decor-wrapper):not(::before) {
    position: relative;
    z-index: 2;
}

.decor-wrapper {
    z-index: 1;
}










.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .input-group {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 15px;
    border: 1px solid rgba(248, 208, 97, 0.2);
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 15px;
    font-family: 'Andarilho', sans-serif;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

@media (max-width: 576px) {
    .newsletter-form .input-group { flex-direction: column; background: transparent; border: none; padding: 0; }
    .newsletter-form input { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(248, 208, 97, 0.2); border-radius: 10px; margin-bottom: 10px; }
}




/* Style des mini-containers FAQ et Quote */
.luxury-container {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(248, 208, 97, 0.15) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.luxury-container:hover {
    border-color: rgba(248, 208, 97, 0.4) !important;
    transform: translateY(-5px);
}

/* Spécifique à la citation */
.guide-quote {
    border-left: 4px solid #f8d061 !important;
    background: linear-gradient(90deg, rgba(248, 208, 97, 0.05), transparent) !important;
}

/* Pointes dorées sur les listes si tu veux */
#guide-bullets li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}
#guide-bullets li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: #f8d061;
}