/**
 * Un jour, une prière - Styles
 * David Myriem © 2025
 */

 :root {
    --color-deep-blue: #4a5568;
    --color-lavender: #7c8bb8;
    --color-gold: #d4a853;
    --color-cream: #faf8f5;
    --color-dark: #1a1a2e;
    --color-text: #2d3748;
    --color-text-light: #718096;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background-color: var(--color-cream); color: var(--color-text); line-height: 1.7; overflow-x: hidden; }

/* NAV */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(26, 26, 46, 0.95); backdrop-filter: blur(10px); padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; }
.navbar.scrolled { padding: 0.75rem 2rem; background: rgba(26, 26, 46, 0.98); }
.logo { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--color-cream); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.logo-star { color: var(--color-gold); }
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a { color: var(--color-cream); text-decoration: none; font-size: 0.9rem; opacity: 0.85; transition: all 0.3s; }
.nav-links a:hover { color: var(--color-gold); opacity: 1; }
.lang-selector { position: relative; }
.lang-btn { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: var(--color-cream); padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer; font-family: var(--font-sans); font-size: 0.85rem; display: flex; align-items: center; gap: 0.5rem; transition: all 0.3s; }
.lang-btn:hover { border-color: var(--color-gold); color: var(--color-gold); }
.lang-dropdown { position: absolute; top: 100%; right: 0; background: var(--color-dark); border-radius: 8px; padding: 0.5rem 0; min-width: 150px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.lang-selector:hover .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(5px); }
.lang-dropdown a { display: block; padding: 0.6rem 1.2rem; color: var(--color-cream); text-decoration: none; font-size: 0.85rem; }
.lang-dropdown a:hover { background: rgba(255,255,255,0.1); color: var(--color-gold); }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--color-cream); font-size: 1.5rem; cursor: pointer; }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--color-dark) 0%, #2d2d4a 100%); }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(124, 139, 184, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(124, 139, 184, 0.1) 0%, transparent 50%); }
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; max-width: 1200px; margin: 0 auto; padding: 6rem 2rem 4rem; align-items: center; }
.hero-text { color: var(--color-cream); }
.hero-subtitle { font-size: 0.9rem; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--color-gold); margin-bottom: 1.5rem; animation: fadeInUp 0.8s ease; }
.hero-title { font-family: var(--font-serif); font-size: 4rem; font-weight: 600; line-height: 1.1; margin-bottom: 0.5rem; animation: fadeInUp 0.8s ease 0.2s backwards; }
.hero-title-sub { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 400; font-style: italic; color: var(--color-gold); margin-bottom: 2rem; animation: fadeInUp 0.8s ease 0.3s backwards; }
.hero-description { font-size: 1.1rem; line-height: 1.8; opacity: 0.9; margin-bottom: 2.5rem; max-width: 500px; animation: fadeInUp 0.8s ease 0.4s backwards; }
.hero-author { font-family: var(--font-serif); font-size: 1.2rem; color: var(--color-gold); margin-bottom: 2rem; animation: fadeInUp 0.8s ease 0.5s backwards; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeInUp 0.8s ease 0.6s backwards; }
.hero-book { display: flex; justify-content: center; align-items: center; animation: fadeInRight 1s ease 0.4s backwards; }
.book-container { position: relative; transform: perspective(1000px) rotateY(-15deg); transition: transform 0.5s ease; }
.book-container:hover { transform: perspective(1000px) rotateY(-5deg); }
.book-cover { width: 320px; height: 480px; background: linear-gradient(135deg, #3d4a6b 0%, #2a3550 100%); border-radius: 0 8px 8px 0; box-shadow: -20px 0 50px rgba(0,0,0,0.3), 0 30px 60px rgba(0,0,0,0.4); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 3rem; position: relative; overflow: hidden; }
.book-cover::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 20px; background: linear-gradient(90deg, rgba(0,0,0,0.3), transparent); }

.book-cover-img {
    width: 320px;
    height: auto;
    border-radius: 0 8px 8px 0;
    box-shadow: -20px 0 50px rgba(0,0,0,0.3), 0 30px 60px rgba(0,0,0,0.4);
    transition: transform 0.5s ease;
}

.book-container:hover .book-cover-img {
    transform: scale(1.02);
}

@media (max-width: 968px) {
    .book-cover-img {
        width: 260px;
    }
}

.book-star { font-size: 2rem; color: var(--color-gold); margin-bottom: 2rem; }


.book-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    color: rgb(97, 119, 154);
}


