/* ===========================
   CALEANA FESTIVAL - Subpages
   =========================== */

body.subpage-page {
    background: linear-gradient(180deg, #fff8f2 0%, #fdf1e6 52%, #f6eefb 100%);
}

body.subpage-page::before {
    content: none;
    display: none;
}

body.subpage-page .nav {
    position: sticky;
    top: 0;
    min-height: 0;
    background: rgba(255, 248, 242, 0.92);
    border-bottom: 1px solid rgba(61, 27, 110, 0.08);
    box-shadow: 0 10px 30px rgba(61, 27, 110, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.subpage-page .nav .container {
    justify-content: center;
    min-height: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.subpage-brand {
    color: var(--violet-deep);
    font-family: var(--font-brand);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.subpage-main {
    padding: clamp(1.5rem, 4vw, 2.5rem) 0 0;
}

.subpage-link-row {
    padding: 0 0 1.75rem;
}

.subpage-link-row .container {
    text-align: center;
}

.subpage-home-link {
    min-width: min(100%, 320px);
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    text-transform: none;
    letter-spacing: 0.01em;
}

body.subpage-page .about {
    background: transparent;
    padding: 0 0 2rem;
}

.subpage-content .container {
    max-width: 980px;
}

body.subpage-page .about .section-title.subpage-heading {
    max-width: 18ch;
    margin: 0 auto 1.5rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--violet-deep);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
    text-transform: none;
    text-wrap: balance;
}

.subpage-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 860px;
}

body.subpage-page .about-card {
    padding: clamp(1.3rem, 2.5vw, 1.8rem);
    border: 1px solid rgba(61, 27, 110, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 40px rgba(61, 27, 110, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
}

body.subpage-page .about-card:hover {
    transform: none;
    box-shadow: 0 16px 40px rgba(61, 27, 110, 0.08);
}

body.subpage-page .about-card::before {
    content: none;
}

body.subpage-page .about-card--main {
    padding: clamp(1.5rem, 3vw, 2rem);
    text-align: left;
}

body.subpage-page .about-card h2 {
    margin-bottom: 0.7rem;
    color: var(--violet-deep);
    font-family: var(--font-brand);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
}

body.subpage-page .about-card p,
body.subpage-page .about-card li {
    color: #413851;
    font-size: 1rem;
    line-height: 1.72;
}

body.subpage-page .about-card p {
    margin-bottom: 0;
}

body.subpage-page .about-card p + p {
    margin-top: 0.85rem;
}

body.subpage-page .about-card .info-note {
    color: #53486a;
}

body.subpage-page .about-list {
    margin-top: 0.95rem;
    margin-bottom: 0;
}

body.subpage-page .about-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

body.subpage-page .about-list li::before {
    top: 0.68rem;
    width: 0.4rem;
    height: 0.4rem;
    background: var(--coral);
}

body.subpage-page .footer.subpage-footer {
    background: transparent;
    padding: 0 0 3rem;
    box-shadow: none;
}

body.subpage-page .subpage-footer::before {
    background: rgba(61, 27, 110, 0.12);
}

body.subpage-page .subpage-footer .footer-logo {
    color: var(--violet-deep);
}

body.subpage-page .subpage-footer .footer-credit {
    color: #5f5670;
}

/* Press page */

.press-download {
    margin-top: 1.25rem;
    text-align: center;
}

.press-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0.01em;
}

/* Ratio on link + fill avoids img intrinsic size vs aspect-ratio (differs by browser / cache). */
.press-photo-link {
    display: block;
    position: relative;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.press-photos-grid {
    display: grid;
    /* Toujours au moins 2 colonnes : évite une longue pile verticale sur mobile */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    margin-top: 1rem;
    align-items: start;
}

@media (min-width: 520px) {
    .press-photos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .press-photos-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
}

.press-photos-grid img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.press-photos-grid .press-photo-link:hover img {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(61, 27, 110, 0.15);
}

@media (max-width: 768px) {
    body.subpage-page .about .section-title.subpage-heading {
        max-width: 14ch;
        font-size: clamp(1.9rem, 9vw, 2.7rem);
    }

    .subpage-home-link {
        width: 100%;
    }
}
