/* Modèle visuel des slides : séparé du contenu, à remplacer sans toucher aux cultes.
   Inspiré de la charte de l'Église protestante unie de France : Futura pour les titres, Franklin Gothic pour le texte,
   couleurs du logo (vitrail / gemmail). Les couleurs --titre et --bandeau viennent du thème choisi pour le culte. */
:root {
  --fond: #ffffff;
  --texte: #1b1b1b;
  --titre: #9E0E40;
  --bandeau: #9E0E40;
  --police: "Franklin Gothic Medium", "Franklin Gothic Book", "Libre Franklin", "Segoe UI", Arial, sans-serif;
  --police-titre: Futura, "Futura Medium", "Century Gothic", "Trebuchet MS", "Segoe UI", sans-serif;
}

.stage {
  position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; overflow: hidden;
  transform-origin: 0 0; background: var(--fond); color: var(--texte); font-family: var(--police);
}
/* emblème du logo en filigrane */
.stage::before {
  content: ""; position: absolute; right: -130px; bottom: -110px; width: 860px; height: 806px; opacity: .085; pointer-events: none;
  background: url(/static/logo-carre.svg) no-repeat center / contain;
}
.stage.s-vide::before, .stage.s-titre::before, .stage.s-fin::before { display: none; }
.stage .bandeau { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: var(--bandeau); }
.stage .logo { position: absolute; top: 24px; right: 56px; width: 118px; height: auto; }

.stage .entete { position: absolute; left: 90px; right: 280px; top: 26px; line-height: 1.15; white-space: nowrap; overflow: hidden;
  font-family: var(--police-titre); font-weight: 700; color: var(--titre); font-size: 70px; }
.stage .entete .n { display: inline-block; font-size: .62em; background: var(--titre); color: #fff; border-radius: 12px; padding: 0 .38em;
  margin-right: .45em; vertical-align: middle; position: relative; top: -.06em; }
.stage .zone { position: absolute; left: 80px; right: 80px; top: 150px; bottom: 56px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; }
.stage .corps { width: 100%; text-align: center; line-height: 1.28; white-space: pre-wrap; font-weight: 500; }
.stage .etiq { display: none; }

