/* Les Ombres savantes : « L'écran de papier » (choisi le 14 nov. 2026 parmi trois allures).
   Un castelet noir, un écran de papier éclairé par-derrière où passe le film du moment, la troupe des films devenue
   de vraies ombres noires. Clair et chaud, l'encre des marionnettes pour le texte, un seul rouge : s'abonner. */
:root {
  --papier: #f4e4c4;        /* l'écran de papier */
  --papier-clair: #fbf1dc;  /* les cartes posées dessus */
  --bord: #d7b582;          /* le papier loin de la lampe */
  --encre: #17110c;         /* l'encre et le bois noir du castelet */
  --encre-douce: #4a3b2c;
  --rouge: #b8322a;         /* le seul rouge : s'abonner à la lettre */
  --serif: Fraunces, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* un grain de papier très léger (pas de texture peinte) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--encre); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--encre);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  background: var(--grain), radial-gradient(120% 60% at 50% 0%, var(--papier-clair) 0%, var(--papier) 55%, var(--bord) 130%);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
img, video { max-width: 100%; }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--papier-clair); padding: 8px 14px;
  border-radius: 6px; }
.evitement:focus { left: 8px; }
.colonne { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ---------------------------------------------------------------- le castelet et son écran de papier */
.castelet {
  position: relative; margin: 0 auto; max-width: 760px; height: min(56svh, 620px); min-height: 360px;
  border: 14px solid var(--encre); border-top-width: 0; border-radius: 0 0 6px 6px; overflow: hidden;
  background: var(--grain), radial-gradient(70% 62% at 50% 58%, #fffaf0 0%, #f9e6c2 38%, #e7c38e 72%, #c9965b 100%);
}
.castelet::before {           /* le lambrequin des films, passé au noir */
  content: ""; position: absolute; z-index: 5; left: 0; right: 0; top: 0; height: 64px;
  background: url("images/lambrequin.svg?v=f0b001b492") repeat-x top / auto 64px; filter: brightness(.35);
}
.castelet::after {            /* la lampe ne va pas jusqu'aux bords */
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  box-shadow: inset 0 0 80px rgba(80, 40, 10, .45);
}
.nom { position: absolute; z-index: 6; top: 64px; left: 0; right: 0; text-align: center; padding: 0 12px; }
.nom a { text-decoration: none; }
.nom .les { display: block; font-variation-settings: normal; line-height: 1.6; font: 700 .72rem var(--sans); letter-spacing: .55em; padding-left: .55em; }
.nom h1, .nom .h1 {
  display: block; margin: 4px 0 0; font-size: clamp(2.3rem, 11vw, 4rem); line-height: .9; font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; letter-spacing: -.01em;
  text-shadow: 6px 10px 12px rgba(23, 17, 12, .22);
}
.nom em { font-style: italic; font-weight: 380; }

/* le film du moment, projeté sur le papier */
.projection {
  position: absolute; z-index: 1; left: 50%; top: 150px; bottom: 6%; aspect-ratio: 9 / 16;
  transform: translateX(-50%); mix-blend-mode: multiply; opacity: .93;
  -webkit-mask: radial-gradient(farthest-side, #000 95%, transparent 100%);
  mask: radial-gradient(farthest-side, #000 95%, transparent 100%);
}
.projete { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50% 50% 6px 6px / 14% 14% 6px 6px; }

/* la troupe des films, en ombres noires devant l'écran ; les fils s'effacent vers le haut */
.ombres { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ombre {
  position: absolute; bottom: 3%; left: var(--x); height: 84%; width: auto; transform: translateX(-50%);
  transform-origin: 50% 0; filter: brightness(0) blur(.5px); opacity: .92;
  -webkit-mask: linear-gradient(transparent 22%, #000 55%); mask: linear-gradient(transparent 22%, #000 55%);
  animation: balance 6s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -1.7s);
}
.pause { position: absolute; z-index: 6; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(23, 17, 12, .75); color: var(--papier-clair); font: 700 .8rem var(--sans); cursor: pointer; }
.ombre.loin { height: 100%; bottom: 0; filter: brightness(0) blur(2.2px); opacity: .4; }
.ombre.petit { height: 15%; animation: none; }
.ombre.chat { height: 42%; }
@keyframes balance {
  from { transform: translateX(-50%) rotate(-1.4deg); }
  to { transform: translateX(-50%) rotate(1.4deg); }
}

.pied .devise { font: italic 400 1rem/1.5 var(--serif); margin: 0 auto 10px; max-width: 24em; opacity: .95; }

/* ---------------------------------------------------------------- les blocs */
.bloc { margin-top: 40px; }
.bloc:first-child { margin-top: 18px; }
h2 { font-size: 1.85rem; line-height: 1.05; margin: 0 0 4px; font-weight: 750;
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 96; }
.sur-titre { margin: 0; font: 700 .68rem/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--encre-douce); }
.mention { font: 500 .72rem/1.45 var(--sans); color: var(--encre-douce); margin: 8px 0 0; }
.mention a { display: inline-block; padding: 10px 0; font-size: .84rem; font-weight: 650; }

.boutons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.trait {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 10px 15px;
  border: 2px solid var(--encre); border-radius: 999px; background: transparent;
  font: 700 .84rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.trait.plein { background: var(--encre); color: var(--papier-clair); }
.trait.petit { min-height: 38px; padding: 7px 12px; font-size: .78rem; }
.trait svg { width: 16px; height: 16px; flex: none; }
.trait:hover { background: rgba(23, 17, 12, .08); }
.trait.plein:hover { background: #000; }

/* le film du moment */
.affiche h3 { margin: 4px 0 10px; font-size: 1.7rem; line-height: 1.08; font-weight: 700; }
.accroche p { margin: 0 0 12px; font-size: 1.04rem; line-height: 1.5; }
.affiche .boutons { margin-bottom: 14px; }

/* bientôt */
.bientot { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 14px 16px; border-radius: 14px;
  background: rgba(23, 17, 12, .06); border: 1.5px dashed rgba(23, 17, 12, .35); }
.bientot img { width: 46px; height: 82px; object-fit: cover; flex: none;
  border-radius: 40% 40% 4px 4px / 16% 16% 4px 4px; filter: blur(4px) sepia(.4) brightness(.8); }
.bientot .quand { display: block; font: 600 .78rem/1.4 var(--sans); color: var(--encre-douce); }
.bientot b { display: block; font-size: 1.12rem; margin-top: 2px; }

/* ---------------------------------------------------------------- le programme */
.outils { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 6px; }
.recherche { width: 100%; padding: 12px 15px; border-radius: 12px; border: 2px solid var(--encre);
  background: var(--papier-clair); font: 500 1rem var(--sans); }
.themes { display: flex; gap: 6px; flex-wrap: wrap; }
.themes button { min-height: 36px; border: 1.5px solid var(--encre); border-radius: 999px; background: none;
  padding: 6px 13px; font: 650 .8rem var(--sans); cursor: pointer; }
.themes button.on { background: var(--encre); color: var(--papier-clair); }
.programme { list-style: none; margin: 0; padding: 0; }
.programme > li { border-bottom: 1.5px solid rgba(23, 17, 12, .2); }
.fiche > summary { list-style: none; display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 0; cursor: pointer; }
.fiche > summary::-webkit-details-marker { display: none; }
.fiche summary img { width: 54px; height: 96px; object-fit: cover; display: block; border: 3px solid var(--encre);
  border-radius: 50% 50% 4px 4px / 18% 18% 4px 4px; }
.fiche summary .date { display: block; font: 700 .66rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--encre-douce); }
.fiche summary b { display: block; font-size: 1.18rem; line-height: 1.15; margin: 3px 0; font-weight: 680; }
.fiche summary .sous { font: 600 .78rem/1.4 var(--sans); color: var(--encre-douce); }
.fiche summary .plus { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--encre); display: grid;
  place-items: center; font: 600 1.1rem var(--sans); transition: transform .2s; }
.fiche[open] summary .plus { transform: rotate(45deg); }
.fiche-corps { padding: 2px 0 22px 68px; }
@media (max-width: 480px) { .fiche-corps { padding-left: 0; } }
.fiche-corps p { margin: 0 0 10px; line-height: 1.55; }
.fiche-corps h4 { margin: 18px 0 6px; font: 700 .66rem var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.sources { margin: 0; padding-left: 1.2em; line-height: 1.5; font-size: .94rem; color: var(--encre-douce); }
.fiche-corps .boutons { margin-top: 16px; }
.livre { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 2px solid var(--encre);
  border-radius: 12px; text-decoration: none; background: var(--papier-clair); box-shadow: 5px 6px 0 rgba(23, 17, 12, .15); }
.livre .dos { width: 34px; height: 50px; background: var(--encre); border-radius: 2px; flex: none;
  box-shadow: inset -4px 0 0 rgba(255, 255, 255, .12); }
.livre b { display: block; }
.livre small { font: 500 .8rem var(--sans); color: var(--encre-douce); }
.rien { padding: 16px 0; }

/* le programme : une liste qui se déroule */
.deroulant { margin-top: 10px; border: 2px solid var(--encre); border-radius: 14px; background: var(--papier-clair);
  box-shadow: 6px 8px 0 rgba(23, 17, 12, .14); }
.deroulant > summary { list-style: none; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px;
  padding: 16px 18px; cursor: pointer; }
.deroulant > summary::-webkit-details-marker { display: none; }
.deroulant .nombre { font: 750 1.25rem/1.2 var(--serif); }
.deroulant summary .sur-titre { grid-column: 1; }
.deroulant .fleche { grid-column: 2; grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%; display: grid;
  place-items: center; background: var(--encre); color: var(--papier-clair); font-size: 1.1rem; transition: transform .2s; }
.deroulant[open] .fleche { transform: rotate(180deg); }
.deroulant[open] > summary { border-bottom: 1.5px solid rgba(23, 17, 12, .2); }
.deroulant .outils, .deroulant .programme, .deroulant .rien { margin-left: 14px; margin-right: 14px; }
.deroulant .programme > li:last-child { border-bottom: 0; }

/* suivre les Ombres : YouTube en avant, puis les autres réseaux */
.youtube { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; margin-top: 12px; padding: 18px;
  border-radius: 16px; background: var(--encre); color: var(--papier-clair); box-shadow: 8px 10px 0 rgba(23, 17, 12, .16); }
.youtube > svg { width: 52px; height: 52px; }
.youtube b { display: block; font: 750 1.35rem/1.15 var(--serif); }
.youtube p { margin: 4px 0 14px; color: rgba(251, 241, 220, .85); line-height: 1.45; }
.youtube .rouge { display: inline-flex; align-items: center; text-decoration: none; }

/* ---------------------------------------------------------------- les livres (liens affiliés Amazon)
   Une couverture dessinée par le site, à la couleur du thème du film : jamais l'image d'Amazon. */
.couv {
  --couv: #4a2e1c; position: relative; display: block; width: 96px; aspect-ratio: 2 / 3; flex: none;
  padding: 7px 7px 7px 11px; border-radius: 3px 7px 7px 3px; background: var(--couv); color: var(--papier-clair);
  text-decoration: none; box-shadow: inset 5px 0 0 rgba(0, 0, 0, .28), 6px 8px 0 rgba(23, 17, 12, .18);
  transition: transform .15s;
}
.couv[data-couv="psychologie"] { --couv: #26364d; }
.couv[data-couv="histoire"] { --couv: #33452b; }
.couv[data-couv="sciences"] { --couv: #2b2b52; }
.couv:hover { transform: translateY(-3px) rotate(-1deg); }
.couv-filet { height: 100%; display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  gap: 4px; padding: 7px 4px; border: 1px solid rgba(251, 241, 220, .45); text-align: center; overflow: hidden; }
.couv-auteur { font: 650 .48rem/1.25 var(--sans); letter-spacing: .08em; text-transform: uppercase; opacity: .85;
  max-width: 100%; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.couv-titre { max-width: 100%; font: italic 700 .74rem/1.12 var(--serif); hyphens: auto; -webkit-hyphens: auto;
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.couv-orne { font-size: .7rem; opacity: .7; }

.livre-du-film { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; margin-top: 20px;
  padding: 16px; border: 2px solid var(--encre); border-radius: 14px; background: var(--papier-clair);
  box-shadow: 8px 10px 0 rgba(23, 17, 12, .14); }
.livre-du-film .sur-titre { margin-bottom: 2px; letter-spacing: .12em; }
.titre-livre { display: block; font-size: 1.2rem; line-height: 1.15; font-style: italic; font-weight: 700; }
.livre-du-film .auteur { display: block; margin: 3px 0 0; font: 500 .84rem var(--sans); color: var(--encre-douce); }
.livre-du-film .mention { grid-column: 1 / -1; margin: 0; }
.livre-du-film .boutons { grid-column: 1 / -1; margin: 0; }
.pourquoi { grid-column: 1 / -1; margin: 0; font: italic 400 1.02rem/1.5 var(--serif); color: var(--encre); }
.fiche-corps .livre-du-film { margin-top: 18px; }

.etagere { list-style: none; display: flex; gap: 16px; margin: 14px 0 0; padding: 6px 8px 16px 2px; overflow-x: auto;
  scroll-snap-type: x proximity; scrollbar-width: none; background: linear-gradient(transparent calc(100% - 6px),
  rgba(23, 17, 12, .28) calc(100% - 6px)); }
.etagere::-webkit-scrollbar { display: none; }
.rayon { display: block; text-decoration: none; }
.rayon:hover .couv { transform: translateY(-3px) rotate(-1deg); }
.etagere li { flex: none; width: 112px; scroll-snap-align: start; }
.etagere .couv { width: 112px; }
.etagere .pour { display: block; margin-top: 10px; padding: 4px 0; font: 600 .74rem/1.3 var(--sans); color: var(--encre-douce);
  text-decoration: underline; text-underline-offset: 2px; }
.audible { margin: 14px 0 0; }

.avec-livre { display: block; margin-top: 5px; font: 600 .78rem/1.35 var(--sans); }
.avec-livre svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 5px; }
.avec-livre i { font-family: var(--serif); font-weight: 600; }

/* ---------------------------------------------------------------- la lettre, les réseaux, les coulisses */
.lettre { padding: 22px 18px; border: 2.5px solid var(--encre); border-radius: 16px; background: var(--papier-clair);
  box-shadow: 10px 12px 0 rgba(23, 17, 12, .16); }
.lettre p { margin: 6px 0 14px; line-height: 1.5; }
.champ { display: flex; gap: 8px; flex-wrap: wrap; }
.champ input { flex: 1 1 200px; min-height: 46px; padding: 12px 15px; border-radius: 999px; border: 2px solid var(--encre);
  background: #fff; font: 500 1rem var(--sans); }
.rouge { flex: none; min-height: 46px; border: 0; border-radius: 999px; background: var(--rouge); color: #fff;
  padding: 12px 22px; font: 750 .92rem var(--sans); cursor: pointer; }
.lettre .petit-texte { margin: 10px 0 0; font: 500 .76rem var(--sans); color: var(--encre-douce); }
.lettre .message { margin: 8px 0 0; font-weight: 600; }
.lettre .message:empty { display: none; }
.reseaux { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.reseau { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 15px 8px 10px;
  border: 2px solid var(--encre); border-radius: 999px; text-decoration: none; font: 700 .86rem var(--sans); }
.reseau svg { width: 22px; height: 22px; }
.coulisses { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: center; }
.coulisses img { width: 90px; height: 90px; border-radius: 50%; border: 3px solid var(--encre);
  box-shadow: 5px 6px 0 rgba(23, 17, 12, .15); }
.coulisses p { margin: 6px 0 0; line-height: 1.5; color: var(--encre-douce); }
.pied { margin: 56px auto 0; padding: 22px 16px 34px; background: var(--encre); color: var(--papier);
  text-align: center; font: 500 .76rem/1.6 var(--sans); }
.pied p { margin: 0; }
.pied a { opacity: .85; }

/* ---------------------------------------------------------------- les mentions légales */
.castelet-bas { height: 190px; }
.castelet-bas .nom { top: 82px; }
.texte { padding-top: 26px; }
.texte h1 { margin: 0 0 .4em; font-size: 2.1rem; font-weight: 800; font-variation-settings: "SOFT" 100, "opsz" 72; }
.texte h2 { margin: 1.4em 0 .3em; font-size: 1.3rem; font-style: italic; }
.texte p { line-height: 1.55; color: var(--encre-douce); }

@media (prefers-reduced-motion: reduce) {
  .ombre { animation: none; }
  .fiche summary .plus { transition: none; }
}
