/**
 * public/assets/style.css
 * Feuille de style COMPLÈTE et autonome pour editions-optima.fr.
 * Remplace intégralement l'ancien style.css — ne pas fusionner avec un
 * autre fichier, celui-ci contient tout ce qu'il faut (header, footer,
 * page unique des 2 livres, page succès).
 */

:root {
    --marine: #1a2238;
    --marine-light: #2a3554;
    --orange: #d9791f;
    --orange-dark: #b8630f;
    --cream: #f2ede3;
    --text-body: #3a3a3a;
    --text-muted: #7a7a7a;
    --border-light: #e6e1d6;
    --radius: 8px;
    --shadow-card: 0 8px 28px rgba(26, 34, 56, 0.14);
    --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Georgia', 'DejaVu Serif', serif;
    color: var(--text-body);
    background: #ffffff;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Georgia', 'DejaVu Serif', serif;
    line-height: 1.2;
    color: var(--marine);
    margin: 0;
}

p { margin: 0 0 1em; }

a { color: var(--marine); }

img { max-width: 100%; display: block; }

/* ----------------------------------------------------------------------
 * HEADER
 * -------------------------------------------------------------------- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-light);
}

.site-header .logo {
    font-size: 1.35rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--marine);
    letter-spacing: -0.01em;
}
.site-header .logo span { color: var(--orange); }

.site-header nav {
    display: flex;
    gap: 28px;
}
.site-header nav a {
    text-decoration: none;
    color: var(--marine);
    font-size: 0.92rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    border-bottom: 2px solid transparent;
    padding-bottom: 3px;
    transition: border-color .15s ease;
}
.site-header nav a:hover { border-bottom-color: var(--orange); }

/* ----------------------------------------------------------------------
 * FOOTER
 * -------------------------------------------------------------------- */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    border-top: 1px solid var(--border-light);
    margin-top: 60px;
}
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--text-muted); text-decoration: underline; }
.site-footer a:hover { color: var(--marine); }

/* ----------------------------------------------------------------------
 * BOUTONS (partagés partout sur le site)
 * -------------------------------------------------------------------- */
.btn-buy, .btn-buy-large, .btn-primary {
    display: inline-block;
    background: var(--orange);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.btn-buy:hover, .btn-buy-large:hover, .btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
}
.btn-buy:disabled { opacity: .6; cursor: default; transform: none; }
.btn-buy-large { padding: 16px 36px; font-size: 1.1rem; }

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--marine);
    border: 1.5px solid var(--marine);
    padding: 12.5px 26px;
    border-radius: var(--radius);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.btn-secondary:hover { background: var(--marine); color: #fff; }

/* ----------------------------------------------------------------------
 * PAGE UNIQUE — hero général
 * -------------------------------------------------------------------- */
.onepage-hero {
    text-align: center;
    max-width: 640px;
    margin: 56px auto 8px;
    padding: 0 20px;
}
.onepage-hero h1 { font-size: 2.6rem; margin-bottom: 14px; }
.onepage-hero p {
    color: var(--text-muted);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.05rem;
}

/* ----------------------------------------------------------------------
 * SECTIONS LIVRE
 * -------------------------------------------------------------------- */
.book-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 64px 20px;
    scroll-margin-top: 24px;
}
.book-section-alt {
    background: var(--cream);
    max-width: none;
    border-radius: 0;
}
.book-section-alt > * { max-width: var(--max-width); margin-left: auto; margin-right: auto; }

.book-hero {
    display: flex;
    gap: 56px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 44px;
}

.book-cover {
    width: 280px;
    flex-shrink: 0;
    border-radius: 4px;
    box-shadow: var(--shadow-card);
}

.book-hero-text { flex: 1; min-width: 300px; }

.book-category {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--orange);
    font-weight: 700;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0 0 10px;
}

.book-hero-text h2 {
    font-size: 1.9rem;
    margin-bottom: 14px;
}

.book-tagline {
    font-size: 1.08rem;
    color: var(--text-body);
    margin-bottom: 8px;
}

.book-desc {
    color: var(--text-muted);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.92rem;
    margin-bottom: 26px;
}

.book-buy-box {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.book-reassurance {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
}

.book-content { max-width: 720px; }
.book-content h3 { font-size: 1.3rem; margin-top: 8px; margin-bottom: 12px; }
.book-content p { color: var(--text-body); }
.book-content ul { padding-left: 22px; margin: 0 0 1em; }
.book-content li { margin-bottom: 10px; }

@media (max-width: 680px) {
    .book-hero { flex-direction: column; align-items: center; text-align: center; }
    .book-buy-box { justify-content: center; }
    .onepage-hero h1 { font-size: 2.1rem; }
    .site-header { flex-direction: column; gap: 14px; }
}

/* ----------------------------------------------------------------------
 * 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 h1 { margin-bottom: 16px; }
.success-box .book-title {
    font-style: italic;
    color: var(--marine);
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.success-box .hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin-top: 24px;
}
