/* Livre des souvenirs — couleurs héritées du thème saisonnier chargé par le site. */
.livre-hommages .hommage-lecture__texte {
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.livre-hommages .hommage-lecture__texte.is-reduit {
    max-height: var(--hommage-hauteur-apercu);
    overflow: hidden;
}
.livre-hommages .hommage-lecture__bouton {
    margin-top: .65rem;
    padding: .3rem .65rem;
    border: 1px solid var(--theme-bordure, #ddd);
    border-radius: .5rem;
    background: var(--theme-fond-clair, #f8f8f8);
    color: var(--theme-principale, #444);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.livre-hommages .hommage-lecture__bouton[hidden] { display: none; }
.livre-hommages .hommage-lecture__bouton:hover { text-decoration: underline; }
.livre-hommages .hommage-lecture__bouton:focus-visible {
    outline: 2px solid var(--theme-principale, #444);
    outline-offset: 3px;
}

/* Livre des souvenirs : styles limités au mur. */
.livre-hommages .hommage-livre {
    min-width: 0;
    --hommage-papier: var(--theme-bandeau-fin, #f7f7f7);
    --hommage-encre: var(--theme-texte, #333);
    --hommage-discret: var(--theme-texte-secondaire, #555);
    --hommage-bordure: var(--theme-bordure, #ddd);
}
.livre-hommages .hommage-livre__entete {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
    padding: 10px 4px 22px;
    border-bottom: 1px solid var(--hommage-bordure);
}
.livre-hommages .hommage-livre__embleme {
    display: grid;
    place-items: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border: 1px solid var(--hommage-bordure);
    border-radius: 50%;
    color: var(--theme-principale, #444);
    background: var(--hommage-papier);
    font-size: 25px;
}
.livre-hommages .hommage-livre__surtitre {
    margin: 0 0 5px;
    color: var(--theme-principale, #444);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.livre-hommages .hommage-livre__entete h2 {
    margin: 0;
    color: var(--hommage-encre);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.55rem, 2.5vw, 2.1rem);
    font-weight: 400;
    line-height: 1.25;
}
.livre-hommages .hommage-livre__intro {
    margin: 8px 0 0;
    color: var(--hommage-discret);
    line-height: 1.6;
    font-size: .94rem;
}
.livre-hommages .hommage-feuillet {
    position: relative;
    margin: 0 0 26px;
    padding: 0 clamp(18px, 3vw, 38px);
    border: 1px solid var(--hommage-bordure);
    border-left: 5px solid var(--hommage-bordure);
    border-radius: 3px 14px 14px 3px;
    background: linear-gradient(90deg, var(--theme-bandeau-debut, #eee) 0, var(--hommage-papier) 24px);
    color: var(--hommage-encre);
    box-shadow: 0 4px 0 -1px var(--theme-fond-clair, #fafafa), 0 5px 0 var(--hommage-bordure), 0 10px 24px var(--theme-ombre-0-0-0-5, rgba(0, 0, 0, .05));
    min-width: 0;
}
.livre-hommages .hommage-feuillet__signature {
    gap: 12px;
    padding: 22px 0 17px;
    border-bottom: 1px solid var(--hommage-bordure);
    font-size: .9rem;
    color: var(--hommage-discret);
}
.livre-hommages .hommage-feuillet__signature > .d-flex { min-width: 0; overflow-wrap: anywhere; }
.livre-hommages .hommage-feuillet__signature img {
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid var(--theme-surface, #fff);
    box-shadow: 0 0 0 1px var(--hommage-bordure);
}
.livre-hommages .hommage-feuillet__corps { padding: 24px 0; }
.livre-hommages .hommage-feuillet__corps .hommage-lecture__texte {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    line-height: 1.85;
}
.livre-hommages .hommage-feuillet__corps .hommage-lecture { max-width: 78ch; margin-inline: auto; }
.livre-hommages .hommage-feuillet__reponses {
    padding: 18px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: var(--theme-fond-conversation, var(--theme-fond-clair, #f5f5f5));
}
.livre-hommages .hommage-reponse { border-left: 2px solid var(--theme-bordure-champ, var(--theme-bordure, #ccc)); padding-left: 16px; margin: 16px 0; }
.livre-hommages .hommage-reponse:last-child { margin-bottom: 0; }
.livre-hommages .hommage-reponse .d-flex { gap: 8px; }
.livre-hommages .hommage-feuillet__pied {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0 20px;
    border-top: 1px solid var(--hommage-bordure);
    font-size: .82rem;
}
.livre-hommages .hommage-feuillet .hommage-lecture__bouton {
    background: transparent;
    border-color: transparent;
    padding-left: 0;
    font-family: inherit;
    font-size: .9rem;
}
.livre-hommages .hommage-feuillet__pied > button {
    border-color: var(--hommage-bordure);
    color: var(--theme-principale, #444);
    background: transparent;
    border-radius: 20px;
    padding: 6px 16px;
}
.livre-hommages .hommage-feuillet__pied > button:hover { background: var(--theme-bandeau-debut, #eee); }
.livre-hommages .hommage-formulaire-reponse { margin-bottom: 16px; }
@media (max-width: 575.98px) {
    .livre-hommages .hommage-livre__entete { gap: 12px; }
    .livre-hommages .hommage-livre__embleme { flex-basis: 42px; width: 42px; height: 42px; font-size: 20px; }
    .livre-hommages .hommage-feuillet { padding-inline: 16px; }
    .livre-hommages .hommage-feuillet__corps .hommage-lecture__texte { font-size: 1.03rem; line-height: 1.75; }
    .livre-hommages .hommage-feuillet__reponses { padding: 14px 12px; }
    .livre-hommages .hommage-feuillet__pied > span { text-align: left !important; }
}

.livre-hommages .hommage-livre .text-muted { color: var(--theme-texte-secondaire, #555) !important; }

/* Compléments propres aux hommages. */
.livre-hommages .ve-livre.hommage-livre {
    display: block;
    min-width: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}
.livre-hommages .hommage-lecture__texte { white-space: pre-wrap; }
.livre-hommages .hommage-feuillet__signature { display: flex; align-items: center; justify-content: space-between; }
.livre-hommages .hommage-feuillet__signature .fw-semibold { display: block; color: var(--theme-principale); font-size: 1rem; margin-bottom: 4px; }
/* Actions dans la signature, sans bandeau sous le texte. */
.livre-hommages .hommage-feuillet__signature { flex-wrap: wrap; gap: 12px; }
.livre-hommages .hommage-feuillet__signature > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.livre-hommages .hommage-feuillet__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}
.livre-hommages .hommage-feuillet__actions form { margin: 0; }
.livre-hommages .hommage-action {
    color: var(--theme-principale, #444);
    background: var(--theme-fond-clair, #fafafa);
    border: 1px solid var(--theme-bordure-champ, #ccc);
    border-radius: 20px;
    padding: 6px 12px;
    font-weight: 600;
    text-decoration: none;
}
.livre-hommages .hommage-action:hover,
.livre-hommages .hommage-action:active {
    background: var(--theme-bandeau-debut, #eee);
    color: var(--theme-principale-survol, #222);
    border-color: var(--theme-principale, #444);
}
.livre-hommages .hommage-action:focus-visible {
    outline: 2px solid var(--theme-principale, #444);
    outline-offset: 3px;
}
.livre-hommages #formulaireHommage { border-color: var(--theme-bordure) !important; background: var(--theme-surface); }
.livre-hommages .hommage-depot-titre { color: var(--theme-principale); background: var(--theme-bandeau-debut); cursor: pointer; }
.livre-hommages .hommage-envoyer { background: var(--theme-principale); color: var(--theme-surface); border-radius: .6rem; }
.livre-hommages .hommage-envoyer:hover { background: var(--theme-principale-survol); color: var(--theme-surface); }
.livre-hommages #editionHommage { border-color: var(--theme-bordure); background: var(--theme-surface); }
.livre-hommages #editionHommage .card-header-bandeau { background: var(--theme-bandeau-debut); color: var(--theme-texte) !important; padding: 16px; }
.livre-hommages .hommage-livre .bg-light-subtle { background: var(--theme-fond-clair) !important; }
.livre-hommages .hommage-livre .form-control { background: var(--theme-surface); color: var(--theme-texte); border-color: var(--theme-bordure-champ); }