.book-title-sub {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    text-align: center;
    margin-bottom: 3rem;
    color: rgb(97, 119, 154);
    font-weight: 800;
}

.book-author {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    color: var(--color-cream);
}

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem; font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500; text-decoration: none; border-radius: 4px; transition: all 0.3s ease; cursor: pointer; border: none; }
.btn-primary { background: var(--color-gold); color: var(--color-dark); }
.btn-primary:hover { background: #e5b863; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(212, 168, 83, 0.3); }
.btn-secondary { background: transparent; color: var(--color-cream); border: 1px solid rgba(255,255,255,0.3); }
.btn-secondary:hover { border-color: var(--color-gold); color: var(--color-gold); }

/* SECTIONS */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--color-gold); margin-bottom: 1rem; }
.section-title { font-family: var(--font-serif); font-size: 3rem; font-weight: 600; color: var(--color-dark); }

/* PRAYER SECTION */
.prayer-section { padding: 6rem 2rem; background: var(--color-cream); position: relative; }
.prayer-section::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 1px; height: 60px; background: linear-gradient(to bottom, var(--color-lavender), transparent); }
.prayer-card { max-width: 800px; margin: 0 auto; background: white; border-radius: 16px; padding: 3rem; box-shadow: 0 20px 60px rgba(0,0,0,0.08); position: relative; overflow: hidden; }
.prayer-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--color-lavender), var(--color-gold)); }
.prayer-date { font-size: 0.85rem; font-weight: 500; color: var(--color-lavender); letter-spacing: 1px; margin-bottom: 0.5rem; }
.prayer-title { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 600; color: var(--color-dark); margin-bottom: 1.5rem; }
.prayer-verse { font-family: var(--font-serif); font-size: 1.3rem; font-style: italic; color: var(--color-text); padding: 1.5rem; background: var(--color-cream); border-left: 3px solid var(--color-gold); margin-bottom: 0.5rem; border-radius: 0 8px 8px 0; }
.prayer-reference { font-size: 0.9rem; color: var(--color-text-light); text-align: right; margin-bottom: 2rem; }
.prayer-text { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.9; color: var(--color-text); white-space: pre-line; margin-bottom: 2rem; }
.prayer-reflection { background: linear-gradient(135deg, #f7f5f2 0%, #efe9e1 100%); padding: 1.5rem; border-radius: 8px; margin-bottom: 1.5rem; }
.prayer-reflection-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--color-gold); margin-bottom: 0.75rem; }
.prayer-reflection-text { font-family: var(--font-serif); font-size: 1.05rem; font-style: italic; color: var(--color-text); line-height: 1.7; }
.prayer-intention { font-size: 0.95rem; color: var(--color-text-light); text-align: center; padding-top: 1.5rem; border-top: 1px solid #eee; }
.prayer-cta { text-align: center; margin-top: 3rem; }
.prayer-nav { display: flex; justify-content: space-between; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #eee; }
.prayer-nav-link { color: var(--color-lavender); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.prayer-nav-link:hover { color: var(--color-gold); }
.prayer-page { padding: 8rem 2rem 4rem; max-width: 900px; margin: 0 auto; }
.prayer-page-header { margin-bottom: 2rem; }
.back-link { color: var(--color-lavender); text-decoration: none; font-size: 0.9rem; }
.back-link:hover { color: var(--color-gold); }

/* ABOUT */
.about-section { padding: 6rem 2rem; background: var(--color-dark); color: var(--color-cream); }
.about-content { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: center; }
.about-image-placeholder { width: 100%; aspect-ratio: 1; background: linear-gradient(135deg, var(--color-lavender), var(--color-deep-blue)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 4rem; color: var(--color-cream); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.about-text h2 { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 600; margin-bottom: 1.5rem; }
.about-text p { font-size: 1.05rem; line-height: 1.9; opacity: 0.9; margin-bottom: 1.5rem; }

/* BOOK */
.book-section { padding: 6rem 2rem; background: var(--color-cream); text-align: center; }
.book-description { max-width: 700px; margin: 0 auto; font-size: 1.1rem; line-height: 1.8; }

/* BUY */
.buy-section { padding: 6rem 2rem; background: linear-gradient(180deg, var(--color-cream) 0%, #efe9e1 100%); }
.buy-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.buy-card { background: white; border-radius: 12px; padding: 2rem; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.06); transition: all 0.3s ease; }
.buy-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.buy-flag { font-size: 2.5rem; margin-bottom: 1rem; }
.buy-country { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; color: var(--color-dark); margin-bottom: 1rem; }
.buy-link { display: inline-block; padding: 0.8rem 2rem; background: var(--color-dark); color: var(--color-cream); text-decoration: none; border-radius: 6px; font-size: 0.9rem; font-weight: 500; transition: all 0.3s; }
.buy-link:hover { background: var(--color-gold); color: var(--color-dark); }

/* NEWSLETTER */
.newsletter-section { padding: 5rem 2rem; background: var(--color-lavender); text-align: center; }
.newsletter-content { max-width: 600px; margin: 0 auto; }
.newsletter-content h2 { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 600; color: white; margin-bottom: 1rem; }
.newsletter-content p { color: rgba(255,255,255,0.9); margin-bottom: 2rem; font-size: 1.05rem; }
.newsletter-form { display: flex; gap: 1rem; max-width: 450px; margin: 0 auto; }
.newsletter-input { flex: 1; padding: 1rem 1.5rem; border: none; border-radius: 6px; font-family: var(--font-sans); font-size: 1rem; }
.newsletter-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.3); }
.newsletter-btn { padding: 1rem 2rem; background: var(--color-dark); color: white; border: none; border-radius: 6px; font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.3s; }
.newsletter-btn:hover { background: var(--color-gold); color: var(--color-dark); }

/* FOOTER */
.footer { background: var(--color-dark); color: var(--color-cream); padding: 3rem 2rem; text-align: center; }
.footer-logo { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 1rem; }
.footer-author { font-size: 0.9rem; opacity: 0.7; margin-bottom: 1rem; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.footer-links a { color: var(--color-cream); text-decoration: none; font-size: 0.85rem; opacity: 0.7; transition: all 0.3s; }
.footer-links a:hover { opacity: 1; color: var(--color-gold); }
.footer-copy { font-size: 0.8rem; opacity: 0.5; }

/* 404 */
.error-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 6rem 2rem; }
.error-content { text-align: center; }
.error-code { font-family: var(--font-serif); font-size: 8rem; font-weight: 700; color: var(--color-lavender); line-height: 1; }
.error-title { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 1rem; }
.error-text { color: var(--color-text-light); margin-bottom: 2rem; max-width: 400px; }

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

/* RESPONSIVE */
@media (max-width: 968px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; padding-top: 8rem; }
    .hero-title { font-size: 3rem; }
    .hero-description { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    .hero-book { order: -1; }
    .book-cover { width: 260px; height: 390px; }
    .about-content { grid-template-columns: 1fr; text-align: center; }
    .about-image-placeholder { width: 200px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-dark); flex-direction: column; padding: 1rem; gap: 1rem; }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .hero-title { font-size: 2.5rem; }
    .hero-title-sub { font-size: 1.4rem; }
    .section-title { font-size: 2.2rem; }
    .prayer-card { padding: 2rem; }
    .newsletter-form { flex-direction: column; }
    .buy-grid { grid-template-columns: 1fr; max-width: 350px; margin: 0 auto; }
}

/* PWA Card */
.pwa-card {
    max-width: 600px;
    margin: 0 auto 3rem;
    background: linear-gradient(135deg, var(--color-dark) 0%, #2d2d4a 100%);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    color: var(--color-cream);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.pwa-card-secondary {
    margin-top: 3rem;
    background: linear-gradient(135deg, #f7f5f2 0%, #efe9e1 100%);
    color: var(--color-dark);
}
.pwa-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.pwa-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.pwa-description {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.pwa-price {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}
.pwa-card-secondary .pwa-price {
    color: var(--color-dark);
}
.pwa-btn {
    font-size: 1rem;
    padding: 1rem 2.5rem;
}
.amazon-also-available {
    text-align: center;
    margin-bottom: 2rem;
}
.amazon-also-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Coming Soon Card */
.coming-soon-card {
    max-width: 600px;
    margin: 0 auto 3rem;
    background: linear-gradient(135deg, #f7f5f2 0%, #efe9e1 100%);
    border: 2px dashed var(--color-lavender);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}
.coming-soon-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}
.coming-soon-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 1rem;
}
.coming-soon-text {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.7;
}

/* Buy Card Disabled */
.buy-card-disabled {
    opacity: 0.7;
    background: #f5f5f5;
}
.buy-coming-soon {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--color-lavender);
    color: white;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Prayer Navigation */
.prayer-nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border, #e0e0e0);
    gap: 1rem;
}

.prayer-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--color-text);
    background: var(--color-background, #f8f8f8);
    border-radius: 8px;
    transition: all 0.2s ease;
    min-width: 140px;
}

.prayer-nav-link:hover {
    background: var(--color-primary);
    color: white;
}

.prayer-nav-prev { align-items: flex-start; }
.prayer-nav-next { align-items: flex-end; }

.prayer-nav-arrow { font-size: 1.2rem; margin-bottom: 0.25rem; }
.prayer-nav-text { font-size: 0.85rem; font-weight: 500; }
.prayer-nav-date { font-size: 0.75rem; opacity: 0.8; margin-top: 0.25rem; }
.prayer-nav-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.prayer-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.archive-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Archive Page */
.archive-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 120px;
}

.archive-header {
    text-align: center;
    margin-bottom: 3rem;
}

.archive-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.archive-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.archive-year-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 2rem;
}

.archive-months {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.archive-month {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.archive-month-current {
    border: 2px solid var(--color-primary);
}

.archive-month-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.calendar-header, .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-header { margin-bottom: 8px; }

.calendar-weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-light);
    padding: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: 50%;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.2s ease;
}

.calendar-day-available {
    background: var(--color-lavender-light, #f0ebf7);
    color: var(--color-primary);
    font-weight: 500;
}

.calendar-day-available:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

.calendar-day-today {
    background: var(--color-primary) !important;
    color: white !important;
    font-weight: 600;
}

.calendar-day-future {
    color: var(--color-text-light);
    opacity: 0.4;
}

.archive-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--color-background);
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot-available {
    background: var(--color-lavender-light, #f0ebf7);
    border: 2px solid var(--color-primary);
}

.legend-dot-today { background: var(--color-primary); }
.legend-dot-future { background: #e0e0e0; }

.archive-cta-section {
    background: linear-gradient(135deg, var(--color-lavender-light, #f8f5fc) 0%, var(--color-background) 100%);
    padding: 4rem 2rem;
    margin-top: 3rem;
    text-align: center;
}

.archive-cta-content h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.archive-cta-content p {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .archive-page { padding: 1rem; padding-top: 100px; }
    .archive-title { font-size: 1.8rem; }
    .archive-months { grid-template-columns: 1fr; }
    .archive-legend { flex-direction: column; align-items: center; gap: 1rem; }
}

/* ==========================================
   ARCHIVE PAGE STYLES - Version améliorée
   ========================================== */

   .archive-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 120px;
}

/* Header */
.archive-header {
    text-align: center;
    margin-bottom: 3rem;
}

.archive-header .back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--color-primary, #6b5b95);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.archive-header .back-link:hover {
    color: var(--color-dark, #333);
    transform: translateX(-4px);
}

.archive-title {
    font-family: var(--font-serif, 'Cormorant Garamond', serif);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--color-dark, #2c2c2c);
    margin-bottom: 0.75rem;
}

.archive-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-light, #666);
    font-weight: 400;
}

/* Year */
.archive-year {
    text-align: center;
    margin-bottom: 2.5rem;
}

.archive-year-title {
    display: inline-block;
    font-family: var(--font-serif, 'Cormorant Garamond', serif);
    font-size: 1.6rem;
    color: var(--color-primary, #6b5b95);
    background: linear-gradient(135deg, #f8f5fc 0%, #efe9f4 100%);
    padding: 0.5rem 2rem;
    border-radius: 30px;
    border: 2px solid var(--color-primary, #6b5b95);
}

/* Months Grid */
.archive-months {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Month Card */
.archive-month {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.archive-month:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.archive-month-current {
    border: 3px solid var(--color-primary, #6b5b95);
    background: linear-gradient(180deg, #fdfcfe 0%, #f8f5fc 100%);
}

.archive-month-title {
    font-family: var(--font-serif, 'Cormorant Garamond', serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-dark, #2c2c2c);
    margin-bottom: 1.25rem;
    text-align: center;
    text-transform: capitalize;
}

/* Calendar */
.archive-calendar {
    width: 100%;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary, #6b5b95);
    padding: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

/* Calendar Day - Base */
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 50%;
    text-decoration: none;
    color: #999;
    background: transparent;
    transition: all 0.25s ease;
    cursor: default;
    position: relative;
}

.calendar-day-empty {
    background: transparent;
}

/* Calendar Day - Available (clickable) */
.calendar-day-available {
    background: linear-gradient(135deg, #f0ebf7 0%, #e8e0f0 100%);
    color: var(--color-primary, #6b5b95);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(107, 91, 149, 0.15);
}

.calendar-day-available:hover {
    background: linear-gradient(135deg, var(--color-primary, #6b5b95) 0%, #5a4a84 100%);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(107, 91, 149, 0.4);
    z-index: 10;
}

.calendar-day-available:active {
    transform: scale(1.05);
}

/* Calendar Day - Today */
.calendar-day-today {
    background: linear-gradient(135deg, var(--color-primary, #6b5b95) 0%, #5a4a84 100%) !important;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(107, 91, 149, 0.5);
    animation: pulse-today 2s infinite;
}

.calendar-day-today:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(107, 91, 149, 0.6);
}

@keyframes pulse-today {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(107, 91, 149, 0.5);
    }
    50% {
        box-shadow: 0 4px 25px rgba(107, 91, 149, 0.7);
    }
}

/* Calendar Day - Future */
.calendar-day-future {
    color: #ccc;
    opacity: 0.5;
    cursor: not-allowed;
}

/* Légende */
.archive-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text, #444);
}

.legend-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot-available {
    background: linear-gradient(135deg, #f0ebf7 0%, #e8e0f0 100%);
    border: 3px solid var(--color-primary, #6b5b95);
    box-shadow: 0 2px 6px rgba(107, 91, 149, 0.2);
}

.legend-dot-today {
    background: linear-gradient(135deg, var(--color-primary, #6b5b95) 0%, #5a4a84 100%);
    box-shadow: 0 2px 8px rgba(107, 91, 149, 0.4);
}

.legend-dot-future {
    background: #e8e8e8;
    border: 2px dashed #ccc;
}

/* Archive CTA Section */
.archive-cta-section {
    background: linear-gradient(135deg, #f8f5fc 0%, #efe9f4 50%, #e8e0f0 100%);
    padding: 4rem 2rem;
    margin-top: 4rem;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(107, 91, 149, 0.1);
}

.archive-cta-content h2 {
    font-family: var(--font-serif, 'Cormorant Garamond', serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-dark, #2c2c2c);
    margin-bottom: 1rem;
}

.archive-cta-content p {
    font-size: 1.1rem;
    color: var(--color-text, #555);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.archive-cta-content .btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.archive-cta-content .btn-primary {
    background: linear-gradient(135deg, var(--color-primary, #6b5b95) 0%, #5a4a84 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 91, 149, 0.4);
}

.archive-cta-content .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 91, 149, 0.5);
}

/* Empty State */
.archive-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-light, #888);
    font-size: 1.1rem;
    background: #f9f9f9;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .archive-page {
        padding: 1.5rem;
        padding-top: 100px;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .archive-subtitle {
        font-size: 1rem;
    }
    
    .archive-months {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .archive-month {
        padding: 1.25rem;
    }
    
    .calendar-day {
        font-size: 0.85rem;
    }
    
    .calendar-day-available:hover {
        transform: scale(1.1);
    }
    
    .archive-legend {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        padding: 1.5rem;
    }
    
    .archive-cta-section {
        padding: 3rem 1.5rem;
        margin-top: 3rem;
        border-radius: 16px;
    }
    
    .archive-cta-content h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .archive-page {
        padding: 1rem;
        padding-top: 90px;
    }
    
    .archive-title {
        font-size: 1.7rem;
    }
    
    .archive-year-title {
        font-size: 1.3rem;
        padding: 0.4rem 1.5rem;
    }
    
    .calendar-days {
        gap: 4px;
    }
    
    .calendar-day {
        font-size: 0.8rem;
    }
    
    .legend-dot {
        width: 16px;
        height: 16px;
    }
}

/* ==========================================
   HOVER TOOLTIP (optional)
   ========================================== */

.calendar-day-available::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: var(--color-dark, #333);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 100;
}

.calendar-day-available::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(3px);
    border: 6px solid transparent;
    border-top-color: var(--color-dark, #333);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 100;
}

.calendar-day-available:hover::after,
.calendar-day-available:hover::before {
    opacity: 1;
    visibility: visible;
}

.calendar-day-available:hover::after {
    transform: translateX(-50%) translateY(-8px);
}

.calendar-day-available:hover::before {
    transform: translateX(-50%) translateY(0);
}

/* Bouton Archive - Style hover par défaut */
.btn-archive {
    border-color: var(--color-gold)!important;
    color: var(--color-gold)!important;
}

/* ==========================================
   EFFET VOLUME LIVRE - Pages sur le côté
   ========================================== */

   .book-container {
    position: relative;
}

/* Pages effet 3D sur le côté droit */
.book-container::before {
    content: '';
    position: absolute;
    top: 8px;
    right: -18px;
    width: 18px;
    height: calc(100% - 16px);
    background: linear-gradient(
        to right,
        #e8e8e3 0%,
        #f5f5f0 10%,
        #fff 30%,
        #f9f9f4 70%,
        #e8e8e3 100%
    );
    border-radius: 0 3px 3px 0;
    box-shadow: 
        2px 0 5px rgba(0, 0, 0, 0.15),
        inset -2px 0 3px rgba(0, 0, 0, 0.05);
}

/* Lignes des pages */
.book-container::after {
    content: '';
    position: absolute;
    top: 12px;
    right: -15px;
    width: 12px;
    height: calc(100% - 24px);
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 3px
    );
    border-radius: 0 2px 2px 0;
}

/* Ombre sous le livre pour le volume */
.book-cover {
    box-shadow: 
        5px 5px 20px rgba(0, 0, 0, 0.3),
        0 0 1px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   NEWSLETTER FORM STYLES - Enhanced Version
   À ajouter dans assets/css/style.css
   ========================================== */

   .newsletter-section {
    background: linear-gradient(135deg, var(--color-lavender-light, #f8f5fc) 0%, var(--color-background) 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.newsletter-content > p {
    color: var(--color-text);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.newsletter-email-row {
    width: 100%;
    max-width: 400px;
}

.newsletter-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--color-border, #e0e0e0);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(107, 91, 149, 0.15);
}

/* Options checkboxes */
.newsletter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 400px;
    text-align: left;
}

.newsletter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    border: 2px solid var(--color-border, #e0e0e0);
    transition: all 0.3s ease;
    position: relative;
}

.newsletter-checkbox:hover {
    border-color: var(--color-primary);
    background: rgba(107, 91, 149, 0.03);
}

.newsletter-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.newsletter-checkbox .checkmark {
    height: 22px;
    width: 22px;
    background-color: white;
    border: 2px solid var(--color-border, #ccc);
    border-radius: 4px;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.newsletter-checkbox input:checked ~ .checkmark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.newsletter-checkbox .checkmark:after {
    content: '';
    display: none;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.newsletter-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.newsletter-checkbox .checkbox-label {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.4;
}

/* Bouton submit */
.newsletter-btn {
    padding: 1rem 2.5rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.newsletter-btn:hover:not(:disabled) {
    background: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Messages de retour */
.newsletter-message {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.newsletter-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.newsletter-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 3rem 1.5rem;
    }
    
    .newsletter-content h2 {
        font-size: 1.6rem;
    }
    
    .newsletter-options {
        max-width: 100%;
    }
    
    .newsletter-checkbox {
        padding: 0.6rem 0.75rem;
    }
    
    .newsletter-checkbox .checkbox-label {
        font-size: 0.9rem;
    }
}

/* RTL Support */
[dir="rtl"] .newsletter-checkbox {
    text-align: right;
}

[dir="rtl"] .newsletter-checkbox .checkmark {
    margin-right: 0;
    margin-left: 0.75rem;
}

/* ==========================================
   NEWSLETTER FORM STYLES - Version corrigée
   À ajouter dans assets/css/style.css
   ========================================== */

   .newsletter-section {
    background: linear-gradient(135deg, var(--color-lavender-light, #f8f5fc) 0%, var(--color-background) 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.newsletter-content > p {
    color: var(--color-text);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.newsletter-email-row {
    width: 100%;
    max-width: 400px;
}

.newsletter-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--color-border, #e0e0e0);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(107, 91, 149, 0.15);
}

/* ==========================================
   OPTIONS CHECKBOXES - CORRIGÉ
   ========================================== */

.newsletter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 400px;
    text-align: left;
}

.newsletter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    border: 2px solid var(--color-border, #e0e0e0);
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
}

.newsletter-checkbox:hover {
    border-color: var(--color-primary, #6b5b95);
    background: rgba(107, 91, 149, 0.03);
}

/* Cacher la checkbox native */
.newsletter-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Style de la case personnalisée */
.newsletter-checkbox .checkmark {
    position: relative;
    height: 24px;
    width: 24px;
    min-width: 24px;
    background-color: white;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 0.75rem;
    transition: all 0.2s ease;
}

/* Quand la checkbox est cochée - fond coloré */
.newsletter-checkbox input[type="checkbox"]:checked ~ .checkmark {
    background-color: var(--color-primary, #6b5b95);
    border-color: var(--color-primary, #6b5b95);
}

/* La coche (toujours présente, juste cachée par défaut) */
.newsletter-checkbox .checkmark:after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Afficher la coche quand coché */
.newsletter-checkbox input[type="checkbox"]:checked ~ .checkmark:after {
    opacity: 1;
}

/* Effet hover sur la case */
.newsletter-checkbox:hover .checkmark {
    border-color: var(--color-primary, #6b5b95);
}

/* Focus visible pour accessibilité */
.newsletter-checkbox input[type="checkbox"]:focus ~ .checkmark {
    box-shadow: 0 0 0 3px rgba(107, 91, 149, 0.3);
}

/* Label texte */
.newsletter-checkbox .checkbox-label {
    font-size: 0.95rem;
    color: var(--color-text, #333);
    line-height: 1.4;
}

/* ==========================================
   BOUTON SUBMIT
   ========================================== */

.newsletter-btn {
    padding: 1rem 2.5rem;
    background: var(--color-primary, #6b5b95);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.newsletter-btn:hover:not(:disabled) {
    background: var(--color-dark, #1a1a2e);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==========================================
   MESSAGES DE RETOUR
   ========================================== */

.newsletter-message {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.newsletter-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.newsletter-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .newsletter-section {
        padding: 3rem 1.5rem;
    }
    
    .newsletter-content h2 {
        font-size: 1.6rem;
    }
    
    .newsletter-options {
        max-width: 100%;
    }
    
    .newsletter-checkbox {
        padding: 0.6rem 0.75rem;
    }
    
    .newsletter-checkbox .checkmark {
        height: 22px;
        width: 22px;
        min-width: 22px;
    }
    
    .newsletter-checkbox .checkmark:after {
        left: 6px;
        top: 2px;
        width: 5px;
        height: 10px;
    }
    
    .newsletter-checkbox .checkbox-label {
        font-size: 0.9rem;
    }
}

/* ==========================================
   RTL SUPPORT (Arabe)
   ========================================== */

[dir="rtl"] .newsletter-checkbox {
    text-align: right;
}

[dir="rtl"] .newsletter-checkbox .checkmark {
    margin-right: 0;
    margin-left: 0.75rem;
}