/* Explain: Reusable UI styles: buttons, cards, toasts, plus legal-page typography. */
/* Texture bois (grain subtil) */
.wood-panel {
    position: relative;
    overflow: hidden;
}

.wood-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
    background-image:
        repeating-linear-gradient(90deg, rgba(45, 36, 32, 0.06) 0 2px, transparent 2px 10px),
        repeating-linear-gradient(88deg, rgba(220, 199, 161, 0.20) 0 1px, transparent 1px 14px);
}

.btn-bois {
    min-height: 3rem;
    border-radius: var(--radius-oval);
    background: var(--espresso-color);
    color: var(--pearl-color);
    border: 1px solid var(--espresso-color);
    padding-inline: 1.35rem;
    transition: all 300ms ease;
    cursor: pointer;
}

.btn-bois:hover,
.btn-bois:focus-visible {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-clair {
    min-height: 3rem;
    border-radius: var(--radius-oval);
    background: rgba(251, 248, 243, 0.72);
    color: var(--espresso-color);
    border: 1px solid rgba(45, 36, 32, 0.24);
    padding-inline: 1.35rem;
    transition: all 300ms ease;
    cursor: pointer;
}

.btn-clair:hover,
.btn-clair:focus-visible {
    border-color: var(--espresso-color);
    background: var(--surface-color);
}

.cadre {
    border-radius: 2.25rem;
    border: 1px solid rgba(220, 199, 161, 0.9);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.editorial-card {
    border: 1px solid rgba(201, 199, 194, 0.7);
    background: rgba(255, 253, 248, 0.8);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
}

.product-card img {
    transition: transform 600ms ease;
}

.product-card:hover img {
    transform: scale(1.035);
}

.gallery-thumb {
    border: 1px solid rgba(201, 199, 194, 0.7);
    opacity: 0.62;
    transition: all 240ms ease;
    cursor: pointer;
}

.gallery-thumb.is-active,
.gallery-thumb:hover,
.gallery-thumb:focus-visible {
    opacity: 1;
    border-color: var(--espresso-color);
}

.toast-msg {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    z-index: 80;
    transform: translateX(-50%) translateY(1rem);
    opacity: 0;
    pointer-events: none;
    transition: all 240ms ease;
}

.toast-msg.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Alias de compatibilité */
.lace-panel { position: relative; overflow: hidden; }
.btn-bridal { min-height: 3rem; border-radius: var(--radius-oval); background: var(--espresso-color); color: var(--pearl-color); border: 1px solid var(--espresso-color); padding-inline: 1.35rem; cursor: pointer; }
.btn-veil { min-height: 3rem; border-radius: var(--radius-oval); background: rgba(251, 248, 243, 0.72); color: var(--espresso-color); border: 1px solid rgba(45, 36, 32, 0.24); padding-inline: 1.35rem; cursor: pointer; }
.toast-bridal { position: fixed; left: 50%; bottom: 1.25rem; z-index: 80; transform: translateX(-50%); }

/* Contenu des pages légales */
.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    line-height: 1.25;
    color: var(--espresso-color);
    margin-top: 2.5rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--espresso-color);
    margin-top: 1.6rem;
}

.legal-content p {
    margin-top: 0.75rem;
    line-height: 1.85;
    color: var(--text-muted);
}

.legal-content ul {
    margin-top: 0.75rem;
    padding-left: 1.25rem;
    list-style: disc;
    color: var(--text-muted);
    line-height: 1.85;
}

.legal-content li {
    margin-top: 0.4rem;
}

.legal-content strong {
    color: var(--espresso-color);
}

.legal-note {
    border: 1px dashed rgba(217, 167, 160, 0.9);
    background: rgba(217, 167, 160, 0.1);
}