/* Les univers des pièces (direction artistique, novembre 2026).

   Le cadre reste celui de la compagnie (en-tête, pied bleu, tampon) ;
   seul l'intérieur de la page change : le fond, la couleur d'accent, la
   ligne du parcours, une matière et un geste propre à chaque pièce.
   L'univers d'une page se choisit dans ses réglages (champ « univers »)
   et se pose sur <body data-univers="…" class="univers-…">. */

/* ------------------------------------------------------------------ */
/* Commun aux univers                                                  */
/* ------------------------------------------------------------------ */
body[class*="univers-"] .bloc--fond-clair,
body[class*="univers-"] .bloc--fond-gris,
body[class*="univers-"] .bloc--fond-sombre,
body[class*="univers-"] .bloc--fond-bleu,
body[class*="univers-"] .bloc--fond-degrade { background: transparent; color: inherit; }
body[class*="univers-"] #main { color: var(--u-texte); }
body[class*="univers-"] .bloc-titre, body[class*="univers-"] .bloc-surtitre { color: var(--u-titres, inherit); }
body[class*="univers-"] .bloc-texte a { color: var(--u-lien, var(--da-accent)); }
body[class*="univers-"] .dates-liste .date { background: var(--u-carte); }
/* les sections « bleues » de la page deviennent la couleur forte de la pièce */
body[class*="univers-"] .bloc--fond-bleu { background: var(--u-fort); color: var(--u-fort-texte); border-radius: 0; }
body[class*="univers-"] .bloc--fond-bleu .bloc-bouton::before { background: currentColor; }
/* l'en-tête de la pièce : image plein cadre */
body[class*="univers-"] .bloc--fond .bloc-titre { color: #fff; }

/* ------------------------------------------------------------------ */
/* KnowNess — la lettre : papier, sceau, bords déchirés, cachets         */
/* ------------------------------------------------------------------ */
.univers-knowness {
  --da-fond: #f3eee2; --da-surface: #fbf8f1; --da-accent: #7b5cb0; --da-ligne: #7b5cb0;
  --u-texte: #140b18; --u-titres: #140b18; --u-carte: rgba(255,255,255,.55);
  --u-fort: #140b18; --u-fort-texte: #f3eee2;
}
.univers-knowness #main { background: #f3eee2 url("/assets/da/kn-papier.jpg") !important; }
.univers-knowness .bloc--fond-sombre { background: #140b18; color: #f3eee2; }
.univers-knowness .bloc--fond { position: relative; }
.univers-knowness .bloc--fond::before {
  content: ""; position: absolute; right: 40px; top: 32px; z-index: 3; width: 120px; height: 120px;
  background: url("/assets/da/kn-sceau.png") center / contain no-repeat;
}
html.da-anim .univers-knowness .bloc--fond::before { animation: da-sceau 1s cubic-bezier(.2,.8,.2,1) .4s both; }
@keyframes da-sceau { 0% { transform: scale(1.5) rotate(-20deg); opacity: 0; } 65% { transform: scale(.94) rotate(4deg); opacity: 1; } 100% { transform: none; } }
.univers-knowness .bloc--fond::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 44px; z-index: 3;
  background: url("/assets/da/kn-dechire-haut.png") center bottom / 100% 100% no-repeat;
}
.univers-knowness .bloc--fond-sombre:not(.bloc--fond) + .bloc, .univers-knowness .bloc--fond-bleu + .bloc { position: relative; }
.univers-knowness .bloc--citation { background: #140b18 !important; color: #f3eee2; position: relative; }
.univers-knowness .bloc--citation::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 44px;
  background: url("/assets/da/kn-dechire-bas.png") center top / 100% 100% no-repeat; transform: scaleY(-1) rotate(180deg);
}
.univers-knowness .bloc-citation blockquote { color: #d8c6f0; }
.univers-knowness .bloc--galerie { background: transparent !important; }
/* les cachets ronds sur les dates (posés par da.js) */
.da-cachet { width: 92px; height: 92px; flex: none; color: #7b5cb0; mix-blend-mode: multiply; }
.da-cachet circle { fill: none; stroke: currentColor; }
.da-cachet text { font-family: var(--da-texte); fill: currentColor; }
.da-cachet .tour { font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.da-cachet .jour { font-size: 16px; font-weight: 700; }
.da-cachet .an { font-size: 12px; font-weight: 600; }
.univers-knowness .dates-liste .date { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 20px; }
.univers-knowness .dates-liste .date > .da-cachet { grid-row: 1 / span 4; transform: rotate(var(--r, -6deg)); }
html.da-anim .univers-knowness .da-cachet { opacity: 0; transform: rotate(var(--r, -6deg)) scale(1.5); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
html.da-anim .univers-knowness .da-cachet.pose { opacity: 1; transform: rotate(var(--r, -6deg)) scale(1); }

/* ------------------------------------------------------------------ */
/* FormLessNess — de l'écran au corps : noir, voile, flou                */
/* ------------------------------------------------------------------ */
.univers-formlessness {
  --da-fond: #0b0a08; --da-surface: #17140f; --da-accent: #d8c3a5; --da-ligne: #ffffff;
  --u-texte: #efe7dc; --u-titres: #efe7dc; --u-carte: #17140f; --u-lien: #d8c3a5;
  --u-fort: #d8c3a5; --u-fort-texte: #0b0a08;
}

.univers-formlessness .bloc--fond .bloc-fond-voile { backdrop-filter: blur(var(--da-flou, 0px)); -webkit-backdrop-filter: blur(var(--da-flou, 0px)); background: linear-gradient(to top, #0b0a08 0%, rgba(11,10,8,.55) 35%, rgba(11,10,8,.1) 70%) !important; opacity: 1 !important; }
.univers-formlessness .bloc--fond::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: overlay; opacity: var(--da-bruit, .9);
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.07) 0 1px, transparent 1px 3px);
}
.univers-formlessness .bloc-fond-propos { position: relative; z-index: 2; }
.univers-formlessness .pratique dt, .univers-formlessness .bloc-fiche dt { color: #a89c8c; }
.univers-formlessness .bloc-texte, .univers-formlessness .bloc--colonnes p { color: #d9d0c4; }
html.da-anim .univers-formlessness .bloc-galerie img { transition: filter 1.6s cubic-bezier(.22,1,.36,1), transform 1.6s cubic-bezier(.22,1,.36,1); }
html.da-anim .univers-formlessness .bloc-galerie img:not(.da-vu) { filter: blur(18px) saturate(.6); transform: scale(1.04); }
html.da-anim .univers-formlessness .bloc-citation .da-mot { filter: blur(8px); opacity: .25; transition: filter 1s ease, opacity 1s ease; color: inherit !important; }
html.da-anim .univers-formlessness .bloc-citation .da-mot.lu { filter: none; opacity: 1; }

/* ------------------------------------------------------------------ */
/* Sodade — la terre et les arcades : marron, sable, terracotta          */
/* ------------------------------------------------------------------ */
.univers-sodade {
  --da-fond: #3b1f14; --da-surface: #47271a; --da-accent: #c9a996; --da-ligne: #c9a996;
  --u-texte: #f5e9df; --u-titres: #c9a996; --u-carte: #47271a; --u-lien: #c9a996;
  --u-fort: #c9a996; --u-fort-texte: #3b1f14;   /* pas d'orange dans Sodade (29/11) : le moment fort est en sable */
}

.univers-sodade .bloc-texte, .univers-sodade .bloc--colonnes p { color: #ecdccf; }
.univers-sodade .pratique dt, .univers-sodade .bloc-fiche dt { color: #c4592f; }   /* la petite tache de rouge (29/11) */
/* (29/11) même squelette que les autres pièces : l'ouverture est la même (photo pleine page, texte centré).
   L'arche devient la matière de Sodade : elle passe sur les photos de la galerie. */
.univers-sodade .bloc--fond .bloc-titre { color: #f5e9df !important; }
.univers-sodade .bloc-galerie img, .univers-sodade .bloc-galerie-case { border-radius: var(--r-objet, 16px) !important; overflow: hidden; }
/* (29/11 soir) photos normales : coins arrondis, même format que les autres galeries */
.univers-sodade .bloc-citation blockquote { color: #f3c8ae; }

/* ------------------------------------------------------------------ */
/* Fragment of the past — les morceaux : vert d'eau, textes recomposés   */
/* ------------------------------------------------------------------ */
.univers-fragment {
  --da-fond: #dfece8; --da-surface: #ecf4f2; --da-accent: #3f7a73; --da-ligne: #6fa8a0;
  --u-texte: #0b1f1d; --u-titres: #0b1f1d; --u-carte: #ecf4f2; --u-lien: #3f7a73;
  --u-fort: #3f7a73; --u-fort-texte: #fff;
}
.univers-fragment .bloc-galerie-case { transition: none; }
html.da-anim .univers-fragment .bloc-galerie-case { will-change: transform; }
html.da-anim .univers-fragment .bloc-galerie-case:nth-child(3n+1) { transform: translate(calc(var(--d, 0) * -18px), calc(var(--d, 0) * 16px)) rotate(calc(var(--d, 0) * -2deg)); }
html.da-anim .univers-fragment .bloc-galerie-case:nth-child(3n+2) { transform: translate(calc(var(--d, 0) * 12px), calc(var(--d, 0) * 24px)) rotate(calc(var(--d, 0) * 2deg)); }
html.da-anim .univers-fragment .bloc-galerie-case:nth-child(3n) { transform: translate(calc(var(--d, 0) * 20px), calc(var(--d, 0) * -12px)) rotate(calc(var(--d, 0) * -2deg)); }
.univers-fragment .bloc-galerie img { border-radius: 4px; }

/* sur une photo, jamais de texte noir : surtitre, titre et texte en blanc (29/11) */
body[class*="univers-"] .bloc--fond .bloc-fond-propos,
body[class*="univers-"] .bloc--fond .bloc-fond-propos * { color: #fff !important; }
body[class*="univers-"] .bloc--fond .bloc-surtitre { opacity: .9; }

/* KnowNess : chaque section sombre est déchirée en haut et en bas, comme la feuille (29/11) */
.univers-knowness .bloc--citation, .univers-knowness .bloc--fond-sombre:not(.bloc--fond), .univers-knowness .bloc--fond-bleu { position: relative; }
.univers-knowness .bloc--fond-sombre:not(.bloc--fond):not(.bloc--galerie)::before, .univers-knowness .bloc--fond-bleu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 44px; z-index: 2; pointer-events: none;
  background: url("/assets/da/kn-dechire-bas.png") center top / 100% 100% no-repeat; transform: scaleY(-1) rotate(180deg);
}
.univers-knowness .bloc--citation::after, .univers-knowness .bloc--fond-sombre:not(.bloc--fond):not(.bloc--galerie)::after, .univers-knowness .bloc--fond-bleu::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 44px; z-index: 2; pointer-events: none;
  background: url("/assets/da/kn-dechire-haut.png") center bottom / 100% 100% no-repeat; transform: scaleX(-1);
}
/* deux sections sombres qui se suivent ne font qu'une : pas de déchirure entre elles */
.univers-knowness :is(.bloc--fond-bleu, .bloc--citation, .bloc--fond-sombre) + :is(.bloc--fond-bleu, .bloc--citation, .bloc--fond-sombre:not(.bloc--fond))::before { display: none; }
.univers-knowness :is(.bloc--fond-bleu, .bloc--citation, .bloc--fond-sombre):has(+ :is(.bloc--fond-bleu, .bloc--citation, .bloc--fond-sombre:not(.bloc--fond)))::after { display: none; }

/* dans la section « forte » d'une pièce, titres et liens prennent la couleur du texte de la section */
body[class*="univers-"] .bloc--fond-bleu .bloc-titre, body[class*="univers-"] .bloc--fond-bleu .bloc-surtitre, body[class*="univers-"] .bloc--fond-bleu .bloc-texte a { color: inherit !important; }
.univers-sodade .bloc--fond-bleu .bloc-bouton::before { background: currentColor !important; }

/* KnowNess, violet à fond (29/11) : violet clair en fond, violet foncé pour les textes,
   violet profond pour les sections sombres, violet pur pour la section forte */
.univers-knowness { --da-fond: #efe9f8; --da-surface: #f7f3fc; --u-texte: #3f2373; --u-titres: #3f2373; --u-carte: rgba(255,255,255,.55); --u-fort: #24103f; --u-fort-texte: #f3eefb; }
.univers-knowness #main { background: #efe9f8 !important; }
.univers-knowness .bloc--fond-sombre:not(.bloc--fond), .univers-knowness .bloc--citation { background: #24103f !important; color: #f3eefb; }
.univers-knowness .bloc--fond-bleu { background: #24103f !important; }
.univers-knowness .bloc-citation blockquote { color: #d8c6f0; }
.univers-knowness .da-creations { background: #7b5cb0; color: #fff; margin-top: 30px; }
.univers-knowness .da-creations .da-lien-fleche:hover { color: #fff !important; opacity: .8; }
/* les déchirures prennent les nouvelles couleurs */
.univers-knowness .bloc--fond::after, .univers-knowness .bloc--fond-sombre:not(.bloc--fond):not(.bloc--galerie)::after, .univers-knowness .bloc--citation::after, .univers-knowness .bloc--fond-bleu::after,
.univers-knowness .bloc--fond-sombre:not(.bloc--fond):not(.bloc--galerie)::before, .univers-knowness .bloc--citation::before, .univers-knowness .bloc--fond-bleu::before {
  background: #efe9f8 !important; -webkit-mask: url("/assets/da/kn-dechire-haut.png") center bottom / 100% 100% no-repeat; mask: url("/assets/da/kn-dechire-haut.png") center bottom / 100% 100% no-repeat;
}
