/* =========================================================
   STYLE LTR — CLEAN (FR/EN/ES/IT/DE...)
   - Doublons retirés
   - Typo plus grosse
   - Colonne stable et alignements propres
   - Poésie: strophe + span
   ========================================================= */

/* =========================
   1) VARIABLES
   ========================= */
:root {
    /* Couleurs */
    --bg: #F3F4F6;
    --fg: #000;
    --accent: #a47864;

    /* Typo */
    --font-ui: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-text: Arial, Helvetica, sans-serif;

    --text-size: clamp(1.25rem, 1.2vw + 0.95rem, 1.70rem);
    --text-lh: 1.70;

    --poem-size: clamp(1.25rem, 1.2vw + 0.95rem, 1.75rem);
    --poem-lh: 1.62;
    --verse-gap: 0.10em;

    /* Largeur / padding colonne */
    --lecture-max: 72ch;
    --col-pad: clamp(16px, 3vw, 36px);

    /* Espaces verticaux */
    --para-gap: 1.05rem;
    --strophe-gap: 1.35rem;
    --block-gap: 2.2rem;
    --rule-gap: 40px;

    /* Scrollbar */
    --sb-thumb: yellow;
    --sb-track: white;
}

/* =========================
   2) BASE / RESET
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--fg);
    direction: ltr;
}

body {
    font-family: var(--font-text);
    font-size: var(--text-size);
    line-height: var(--text-lh);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Liens */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =========================
   3) SCROLLBARS (page)
   ========================= */
body {
    scrollbar-width: auto;
    scrollbar-color: var(--sb-thumb) var(--sb-track);
}

::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-track {
    background: var(--sb-track);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--sb-thumb);
    border-radius: 10px;
    border: 5px solid #000;
}

/* =========================
   4) COLONNE / CONTAINERS
   ========================= */
.section-inner {
    width: min(100%, var(--lecture-max));
    margin-left: auto;
    margin-right: auto;
    padding-inline: var(--col-pad);
}

/* Utilitaires */
.centered-text {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.centered-content {
    width: min(100%, var(--lecture-max));
    margin: 0 auto;
    padding-inline: var(--col-pad);
    text-align: justify;
}

.justifie-texte {
    width: min(100%, var(--lecture-max));
    margin: 0 auto;
    padding-inline: var(--col-pad);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}

/* Bloc texte */
.bloc-texte {
    width: min(100%, var(--lecture-max));
    margin: 0 auto var(--para-gap);
    padding-inline: var(--col-pad);
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}

/* =========================
   5) TEXTE PROSE
   ========================= */
main p,
.bloc-texte p {
    margin: 0 0 var(--para-gap) 0;
    line-height: var(--text-lh);
    font-family: var(--font-text);
    font-weight: 400;
    color: var(--fg);
}

/* =========================
   6) TITRES (page)
   ========================= */
.titre-oeuvre{
  width: min(100%, var(--lecture-max));
  margin: 0 auto var(--block-gap);
  padding-inline: var(--col-pad);
  text-align: center;
  font-family: var(--font-ui);

  display: flex;
  flex-direction: column;
  align-items: center;   /* centre horizontalement */
}

.titre-principal {
    font-size: clamp(2.9rem, 5.4vw, 4.6rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    margin: 0 0 0.6rem 0;
    overflow-wrap: anywhere;
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    text-transform: uppercase;
}

.titre-genre {
    font-size: clamp(1.35rem, 2.2vw, 2.05rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.78;
    margin: 0;
}

/* Mettre en majuscule tous les liens de liste */
li a {
    text-transform: uppercase;
}

/* H6 */
h6 {
    width: min(100%, var(--lecture-max));
    margin: 20px auto 10px;
    padding-inline: var(--col-pad);
    font-family: var(--font-ui);
    font-size: 2.2rem;
    font-weight: 700;
    text-align: left;
    color: var(--accent);
}

/* =========================
   7) POÉSIE (structure)
   ========================= */
.poeme {
    margin: 0;
    padding: 0;
}

.poeme h1,
.poeme h2,
.poeme h3 {
    width: 100%;
    margin: 4rem 0 1rem 0;
    padding: 0;
    font-family: var(--font-ui);
    font-weight: 800;
    font-size: clamp(1.45rem, 1.4vw + 1.0rem, 2.05rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: start;
}

.strophe {
    margin: 0 0 var(--strophe-gap) 0;
    padding: 0;
    font-family: var(--font-text);
    font-weight: 500;
    font-size: var(--poem-size);
    line-height: var(--poem-lh);
    text-align: start;
}

.strophe > span {
    font-size: 2rem;
    display: block;
    margin: var(--verse-gap) 0;
}

.preline {
    white-space: pre-line;
}

.espace-faible {
    margin-bottom: .8em !important;
}

.espace-moyen {
    margin-bottom: 1.4em !important;
}

.espace-fort {
    margin-bottom: 2.2em !important;
}

.strophe > span.vide {
    display: block;
    height: 1.2em;
}

.strophe > span.espace {
    display: block;
    height: 1.2em;
}

.strophe > span.espace.espace {
    height: 2.5em;
}

/* Ligne de séparation */
.ligne-pleine {
    width: 100%;
    height: 2px;
    background-color: currentColor;
    margin: var(--rule-gap) 0;
    opacity: 0.6;
}

/* =========================
   8) IMAGES
   ========================= */
.image-wrapper {
    width: clamp(700px, 40vw, 1600px);
    margin: 0 auto;
}

.image-display {
    width: 100%;
    height: auto;
}

/* Description image */
:root {
    --desc-max: 90%;
}

.image-description {
    width: min(var(--desc-max), var(--lecture-max, 900px));
    margin: 15px auto 0;
    padding-inline: 20px;
    text-align: justify;
    line-height: 1.65;
    color: #000;
}

.align-center {
    text-align: center;
}

/* =========================
   9) RESPONSIVE
   ========================= */
@media (max-width: 600px) {
    :root {
        --text-lh: 1.68;
        --poem-lh: 1.60;
        --strophe-gap: 1.15rem;
        --block-gap: 1.8rem;
    }

    .titre-genre {
        letter-spacing: 0.16em;
    }

    img {
        width: 92%;
    }
}

p {
    text-align: justify;
}

/* =========================
   10) ZOOM VISU
   ========================= */
img.visu-img {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    height: auto;
    cursor: zoom-in;
    transition: all .25s ease;
}

img.visu-img.is-zoomed {
    width: min(95vw, 1200px);
    max-width: none;
    cursor: zoom-out;
}

.visu {
    margin-bottom: 30px;
}

.visu-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

img.visu.is-zoomed {
    position: relative;
    z-index: 9999;
}


p {
    text-align: left;
}

.bloc-texte p,
main p {
    text-align: justify;
}


@media (max-width: 768px) {
  .section-inner,
  .bloc-texte,
  .justifie-texte {
    padding-inline: 5px;
    box-sizing: border-box;
  }
}