/* ouverture « Bienvenue » et fin « Merci » (inspirées du modèle PowerPoint de la paroisse) : grandes lettres, infos bien lisibles */
.stage.s-titre, .stage.s-fin { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 125px 0 76px; }
.stage.s-fin { justify-content: flex-start; gap: 70px; padding: 235px 0 76px; }
.stage .lettres { height: 630px; width: auto; flex: none; }
.stage.s-fin .lettres { height: auto; width: 1400px; }
.stage .texte-bas { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 0 120px; }
.stage .texte-bas .paroisse { font-family: var(--police-titre); font-size: 50px; letter-spacing: 3px; text-transform: uppercase; color: #5f5f5f; font-weight: 600; }
.stage .texte-bas .titre { font-family: var(--police-titre); font-weight: 700; font-size: 108px; line-height: 1.04; color: var(--titre); }
.stage .texte-bas .date { font-size: 62px; color: var(--texte); }
.stage.s-fin .texte-bas .titre { font-size: 110px; }
.stage .texte-bas .site { font-size: 52px; color: #5f5f5f; letter-spacing: 1px; }
.stage.s-titre .bandeau, .stage.s-fin .bandeau { height: 44px; }
.stage.avec-decor.s-titre, .stage.avec-decor.s-fin { padding-bottom: 150px; }
.stage.avec-decor.s-titre { padding-top: 105px; }
.stage.avec-decor.s-fin { padding-top: 190px; gap: 50px; }
.stage.avec-decor.s-titre .lettres { height: 500px; }
.stage.avec-decor.s-fin .lettres { width: 1200px; }

/* section */
.stage.s-section { display: flex; align-items: center; justify-content: center; }
.stage.s-section .titre { font-family: var(--police-titre); font-weight: 700; font-size: 140px; color: var(--titre); text-align: center; padding: 0 160px; line-height: 1.12; }

/* texte libre */
.stage.s-texte .entete { font-size: 84px; top: 22px; }
.stage.s-texte .zone { top: 190px; }
.stage .corps.texte-html { white-space: normal; }
.stage .corps.texte-html ul, .stage .corps.texte-html ol { display: table; text-align: left; margin: .15em auto; padding-left: 1.1em; }
.stage .corps.texte-html li { margin: .1em 0; }
.stage .corps.texte-html b { font-weight: 800; }
.stage .corps.texte-html p, .stage .corps.texte-html div { margin: 0; }
.stage .corps.texte-html h1 { font-size: 1.5em; color: var(--titre); margin: .1em 0; line-height: 1.1; font-family: var(--police-titre); }
.stage .corps.texte-html h2 { font-size: 1.28em; color: var(--titre); margin: .1em 0; line-height: 1.1; font-family: var(--police-titre); }
.stage .corps.texte-html h3 { font-size: 1.1em; color: var(--titre); margin: .1em 0; font-weight: 600; }

/* cantique : tous les couplets sur une seule slide, mise en page choisie automatiquement */
.stage .zone-cantique { top: 140px; left: 70px; right: 70px; bottom: 50px; }
.stage .blocs { text-align: left; max-width: 100%; font-weight: 500; line-height: 1.2; column-gap: 80px; }
.stage .blocs .bloc { display: grid; grid-template-columns: 1.7em 1fr; break-inside: avoid; margin: .3em 0; }
.stage .blocs .bloc .lab { color: var(--titre); font-weight: 700; }
.stage .blocs .bloc .txt { white-space: pre-wrap; }
.stage .blocs .bloc.sans-lab { display: block; }
.stage .blocs .bloc.refrain { font-style: italic; margin-left: 1.7em; display: block; }
.stage .blocs .bloc.refrain .txt { border-left: .12em solid var(--titre); padding-left: .5em; }
.stage .blocs.flux { display: block; text-align: left; line-height: 1.3; }
.stage .blocs.flux .num { color: var(--titre); font-weight: 700; margin-right: .2em; }
.stage .blocs.flux .sep { color: var(--titre); margin: 0 .35em; font-weight: 700; }
.stage .blocs.flux .ref { font-style: italic; }

/* annonces */
.stage.s-annonce .zone, .stage.s-annonces .zone { align-items: stretch; justify-content: space-between; gap: 70px; top: 150px; bottom: 56px; }
.stage.s-annonce .col-texte { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; gap: 28px; min-width: 0; overflow: hidden; }
.stage.s-annonce .a-titre { font-family: var(--police-titre); font-size: 84px; color: var(--titre); line-height: 1.08; font-weight: 700; }
.stage.s-annonce .a-date { font-size: 44px; color: #666; }
.stage.s-annonce .a-corps { font-size: 44px; line-height: 1.3; overflow: hidden; }
.stage.s-annonce .col-image { flex: 1.25 1 0; display: flex; align-items: center; justify-content: center; min-width: 0; }
.stage.s-annonce img { max-width: 100%; max-height: 100%; object-fit: contain; }
.stage.s-annonce .logo { max-height: none; }
.stage.s-annonce.sans-image .col-texte { text-align: center; align-items: center; }
.stage.s-annonces .zone { gap: 60px; }
.stage.s-annonces .duo { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.stage.s-annonces .duo .d-image { flex: 1 1 0; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.stage.s-annonces .duo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.stage.s-annonces .duo .a-titre { font-family: var(--police-titre); font-size: 56px; line-height: 1.08; color: var(--titre); font-weight: 700; }
.stage.s-annonces .duo .a-date { font-size: 36px; color: #666; }

/* PDF / images importés : plein écran */
.stage.s-image::before { display: none; }
.stage .plein-ecran { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }

/* décors d'événements (Noël, Pâques, scouts) */
.stage .decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.stage .decor .part { position: absolute; top: 0; line-height: 1; animation: chute var(--d, 12s) linear var(--delay, 0s) infinite; will-change: transform; }
.stage .decor .part.haut { animation-name: montee; }
.stage:not(.anime) .decor .part { animation: none; }
.stage .decor .guirlande { position: absolute; left: 34px; right: 34px; bottom: 34px; display: flex; justify-content: space-between; font-size: 54px; line-height: 1; }
.stage .decor .coin { position: absolute; font-size: 150px; line-height: 1; top: 40px; }
.stage .decor .coin.g { left: 56px; }
.stage .decor .coin.d { right: 56px; }
.stage.avec-decor .zone { bottom: 112px; }
.stage.avec-decor .zone-cantique { bottom: 104px; }
.stage.avec-decor::before { opacity: .06; }
@keyframes chute {
  from { transform: translate(0, -100px) rotate(0deg); }
  50% { transform: translate(var(--dx, 40px), 560px) rotate(180deg); }
  to { transform: translate(0, 1180px) rotate(360deg); }
}
@keyframes montee {
  from { transform: translate(0, 1180px); opacity: 0; }
  15% { opacity: 1; }
  to { transform: translate(var(--dx, 40px), -120px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .stage .decor .part { animation: none; } }
.stage { isolation: isolate; }  /* le décor (z-index négatif) reste dans la scène, même sans transform (export PDF) */
