/* ==================================================
   CHRONIQUE LITTÉRAIRE
   ================================================== */

.literature-page {
    margin: 0;
    background: #eee7d9;
    color: #28251f;
}


/* ==================================================
   NAVIGATION
   ================================================== */

.chronicle-nav--literature {
    background: #e8dfcf;
    color: #28251f;
}


/* ==================================================
   HERO
   ================================================== */

.book-hero {
    position: relative;
    min-height: calc(100vh - 70px);
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: clamp(5rem, 9vw, 9rem);
    background:
        linear-gradient(
            135deg,
            #dcd1bf 0%,
            #ede5d7 48%,
            #d4c8b4 100%
        );
    isolation: isolate;
}

.book-hero__texture {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.26;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(66, 59, 49, 0.025) 4px
        );
}

.book-hero__layout {
    width: min(1250px, 100%);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
    align-items: center;
    gap: clamp(4rem, 10vw, 10rem);
}

.book-hero__content {
    position: relative;
    z-index: 2;
}

.book-hero .chapter-label {
    justify-content: flex-start;
    width: fit-content;
}

.book-hero h1 {
    margin: 0;
    color: #24362c;
    font-family: var(--title-font, Georgia, serif);
    font-size: clamp(4.2rem, 9vw, 8.8rem);
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 0.88;
}

.book-hero__author {
    margin: 2rem 0 0;
    font-family: var(--title-font, Georgia, serif);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.book-hero__details {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1rem 0 0;
    color: #756b5e;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.book-hero__scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-top: 3.5rem;
    color: #5f574c;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-transform: uppercase;
}

.book-hero__scroll span:last-child {
    color: #9a753e;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.book-hero__scroll:hover span:last-child {
    transform: translateY(5px);
}


/* ==================================================
   COUVERTURE
   ================================================== */

.book-hero__cover {
    position: relative;
    width: min(390px, 100%);
    margin: 0 auto;
    perspective: 1200px;
}

.book-hero__cover img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: auto;
    transform: rotateY(-5deg) rotateZ(1deg);
    transform-origin: left center;
    box-shadow:
        18px 26px 55px rgba(43, 38, 31, 0.28),
        -5px 0 10px rgba(43, 38, 31, 0.1);
    transition:
        transform 0.65s ease,
        box-shadow 0.65s ease;
}

.book-hero__cover:hover img {
    transform:
        rotateY(-11deg)
        rotateZ(0deg)
        scale(1.025);

    box-shadow:
        28px 36px 70px rgba(43, 38, 31, 0.35),
        -8px 0 16px rgba(43, 38, 31, 0.14);
}

.book-hero__cover-shadow {
    position: absolute;
    right: 8%;
    bottom: -5%;
    left: 8%;
    height: 12%;
    border-radius: 50%;
    background: rgba(43, 38, 31, 0.25);
    filter: blur(22px);
}


/* ==================================================
   OUVERTURE
   ================================================== */

.book-opening {
    padding: clamp(6rem, 10vw, 11rem) 1.5rem;
    background: #f7f2e8;
    text-align: center;
}

.book-opening blockquote {
    max-width: 1000px;
    margin: 0 auto;
}

.book-opening blockquote p {
    margin: 0;
    color: #294034;
    font-family: var(--title-font, Georgia, serif);
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    font-style: italic;
    line-height: 1.25;
}


/* ==================================================
   CHRONIQUE
   ================================================== */

.book-chronicle {
    padding:
        clamp(6rem, 10vw, 10rem)
        clamp(1.5rem, 6vw, 7rem);
    background: #eee7d9;
}

.book-chronicle__layout {
    width: min(1180px, 100%);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    align-items: start;
    gap: clamp(4rem, 8vw, 7rem);
}

.book-chronicle__body {
    max-width: 760px;
}

.book-chapter + .book-chapter {
    margin-top: 6rem;
}

.book-chapter__number {
    margin: 0 0 0.8rem;
    color: #9a753e;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
}

/* Les puces reprennent la teinte des numéros de chapitre. */
.book-chapter li::marker {
    color: #9a753e;
}

