/* ============================================
   Du vent dans les pages — Styles
   Association & Maison d'édition — Strasbourg
============================================ */

/* ---- Variables ---- */
:root {
    --primary: #2d4a3e;
    --primary-light: #3d6b5a;
    --primary-dark: #1e3329;
    --accent: #c8956c;
    --accent-light: #d4a880;
    --accent-dark: #b07a52;
    --text: #2c2c2c;
    --text-light: #5a5a5a;
    --text-muted: #8a8a8a;
    --bg: #fefcf9;
    --bg-alt: #f5f0ea;
    --bg-warm: #faf6f1;
    --bg-dark: #1a2e26;
    --border: #e0d6ca;
    --border-light: #ece6dd;
    --success: #3d8b5e;
    --error: #c0392b;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 16px rgba(45, 74, 62, 0.08);
    --shadow-lg: 0 12px 40px rgba(45, 74, 62, 0.12);
    --shadow-xl: 0 24px 60px rgba(45, 74, 62, 0.16);
    --font-body: 'Source Sans 3', -apple-system, sans-serif;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   Header
============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(254, 252, 249, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.header.scrolled {
    border-bottom-color: var(--border-light);
    box-shadow: 0 2px 20px rgba(45, 74, 62, 0.06);
}

.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.2;
}

.logo-text small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nav { display: flex; align-items: center; gap: 8px; list-style: none; }

.nav a {
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-light);
    border-radius: 50px;
}

.nav a:hover { color: var(--primary); background: var(--bg-alt); }

.nav .btn-nav {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.nav .btn-nav:hover {
    background: var(--primary-light);
    color: white;
}

/* Cart icon in nav */
.cart-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

.cart-toggle:hover {
    border-color: var(--accent);
    background: var(--bg-warm);
}

.cart-toggle svg { width: 18px; height: 18px; }

.cart-count {
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -4px;
    right: -4px;
}

.cart-count.empty { display: none; }

/* Mobile nav */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   Hero
============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--bg) 0%, var(--bg-alt) 40%, var(--bg-warm) 100%);
    padding-top: 72px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 20% 80%, rgba(45, 74, 62, 0.05), transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(200, 149, 108, 0.06), transparent 50%);
}

/* Decorative floating pages */
.hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-page {
    position: absolute;
    width: 40px;
    height: 50px;
    background: rgba(254, 252, 249, 0.7);
    border: 1px solid rgba(200, 149, 108, 0.2);
    border-radius: 2px;
    transform-origin: center;
    animation: floatPage 15s ease-in-out infinite;
}

.floating-page:nth-child(1) { top: 15%; right: 10%; animation-delay: 0s; animation-duration: 18s; }
.floating-page:nth-child(2) { top: 60%; right: 20%; animation-delay: -4s; animation-duration: 14s; width: 30px; height: 40px; }
.floating-page:nth-child(3) { top: 30%; right: 5%; animation-delay: -8s; animation-duration: 20s; width: 35px; height: 45px; }
.floating-page:nth-child(4) { top: 75%; right: 8%; animation-delay: -12s; animation-duration: 16s; }
.floating-page:nth-child(5) { top: 45%; right: 15%; animation-delay: -2s; animation-duration: 22s; width: 25px; height: 32px; }

@keyframes floatPage {
    0%, 100% { transform: translateY(0) rotate(-5deg); opacity: 0.4; }
    25% { transform: translateY(-30px) rotate(8deg); opacity: 0.7; }
    50% { transform: translateY(-15px) rotate(-3deg); opacity: 0.5; }
    75% { transform: translateY(-40px) rotate(12deg); opacity: 0.6; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}

.hero-badge svg { width: 16px; height: 16px; color: var(--accent); }

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--primary-dark);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(45, 74, 62, 0.25);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 74, 62, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.btn svg { width: 18px; height: 18px; }

/* ============================================
   Section common
============================================ */
section { padding: 100px 0; }

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-title em { font-style: italic; color: var(--accent); }

.section-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   À propos (La Maison)
============================================ */
.about { background: var(--bg-alt); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    color: white;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.about-visual::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
}

.about-visual::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 50%;
}

.about-visual blockquote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.about-visual cite {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.85rem;
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.about-stat {
    text-align: center;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
}

.about-stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.about-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}

