/*
 * Site de la chorale (domaine choeur-et-chore.fr) : mêmes codes que la billetterie (noir, rouge scène, or, Playfair/Montserrat),
 * avec les photos de l'ancien site WordPress. Complète app.css.
 */

/* ───────── Menu : burger sur mobile (sans JavaScript) ───────── */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; }
.site-nav--chorale a[aria-current="page"] { color: var(--c-gold); }
.site-nav--chorale a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 960px) {
    .site .site-header .container { flex-wrap: nowrap; }
    .nav-burger { display: grid; gap: 5px; width: 44px; height: 44px; padding: 13px 10px; border: 1px solid var(--hair); border-radius: 8px; cursor: pointer; }
    .nav-burger span { height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
    .site-nav--chorale { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; background: #050505; border-bottom: 1px solid var(--hair); }
    .site-nav--chorale a, .site .site-nav a:not(.nav-cta) { display: block; padding: 12px 6px; font-size: 1rem; border-bottom: 1px solid #161616; border-radius: 0; }
    .site-nav--chorale a::after { display: none; }
    .site-nav--chorale a.nav-cta { margin-top: 12px; text-align: center; border-radius: 6px; border: 0; }
    .nav-toggle:checked ~ .site-nav--chorale { display: flex; }
    .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
.site-flashes { padding-top: 24px; }

/* ───────── Bandeaux avec photo (images du WordPress sous un voile noir ; pas de projecteurs animés : réservés à la billetterie) ───────── */
.hero-photo { background: #100303 var(--hero) center bottom / cover no-repeat; }   /* comme le WordPress : image pleine, sans voile */
.hero-photo::after { display: none; }
.hero-photo .hero-title, .hero-photo .hero-sub { text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.page-hero { padding: 4rem 0; text-align: center; background: #6b0000 var(--hero) center / cover no-repeat; }   /* « jumbotron-page » du WordPress */
.page-hero h1 { margin: 0 0 .4em; font-size: clamp(36px, 6vw, 60px); }
.page-hero .lead { margin: 0 auto; max-width: 62ch; color: #fff; font-size: 1.25rem; }
.wp-breadcrumb { background: #111; padding: 1rem 0; font-size: .95rem; }
.wp-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: baseline; list-style: none; margin: 0; padding: 0; color: #fff; }
.wp-breadcrumb li + li::before { content: '/'; padding: 0 .5rem; color: #999; }
.wp-breadcrumb a { color: #fff; text-decoration: none; }
.wp-breadcrumb a:hover { color: var(--c-red); }
.wp-breadcrumb [aria-current] { color: #999; }
.article-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .3em; }
.article-head time { color: var(--c-gold); font-size: .9rem; letter-spacing: .04em; }
.article-cover { margin: 24px 0 28px; border-radius: 6px; overflow: hidden; }
.article-cover img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }

/* ───────── Texte + photo ───────── */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 30px; } .split--reverse > :first-child { order: 0; } }
.photo-frame { position: relative; margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--hair); background: #101010; }
.photo-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(220, 199, 160, .12); border-radius: inherit; pointer-events: none; }
.photo-frame img { display: block; width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.sec-head--left { text-align: left; }
.sec-head--left .orn { justify-content: flex-start; }
.sec-head--left .orn::before { display: none; }

.prose { color: #e9e2d3; font-size: 1.02rem; }
.prose h2 { font-family: var(--font-title); font-size: clamp(1.6rem, 3.2vw, 2.2rem); color: #fff; margin-bottom: .6em; }
.prose h2::after { content: ""; display: block; width: 46px; height: 2px; margin-top: 12px; background: var(--c-red); }
.prose p { margin: 0 0 1em; }
.prose strong { color: #fff; }
.prose a { color: var(--c-gold); }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose figure { margin: 26px 0; }
.prose figure.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.prose figure.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 560px) { .prose figure.gallery { grid-template-columns: 1fr; } }
.prose hr { border: 0; height: 1px; background: var(--hair); margin: 30px 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding: 4px 0 4px 26px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 8px; height: 8px; background: var(--c-red); transform: rotate(45deg); }
.how--2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.how--2 p, .how--2 li { color: #cfc6b6; font-size: .95rem; }
.how--2 .ticks { margin: 10px 0; }

/* ───────── Agenda ───────── */
.agenda-list { display: grid; gap: 14px; }
@media (min-width: 900px) { .agenda-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
/* Espace avant le pied de page quand la page se termine par une section */
main > .section:last-child { padding-bottom: 72px; }
.agenda-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 18px 22px; border-radius: 16px; background: #101010; border: 1px solid var(--hair); }
.agenda-item .card-title { font-family: var(--font-title); font-size: 1.3rem; color: #fff; margin: 0 0 6px; }
.agenda-item .date-chip small { margin-top: 3px; font-size: .62rem; color: var(--c-muted); letter-spacing: .1em; }
.agenda-item.is-past { opacity: .62; }
.agenda-item.is-past .date-chip { background: #151515; border-color: #2b2b2b; }
.agenda-desc { margin-top: 10px; font-size: .95rem; }
@media (max-width: 640px) { .agenda-item { grid-template-columns: auto 1fr; } .agenda-item .btn { grid-column: 1 / -1; } }

/* ───────── Actualités ───────── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 26px; }
.news-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #101010; border: 1px solid var(--hair); transition: border-color .2s, transform .2s; }
.news-card:hover { border-color: rgba(205, 1, 1, .6); transform: translateY(-3px); }
.news-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #2a0303; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-card__img img { transform: scale(1.04); }
.news-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--c-red); }
.news-card__placeholder .i { width: 46px; height: 46px; }
.news-card__body { padding: 20px 22px 24px; }
.news-card time { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c-gold); }
.news-card .card-title { font-family: var(--font-title); font-size: 1.3rem; margin: 8px 0 8px; line-height: 1.25; }
.news-card .card-title a { color: #fff; text-decoration: none; }
.news-card .card-title a:hover { color: var(--c-gold); }
.news-card p { margin: 0; color: #cfc6b6; font-size: .93rem; }
.article-content { font-size: 1.06rem; }
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--hair); }
.article-nav a { display: block; max-width: 48%; min-width: 0; color: #fff; text-decoration: none; font-family: var(--font-title); font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* une seule ligne */
.article-nav a small { display: block; font-family: var(--font-body); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-gold); margin-bottom: 4px; }
.article-nav a.next { text-align: right; margin-left: auto; }

/* ───────── Vidéo, appel à l'action ───────── */
.video-frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--hair); background: #000; }
.video-frame video { display: block; width: 100%; height: auto; }
.cta-band { position: relative; isolation: isolate; margin-top: 90px; padding: 80px 0; background: #6b0000 var(--bg) center / cover no-repeat; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(40, 0, 0, .35); }
.cta-band h2 { font-family: var(--font-title); font-size: clamp(2rem, 4.4vw, 3rem); color: #fff; }
.cta-text { max-width: 62ch; margin: 0 auto 26px; color: #fff; font-size: 1.08rem; }
.cta-text p { margin: 0 0 .7em; }


/* ───────── Contact, espace choristes ───────── */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid h2 { font-family: var(--font-title); color: #fff; font-size: 1.6rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; color: #e9e2d3; }
.contact-list .i { color: var(--c-red); margin-top: 3px; }
.small { font-size: .86rem; }
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; margin-top: 34px; }   /* 3 par ligne, comme le WordPress */
.group-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 6px; background: #111; border: 1px solid #222; }
.group-card__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.group-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.group-card .card-title { font-family: var(--font-title); font-size: 1.35rem; color: #fff; margin: 0; }
.group-card p { margin: 0; color: #cfc6b6; font-size: .92rem; flex: 1; }
.group-card .btn { align-self: flex-start; }
.choir-lock { max-width: 460px; margin: 0 auto; }
.choir-lock h2 { font-family: var(--font-title); color: #fff; }
.footer-social { display: flex; gap: 14px; margin-top: 12px; }

/* ───────── Repris du WordPress : gras en or, pied de page à l'identique ───────── */
.site strong, .site b, .site .prose strong { color: var(--c-gold); }
.site .btn strong, .site .cta-band strong { color: inherit; }
.wp-footer { background: #111111; color: #fff; padding: 1rem 0; font-size: .8rem; text-align: center; }
.wp-footer a { color: #fff; text-decoration: none; }
.wp-footer a:hover { color: var(--c-gold); }
.wp-footer__menu { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0; margin: 0 0 2rem; }
.wp-footer__menu li a { padding: 0 1rem; }
.wp-footer__menu li::after { content: '-'; }
.wp-footer__menu li:last-child::after { display: none; }
.wp-footer__social { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1rem; }
.wp-footer__social svg { display: block; }
.cta-band { margin-bottom: 0; }

/* Couverture : version haute définition (3840 px) sur les grands écrans et les écrans haute densité */


/* ───────── Accueil : mise en page du WordPress (sections .jumbotron, .presentation, .events, .video, .join-us) ───────── */
.wp-title { color: var(--c-red); margin-bottom: 1rem; }
.wp-title::after { content: ''; display: block; height: 1px; width: 25%; margin-top: .5rem; background: #999; }
.wp-title--center { text-align: center; margin-bottom: 2rem; }
.wp-title--center::after { width: 15%; margin: .5rem auto 0; }
.wp-jumbotron { padding: 15rem 0; text-align: center; background: #100303 var(--hero) center bottom / cover no-repeat; }
.wp-jumbotron h1 { font-size: clamp(36px, 8vw, 100px); margin: 0 0 .3em; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.wp-jumbotron .lead { font-size: 1.25rem; color: #fff; margin: 0 0 1.5rem; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.wp-jumbotron__actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 560px) { .wp-jumbotron__actions { flex-direction: column; align-items: center; } .wp-jumbotron__actions .btn { width: min(300px, 100%); justify-content: center; } }
.wp-btn-secondary { background: #000; border-color: #fff; color: #fff; }
.wp-btn-secondary:hover { background: #fff; border-color: #fff; color: #000; }
.wp-btn-info { background: #fff; border-color: #fff; color: #000; }
.wp-btn-info:hover { background: #000; border-color: #000; color: #fff; }
.wp-presentation { padding: 4rem 0; }
.wp-presentation p { color: #fff; }
.wp-events { padding: 4rem 0; text-align: center; background: #000 var(--bg) center / cover; border-top: 1px dashed var(--c-red); border-bottom: 1px dashed var(--c-red); }
.wp-events__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.5rem; }
.wp-event-card { background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .12); border-radius: 6px; padding: 1.5rem 1rem; }
.wp-event-card .card-title { color: #fff; font-family: var(--font-body); font-size: 1.25rem; font-weight: 500; margin: 0; }
.wp-event-card .card-title::after { content: ''; display: block; height: 1px; width: 25%; margin: .5rem auto 0; background: #999; }
.wp-event-card .location { margin-top: 1rem; }
.wp-event-card .date { margin-bottom: 1rem; }
.wp-event-card .btn { margin-top: .25rem; }
.wp-video { padding: 4rem 0; text-align: center; background: #000; }
.wp-video video { width: 80%; height: auto; border-radius: 6px; }
@media (max-width: 720px) { .wp-video video { width: 100%; } .wp-jumbotron { padding: 8rem 0; } }
.wp-join { padding: 4rem 0; text-align: center; color: #fff; background: #6b0000 var(--bg) center / cover; }
.wp-join h2 { color: #fff; margin-bottom: 1rem; }
.wp-join h2::after { content: ''; display: block; height: 1px; width: 15%; margin: .5rem auto 0; background: #fff; }
.wp-join strong { color: #fff; }

/* Boutons secondaires : noirs à liseré blanc, comme sur le WordPress */
.site .btn--ghost { background: #000; border-color: #fff; color: #fff; }
.site .btn--ghost:hover { background: #fff; border-color: #fff; color: #000; }
/* Liens du contenu : blancs, beige au survol (comme le WordPress) */
.site main a:not(.btn), .site .prose a { color: #fff; }
.site main a:not(.btn):hover, .site .prose a:hover { color: var(--c-gold); }
.article-nav a:only-child, .article-nav span:empty + a { max-width: 100%; }
.form-note { margin: 18px 0 24px; font-size: .86rem; color: var(--c-muted); }

/* ───────── Parallax et animations ───────── */
.parallax { position: relative; isolation: isolate; overflow: hidden; background-image: none !important; }
.parallax::before { content: ""; position: absolute; left: 0; right: 0; top: -18%; bottom: -18%; z-index: -1; background: var(--hero, var(--bg)) center / cover no-repeat; transform: translate3d(0, var(--py, 0), 0); will-change: transform; }
.wp-jumbotron.parallax::before { background-position: center bottom; }
@media (min-width: 1600px), (min-width: 1000px) and (min-resolution: 2dppx) { .parallax::before { background-image: var(--hero-hd, var(--hero, var(--bg))); } }
@media (max-width: 760px) { .parallax::before { background-image: var(--hero-sm, var(--hero, var(--bg))); } }   /* téléphone : images de fond allégées */

/* Entrée des titres de bandeau au chargement */
@keyframes rise-in { from { transform: translateY(18px); } to { transform: none; } }   /* sans fondu : le titre est visible tout de suite (LCP) */
.wp-jumbotron h1, .wp-jumbotron .lead, .wp-jumbotron__actions, .page-hero h1, .page-hero .lead { animation: rise-in .9s cubic-bezier(.2, .8, .2, 1) both; }
.wp-jumbotron .lead, .page-hero .lead { animation-delay: .15s; }
.wp-jumbotron__actions { animation-delay: .3s; }

/* Survol : cartes qui se soulèvent, photos qui zooment */
.wp-event-card, .group-card, .agenda-item, .contact-grid .card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.wp-event-card:hover, .group-card:hover, .agenda-item:hover { transform: translateY(-4px); border-color: rgba(205, 1, 1, .6); box-shadow: 0 14px 30px -18px rgba(205, 1, 1, .6); }
.photo-frame img { transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.photo-frame:hover img { transform: scale(1.04); }
.wp-title::after { transform-origin: left; transition: transform .8s ease .2s; }
.wp-title--center::after { transform-origin: center; }
.js .wp-title.reveal:not(.is-visible)::after { transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
    .wp-jumbotron h1, .wp-jumbotron .lead, .wp-jumbotron__actions, .page-hero h1, .page-hero .lead { animation: none; }
    .parallax::before { transform: none; }
}
/* En-tête : « Contact » en bouton rouge, « Billetterie » en bouton noir à liseré blanc */
.site-nav--chorale a.nav-cta { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; padding: 9px 18px; color: #fff; }
.site-nav--chorale a.nav-cta[aria-current="page"] { color: #fff; background: #a30000; }
.site-nav--chorale a.nav-cta--ghost { background: #000; border: 1px solid #fff; }
.site-nav--chorale a.nav-cta--ghost:hover { background: #fff; color: #000; }
@media (max-width: 960px) { .site-nav--chorale a.nav-cta { justify-content: center; margin-left: 0; } }
/* Page d'un groupe de travail : dossier Google Drive intégré */
.group-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.group-tabs a { padding: 7px 14px; border: 1px solid #333; border-radius: 999px; font-size: .9rem; text-decoration: none; }
.group-tabs a[aria-current="page"] { background: var(--c-red); border-color: var(--c-red); color: #fff; }

/* Accessibilité (Lighthouse / WCAG) */
.wp-title { font-size: 1.6rem; }   /* titre « grand » : le rouge du WordPress y est assez contrasté sur le noir */
.agenda-item .date-chip small { color: #a3a3a3; }
.wp-footer__menu li a { display: inline-block; padding: .55rem 1rem; }   /* zones de clic d'au moins 24 px */
.wp-footer__menu { margin-bottom: 1.25rem; }
.wp-footer__social a { display: grid; place-items: center; width: 40px; height: 40px; }
.wp-breadcrumb a { display: inline-block; padding: 4px 0; }
.drive-load { display: grid; place-items: center; align-content: center; gap: 8px; width: 100%; min-height: 260px; padding: 30px; border: 0; background: #111; color: #fff; font: inherit; cursor: pointer; }
.drive-load .i { width: 40px; height: 40px; color: var(--c-red); }
.drive-load span { font-size: 1.1rem; font-weight: 500; }
.drive-load small { color: #a3a3a3; }
.drive-load:hover span { color: var(--c-gold); }
.drive-link { min-height: 160px; margin-bottom: 16px; border-radius: 6px; text-decoration: none; text-align: center; }
.drive-link:hover, .drive-link:focus-visible { color: #fff; outline: 2px solid var(--c-gold); outline-offset: 2px; }

/* Couverture de l'accueil : image réelle sous le texte, décalée en parallax via --py */
.wp-jumbotron { position: relative; isolation: isolate; overflow: hidden; background: #100303; }
.wp-jumbotron__img { position: absolute; left: 0; top: -18%; z-index: -1; width: 100%; height: 136%; object-fit: cover; object-position: center bottom; transform: translate3d(0, var(--py, 0), 0); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .wp-jumbotron__img { transform: none; } }

/* Couverture à hauteur fixe : l'arrivée des polices (font-display: swap) ne la fait plus bouger (CLS) */
.wp-jumbotron { padding: 0; height: clamp(560px, 82vh, 860px); display: grid; align-items: center; }
@media (max-width: 720px) { .wp-jumbotron { height: clamp(460px, 78vh, 640px); } }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Visionneuse des photos d'actualités et d'agenda (controllers/lightbox_controller.js) */
.prose img.is-zoomable { cursor: zoom-in; transition: opacity .2s; }
.prose img.is-zoomable:hover { opacity: .9; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 48px 64px; border: 0; background: rgba(5, 5, 5, .94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; border-radius: 10px; }
.lightbox button { position: absolute; border: 0; background: transparent; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; padding: 8px 14px; }
.lightbox button:hover, .lightbox button:focus-visible { color: var(--c-gold); }
.lightbox__close { top: 10px; right: 14px; }
.lightbox__nav--prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 6px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 12px; left: 0; right: 0; margin: 0; text-align: center; font-size: .85rem; opacity: .7; }
@media (max-width: 600px) { .lightbox { padding: 48px 8px; } }
