/* Explain: Component styles for buttons, links, typography, and gallery modal. */
.btn-velvet,
.btn-outline-velvet,
.btn-cream,
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-velvet {
    background: var(--primary-color);
    color: #ffffff;
    border: 1px solid var(--primary-color);
}

.btn-velvet:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline-velvet {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline-velvet:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-cream {
    background: var(--background-color);
    color: var(--primary-color);
    border: 1px solid var(--background-color);
}

.btn-cream:hover {
    transform: translateY(-2px);
    background: #ffffff;
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.lien-fleche {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 1px solid transparent;
    transition: gap 0.25s ease, border-color 0.25s ease;
}

.lien-fleche:hover {
    gap: 0.85rem;
    border-color: currentColor;
}

.nav-link {
    position: relative;
    padding-bottom: 3px;
    color: var(--text-color);
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 0;
    background: var(--primary-color);
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.prose-theatre p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.prose-theatre p:last-child {
    margin-bottom: 0;
}

.prose-theatre h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin: 1.75rem 0 0.5rem;
    color: var(--text-color);
}

.prose-theatre ul,
.prose-theatre ol {
    margin: 0 0 1rem 1.25rem;
    line-height: 1.8;
}

.prose-theatre ul {
    list-style: disc;
}

.prose-theatre ol {
    list-style: decimal;
}

.prose-theatre strong {
    font-weight: 700;
    color: var(--text-color);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.faq-chevron {
    transition: transform 0.25s ease;
}

details[open] .faq-chevron {
    transform: rotate(180deg);
}

details > summary {
    cursor: pointer;
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(34, 27, 26, 0.86);
    backdrop-filter: blur(4px);
}

.gallery-modal.is-open {
    display: flex;
}

.gallery-modal__panel {
    width: 100%;
    max-width: 56rem;
    max-height: 88vh;
    overflow-y: auto;
    padding: 1.5rem;
    border-radius: 1.75rem;
    border: 1px solid var(--border-color);
    background: var(--background-color);
}

.gallery-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.gallery-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.gallery-modal__close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.gallery-modal__grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .gallery-modal__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gallery-modal__img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 1rem;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}