.value-card {
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.value-card:hover {
    border-color: var(--accent-light);
    box-shadow: var(--shadow);
}

.value-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.value-card h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.value-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ============================================
   Catalogue / Boutique
============================================ */
.catalogue { background: var(--bg); }

.catalogue-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cat-filter {
    padding: 8px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.cat-filter:hover { border-color: var(--primary); color: var(--primary); }
.cat-filter.active { background: var(--primary); border-color: var(--primary); color: white; }

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.book-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.book-cover {
    position: relative;
    height: 320px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover-art {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Different cover colors for each book */
.cover-1 { background: linear-gradient(145deg, #2d4a3e, #1a3c34, #3d6b5a); }
.cover-2 { background: linear-gradient(145deg, #8b4a5e, #6b2d42, #a85a6e); }
.cover-3 { background: linear-gradient(145deg, #4a5a8b, #2d3a6b, #5a6ea8); }
.cover-4 { background: linear-gradient(145deg, #8b7a4a, #6b5a2d, #a89a5a); }
.cover-5 { background: linear-gradient(145deg, #c8956c, #a87a52, #d4a880); }
.cover-6 { background: linear-gradient(145deg, #5a4a6b, #3d2d5a, #7a6a8b); }

.book-cover-inner {
    text-align: center;
    color: white;
    padding: 30px 24px;
    position: relative;
    z-index: 2;
}

.book-cover-inner::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    z-index: -1;
}

.book-cover-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1.3;
    margin-bottom: 12px;
}

.book-cover-author {
    font-size: 0.82rem;
    font-weight: 400;
    opacity: 0.75;
    letter-spacing: 0.05em;
}

.book-cover-publisher {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.4);
    z-index: 2;
}

.book-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50px;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.book-body {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.book-genre {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 6px;
}

.book-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.book-author {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.book-excerpt {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.book-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.book-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.book-price small {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-muted);
}

.btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cart:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 74, 62, 0.25);
}

.btn-cart.added {
    background: var(--success);
}

.btn-cart svg { width: 16px; height: 16px; }

/* ============================================
   Événements
============================================ */
.events { background: var(--bg-alt); }

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.event-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 0 4px 4px 0;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.event-date {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.event-date-box {
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

.event-day {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.event-month {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.event-date-info {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.event-date-info strong { color: var(--text); }

.event-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.event-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.event-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-alt);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-tag.free { background: rgba(61, 139, 94, 0.1); color: var(--success); }

/* ============================================
   Contact
============================================ */
.contact { background: var(--bg); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.contact-info > p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

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

.contact-item-text strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 2px;
}

.contact-item-text span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.contact-form-wrapper {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.contact-form-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 74, 62, 0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.btn-full { width: 100%; justify-content: center; }

/* ============================================
   Footer
============================================ */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.footer-brand .logo-text small { color: var(--accent-light); }

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.footer ul { list-style: none; }

.footer ul li { margin-bottom: 10px; }

.footer ul a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.footer ul a:hover { color: var(--accent-light); }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: var(--accent-light); }

/* ============================================
   Mini Cart Drawer
============================================ */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: white;
    z-index: 201;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 30px rgba(0,0,0,0.15);
}

.cart-drawer.open { right: 0; }

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.cart-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: var(--transition);
}

.cart-close:hover { background: var(--border); }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.cart-empty svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.3; }
.cart-empty p { font-size: 0.92rem; }

.cart-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

.cart-item-cover {
    width: 56px;
    height: 72px;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-style: italic;
    text-align: center;
    padding: 4px;
    line-height: 1.2;
}

.cart-item-info { flex: 1; }

.cart-item-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 2px;
}

.cart-item-author {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.92rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.cart-item-remove:hover { color: var(--error); }
.cart-item-remove svg { width: 18px; height: 18px; }

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-alt);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1rem;
}

.cart-total strong {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary);
}

.btn-checkout {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-checkout:hover {
    background: var(--primary-light);
}

.btn-checkout svg { width: 18px; height: 18px; }

.cart-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.cart-secure svg { width: 14px; height: 14px; }

/* ============================================
   Scroll Reveal
============================================ */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal="up"] { transform: translateY(40px); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.95); }
[data-reveal="fade"] { transform: none; }

[data-reveal].revealed {
    opacity: 1;
    transform: none;
}

/* ============================================
   Notification toast
============================================ */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 300;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast svg { width: 18px; height: 18px; }

/* ============================================
   Responsive
============================================ */
@media (max-width: 968px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(254, 252, 249, 0.98);
        backdrop-filter: blur(20px);
        padding: 20px 24px;
        border-bottom: 1px solid var(--border);
        gap: 4px;
        box-shadow: var(--shadow-lg);
    }

    .nav.open a { padding: 12px 16px; width: 100%; }
    .nav-toggle { display: flex; }

    .hero { min-height: auto; padding: 120px 0 80px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-desc { font-size: 1rem; }

    .books-grid { grid-template-columns: 1fr; }
    .events-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .about-values { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}
