
/* Livre d'or — Chroniques d'une alchimiste */

* {
    box-sizing: border-box;
}

html {
    background: #14091e;
}

body {
    margin: 0;
    color: #f5dba5;
    font-family: Georgia, "Times New Roman", serif;
    background:
        radial-gradient(ellipse at center, #402052, #14091e 75%);
}

/* Structure principale */

.page-livreor {
    width: 100%;
    min-height: 100vh;
    padding: 25px 0 45px;
}

/* Titre */

.entete {
    text-align: center;
    padding: 0 15px;
    margin-bottom: 12px;
}

.entete h1 {
    margin: 0;
    font-weight: normal;
    font-size: clamp(2rem, 4vw, 3.4rem);
    color: #f1c981;
    text-shadow:
        0 2px 10px #000,
        0 0 20px rgba(232, 173, 89, 0.45);
}

.entete p {
    margin: 12px 0 0;
    font-size: clamp(0.9rem, 1.6vw, 1.2rem);
    font-style: italic;
    color: #e4c695;
}

/* Illustration et livre */

.livre {
    position: relative;
    width: min(100%, 1536px);
    margin: 0 auto;
}

.image-livre {
    display: block;
    width: 100%;
    height: auto;
}

/* Pages intérieures */

.page-interieure {
    position: absolute;
    top: 13%;
    height: 68%;
    display: flex;
    flex-direction: column;
    color: #442b1d;
    padding: 1.2%;
    overflow: hidden;
}

.page-gauche {
    left: 19%;
    width: 28%;
transform: none;}

.page-droite {
    left: 53%;
    width: 28%;
transform: none;}

/* Titres des pages */

.page-interieure h2 {
    font-size: clamp(0.8rem, 1.5vw, 1.4rem);
    font-weight: normal;
    text-align: center;
    color: #70451e;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(119, 75, 34, 0.4);
}

/* Témoignages */


.temoignages {
    flex: 1;
    min-height: 0;

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;

    overflow: visible;
}



.temoignage {
    padding: 12px 5px;
    border-bottom: none;
}


.temoignage:last-child {
    border-bottom: none;
}


.citation {
    margin: 0 0 10px;
    font-size: clamp(0.75rem, 1.1vw, 1.05rem);
    line-height: 1.6;
    font-style: italic;
    text-align: center;
	white-space: pre-line;
}


.signature {
    margin: 0;
    font-size: clamp(0.65rem, 0.95vw, 0.9rem);
    font-weight: bold;
    color: #6f421d;
    text-align: right;
}

.detail {
    margin: 3px 0 0;
    font-size: clamp(0.6rem, 0.8vw, 0.75rem);
    text-align: right;
    color: #82613e;
}

/* Flèches de navigation */

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-top: 8px;
    color: #79502c;
    font-size: 0.85rem;
}

.pagination button {
    border: none;
    background: transparent;
    color: #98672e;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 2px 8px;
}

.pagination button:hover:not(:disabled) {
    color: #c28b3f;
}

.pagination button:disabled {
    opacity: 0.25;
    cursor: default;
}

/* Retour accueil */

.retour-accueil {
    display: block;
    width: fit-content;
    margin: 10px auto 0;
    color: #e3ba76;
    text-decoration: none;
    font-size: 1.1rem;
    text-shadow: 0 0 8px #000;
}

.retour-accueil:hover {
    color: #fff1c8;
    text-decoration: underline;
}

/* Version mobile */

@media (max-width: 720px) {

    .page-livreor {
        padding-top: 20px;
    }

    .entete {
        margin-bottom: 18px;
    }

    .livre {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 0 12px;
    }

    .image-livre {
        width: 100%;
    }

    .page-interieure {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        min-height: 260px;
        transform: none;
        padding: 20px;
        overflow: visible;
        border: 2px solid #b98a55;
        border-radius: 16px;
        background: linear-gradient(
            135deg,
            #f1dfb8,
            #dfc18d
        );
        box-shadow: 0 6px 20px #0007;
    }

    .page-interieure h2 {
        font-size: 1.4rem;
    }

    .temoignages {
        overflow: visible;
    gap: 20px;
}
    

    .citation {
        font-size: 1rem;
		white-space: pre-line;
    }

    .signature {
        font-size: 0.95rem;
    }

    .detail {
        font-size: 0.8rem;
    }

    .pagination {
        margin-top: 12px;
    }
}


/* Remonter les commentaires des maisons d'édition */

@media (min-width: 721px) {
    .page-gauche .temoignages {
        transform: translateY(-30px);
    }
}
/* Remonter uniquement le deuxième avis des lecteurs */


@media (min-width: 721px) {
    .page-gauche .temoignage:nth-child(2) {
        position: relative;
        top: -10px;
    }
}
@media (min-width: 721px) {
    .page-gauche .temoignage:nth-child(3) {
        transform: translateY(-20px);
    }
}
/* Organisation des avis des lecteurs sur ordinateur */

@media (min-width: 721px) {

    .page-droite .temoignages {
        justify-content: flex-start;
        gap: 18px;
    }

    .page-droite .temoignage {
        position: static;
        padding: 5px;
    }

    .page-droite .citation {
        line-height: 1.35;
        margin-bottom: 7px;
    }

}


/* ===== RETOUR AU GLOBE ===== */

.retour-haut,
.retour-haut:visited {
    display: block;
    width: fit-content;
    margin: 15px 0 15px 30px;

    color: #eac37a;
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: normal;
    text-align: left;
    text-decoration: none;

    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.retour-haut:hover,
.retour-haut:focus-visible {
    color: white;
    text-decoration: none;
    text-shadow: 0 0 12px #ffd36e;
}

@media (max-width: 720px) {
    .retour-haut {
        margin-left: 18px;
        font-size: 15px;
    }
}


