/* Bandeau des pages de thème (/themes/<id>/) : fixe en haut pendant qu'on fait défiler, avec le bouton « Choisir ce thème »
   qui ouvre le créateur sur ce thème (demandé par Michael le 10/11/2026). Posé par themes/bandeau.py sur les pages
   d'exemple seulement : les faire-part des clients ne chargent ni ce fichier ni bandeau.js. Les couleurs restent celles
   du bandeau de chaque thème (son theme.css) ; bandeau.js en tire le fond et le texte du bouton. */
html { scroll-padding-top:48px; }
body { padding-top:48px; }
body > nav { top:48px; }
body > .bandeau { position:fixed; top:0; left:0; right:0; z-index:60; box-sizing:border-box; height:48px; flex-wrap:nowrap; justify-content:space-between; gap:0 12px; padding:0 12px 0 16px; }
body > .bandeau > span { order:2; flex:1 1 auto; min-width:0; padding:0; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body > .bandeau > a { order:1; flex:none; white-space:nowrap; }
body > .bandeau .lib, body > .bandeau .tous, body > .bandeau .lbl, body > .bandeau .ce { padding:0; }
body > .bandeau > a.choisir { order:4; min-height:0; height:34px; padding:0 18px; border:1px solid currentColor; border-radius:999px; letter-spacing:.12em; text-decoration:none; transition:opacity .2s ease; }
body > .bandeau.plein > a.choisir { background:var(--choisir-fond); border-color:var(--choisir-fond); color:var(--choisir-texte); }
body > .bandeau > a.choisir:hover, body > .bandeau > a.voir-video:hover { opacity:.86; }
body > .bandeau > a.choisir:focus-visible, body > .bandeau > a.voir-video:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
/* le bouton « Save the date » (15/11/2026) : en contour, entre le lien des thèmes et « Choisir ce thème » ; il ouvre la
   vidéo du thème, jouée en direct avec le filigrane « Aperçu » (bandeau.js) */
body > .bandeau > a.voir-video { order:3; min-height:0; height:34px; padding:0 14px 0 12px; gap:6px; border:1px solid currentColor; border-radius:999px; letter-spacing:.12em; text-decoration:none; cursor:pointer; transition:opacity .2s ease; }
body > .bandeau > a.voir-video svg { flex:none; width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linejoin:round; }
@media (max-width:640px) {
  body > .bandeau > a.voir-video { padding:0 12px 0 10px; letter-spacing:.08em; }
  body > .bandeau { gap:0 8px; padding:0 10px 0 12px; }
  body > .bandeau > span { visibility:hidden; }
  body > .bandeau > a { letter-spacing:.08em; }
  body > .bandeau > a.choisir { padding:0 14px; letter-spacing:.08em; }
}
/* le bandeau déborde (petit écran, police large) : bandeau.js raccourcit le lien, puis resserre les lettres */
body > .bandeau.serre .tous { display:none; }
body > .bandeau.tres-serre > a { letter-spacing:.02em; }
body > .bandeau.tres-serre > a.choisir { padding:0 10px; }
body > .bandeau.tres-serre > a.voir-video { padding:0 9px 0 8px; gap:5px; }
/* toujours trop large : le lien des thèmes ne garde que sa flèche */
body > .bandeau.mini .lib { display:none; }
/* encore trop large (écran de 320 px, police large) : « Choisir ce thème » devient « Choisir » */
body > .bandeau.court > a.choisir .ce { display:none; }
@media (max-width:339px) {
  body > .bandeau .tous { display:none; }
}

/* ---- la fenêtre de la vidéo Save the date (bandeau.js) : la même que l'aperçu du créateur (public/creer/index.html).
   La boîte se centre quand tout tient, et défile sinon. Au-dessus du bouton de la musique (z-index 9000). ---- */
.video-theme { position:fixed; inset:0; z-index:9500; display:flex; align-items:flex-start; justify-content:center; padding:16px; background:#181a19; overflow-y:auto; -webkit-overflow-scrolling:touch; color:#f4efe6; font-size:14px; line-height:1.45; letter-spacing:0; }
.video-theme[hidden] { display:none; }
.video-theme .vt-boite { display:flex; flex-direction:column; align-items:center; gap:10px; max-width:100%; margin:auto; }
.video-theme .vt-b { display:inline-flex; align-items:center; justify-content:center; gap:8px; box-sizing:border-box; min-height:0; height:42px; margin:0; padding:0 22px; border:1px solid #fff; border-radius:999px; background:#fff; color:#2e3330; font:inherit; font-weight:600; font-size:12.5px; letter-spacing:.1em; text-transform:uppercase; text-decoration:none; white-space:nowrap; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.video-theme .vt-b:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.video-theme .vt-b[hidden] { display:none; }
.video-theme .vt-b:disabled { opacity:.6; cursor:default; }
.video-theme .vt-ferme { align-self:flex-end; height:34px; padding:0 16px; }
.video-theme .vt-titre { margin:0; font-size:17px; font-weight:600; text-align:center; }
/* hauteur : ce qui reste de l'écran VISIBLE (dvh : sans les barres de Safari) une fois ôtés « Fermer », le titre, la note
   et le bouton ; première règle pour les iPhone d'avant iOS 15.4, qui ne connaissent pas dvh */
.video-theme .vt-cadre { position:relative; height:min(max(calc(100vh - 384px), 280px), 760px); height:min(max(calc(100dvh - 294px), 300px), 760px); aspect-ratio:9 / 16; max-width:calc(100vw - 32px); border-radius:14px; overflow:hidden; background:#111; box-shadow:0 16px 40px rgba(0,0,0,.45); }
.video-theme .vt-cadre canvas { display:block; width:100%; height:100%; -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
.video-theme .vt-lire { position:absolute; left:50%; bottom:22px; transform:translateX(-50%); box-shadow:0 8px 22px rgba(0,0,0,.35); }
.video-theme .vt-lire svg { width:12px; height:12px; fill:currentColor; }
.video-theme .vt-etat, .video-theme .vt-note { margin:0; max-width:360px; text-align:center; font-size:13.5px; }
.video-theme .vt-etat:empty { display:none; }
.video-theme .vt-choisir { height:44px; padding:0 26px; margin-top:4px; }
/* le texte propre au thème, en bas de la page (22/11/2026, référencement) : posé par le Worker (themes/textes-themes.py).
   Ses couleurs et polices sont celles du site, pas du thème : chaque propriété est fixée pour que le CSS du thème n'y
   touche pas. */
body > .texte-theme { all:initial; display:block; box-sizing:border-box; margin:48px 0 0; padding:44px 16px 52px; background:#fdfbf7;
  border-top:1px solid #c8a96a; color:#2e3330; font:400 16px/1.6 Jost, Futura, "Century Gothic", "Segoe UI", sans-serif; text-align:left; }
body > .texte-theme * { box-sizing:border-box; }
/* rien du thème ne passe (ombres, centrage, couleurs des titres) : tout est remis à zéro, puis fixé ci-dessous */
.texte-theme :is(div, h2, h3, p, blockquote, a) { all:unset; display:block; box-sizing:border-box; }
.texte-theme, .texte-theme * { font-variation-settings:"opsz" 14; font-optical-sizing:none; text-shadow:none; }
.texte-theme .tt-in { max-width:680px; margin:0 auto; }
.texte-theme .tt-sur { margin:0 0 8px; font:600 12px/1.3 Jost, Futura, "Century Gothic", "Segoe UI", sans-serif; letter-spacing:.2em; text-transform:uppercase; color:#7d6229; }
.texte-theme h2 { margin:0 0 18px; font:400 clamp(26px, 6vw, 34px)/1.15 "Bodoni Moda", Didot, "Bodoni 72", "Times New Roman", serif; color:#2e3330; letter-spacing:0; text-transform:none; }
.texte-theme h3 { margin:28px 0 8px; font:400 21px/1.25 "Bodoni Moda", Didot, "Bodoni 72", "Times New Roman", serif; color:#2e3330; letter-spacing:0; text-transform:none; }
.texte-theme p { margin:0 0 12px; color:#2e3330; font:inherit; }
.texte-theme blockquote { margin:0; padding:14px 18px; border-left:2px solid #c8a96a; background:#fff; font:italic 400 18px/1.5 "Bodoni Moda", Didot, "Bodoni 72", "Times New Roman", serif; color:#2e3330; }
.texte-theme .tt-inclus { margin-top:26px; color:#646962; font-size:15px; }
.texte-theme .tt-bouton { margin:22px 0; }
.texte-theme .tt-bouton a { display:inline-flex; text-decoration:none; align-items:center; min-height:48px; padding:0 26px; border-radius:999px; background:#4f6b5a; color:#fff;
  font:500 13px/1 Jost, Futura, "Century Gothic", "Segoe UI", sans-serif; letter-spacing:.14em; text-transform:uppercase; text-decoration:none; }
.texte-theme .tt-bouton a:hover { background:#3b5245; }
.texte-theme .tt-voisins { color:#646962; font-size:15px; }
.texte-theme a { display:inline; color:#4f6b5a; text-decoration:underline; text-decoration-color:#c8a96a; text-underline-offset:3px; cursor:pointer; }
.texte-theme .tt-voisins a:last-child { display:block; margin-top:6px; }
.texte-theme a:focus-visible { outline:2px solid #4f6b5a; outline-offset:2px; }
