/* ======================================================
   THEME GLOBAL LUMINEUX BST
   Palette : beige, vert creme et bleu leger
   Ce fichier doit etre charge APRES styles.css.
   ====================================================== */

:root {
    --theme-beige: #eee4d2;
    --theme-cream: #fffaf0;
    --theme-green-cream: #f3f4e5;
    --theme-sage: #a8b79f;
    --theme-sage-dark: #526858;
    --theme-blue-light: #c9e3ea;
    --theme-blue: #82b7c4;
    --theme-blue-dark: #426d78;
    --theme-gold: #c4a45c;
    --theme-text: #293832;
    --theme-muted: #5f7068;
    --theme-border: #c6d0bf;
}

/* Fond general */
body {
    color: var(--theme-text);
    background:
        linear-gradient(
            135deg,
            rgba(238, 228, 210, 0.88),
            rgba(232, 238, 219, 0.90)
        ),
        url("/img/BackgroungBSTamaquiz.png") center / cover fixed;
}

/* Panneau principal */
.card {
    color: var(--theme-text);
    background: linear-gradient(
        145deg,
        rgba(255, 250, 240, 0.97),
        rgba(232, 238, 219, 0.95)
    );
    border-color: var(--theme-border);
    box-shadow:
        0 20px 50px rgba(62, 78, 67, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

/* Sections secondaires */
.book,
.box,
.contact {
    color: var(--theme-text);
    background: linear-gradient(
        145deg,
        rgba(255, 250, 240, 0.96),
        rgba(232, 238, 219, 0.93)
    );
    border-color: var(--theme-border);
    box-shadow:
        0 18px 44px rgba(62, 78, 67, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}
#livre,
#contact {
    scroll-margin-top: 90px;
}
/* Blocs internes */
.unit,
.book-card {
    color: var(--theme-text);
    background: rgba(255, 250, 240, 0.76);
    border-color: rgba(168, 183, 159, 0.62);
}

.book-card {
    padding: clamp(20px, 4vw, 38px);
    border-style: solid;
    border-width: 1px;
    border-radius: 18px;
}

/* Titres et textes */
.book-heading h3,
.book-title,
.book h2,
.box-title {
    color: #34483c;
}

.book-heading p,
.book-subtitle {
    color: var(--theme-blue-dark);
}

.book-description,
.book-access-title,
.lead,
.details,
.book-note,
.privacy,
.date,
.clock {
    color: #40574d;
}

.section-kicker,
.book-heading > span {
    color: #836b36;
}

/* Presentation d'un volume */
.book-presentation {
    color: var(--theme-text);
    background: linear-gradient(
        145deg,
        #e0ebd8,
        #cfe4e8
    );
    border-color: #adc9c1;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.book-presentation h4 {
    color: #334f45;
}

.book-presentation p {
    color: #40574d;
}

/* Actions du livre */
.book-button.information {
    color: #000;
    background: #afcfb8;
    border-color: #7f9688;
    letter-spacing: 10%;
}

.book-access-links {
    /*box-shadow: 0 12px 30px rgba(62, 78, 67, 0.18);*/
    border-radius: 10px;
    background-color: transparent;
}

.access-link {
    color: #2d3c36;
    border-color: rgba(80, 105, 91, 0.25);
}

.access-link.excerpt {
    background: var(--theme-blue-light);
}

.access-link.kindle {
    background: #ead5a8;
}

.access-link.paperback {
    background: #f0df9e;
}

/* Formulaires */
input,
textarea {
    color: var(--theme-text);
    background: rgba(255, 250, 240, 0.94);
    border-color: #b8c8ba;
}

input:hover,
textarea:hover,
input:focus,
textarea:focus {
    border-color: var(--theme-blue);
}

/* Separation entre les volumes */
.book-card:not(:first-child)::before {
    background: linear-gradient(
        90deg,
        transparent,
        var(--theme-gold),
        transparent
    );
}

.book-card:not(:first-child)::after {
    color: var(--theme-gold);
    background: var(--theme-green-cream);
}