.book-chapter h2 {
    margin: 0 0 2rem;
    color: #294034;
    font-family: var(--title-font, Georgia, serif);
    font-size: clamp(2.3rem, 4.5vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.book-chronicle__body p {
    font-family: var(--title-font, Georgia, serif);
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    line-height: 1.9;
}

.book-chronicle__first-paragraph {
    margin-top: 0;
}

.book-chronicle__quote {
    color: #294034;
    font-family: var(--title-font, Georgia, serif);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-style: italic;
    line-height: 1.45;
    margin: 6rem 0;
    padding: 3rem 0;
    border-top: 1px solid rgba(40, 37, 31, 0.2);
    border-bottom: 1px solid rgba(40, 37, 31, 0.2);
}

.book-chronicle__quote p {
    margin: 0;
    color: #294034;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-style: italic;
    line-height: 1.45;
}


/* ==================================================
   CARNET DE LECTURE
   ================================================== */

.reading-notebook {
    position: sticky;
    top: 2rem;
    padding: 2rem;
    border: 1px solid rgba(40, 37, 31, 0.18);
    background: rgba(247, 242, 232, 0.62);
}

.reading-notebook__eyebrow {
    margin: 0 0 1rem;
    color: #9a753e;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.reading-notebook h2 {
    margin: 0 0 2rem;
    color: #294034;
    font-family: var(--title-font, Georgia, serif);
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.1;
}

.reading-notebook dl {
    margin: 0;
}

.reading-notebook dl div {
    padding: 1rem 0;
    border-top: 1px solid rgba(40, 37, 31, 0.14);
}

.reading-notebook dt {
    margin-bottom: 0.35rem;
    color: #927044;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.reading-notebook dd {
    margin: 0;
    font-family: var(--title-font, Georgia, serif);
    line-height: 1.5;
}


/* ==================================================
   TRADUCTION
   ================================================== */

.translation-focus {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: clamp(4rem, 10vw, 10rem);
    padding: clamp(6rem, 10vw, 10rem);
    background: #294034;
    color: #f3eddf;
}

.translation-focus__heading .chapter-label {
    justify-content: flex-start;
    color: #d0a85f;
}

.translation-focus h2 {
    margin: 0;
    font-family: var(--title-font, Georgia, serif);
    font-size: clamp(3.3rem, 7vw, 7rem);
    font-weight: 400;
    letter-spacing: -0.05em;
}

.translation-focus__content p {
    font-size: 1.08rem;
    line-height: 1.85;
}


/* ==================================================
   TRACES DE LECTURE
   ================================================== */

.reading-traces {
    padding: clamp(6rem, 10vw, 10rem);
    background: #f7f2e8;
}

.reading-traces__header {
    max-width: 1000px;
    margin: 0 auto 5rem;
    text-align: center;
}

.reading-traces__header h2 {
    margin: 0;
    color: #294034;
    font-family: var(--title-font, Georgia, serif);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1;
}

.reading-traces__grid {
    width: min(1250px, 100%);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(40, 37, 31, 0.2);
    border-left: 1px solid rgba(40, 37, 31, 0.2);
}

.reading-trace {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-right: 1px solid rgba(40, 37, 31, 0.2);
    border-bottom: 1px solid rgba(40, 37, 31, 0.2);
}

.reading-trace__number {
    margin: 0;
    color: #9a753e;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
}

.reading-trace h3 {
    margin: auto 0 1.5rem;
    color: #294034;
    font-family: var(--title-font, Georgia, serif);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 400;
}

.reading-trace > p:last-child {
    margin: 0;
    line-height: 1.75;
}


/* ==================================================
   CORRESPONDANCES
   ================================================== */

.book-correspondences {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: clamp(4rem, 9vw, 9rem);
    padding: clamp(6rem, 10vw, 10rem);
    background: #cfc5b4;
    color: #28251f;
}

.book-correspondences__heading .chapter-label {
    justify-content: flex-start;
}

.book-correspondences h2 {
    margin: 0;
    color: #294034;
    font-family: var(--title-font, Georgia, serif);
    font-size: clamp(3rem, 6vw, 5.8rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.book-correspondences__content > p {
    margin-top: 0;
    font-size: 1.08rem;
    line-height: 1.8;
}

.book-correspondences__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 2rem 0 2.5rem;
}

.book-correspondences__links a {
    padding: 0.7rem 1rem;
    border: 1px solid rgba(40, 37, 31, 0.25);
    color: inherit;
    font-size: 0.78rem;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.book-correspondences__links a:hover {
    background: #294034;
    color: #f3eddf;
}


/* ==================================================
   FIN
   ================================================== */

.book-ending {
    padding: clamp(6rem, 10vw, 9rem) 1.5rem;
    background: #202d26;
    color: #f3eddf;
    text-align: center;
}

.book-ending__octopus {
    font-size: 2rem;
}

.book-ending__signature {
    margin: 1.5rem 0 3rem;
    font-family: var(--title-font, Georgia, serif);
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.book-ending__time {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.book-ending__time p {
    margin: 0;
}

.book-ending__time span {
    display: block;
    margin-bottom: 0.4rem;
    color: #d0a85f;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.book-ending__back {
    color: inherit;
    text-decoration: none;
}


/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 900px) {

    .book-hero__layout,
    .book-chronicle__layout,
    .translation-focus,
    .book-correspondences {
        grid-template-columns: 1fr;
    }

    .book-hero__cover {
        width: min(330px, 75vw);
    }

    .reading-notebook {
        position: static;
    }

    .reading-traces__grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 650px) {

    .book-hero,
    .book-chronicle,
    .translation-focus,
    .reading-traces,
    .book-correspondences {
        padding-inline: 1.25rem;
    }

    .book-hero .chapter-label,
    .translation-focus__heading .chapter-label,
    .book-correspondences__heading .chapter-label {
        justify-content: center;
        width: 100%;
    }

    .book-hero__content {
        text-align: center;
    }

    .book-hero__details {
        justify-content: center;
        flex-wrap: wrap;
    }

    .book-hero__scroll {
        align-items: center;
    }

}

/* Hero littéraire : couvrir toute la hauteur de l’écran */
.literature-page .book-hero {
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
}

/* Nom du site sur le bandeau clair des chroniques littéraires */
.chronicle-nav--literature .chronicle-nav__brand {
  color: #263b30;
}

.chronicle-nav--literature .chronicle-nav__brand:hover,
.chronicle-nav--literature .chronicle-nav__brand:focus-visible {
  color: #326344;
}

.book-quotation {
  margin: 3rem 0;
}

.book-quotation .book-chronicle__quote {
  margin: 0;
}

.book-quotation figcaption {
  margin-top: 1.25rem;
  padding-left: 2.4rem;
  color: #b89b62;
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .book-quotation figcaption {
    padding-left: 1.25rem;
  }
}

.chronicle-warning {
    margin-bottom: 2.5rem;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--bronze);
    background: rgba(176, 141, 87, 0.08);
}

.chronicle-warning p {
    margin: 0;
    font-family: var(--text-font);
    font-size: 0.95rem;
    line-height: 1.65;
}

.chronicle-warning strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--forest);
}

.chronicle-ending__octopus {
    filter: none;
}

.chronicle-share {
    width: min(100%, 850px);
    margin: 4rem auto;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(176, 141, 87, 0.35);
    border-bottom: 1px solid rgba(176, 141, 87, 0.35);
    text-align: center;
}

.chronicle-share h2 {
    margin: 0 0 1rem;
    color: var(--forest);
    font-family: var(--title-font);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 400;
}

.chronicle-share__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.chronicle-share__actions button,
.chronicle-share__actions a {
    padding: 0.85rem 1.2rem;
    border: 1px solid var(--forest);
    border-radius: 3px;
    color: var(--forest);
    background: transparent;
    font: inherit;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.chronicle-share__actions [hidden] {
    display: none;
}

.chronicle-share__actions button:hover,
.chronicle-share__actions a:hover {
    color: var(--parchment);
    background: var(--forest);
}

.chronicle-share__actions button:focus-visible,
.chronicle-share__actions a:focus-visible {
    outline: 2px solid var(--bronze);
    outline-offset: 4px;
}

.chronicle-share__hint,
.chronicle-share__status {
    font-size: 0.9rem;
    line-height: 1.6;
}

.chronicle-share__status {
    min-height: 1.6em;
    overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
    .chronicle-share__actions button,
    .chronicle-share__actions a {
        transition: none;
    }
}