/* =========================
   LIVRE D'OR — cohérence avec le thème musée
========================= */

.page-livre-or {
    position: relative;
    max-width: 720px;
    margin: 40px auto;
    padding: 36px 30px;
    background: linear-gradient(160deg, var(--wood) 0%, var(--wood-dark) 100%);
    border: 1px solid rgba(201, 168, 118, 0.4);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}

.page-livre-or::before {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(201, 168, 118, 0.25);
    border-radius: 3px;
    pointer-events: none;
}

.titre-livre-or {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--brass-bright);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
    text-align: center;
    margin: 0 0 12px;
}

.intro-livre-or {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    color: var(--mat);
    opacity: 0.9;
    text-align: center;
    line-height: 1.6;
    margin: 0 0 32px;
}

/* =========================
   FORMULAIRE
========================= */
.livre-or-formulaire-zone {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(201, 168, 118, 0.25);
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 36px;
}

.livre-or-formulaire {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.livre-or-champ {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.livre-or-champ label {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brass-bright);
    opacity: 0.85;
}

.livre-or-champ input,
.livre-or-champ textarea {
    font-family: 'EB Garamond', serif;
    font-size: 16px;
    color: var(--mat);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(201, 168, 118, 0.35);
    border-radius: 4px;
    padding: 10px 12px;
    resize: vertical;
}

.livre-or-champ input:focus,
.livre-or-champ textarea:focus {
    outline: none;
    border-color: var(--brass-bright);
    box-shadow: 0 0 0 2px rgba(228, 201, 143, 0.2);
}

.livre-or-champ input::placeholder,
.livre-or-champ textarea::placeholder {
    color: var(--ink-soft);
}

/* Piège à robots : masqué visuellement, mais accessible aux bots */
.livre-or-piege {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.livre-or-bouton {
    align-self: center;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
    padding: 12px 32px;
    background: linear-gradient(180deg, var(--brass-bright) 0%, var(--brass) 100%);
    color: var(--wood-dark);
    border: 1px solid #7c6743;
    border-radius: 4px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.livre-or-bouton:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.livre-or-message-succes,
.livre-or-message-erreur {
    font-family: 'EB Garamond', serif;
    font-size: 15px;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.livre-or-message-succes {
    background: rgba(120, 190, 120, 0.15);
    border: 1px solid rgba(120, 190, 120, 0.4);
    color: #cdeecd;
}

.livre-or-message-erreur {
    background: rgba(210, 110, 110, 0.15);
    border: 1px solid rgba(210, 110, 110, 0.4);
    color: #f3c9c9;
}

/* =========================
   LISTE DES MESSAGES
========================= */
.livre-or-liste {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.livre-or-vide {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--mat);
    opacity: 0.7;
    text-align: center;
}

.livre-or-carte {
    position: relative;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(201, 168, 118, 0.25);
    border-left: 3px solid var(--brass);
    border-radius: 4px;
    padding: 16px 18px;
}

.livre-or-carte-entete {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.livre-or-carte-nom {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    letter-spacing: 0.03em;
    color: var(--brass-bright);
}

.livre-or-carte-date {
    font-family: 'EB Garamond', serif;
    font-size: 12px;
    color: var(--ink-soft);
    opacity: 0.9;
}

.livre-or-carte-texte {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: var(--mat);
    opacity: 0.92;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

.livre-or-carte-admin {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}

.livre-or-carte-ip {
    font-family: 'EB Garamond', serif;
    font-size: 11px;
    color: var(--ink-soft);
    opacity: 0.8;
}

.livre-or-carte-supprimer {
    display: inline-block;
    font-family: 'EB Garamond', serif;
    font-size: 12px;
    color: #f3c9c9;
    text-decoration: none;
    opacity: 0.75;
}

.livre-or-carte-supprimer:hover {
    opacity: 1;
    text-decoration: underline;
}

/* =========================
   PAGINATION
========================= */
.livre-or-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.livre-or-pagination a {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    color: var(--brass-bright);
    text-decoration: none;
    border: 1px solid rgba(201, 168, 118, 0.35);
    border-radius: 4px;
    padding: 6px 12px;
}

.livre-or-pagination a:hover {
    background: rgba(201, 168, 118, 0.15);
}

.livre-or-pagination a.actif {
    background: linear-gradient(180deg, var(--brass-bright) 0%, var(--brass) 100%);
    color: var(--wood-dark);
    font-weight: 600;
}

@media (max-width: 600px) {
    .page-livre-or {
        margin: 20px 12px;
        padding: 26px 18px;
    }

    .livre-or-carte-entete {
        flex-direction: column;
        gap: 4px;
    }
}
