/**
 * catalogue-additions.css
 * ⚠️ Ces règles sont à FUSIONNER avec ton style.css existant (celui qui
 * définit déjà les couleurs marine/orange de la charte, les polices,
 * .site-header, .btn-primary/.btn-secondary de base, etc.).
 * Elles ajoutent uniquement ce qui manque pour le catalogue multi-livres
 * et ne redéfinissent pas ta charte existante — variables réutilisées
 * en supposant les mêmes noms que sur tes pages actuelles :
 *   --marine: #1a2238;  --orange: #d9791f;  --cream: #f2ede3;
 * Ajuste ces 3 variables en haut si tes noms diffèrent.
 */
:root {
    --marine: #1a2238;
    --orange: #d9791f;
    --cream: #f2ede3;
}

/* ---------- Catalogue (page d'accueil) ---------- */
.catalog-page { max-width: 1080px; margin: 0 auto; padding: 40px 20px 80px; }
.catalog-hero { text-align: center; margin-bottom: 48px; }
.catalog-hero h1 { font-size: 2.4rem; color: var(--marine); margin-bottom: 12px; }
.catalog-hero p { color: #555; max-width: 560px; margin: 0 auto; }

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}
.catalog-card {
    background: var(--cream);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(26, 34, 56, 0.08);
    transition: transform .15s ease;
}
.catalog-card:hover { transform: translateY(-4px); }
.catalog-cover { width: 100%; display: block; aspect-ratio: 3/4.2; object-fit: cover; }
.catalog-card-body { padding: 20px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.catalog-category { text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; color: var(--orange); font-weight: 700; margin: 0 0 6px; }
.catalog-card-body h2 { margin: 0 0 8px; font-size: 1.35rem; }
.catalog-card-body h2 a { color: var(--marine); text-decoration: none; }
.catalog-tagline { color: #444; font-size: .95rem; margin-bottom: 6px; }
.catalog-desc { color: #777; font-size: .85rem; margin-bottom: 16px; }
.catalog-price-row { display: flex; gap: 16px; margin-bottom: 18px; font-weight: 700; color: var(--marine); }
.catalog-price-row small { font-weight: 400; color: #888; margin-left: 2px; }

/* ---------- Landings produit (sous-pression / bruit-connexion) ---------- */
.landing-page { max-width: 1000px; margin: 0 auto; padding: 40px 20px 80px; }
.landing-hero { display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 56px; }
.landing-cover { width: 280px; flex-shrink: 0; border-radius: 6px; box-shadow: 0 8px 24px rgba(26,34,56,.18); }
.landing-hero-text { flex: 1; min-width: 280px; }
.landing-category { text-transform: uppercase; font-size: .75rem; letter-spacing: .06em; color: var(--orange); font-weight: 700; }
.landing-hero-text h1 { font-size: 2rem; color: var(--marine); margin: 8px 0 12px; }
.landing-tagline { font-size: 1.1rem; color: #333; margin-bottom: 8px; }
.landing-desc { color: #777; margin-bottom: 24px; }
.landing-buy-box { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.landing-reassurance { font-size: .8rem; color: #999; }
.landing-content { max-width: 720px; margin-bottom: 48px; }
.landing-content h2 { color: var(--marine); margin-top: 32px; }
.landing-points { padding-left: 20px; }
.landing-points li { margin-bottom: 8px; }
.landing-cta { text-align: center; padding: 40px 0; background: var(--cream); border-radius: 8px; }

.btn-buy, .btn-buy-large {
    background: var(--orange); color: #fff; border: none; padding: 14px 28px;
    border-radius: 4px; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.btn-buy-large { padding: 16px 36px; font-size: 1.1rem; }
.btn-buy:disabled { opacity: .6; cursor: default; }

/* ---------- Page unique (2 livres en sections ancrées) ---------- */
.onepage-hero { text-align: center; max-width: 640px; margin: 48px auto 24px; padding: 0 20px; }
.onepage-hero h1 { font-size: 2.4rem; color: var(--marine); margin-bottom: 12px; }
.onepage-hero p { color: #555; }

.book-section {
    max-width: 1080px; margin: 0 auto; padding: 56px 20px;
    scroll-margin-top: 24px; /* pour que l'ancre ne colle pas sous le header */
}
.book-section-alt { background: var(--cream); }

.book-hero { display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 40px; }
.book-cover { width: 260px; flex-shrink: 0; border-radius: 6px; box-shadow: 0 8px 24px rgba(26,34,56,.18); }
.book-hero-text { flex: 1; min-width: 280px; }
.book-category { text-transform: uppercase; font-size: .75rem; letter-spacing: .06em; color: var(--orange); font-weight: 700; margin: 0; }
.book-hero-text h2 { font-size: 1.8rem; color: var(--marine); margin: 8px 0 12px; }
.book-tagline { font-size: 1.05rem; color: #333; margin-bottom: 8px; }
.book-desc { color: #777; margin-bottom: 22px; }
.book-buy-box { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.book-reassurance { font-size: .8rem; color: #999; }

.book-content { max-width: 720px; }
.book-content h3 { color: var(--marine); margin-top: 8px; }
.book-content ul { padding-left: 20px; }
.book-content li { margin-bottom: 8px; }

@media (max-width: 640px) {
    .book-hero { flex-direction: column; align-items: center; text-align: center; }
    .book-buy-box { justify-content: center; }
}

/* ---------- Page succès ---------- */
.page-success { display: flex; align-items: center; justify-content: center; min-height: 70vh; }
.success-box { max-width: 560px; text-align: center; padding: 40px 24px; }
.success-box .book-title { font-style: italic; color: var(--marine); margin-bottom: 16px; }
.success-box .hint { font-size: .85rem; color: #888; margin-top: 20px; }
