/*!
 * Lumen — © 2026 Eugène Pascal Yaro. Tous droits réservés.
 * Code source, nom et contenus protégés — voir LICENSE à la racine du dépôt.
 * Toute reproduction, redistribution ou appropriation sans autorisation est interdite.
 * Dépôt original : https://github.com/eugenepascal/lumen
 */
  :root{
    --vellum: #F4EFE4;
    --vellum-light: #FAF7F0;
    --ink: #3A2817;
    --ink-soft: #7D6A4C;
    --wine: #7C1F2E;
    --wine-dark: #561520;
    --gold: #C9A227;
    --gold-light: #DDBE5C;
    --gold-pale: #E8D6A0;
    --sage: #5C6E58;
    --hairline: #E3DAC6;
    --shadow: 0 6px 18px rgba(124,31,46,0.14);
    --shadow-warm: 0 10px 30px rgba(124,31,46,0.24);
    --glow-gold: 0 0 18px rgba(201,162,39,0.5);
  }
  *{box-sizing:border-box; -webkit-tap-highlight-color: transparent;}
  /* Repère visuel du focus clavier sur les rubriques rendues accessibles au
     clavier par initKeyboardAccessibility() (js/app.js) — sans ce style,
     le focus est bien réel (lecteurs d'écran, Tab) mais invisible à l'œil. */
  .rubric-row:focus-visible, .entry-card:focus-visible, .novena-card:focus-visible, [data-hub-goto]:focus-visible{
    outline: 3px solid var(--gold);
    outline-offset: 2px;
  }
  /* Couleur de fond posée aussi sur <html> (pas seulement <body>) : sur
     mobile, l'effet "élastique" en bas de page (ou le repli de la barre
     d'adresse) laisse voir l'arrière-plan par défaut du document, qui est
     blanc tant qu'on ne le colore pas explicitement ici. On neutralise
     aussi le rebond élastique lui-même pour éviter l'effet visuel. */
  html{ background:#2a0a13; overscroll-behavior-y:none; }
  html,body{margin:0; padding:0; height:100%;}
  body{
    overscroll-behavior-y:none;
    background:
      radial-gradient(circle at 22% -8%, rgba(201,162,39,0.16), transparent 45%),
      radial-gradient(circle at 82% 105%, rgba(124,31,46,0.22), transparent 55%),
      linear-gradient(155deg, #1C0D08 0%, #3A1016 30%, #611A26 58%, #8C3226 82%, #B2541F 100%);
    background-attachment: fixed;
    font-family:'Lora', serif;
    color:var(--ink);
    line-height:1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display:flex;
    justify-content:stretch;
    align-items:stretch;
    min-height:100vh;
    min-height:100dvh;
    position:relative;
  }
  body::before{
    content:"";
    position:fixed; inset:-20px; pointer-events:none; z-index:0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%23B8863B' fill-opacity='0.03'%3E%3Cpath d='M60 20 L63 55 L98 60 L63 65 L60 100 L57 65 L22 60 L57 55 Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
    animation: bgBreathe 16s ease-in-out infinite;
  }
  @keyframes bgBreathe{
    0%,100%{ transform: translateY(0) scale(1); }
    50%{ transform: translateY(-10px) scale(1.015); }
  }
  body::after{
    content:""; position:fixed; inset:0; pointer-events:none; z-index:0; opacity:0;
  }
  /* ===== animated background layer: stars (dark mode) ===== */
  #bg-stars, #bg-particles{ position:absolute; inset:0; z-index:-1; pointer-events:none; overflow:hidden; }
  .bg-star{
    position:absolute; width:3px; height:3px; border-radius:50%;
    background:#D9B776; box-shadow:0 0 6px 1px rgba(217,183,118,0.7);
    opacity:0; animation: starTwinkle 3.2s ease-in-out infinite;
  }
  @keyframes starTwinkle{ 0%,100%{ opacity:0; transform:scale(0.6); } 50%{ opacity:0.9; transform:scale(1.3); } }
  body[data-theme="dark"] .bg-star{ display:block; }
  body:not([data-theme="dark"]) .bg-star{ display:none; }
  #bg-particles{ display:none; }

  /* ===== Lumen — lueur de lumière vivante, en arrière-plan de toute l'appli =====
     Deux rais de lumière très doux, qui dérivent et respirent lentement, comme la
     lumière d'un vitrail ou d'une bougie plutôt qu'un simple motif statique. Le
     nom de l'application est « Lumen » : cette lueur en est le fil conducteur
     visuel, derrière chaque écran. */
  #bg-glow{ position:absolute; inset:0; z-index:-1; pointer-events:none; overflow:hidden; opacity:0.8; }
  .bg-glow-ray{
    position:absolute; border-radius:50%; filter:blur(5px);
    background:radial-gradient(circle, rgba(232,204,126,0.55) 0%, rgba(232,204,126,0.18) 45%, transparent 72%);
    mix-blend-mode:screen;
  }
  .bg-glow-ray-1{ width:280px; height:280px; top:16%; left:-18%; animation: glowDrift1 26s ease-in-out infinite; }
  .bg-glow-ray-2{ width:240px; height:240px; bottom:18%; right:-16%; animation: glowDrift2 32s ease-in-out infinite; }
  @keyframes glowDrift1{
    0%,100%{ transform:translate(0,0) scale(1); opacity:0.55; }
    50%{ transform:translate(10%,8%) scale(1.15); opacity:0.85; }
  }
  @keyframes glowDrift2{
    0%,100%{ transform:translate(0,0) scale(1); opacity:0.5; }
    50%{ transform:translate(-8%,-10%) scale(1.2); opacity:0.8; }
  }
  body[data-theme="dark"] .bg-glow-ray{
    background:radial-gradient(circle, rgba(232,169,74,0.5) 0%, rgba(232,169,74,0.15) 45%, transparent 72%);
  }
  body[data-theme="dark"] .bg-glow-ray-2{
    background:radial-gradient(circle, rgba(212,117,42,0.4) 0%, rgba(212,117,42,0.12) 45%, transparent 72%);
  }
  @media (prefers-reduced-motion: reduce){
    .bg-glow-ray{ animation:none; }
  }

  /* ===== Lumen — poussière de lumière, visible en permanence ===== */
  #lumen-dust{ position:absolute; inset:0; z-index:5; pointer-events:none; overflow:hidden; }
  .dust-mote{
    position:absolute; top:100%; width:3px; height:3px; border-radius:50%;
    background:var(--gold-light); box-shadow:0 0 5px 1px var(--gold-light);
    opacity:0; animation-name: dustFloat; animation-timing-function: ease-in-out; animation-iteration-count:infinite;
  }
  @keyframes dustFloat{
    0%{ transform:translateY(0) translateX(0); opacity:0; }
    10%{ opacity:0.55; }
    50%{ transform:translateY(-45vh) translateX(14px); opacity:0.35; }
    90%{ opacity:0.15; }
    100%{ transform:translateY(-95vh) translateX(-10px); opacity:0; }
  }

  #app::before{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%23B8863B' fill-opacity='0.08'%3E%3Cpath d='M60 20 L63 55 L98 60 L63 65 L60 100 L57 65 L22 60 L57 55 Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
  }
  body[data-pattern="croix"] #app::before{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%23B8863B' fill-opacity='0.07'%3E%3Cpath d='M60 20 L63 55 L98 60 L63 65 L60 100 L57 65 L22 60 L57 55 Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
  }
  body[data-pattern="colombe"] #app::before{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='%23B8863B' fill-opacity='0.07'%3E%3Cpath d='M80 70 Q50 40 25 55 Q50 62 70 80 Z'/%3E%3Cpath d='M80 70 Q110 40 135 55 Q110 62 90 80 Z'/%3E%3Cellipse cx='80' cy='82' rx='10' ry='16'/%3E%3Ccircle cx='80' cy='60' r='6'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 160px 160px;
  }
  body[data-pattern="poisson"] #app::before{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cpath d='M20 75 Q55 45 90 75 Q55 105 20 75 Z' fill='none' stroke='%23B8863B' stroke-opacity='0.08' stroke-width='3'/%3E%3C/svg%3E");
    background-size: 150px 150px;
  }
  body[data-pattern="ble-raisin"] #app::before{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cg fill='%23B8863B' fill-opacity='0.07'%3E%3Ccircle cx='40' cy='70' r='6'/%3E%3Ccircle cx='50' cy='62' r='6'/%3E%3Ccircle cx='50' cy='78' r='6'/%3E%3Ccircle cx='60' cy='70' r='6'/%3E%3Cpath d='M100 40 L103 70 L110 100 M100 40 L95 65 M100 40 L106 62' stroke='%23B8863B' stroke-width='2' fill='none'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 150px 150px;
  }
  body[data-pattern="rayons"] #app::before{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg stroke='%23B8863B' stroke-opacity='0.06' stroke-width='2'%3E%3Cline x1='100' y1='100' x2='100' y2='20'/%3E%3Cline x1='100' y1='100' x2='165' y2='55'/%3E%3Cline x1='100' y1='100' x2='180' y2='100'/%3E%3Cline x1='100' y1='100' x2='165' y2='145'/%3E%3Cline x1='100' y1='100' x2='100' y2='180'/%3E%3Cline x1='100' y1='100' x2='35' y2='145'/%3E%3Cline x1='100' y1='100' x2='20' y2='100'/%3E%3Cline x1='100' y1='100' x2='35' y2='55'/%3E%3C/g%3E%3Ccircle cx='100' cy='100' r='14' fill='%23B8863B' fill-opacity='0.06'/%3E%3C/svg%3E");
    background-size: 200px 200px;
  }
  body[data-pattern="ancre"] #app::before{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg stroke='%23B8863B' stroke-opacity='0.08' stroke-width='3' fill='none' stroke-linecap='round'%3E%3Ccircle cx='70' cy='35' r='9'/%3E%3Cline x1='70' y1='44' x2='70' y2='95'/%3E%3Cline x1='50' y1='55' x2='90' y2='55'/%3E%3Cpath d='M45 80 Q45 105 70 105 Q95 105 95 80'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 140px 140px;
  }
  body[data-pattern="aucun"] #app::before{ background-image:none; }

  /* ===== fond d'écran photo (images spirituelles), remplace le motif en filigrane ===== */
  body[data-wallpaper]:not([data-wallpaper="aucun"]) #app::before{
    background-image: var(--wallpaper-img, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    filter: saturate(0.9) blur(0.5px);
    animation: none;
  }
  body[data-theme="dark"][data-wallpaper]:not([data-wallpaper="aucun"]) #app::before{ opacity:0.3; }

  /* En dessous de 760px (téléphone), l'appli occupe tout l'écran — plus de
     "carte" flottante avec marges et coins arrondis : c'est le rendu attendu
     d'une appli, surtout une fois installée en PWA sur l'écran d'accueil. */
  #app{
    width:100%;
    max-width:none;
    height: 100vh;
    height: 100dvh;
    min-height:0;
    max-height:none;
    background: linear-gradient(175deg, var(--vellum) 0%, var(--vellum-light) 100%);
    border-radius: 0;
    box-shadow:none;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    position:relative;
    z-index:1;
    border:none;
  }
  #app::before{
    content:"";
    position:absolute; inset:0; z-index:-1; pointer-events:none;
    background-repeat:no-repeat;
    animation: bgBreathe 16s ease-in-out infinite;
  }
  #main{
    flex:1;
    display:flex;
    flex-direction:column;
    min-width:0;
    min-height:0;
  }
  /* header */
  #topbar{
    padding: calc(22px + env(safe-area-inset-top)) 22px 16px;
    background: linear-gradient(155deg, #2E0A10 0%, var(--wine-dark) 40%, var(--wine) 75%, #B2541F 100%);
    color: var(--vellum-light);
    position:relative;
    overflow:hidden;
    flex-shrink:0;
    border-bottom: 1px solid rgba(232,204,126,0.35);
  }
  #search-invite-bar{
    display:flex; align-items:center; gap:8px; width:100%;
    margin-top:12px; padding:10px 14px;
    background:rgba(255,255,255,0.14); border:1px solid rgba(232,204,126,0.3); border-radius:999px;
    color:var(--vellum-light); font-family:'Inter',sans-serif; font-size:12.5px; text-align:left;
    cursor:pointer; position:relative; z-index:1; transition:background 0.2s ease;
  }
  #search-invite-bar:hover, #search-invite-bar:active{ background:rgba(255,255,255,0.22); }
  #search-invite-bar span:first-child{ font-size:14px; opacity:0.85; }
  #search-invite-bar span:last-child{ opacity:0.85; }
  #topbar::after{
    content:"";
    position:absolute; inset:0;
    background: radial-gradient(circle at 85% -10%, rgba(232,204,126,0.4), transparent 55%),
                radial-gradient(circle at 10% 110%, rgba(232,204,126,0.15), transparent 60%);
    pointer-events:none;
  }
  #topbar::before{
    content:"";
    position:absolute; left:0; right:0; bottom:0; height:1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
    opacity:0.7;
  }
  .brand{
    font-family:'Fraunces', serif;
    font-weight:600;
    font-size: 27px;
    letter-spacing: 0.6px;
    display:flex;
    align-items:center;
    gap:9px;
    text-shadow: 0 0 20px rgba(232,204,126,0.35);
  }
  .brand-emblem{ flex-shrink:0; filter: drop-shadow(0 0 6px rgba(232,204,126,0.6)); }
  .brand .dot{ color: var(--gold-light); }
  .date-line{
    font-family:'Inter', sans-serif;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.82;
    margin-top: 4px;
  }
  /* screen area */
  #screen{
    flex:1;
    overflow-y:auto;
    scroll-behavior:smooth;
    padding: 20px 19px 34px;
    animation: fadeIn 0.5s ease;
    position:relative;
    z-index:0;
  }
  /* un peu plus d'air entre les blocs de premier niveau, pour une lecture plus calme */
  #screen > * + *{ margin-top:8px; }
  .grid{ margin-top:2px; }
  #screen::before{
    content:"";
    position:absolute; inset:0; z-index:-1;
    pointer-events:none;
    background-repeat:no-repeat;
    background-position: 115% 105%;
    background-size: 260px 260px;
    opacity:1;
  }
  /* per-section watermark, derived from each tab's own icon */
  body[data-section="accueil"] #screen::before{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8863B' stroke-opacity='0.09' stroke-width='1.1'%3E%3Cpath d='M4 11.5 12 4l8 7.5'/%3E%3Cpath d='M6 10v9a1 1 0 0 0 1 1h4v-6h2v6h4a1 1 0 0 0 1-1v-9'/%3E%3C/svg%3E");
  }
  body[data-section="prier"] #screen::before{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8863B' stroke-opacity='0.09' stroke-width='1.1'%3E%3Cpath d='M12 21s-7-4.6-9.5-9C.7 8.4 2.5 5 6 5c2 0 3.3 1.1 4 2.2C10.7 6.1 12 5 14 5c3.5 0 5.3 3.4 3.5 7-2.5 4.4-9.5 9-9.5 9Z' transform='scale(0.82) translate(2.5,2)'/%3E%3C/svg%3E");
  }
  body[data-section="ecritures"] #screen::before{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8863B' stroke-opacity='0.09' stroke-width='1.1'%3E%3Cpath d='M4 5.5C4 4.7 4.7 4 5.5 4H12v16H5.5c-.8 0-1.5-.7-1.5-1.5v-13Z'/%3E%3Cpath d='M20 5.5c0-.8-.7-1.5-1.5-1.5H12v16h6.5c.8 0 1.5-.7 1.5-1.5v-13Z'/%3E%3C/svg%3E");
  }
  body[data-section="eglise"] #screen::before{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8863B' stroke-opacity='0.09' stroke-width='1.1'%3E%3Cpath d='M12 3v4M9 5h6M6 21V11l6-5 6 5v10'/%3E%3Cpath d='M10 21v-5h4v5'/%3E%3C/svg%3E");
  }
  body[data-section="sagesse"] #screen::before{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8863B' stroke-opacity='0.09' stroke-width='1.1'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.6 10.8c.5.4.8 1 .8 1.7v.5h5.6v-.5c0-.7.3-1.3.8-1.7A6 6 0 0 0 12 3Z'/%3E%3C/svg%3E");
  }
  body[data-section="combat"] #screen::before{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C1F2E' stroke-opacity='0.1' stroke-width='1'%3E%3Cpath d='M12 3l7 3v6c0 4.5-3 8-7 9-4-1-7-4.5-7-9V6l7-3Z'/%3E%3Cpath d='M9.5 12l1.7 1.7L15 10'/%3E%3C/svg%3E");
  }
  body[data-section="espace"] #screen::before{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8863B' stroke-opacity='0.09' stroke-width='1.1'%3E%3Ccircle cx='12' cy='8' r='3.2'/%3E%3Cpath d='M5 20c1-3.5 4-5.5 7-5.5s6 2 7 5.5'/%3E%3C/svg%3E");
  }
  @media (min-width:760px){
    #screen::before{ background-size: 380px 380px; background-position: 105% 95%; }
  }
  .detail-wrap{ max-width:100%; background: linear-gradient(165deg, var(--vellum-light) 0%, var(--gold-pale) 100%); border:1px solid var(--hairline); border-radius:16px; padding:18px 16px; box-shadow: var(--shadow); }
  .grid{ display:grid; grid-template-columns: 1fr; gap:14px; }

  /* ===== tablet / desktop : fills the whole browser window ===== */
  @media (min-width:760px){
    body{ padding:0; align-items:stretch; justify-content:stretch; }
    #app{
      width:100vw;
      height:100vh;
      max-width:none;
      max-height:none;
      flex-direction: row-reverse;
      border-radius: 0;
      box-shadow:none;
      border:none;
    }
    #main{ flex-direction:column; }
    #topbar{ padding: 30px 48px 20px; }
    .brand{ font-size:30px; }
    #screen{ padding: 28px 48px 48px; max-width:1400px; width:100%; margin:0 auto; }
    .grid{ grid-template-columns: repeat(2, 1fr); gap:16px; }
    .detail-wrap{ max-width: 720px; margin:0 auto; }
    h2.section-title{ font-size:21px; }
  }
  @media (min-width:1020px){
    .grid{ grid-template-columns: repeat(3, 1fr); }
  }
  @media (min-width:1400px){
    .grid{ grid-template-columns: repeat(4, 1fr); }
    #tabbar{ width:260px !important; }
    .tab-btn-img{ width:30px; height:30px; border-radius:9px; }
  }
  @keyframes fadeIn{ from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:translateY(0);} }
  body[data-section="prier"] #screen > *,
  body[data-section="devotions"] #screen > *,
  body[data-section="explorer"] #screen > *,
  body[data-section="jesus"] #screen > *,
  body[data-section="eglise"] #screen > *,
  body[data-section="sagesse"] #screen > *,
  body[data-section="espace"] #screen > *{ animation: fadeIn 0.5s ease backwards; }
  body[data-section="prier"] #screen > *:nth-child(1), body[data-section="devotions"] #screen > *:nth-child(1), body[data-section="explorer"] #screen > *:nth-child(1), body[data-section="jesus"] #screen > *:nth-child(1), body[data-section="eglise"] #screen > *:nth-child(1), body[data-section="sagesse"] #screen > *:nth-child(1), body[data-section="espace"] #screen > *:nth-child(1){ animation-delay: 0.03s; }
  body[data-section="prier"] #screen > *:nth-child(2), body[data-section="devotions"] #screen > *:nth-child(2), body[data-section="explorer"] #screen > *:nth-child(2), body[data-section="jesus"] #screen > *:nth-child(2), body[data-section="eglise"] #screen > *:nth-child(2), body[data-section="sagesse"] #screen > *:nth-child(2), body[data-section="espace"] #screen > *:nth-child(2){ animation-delay: 0.08s; }
  body[data-section="prier"] #screen > *:nth-child(3), body[data-section="devotions"] #screen > *:nth-child(3), body[data-section="explorer"] #screen > *:nth-child(3), body[data-section="jesus"] #screen > *:nth-child(3), body[data-section="eglise"] #screen > *:nth-child(3), body[data-section="sagesse"] #screen > *:nth-child(3), body[data-section="espace"] #screen > *:nth-child(3){ animation-delay: 0.13s; }
  body[data-section="prier"] #screen > *:nth-child(4), body[data-section="devotions"] #screen > *:nth-child(4), body[data-section="explorer"] #screen > *:nth-child(4), body[data-section="jesus"] #screen > *:nth-child(4), body[data-section="eglise"] #screen > *:nth-child(4), body[data-section="sagesse"] #screen > *:nth-child(4), body[data-section="espace"] #screen > *:nth-child(4){ animation-delay: 0.18s; }

  /* ===== Accueil : séquence d'allumage, comme des cierges ===== */
  @keyframes lumenIgnite{
    0%{ opacity:0; transform:translateY(10px) scale(0.985); filter:brightness(1); }
    55%{ opacity:1; transform:translateY(0) scale(1.004); filter:brightness(1.18); }
    100%{ opacity:1; transform:translateY(0) scale(1); filter:brightness(1); }
  }
  body[data-section="accueil"] #screen > *{
    animation: lumenIgnite 0.62s cubic-bezier(.2,.8,.3,1) backwards;
  }
  body[data-section="accueil"] #screen > *:nth-child(1){ animation-delay: 0.02s; }
  body[data-section="accueil"] #screen > *:nth-child(2){ animation-delay: 0.10s; }
  body[data-section="accueil"] #screen > *:nth-child(3){ animation-delay: 0.17s; }
  body[data-section="accueil"] #screen > *:nth-child(4){ animation-delay: 0.24s; }
  body[data-section="accueil"] #screen > *:nth-child(5){ animation-delay: 0.31s; }
  body[data-section="accueil"] #screen > *:nth-child(6){ animation-delay: 0.38s; }
  body[data-section="accueil"] #screen > *:nth-child(7){ animation-delay: 0.45s; }
  body[data-section="accueil"] #screen > *:nth-child(8){ animation-delay: 0.52s; }
  body[data-section="accueil"] #screen > *:nth-child(n+9){ animation-delay: 0.58s; }
  .rosary-avatar-wrap{ display:flex; justify-content:center; margin-bottom:10px; }
  .rosary-avatar-wrap img{ width:90px; height:90px; border-radius:50%; box-shadow:var(--shadow-warm); }
  .real-chaplet-wrap{ display:flex; justify-content:center; margin:12px 0 6px; }
  .real-chaplet-svg{ width:100%; max-width:280px; height:auto; }
  .real-chaplet-bead{ fill:var(--vellum); stroke:#8A6A2E; stroke-width:1.5; cursor:pointer; transition:all 0.25s ease; }
  .real-chaplet-bead.lit{ fill:var(--gold); stroke:var(--gold); filter:drop-shadow(0 0 4px rgba(242,183,94,0.7)); }
  .real-chaplet-bead.next{ stroke:var(--wine); stroke-width:2.5; animation:beadPulseWait 1.4s ease-in-out infinite; }
  .real-chaplet-pater.lit{ fill:var(--wine); stroke:var(--wine); }
  .app-guide-list{ display:flex; flex-direction:column; gap:10px; }
  .app-guide-row{ display:flex; gap:12px; align-items:flex-start; }
  .app-guide-icon{ font-size:24px; flex-shrink:0; }
  .med-audio-list{ display:flex; flex-direction:column; gap:8px; }
  .med-audio-row{ display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:14px; background:var(--vellum-light); border:1px solid var(--hairline); }
  .med-audio-row.playing{ border-color:var(--gold); background:var(--gold-pale); }
  .med-audio-play-btn{ flex-shrink:0; width:36px; height:36px; border-radius:50%; border:none; background:var(--wine); color:#fff; font-size:13px; cursor:pointer; }
  .med-audio-copy b{ display:block; font-family:'Inter',sans-serif; font-size:13.5px; color:var(--ink); }
  .med-audio-copy small{ color:var(--ink-soft); font-size:11px; }
  .lent-goal-row{ display:flex; flex-direction:column; gap:6px; margin-top:6px; }
  .lent-goal-check{ display:flex; align-items:center; gap:8px; padding:9px 12px; border-radius:10px; background:var(--vellum); border:1px solid var(--hairline); font-family:'Inter',sans-serif; font-size:12.5px; color:var(--ink); cursor:pointer; }
  .lent-goal-check input{ width:16px; height:16px; accent-color:var(--wine); }
  .aelf-embed-wrap{ max-width:600px; margin:0 auto; border-radius:14px; overflow:hidden; border:1px solid var(--hairline); background:#fff; }
  .aelf-embed-wrap iframe{ width:100%; height:520px; border:none; display:block; }
  /* Sommaire façon livre : une rangée plate par livre/chapitre, séparée par un
     simple filet, avec un chevron — pas d'encadré de carte (voir .rubric-row,
     même esprit visuel que les écrans "hub"). */
  .aelf-bible-list{ display:flex; flex-direction:column; margin-top:6px; }
  .aelf-bible-row{ display:flex; align-items:center; gap:10px; text-align:left; width:100%; padding:11px 2px; border:none; border-bottom:1px solid var(--hairline); background:none; color:var(--ink); font-family:'Fraunces',serif; font-size:14.5px; cursor:pointer; }
  .aelf-bible-list .aelf-bible-row:last-child{ border-bottom:none; }
  .aelf-bible-row::after{ content:'›'; margin-left:auto; font-size:18px; color:var(--ink-soft); opacity:0.55; font-family:'Inter',sans-serif; }
  @media (hover:hover){ .aelf-bible-row:hover{ color:var(--wine); } }
  .aelf-chapter-nav{ display:flex; justify-content:space-between; gap:8px; }

  /* Lecteur biblique natif (texte + méditation + audio), comme la maquette */
  .bible-reader{ margin:-18px -18px 0; }
  .bible-reader-hero{ position:relative; height:140px; overflow:hidden; }
  .bible-reader-hero img{ width:100%; height:100%; object-fit:cover; display:block; }
  .bible-reader-hero-scrim{ position:absolute; inset:0; background:linear-gradient(0deg, rgba(20,10,10,0.35) 0%, rgba(20,10,10,0.08) 60%, transparent 100%); }
  .bible-reader-hero-btn{ position:absolute; top:12px; width:36px; height:36px; border-radius:50%; border:none; background:rgba(255,255,255,0.75); display:flex; align-items:center; justify-content:center; font-size:15px; cursor:pointer; }
  .bible-reader-hero-back{ left:12px; }
  .bible-reader-hero-fav{ right:12px; }
  .bible-reader-nav{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 18px 6px; }
  .bible-reader-nav-arrow{ width:34px; height:34px; border-radius:50%; border:1px solid var(--hairline); background:var(--vellum-light); font-size:18px; color:var(--wine); cursor:pointer; flex:none; }
  .bible-reader-nav-arrow:disabled{ opacity:0.35; cursor:default; }
  .bible-reader-nav-title{ text-align:center; flex:1; }
  .bible-reader-book{ font-family:'Fraunces',serif; font-weight:600; font-size:16px; margin:0; }
  .bible-reader-chapter{ font-family:'Inter',sans-serif; font-size:12px; color:var(--ink-soft); margin:2px 0 0; }
  .bible-reader-tabs{ display:flex; gap:6px; padding:8px 18px; }
  .bible-reader-tab{ flex:1; padding:8px 0; border-radius:999px; border:1px solid var(--hairline); background:var(--vellum-light); color:var(--ink-soft); font-family:'Inter',sans-serif; font-size:12.5px; font-weight:600; cursor:pointer; }
  .bible-reader-tab.active{ background:var(--wine); color:#fff; border-color:var(--wine); }
  .bible-reader-body{ padding:10px 20px 4px; max-width:560px; margin:0 auto; box-sizing:border-box; }
  .bible-verse{ font-family:'Fraunces',serif; font-size:15.5px; line-height:1.65; color:var(--ink); margin:0 0 12px; }
  .bible-reader-body--big .bible-verse{ font-size:19px; }
  .bible-verse-num{ font-family:'Inter',sans-serif; font-weight:700; font-size:11.5px; color:var(--wine); vertical-align:super; margin-right:4px; }
  .bible-verse-actions{ display:inline-flex; align-items:center; gap:2px; margin-left:6px; vertical-align:middle; }
  .bible-verse-actions .fav-star{ font-size:14px; }
  .bible-verse-note-btn{ background:none; border:none; cursor:pointer; font-size:13px; padding:0 2px; color:var(--hairline); }
  .bible-verse-note-text{ display:block; font-family:'Inter',sans-serif; font-style:italic; font-size:13px; color:var(--wine-dark); background:rgba(107,37,69,0.06); border-radius:8px; padding:6px 10px; margin-top:4px; }
  .bible-reader-toolbar{ display:flex; justify-content:center; gap:10px; padding:14px 18px 22px; }
  .rosary-head-row{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px; }
  .office-head-row{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
  .office-head-row .vreader-icon-btn{ background:rgba(107,37,69,0.08); color:var(--wine-dark); }
  .rosary-set-pill{ font-family:'Inter',sans-serif; font-weight:600; font-size:13px; color:var(--wine-dark); background:rgba(107,37,69,0.08); border-radius:999px; padding:6px 14px; }
  .rosary-mystery-hero{ height:170px; border-radius:18px; margin:10px 0 2px; }
  .rosary-immersive-hero-btn{ right:12px; left:auto; }
  .rosary-bead-row{ display:flex; justify-content:center; gap:7px; flex-wrap:wrap; margin:14px 0 6px; }
  .rosary-bead-dot{ width:16px; height:16px; border-radius:50%; border:2px solid var(--rosary-bead-color, var(--wine)); background:transparent; padding:0; cursor:pointer; transition:transform .15s ease; }
  .rosary-bead-dot.lit{ background:var(--rosary-bead-color, var(--wine)); }
  .rosary-bead-dot:active{ transform:scale(1.25); }
  .rosary-bottom-nav{ display:flex; align-items:center; justify-content:center; gap:12px; margin:16px 0 8px; }
  .rosary-bottom-nav .btn-primary{ flex:1; max-width:220px; }

  /* ---- chapelet tactile et immersif : nouvelle maquette ---- */
  .rosary-wrap{ position:relative; }
  .rosary-wrap.rosary-mode-lumineux{ background:linear-gradient(180deg, var(--gold-pale), transparent 220px); border-radius:18px; padding:4px 2px; margin:-4px -2px; }
  .rosary-wrap.rosary-mode-sombre{ background:#1A1420; color:#F0E6D8; border-radius:18px; padding:10px 10px 4px; margin:-4px -8px; }
  .rosary-wrap.rosary-mode-sombre .card, .rosary-wrap.rosary-mode-sombre .rosary-catalogue-row{ background:#241C2E; border-color:#3A2E42; color:#F0E6D8; }
  .rosary-wrap.rosary-mode-sombre .entry-detail-text, .rosary-wrap.rosary-mode-sombre .section-desc, .rosary-wrap.rosary-mode-sombre .day-title{ color:#F0E6D8; }
  .rosary-top-icons{ display:flex; align-items:center; gap:6px; }
  .rosary-icon-btn{ width:34px; height:34px; border-radius:50%; border:1px solid var(--hairline); background:var(--vellum-light); color:var(--wine-dark); font-size:15px; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
  .rosary-icon-btn.active, .fav-star.rosary-icon-btn.active{ background:var(--gold-pale); border-color:var(--gold); }
  .rosary-catalogue-list{ display:flex; flex-direction:column; gap:10px; margin-top:12px; }
  .rosary-catalogue-row{ display:flex; align-items:center; gap:12px; background:var(--vellum-light); border:1px solid var(--hairline); border-radius:14px; padding:8px; text-align:left; cursor:pointer; }
  .rosary-catalogue-row img{ width:54px; height:54px; border-radius:10px; object-fit:cover; flex-shrink:0; background:var(--gold-pale); }
  .rosary-catalogue-info{ flex:1; display:flex; flex-direction:column; gap:2px; }
  .rosary-catalogue-title{ font-family:'Fraunces',serif; font-size:15px; font-weight:600; color:var(--ink); }
  .rosary-catalogue-sub{ font-family:'Inter',sans-serif; font-size:12px; color:var(--ink-soft); }
  .rosary-catalogue-arrow{ color:var(--gold); font-size:18px; }

  /* ---- mystère du jour + calendrier (page d'accueil du chapelet) ---- */
  .rosary-today-hero{ position:relative; display:block; width:100%; height:168px; border-radius:18px; overflow:hidden; margin-top:14px; border:none; padding:0; cursor:pointer; background:var(--rosary-today-color, var(--wine)); }
  .rosary-today-hero img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 22%; }
  .rosary-today-hero-scrim{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(20,10,20,0.05) 0%, rgba(20,10,20,0.78) 100%); }
  .rosary-today-hero-content{ position:absolute; left:0; right:0; bottom:0; padding:14px 16px; display:flex; flex-direction:column; gap:3px; text-align:left; }
  .rosary-today-hero-eyebrow{ font-family:'Inter',sans-serif; font-weight:600; font-size:11.5px; letter-spacing:0.04em; text-transform:uppercase; color:#F0D9A8; }
  .rosary-today-hero-title{ font-family:'Fraunces',serif; font-weight:600; font-size:20px; color:#fff; }
  .rosary-today-hero-cta{ font-family:'Inter',sans-serif; font-weight:600; font-size:12.5px; color:#F0E6D8; margin-top:2px; }
  .rosary-schedule-card{ margin-top:12px; }
  .rosary-schedule-row{ display:flex; align-items:center; gap:10px; padding:7px 2px; border-radius:10px; }
  .rosary-schedule-row.active{ background:var(--gold-pale); }
  .rosary-schedule-dot{ width:11px; height:11px; border-radius:50%; flex-shrink:0; }
  .rosary-schedule-label{ flex:1; font-family:'Fraunces',serif; font-size:14px; font-weight:600; color:var(--ink); }
  .rosary-schedule-days{ font-family:'Inter',sans-serif; font-size:12px; color:var(--ink-soft); text-align:right; }
  .rosary-wrap.rosary-mode-sombre .rosary-schedule-label, .rosary-wrap.rosary-mode-sombre .rosary-schedule-days{ color:#F0E6D8; }

  /* ---- navigation détaillée des mystères (lecture libre) ---- */
  .rosary-mystery-browse-item{ border-bottom:1px solid var(--hairline); }
  .rosary-mystery-browse-item:last-child{ border-bottom:none; }
  .rosary-mystery-browse-row{ width:100%; display:flex; align-items:center; gap:10px; background:none; border:none; padding:9px 2px; text-align:left; cursor:pointer; }
  .rosary-mystery-browse-num{ width:22px; height:22px; border-radius:50%; background:var(--gold-pale); color:var(--wine-dark); font-family:'Inter',sans-serif; font-weight:700; font-size:12px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .rosary-mystery-browse-text{ flex:1; display:flex; flex-direction:column; gap:1px; }
  .rosary-mystery-browse-title{ font-family:'Fraunces',serif; font-size:14px; font-weight:600; color:var(--ink); }
  .rosary-mystery-browse-ref{ font-family:'Inter',sans-serif; font-size:11.5px; color:var(--ink-soft); }
  .rosary-mystery-browse-arrow{ color:var(--gold); font-size:13px; flex-shrink:0; }
  .rosary-mystery-browse-detail{ padding:0 2px 12px 32px; }
  .rosary-mystery-browse-img{ width:100%; height:140px; border-radius:12px; overflow:hidden; margin-bottom:8px; }
  .rosary-mystery-browse-img img{ width:100%; height:100%; object-fit:cover; }
  .rosary-wrap.rosary-mode-sombre .rosary-mystery-browse-title, .rosary-wrap.rosary-mode-sombre .rosary-mystery-browse-ref{ color:#F0E6D8; }

  .rosary-select-head{ display:flex; align-items:center; gap:8px; margin:4px 0 2px; }
  .rosary-select-head-title{ flex:1; text-align:center; font-family:'Fraunces',serif; font-weight:600; font-size:17px; color:var(--wine-dark); margin:0; }
  .rosary-select-hero{ height:260px; border-radius:16px; overflow:hidden; margin-top:10px; }
  .rosary-select-hero img{ width:100%; height:100%; object-fit:cover; object-position:center 20%; }
  .rosary-overview-figure{ display:flex; justify-content:center; margin:6px 0; }
  .rosary-overview-photo{ display:flex; justify-content:center; margin:10px 0 2px; }
  .rosary-overview-photo img{ width:200px; height:200px; border-radius:50%; object-fit:cover; object-position:center 22%; border:5px solid var(--gold-pale); box-shadow:0 8px 20px rgba(60,30,50,0.25); }
  .rosary-overview-photo img.rosary-overview-photo-fallback{ width:160px; height:160px; border-radius:50%; object-fit:contain; padding:16px; box-shadow:none; filter:drop-shadow(0 6px 14px rgba(60,30,50,0.18)); }
  .rosary-preview-pager{ display:flex; align-items:center; justify-content:center; gap:14px; margin:8px 0 14px; }
  .rosary-preview-dots{ display:flex; align-items:center; gap:6px; }
  .rosary-preview-dot{ width:7px; height:7px; border-radius:50%; background:var(--hairline); cursor:pointer; }
  .rosary-preview-dot.active{ background:var(--wine); width:9px; height:9px; }
  .rosary-expand-toggle{ display:block; width:100%; text-align:center; background:none; border:none; color:var(--wine-dark); font-family:'Inter',sans-serif; font-weight:600; font-size:12.5px; padding:10px 0 2px; cursor:pointer; }
  .real-chaplet-svg{ width:100%; max-width:280px; }
  .real-chaplet-bead{ fill:var(--vellum-light); stroke:var(--rosary-bead-color, var(--wine)); stroke-width:2; }
  .real-chaplet-bead.lit{ fill:var(--rosary-bead-color, var(--wine)); }
  .real-chaplet-bead.next{ stroke-width:3; filter:drop-shadow(0 0 4px var(--gold)); }
  .real-chaplet-pater{ fill:var(--vellum-light); stroke:var(--gold); stroke-width:3; }
  .real-chaplet-pater.lit{ fill:var(--gold); }
  .rosary-gloria-figure{ display:flex; justify-content:center; margin:14px 0; border-radius:16px; overflow:hidden; background:radial-gradient(circle at 50% 35%, rgba(242,183,94,0.28), transparent 65%); }
  .rosary-gloria-figure img{ width:100%; max-width:260px; height:220px; object-fit:cover; object-position:center 18%; border-radius:16px; box-shadow:var(--shadow-warm); }
  .rosary-gloria-cross{ width:84px; height:84px; border-radius:50%; background:linear-gradient(160deg, var(--gold-light), var(--gold)); display:flex; align-items:center; justify-content:center; font-size:38px; color:var(--vellum-light); box-shadow:var(--shadow-warm); margin:0 auto; }
  .rosary-done-figure{ border-radius:16px; overflow:hidden; margin-bottom:10px; }
  .rosary-done-figure img{ width:100%; height:170px; object-fit:cover; object-position:center 20%; }
  .rosary-done-hero{ position:relative; height:280px; border-radius:20px; overflow:hidden; box-shadow:var(--shadow-warm); }
  .rosary-done-hero img{ width:100%; height:100%; object-fit:cover; object-position:center 18%; }
  .rosary-done-hero-scrim{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(20,10,20,0.1) 0%, rgba(20,10,30,0.25) 45%, rgba(15,8,20,0.88) 100%); }
  .rosary-done-close{ position:absolute; top:12px; right:12px; width:32px; height:32px; border-radius:50%; border:none; background:rgba(0,0,0,0.35); color:#fff; font-size:14px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
  .rosary-done-hero-content{ position:absolute; left:0; right:0; bottom:0; padding:18px 20px 20px; text-align:center; }
  .rosary-settings-overlay{ position:fixed; inset:0; background:rgba(30,20,20,0.45); z-index:400; display:flex; align-items:flex-end; }
  .rosary-settings-overlay.hidden{ display:none; }
  .rosary-settings-panel{ background:var(--vellum-light); width:100%; border-radius:20px 20px 0 0; padding:18px 18px 28px; max-height:82vh; overflow-y:auto; box-shadow:0 -10px 30px rgba(0,0,0,0.2); }
  .rosary-settings-head{ display:flex; align-items:center; justify-content:space-between; }
  .rosary-settings-row{ display:flex; align-items:center; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--hairline); font-family:'Inter',sans-serif; font-size:13.5px; color:var(--ink); }
  .rosary-toggle{ width:42px; height:24px; border-radius:999px; border:none; background:var(--hairline); position:relative; cursor:pointer; padding:0; transition:background .15s; }
  .rosary-toggle::after{ content:''; position:absolute; top:2px; left:2px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,0.3); transition:left .15s; }
  .rosary-toggle.on{ background:var(--wine); }
  .rosary-toggle.on::after{ left:20px; }
  .rosary-text-size-ctl{ display:flex; gap:6px; }
  .rosary-color-row{ display:flex; gap:10px; margin-top:6px; }
  .rosary-color-dot{ width:28px; height:28px; border-radius:50%; border:2px solid transparent; cursor:pointer; padding:0; }
  .rosary-color-dot.active{ border-color:var(--ink); transform:scale(1.1); }
  #aelf-office-body, #aelf-bible-body{ max-width:560px; margin:0 auto; }
  .aelf-office-section{ margin-bottom:22px; padding-bottom:18px; border-bottom:1px solid var(--hairline); }
  .aelf-office-section:last-child{ border-bottom:none; }
  .aelf-office-section.aelf-office-intro{ border-bottom:none; margin-bottom:14px; }
  .aelf-office-heading.eyebrow{ display:block; margin:0 0 10px; }
  .aelf-office-ref{ text-transform:none; letter-spacing:0; font-weight:500; color:var(--ink-soft); font-size:11px; }
  .aelf-office-antienne{ font-family:'Lora',serif; font-size:13.5px; line-height:1.6; color:var(--wine-dark); font-style:italic; margin:0 0 8px; max-width:65ch; margin-left:auto; margin-right:auto; }
  .aelf-office-text{ font-family:'Lora',serif; font-size:14px; line-height:1.85; color:var(--ink); white-space:pre-line; max-width:65ch; margin:0 auto; }
  .aelf-office-credit{ font-family:'Inter',sans-serif; font-size:11px; color:var(--ink-soft); text-align:right; max-width:65ch; margin:4px auto 0; font-style:italic; }
  .aelf-dialogue-mark{ color:var(--gold); font-weight:700; font-family:'Inter',sans-serif; font-size:12.5px; }
  .aelf-verse-num{ color:var(--gold); font-weight:600; font-size:11px; font-family:'Inter',sans-serif; vertical-align:text-top; margin-right:2px; }
  .aelf-pause{ color:var(--gold); font-weight:700; }
  .welcome-splash{
    position:relative; overflow:hidden;
    min-height:70vh; display:flex; flex-direction:column; align-items:center; justify-content:center;
    text-align:center; padding:20px; gap:4px;
    animation: welcomeSplashRise 0.9s cubic-bezier(0.2,0.8,0.2,1) both;
  }
  @keyframes welcomeSplashRise{ 0%{ opacity:0; transform:translateY(14px); } 100%{ opacity:1; transform:translateY(0); } }
  /* Lueur ambiante chaude derrière tout l'écran de bienvenue, comme si la
     bougie allumée plus bas éclairait doucement toute la scène. */
  .welcome-splash::before{
    content:''; position:absolute; top:-10%; left:50%; transform:translateX(-50%);
    width:min(640px, 140vw); height:min(640px, 140vw); border-radius:50%; z-index:0;
    background:radial-gradient(circle, rgba(232,204,126,0.22) 0%, rgba(232,204,126,0.08) 45%, transparent 72%);
    pointer-events:none;
  }
  .welcome-splash > *{ position:relative; z-index:1; }
  /* Le scale() agrandit la bougie visuellement sans agrandir sa boîte de mise
     en page ; ce conteneur lui réserve une vraie place (hauteur fixe) entre
     la photo et le titre, pour qu'elle ne chevauche jamais ses voisins. */
  .welcome-splash-candle-wrap{ width:100%; height:220px; display:flex; align-items:center; justify-content:center; margin:0 0 2px; }
  .welcome-splash-candle{
    transform:scale(3.6);
    animation: welcomeCandlePop 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.5s both;
  }
  @keyframes welcomeCandlePop{ 0%{ opacity:0; transform:scale(2.4) translateY(6px); } 100%{ opacity:1; transform:scale(3.6) translateY(0); } }
  .welcome-splash-title{ font-family:'Fraunces',serif; font-size:40px; font-weight:600; color:var(--ink); margin:0; }
  .welcome-splash-tagline{ font-family:'Inter',sans-serif; font-size:13px; color:var(--gold); letter-spacing:0.5px; margin:4px 0 22px; position:relative; }
  .welcome-splash-tagline::after{
    content:''; display:block; width:46px; height:1px; margin:10px auto 0;
    background:linear-gradient(90deg, transparent, var(--gold-light), transparent);
  }
  .welcome-splash-text{ font-family:'Lora',serif; font-size:14.5px; line-height:1.7; color:var(--ink-soft); max-width:400px; margin:0 0 28px; }
  .welcome-splash-avatar-wrap{ width:96px; height:96px; margin-bottom:14px; position:relative; }
  .welcome-splash-avatar-wrap::before{
    content:''; position:absolute; inset:-8px; border-radius:50%;
    background:radial-gradient(circle, rgba(232,204,126,0.4) 0%, transparent 70%);
    animation: lumenGlowPulse 2.6s ease-in-out infinite;
  }
  .welcome-splash-avatar{ width:96px; height:96px; border-radius:50%; object-fit:cover; border:2px solid var(--gold-light); box-shadow:var(--shadow-warm); position:relative; }
  .welcome-splash-avatar-fallback{ width:96px; height:96px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--vellum-light); border:2px solid var(--gold-light); transform:scale(1.1); position:relative; }
  .welcome-splash-video-btn{ margin-bottom:10px; }
  #guide-overlay{
    position:fixed; inset:0; z-index:9997; background:rgba(15,10,8,0.82);
    display:flex; align-items:flex-end; justify-content:center; padding:0;
  }
  #guide-overlay.hidden{ display:none; }
  .guide-panel{
    position:relative; width:100%; max-width:460px; background:var(--vellum-light);
    border-radius:22px 22px 0 0; padding:26px 22px 30px; animation:fadeIn 0.25s ease;
  }
  .guide-close{ position:absolute; top:14px; right:14px; width:30px; height:30px; border-radius:50%; border:none; background:var(--vellum); color:var(--ink-soft); font-size:14px; cursor:pointer; }
  .guide-eyebrow{ font-family:'Inter',sans-serif; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:1.3px; color:var(--gold); margin:0; }
  .guide-title{ font-family:'Fraunces',serif; font-size:22px; font-weight:600; color:var(--ink); margin:4px 0 4px; }
  .guide-desc{ font-family:'Inter',sans-serif; font-size:13px; color:var(--ink-soft); margin:0 0 16px; }
  .guide-options{ display:flex; flex-direction:column; gap:8px; max-height:38vh; overflow-y:auto; }
  .guide-opt{ text-align:left; padding:13px 16px; border-radius:14px; border:1px solid var(--hairline); background:var(--vellum); color:var(--ink); font-family:'Inter',sans-serif; font-size:14px; font-weight:600; cursor:pointer; }
  .guide-opt:hover{ background:var(--gold-pale); }
  .guide-avatar{
    width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center;
    font-size:24px; margin-bottom:10px;
    background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 75%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18), inset 0 0 0 2px rgba(255,255,255,0.35);
  }
  .guide-ask-row{ display:flex; gap:8px; margin:14px 0 6px; }
  .guide-ask-input{
    flex:1; padding:12px 14px; border-radius:14px; border:1px solid var(--hairline);
    background:var(--vellum); color:var(--ink); font-family:'Inter',sans-serif; font-size:13.5px;
  }
  .guide-ask-input:focus{ outline:none; border-color:var(--gold); }
  .guide-ask-send{
    width:44px; height:44px; flex:none; border-radius:14px; border:none; cursor:pointer;
    background:linear-gradient(165deg, var(--gold-light), var(--gold)); color:#fff; font-size:16px;
  }
  .guide-ask-hint{ font-family:'Inter',sans-serif; font-size:11px; color:var(--ink-soft); opacity:0.75; margin:0 0 16px; line-height:1.4; }

  /* ===== Mode Bande Dessinée : plus fun, pour toucher un public plus jeune ===== */
  body.comic-mode .card, body.comic-mode .entry-avatar, body.comic-mode .home-moment-panel,
  body.comic-mode .home-bento-verset, body.comic-mode .sdj-card,
  body.comic-mode .btn-primary, body.comic-mode .btn-gold{
    border:3px solid #241A12 !important;
    box-shadow:4px 4px 0 #241A12 !important;
  }
  body.comic-mode .home-hero, body.comic-mode .novena-card-img, body.comic-mode .sumry-hero{
    border:3px solid #241A12;
  }
  body.comic-mode h1, body.comic-mode h2.section-title, body.comic-mode .welcome-splash-title,
  body.comic-mode .saint-name, body.comic-mode .day-title{
    -webkit-text-stroke: 0.6px #241A12; letter-spacing:0.3px;
  }
  body.comic-mode #app::before{
    background-image: radial-gradient(#241A12 1px, transparent 1.4px);
    background-size: 10px 10px; opacity:0.08 !important;
  }
  body.comic-mode .btn{ border-radius:10px !important; font-weight:800 !important; }
  body.comic-mode .home-today-strip, body.comic-mode .liturgical-badge{
    border:2px solid #241A12; border-radius:999px; background:#fff;
  }
  @keyframes comicBounce{ 0%,100%{ transform:translateY(0) rotate(-2deg); } 50%{ transform:translateY(-4px) rotate(2deg); } }
  body.comic-mode .rubric-row-icon, body.comic-mode .hub-hero-emoji, body.comic-mode .home-tile-big-icon,
  body.comic-mode .sdj-hero, body.comic-mode .lumen-flame{
    animation: comicBounce 1.8s ease-in-out infinite;
  }
  body.comic-mode .rubric-row-icon{ font-size:22px !important; }
  body.comic-mode .home-tile-big-icon{ font-size:28px; }
  body.comic-mode .home-sec-emblem{ border:2px solid #241A12; transform:rotate(-4deg); }
  body.comic-mode .home-moment-panel{ position:relative; }
  body.comic-mode .home-moment-panel::after{
    content:'✨'; position:absolute; top:-10px; right:-6px; font-size:20px;
  }
  body.comic-mode .verset-text::before{ content:'💬 '; }
  body.comic-mode .entry-avatar, body.comic-mode .saint-emblem{ border-radius:16px !important; }

  /* ===== Mode Recueillement : un cadre plus calme, un lieu de recueil ===== */
  body.recueillement{ --wine:#8A5A62; --gold:#C4A876; }
  body.recueillement *{ animation-duration:2.2s !important; transition-duration:0.5s !important; }
  body.recueillement .home-tile-row, body.recueillement .mp-folders-grid,
  body.recueillement .recent-scroll, body.recueillement .liturgical-badge,
  body.recueillement .sumry-badge{ display:none !important; }
  body.recueillement #screen{ max-width:580px; margin:0 auto; line-height:1.75; }
  body.recueillement #screen > *{ margin-bottom:22px !important; }
  body.recueillement .card{ box-shadow:none; border:1px solid var(--hairline); }
  body.recueillement .home-divider{ opacity:0.6; }
  body.recueillement #app::before{ opacity:0.4; }
  body.recueillement .verset-text, body.recueillement .saint-prayer, body.recueillement .entry-detail-text, body.recueillement .text-box-text{ font-size:15.5px; line-height:1.85; }
  @media (prefers-reduced-motion: reduce){
    body[data-section="accueil"] #screen > *,
    .dropcap, .verset-text, .saint-prayer, .entry-detail-text, .text-box, .bead-bump, .bead-fly-plus,
    .home-today-dot, .lumen-flame, .welcome-splash, .welcome-splash-candle, .welcome-splash-candle-wrap, .welcome-splash-avatar-wrap::before{ animation:none !important; }
  }
  @keyframes ctaGlow{ 0%,100%{ box-shadow:0 4px 14px rgba(94,20,32,0.35); } 50%{ box-shadow:0 4px 22px rgba(184,134,59,0.55); } }
  #express-prayer-btn{ animation: ctaGlow 2.6s ease-in-out infinite; }
  .slide-from-left{ animation: slideFromLeft 0.32s cubic-bezier(0.22,1,0.36,1); }
  .slide-from-right{ animation: slideFromRight 0.32s cubic-bezier(0.22,1,0.36,1); }
  @keyframes slideFromLeft{ from{ opacity:0; transform:translateX(-26px);} to{ opacity:1; transform:translateX(0);} }
  @keyframes slideFromRight{ from{ opacity:0; transform:translateX(26px);} to{ opacity:1; transform:translateX(0);} }
  h2.section-title{
    font-family:'Fraunces', serif;
    font-size: 19px;
    font-weight:600;
    letter-spacing:0.2px;
    margin: 26px 0 12px;
    color: var(--wine-dark);
    display:flex; align-items:center; gap:8px;
    position:relative;
    padding-bottom:8px;
  }
  h2.section-title::after{
    content:"";
    position:absolute; left:0; bottom:0; height:2px; width:38px;
    background: linear-gradient(90deg, var(--gold), transparent);
    border-radius:2px;
  }
  h2.section-title:first-child{ margin-top:4px; }
  .eyebrow{
    font-family:'Inter',sans-serif;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:1.3px;
    color:var(--gold);
    font-weight:600;
  }

  /* cards */
  .card{
    background: linear-gradient(165deg, var(--vellum-light) 0%, var(--vellum-light) 72%, var(--gold-pale) 100%);
    border:1px solid var(--hairline);
    border-radius:16px;
    padding:17px;
    box-shadow: var(--shadow);
    position:relative;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }
  @media (hover:hover){
    .card[style*="cursor:pointer"]:hover, .novena-card:hover, .entry-card:hover, .prieres-cat-card:hover{
      transform: translateY(-2px);
      box-shadow: 0 12px 28px rgba(0,0,0,0.14);
    }
  }
  .saint-card{
    display:flex; gap:14px; align-items:flex-start;
    position:relative;
  }
  .saint-emblem{
    flex-shrink:0;
    width:52px; height:52px;
    border-radius:50%;
    background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 60%, var(--wine-dark) 130%);
    display:flex; align-items:center; justify-content:center;
    font-family:'Fraunces',serif; color:var(--vellum-light); font-weight:600; font-size:20px;
    box-shadow: inset 0 0 0 3px rgba(255,255,255,0.25), var(--glow-gold);
  }
  .saint-name{ font-family:'Fraunces',serif; font-weight:600; font-size:17px; margin:0 0 4px; }
  .saint-bio{ font-size:14px; line-height:1.5; color:var(--ink-soft); margin:0 0 10px; }
  .saint-bio .dropcap{
    float:left; font-family:'Fraunces',serif; font-size:34px; line-height:28px;
    padding: 2px 6px 0 0; color:var(--wine); font-weight:700;
    animation: dropcapRise 0.5s cubic-bezier(.2,.8,.3,1) backwards;
  }
  @keyframes dropcapRise{ from{opacity:0; transform:translateY(8px) scale(0.85);} to{opacity:1; transform:translateY(0) scale(1);} }
  .saint-prayer{
    font-style: italic; font-size: 13.5px; color: var(--wine-dark);
    border-left: 3px solid var(--gold); padding-left: 10px; margin-top:8px;
  }

  /* ===== Accueil — cartes "signature" (bandeau couleur + médaillon, selon le thème) ===== */
  .home-card{ position:relative; overflow:hidden; padding-top:38px !important; }
  .home-card::before, .home-card-ribbon::before{
    content:""; position:absolute; top:0; left:0; right:0; height:7px;
    border-radius:16px 16px 0 0;
  }
  .home-card-ribbon{ position:relative; overflow:hidden; }
  .home-card-badge{
    position:absolute; top:12px; left:14px;
    width:36px; height:36px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-size:17px; line-height:1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2), inset 0 0 0 2px rgba(255,255,255,0.35);
    z-index:1;
  }
  .home-card-eyebrow{
    font-family:'Inter',sans-serif; font-size:10.5px; font-weight:700; letter-spacing:1.4px;
    text-transform:uppercase; margin:0 0 6px 46px !important; opacity:0.78; color:var(--ink-soft);
  }
  .home-card--verset::before{ background:linear-gradient(90deg, var(--gold) 0%, var(--wine) 100%); }
  .home-card--verset .home-card-badge{ background:linear-gradient(160deg, var(--gold-light), var(--gold)); color:var(--wine-dark); }
  .home-card--continue::before{ background:linear-gradient(90deg, #4E7AA7 0%, var(--wine-dark) 100%); }
  .home-card--continue .home-card-badge{ background:linear-gradient(160deg, #7FAFD6, #4E7AA7); color:#fff; }
  .home-card--citation::before{ background:linear-gradient(90deg, var(--wine-dark) 0%, var(--gold) 100%); }
  .home-card--citation .home-card-badge{ background:linear-gradient(160deg, var(--wine), var(--wine-dark)); color:var(--vellum-light); }
  .home-card--saint::before{ background:linear-gradient(90deg, var(--sage,#5C6E58) 0%, var(--gold) 100%); }
  .home-card--streak::before{ background:linear-gradient(90deg, #E8752C 0%, var(--gold) 100%); }
  .home-card--pensee::before{ background:linear-gradient(90deg, var(--gold) 0%, var(--sage,#5C6E58) 100%); }
  .home-card--pensee .home-card-badge{ background:linear-gradient(160deg, var(--gold-light), var(--sage,#8FA13F)); color:var(--wine-dark); }
  /* grand guillemet décoratif, en fond, pour les boîtes de citation / verset */
  .home-card-quotemark{
    position:absolute; top:-18px; right:6px; font-family:'Fraunces',serif; font-size:76px;
    color:var(--gold); opacity:0.14; line-height:1; pointer-events:none; user-select:none;
  }
  /* bandeau de la section "Aujourd'hui" etc. — capsule plus originale */
  .home-sec-title{ gap:0; }
  .home-sec-title .home-sec-emblem{ margin-right:10px; box-shadow: 0 3px 8px rgba(0,0,0,0.15), inset 0 0 0 1px rgba(255,255,255,0.4); }

  /* ===== Text display utilities ===== */
  .text-highlight{ background:linear-gradient(180deg, transparent 58%, var(--gold-pale) 58%); padding:0 1px; font-weight:600; }
  .text-underline-gold{ text-decoration:none; background-image:linear-gradient(var(--gold), var(--gold)); background-size:100% 2px; background-repeat:no-repeat; background-position:0 100%; padding-bottom:2px; }
  .verset-ref, .entry-detail-dates{ text-decoration:none; background-image:linear-gradient(var(--gold), var(--gold)); background-size:100% 1.5px; background-repeat:no-repeat; background-position:0 92%; padding-bottom:2px; display:inline-block; }
  @keyframes textReveal{ from{opacity:0; transform:translateY(5px);} to{opacity:1; transform:translateY(0);} }
  .verset-text, .saint-prayer, .entry-detail-text{ animation: textReveal 0.55s ease backwards; }

  /* candle */
  .candle-wrap{ display:flex; align-items:center; gap:10px; }
  .novena-done-candle{ display:flex; justify-content:center; margin:18px 0 4px; transform:scale(1.6); }
  .candle{ position:relative; width:12px; height:30px; }
  .candle .wax{
    position:absolute; bottom:0; width:12px; height:24px;
    background: linear-gradient(180deg, #FFFBF0, #E8DBB6);
    border-radius:3px 3px 2px 2px;
    box-shadow: inset -2px 0 3px rgba(0,0,0,0.08);
  }
  .candle .wick{
    position:absolute; bottom:23px; left:50%; transform:translateX(-50%);
    width:2px; height:6px; background:#3a2f22; border-radius:1px;
  }
  .candle .flame{
    position:absolute; bottom:27px; left:50%;
    width:11px; height:18px;
    transform: translateX(-50%);
    background: radial-gradient(circle at 50% 75%, #FFF9E0 0%, #FFF3C4 25%, var(--gold) 55%, var(--wine) 100%);
    border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
    filter: drop-shadow(0 0 8px rgba(232,204,126,0.9)) drop-shadow(0 0 16px rgba(184,134,59,0.5));
    animation: flicker 1.8s ease-in-out infinite;
    opacity:0;
    transition: opacity 0.4s ease;
  }
  .candle.lit .flame{ opacity:1; }
  @keyframes flicker{
    0%,100%{ transform:translateX(-50%) scale(1) rotate(-2deg); }
    25%{ transform:translateX(-50%) scale(1.05,0.96) rotate(2deg); }
    50%{ transform:translateX(-50%) scale(0.95,1.05) rotate(-1deg); }
    75%{ transform:translateX(-50%) scale(1.03,0.98) rotate(1deg); }
  }
  .candle.burst .flame{ animation: burst 0.5s ease, flicker 1.8s ease-in-out infinite 0.5s; }

  /* ===== célébration : succès débloqué ===== */
  .celebration-burst{ position:absolute; inset:0; z-index:200; pointer-events:none; overflow:hidden; }
  .celebration-particle{
    position:absolute; top:35%; width:8px; height:8px; border-radius:2px;
    animation: celebrationFall var(--dur,1.4s) ease-out forwards;
  }
  @keyframes celebrationFall{
    0%{ transform:translate(0,0) rotate(0deg); opacity:1; }
    100%{ transform:translate(var(--dx,0), 420px) rotate(540deg); opacity:0; }
  }
  @keyframes burst{ 0%{ transform:translateX(-50%) scale(0.3);} 60%{ transform:translateX(-50%) scale(1.4);} 100%{ transform:translateX(-50%) scale(1);} }

  /* buttons */
  .btn{
    font-family:'Inter',sans-serif; font-weight:600; font-size:13.5px;
    border:none; border-radius:999px; padding:10px 18px;
    cursor:pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    display:inline-flex; align-items:center; gap:7px;
  }
  .btn:active{ transform: scale(0.96); }
  @media (hover:hover){
    .btn:hover{ filter:brightness(1.06); box-shadow:0 6px 18px rgba(0,0,0,0.18); }
    .btn-ghost:hover{ background: var(--gold-pale); }
  }
  .btn-primary{
    background: linear-gradient(155deg, var(--wine) 0%, var(--wine-dark) 100%);
    color: var(--vellum-light);
    box-shadow:0 4px 14px rgba(94,20,32,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  }
  .btn-ghost{ background: transparent; color: var(--wine); border:1.5px solid var(--wine); }
  .btn-gold{
    background: linear-gradient(155deg, var(--gold-pale) 0%, var(--gold) 100%);
    color:var(--wine-dark);
    box-shadow:0 4px 14px rgba(184,134,59,0.35), inset 0 1px 0 rgba(255,255,255,0.4);
  }
  .btn-sm{ padding:7px 13px; font-size:12.5px; }
  .btn:disabled{ opacity:0.55; cursor:default; }
  @media (hover:hover){ .btn:disabled:hover{ filter:none; box-shadow:none; } }

  /* novena list */
  .novena-card{
    display:flex; flex-direction:column; gap:8px; margin-bottom:12px; cursor:pointer;
    border-left: 5px solid var(--accent, var(--wine));
  }
  .novena-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px;}
  .novena-icon{ font-size:24px; flex-shrink:0; }
  .novena-title{ font-family:'Fraunces',serif; font-weight:600; font-size:16px; margin:0; }
  .novena-tag{
    font-family:'Inter',sans-serif; font-size:10.5px; text-transform:uppercase; letter-spacing:0.8px;
    background: rgba(124,31,46,0.08); color:var(--accent, var(--wine)); padding:3px 9px; border-radius:999px;
    font-weight:700; white-space:nowrap;
  }
  .novena-sub{ font-size:13px; color:var(--ink-soft); margin:0; }
  .progress-track{ height:6px; background:var(--hairline); border-radius:4px; overflow:hidden; margin-top:4px;}
  .long-progress-track{ height:10px; background:var(--hairline); border-radius:6px; overflow:hidden; margin-bottom:6px; }
  .long-progress-fill{ height:100%; background:linear-gradient(90deg, var(--gold-light), var(--gold)); border-radius:6px; transition:width 0.4s ease; }
  .progress-fill{ height:100%; background: linear-gradient(90deg, var(--gold), var(--accent, var(--wine))); border-radius:4px; transition: width 0.4s ease;}
  .novena-meta{ font-family:'Inter',sans-serif; font-size:11.5px; color:var(--ink-soft); display:flex; justify-content:space-between; margin-top:2px;}

  /* novena detail */
  .back-link{
    font-family:'Inter',sans-serif; font-size:13px; color:var(--wine); font-weight:600;
    display:flex; align-items:center; gap:5px; cursor:pointer; margin-bottom:10px; background:none; border:none; padding:0;
  }
  .day-dots{ display:flex; gap:7px; margin: 14px 0 18px; flex-wrap:wrap; }
  .day-dot{
    width:26px; height:26px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-family:'Inter',sans-serif; font-size:11px; font-weight:700;
    background: var(--vellum-light); border:1.5px solid var(--hairline); color:var(--ink-soft);
  }
  .day-dot.done{ background: var(--gold); border-color:var(--gold); color:var(--vellum-light); }
  .day-dot.current{ border-color:var(--wine); color:var(--wine); box-shadow:0 0 0 3px rgba(124,31,46,0.12); }
  .day-title{ font-family:'Fraunces',serif; font-size:20px; font-weight:600; margin:0 0 10px; color:var(--wine-dark);}
  .day-medit{ font-size:15px; line-height:1.65; margin-bottom:14px; }

  /* ===== Boîtes de texte façon "le saviez-vous" — une carte indépendante par
     paragraphe, chacune surmontée d'un badge-icône. Remplace l'ancien fond à
     lignes de cahier, qui se désalignait dès que la taille du texte changeait. ===== */
  .text-box-group{ display:flex; flex-direction:column; gap:12px; margin-bottom:16px; }
  .text-box{
    position:relative;
    background: var(--vellum-light);
    border:1px solid var(--hairline); border-radius:16px;
    padding:18px 18px 16px 52px;
    box-shadow: var(--shadow);
    animation: textReveal 0.55s ease backwards;
  }
  .text-box-icon{
    position:absolute; left:-4px; top:-4px; width:40px; height:40px; border-radius:50%;
    display:flex; align-items:center; justify-content:center; font-size:18px;
    background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 75%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.18), inset 0 0 0 2px rgba(255,255,255,0.35);
  }
  .text-box-text{ font-size:15px; line-height:1.68; margin:0; }
  .text-box-group .text-box:first-child .text-box-text::first-letter{
    font-family:'Fraunces',serif; font-size:2.3em; font-weight:700; float:left; line-height:0.78;
    padding:4px 6px 0 0; color:var(--wine);
  }
  .text-box--prayer{ border-left:3px solid var(--wine); }
  .text-box--prayer .text-box-text{ font-style:italic; color:var(--wine-dark); }
  .text-box--prayer .text-box-icon{
    background: radial-gradient(circle at 35% 30%, var(--wine), var(--wine-dark) 75%);
  }
  .text-box-text b, .text-box-text strong,
  .saint-prayer b, .saint-prayer strong{
    background:linear-gradient(180deg, transparent 58%, var(--gold-pale) 58%);
    padding:0 2px; border-radius:2px; font-weight:700; color:var(--wine-dark);
  }
  /* mention abrégée d'une prière classique (ex: "Je vous salue Marie...")
     rendue cliquable pour accéder à son texte intégral sans le répéter */
  .prayer-ref-link{
    color:var(--wine); font-weight:600; text-decoration:underline;
    text-decoration-style:dotted; text-underline-offset:2px; cursor:pointer;
  }

  /* intentions */
  .intention-card{ margin-bottom:12px; }
  .intention-author{ font-family:'Inter',sans-serif; font-weight:700; font-size:13px; color:var(--wine-dark); margin-bottom:3px;}
  .intention-answered{ border-left:4px solid var(--gold); background: linear-gradient(165deg, var(--gold-pale) 0%, var(--vellum-light) 100%); }
  .intention-answered-badge{ font-family:'Inter',sans-serif; font-weight:700; font-size:11px; color:var(--wine-dark); text-transform:uppercase; letter-spacing:0.5px; margin:0 0 6px; }
  .intention-text{ font-size:14.5px; line-height:1.55; margin-bottom:12px; }
  .intention-footer{ display:flex; justify-content:space-between; align-items:center; }
  .prayer-count{ font-family:'Inter',sans-serif; font-size:12px; color:var(--ink-soft); }
  .add-intention-box{ margin-bottom:18px; }
  .share-invite-row{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; width:100%; }
  .reaction-row{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom:10px; }
  .reaction-btn{ font-family:'Inter',sans-serif; font-size:13px; background:var(--vellum-light); border:1px solid var(--hairline); border-radius:999px; padding:3px 9px; cursor:pointer; }
  .reaction-btn.active{ background:var(--gold-pale); border-color:var(--gold); }
  .comment-list{ margin-top:10px; }
  .comment-row{ font-size:13px; line-height:1.5; margin-bottom:4px; }
  .comment-author{ font-family:'Inter',sans-serif; font-weight:700; color:var(--wine-dark); }
  .comment-form{ display:flex; gap:6px; margin-top:8px; }
  .comment-form .comment-input{ flex:1; }
  textarea, input[type=text]{
    width:100%; font-family:'Lora',serif; font-size:14px; padding:10px 12px;
    border:1.5px solid var(--hairline); border-radius:10px; background:var(--vellum-light); color:var(--ink);
    resize:none; margin-bottom:8px;
  }
  textarea:focus, input:focus{ outline:none; border-color:var(--gold); }

  /* guides */
  .guide-card{ margin-bottom:12px; }
  .guide-title{ font-family:'Fraunces',serif; font-weight:600; font-size:16px; margin:0 0 6px; color:var(--wine-dark);}
  .guide-text{ font-size:14px; line-height:1.6; color:var(--ink-soft); margin:0; }
  .guide-text b{ color:var(--ink); }

  /* bottom nav (mobile) / sidebar (desktop) */
  #tabbar{
    display:flex;
    flex-shrink:0;
    background: linear-gradient(180deg, var(--vellum-light), #F3EAD3);
    border-top:1px solid var(--hairline);
    padding: 8px 6px calc(12px + env(safe-area-inset-bottom));
    position:relative;
  }
  #fab-prier{
    position:absolute; right:16px; bottom:calc(82px + env(safe-area-inset-bottom)); z-index:50;
    display:flex; align-items:center; gap:7px;
    background: linear-gradient(155deg, var(--gold-pale) 0%, var(--gold) 100%);
    color:var(--wine-dark); border:none; border-radius:999px;
    padding:12px 18px 12px 14px; font-family:'Inter',sans-serif; font-weight:700; font-size:12.5px;
    box-shadow:0 8px 20px rgba(94,20,32,0.3), inset 0 1px 0 rgba(255,255,255,0.4);
    cursor:pointer; animation: fabPulse 3s ease-in-out infinite;
  }
  #fab-prier span{ font-size:12.5px; }
  @keyframes fabPulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.04); } }
  @media (min-width:760px){ #fab-prier{ bottom:26px; } }
  #lumen-signature-mark{
    position:absolute; left:16px; bottom:calc(82px + env(safe-area-inset-bottom)); z-index:50;
    width:34px; height:34px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background: linear-gradient(160deg, var(--wine) 0%, var(--wine-dark) 100%);
    border: 1.5px solid var(--gold);
    color: var(--gold-light);
    font-family:'Fraunces',serif; font-weight:700; font-size:10px; letter-spacing:0.5px;
    box-shadow:0 4px 12px rgba(94,20,32,0.28), inset 0 1px 0 rgba(255,255,255,0.3);
    cursor:pointer; opacity:0.82;
    padding:0;
  }
  @media (min-width:760px){ #lumen-signature-mark{ bottom:26px; } }
  #tabbar::before{
    content:""; position:absolute; top:0; left:0; right:0; height:1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity:0.5;
  }

  #lumen-player-bar{
    position:fixed; left:12px; right:12px; bottom:76px; z-index:850;
    max-width:460px; margin:0 auto;
    background:linear-gradient(135deg, var(--wine-dark), var(--wine));
    border-radius:16px; box-shadow:0 8px 28px rgba(0,0,0,0.35);
    color:#fff; overflow:hidden; transition:bottom 0.2s ease;
  }
  #lumen-player-bar.hidden{ display:none; }
  .lumen-player-handle{ width:36px; height:4px; border-radius:99px; background:rgba(255,255,255,0.35); margin:6px auto 0; cursor:grab; touch-action:none; }
  .lumen-player-row{ display:flex; align-items:center; gap:8px; padding:8px 12px 10px; }
  .lumen-player-icon{ font-size:16px; flex-shrink:0; }
  .lumen-player-label{ flex:1; font-family:'Inter',sans-serif; font-size:12.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  #lumen-player-bar .icon-btn{ background:rgba(255,255,255,0.15); color:#fff; border:none; width:28px; height:28px; border-radius:50%; font-size:12px; cursor:pointer; flex-shrink:0; }
  #lumen-player-bar .icon-btn:disabled{ opacity:0.35; cursor:default; }
  #lumen-player-speed{ width:auto !important; border-radius:999px !important; padding:0 8px; font-family:'Inter',sans-serif; font-weight:700; font-size:11px !important; }
  .lumen-player-thumb{ width:38px; height:38px; border-radius:9px; flex-shrink:0; background:rgba(0,0,0,0.3); }

  /* ===== lecteur d'ambiance : petite fenêtre flottante sur le côté, pas une
     fenêtre modale plein écran — on peut continuer à naviguer dans l'appli
     pendant que le son ou la vidéo joue, et la déplacer où l'on veut. */
  .ambiance-float{
    position:fixed; right:14px; bottom:96px; z-index:60;
    width:208px; max-width:calc(100vw - 28px);
    touch-action:none;
  }
  .ambiance-float.hidden{ display:none; }
  .ambiance-float .ambiance-player-panel{
    background:var(--vellum-light); border-radius:16px; padding:10px;
    box-shadow:0 14px 36px rgba(0,0,0,0.38); border:1px solid var(--hairline);
  }
  .ambiance-player-top{
    display:flex; align-items:center; justify-content:space-between; margin-bottom:8px;
    cursor:grab; user-select:none;
  }
  .ambiance-player-top:active{ cursor:grabbing; }
  .ambiance-player-top .icon-btn{ background:var(--gold-pale); border:none; width:26px; height:26px; border-radius:50%; font-size:12px; cursor:pointer; flex-shrink:0; }
  .ambiance-player-drag-hint{ font-size:13px; color:var(--ink-soft); letter-spacing:1px; pointer-events:none; }
  .ambiance-player-title{ font-family:'Fraunces',serif; font-weight:600; font-size:12px; color:var(--wine-dark); margin:0; pointer-events:none; }
  .ambiance-player-label{ font-family:'Inter',sans-serif; font-size:11px; font-weight:600; color:var(--ink); text-align:center; margin:0 0 8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .ambiance-player-embed{ width:100%; height:117px; border-radius:10px; background:#000; }
  .ambiance-player-embed iframe{ width:100%; height:100%; border:none; border-radius:10px; }
  .aelf-iframe-embed{ width:100%; height:62vh; min-height:420px; max-height:640px; border-radius:14px; overflow:hidden; border:1px solid var(--gold-pale); background:#fff; }
  .aelf-iframe-embed iframe{ width:100%; height:100%; border:none; }
  .ambiance-player-controls{ display:flex; gap:6px; justify-content:center; flex-wrap:wrap; margin-top:8px; }
  .ambiance-float .btn-sm{ font-size:10.5px; padding:6px 9px; }
  .ambiance-float .studio-note{ font-size:10px; margin:6px 0 0; }
  .ambiance-float .studio-note a{ display:none; } /* lien "ouvrir sur YouTube" superflu dans la mini-fenêtre */
  .sumry-streak{ text-align:center; font-family:'Inter',sans-serif; font-size:13px; font-weight:700; color:var(--wine-dark); margin:12px 0; padding:8px; background:var(--gold-pale); border-radius:12px; }
  .mp-folders-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px; }
  .mp-folder{ text-align:left; cursor:pointer; border:none; border-radius:14px; padding:14px; display:flex; flex-direction:column; gap:6px; }
  .mp-folder-icon{ width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:16px; color:#fff; }
  .mp-folder-label{ font-family:'Fraunces',serif; font-weight:600; font-size:14px; color:var(--ink); }
  .mp-folder-count{ font-family:'Inter',sans-serif; font-size:11px; color:var(--ink-soft); }
  .mp-type-toggle{ display:flex; gap:6px; }
  .mp-type-btn.active{ background:var(--wine); color:#fff; border-color:var(--wine); }
  .mp-card-image{ width:100%; border-radius:10px; margin-bottom:8px; display:block; }
  .sumry-hero{ position:relative; height:130px; border-radius:16px; overflow:hidden; margin-bottom:4px; background:var(--gold-pale); }
  .sumry-hero img{ width:100%; height:100%; object-fit:cover; object-position:center 20%; }
  .sumry-hero-overlay{ position:absolute; inset:0; background:linear-gradient(0deg, rgba(20,10,10,0.7), transparent 55%); }
  .sumry-hero-copy{ position:absolute; left:12px; bottom:10px; color:#fff; }
  .sumry-hero-date{ font-family:'Inter',sans-serif; font-size:10.5px; opacity:0.9; margin:0; }
  .sumry-hero-saint{ font-family:'Fraunces',serif; font-weight:600; font-size:17px; margin:2px 0 0; text-shadow:0 1px 4px rgba(0,0,0,0.4); }
  .sumry-badge{ position:absolute; top:10px; right:10px; background:rgba(255,255,255,0.92); color:var(--wine-dark); font-family:'Inter',sans-serif; font-size:11px; font-weight:700; padding:5px 10px; border-radius:999px; box-shadow:0 3px 10px rgba(0,0,0,0.25); animation:beadIgnite 0.6s cubic-bezier(.34,1.56,.64,1); }
  .sumry-gauge-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:6px; margin-top:8px; }
  .sumry-gauge-card{ text-align:center; }
  .sumry-ring{ width:44px; height:44px; }
  .sumry-gauge-value{ font-family:'Fraunces',serif; font-weight:700; font-size:14px; color:var(--ink); margin:2px 0 0; }
  .sumry-gauge-card-label{ font-family:'Inter',sans-serif; font-size:8.5px; color:var(--ink-soft); margin:0; }
  .sumry-fun-line{ text-align:center; font-family:'Fraunces',serif; font-style:italic; font-size:13px; color:var(--wine-dark); margin:14px 0 0; }
  .mag-section{ position:relative; padding:20px 4px 8px; margin:0 -4px 4px; border-top:1px solid var(--hairline); }
  .mag-section:first-child{ border-top:none; padding-top:4px; }
  .mag-tint-2{ background:linear-gradient(180deg, rgba(184,134,59,0.05), transparent); }
  .mag-num{ display:block; font-family:'Inter',sans-serif; font-size:10px; font-weight:700; letter-spacing:1.5px; color:var(--gold); opacity:0.7; margin-bottom:6px; }
  .mag-section-title{ font-family:'Fraunces',serif; font-size:19px; font-weight:600; color:var(--ink); margin:0 0 10px; }
  .guided-chaplet-overlay{
    position:fixed; inset:0; z-index:9999; background:rgba(15,10,8,0.88);
    display:flex; align-items:center; justify-content:center;
    opacity:0; pointer-events:none; transition:opacity 0.25s ease; padding:16px;
  }
  .guided-chaplet-overlay.open{ opacity:1; pointer-events:auto; }
  .guided-chaplet-panel{
    position:relative; width:100%; max-width:420px; background:var(--vellum-light);
    border-radius:22px; padding:32px 22px 26px; text-align:center; box-shadow:0 20px 60px rgba(0,0,0,0.5);
  }
  .guided-chaplet-close{
    position:absolute; top:12px; right:12px; width:30px; height:30px; border-radius:50%;
    border:none; background:var(--vellum); color:var(--ink-soft); font-size:14px; cursor:pointer;
  }
  .guided-chaplet-title{ font-family:'Inter',sans-serif; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:1.3px; color:var(--gold); margin:0 0 14px; }
  .guided-chaplet-beads{ display:flex; flex-wrap:wrap; gap:9px; justify-content:center; margin-bottom:18px; }
  .guided-chaplet-beads .chaplet-bead{ width:24px; height:24px; }
  .guided-chaplet-beads .bead-big{ width:32px; height:32px; }
  .guided-chaplet-progress{ font-family:'Fraunces',serif; font-size:13px; color:var(--ink-soft); margin:0 0 6px; }
  .guided-chaplet-label{ font-family:'Fraunces',serif; font-weight:600; font-size:20px; color:var(--wine-dark); margin:0 0 12px; }
  .guided-chaplet-text{ font-family:'Lora',serif; font-size:15px; line-height:1.65; color:var(--ink); margin:0 0 22px; }
  .guided-chaplet-done{ padding:10px 0 20px; }
  .guided-chaplet-done-icon{ font-size:42px; margin:0 0 8px; animation:beadIgnite 0.6s cubic-bezier(.34,1.56,.64,1); }
  .guided-chaplet-done-text{ font-family:'Fraunces',serif; font-size:18px; color:var(--wine-dark); margin:0; }
  .reading-card{ max-width:540px; margin:0 auto; padding:4px 2px; }
  @media (max-width:600px){ .reading-card{ padding:18px 16px; border-radius:14px; } }
  /* Liste de rubriques façon maquette : rangées plates (icône rond + titre +
     sous-titre + chevron), séparées par un simple filet, sans encadré de
     carte — utilisée par tous les écrans "hub" (Prier, Bible, Découvrir,
     Église, Dévotions, Jésus, Sagesse, Mon espace). */
  .rubric-list{ display:flex; flex-direction:column; }
  /* Carousel d'actualités (ex. Vatican News) : défilement horizontal,
     une carte image+titre+résumé par brève, avec accroche visuelle au
     scroll-snap pour un rendu fluide au doigt comme à la souris. */
  .news-carousel{ display:flex; gap:12px; overflow-x:auto; padding:4px 2px 10px; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; }
  .news-card{ flex:0 0 auto; width:220px; background:var(--vellum-light); border:1px solid var(--hairline); border-radius:14px; overflow:hidden; text-decoration:none; color:inherit; scroll-snap-align:start; box-shadow:var(--shadow); }
  .news-card-img{ display:block; width:100%; height:120px; object-fit:cover; background:var(--gold-pale); }
  .news-card-img-fallback{ display:flex; align-items:center; justify-content:center; font-size:34px; }
  .news-card-body{ padding:10px 12px 14px; }
  .news-card-title{ font-family:'Inter',sans-serif; font-weight:700; font-size:13.5px; line-height:1.35; margin:0 0 6px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
  .news-card-desc{ font-size:12px; line-height:1.4; color:var(--ink-soft); margin:0; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
  .rubric-row{ display:flex; align-items:center; gap:14px; width:100%; background:none; border:none; border-bottom:1px solid var(--hairline); padding:13px 2px; text-align:left; cursor:pointer; font:inherit; color:inherit; }
  .rubric-row:last-child{ border-bottom:none; }
  .rubric-row-icon{ flex-shrink:0; width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:20px; }
  .rubric-row-icon img{ width:22px; height:22px; filter:brightness(0) invert(1); border-radius:0; }
  .rubric-row-text{ flex:1; min-width:0; }
  .rubric-row-title{ display:block; font-family:'Fraunces',serif; font-weight:600; font-size:15.5px; color:var(--ink); margin:0 0 2px; }
  .rubric-row-desc{ display:block; font-family:'Inter',sans-serif; font-size:12px; color:var(--ink-soft); margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .rubric-row-chevron{ flex-shrink:0; font-size:20px; color:var(--ink-soft); opacity:0.55; }
  @media (hover:hover){ .rubric-row:hover .rubric-row-title{ color:var(--wine); } }
  /* Variante "sommaire de livre" : une case à cocher à gauche plutôt qu'une
     icône ronde, le reste de la ligne ouvrant la lecture. */
  .book-toc-row{ cursor:default; }
  .book-toc-check{ flex-shrink:0; display:flex; align-items:center; justify-content:center; width:24px; cursor:pointer; }
  .book-toc-check input{ width:19px; height:19px; accent-color:var(--wine); cursor:pointer; }
  a.book-toc-link, a.rubric-row-text{ text-decoration:none; }
  /* Même rangée "sommaire", mais avec une vraie miniature photo (ou l'emoji de
     secours) à gauche plutôt qu'un pictogramme — utilisée pour les listes
     d'entrées (Psaumes par thème, Récits fondateurs, Repères) afin que les
     portraits/images ne soient pas réduits en pictogramme monochrome. */
  .rubric-row-photo-icon{ width:46px; height:46px; margin:0; font-size:20px; }
  .hub-hero-banner{ position:relative; height:110px; border-radius:16px; overflow:hidden; margin-bottom:14px; display:flex; align-items:center; justify-content:center; }
  .hub-hero-banner img:not(.hub-hero-banner-img){ width:52px; height:52px; filter:brightness(0) invert(1); opacity:0.9; }
  .hub-hero-banner-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 22%; }
  .hub-hero-scrim{ position:absolute; inset:0; background:linear-gradient(160deg, rgba(20,10,10,0.52) 0%, rgba(20,10,10,0.18) 60%); }
  .hub-hero-emoji{ position:relative; z-index:1; font-size:44px; filter:drop-shadow(0 2px 6px rgba(0,0,0,0.35)); }
  .novena-card-img{ position:relative; height:120px; background:var(--gold-pale); display:flex; align-items:center; justify-content:center; }
  .novena-card-img img{ width:100%; height:100%; object-fit:cover; object-position:center 20%; }
  .novena-icon-fallback{ font-size:38px; }
  .novena-card-tag{ position:absolute; top:8px; left:8px; color:#fff; font-family:'Inter',sans-serif; font-size:10px; font-weight:700; padding:3px 9px; border-radius:999px; text-shadow:0 1px 2px rgba(0,0,0,0.3); }
  /* présentation d'une neuvaine, façon maquette : image pleine, puis titre
     et description en dessous sur fond clair (pas de texte incrusté). */
  .novena-hero-plain{ height:230px; border-radius:16px; overflow:hidden; background:var(--gold-pale); display:flex; align-items:center; justify-content:center; }
  .novena-hero-plain img{ width:100%; height:100%; object-fit:cover; object-position:center 20%; display:block; }
  .novena-hero-tag{ text-align:center; font-family:'Inter',sans-serif; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:1.3px; color:var(--wine); margin:14px 0 2px; }
  .novena-hero-title{ text-align:center; font-family:'Fraunces',serif; font-size:23px; font-weight:600; color:var(--ink); margin:0 0 8px; }
  .novena-hero-desc{ text-align:center; font-family:'Inter',sans-serif; font-size:13.5px; color:var(--ink-soft); margin:0 0 4px; padding:0 8px; }
  /* --- Hozana-style cards --- */
  .hoz-card{ padding:0; overflow:hidden; cursor:pointer; }
  .hoz-card-img{ position:relative; height:132px; background:var(--gold-pale); display:flex; align-items:center; justify-content:center; }
  .hoz-card-img img{ width:100%; height:100%; object-fit:cover; object-position:center 20%; }
  .hoz-card-progress-pill{ position:absolute; top:9px; right:9px; background:rgba(20,10,10,0.72); color:#fff; font-family:'Inter',sans-serif; font-size:10.5px; font-weight:700; padding:4px 10px; border-radius:999px; }
  .hoz-card-progress-pill.hoz-card-progress-done{ background:var(--gold); color:var(--wine-dark); }
  .hoz-card-body{ padding:13px 14px 14px; }
  .hoz-card-title{ font-family:'Fraunces',serif; font-weight:600; font-size:15.5px; margin:0 0 4px; line-height:1.28; }
  .hoz-card-date{ font-family:'Inter',sans-serif; font-size:11px; font-weight:600; color:var(--wine); margin:0 0 6px; }
  .hoz-card-sub{ font-family:'Inter',sans-serif; font-size:11.5px; color:var(--ink-soft); margin:0 0 8px; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .novena-search-row{ margin:10px 0 10px; }
  .novena-search-input{
    width:100%; box-sizing:border-box; font-family:'Inter',sans-serif; font-size:14px;
    padding:11px 15px; border-radius:999px; border:1.5px solid var(--hairline);
    background:var(--vellum-light); color:var(--ink);
  }
  .novena-search-input:focus{ outline:none; border-color:var(--gold); }
  .hoz-card-author{ display:flex; align-items:center; gap:6px; font-family:'Inter',sans-serif; font-size:11.5px; color:var(--ink-soft); margin-bottom:8px; }
  .hoz-card-avatar{ width:20px; height:20px; border-radius:50%; background:var(--gold-pale); display:flex; align-items:center; justify-content:center; font-size:11px; flex:none; }
  .hoz-card-stats{ display:flex; align-items:center; gap:6px; font-family:'Inter',sans-serif; font-size:11px; color:var(--ink-soft); border-top:1px solid var(--hairline); padding-top:7px; }
  /* --- Hozana-style day timeline --- */
  .hoz-timeline{ position:relative; margin-top:6px; padding-left:6px; }
  .hoz-timeline-item{ position:relative; display:flex; gap:12px; padding-bottom:20px; cursor:pointer; }
  .hoz-timeline-item::before{ content:''; position:absolute; left:14px; top:30px; bottom:0; width:2px; background:var(--hairline); }
  .hoz-timeline-item:last-child::before{ display:none; }
  .hoz-timeline-dot{ flex:none; width:29px; height:29px; border-radius:50%; background:var(--gold-pale); color:var(--wine-dark); font-family:'Inter',sans-serif; font-weight:700; font-size:12.5px; display:flex; align-items:center; justify-content:center; z-index:1; border:2px solid #fff; box-shadow:0 0 0 1px var(--hairline); }
  .hoz-timeline-item.done .hoz-timeline-dot{ background:var(--gold); color:#fff; }
  .hoz-timeline-content{ flex:1; padding-bottom:4px; border-bottom:1px solid var(--hairline); }
  .hoz-timeline-item:last-child .hoz-timeline-content{ border-bottom:none; }
  .hoz-timeline-daylabel{ font-family:'Inter',sans-serif; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:0.4px; color:var(--ink-soft); margin:2px 0 2px; }
  .hoz-timeline-title{ font-family:'Fraunces',serif; font-size:15px; font-weight:600; margin:0 0 6px; }
  .hoz-timeline-meta{ display:flex; gap:10px; font-family:'Inter',sans-serif; font-size:11px; color:var(--ink-soft); margin-bottom:8px; }
  .hoz-timeline-read-btn{ margin-bottom:4px; }
  /* --- Hozana-style podcast player --- */
  /* Ligne de bougies de progression + image/citation du jour, comme la maquette */
  .novena-candle-row{ display:flex; justify-content:center; gap:5px; margin:4px 0 10px; flex-wrap:wrap; }
  .novena-candle{ font-size:16px; opacity:0.3; filter:grayscale(1); transition:opacity 0.2s ease, filter 0.2s ease; }
  .novena-candle.lit{ opacity:1; filter:none; }
  .novena-candle.current{ opacity:1; filter:none; transform:scale(1.25); }
  .novena-day-figure{ margin:12px 0 10px; border-radius:16px; overflow:hidden; height:150px; }
  .novena-day-figure img{ width:100%; height:100%; object-fit:cover; display:block; }
  .novena-day-quote{ text-align:center; padding:0 10px; margin-bottom:12px; }
  .novena-day-quote p{ font-family:'Fraunces',serif; font-style:italic; font-size:14.5px; color:var(--ink-soft); line-height:1.45; margin:0; }
  .hoz-podcast-card{ background:var(--gold-pale); border-radius:16px; padding:16px; text-align:center; margin-top:10px; }
  .hoz-podcast-label{ font-family:'Inter',sans-serif; font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:0.4px; color:var(--wine-dark); margin:0 0 10px; }
  .hoz-podcast-btn{ display:inline-flex; align-items:center; gap:8px; background:var(--wine); color:#fff; border:none; border-radius:999px; padding:10px 22px; font-family:'Inter',sans-serif; font-weight:700; font-size:13.5px; cursor:pointer; }
  .hoz-podcast-play-icon{ font-size:14px; }
  .novena-info-chips{ display:flex; gap:7px; flex-wrap:wrap; margin-top:10px; }
  .novena-info-chip{
    font-family:'Inter',sans-serif; font-size:11.5px; font-weight:600; color:var(--ink-soft);
    background:var(--vellum-light); border:1px solid var(--hairline); border-radius:999px; padding:6px 12px;
  }
  .novena-intentions-list{ margin:4px 0 0; padding-left:18px; }
  .novena-intentions-list li{ font-family:'Lora',serif; font-size:14px; color:var(--ink); line-height:1.6; }
  .novena-audio-player{ display:flex; align-items:center; gap:12px; background:var(--vellum-light); border:1px solid var(--hairline); border-radius:14px; padding:10px 14px; margin:10px 0 4px; }
  .novena-audio-play{ flex-shrink:0; width:38px; height:38px; border-radius:50%; border:none; background:var(--wine); color:#fff; font-size:14px; cursor:pointer; }
  .novena-audio-mid{ flex:1; min-width:0; }
  .novena-audio-label{ font-family:'Inter',sans-serif; font-size:11.5px; font-weight:600; color:var(--ink); margin:0 0 4px; }
  .novena-audio-wave{ display:flex; align-items:flex-end; gap:2px; height:22px; }
  .novena-audio-wave span{ flex:1; background:var(--gold-pale); border-radius:2px; }
  .novena-audio-note{ font-family:'Inter',sans-serif; font-size:10.5px; color:var(--ink-soft); font-style:italic; margin:0 0 8px; }

  /* déroulement du jour d'une neuvaine : liste d'étapes (méditation, prière,
     Notre Père, 10 Je vous salue Marie, Gloire au Père, prière finale) */
  .novena-day-steps{ display:flex; flex-direction:column; gap:8px; margin-top:10px; }
  .novena-day-step{
    display:flex; align-items:center; gap:10px; background:var(--vellum-light);
    border:1px solid var(--hairline); border-radius:14px; padding:12px 14px; cursor:pointer;
  }
  .novena-day-step:active{ background:var(--gold-pale); }
  .novena-day-step-thumb-wrap{ position:relative; width:38px; height:38px; flex-shrink:0; border-radius:10px; overflow:hidden; background:var(--gold-pale); }
  .novena-day-step-thumb{ width:100%; height:100%; object-fit:cover; display:block; }
  .novena-day-step-icon{ font-size:18px; flex-shrink:0; width:100%; height:100%; align-items:center; justify-content:center; }
  .novena-day-step-thumb-wrap .novena-day-step-icon{ position:absolute; inset:0; }
  .novena-day-step-label{ flex:1; font-family:'Inter',sans-serif; font-size:14px; font-weight:600; color:var(--ink); }
  .novena-day-step-count{
    font-family:'Inter',sans-serif; font-size:11.5px; font-weight:700; color:var(--wine-dark);
    background:var(--gold-pale); border-radius:999px; padding:3px 9px; flex-shrink:0;
  }
  .novena-day-step-caret{ color:var(--ink-soft); font-size:16px; flex-shrink:0; }
  .novena-day-step-panel{ margin:-2px 0 4px; }
  .novena-day-step-panel.hidden{ display:none; }

  /* écran « Parcours des neuf jours » : barre de progression + liste compacte */
  .novena-progress-row{ display:flex; justify-content:space-between; align-items:center; margin:14px 0 6px; font-family:'Inter',sans-serif; font-size:12.5px; color:var(--ink-soft); font-weight:600; }
  .novena-progress-bar-wrap{ height:7px; background:var(--gold-pale); border-radius:999px; overflow:hidden; }
  .novena-progress-bar-fill{ height:100%; background:var(--wine); border-radius:999px; transition:width .3s ease; }
  .novena-parcours-list{ display:flex; flex-direction:column; background:var(--vellum-light); border-radius:14px; overflow:hidden; border:1px solid var(--hairline); }
  .novena-parcours-row{ display:flex; align-items:center; gap:12px; padding:13px 14px; cursor:pointer; border-bottom:1px solid var(--hairline); }
  .novena-parcours-row:last-child{ border-bottom:none; }
  .novena-parcours-row:active{ background:var(--gold-pale); }
  .novena-parcours-row.current{ background:var(--gold-pale); }
  .novena-parcours-daylabel{ font-family:'Inter',sans-serif; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:0.3px; color:var(--wine); flex-shrink:0; width:52px; }
  .novena-parcours-title{ flex:1; font-family:'Fraunces',serif; font-size:14.5px; font-weight:600; color:var(--ink); }
  .novena-parcours-check{ color:var(--gold); font-size:16px; font-weight:700; flex-shrink:0; }
  .novena-parcours-caret{ color:var(--ink-soft); font-size:16px; flex-shrink:0; }

  /* écran de validation du jour : récapitulatif à coches */
  .novena-done-checklist{ display:flex; flex-direction:column; gap:2px; margin:16px 0; text-align:left; background:var(--vellum-light); border:1px solid var(--hairline); border-radius:14px; overflow:hidden; }
  .novena-done-check-row{ display:flex; align-items:center; gap:10px; padding:11px 14px; border-bottom:1px solid var(--hairline); }
  .novena-done-check-row:last-child{ border-bottom:none; }
  .novena-done-check-mark{ color:#fff; background:var(--gold); width:20px; height:20px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; }
  .novena-done-check-label{ font-family:'Inter',sans-serif; font-size:13.5px; font-weight:600; color:var(--ink); }
  .home-hero{
    position:relative; height:240px; margin:-18px -18px 0; overflow:hidden;
    border-radius:0 0 26px 26px;
  }
  .home-hero img{ width:100%; height:100%; object-fit:cover; display:block; }
  /* lavis doré/vineux pour unifier n'importe quelle photo avec la palette de l'app */
  .home-hero-duotone{
    position:absolute; inset:0;
    background: linear-gradient(155deg, rgba(192,138,62,0.32) 0%, rgba(107,37,69,0.42) 100%);
    mix-blend-mode: color;
  }
  .home-hero-scrim{
    position:absolute; inset:0;
    background:
      radial-gradient(120% 90% at 50% 100%, rgba(15,8,10,0.2) 0%, transparent 55%),
      linear-gradient(0deg, rgba(20,10,10,0.86) 0%, rgba(20,10,10,0.3) 58%, rgba(20,10,10,0.12) 100%);
  }
  .home-hero::after{
    content:""; position:absolute; left:0; right:0; bottom:0; height:4px;
    background:linear-gradient(90deg, var(--gold) 0%, var(--wine) 50%, var(--gold) 100%);
    opacity:0.85;
  }
  .home-hero figcaption{ position:absolute; left:22px; right:22px; bottom:20px; }
  .home-hero-walker{
    position:absolute; right:14px; top:14px; width:42px; height:42px; border-radius:50%;
    display:flex; align-items:center; justify-content:center; font-size:19px;
    background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 70%);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3), inset 0 0 0 2px rgba(255,255,255,0.3);
  }
  @media (min-width:760px){ .home-hero-walker{ width:50px; height:50px; font-size:22px; right:24px; top:20px; } }
  .home-hero-kicker{ margin:0 0 8px; }
  .home-hero-kicker-pill{
    display:inline-flex; align-items:center; gap:6px;
    font-family:'Inter',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.4px;
    color:#fff; background:linear-gradient(120deg, rgba(192,138,62,0.55), rgba(107,37,69,0.55));
    padding:5px 12px; border-radius:20px; backdrop-filter:blur(3px);
    box-shadow:inset 0 0 0 1px rgba(255,255,255,0.25);
  }
  .home-hero-line{
    font-family:'Fraunces',serif; font-weight:500; font-size:25px; line-height:1.25;
    color:#fff; margin:0; text-shadow:0 2px 12px rgba(0,0,0,0.3); max-width:92%;
  }
  .home-divider{ display:flex; align-items:center; gap:10px; margin:22px 0 4px; }
  .home-divider::before, .home-divider::after{ content:''; flex:1; height:1px; background:linear-gradient(90deg, transparent, var(--hairline), transparent); }
  .home-divider span{ color:var(--gold); font-size:12px; opacity:0.7; }
  .home-novena-scroll{ display:flex; gap:10px; overflow-x:auto; padding-bottom:4px; scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch; }
  .home-novena-scroll-item{ flex:0 0 78%; max-width:280px; scroll-snap-align:start; }
  @media (min-width:520px){ .home-novena-scroll-item{ flex-basis:46%; } }

  .home-shortcuts-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:14px 6px; margin-bottom:6px; }
  .home-shortcut{ display:flex; flex-direction:column; align-items:center; gap:7px; background:none; border:none; padding:0; cursor:pointer; font:inherit; color:inherit; -webkit-tap-highlight-color:transparent; transition:transform 0.18s ease; }
  .home-shortcut:active{ transform:scale(0.94); }
  .home-shortcut-img{ width:58px; height:58px; border-radius:18px; overflow:hidden; display:flex; align-items:center; justify-content:center; background:linear-gradient(160deg, #F4E3C4, #E7C98C); box-shadow:0 3px 8px rgba(96,69,50,0.18); font-size:24px; }
  .home-shortcut-img img{ width:100%; height:100%; object-fit:cover; }
  .home-shortcut-label{ font-family:'Inter',sans-serif; font-size:11px; font-weight:600; text-align:center; color:var(--ink); line-height:1.25; }

  .home-progress-scroll{ display:flex; gap:10px; overflow-x:auto; padding-bottom:4px; scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch; }
  .home-progress-item{ flex:0 0 49%; max-width:220px; scroll-snap-align:start; }

  /* Carte compacte « Ma progression » : vignette carrée + titre + barre de progression,
     comme dans la maquette (les deux cartes tiennent côte à côte sur un téléphone). */
  .home-progress-card{ padding:10px; display:flex; flex-direction:column; gap:8px; cursor:pointer; height:100%; box-sizing:border-box; }
  .home-progress-card-img{ width:100%; aspect-ratio:1.5/1; border-radius:12px; overflow:hidden; display:flex; align-items:center; justify-content:center; font-size:26px; }
  .home-progress-card-img img{ width:100%; height:100%; object-fit:cover; }
  .home-progress-card-body{ display:flex; flex-direction:column; gap:3px; flex:1; }
  .home-progress-card-title{ font-family:'Fraunces',serif; font-weight:600; font-size:13.5px; margin:0; line-height:1.25; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .home-progress-card-sub{ font-family:'Inter',sans-serif; font-size:11px; color:var(--ink-soft); margin:0; }
  .home-progress-bar{ height:5px; border-radius:999px; background:var(--hairline); overflow:hidden; margin:2px 0 1px; }
  .home-progress-bar-fill{ height:100%; border-radius:999px; background:linear-gradient(90deg, var(--gold), var(--wine)); }
  .home-progress-card-footnote{ font-family:'Inter',sans-serif; font-size:10.5px; color:var(--ink-soft); margin:0; }
  .home-progress-card .btn{ margin-top:auto; align-self:flex-start; padding:6px 12px; font-size:11.5px; }

  .home-intentions-block{ padding:2px 0 4px; }

  /* Carousel à 2 pages pour l'accueil : chaque page défile verticalement de
     façon indépendante (l'une peut être bien plus longue que l'autre), tandis
     que le glissement horizontal fait passer d'une page à l'autre. */
  #screen.screen-carousel-mode{ overflow:hidden; display:flex; flex-direction:column; padding-left:0; padding-right:0; padding-bottom:0; }
  .home-carousel{ display:flex; flex:1; min-height:0; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
  .home-carousel::-webkit-scrollbar{ display:none; }
  .home-carousel-page{ flex:0 0 100%; width:100%; min-width:100%; height:100%; overflow-y:auto; -webkit-overflow-scrolling:touch; scroll-snap-align:start; box-sizing:border-box; padding:0 19px 34px; }
  .home-carousel-dots{ flex:none; display:flex; justify-content:center; gap:7px; padding:8px 0 4px; }
  .hcd{ width:7px; height:7px; border-radius:50%; background:var(--hairline); cursor:pointer; transition:background 0.2s ease, transform 0.2s ease; padding:0; border:none; }
  .hcd.active{ background:var(--wine); transform:scale(1.3); }

  /* En-tête de section avec lien d'action à droite */
  .home-sec-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
  .home-sec-row .home-sec-title{ margin-bottom:0; }
  .home-sec-link{ background:none; border:none; font-family:'Inter',sans-serif; font-size:12.5px; font-weight:600; color:var(--wine); cursor:pointer; padding:4px 0; white-space:nowrap; }
  .home-sec-link-static{ cursor:default; color:var(--ink-soft); font-weight:600; }
  .home-sec-link-static:empty{ display:none; }

  /* Bandeau d'accueil simple (page 1 du carousel) */
  .home-hero-sub{ font-family:'Inter',sans-serif; font-size:12.5px; color:#fff; opacity:0.88; margin:6px 0 0; text-shadow:0 1px 6px rgba(0,0,0,0.3); }
  /* Dans le carousel, le bandeau-photo n'a plus besoin de mordre sur le padding
     de #screen (déjà retiré en mode carousel) : juste le padding de la page. */
  .home-carousel-page .home-hero{ margin:0 -19px 0; }

  /* En-tête d'accueil simple, sans photo (fidèle à la maquette) */
  .home-plain-header{ padding:14px 2px 6px; }
  .home-plain-date{ font-family:'Inter',sans-serif; font-size:11.5px; font-weight:600; letter-spacing:0.3px; color:var(--wine); text-transform:uppercase; margin:0 0 10px; }
  .home-plain-greet{ font-family:'Fraunces',serif; font-weight:600; font-size:25px; line-height:1.3; color:var(--ink); margin:0; }
  .home-plain-sub{ font-family:'Inter',sans-serif; font-size:13px; color:var(--ink-soft); margin:8px 0 0; }

  /* Carte photo « Évangile du jour », comme un petit hero */
  .evangile-hero{ position:relative; height:178px; border-radius:20px; overflow:hidden; margin:0 0 4px; cursor:default; }
  .evangile-hero img{ width:100%; height:100%; object-fit:cover; display:block; }
  .evangile-hero-scrim{
    position:absolute; inset:0;
    background: linear-gradient(0deg, rgba(20,10,10,0.88) 0%, rgba(20,10,10,0.38) 58%, rgba(20,10,10,0.08) 100%);
  }
  .evangile-hero-body{ position:absolute; left:16px; right:16px; bottom:14px; margin:0; }
  .evangile-ref{ font-family:'Inter',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.3px; color:var(--gold-light,#F4E3C4); margin:0 0 6px; min-height:13px; }
  .evangile-quote{ font-family:'Fraunces',serif; font-style:italic; font-weight:500; font-size:14px; line-height:1.35; color:#fff; margin:0 0 10px; text-shadow:0 1px 6px rgba(0,0,0,0.35); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

  /* Carte « Confier une intention » */
  .home-confier-card{ display:flex; align-items:center; gap:12px; cursor:pointer; }
  .home-confier-icon{ width:38px; height:38px; border-radius:50%; background:var(--gold-pale,#FBEAC4); color:var(--wine); display:flex; align-items:center; justify-content:center; font-size:17px; flex:none; }
  .home-confier-text{ flex:1; display:flex; flex-direction:column; gap:2px; }
  .home-confier-title{ font-family:'Fraunces',serif; font-weight:600; font-size:14.5px; }
  .home-confier-sub{ font-family:'Inter',sans-serif; font-size:12px; color:var(--ink-soft); }
  .home-confier-chevron{ font-size:20px; color:var(--ink-soft); flex:none; }

  /* Carte Lumen Guide */
  .home-guide-card{ display:flex; align-items:center; gap:12px; cursor:pointer; }
  .home-guide-icon{ width:40px; height:40px; border-radius:50%; background:linear-gradient(160deg, #D9A35C, #B8863B); color:#fff; display:flex; align-items:center; justify-content:center; font-size:18px; flex:none; }
  .home-guide-body{ flex:1; display:flex; flex-direction:column; gap:3px; }
  .home-guide-title{ font-family:'Fraunces',serif; font-weight:600; font-size:14.5px; display:flex; align-items:center; gap:7px; }
  .home-guide-badge{ background:var(--wine); color:#fff; font-family:'Inter',sans-serif; font-size:9px; font-weight:700; padding:2px 7px; border-radius:999px; letter-spacing:0.03em; }
  .home-guide-sub{ font-family:'Inter',sans-serif; font-size:12px; color:var(--ink-soft); }
  .home-guide-chevron{ font-size:20px; color:var(--ink-soft); flex:none; }

  /* Bandeau de clôture avec verset */
  .home-verse-banner{ text-align:center; background:linear-gradient(160deg, var(--wine-dark,#3F1530), var(--wine,#6B2545)); color:#fff; padding:22px 18px; }
  .home-verse-banner-text{ font-family:'Fraunces',serif; font-style:italic; font-size:15px; line-height:1.5; margin:0 0 6px; }
  .home-verse-banner-ref{ font-family:'Inter',sans-serif; font-size:11.5px; opacity:0.85; margin:0; }

  @keyframes beadBump{ 0%{transform:scale(1);} 35%{transform:scale(1.5); color:var(--wine);} 100%{transform:scale(1);} }
  .bead-bump{ display:inline-block; animation:beadBump 0.4s cubic-bezier(.34,1.56,.64,1); }
  @keyframes beadFlyUp{
    0%{ opacity:0; transform:translate(-50%,0) scale(0.8); }
    25%{ opacity:1; transform:translate(-50%,-6px) scale(1.1); }
    100%{ opacity:0; transform:translate(-50%,-34px) scale(1); }
  }
  .bead-fly-plus{
    position:absolute; left:50%; top:-4px; font-family:'Inter',sans-serif; font-weight:800; font-size:13px;
    color:var(--gold); pointer-events:none; animation:beadFlyUp 0.9s ease-out forwards;
  }
  .home-2col{
    display:grid; grid-template-columns:1fr; gap:10px; margin-top:14px;
  }
  .home-2col > .home-grid-cell{ margin:0; box-sizing:border-box; }
  @media (min-width:520px){
    .home-2col{ grid-template-columns:1fr 1fr; grid-auto-flow:row; align-items:stretch; }
    .home-2col > .home-grid-cell{ display:flex; flex-direction:column; width:100%; }
    .home-2col > .card.home-grid-cell{ justify-content:center; }
  }
  .home-bento{
    display:grid; grid-template-columns:1fr 1fr; grid-template-rows:auto auto; gap:10px;
    grid-template-areas: "verset verset" "streak quote";
  }
  .home-bento-verset{ grid-area:verset; background:linear-gradient(155deg, var(--vellum-light) 0%, var(--gold-pale) 150%); border:1px solid var(--hairline); border-radius:16px; padding:16px; box-shadow:var(--shadow); }
  .home-bento-streak{ grid-area:streak; background:var(--vellum-light); border:1px solid var(--hairline); border-radius:16px; padding:14px 10px; text-align:center; display:flex; flex-direction:column; align-items:center; justify-content:center; }
  .home-bento-quote{ grid-area:quote; background:var(--vellum-light); border:1px solid var(--hairline); border-radius:16px; padding:14px; text-align:center; display:flex; flex-direction:column; align-items:center; justify-content:center; }
  @media (min-width:520px){
    .home-bento{ grid-template-columns:1.4fr 1fr; grid-template-rows:auto auto; grid-template-areas:"verset streak" "verset quote"; }
  }
  .home-quote-card{ display:flex; align-items:center; gap:14px; text-align:left; }
  .home-quote-img{ flex-shrink:0; width:52px; height:52px; border-radius:50%; overflow:hidden; box-shadow:var(--shadow-warm); }
  .home-quote-img img{ width:100%; height:100%; object-fit:cover; }
  .home-intentions-banner{ height:64px; border-radius:14px; overflow:hidden; margin:8px 0 10px; opacity:0.9; }
  .home-intentions-banner img{ width:100%; height:100%; object-fit:cover; }
  .home-sec-title{ display:flex; align-items:center; gap:10px; }
  .home-sec-emblem{
    width:30px; height:30px; border-radius:50%; flex-shrink:0;
    display:flex; align-items:center; justify-content:center; font-size:14px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
  }
  .home-today-strip{
    display:flex; align-items:center; gap:7px; padding:12px 2px 0; flex-wrap:wrap;
  }
  .home-today-chip{
    display:inline-flex; align-items:center; gap:5px;
    font-family:'Inter',sans-serif; font-size:11px; font-weight:600; color:var(--ink-soft);
    background:var(--vellum-light); border:1px solid var(--hairline); border-radius:20px;
    padding:5px 11px; box-shadow:0 2px 6px rgba(60,30,50,0.06);
  }
  .home-today-chip--streak{ color:#B5531E; border-color:rgba(232,117,44,0.35); }
  .home-today-dot{ width:8px; height:8px; border-radius:50%; flex-shrink:0; box-shadow:0 0 0 2px rgba(255,255,255,0.6); animation: todayDotPulse 2.6s ease-in-out infinite; }
  @keyframes todayDotPulse{ 0%,100%{ transform:scale(1); opacity:1; } 50%{ transform:scale(1.25); opacity:0.75; } }
  .home-pair{ display:grid; grid-template-columns:1.3fr 1fr; gap:10px; margin-top:16px; align-items:stretch; }
  .home-moment-panel{
    text-align:left; cursor:pointer; border:none; border-radius:16px; padding:16px;
    background: linear-gradient(155deg, var(--wine) 0%, var(--wine-dark) 100%); color:#fff;
    display:flex; flex-direction:column; gap:3px;
  }
  .home-moment-icon-badge{
    width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center;
    background:rgba(255,255,255,0.16); box-shadow:inset 0 0 0 1px rgba(255,255,255,0.3); margin-bottom:4px;
  }
  .home-moment-icon{ font-size:19px; }
  .home-moment-label{ font-family:'Fraunces',serif; font-weight:600; font-size:15px; margin-top:4px; }
  .home-moment-text{ font-family:'Inter',sans-serif; font-size:11.5px; opacity:0.82; line-height:1.35; }
  .home-saint-panel{
    border-radius:16px; padding:14px 12px; background:var(--vellum-light); border:1px solid var(--hairline);
    display:flex; flex-direction:column; align-items:center; text-align:center; justify-content:center; gap:6px;
  }
  .home-saint-kicker{ font-family:'Inter',sans-serif; font-size:9.5px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; color:var(--gold); margin:0; }
  .home-saint-name{ font-family:'Fraunces',serif; font-weight:600; font-size:13px; color:var(--ink); margin:0; line-height:1.25; }
  @media (min-width:760px){
    .home-hero{ margin:-28px -48px 0; height:300px; }
  }
  /* ===== Accueil — "Explorer" : panneaux de catégorie + avatars de section ===== */
  .home-tile-category{
    position:relative; border-radius:18px; padding:14px 12px 16px; margin:12px 0;
    border:1px solid var(--hairline); background-size:cover; background-position:center;
    box-shadow:0 4px 14px rgba(60,30,50,0.06);
    overflow:hidden;
  }
  .home-tile-cat-label{
    display:inline-flex; align-items:center; gap:7px;
    font-family:'Inter',sans-serif; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:0.8px;
    color:var(--ink); margin:0 0 12px; padding:5px 12px 5px 6px; border-radius:20px;
    background:rgba(255,255,255,0.55); backdrop-filter:blur(2px);
    box-shadow:inset 0 0 0 1px rgba(255,255,255,0.5);
  }
  .home-tile-cat-emoji{
    width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center;
    font-size:12px; flex-shrink:0; box-shadow:0 2px 5px rgba(0,0,0,0.18);
  }
  .home-tile-category--ecritures .home-tile-cat-emoji{ background:linear-gradient(160deg, var(--gold-light), var(--gold)); }
  .home-tile-category--eglise .home-tile-cat-emoji{ background:linear-gradient(160deg, #CBB8E8, #8E6FB3); }
  .home-tile-category--sagesse .home-tile-cat-emoji{ background:linear-gradient(160deg, #B9D1A6, var(--sage,#5C6E58)); }
  .home-tile-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(76px,1fr)); gap:16px 8px; margin-bottom:2px; }
  .home-tile-big{ display:flex; flex-direction:column; align-items:center; gap:7px; cursor:pointer; transition:transform 0.18s ease; }
  @media (hover:hover){ .home-tile-big:hover{ transform:translateY(-3px); } .home-tile-big:hover .home-tile-big-icon{ box-shadow:0 8px 18px rgba(0,0,0,0.22), inset 0 0 0 2px rgba(255,255,255,0.5); } }
  .home-tile-big-icon{
    width:58px; height:58px; border-radius:50%;
    display:flex; align-items:center; justify-content:center; font-size:25px;
    box-shadow:0 5px 12px rgba(60,30,50,0.16), inset 0 0 0 2px rgba(255,255,255,0.4);
    overflow:hidden; transition:box-shadow 0.18s ease;
  }
  .home-tile-big-icon img{ width:100%; height:100%; object-fit:cover; }
  .home-tile-category--ecritures .home-tile-big-icon{ background:radial-gradient(circle at 32% 28%, var(--gold-light), var(--gold) 75%); }
  .home-tile-category--eglise .home-tile-big-icon{ background:radial-gradient(circle at 32% 28%, #DCCBF0, #8E6FB3 80%); }
  .home-tile-category--sagesse .home-tile-big-icon{ background:radial-gradient(circle at 32% 28%, #D3E6C4, var(--sage,#5C6E58) 85%); }
  .home-tile-big-label{ font-family:'Inter',sans-serif; font-size:11px; font-weight:600; text-align:center; color:var(--ink); line-height:1.25; }
  .sumry-section-label{ font-family:'Inter',sans-serif; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:1.3px; color:var(--ink-soft); margin:14px 0 8px; }
  .sumry-gauge{ margin-bottom:10px; }
  .sumry-gauge-top{ display:flex; justify-content:space-between; font-family:'Inter',sans-serif; font-size:12px; color:var(--ink); margin-bottom:4px; }
  .sumry-gauge-track{ height:7px; border-radius:99px; background:var(--hairline); overflow:hidden; }
  .sumry-gauge-fill{ height:100%; border-radius:99px; background:linear-gradient(90deg, var(--gold), var(--wine)); }

  .tab-btn{
    flex:1; background:none; border:none; cursor:pointer;
    display:flex; flex-direction:column; align-items:center; gap:3px;
    padding:6px 2px; border-radius:12px;
    font-family:'Inter',sans-serif; font-size:10.5px; font-weight:600;
    color: var(--ink-soft);
    transition: color 0.2s ease, background 0.2s ease;
  }
  .tab-btn svg{ width:21px; height:21px; flex-shrink:0; }
  .tab-btn-img{ width:26px; height:26px; border-radius:8px; overflow:hidden; flex-shrink:0; display:block; }
  .tab-btn-img img{ width:100%; height:100%; object-fit:cover; display:block; }
  .tab-btn.active{ color: var(--wine-dark); background: linear-gradient(180deg, rgba(184,134,59,0.14), rgba(184,134,59,0.04)); }
  .tab-btn.active svg{ filter: drop-shadow(0 0 5px rgba(184,134,59,0.5)); }
  .tab-btn.active .tab-btn-img{ box-shadow:0 0 0 2px var(--gold); }

  .tabbar-brand{ display:none; }
  @media (min-width:760px){
    #tabbar{
      flex-direction:column;
      width:230px;
      height:100%;
      border-top:none;
      border-right:1px solid var(--hairline);
      padding: 28px 14px;
      gap:6px;
      background: linear-gradient(180deg, var(--vellum), #EDE4CC);
    }
    #tabbar::before{ display:none; }
    .tab-btn{
      flex:none;
      flex-direction:row;
      justify-content:flex-start;
      width:100%;
      padding:10px 12px;
      gap:12px;
      font-size:14px;
      border-radius:12px;
      transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    }
    .tab-btn svg{ width:19px; height:19px; transition: filter 0.2s ease; }
    @media (hover:hover){
      .tab-btn:not(.active):hover{ background: rgba(184,134,59,0.08); color:var(--wine-dark); transform: translateX(2px); }
    }
    .tab-btn.active{
      background: linear-gradient(90deg, var(--gold-pale) 0%, transparent 100%);
      box-shadow: inset 3px 0 0 var(--gold);
      font-weight:700;
    }
    .tab-btn.active svg{
      filter: drop-shadow(0 0 6px rgba(184,134,59,0.6));
      background: var(--gold-pale);
      border-radius:8px;
      padding:2px;
      box-sizing:content-box;
    }
    .tabbar-brand{
      display:flex; align-items:center; gap:9px;
      padding:4px 12px 20px; margin-bottom:8px;
      border-bottom:1px solid var(--hairline);
    }
    .tabbar-brand-flame{ font-size:20px; }
    .tabbar-brand-name{
      font-family:'Fraunces',serif; font-weight:600; font-size:18px;
      color:var(--wine-dark); letter-spacing:0.4px;
    }
  }

  .empty-state{ text-align:center; padding:30px 10px; color:var(--ink-soft); font-size:14px; }
  .prieres-cat-card{ text-align:left; transition:transform 0.15s ease; }
  .prieres-cat-card:active{ transform:scale(0.98); }
  .souvenirs-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
  .souvenir-card{ position:relative; border-radius:12px; overflow:hidden; background:var(--vellum-light); border:1px solid var(--hairline); }
  .souvenir-card img{ width:100%; height:140px; object-fit:cover; display:block; }
  .souvenir-caption{ font-family:'Inter',sans-serif; font-size:11.5px; color:var(--ink-soft); padding:6px 8px; margin:0; }
  .souvenir-del-btn{ position:absolute; top:6px; right:6px; background:rgba(0,0,0,0.55); color:#fff; border:none; border-radius:50%; width:26px; height:26px; font-size:12px; cursor:pointer; }
  .loading{ text-align:center; padding:60px 10px; color:var(--ink-soft); font-family:'Inter',sans-serif; font-size:13px;}
  .loading-emblem{ width:36px; height:36px; margin:0 auto 16px; opacity:0.9; animation: loadingGlow 1.6s ease-in-out infinite; }
  @keyframes loadingGlow{ 0%,100%{ opacity:0.6; transform:scale(0.95);} 50%{ opacity:1; transform:scale(1.05);} }


  /* ===== chips / sub-nav ===== */
  .chip-row{ display:flex; gap:8px; overflow-x:auto; padding-bottom:8px; margin-bottom:6px; -ms-overflow-style:none; scrollbar-width:none; }
  .chip-row::-webkit-scrollbar{ display:none; }
  .chip{
    flex-shrink:0; font-family:'Inter',sans-serif; font-size:12.5px; font-weight:600;
    padding:8px 15px; border-radius:999px; background:var(--vellum-light);
    border:1.5px solid var(--hairline); color:var(--ink-soft); cursor:pointer; white-space:nowrap;
  }
  .chip.active{ background:var(--wine); border-color:var(--wine); color:var(--vellum-light); }
  .offices-list{ display:flex; flex-direction:column; gap:8px; }
  .offices-row{
    display:flex; align-items:center; gap:12px; width:100%; text-align:left;
    padding:13px 14px; border-radius:14px; border:1px solid var(--hairline);
    background: var(--vellum-light); cursor:pointer; transition: box-shadow 0.2s ease, transform 0.2s ease;
  }
  .offices-row:active{ transform: scale(0.98); }
  .offices-icon{ font-size:20px; width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--gold-pale); flex-shrink:0; }
  .offices-label{ flex:1; font-family:'Fraunces',serif; font-weight:600; font-size:15px; color:var(--ink); }
  .offices-time{ font-family:'Inter',sans-serif; font-size:11.5px; color:var(--ink-soft); }
  .offices-row.current{
    border-color:var(--gold); background: linear-gradient(90deg, var(--gold-pale) 0%, var(--vellum-light) 100%);
    box-shadow: var(--glow-gold);
  }
  .offices-row.current .offices-icon{ background:var(--gold); animation: haloGlowPulse 3s ease-in-out infinite; }
  .date-strip{ display:flex; align-items:center; gap:6px; margin:10px 0 4px; overflow-x:auto; -ms-overflow-style:none; scrollbar-width:none; }
  .date-strip::-webkit-scrollbar{ display:none; }
  .date-strip-nav{
    flex-shrink:0; width:30px; height:30px; border-radius:50%; border:1px solid var(--hairline);
    background:var(--vellum-light); color:var(--ink); font-size:16px; cursor:pointer;
  }
  .date-strip-days{ display:flex; gap:6px; flex:1; justify-content:center; }
  .date-strip-circle{
    flex-shrink:0; width:48px; height:48px; border-radius:50%; border:1.5px solid var(--hairline);
    background:var(--vellum-light); display:flex; flex-direction:column; align-items:center; justify-content:center;
    cursor:pointer; transition: all 0.15s ease;
  }
  .date-strip-circle .dsc-num{ font-family:'Fraunces',serif; font-weight:700; font-size:14px; color:var(--ink); line-height:1.1; }
  .date-strip-circle .dsc-mon{ font-family:'Inter',sans-serif; font-size:8.5px; color:var(--ink-soft); text-transform:uppercase; letter-spacing:0.3px; }
  .date-strip-circle.is-today{ border-color:var(--gold); border-width:2px; }
  .date-strip-circle.active{ background: linear-gradient(155deg, var(--wine) 0%, var(--wine-dark) 100%); border-color:var(--wine); box-shadow: var(--shadow-warm); }
  .date-strip-circle.active .dsc-num, .date-strip-circle.active .dsc-mon{ color:var(--vellum-light); }
  .date-strip-cal-btn{
    flex-shrink:0; width:30px; height:30px; border-radius:8px; border:1px solid var(--hairline);
    background:var(--vellum-light); font-size:14px; cursor:pointer;
  }
  .date-strip-caption{ text-align:center; font-family:'Inter',sans-serif; font-size:12px; color:var(--ink-soft); margin:0 0 12px; }
  .subnav-row{ display:flex; gap:6px; margin: -4px 0 16px; flex-wrap:wrap; }
  .subnav-grouped{ margin: -4px 0 16px; display:flex; flex-direction:column; gap:8px; }
  .subnav-group{
    border:1px solid var(--hairline); border-radius:14px; background:var(--vellum-light);
    overflow:hidden; box-shadow: 0 2px 8px rgba(60,30,50,0.05);
  }
  .subnav-group-label{
    display:block; font-family:'Inter',sans-serif; font-size:10px; font-weight:700;
    text-transform:uppercase; letter-spacing:0.6px; color:var(--ink-soft); opacity:0.75;
    margin-bottom:5px;
  }
  /* Variante "carte catégorie" : un <span class="subnav-group-label"> suivi directement
     d'un <div class="chip-row"> à l'intérieur de .subnav-group (pas de subnav-group-head/
     subnav-list ici), utilisée par renderGenericSection() pour des pages comme
     "Bible & Histoire". On lui donne une vraie respiration interne et on affiche toutes
     les sous-catégories d'un coup (plutôt qu'en liste qui défile horizontalement, où
     certaines options restaient cachées hors champ). */
  .subnav-group > .subnav-group-label{
    display:flex; align-items:center; gap:7px; margin:0; padding:13px 14px 9px;
    font-size:11px; font-weight:800; letter-spacing:0.7px; color:var(--wine); opacity:1;
    border-bottom:1px solid var(--hairline);
  }
  .subnav-group > .chip-row{
    display:flex; flex-wrap:wrap; overflow-x:visible; gap:7px;
    padding:11px 12px 13px; margin:0 !important;
  }
  .subnav-group > .chip-row .chip{
    flex-shrink:1; white-space:normal; text-align:center;
  }
  .subnav-grouped{ gap:10px; }
  .subnav-group-head{
    width:100%; display:flex; align-items:center; gap:10px; padding:11px 14px;
    background:transparent; border:none; cursor:pointer; text-align:left;
  }
  .subnav-group.expanded .subnav-group-head{ background: var(--gold-pale); }
  .subnav-group-icon{
    width:28px; height:28px; border-radius:50%; flex:none; display:flex; align-items:center;
    justify-content:center; font-size:14px;
    background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 75%);
  }
  .subnav-group-title{
    flex:1; font-family:'Inter',sans-serif; font-size:13px; font-weight:700; color:var(--ink);
  }
  .subnav-group-caret{ font-size:11px; color:var(--ink-soft); opacity:0.7; flex:none; }
  .subnav-list{ display:flex; flex-direction:column; padding:0 6px 6px; }
  .subnav-item{
    display:flex; align-items:center; justify-content:space-between; gap:8px;
    width:100%; padding:10px 10px; border-radius:10px; background:transparent; border:none;
    cursor:pointer; text-align:left; font-family:'Inter',sans-serif; font-size:13px; font-weight:600;
    color:var(--ink-soft);
  }
  .subnav-item:hover{ background: rgba(0,0,0,0.03); }
  .subnav-item.active{ background:var(--wine); color:var(--vellum-light); }
  .subnav-item .subnav-chevron{ opacity:0.6; font-size:14px; }
  .subtab{
    font-family:'Inter',sans-serif; font-size:12.5px; font-weight:700;
    padding:7px 13px; border-radius:10px; background:transparent; border:none; cursor:pointer;
    color:var(--ink-soft);
  }
  .subtab.active{ background:var(--wine); color:var(--vellum-light); }
  .beat-subtab{
    font-family:'Inter',sans-serif; font-size:12.5px; font-weight:700;
    padding:7px 13px; border-radius:10px; background:transparent; border:none; cursor:pointer;
    color:var(--ink-soft); flex:1;
  }
  .beat-subtab.active{ background:var(--wine); color:var(--vellum-light); }
  .section-desc{ font-size:13px; color:var(--ink-soft); margin: -8px 0 14px; line-height:1.5; }
  .breadcrumb{ font-family:'Inter',sans-serif; font-size:11.5px; color:var(--ink-soft); margin-bottom:2px; }

  /* ===== generic entry cards ===== */
  .entry-card{ display:flex; gap:12px; cursor:pointer; align-items:flex-start; }
  .entry-avatar{
    flex-shrink:0; width:40px; height:40px; border-radius:50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    display:flex; align-items:center; justify-content:center; font-size:17px;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3);
    overflow:hidden;
  }
  .entry-avatar-photo img{ width:100%; height:100%; object-fit:cover; object-position:center 20%; }
  .entry-body{ flex:1; min-width:0; }
  .entry-name{ font-family:'Fraunces',serif; font-weight:600; font-size:15px; margin:0 0 3px; color:var(--ink); }
  .entry-dates{ font-family:'Inter',sans-serif; font-size:10.5px; color:var(--gold); font-weight:700; text-transform:uppercase; letter-spacing:0.4px; margin:0 0 4px; }
  .entry-summary{ font-size:13.5px; color:var(--ink-soft); line-height:1.45; margin:0; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

  .entry-detail-head{ display:flex; gap:14px; align-items:flex-start; margin-bottom:14px; }
  .entry-avatar-lg{
    flex-shrink:0; width:56px; height:56px; border-radius:50%;
    background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 60%, var(--wine-dark) 130%);
    display:flex; align-items:center; justify-content:center; font-size:24px;
    box-shadow: inset 0 0 0 3px rgba(255,255,255,0.25);
    overflow:hidden;
  }
  .entry-detail-name{ font-family:'Fraunces',serif; font-weight:600; font-size:20px; margin:0 0 4px; color:var(--wine-dark); }
  .entry-detail-dates{ font-family:'Inter',sans-serif; font-size:11.5px; color:var(--gold); font-weight:700; text-transform:uppercase; letter-spacing:0.5px; }
  .entry-detail-text{ font-size:15px; line-height:1.68; margin: 4px 0 16px; white-space:pre-wrap; max-width:65ch; }
  .saint-bio, .saint-prayer, .verset-text, .entry-summary, .day-title{ max-width:65ch; }
  .reading-card .entry-detail-text, .reading-card .saint-bio, .reading-card .saint-prayer,
  .reading-card .verset-text, .reading-card .day-title{ margin-left:auto; margin-right:auto; }
  .entry-link-row{ display:flex; justify-content:flex-end; margin-bottom:14px; }
  .entry-nav-row{ display:flex; justify-content:space-between; gap:10px; }

  /* ===== saints: catalogue grid card ===== */
  .saint-grid-card{ cursor:pointer; text-align:left; }
  .saint-grid-avatar{ width:100%; height:92px; border-radius:14px; font-size:30px; }
  .saint-grid-tag{ font-family:'Inter',sans-serif; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:0.4px; color:var(--wine); margin:2px 0 0; }

  /* ===== saints: portrait panel (full-bleed hero with overlay) ===== */
  .saint-portrait{ max-width:520px; margin:0 auto; padding:0 18px; }
  .saint-portrait-hero{
    position:relative; margin:-18px -18px 0; min-height:300px;
    display:flex; flex-direction:column; justify-content:space-between;
    background: radial-gradient(circle at 50% 30%, var(--gold-light), var(--gold) 55%, var(--wine-dark) 140%);
    overflow:hidden;
  }
  .saint-portrait-hero img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 18%; cursor:zoom-in; }
  .saint-portrait-hero-scrim{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(20,8,10,0.45) 0%, rgba(20,8,10,0.05) 30%, rgba(20,8,10,0.05) 55%, rgba(20,8,10,0.85) 100%); }
  .saint-portrait-hero.no-img .saint-portrait-hero-scrim{ background:linear-gradient(180deg, rgba(20,8,10,0.15) 0%, rgba(20,8,10,0.55) 100%); }
  .saint-portrait-hero-top{ position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; padding:18px; }
  .saint-hero-back{ margin:0; color:#fff; text-shadow:0 1px 4px rgba(0,0,0,0.5); }
  .saint-portrait-hero .fav-star{ background:rgba(255,255,255,0.2); border-radius:50%; width:34px; height:34px; display:flex; align-items:center; justify-content:center; color:#fff; }
  .saint-portrait-hero-bottom{ position:relative; z-index:2; padding:16px 20px 20px; text-align:center; }
  .saint-portrait-hero .halo-wrap{ position:relative; z-index:2; margin:40px auto 0 !important; }
  .saint-portrait-name{ font-family:'Fraunces',serif; font-weight:700; font-size:25px; margin:4px 0 2px; color:#fff; text-shadow:0 1px 6px rgba(0,0,0,0.5); }
  .saint-portrait-sub{ font-size:13.5px; color:rgba(255,255,255,0.88); margin:0; text-shadow:0 1px 4px rgba(0,0,0,0.5); }
  .saint-img-credit{ font-family:'Inter',sans-serif; font-size:10.5px; color:var(--ink-soft); text-align:center; padding:8px 0 0; }
  .saint-info-row{ display:flex; justify-content:center; gap:14px; font-family:'Inter',sans-serif; font-size:12px; color:var(--ink-soft); margin:6px 0 12px; flex-wrap:wrap; text-align:center; }
  .saint-quote-card{ text-align:center; background:var(--vellum-light); }
  .saint-shortcut-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:4px 0 18px; }
  .saint-shortcut-btn{ display:flex; flex-direction:column; align-items:center; gap:4px; padding:12px 4px; border-radius:14px; border:1px solid var(--hairline); background:var(--vellum-light); font-size:20px; cursor:pointer; color:var(--ink); }
  .saint-shortcut-btn span{ font-family:'Inter',sans-serif; font-size:11px; font-weight:600; }
  .saint-shortcut-btn:disabled{ opacity:0.4; cursor:not-allowed; }

  /* ===== saints: tabbed profile (vie / enseignements / prière / plus) ===== */
  .saint-midfigure{ margin:14px 0; border-radius:14px; overflow:hidden; }
  .saint-midfigure img{ width:100%; display:block; max-height:220px; object-fit:cover; }
  .saint-teach-card{ display:flex; gap:12px; align-items:flex-start; }
  .saint-teach-icon{ font-size:22px; flex-shrink:0; }
  .saint-teach-title{ font-family:'Fraunces',serif; font-weight:600; font-size:14.5px; color:var(--wine-dark); margin:0 0 3px; }
  .saint-icono-row{ display:flex; gap:8px; margin-top:8px; align-items:flex-start; }
  .saint-icono-fig{ flex:1; margin:0; min-width:0; }
  .saint-icono-thumb{ width:100%; height:84px; border-radius:10px; object-fit:cover; cursor:zoom-in; display:block; }
  .saint-icono-thumb.generic{ object-fit:contain; background:var(--vellum-light); padding:6px; box-sizing:border-box; }
  .saint-icono-fig figcaption{ font-family:'Inter',sans-serif; font-size:9.5px; color:var(--ink-soft); text-align:center; margin-top:4px; line-height:1.3; }

  /* ===== saints: image zoom overlay ===== */
  .saint-zoom-overlay{ position:fixed; inset:0; background:rgba(10,6,8,0.9); display:flex; align-items:center; justify-content:center; z-index:9999; opacity:0; pointer-events:none; transition:opacity 0.2s; }
  .saint-zoom-overlay.open{ opacity:1; pointer-events:auto; }
  .saint-zoom-overlay img{ max-width:92vw; max-height:88vh; border-radius:10px; object-fit:contain; }
  .saint-zoom-close{ position:absolute; top:18px; right:18px; width:36px; height:36px; border-radius:50%; border:none; background:rgba(255,255,255,0.15); color:#fff; font-size:16px; cursor:pointer; }

  /* genealogy timeline (judges cycle reuses .gen-era/.gen-item) */
  .gen-era{ font-family:'Fraunces',serif; font-weight:600; color:var(--wine-dark); margin:20px 0 8px; font-size:15px; }
  .gen-era:first-child{ margin-top:0; }
  .gen-item{ padding:7px 0 7px 16px; border-left:2px solid var(--hairline); margin-left:6px; }
  .gen-label{ font-weight:700; font-size:14px; color:var(--ink); }
  .gen-note{ font-size:12px; color:var(--ink-soft); }
  .gen-gap{ font-size:11.5px; font-style:italic; color:var(--gold); margin:2px 0 2px 22px; }

  /* genealogy as a clear visual tree : trunk line per node, dot markers,
     distinct styling for side branches, omitted generations and the final
     figure (Jésus) */
  /* ===== Arbre généalogique : un vrai tronc central reliant chaque
     génération, avec les frères/sœurs ou branches parallèles accrochés sur le
     côté par un coude — plutôt qu'une simple frise verticale. ===== */
  .gen-tree2{ position:relative; padding:4px 0 2px; }
  .gen-tree2::before{
    content:''; position:absolute; left:50%; top:4px; bottom:4px; width:2px;
    background:linear-gradient(180deg, var(--hairline) 0%, var(--wine) 12%, var(--wine) 88%, var(--hairline) 100%);
    opacity:0.55; transform:translateX(-50%); z-index:0;
  }
  .gen-tree2-row{ position:relative; z-index:1; display:grid; grid-template-columns:1fr 168px 1fr; align-items:center; column-gap:0; min-height:0; }
  .gen-tree2-slot{ display:flex; align-items:center; min-height:1px; }
  .gen-tree2-row .gen-tree2-slot:last-child{ justify-content:flex-start; }
  .gen-tree2-box{
    position:relative; width:100%; margin:5px 0; padding:8px 12px; border-radius:12px; text-align:center;
    background:var(--vellum-light); border:1px solid var(--hairline); box-shadow:0 2px 6px rgba(0,0,0,0.06);
  }
  .gen-tree2-box::before, .gen-tree2-box::after{
    content:''; position:absolute; left:50%; width:7px; height:7px; border-radius:50%;
    background:var(--wine); transform:translate(-50%,-50%); box-shadow:0 0 0 2px var(--vellum-light);
  }
  .gen-tree2-box::before{ top:0; }
  .gen-tree2-box::after{ bottom:0; transform:translate(-50%,50%); }
  .gen-tree2-name{ font-family:'Fraunces',serif; font-weight:700; font-size:14px; color:var(--ink); margin:0; line-height:1.25; }
  .gen-tree2-note{ font-family:'Inter',sans-serif; font-size:10.5px; color:var(--ink-soft); margin:2px 0 0; }
  .gen-tree2-box.final{ background:linear-gradient(145deg, var(--gold-light), var(--gold)); border-color:var(--gold); box-shadow:0 4px 14px rgba(192,138,62,0.4); }
  .gen-tree2-box.final::before, .gen-tree2-box.final::after{ background:var(--gold); width:11px; height:11px; box-shadow:0 0 0 3px var(--gold-pale), 0 0 10px rgba(192,138,62,0.55); }
  .gen-tree2-box.final .gen-tree2-name{ color:var(--wine-dark); font-size:16px; }
  .gen-tree2-box.dashed{ background:none; border-style:dashed; border-color:var(--ink-soft); }
  .gen-tree2-box.dashed .gen-tree2-name{ color:var(--ink-soft); font-style:italic; font-weight:600; font-size:12.5px; }
  .gen-tree2-box.dashed::before, .gen-tree2-box.dashed::after{ background:var(--vellum-light); border:2px dashed var(--ink-soft); box-shadow:none; }
  .gen-tree2-box.sibling{ background:none; border:1px dashed var(--hairline); box-shadow:none; padding:5px 10px; }
  .gen-tree2-box.sibling::before, .gen-tree2-box.sibling::after{ content:none; }
  .gen-tree2-box.sibling .gen-tree2-name{ font-size:11.5px; font-weight:600; font-style:italic; color:var(--ink-soft); }
  .gen-tree2-elbow{ flex-shrink:0; width:14px; height:2px; background:var(--hairline); margin-right:-1px; }
  .gen-tree2-era-row, .gen-tree2-divider-row{ position:relative; z-index:1; display:flex; justify-content:center; margin:14px 0; }
  .gen-tree2-era{ font-family:'Inter',sans-serif; font-size:11px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--wine-dark); background:var(--vellum-light); padding:5px 16px; border-radius:20px; border:1px solid var(--hairline); }
  .gen-tree2-divider{ font-family:'Inter',sans-serif; font-size:11.5px; font-weight:600; color:var(--wine-dark); background:linear-gradient(90deg, rgba(124,31,46,0.12), rgba(124,31,46,0.05)); padding:8px 16px; border-radius:10px; border:1px solid var(--hairline); text-align:center; max-width:78%; }
  .gen-tree2-gap-row{ position:relative; z-index:1; display:flex; justify-content:center; margin:2px 0; }
  .gen-tree2-gap{ font-family:'Inter',sans-serif; font-size:10px; font-style:italic; color:var(--gold); background:var(--vellum-light); padding:2px 10px; border-radius:10px; border:1px dotted var(--gold); opacity:0.9; }
  @media (max-width:360px){ .gen-tree2-row{ grid-template-columns:0.4fr 140px 1fr; } .gen-tree2-box.sibling .gen-tree2-name{ font-size:10.5px; } }

  /* liturgical / news banners */
  .info-banner{
    background: linear-gradient(135deg, rgba(184,134,59,0.12), rgba(124,31,46,0.06));
    border:1px solid var(--hairline); border-radius:12px; padding:12px 14px;
    font-size:13px; color:var(--wine-dark); margin-bottom:16px; line-height:1.5;
  }
  .source-links{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
  .source-links a{
    font-family:'Inter',sans-serif; font-size:11.5px; font-weight:600; color:var(--wine);
    background:var(--vellum-light); border:1px solid var(--hairline); border-radius:999px;
    padding:5px 11px; text-decoration:none;
  }

  /* home tiles */
  .tile-card{ display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; cursor:pointer; padding:16px 8px; }
  .tile-icon{ font-size:24px; }
  .tile-label{ font-family:'Inter',sans-serif; font-size:12px; font-weight:600; color:var(--ink); }

  /* journal */
  .journal-card{ margin-bottom:12px; }
  .journal-date{ font-family:'Inter',sans-serif; font-size:11px; color:var(--gold); font-weight:700; text-transform:uppercase; letter-spacing:0.4px; margin-bottom:6px; }
  .journal-text{ font-size:14.5px; line-height:1.55; white-space:pre-wrap; }
  .journal-actions{ display:flex; justify-content:flex-end; margin-top:8px; }
  .icon-btn{ background:none; border:none; cursor:pointer; color:var(--ink-soft); font-size:13px; font-family:'Inter',sans-serif; }
  .icon-btn:hover{ color:var(--wine); }

  /* studio */
  .loop-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-bottom:18px; }
  .loop-btn{
    font-family:'Inter',sans-serif; font-weight:600; font-size:13px;
    background:var(--vellum-light); border:1.5px solid var(--hairline); border-radius:12px;
    padding:14px 10px; cursor:pointer; text-align:center; color:var(--ink); position:relative;
  }
  .loop-btn.playing{ background:var(--wine); color:var(--vellum-light); border-color:var(--wine); }
  .eq-bars{ display:inline-flex; gap:2px; align-items:flex-end; height:12px; margin-left:6px; vertical-align:middle; }
  .eq-bars span{ width:2.5px; background:var(--vellum-light); border-radius:1px; animation: eq 0.9s ease-in-out infinite; }
  .eq-bars span:nth-child(1){ height:5px; animation-delay:0s; }
  .eq-bars span:nth-child(2){ height:11px; animation-delay:0.15s; }
  .eq-bars span:nth-child(3){ height:7px; animation-delay:0.3s; }
  @keyframes eq{ 0%,100%{ transform:scaleY(0.4);} 50%{ transform:scaleY(1);} }
  .studio-note{ font-size:12px; color:var(--ink-soft); font-style:italic; margin-top:4px; }

  /* ===== beatmaking : sequencer ===== */
  .seq-transport{ display:flex; align-items:center; gap:10px; margin-bottom:14px; flex-wrap:wrap; }
  .seq-bpm-label{ font-family:'Inter',sans-serif; font-size:12px; color:var(--ink-soft); white-space:nowrap; }
  .seq-row{ display:flex; align-items:center; gap:6px; margin-bottom:6px; }
  .seq-inst-label{ width:88px; flex-shrink:0; font-family:'Inter',sans-serif; font-size:11.5px; font-weight:600; color:var(--ink-soft); }
  .seq-steps{ display:flex; gap:3px; flex:1; }
  .seq-step{
    flex:1; aspect-ratio:1; border-radius:5px; background:var(--vellum-light); border:1px solid var(--hairline);
    cursor:pointer; min-width:0;
  }
  .seq-step:nth-child(4n+1){ border-left:2px solid var(--gold); }
  .seq-step.seq-active{ background:linear-gradient(155deg, var(--gold-light), var(--gold)); border-color:var(--gold); }
  .seq-step.seq-current{ box-shadow: 0 0 0 2px var(--wine); }
  .preset-row{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom:16px; }
  .preset-btn{
    font-family:'Inter',sans-serif; font-size:11.5px; font-weight:600; padding:6px 12px; border-radius:999px;
    background:var(--vellum-light); border:1.5px solid var(--hairline); color:var(--ink-soft); cursor:pointer;
  }

  /* ===== beatmaking : keyboard ===== */
  .synth-controls{ display:flex; gap:10px; align-items:center; margin-bottom:14px; flex-wrap:wrap; }
  .keyboard-wrap{ position:relative; height:120px; display:flex; margin-bottom:8px; user-select:none; }
  .key-white{
    flex:1; background:linear-gradient(180deg, #fff, #F3EEE1); border:1px solid var(--hairline); border-radius:0 0 6px 6px;
    cursor:pointer; position:relative;
  }
  .key-white:active{ background:var(--gold-pale); }
  .key-black{
    position:absolute; width:8%; height:62%; background:linear-gradient(180deg, #3a332c, #1c1815);
    border-radius:0 0 4px 4px; z-index:2; cursor:pointer; top:0;
  }
  .key-black:active{ background:var(--wine); }

  /* ===== beatmaking : recorder ===== */
  .record-btn{
    width:64px; height:64px; border-radius:50%; border:none; cursor:pointer;
    background: linear-gradient(155deg, var(--wine), var(--wine-dark)); color:#fff; font-size:22px;
    box-shadow:0 6px 20px rgba(94,20,32,0.4); margin:0 auto; display:block;
  }
  .record-btn.recording{ animation: recordPulse 1.2s ease-in-out infinite; }
  @keyframes recordPulse{ 0%,100%{ box-shadow:0 6px 20px rgba(94,20,32,0.4);} 50%{ box-shadow:0 6px 32px rgba(94,20,32,0.7);} }
  #record-timer{ text-align:center; font-family:'Fraunces',serif; font-size:20px; color:var(--wine-dark); margin:10px 0; }
  .beat-room-tabs{ display:flex; gap:6px; margin-bottom:16px; background:var(--vellum-light); border-radius:10px; padding:4px; }
  .beat-room-tab{ flex:1; padding:9px; border:none; background:none; border-radius:8px; font-family:'Inter',sans-serif; font-weight:700; font-size:12.5px; color:var(--ink-soft); cursor:pointer; }
  .beat-room-tab.active{ background:var(--wine); color:var(--vellum-light); }

  @media (min-width:760px){
    .loop-grid{ grid-template-columns:repeat(3,1fr); }
  }

  /* ===== saint-of-the-day calendar ===== */
  .cal-toggle{ display:flex; gap:6px; margin-bottom:14px; }
  .cal-toggle button{
    flex:1; font-family:'Inter',sans-serif; font-weight:700; font-size:12.5px;
    padding:9px; border-radius:10px; border:1.5px solid var(--hairline); background:var(--vellum-light);
    color:var(--ink-soft); cursor:pointer;
  }
  .cal-toggle button.active{ background:var(--wine); border-color:var(--wine); color:var(--vellum-light); }
  .cal-nav{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
  .cal-nav-btn{ background:var(--vellum-light); border:1.5px solid var(--hairline); border-radius:8px; width:32px; height:32px; cursor:pointer; font-size:15px; color:var(--wine); }
  .cal-month-label{ font-family:'Fraunces',serif; font-weight:600; font-size:16px; color:var(--wine-dark); text-transform:capitalize; }
  .cal-weekdays{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; margin-bottom:4px; }
  .cal-weekdays span{ text-align:center; font-family:'Inter',sans-serif; font-size:10px; text-transform:uppercase; color:var(--ink-soft); font-weight:700; }
  .cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; margin-bottom:16px; }
  .cal-cell{
    aspect-ratio:1; border-radius:9px; background:var(--vellum-light); border:1px solid var(--hairline);
    display:flex; flex-direction:column; align-items:center; justify-content:center; padding:2px;
    cursor:default; position:relative;
  }
  .cal-cell.out-month{ opacity:0.3; }
  .cal-cell.has-saint{ background:linear-gradient(135deg, var(--gold-light), var(--gold)); border-color:var(--gold); cursor:pointer; }
  .cal-cell.today{ box-shadow:0 0 0 2px var(--wine), var(--glow-gold); animation: calTodayPulse 2.4s ease-in-out infinite; }
  @keyframes calTodayPulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.06); } }
  .cal-cell.selected{ box-shadow:0 0 0 2px var(--wine-dark); }
  .cal-lit-dot{ position:absolute; top:3px; right:3px; width:5px; height:5px; border-radius:50%; }
  .cal-daynum{ font-family:'Inter',sans-serif; font-size:11px; font-weight:700; color:var(--ink); }
  .cal-cell.has-saint .cal-daynum{ color:var(--wine-dark); }
  .cal-dot{ width:4px; height:4px; border-radius:50%; background:var(--wine); margin-top:2px; }
  .cal-month-list{ display:flex; flex-direction:column; gap:6px; }
  .cal-month-list-item{
    display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:10px;
    background:var(--vellum-light); border:1px solid var(--hairline); cursor:pointer; transition:background 0.15s ease;
  }
  .cal-month-list-item:hover{ background:var(--gold-pale); }
  .cal-month-list-day{
    width:28px; height:28px; border-radius:50%; background:var(--gold); color:#fff;
    display:flex; align-items:center; justify-content:center; font-family:'Fraunces',serif; font-weight:700; font-size:12px; flex-shrink:0;
  }
  .cal-month-list-name{ font-family:'Inter',sans-serif; font-size:12.5px; color:var(--ink); }

  /* halo medallion for saints & grandes figures */
  .halo-wrap{ position:relative; width:64px; height:64px; flex-shrink:0; }
  .halo-ring{
    position:absolute; inset:0; border-radius:50%;
    background: repeating-conic-gradient(var(--gold-light) 0deg 6deg, transparent 6deg 18deg);
    opacity:0.55; animation: haloSpin 40s linear infinite;
    filter: drop-shadow(0 0 10px rgba(232,204,126,0.5));
  }
  @keyframes haloSpin{ to{ transform:rotate(360deg); } }
  .halo-avatar{
    position:absolute; inset:6px; border-radius:50%;
    background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 55%, var(--wine-dark) 130%);
    display:flex; align-items:center; justify-content:center; font-size:26px;
    box-shadow: inset 0 0 0 3px rgba(255,255,255,0.25), 0 4px 14px rgba(94,22,34,0.25);
    animation: haloGlowPulse 3s ease-in-out infinite;
    overflow:hidden;
  }
  @keyframes haloGlowPulse{
    0%,100%{ box-shadow: inset 0 0 0 3px rgba(255,255,255,0.25), 0 4px 14px rgba(94,22,34,0.25); }
    50%{ box-shadow: inset 0 0 0 3px rgba(255,255,255,0.35), 0 4px 22px rgba(232,204,126,0.55); }
  }
  .flourish-divider{ text-align:center; color:var(--gold); font-size:13px; letter-spacing:6px; margin:18px 0; opacity:0.7; }

  /* ===== signature de l'auteur, page À propos ===== */
  .lumen-signature-badge{
    width:56px; height:56px; margin:0 auto 10px;
    border-radius:50%;
    background: linear-gradient(160deg, var(--wine) 0%, var(--wine-dark) 100%);
    border: 2px solid var(--gold);
    display:flex; align-items:center; justify-content:center;
    font-family:'Fraunces',serif; font-weight:700; font-size:16px; letter-spacing:1px;
    color: var(--gold-light);
    box-shadow: var(--shadow-warm);
  }
  .lumen-signature-script{
    font-family:'Mrs Saint Delafield', cursive;
    font-size:34px;
    color: var(--wine);
    margin: 4px 0 0;
    line-height:1.1;
  }

  /* ===== mode sombre : "Sombre" — noir sobre et reposant,
     avec une lueur ambre/or en accent, dans l'esprit de la maquette ===== */
  body[data-theme="dark"]{
    --vellum: #1A1A1A;
    --vellum-light: #242424;
    --ink: #F0EAE0;
    --ink-soft: #B5ACA0;
    --wine: #D4752A;
    --wine-dark: #A85A1F;
    --gold: #E8A94A;
    --gold-light: #F0C07A;
    --gold-pale: #2A2015;
    --hairline: #3A3A3A;
    --shadow-warm: 0 10px 30px rgba(0,0,0,0.65);
    --glow-gold: 0 0 16px rgba(212,117,42,0.35);
  }
  body[data-theme="dark"]{
    background:
      radial-gradient(circle at 25% -8%, rgba(232,169,74,0.1), transparent 42%),
      radial-gradient(circle at 82% 105%, rgba(212,117,42,0.16), transparent 55%),
      linear-gradient(155deg, #060606 0%, #141414 35%, #222222 65%, #352313 100%);
  }
  body[data-theme="dark"] #app::before{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Ccircle cx='300' cy='65' r='42' fill='%23D4752A' fill-opacity='0.12'/%3E%3Ccircle cx='317' cy='52' r='36' fill='%230C0C0C'/%3E%3Cg fill='%23E8A94A' fill-opacity='0.4'%3E%3Ccircle cx='50' cy='40' r='2'/%3E%3Ccircle cx='110' cy='95' r='1.6'/%3E%3Ccircle cx='190' cy='25' r='2.2'/%3E%3Ccircle cx='240' cy='130' r='1.4'/%3E%3Ccircle cx='30' cy='160' r='1.8'/%3E%3Ccircle cx='150' cy='170' r='1.5'/%3E%3Ccircle cx='340' cy='190' r='1.7'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 460px 320px; background-position: 50% 0%;
  }
  body[data-theme="dark"] #app{ box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
  body[data-theme="dark"] .saint-emblem{ box-shadow: inset 0 0 0 3px rgba(0,0,0,0.25); }
  /* navigation bien contrastée en mode sombre : bandeau et barre d'onglets en noir profond.
     Le texte du bandeau utilise par défaut --vellum-light, qui devient une couleur sombre (fond de
     carte) en mode sombre : on force donc un texte clair ici pour rester lisible. */
  body[data-theme="dark"] #topbar{ background: linear-gradient(155deg, #000000 0%, #121212 35%, #222222 65%, var(--wine-dark) 100%); border-bottom-color: rgba(212,117,42,0.3); color: #F2E8DA; }
  body[data-theme="dark"] #topbar h1, body[data-theme="dark"] #date-line, body[data-theme="dark"] #search-invite-bar{ color: #F2E8DA; }
  body[data-theme="dark"] #tabbar{ background: var(--vellum); border-color: var(--hairline); }

  /* ===== thème "Aube" — ciel clair et bleu pastel du petit matin,
     avec une touche d'or pour la lumière du soleil levant ===== */
  body[data-theme="aube"]{
    --vellum: #EAF2F8;
    --vellum-light: #F7FBFD;
    --ink: #1F3A52;
    --ink-soft: #506A7E;
    --wine: #3B6EA5;
    --wine-dark: #274D74;
    --gold: #D9B36C;
    --gold-light: #E8CA92;
    --gold-pale: #F6E9CC;
    --hairline: #C9DCEA;
    --shadow-warm: 0 10px 30px rgba(59,110,165,0.18);
    --glow-gold: 0 0 18px rgba(217,179,108,0.45);
  }
  body[data-theme="aube"]{
    background:
      radial-gradient(circle at 20% -8%, rgba(217,179,108,0.24), transparent 42%),
      radial-gradient(circle at 85% 105%, rgba(59,110,165,0.18), transparent 55%),
      linear-gradient(155deg, #FDF6E8 0%, #EAF2F8 38%, #CFE0EE 68%, #AFC9E0 100%);
  }
  body[data-theme="aube"] #topbar{ background: linear-gradient(155deg, #0B2A42 0%, var(--wine-dark) 40%, var(--wine) 75%, var(--gold) 100%); }

  /* ===== thème "Nature" — vert espérance et sauge, apaisant,
     avec le bronze chaud en lueur d'accent ===== */
  body[data-theme="nature"]{
    --vellum: #F1F2E6;
    --vellum-light: #F8F9F0;
    --ink: #2B3A22;
    --ink-soft: #66734F;
    --wine: #3F6B2E;
    --wine-dark: #2A4A1E;
    --gold: #8A6A3B;
    --gold-light: #A8865A;
    --gold-pale: #E3D9BE;
    --hairline: #C7CFAE;
    --shadow-warm: 0 10px 30px rgba(63,107,46,0.18);
    --glow-gold: 0 0 18px rgba(138,106,59,0.4);
  }
  body[data-theme="nature"]{
    background:
      radial-gradient(circle at 20% -8%, rgba(138,106,59,0.2), transparent 42%),
      radial-gradient(circle at 85% 105%, rgba(63,107,46,0.22), transparent 55%),
      linear-gradient(155deg, #F8F7EA 0%, #E3E8D2 38%, #C3CFA8 68%, #9FB37E 100%);
  }
  body[data-theme="nature"] #topbar{ background: linear-gradient(155deg, #15210F 0%, var(--wine-dark) 40%, var(--wine) 75%, var(--gold) 100%); }

  /* ===== thème "Liturgique" — violet pénitentiel et or,
     dans l'esprit des couleurs liturgiques de l'Église ===== */
  body[data-theme="liturgique"]{
    --vellum: #EFE8F2;
    --vellum-light: #F8F4FA;
    --ink: #2E2038;
    --ink-soft: #6E5C7D;
    --wine: #5B3C78;
    --wine-dark: #3D2652;
    --gold: #C9A227;
    --gold-light: #DDBE5C;
    --gold-pale: #F0E2B4;
    --hairline: #D8C4E0;
    --shadow-warm: 0 10px 30px rgba(91,60,120,0.2);
    --glow-gold: 0 0 18px rgba(201,162,39,0.45);
  }
  body[data-theme="liturgique"]{
    background:
      radial-gradient(circle at 20% -8%, rgba(201,162,39,0.18), transparent 42%),
      radial-gradient(circle at 85% 105%, rgba(91,60,120,0.24), transparent 55%),
      linear-gradient(155deg, #F7F0FA 0%, #E3D4EC 38%, #C7A8D8 68%, #A87EC0 100%);
  }
  body[data-theme="liturgique"] #topbar{ background: linear-gradient(155deg, #1F1228 0%, var(--wine-dark) 40%, var(--wine) 75%, var(--gold) 100%); }

  /* ===== thème "Ambre écarlate" — amber chaleureux et accent écarlate vif,
     comme une braise ou un vitrail au couchant ===== */
  body[data-theme="ambre"]{
    --vellum: #FBEEE2;
    --vellum-light: #FFF8F0;
    --ink: #3D1710;
    --ink-soft: #8A4A34;
    --wine: #D8432E;
    --wine-dark: #A52E1C;
    --gold: #E8832E;
    --gold-light: #F2A85C;
    --gold-pale: #F8D2A0;
    --hairline: #EFCBA0;
    --shadow-warm: 0 10px 30px rgba(216,67,46,0.22);
    --glow-gold: 0 0 18px rgba(232,131,46,0.5);
  }
  body[data-theme="ambre"]{
    background:
      radial-gradient(circle at 20% -8%, rgba(232,131,46,0.22), transparent 42%),
      radial-gradient(circle at 85% 105%, rgba(216,67,46,0.24), transparent 55%),
      linear-gradient(155deg, #230D06 0%, #4A1810 32%, #7A2A16 60%, #B0501E 85%, #E8832E 100%);
  }
  body[data-theme="ambre"] #topbar{ background: linear-gradient(155deg, #2A0D06 0%, var(--wine-dark) 40%, var(--wine) 75%, var(--gold) 100%); }

  /* ===== flèche de retour, fixe, toujours au même endroit ===== */
  /* Visible dès qu'il existe, quelque part dans #screen, un bouton "retour"
     pour la page/rubrique en cours (voir syncGlobalBackButton() dans
     app.js) — une seule flèche cohérente, plutôt que de compter sur un
     lien texte enfoui dans le contenu de chaque page. */
  .global-back-btn{
    flex-shrink:0; order:-1; margin-right:2px;
    width:34px; height:34px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background:rgba(255,255,255,0.12); color:var(--vellum-light);
    font-size:17px; font-weight:700;
  }
  .global-back-btn:active{ background:rgba(255,255,255,0.22); }
  .global-back-btn.hidden{ display:none; }
  /* ===== topbar toolbar ===== */
  .topbar-row{ display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
  .topbar-tools{ display:flex; gap:4px; flex-shrink:0; flex-wrap:wrap; justify-content:flex-end; }
  .tool-btn{
    background: rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.2); color:var(--vellum-light);
    border-radius:8px; min-width:40px; height:40px; padding:3px 4px; cursor:pointer; font-family:'Inter',sans-serif;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px;
  }
  .tool-btn-icon{ font-size:13px; line-height:1; font-weight:700; }
  .tool-btn-label{ font-size:7.5px; line-height:1; font-weight:600; white-space:nowrap; opacity:0.9; }
  .tool-btn:hover{ background: rgba(255,255,255,0.22); }
  .tool-btn.tool-active{ background: rgba(232,204,126,0.55); box-shadow: 0 0 10px rgba(232,204,126,0.6); }
  @media (min-width:760px){
    .tool-btn{ min-width:48px; height:44px; }
    .tool-btn-icon{ font-size:15px; }
    .tool-btn-label{ font-size:8.5px; }
  }
  .user-avatar-badge{
    width:30px; height:30px; border-radius:50%; border:2px solid var(--gold); background:rgba(255,255,255,0.15);
    font-size:15px; cursor:pointer; display:flex; align-items:center; justify-content:center; margin-left:8px; flex-shrink:0;
  }
  .tool-tint-gold{ background: rgba(228,199,126,0.3); }
  .tool-tint-blue{ background: rgba(126,170,228,0.25); }
  .tool-tint-green{ background: rgba(140,200,150,0.25); }
  .tool-tint-pink{ background: rgba(228,150,180,0.25); }
  .tool-tint-purple{ background: rgba(180,150,228,0.25); }
  .tool-tint-neutral{ background: rgba(255,255,255,0.12); }
  /* ===== breadcrumb ===== */
  #breadcrumb-bar{ font-family:'Inter',sans-serif; font-size:11px; color:var(--ink-soft); padding: 8px 18px 0; }
  #breadcrumb-bar b{ color:var(--wine); }
  @media (min-width:760px){ #breadcrumb-bar{ padding: 10px 48px 0; } }

  /* ===== overlays (search / onboarding) ===== */
  .overlay{
    position:fixed; inset:0; background:rgba(20,16,14,0.55); z-index:50;
    display:flex; align-items:flex-start; justify-content:center; padding: 8vh 16px;
  }
  .overlay.hidden{ display:none; }
  .search-panel, .onboard-panel{
    background:var(--vellum-light); border-radius:16px; padding:18px; width:100%; max-width:520px;
    max-height:78vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,0.4);
  }
  .search-input-row{ display:flex; gap:8px; margin-bottom:12px; }
  .search-input-row input{ flex:1; }
  .search-result-item{
    display:flex; gap:10px; align-items:center; padding:10px 6px; border-bottom:1px solid var(--hairline); cursor:pointer;
  }
  .search-result-item:hover{ background: rgba(184,134,59,0.08); }
  /* Fenêtre vidéo (démo, bienvenue, saints...) : présentation "cinéma" plus
     immersive qu'un panneau crème classique — fond sombre, cadre doré fin,
     vidéo plus grande, pour une impression de meilleure qualité visuelle. */
  .video-modal-panel{
    max-width:640px !important;
    background: linear-gradient(175deg, #241013 0%, #150a0c 100%) !important;
    border:1px solid rgba(232,204,126,0.3);
    box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(232,204,126,0.12);
  }
  .video-modal-head{ border-bottom:1px solid rgba(232,204,126,0.18); margin-bottom:0 !important; }
  .video-modal-panel #video-modal-title{ color:var(--gold-light) !important; }
  .video-modal-close-btn{ background:rgba(255,255,255,0.08); color:var(--vellum-light); }
  .video-modal-caption-text{ color:rgba(244,239,228,0.65) !important; }
  #video-modal-body video{ display:block; }
  @media (min-width:600px){ .video-modal-panel{ max-width:720px !important; } }
  /* Pages/phases sous la vidéo de démo : une carte par grande section de
     l'appli, qu'on parcourt avec les flèches ou les points. */
  .demo-phase-card{ padding:16px 18px 6px; border-top:1px solid rgba(232,204,126,0.18); }
  .demo-phase-head{ display:flex; align-items:center; gap:10px; margin-bottom:6px; }
  .demo-phase-icon{ font-size:22px; }
  .demo-phase-label{ font-family:'Fraunces',serif; font-weight:600; font-size:15px; color:var(--gold-light); margin:0; }
  .demo-phase-desc{ font-family:'Lora',serif; font-size:13px; line-height:1.55; color:rgba(244,239,228,0.75); margin:0 0 12px; min-height:58px; }
  .demo-phase-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
  .demo-phase-nav{ background:rgba(255,255,255,0.08); color:var(--vellum-light); flex-shrink:0; }
  .demo-phase-nav:disabled{ opacity:0.3; cursor:default; }
  .demo-phase-dots{ display:flex; gap:6px; }
  .demo-phase-dots span{ width:6px; height:6px; border-radius:50%; background:rgba(244,239,228,0.25); transition:background 0.2s; }
  .demo-phase-dots span.active{ background:var(--gold-light); }
  .search-result-name{ font-family:'Fraunces',serif; font-weight:600; font-size:14px; }
  .search-result-meta{ font-family:'Inter',sans-serif; font-size:10.5px; color:var(--ink-soft); text-transform:uppercase; letter-spacing:0.4px; }

  /* ===== onboarding ===== */
  .onboard-title{ font-family:'Fraunces',serif; font-weight:600; font-size:20px; color:var(--wine-dark); margin-bottom:8px; }
  .onboard-step-list{ display:flex; flex-direction:column; gap:12px; margin-bottom:16px; }
  .onboard-step-item{ display:flex; gap:10px; align-items:flex-start; }
  .onboard-step-item .ic{ font-size:20px; }
  .onboard-step-item b{ font-family:'Fraunces',serif; color:var(--wine-dark); }
  .onboard-dots{ text-align:center; margin:12px 0; }
  .onboard-dots span{ display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--hairline); margin:0 3px; }
  .onboard-dots span.active{ background:var(--wine); }

  /* ===== favorites / streak ===== */
  .fav-star{ background:none; border:none; cursor:pointer; font-size:18px; color:var(--hairline); flex-shrink:0; }
  .fav-star.active{ color:var(--gold); }
  .streak-card{ text-align:center; }
  .streak-num{ font-family:'Fraunces',serif; font-weight:700; font-size:24px; color:var(--wine-dark); }
  .streak-label{ font-family:'Inter',sans-serif; font-size:11.5px; color:var(--ink-soft); text-transform:uppercase; letter-spacing:0.5px; }
  .streak-growth-note{ font-family:'Inter',sans-serif; font-size:10px; color:var(--ink-soft); font-style:italic; margin:2px 0 0; }

  /* ===== Lumen — flamme éternelle animée ===== */
  .lumen-flame{ position:relative; width:44px; height:56px; margin:0 auto 6px; }
  .lumen-flame-glow{
    position:absolute; inset:-14px; border-radius:50%;
    background:radial-gradient(circle, rgba(232,204,126,0.35) 0%, transparent 70%);
    opacity:0; transition:opacity 0.5s ease; animation: lumenGlowPulse 2.6s ease-in-out infinite;
  }
  .lumen-flame.lit .lumen-flame-glow{ opacity:1; }
  @keyframes lumenGlowPulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.15); } }
  .lumen-flame-body{
    position:absolute; bottom:0; left:50%; transform:translateX(-50%);
    width:22px; height:34px; border-radius:50% 50% 50% 50% / 65% 65% 35% 35%;
    background:radial-gradient(circle at 50% 78%, #FFFBEA 0%, #FFEDB0 22%, var(--gold) 55%, var(--wine) 100%);
    filter:drop-shadow(0 0 6px rgba(232,204,126,0.7));
    opacity:0.35; transition:opacity 0.5s ease;
    animation: flicker 1.9s ease-in-out infinite;
  }
  .lumen-flame.lit .lumen-flame-body{ opacity:1; }
  .lumen-flame-core{
    position:absolute; bottom:5px; left:50%; transform:translateX(-50%);
    width:8px; height:14px; border-radius:50%;
    background:#FFFDF3; opacity:0; filter:blur(1px); transition:opacity 0.5s ease;
    animation: flicker 1.5s ease-in-out infinite reverse;
  }
  .lumen-flame.lit .lumen-flame-core{ opacity:0.85; }
  .lumen-flame-steady .lumen-flame-body{ filter:drop-shadow(0 0 10px rgba(232,204,126,0.85)); }
  .lumen-flame-strong{ width:50px; height:64px; }
  .lumen-flame-strong .lumen-flame-body{ width:26px; height:40px; filter:drop-shadow(0 0 14px rgba(232,204,126,0.9)) drop-shadow(0 0 22px rgba(184,134,59,0.5)); }
  .lumen-flame-blaze{ width:56px; height:72px; }
  .lumen-flame-blaze .lumen-flame-body{ width:30px; height:46px; filter:drop-shadow(0 0 18px rgba(232,204,126,1)) drop-shadow(0 0 30px rgba(184,134,59,0.6)); }
  .lumen-flame-blaze .lumen-flame-glow{ background:radial-gradient(circle, rgba(232,204,126,0.5) 0%, transparent 70%); }

  /* ===== rosary / examen guided flows ===== */
  .step-progress{ display:flex; gap:4px; margin-bottom:14px; }
  .step-progress span{ flex:1; height:4px; border-radius:2px; background:var(--hairline); }
  .step-progress span.done{ background:var(--gold); }
  .step-progress span.current{ background:var(--wine); }
  .bead-counter{ display:flex; align-items:center; justify-content:center; gap:16px; margin: 14px 0; }
  .bead-num{ font-family:'Fraunces',serif; font-size:40px; font-weight:700; color:var(--wine-dark); }
  .bead-dots{ display:flex; flex-wrap:wrap; gap:5px; justify-content:center; max-width:220px; margin: 0 auto 14px; }
  .bead-dot{ width:10px; height:10px; border-radius:50%; background:var(--hairline); }
  .bead-dot.done{ background:var(--gold); }

  /* ===== glossary / sacraments ===== */
  .glossary-term{ font-family:'Fraunces',serif; font-weight:600; color:var(--wine-dark); }

  /* ===== toast ===== */
  .toast{
    position:absolute; bottom:90px; left:50%; transform:translateX(-50%) translateY(8px);
    max-width:85%; text-align:center;
    background:var(--wine-dark); color:var(--vellum-light); font-family:'Inter',sans-serif; font-size:13px; font-weight:600;
    padding:9px 18px; border-radius:999px; z-index:60; box-shadow:0 8px 20px rgba(0,0,0,0.25);
    opacity:0; pointer-events:none; transition:opacity 0.25s ease, transform 0.25s ease;
  }
  .toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

  /* ===== adjustable font size ===== */
  #app.font-sm .entry-detail-text, #app.font-sm .saint-bio, #app.font-sm .day-medit,
  #app.font-sm .guide-text, #app.font-sm .journal-text, #app.font-sm .entry-summary,
  #app.font-sm .text-box-text, #app.font-sm .saint-prayer { font-size: 12.5px !important; }
  #app.font-lg .entry-detail-text, #app.font-lg .saint-bio, #app.font-lg .day-medit,
  #app.font-lg .guide-text, #app.font-lg .journal-text, #app.font-lg .entry-summary,
  #app.font-lg .text-box-text, #app.font-lg .saint-prayer { font-size: 17px !important; line-height:1.7 !important; }

  /* ===== choix de police de titre ===== */
  #app.title-lora .ambiance-hero-title, #app.title-lora .badge-title, #app.title-lora .bead-num,
  #app.title-lora .cal-month-label, #app.title-lora .confession-theme, #app.title-lora .day-title,
  #app.title-lora .entry-detail-name, #app.title-lora .entry-name, #app.title-lora .gen-era,
  #app.title-lora .glossary-term, #app.title-lora .guide-title, #app.title-lora .home-greeting-text,
  #app.title-lora .memo-word, #app.title-lora .memorial-name, #app.title-lora .novena-title,
  #app.title-lora .onboard-title, #app.title-lora .quiz-score, #app.title-lora .refuge-help-title,
  #app.title-lora .refuge-verse, #app.title-lora .saint-name, #app.title-lora .search-result-name,
  #app.title-lora .stat-num, #app.title-lora .streak-num, #app.title-lora .verset-text,
  #app.title-lora h2.section-title, #app.title-lora .auth-brand{ font-family:'Lora', serif !important; }

  #app.title-cormorant .ambiance-hero-title, #app.title-cormorant .badge-title, #app.title-cormorant .bead-num,
  #app.title-cormorant .cal-month-label, #app.title-cormorant .confession-theme, #app.title-cormorant .day-title,
  #app.title-cormorant .entry-detail-name, #app.title-cormorant .entry-name, #app.title-cormorant .gen-era,
  #app.title-cormorant .glossary-term, #app.title-cormorant .guide-title, #app.title-cormorant .home-greeting-text,
  #app.title-cormorant .memo-word, #app.title-cormorant .memorial-name, #app.title-cormorant .novena-title,
  #app.title-cormorant .onboard-title, #app.title-cormorant .quiz-score, #app.title-cormorant .refuge-help-title,
  #app.title-cormorant .refuge-verse, #app.title-cormorant .saint-name, #app.title-cormorant .search-result-name,
  #app.title-cormorant .stat-num, #app.title-cormorant .streak-num, #app.title-cormorant .verset-text,
  #app.title-cormorant h2.section-title, #app.title-cormorant .auth-brand{ font-family:'Cormorant Garamond', serif !important; }

  /* ===== dyslexia-friendly reading mode ===== */
  #app.dyslexic-font, #app.dyslexic-font .entry-detail-text, #app.dyslexic-font .saint-bio,
  #app.dyslexic-font .day-medit, #app.dyslexic-font .guide-text, #app.dyslexic-font .journal-text,
  #app.dyslexic-font .entry-summary, #app.dyslexic-font .text-box-text, #app.dyslexic-font .saint-prayer,
  #app.dyslexic-font .entry-name, #app.dyslexic-font p, #app.dyslexic-font li {
    font-family: 'Comic Sans MS', 'Comic Sans', Verdana, Tahoma, sans-serif !important;
    letter-spacing: 0.4px !important;
    line-height: 1.8 !important;
    word-spacing: 1.5px !important;
  }
  #app.dyslexic-font h2.section-title, #app.dyslexic-font .saint-name, #app.dyslexic-font .day-title{
    font-family: Verdana, Tahoma, sans-serif !important;
  }

  /* ===== liturgical color badge ===== */
  .liturgical-badge{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
  .liturgical-timeline{ display:flex; align-items:center; overflow-x:auto; padding:14px 10px; margin-top:10px; }
  .timeline-step{ display:flex; flex-direction:column; align-items:center; gap:4px; flex-shrink:0; opacity:0.45; }
  .timeline-step.timeline-current{ opacity:1; }
  .timeline-icon{
    width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center;
    font-size:16px; background:var(--vellum); border:2px solid var(--hairline);
  }
  .timeline-step.timeline-current .timeline-icon{ background:var(--gold-pale); border-color:var(--gold); box-shadow:var(--glow-gold); }
  .timeline-label{ font-family:'Inter',sans-serif; font-size:9px; color:var(--ink-soft); white-space:nowrap; }
  .timeline-connector{ width:16px; height:2px; background:var(--hairline); flex-shrink:0; margin:0 2px 16px; }
  .home-greeting{
    margin-bottom:18px;
    position:relative;
    padding:20px 18px;
    border:1px solid var(--gold);
    border-radius:18px;
    background: linear-gradient(160deg, var(--vellum-light) 0%, var(--gold-pale) 140%);
    box-shadow: var(--shadow-warm);
  }
  .home-greeting::before, .home-greeting::after{
    content:"✦"; position:absolute; color:var(--gold); font-size:13px; opacity:0.8;
  }
  .home-greeting::before{ top:8px; left:10px; }
  .home-greeting::after{ bottom:8px; right:10px; }
  .home-greeting-text{ font-family:'Fraunces',serif; font-weight:600; font-size:24px; color:var(--wine-dark); margin:0 0 6px; text-shadow: 0 0 18px rgba(232,204,126,0.35); }
  .home-greeting-sub{ font-family:'Inter',sans-serif; font-size:13px; color:var(--ink-soft); margin:0; }
  .home-name-prompt{ display:flex; gap:8px; margin:8px 0 10px; }
  .home-name-prompt input{ flex:1; }
  .liturgical-dot{ width:22px; height:22px; border-radius:50%; flex-shrink:0; box-shadow:0 0 0 3px rgba(255,255,255,0.4), 0 2px 8px rgba(0,0,0,0.15); }
  .liturgical-text b{ color:var(--wine-dark); }
  .liturgical-text{ font-size:12.5px; color:var(--ink-soft); }

  /* ===== quiz ===== */
  .quiz-option{
    display:block; width:100%; text-align:left; font-family:'Lora',serif; font-size:14px;
    background:var(--vellum-light); border:1.5px solid var(--hairline); border-radius:10px;
    padding:11px 14px; margin-bottom:9px; cursor:pointer; color:var(--ink);
  }
  .quiz-option.correct{ background: rgba(92,110,88,0.18); border-color:var(--sage); }
  .quiz-option.wrong{ background: rgba(124,31,46,0.12); border-color:var(--wine); }
  .quiz-option:disabled{ cursor:default; }
  .quiz-score{ text-align:center; font-family:'Fraunces',serif; font-size:20px; color:var(--wine-dark); font-weight:600; }

  /* ===== stats dashboard ===== */
  .stat-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-bottom:16px; }
  .stat-card{ text-align:center; }
  .stat-num{ font-family:'Fraunces',serif; font-size:26px; font-weight:700; color:var(--wine-dark); display:block; }
  .stat-label{ font-family:'Inter',sans-serif; font-size:11px; color:var(--ink-soft); text-transform:uppercase; letter-spacing:0.4px; }
  .badge-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
  .badge-card{ text-align:center; padding:14px 10px; }
  .badge-locked{ opacity:0.5; }
  .badge-icon{ font-size:26px; display:block; margin-bottom:6px; }
  .badge-title{ font-family:'Fraunces',serif; font-weight:600; font-size:12.5px; margin:0 0 3px; color:var(--wine-dark); }
  .badge-desc{ font-family:'Inter',sans-serif; font-size:10.5px; color:var(--ink-soft); margin:0; }
  .heatmap-grid{ display:grid; grid-template-columns: repeat(10, 1fr); gap:4px; }
  .heatmap-cell{
    aspect-ratio:1; border-radius:5px; background:var(--vellum); border:1px solid var(--hairline);
    display:flex; align-items:center; justify-content:center;
    font-family:'Inter',sans-serif; font-size:9px; color:var(--ink-soft);
  }
  .heatmap-cell.heatmap-on{ background:linear-gradient(155deg, var(--gold-light), var(--gold)); color:#fff; border-color:var(--gold); font-weight:700; }

  /* ===== récapitulatif d'activité ===== */
  .activity-nav-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin:14px 0; }
  .activity-nav-label{ flex:1; text-align:center; }
  .activity-period-title{ font-family:'Fraunces',serif; font-size:16px; font-weight:700; color:var(--wine-dark); margin:0; text-transform:capitalize; }
  .activity-bars{ padding-bottom:10px; }
  .activity-bar-row{ display:flex; align-items:flex-end; justify-content:space-between; gap:6px; height:120px; }
  .activity-bar-row-year{ gap:3px; }
  .activity-bar-col{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; }
  .activity-bar-track{ flex:1; width:100%; max-width:22px; display:flex; align-items:flex-end; }
  .activity-bar-fill{ width:100%; min-height:0; border-radius:5px 5px 2px 2px; background:linear-gradient(180deg, var(--gold-light), var(--gold)); transition:height 0.3s ease; }
  .activity-bar-num{ font-family:'Inter',sans-serif; font-size:10px; color:var(--ink-soft); margin-top:4px; min-height:13px; }
  .activity-bar-label{ font-family:'Inter',sans-serif; font-size:10px; color:var(--ink-soft); text-transform:capitalize; margin-top:2px; }
  .activity-bar-label.activity-bar-today{ color:var(--wine-dark); font-weight:700; }
  .activity-month-weekdays{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; margin-bottom:6px; }
  .activity-month-weekdays span{ text-align:center; font-family:'Inter',sans-serif; font-size:10px; color:var(--ink-soft); text-transform:uppercase; }
  .activity-month-grid{ grid-template-columns:repeat(7,1fr); }
  .activity-cell-empty{ background:transparent; border-color:transparent; }
  .heatmap-cell.activity-cell-today{ border-color:var(--wine); border-width:2px; }
  .activity-breakdown{ padding:6px 14px; }
  .activity-breakdown-row{ display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--hairline); }
  .activity-breakdown-row:last-child{ border-bottom:none; }
  .activity-breakdown-icon{ font-size:17px; width:24px; text-align:center; }
  .activity-breakdown-label{ flex:1; font-family:'Inter',sans-serif; font-size:13.5px; color:var(--ink); }
  .activity-breakdown-num{ font-family:'Fraunces',serif; font-weight:700; color:var(--wine-dark); font-size:15px; }
  .activity-day-list{ padding:4px 14px; }
  .activity-day-row{ display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--hairline); }
  .activity-day-row:last-child{ border-bottom:none; }
  .activity-day-icon{ font-size:15px; width:22px; text-align:center; }
  .activity-day-label{ flex:1; font-family:'Inter',sans-serif; font-size:13px; color:var(--ink); }
  .activity-day-time{ font-family:'Inter',sans-serif; font-size:11px; color:var(--ink-soft); white-space:nowrap; }

  /* ===== verset tirage ===== */
  .verset-card{ text-align:center; }
  .verset-text{ font-family:'Fraunces',serif; font-style:italic; font-size:16px; color:var(--wine-dark); line-height:1.5; margin-bottom:8px; }
  .verset-ref{ font-family:'Inter',sans-serif; font-size:11.5px; color:var(--gold); text-transform:uppercase; letter-spacing:0.5px; font-weight:700; }

  /* ===== upcoming novena reminders ===== */
  .upcoming-item{ display:flex; align-items:center; gap:11px; padding:10px 0; border-bottom:1px solid var(--hairline); font-size:13px; cursor:pointer; transition:opacity .15s ease; }
  .upcoming-item:last-child{ border-bottom:none; }
  .upcoming-item:active{ opacity:0.7; }
  .upcoming-thumb{ width:38px; height:38px; border-radius:50%; flex-shrink:0; overflow:hidden; display:flex; align-items:center; justify-content:center; font-size:17px; background:var(--gold-pale); box-shadow:inset 0 0 0 1px var(--hairline); }
  .upcoming-thumb img{ width:100%; height:100%; object-fit:cover; }
  .upcoming-info{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
  .upcoming-title{ font-weight:600; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .upcoming-sub{ font-family:'Inter',sans-serif; font-size:11px; color:var(--ink-soft); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .upcoming-days{ font-family:'Inter',sans-serif; font-weight:700; color:var(--wine); font-size:11.5px; white-space:nowrap; background:var(--vellum-light); border:1px solid var(--hairline); border-radius:20px; padding:4px 10px; }
  .upcoming-days--now{ color:#fff; background:var(--wine); border-color:var(--wine); }

  /* ===== état / mood selector ===== */
  .etat-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-bottom:16px; }
  .etat-btn{
    background:var(--vellum-light); border:1.5px solid var(--hairline); border-radius:12px;
    padding:14px 8px; text-align:center; cursor:pointer; font-family:'Inter',sans-serif; font-size:12.5px; font-weight:600; color:var(--ink);
  }
  .etat-btn .e-emoji{ font-size:22px; display:block; margin-bottom:4px; }
  .etat-btn.active{ background:var(--wine); color:var(--vellum-light); border-color:var(--wine); }

  /* ===== confession checklist ===== */
  .confession-theme{ font-family:'Fraunces',serif; font-weight:600; color:var(--wine-dark); font-size:16px; margin: 18px 0 8px; }
  .confession-theme:first-child{ margin-top:0; }
  .confession-q{ display:flex; gap:8px; align-items:flex-start; padding:7px 0; font-size:14px; line-height:1.45; }
  .confession-q input{ width:auto; margin-top:3px; flex-shrink:0; }

  /* ===== bible progress ===== */
  .bible-progress-bar{ height:8px; background:var(--hairline); border-radius:4px; overflow:hidden; margin: 4px 0 14px; }
  .bible-progress-fill{ height:100%; background:linear-gradient(90deg, var(--gold), var(--wine)); border-radius:4px; }
  .bible-check{ width:auto; margin-right:8px; flex-shrink:0; }

  /* ===== memorial ===== */
  .memorial-card{ display:flex; justify-content:space-between; align-items:center; }
  .memorial-name{ font-family:'Fraunces',serif; font-weight:600; font-size:15px; }

  /* ===== share image modal ===== */
  #share-image-overlay .search-panel{ text-align:center; }
  #share-canvas{ max-width:100%; border-radius:12px; margin-bottom:12px; box-shadow:var(--shadow); }

  /* ===== refuge ===== */
  #refuge-overlay{ background: rgba(15,12,10,0.82); align-items:center; }
  .refuge-panel{
    background: linear-gradient(180deg, #2C1A20, #1B1215); border-radius:20px; padding:30px 24px;
    width:100%; max-width:460px; max-height:86vh; overflow-y:auto; text-align:center; color:#F3EEE1;
    box-shadow: 0 20px 70px rgba(0,0,0,0.6);
  }
  .breathing-circle{
    width:120px; height:120px; margin:10px auto 18px; border-radius:50%;
    background: radial-gradient(circle, rgba(228,199,126,0.55), rgba(124,31,46,0.25));
    box-shadow: 0 0 40px rgba(228,199,126,0.3);
    animation: breathe 8s ease-in-out infinite;
  }
  @keyframes breathe{ 0%,100%{ transform:scale(0.75); } 50%{ transform:scale(1.15); } }
  .breathe-label{ font-family:'Inter',sans-serif; font-size:13px; letter-spacing:1px; color:#E4C77E; margin-bottom:20px; }
  .refuge-verse{ font-family:'Fraunces',serif; font-style:italic; font-size:18px; line-height:1.6; margin-bottom:8px; color:#FBF7EC; }
  .refuge-ref{ font-family:'Inter',sans-serif; font-size:11px; color:#B9AF9E; text-transform:uppercase; letter-spacing:0.5px; margin-bottom:22px; }
  .refuge-prayer{ font-size:14px; line-height:1.6; color:#EFE7D8; margin-bottom:24px; padding:14px; background:rgba(255,255,255,0.06); border-radius:12px; }
  .refuge-help-box{
    background: rgba(228,199,126,0.12); border:1px solid rgba(228,199,126,0.35); border-radius:14px;
    padding:16px; text-align:left; margin-bottom:16px;
  }
  .refuge-help-title{ font-family:'Fraunces',serif; font-weight:600; color:#E4C77E; font-size:15px; margin-bottom:8px; }
  .refuge-help-line{ font-size:13.5px; line-height:1.6; color:#F3EEE1; margin-bottom:4px; }
  .refuge-help-line b{ color:#E4C77E; }
  .refuge-actions{ display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }

  /* ===== streak milestone modal ===== */
  .milestone-content{ text-align:center; }
  .milestone-flame{ font-size:48px; display:block; margin-bottom:8px; }

  /* ===== objectifs ===== */
  .objectif-card{ margin-bottom:12px; }
  .objectif-progress-row{ display:flex; align-items:center; gap:10px; margin-top:8px; }
  .ring-progress{ position:relative; width:60px; height:60px; flex-shrink:0; }
  .ring-progress svg circle{ transition: stroke-dashoffset 0.5s ease; }
  .ring-progress-label{
    position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
    font-family:'Fraunces',serif; font-weight:700; font-size:12px; color:var(--wine-dark);
  }
  .objectif-dot-btn{
    width:28px; height:28px; border-radius:50%; border:1.5px solid var(--hairline); background:var(--vellum-light);
    cursor:pointer; font-size:13px; color:var(--ink-soft);
  }
  .avatar-cat-label{ font-family:'Inter',sans-serif; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:0.4px; color:var(--gold); margin:10px 0 5px; }
  .avatar-cat-label:first-child{ margin-top:0; }
  .avatar-picker-grid{ display:grid; grid-template-columns: repeat(6, 1fr); gap:8px; margin-bottom:4px; }
  .avatar-opt-btn{
    aspect-ratio:1; border-radius:12px; border:2px solid transparent; background:var(--vellum-light);
    font-size:20px; cursor:pointer; display:flex; align-items:center; justify-content:center;
  }
  .avatar-opt-btn.selected{ border-color:var(--gold); background:var(--gold-pale); box-shadow:var(--glow-gold); }
  .mp-card{ position:relative; padding-top:38px; animation: fadeIn 0.5s ease; }
  .mp-card-icon{
    position:absolute; top:-14px; left:14px; width:40px; height:40px; border-radius:50%;
    display:flex; align-items:center; justify-content:center; font-size:18px;
    box-shadow:0 4px 12px rgba(0,0,0,0.25); border:3px solid var(--vellum-light);
  }
  .journey-timeline{ display:flex; flex-direction:column; gap:0; }
  .journey-event{ display:flex; gap:12px; padding:8px 0; position:relative; }
  .journey-event:not(:last-child)::before{
    content:""; position:absolute; left:14px; top:32px; bottom:-8px; width:2px; background:var(--hairline);
  }
  .tab-order-list{ display:flex; flex-direction:column; gap:6px; }
  .tab-order-row{
    display:flex; align-items:center; gap:10px; padding:6px 8px;
    background:var(--vellum-light); border-radius:10px; border:1px solid var(--hairline);
  }
  .tab-order-label{ flex:1; font-family:'Inter',sans-serif; font-size:13px; color:var(--ink); }
  .bead-chaplet{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
  .chaplet-bead{
    width:20px; height:20px; border-radius:50%; background:var(--vellum);
    border:2px solid var(--hairline); transition:all 0.25s ease; cursor:pointer;
  }
  .chaplet-bead.lit{
    background:radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold));
    border-color:var(--gold); box-shadow:var(--glow-gold);
    animation: beadIgnite 0.5s cubic-bezier(.34,1.56,.64,1);
  }
  .chaplet-bead.current-bead{
    border-color:var(--gold); animation: beadPulseWait 1.4s ease-in-out infinite;
  }
  @keyframes beadIgnite{
    0%{ transform:scale(0.7); box-shadow:none; }
    55%{ transform:scale(1.4); box-shadow:0 0 18px 6px rgba(212,178,126,0.6); }
    100%{ transform:scale(1.15); box-shadow:var(--glow-gold); }
  }
  @keyframes beadPulseWait{
    0%,100%{ transform:scale(1); box-shadow:0 0 0 0 rgba(212,178,126,0.5); }
    50%{ transform:scale(1.2); box-shadow:0 0 0 6px rgba(212,178,126,0); }
  }
  .journey-dot{
    width:30px; height:30px; border-radius:50%; background:var(--gold-pale); border:2px solid var(--gold);
    display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; z-index:1;
  }
  .objectif-dot-btn.done{ background:var(--gold); border-color:var(--gold); color:var(--vellum-light); }

  /* ===== memorization ===== */
  .memo-word{ display:inline-block; margin:2px; padding:3px 4px; border-bottom:2px solid var(--gold); font-family:'Fraunces',serif; font-size:17px; }
  .memo-word.hidden-word{ color:transparent; background:var(--hairline); border-radius:4px; user-select:none; }

  /* ===== advent/lent calendar ===== */
  .advent-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:8px; margin-bottom:16px; }
  .advent-door{
    aspect-ratio:1; border-radius:10px; background:var(--vellum-light); border:1.5px solid var(--hairline);
    display:flex; align-items:center; justify-content:center; font-family:'Fraunces',serif; font-weight:700; font-size:15px;
    cursor:pointer; color:var(--ink-soft);
  }
  .advent-door.opened{ background:linear-gradient(135deg,var(--gold-light),var(--gold)); color:var(--wine-dark); border-color:var(--gold); }
  .advent-door.locked{ opacity:0.4; cursor:not-allowed; }

  /* ===== mode recueillement (lecture immersive) =====
     Déclenché par le bouton "🕯️ Mode lecture" sur une page de prière/lecture :
     ambiance assombrie, chrome masqué, texte agrandi et centré — pour une
     parenthèse de calme pendant la prière, sans distraction. */
  #app.reading-mode #tabbar,
  #app.reading-mode #topbar .topbar-tools,
  #app.reading-mode #breadcrumb-bar,
  #app.reading-mode .subnav-row, #app.reading-mode .subnav-grouped{ display:none !important; }
  #app.reading-mode #topbar{ padding-bottom:10px; }
  #app.reading-mode{
    background: linear-gradient(175deg, #241019 0%, #150a10 100%) !important;
  }
  #app.reading-mode #topbar{
    background: linear-gradient(160deg, #2A0F19 0%, #1A0A12 100%);
  }
  #app.reading-mode #screen{
    padding: 28px 22px 40px;
    max-width:520px; margin:0 auto;
  }
  #app.reading-mode #screen::before{ opacity:0.3; }
  #app.reading-mode .card,
  #app.reading-mode .detail-wrap{
    background: rgba(255,255,255,0.045);
    border-color: rgba(234,199,126,0.16);
    box-shadow:none;
  }
  #app.reading-mode .text-box{
    background: rgba(255,255,255,0.045);
    border-color: rgba(234,199,126,0.16);
    box-shadow:none;
  }
  #app.reading-mode .saint-name, #app.reading-mode .day-title,
  #app.reading-mode .entry-detail-name{ color: var(--gold-light); }
  #app.reading-mode .entry-detail-text, #app.reading-mode .text-box-text,
  #app.reading-mode .saint-bio, #app.reading-mode .day-medit{
    color:#EFE4D4 !important; font-size:16.5px !important; line-height:1.9 !important;
  }
  #app.reading-mode .entry-detail-dates, #app.reading-mode .saint-prayer{ color:#C9A887; }
  #app.reading-mode .text-box-group .text-box:first-child .text-box-text::first-letter{ color:var(--gold-light); }
  #app.reading-mode .btn-ghost{ border-color:rgba(234,199,126,0.3); color:#EFE4D4; }

  /* ===== novena companions ===== */
  .companions-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; padding-top:10px; border-top:1px solid var(--hairline); }
  .companions-count{ font-family:'Inter',sans-serif; font-size:12.5px; color:var(--ink-soft); }

  /* ===== auth / login page ===== */
  #auth-screen{
    position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center;
    background:
      radial-gradient(circle at 50% 10%, rgba(232,204,126,0.35), transparent 50%),
      radial-gradient(circle at 50% 15%, #EFE6CC 0%, #D9CFB4 55%, #C2B393 100%);
    padding:20px; overflow:hidden;
  }
  #auth-screen.hidden{ display:none; }
  #auth-screen::before{
    content:"";
    position:absolute; inset:0; pointer-events:none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%23B8863B' fill-opacity='0.09'%3E%3Cpath d='M60 20 L63 55 L98 60 L63 65 L60 100 L57 65 L22 60 L57 55 Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
  }
  .auth-sparkle{
    position:absolute; border-radius:50%; background:var(--gold-light);
    box-shadow:0 0 8px 2px rgba(232,204,126,0.7);
    animation: sparkleTwinkle 3.5s ease-in-out infinite;
  }
  @keyframes sparkleTwinkle{ 0%,100%{ opacity:0.15; transform:scale(0.7);} 50%{ opacity:0.9; transform:scale(1.2);} }
  .auth-card{
    position:relative;
    background: linear-gradient(165deg, var(--vellum-light) 0%, #F6EFDC 100%);
    border-radius:26px; padding:40px 30px 32px; width:100%; max-width:400px;
    box-shadow: 0 30px 80px rgba(60,40,20,0.32), 0 0 0 1px rgba(232,204,126,0.3), 0 0 40px rgba(232,204,126,0.12);
    text-align:center;
    border: 1px solid rgba(255,255,255,0.6);
    animation: authFadeIn 0.6s ease;
  }
  .auth-card::before, .auth-card::after{
    content:"✦"; position:absolute; top:14px; color:var(--gold); opacity:0.5; font-size:13px;
  }
  .auth-card::before{ left:18px; }
  .auth-card::after{ right:18px; }
  @keyframes authFadeIn{ from{ opacity:0; transform:translateY(14px) scale(0.98);} to{ opacity:1; transform:translateY(0) scale(1);} }
  .auth-candle{ display:flex; justify-content:center; margin-bottom:10px; position:relative; height:56px; align-items:flex-end; }
  .auth-candle-halo{
    position:absolute; top:-14px; left:50%; transform:translateX(-50%);
    width:70px; height:70px; border-radius:50%;
    background: radial-gradient(circle, rgba(232,204,126,0.4) 0%, transparent 70%);
    animation: haloPulse 2.6s ease-in-out infinite, haloIgnite 1s ease-out;
  }
  @keyframes haloPulse{ 0%,100%{ opacity:0.5; transform:translateX(-50%) scale(0.9);} 50%{ opacity:1; transform:translateX(-50%) scale(1.1);} }
  @keyframes haloIgnite{ 0%{ opacity:0; transform:translateX(-50%) scale(0.2); } 100%{ opacity:0.5; transform:translateX(-50%) scale(0.9); } }
  .auth-candle-flame{ transform:scale(1.5); position:relative; z-index:1; animation: flameIgnite 0.9s ease-out; }
  @keyframes flameIgnite{ 0%{ transform:scale(1.5) scaleY(0); opacity:0; } 60%{ transform:scale(1.6) scaleY(1.15); opacity:1; } 100%{ transform:scale(1.5) scaleY(1); opacity:1; } }
  .auth-brand{
    font-family:'Fraunces',serif; font-weight:600; font-size:32px; color:var(--wine-dark);
    margin-bottom:2px; letter-spacing:0.6px; text-shadow: 0 0 24px rgba(232,204,126,0.5);
    animation: brandFadeUp 0.8s ease-out 0.3s both;
  }
  @keyframes brandFadeUp{ 0%{ opacity:0; transform:translateY(10px); } 100%{ opacity:1; transform:translateY(0); } }
  .auth-flourish{ color:var(--gold); font-size:11px; letter-spacing:4px; margin-bottom:10px; opacity:0.7; }
  .auth-tagline{ font-family:'Inter',sans-serif; font-size:13px; color:var(--ink-soft); margin-bottom:26px; line-height:1.5; }
  .auth-google-btn{
    width:100%; display:flex; align-items:center; justify-content:center; gap:10px;
    background:#fff; border:1.5px solid var(--hairline); border-radius:12px; padding:12px;
    font-family:'Inter',sans-serif; font-weight:600; font-size:14px; color:#3c4043; cursor:pointer;
    transition: box-shadow 0.15s ease, transform 0.1s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .auth-google-btn:hover{ box-shadow:0 6px 16px rgba(0,0,0,0.14); }
  .auth-google-btn:active{ transform:scale(0.98); }
  .auth-tabs{ display:flex; gap:6px; margin-bottom:20px; background:var(--vellum); border-radius:10px; padding:4px; box-shadow:inset 0 1px 3px rgba(0,0,0,0.06); }
  .auth-tab-btn{ flex:1; padding:9px; border:none; background:none; border-radius:8px; font-family:'Inter',sans-serif; font-weight:700; font-size:13px; color:var(--ink-soft); cursor:pointer; transition:background 0.15s ease, color 0.15s ease; }
  .auth-tab-btn.active{ background:linear-gradient(155deg, var(--wine), var(--wine-dark)); color:var(--vellum-light); box-shadow:0 3px 10px rgba(94,20,32,0.35); }
  .auth-field{ text-align:left; margin-bottom:14px; }
  .auth-field label{ font-family:'Inter',sans-serif; font-size:11.5px; font-weight:600; color:var(--ink-soft); text-transform:uppercase; letter-spacing:0.4px; display:block; margin-bottom:5px; }
  .auth-input-wrap{ position:relative; display:flex; align-items:center; }
  .auth-input-icon{ position:absolute; left:13px; font-size:14px; opacity:0.55; pointer-events:none; }
  .auth-input-wrap input{ padding-left:38px; }
  .auth-field input{ transition: border-color 0.15s ease, box-shadow 0.15s ease; }
  .auth-field input:focus{ box-shadow:0 0 0 3px rgba(184,134,59,0.2); border-color:var(--gold); }
  .auth-password-wrap input{ padding-right:42px; }
  .auth-password-toggle{
    position:absolute; right:4px; top:50%; transform:translateY(-50%);
    background:none; border:none; font-size:15px; cursor:pointer; padding:6px 8px; opacity:0.6;
  }
  .auth-password-toggle:hover{ opacity:1; }
  .auth-error{ background:rgba(124,31,46,0.1); color:var(--wine-dark); font-size:12.5px; line-height:1.5; border-radius:10px; padding:10px 13px; margin-bottom:14px; text-align:left; display:none; border-left:3px solid var(--wine); }
  .auth-error.show{ display:block; animation: authFadeIn 0.3s ease; }
  .auth-divider{ display:flex; align-items:center; gap:10px; margin:20px 0; color:var(--ink-soft); font-size:11px; text-transform:uppercase; letter-spacing:0.5px; }
  .auth-divider::before, .auth-divider::after{ content:""; flex:1; height:1px; background:linear-gradient(90deg, transparent, var(--hairline), transparent); }
  .auth-forgot-link{
    background:none; border:none; font-family:'Inter',sans-serif; font-size:12px; color:var(--ink-soft);
    text-decoration:underline; cursor:pointer; margin-top:12px; padding:4px;
  }
  .auth-forgot-link:hover{ color:var(--wine); }
  .auth-loading{ font-family:'Inter',sans-serif; font-size:13px; color:var(--ink-soft); display:flex; flex-direction:column; align-items:center; gap:14px; }
  .theme-swatch-btn{ padding:14px 8px; transition: box-shadow 0.15s ease, transform 0.1s ease; }
  .theme-swatch-btn:active{ transform: scale(0.96); }
  .theme-swatch-btn.theme-active{ box-shadow: 0 0 0 2px var(--wine), var(--shadow); }
  .auth-spinner{
    width:26px; height:26px; border-radius:50%; border:3px solid var(--hairline); border-top-color:var(--wine);
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin{ to{ transform:rotate(360deg); } }
  #account-info{ text-align:center; }

  .mini-flame{ display:inline-block; animation: flicker 1.4s ease-in-out infinite; }

  /* ===== ambiance picker: artist groups ===== */
  .ambiance-search-wrap{ margin-bottom:10px; }
  .ambiance-search-wrap input{ width:100%; }
  .artist-groups{ max-height:280px; overflow-y:auto; display:flex; flex-direction:column; gap:10px; }
  .artist-group{ background:var(--vellum-light); border-radius:12px; border:1px solid var(--hairline); overflow:hidden; flex-shrink:0; }
  .artist-group-header{ display:flex; align-items:center; gap:8px; padding:8px 10px; }
  .artist-avatar{
    width:28px; height:28px; border-radius:50%; flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
    color:#fff; font-family:'Fraunces',serif; font-weight:700; font-size:13px;
  }
  .artist-group-name{ font-family:'Inter',sans-serif; font-weight:700; font-size:13px; color:var(--ink); flex:1; }
  .artist-group-count{ font-family:'Inter',sans-serif; font-size:11px; color:var(--ink-soft); background:var(--vellum); border-radius:999px; padding:1px 8px; }
  .artist-tracks{ border-top:1px solid var(--hairline); }
  .track-row{ display:flex; align-items:center; gap:10px; padding:8px 10px; cursor:pointer; transition:background 0.15s ease; }
  .track-row:hover{ background:var(--vellum); }
  .track-row:not(:last-child){ border-bottom:1px solid var(--hairline); }
  .track-play-icon{ font-size:14px; width:20px; text-align:center; flex-shrink:0; }
  .track-info{ min-width:0; }
  .track-title{ font-family:'Inter',sans-serif; font-size:12.5px; font-weight:600; color:var(--ink); margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .track-tag{ font-family:'Inter',sans-serif; font-size:10.5px; color:var(--ink-soft); margin:1px 0 0; }
  .ambiance-hero{
    border-radius:16px; padding:16px; margin-bottom:14px; color:#fff;
    box-shadow:0 8px 24px rgba(0,0,0,0.2); position:relative; overflow:hidden;
  }
  .ambiance-hero-eyebrow{ font-family:'Inter',sans-serif; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:1.3px; opacity:0.85; margin:0 0 6px; }
  .ambiance-hero-title{ font-family:'Fraunces',serif; font-weight:600; font-size:17px; margin:0; }
  .ambiance-hero-artist{ font-family:'Inter',sans-serif; font-size:12.5px; opacity:0.9; margin:2px 0 10px; }
  .synth-collapse{ margin-top:16px; }
  .synth-collapse summary{
    font-family:'Inter',sans-serif; font-weight:700; font-size:12.5px; color:var(--ink-soft);
    cursor:pointer; padding:6px 0; list-style:none;
  }
  .synth-collapse summary::-webkit-details-marker{ display:none; }
  .synth-collapse summary::before{ content:"▸ "; }
  .synth-collapse[open] summary::before{ content:"▾ "; }

  ::-webkit-scrollbar{ width:0; }

  /* ===== lecteur de texte à 5 styles (Lumière / Nuit / Focus / Carte / Image) ===== */
  #verse-reader-overlay{ position:fixed; inset:0; z-index:80; }
  #verse-reader-overlay.hidden{ display:none; }
  .vreader{
    position:absolute; inset:0; display:flex; flex-direction:column;
    background: var(--vellum-light); color:var(--ink); overflow:hidden;
    animation: fadeIn 0.25s ease;
  }
  .vreader-bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
  .vreader-scrim{ position:absolute; inset:0; z-index:1; }
  .vreader--lumiere .vreader-scrim{ background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.86) 52%, var(--vellum-light) 78%); }
  .vreader--nuit{ background:#0D0A16; color:#EDE6F5; }
  .vreader--nuit .vreader-scrim{ background: linear-gradient(180deg, rgba(10,8,22,0.45) 0%, rgba(10,8,22,0.86) 52%, #0D0A16 82%); }
  .vreader--focus{ background: var(--vellum-light); }
  .vreader--carte{ background: var(--vellum); }
  .vreader--parchemin{
    background:
      radial-gradient(140% 90% at 15% 0%, rgba(184,134,59,0.14) 0%, transparent 55%),
      radial-gradient(120% 80% at 90% 100%, rgba(107,37,69,0.10) 0%, transparent 55%),
      #EFE1BE;
    color:#4A3720;
  }
  .vreader--parchemin .vreader-text, .vreader--parchemin .vreader-title{ font-family:'Fraunces',serif; }
  .vreader--parchemin .vreader-icon-btn{ background:rgba(74,55,32,0.1); color:#4A3720; }
  .vreader--parchemin .vreader-ref{ color:#8C6A2F; }
  .vreader--image{ color:#fff; }
  .vreader--image .vreader-scrim{ background: linear-gradient(180deg, rgba(10,6,4,0.08) 0%, rgba(10,6,4,0.72) 72%, rgba(10,6,4,0.92) 100%); }

  .vreader-topbar{ position:relative; z-index:2; display:flex; align-items:center; padding:16px 16px 0; gap:8px; flex-shrink:0; }
  .vreader-tabs-row{ position:relative; z-index:2; display:flex; justify-content:center; gap:6px; padding:12px 16px 0; flex-shrink:0; }
  .vreader-tab-btn{
    padding:7px 16px; border-radius:999px; border:none; background:rgba(255,255,255,0.5); color:var(--ink);
    font-family:'Inter',sans-serif; font-size:12.5px; font-weight:600; cursor:pointer;
  }
  .vreader-tab-btn.active{ background:var(--wine); color:#fff; }
  .vreader--nuit .vreader-tab-btn, .vreader--image .vreader-tab-btn{ background:rgba(255,255,255,0.16); color:#fff; }
  .vreader--nuit .vreader-tab-btn.active, .vreader--image .vreader-tab-btn.active{ background:var(--gold); color:#2A2620; }
  .vreader-icon-btn{
    width:38px; height:38px; border-radius:50%; border:none; background:rgba(255,255,255,0.55);
    font-family:'Inter',sans-serif; font-weight:700; font-size:14px; color:var(--ink);
    cursor:pointer; display:flex; align-items:center; justify-content:center;
  }
  .vreader--nuit .vreader-icon-btn, .vreader--image .vreader-icon-btn{ background:rgba(255,255,255,0.16); color:#fff; }
  .vreader-icon-btn.active{ background:var(--gold); color:#fff; }

  .vreader-body{
    /* justify-content:flex-start + marge auto sur le bloc de texte (au lieu de
       justify-content:center) : un texte plus long que l'écran reste centré
       quand il tient, mais s'affiche en entier et défile normalement quand il
       déborde — avec justify-content:center seul, le début du texte devenait
       inaccessible au défilement dès qu'il dépassait la hauteur visible. */
    position:relative; z-index:2; flex:1; min-height:0; display:flex; flex-direction:column;
    align-items:center; justify-content:flex-start; padding:20px 28px; text-align:center; overflow-y:auto;
  }
  .vreader-text-wrap{ margin:auto 0; max-width:100%; }
  .vreader-pageno{ font-family:'Inter',sans-serif; font-size:12px; opacity:0.6; margin:0 0 10px; }
  .vreader-title{ font-family:'Fraunces',serif; font-weight:600; font-size:20px; margin:0 0 2px; }
  .vreader-subtitle{ font-family:'Inter',sans-serif; font-size:12.5px; opacity:0.7; margin:0 0 18px; }
  .vreader-text{ font-family:'Lora',serif; font-size:19px; line-height:1.6; margin:0 0 14px; max-width:36ch; }
  .vreader-text--big{ font-size:24px; line-height:1.55; }
  .vreader--focus .vreader-text{ font-size:25px; font-family:'Fraunces',serif; font-weight:500; line-height:1.5; }
  .vreader-ref{
    font-family:'Inter',sans-serif; font-size:11.5px; letter-spacing:0.4px; opacity:0.72;
    margin:16px 0 0; padding-top:12px; position:relative; display:inline-block;
  }
  .vreader-ref::before{
    content:'✦'; display:block; font-size:11px; letter-spacing:4px; opacity:0.55; margin-bottom:9px;
  }
  .vreader-explication{ max-width:36ch; text-align:left; }
  .vreader-explication p:last-child{ font-family:'Lora',serif; font-size:15.5px; line-height:1.6; margin:4px 0 0; }

  .vreader-card-stack{ position:relative; max-width:320px; width:100%; margin:auto 0; }
  .vreader-card-stack::before, .vreader-card-stack::after{
    content:""; position:absolute; left:10px; right:10px; top:0; bottom:0; border-radius:18px;
    background:var(--vellum-light); box-shadow:0 10px 30px rgba(0,0,0,0.12);
  }
  .vreader-card-stack::before{ transform:translateY(10px) scale(0.97); opacity:0.7; z-index:-1; }
  .vreader-card-stack::after{ transform:translateY(20px) scale(0.94); opacity:0.4; z-index:-2; }
  .vreader-card{
    position:relative; background: var(--vellum-light); border-radius:18px; padding:26px 22px;
    box-shadow:0 20px 50px rgba(0,0,0,0.18);
  }

  .vreader-audio-row{
    position:relative; z-index:2; display:flex; align-items:center; gap:9px;
    padding:0 26px; flex-shrink:0;
  }
  .vreader-audio-time{ font-family:'Inter',sans-serif; font-size:10.5px; opacity:0.6; flex-shrink:0; width:30px; }
  .vreader-audio-time:last-child{ text-align:right; }
  .vreader-audio-track{ flex:1; height:4px; border-radius:999px; background:rgba(120,90,60,0.18); overflow:hidden; }
  .vreader--nuit .vreader-audio-track, .vreader--image .vreader-audio-track{ background:rgba(255,255,255,0.22); }
  .vreader-audio-fill{ height:100%; border-radius:999px; background:var(--gold); width:0%; transition:width 0.2s linear; }
  .vreader-controls{ position:relative; z-index:2; display:flex; align-items:center; justify-content:center; gap:22px; padding:10px 0 16px; flex-shrink:0; }
  .vreader-nav-btn{ width:40px; height:40px; border-radius:50%; border:1px solid var(--hairline); background:transparent; font-size:18px; color:inherit; cursor:pointer; }
  .vreader-nav-btn:disabled{ opacity:0.2; cursor:default; }
  .vreader-play-btn{
    width:58px; height:58px; border-radius:50%; border:none; background:var(--wine); color:#fff;
    font-size:19px; cursor:pointer; box-shadow:0 8px 20px rgba(107,37,69,0.35);
  }
  .vreader--nuit .vreader-nav-btn, .vreader--image .vreader-nav-btn{ border-color:rgba(255,255,255,0.3); }

  .vreader-modes{ position:relative; z-index:2; display:flex; gap:8px; overflow-x:auto; padding:0 16px 10px; flex-shrink:0; }
  .vreader-modes::-webkit-scrollbar{ display:none; }
  .vreader-mode-btn{
    flex:0 0 auto; display:flex; flex-direction:column; align-items:center; gap:4px; width:68px;
    padding:9px 4px; border-radius:14px; border:1px solid transparent; background:transparent;
    font-family:'Inter',sans-serif; font-size:9.5px; color:inherit; opacity:0.6; cursor:pointer; text-align:center;
  }
  .vreader-mode-btn .vreader-mode-icon{ font-size:18px; }
  .vreader-mode-btn.active{ opacity:1; background: rgba(184,134,59,0.16); border-color: var(--gold); font-weight:700; }
  .vreader--nuit .vreader-mode-btn.active, .vreader--image .vreader-mode-btn.active{ background: rgba(234,199,126,0.18); }
  .vreader-mode-desc{
    position:relative; z-index:2; text-align:center; font-family:'Inter',sans-serif; font-size:11px;
    opacity:0.6; padding:0 24px 16px; margin:0; flex-shrink:0;
  }
  @media (min-width:760px){
    .vreader-title{ font-size:24px; }
    .vreader-text{ font-size:21px; max-width:42ch; }
    .vreader--focus .vreader-text{ font-size:28px; }
  }

  /* ===== écran d'ouverture thématique (tcover) ===== */
  .tcover{
    position:fixed; inset:0; z-index:970; display:flex; flex-direction:column;
    align-items:center; justify-content:center; text-align:center; padding:32px 26px;
    animation: fadeIn 0.3s ease; transition: opacity 0.42s ease, transform 0.42s ease;
  }
  .tcover--book{ background: radial-gradient(circle at 50% 18%, #3B2410 0%, #180E06 72%); color:#F6E9CE; }
  .tcover--scroll{ background: radial-gradient(circle at 50% 18%, #44300F 0%, #1D1206 72%); color:#F3E3C4; }
  .tcover--letter{ background: radial-gradient(circle at 50% 18%, #3C1620 0%, #1D0A0F 72%); color:#F6E2E6; }
  .tcover--candle{ background: radial-gradient(circle at 50% 22%, #402008 0%, #150A03 72%); color:#FBE7C6; }
  .tcover-close{
    position:absolute; top:18px; left:16px; width:36px; height:36px; border-radius:50%;
    border:1px solid rgba(255,255,255,0.25); background:rgba(255,255,255,0.08); color:inherit;
    font-size:16px; cursor:pointer;
  }
  .tcover-content{ display:flex; flex-direction:column; align-items:center; max-width:320px; }
  .tcover-icon-wrap{
    width:92px; height:92px; border-radius:50%; display:flex; align-items:center; justify-content:center;
    margin-bottom:16px; background: radial-gradient(circle at 35% 30%, rgba(234,199,126,0.35), rgba(234,199,126,0.05) 70%);
    border:1px solid rgba(234,199,126,0.4); cursor:pointer; animation: tcoverGlow 3.2s ease-in-out infinite;
  }
  .tcover-icon{ font-size:38px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
  @keyframes tcoverGlow{
    0%,100%{ box-shadow:0 0 16px rgba(234,199,126,0.15); }
    50%{ box-shadow:0 0 30px rgba(234,199,126,0.38); }
  }
  .tcover-eyebrow{ font-family:'Inter',sans-serif; font-size:10.5px; letter-spacing:2px; opacity:0.55; margin:0 0 8px; }
  .tcover-title{ font-family:'Fraunces',serif; font-size:23px; font-weight:600; margin:0 0 10px; }
  .tcover-desc{ font-family:'Lora',serif; font-size:14px; line-height:1.55; opacity:0.85; margin:0 0 16px; }
  .tcover-hint{ font-family:'Inter',sans-serif; font-size:11.5px; opacity:0.55; margin:0 0 18px; min-height:14px; }
  .tcover-cta{
    font-family:'Inter',sans-serif; font-weight:700; font-size:13.5px; padding:12px 28px; border-radius:999px;
    border:none; background: linear-gradient(135deg, var(--gold-light,#EAC77E), var(--gold,#B8863B));
    color:#241306; cursor:pointer; box-shadow:0 8px 20px rgba(184,134,59,0.35);
  }
  .tcover--opening{ opacity:0; transform:scale(1.08); pointer-events:none; }
  .tcover--opening .tcover-icon-wrap{ animation:none; transform:scale(1.15); }
