/* Maquette web-v2 — page de prière. Newsreader auto-hébergée, servie via /fonts/. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/newsreader-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/newsreader-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@property --bg {
  syntax: "<color>";
  inherits: true;
  initial-value: #f4f1ea;
}

@property --ink {
  syntax: "<color>";
  inherits: true;
  initial-value: #221e1a;
}

@property --muted {
  syntax: "<color>";
  inherits: true;
  initial-value: #5e574f;
}

@property --estompe {
  syntax: "<color>";
  inherits: true;
  initial-value: #4a453f;
}

@property --reflet {
  syntax: "<color>";
  inherits: true;
  initial-value: #e8c070;
}

@property --reflet-2 {
  syntax: "<color>";
  inherits: true;
  initial-value: #f0d0c0;
}

:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --ink: #221e1a;
  --muted: #5e574f;
  --estompe: #4a453f;
  --liturgie: #6d4334;
  --pastille-haut: 2.85rem;
  --pastille-marge: 1.05rem;
  --pastille-bas: 0.7rem;
  --reflet: #e8c070;
  --reflet-2: #f0d0c0;
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --text-scale: 1;
  --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #141210;
    --ink: #ece6dc;
    --muted: #c2b6a8;
    --liturgie: #e0b79a;
  }
}

main[data-couleur="vert"] { --liturgie: #0e6b38; }
main[data-couleur="violet"] { --liturgie: #6b2280; }
main[data-couleur="rouge"] { --liturgie: #922222; }
main[data-couleur="rose"] { --liturgie: #9a3450; }
main[data-couleur="blanc"] { --liturgie: #5e4c3a; }
main[data-couleur="noir"] { --liturgie: #2a2622; }

@media (prefers-color-scheme: dark) {
  main[data-couleur="vert"] { --liturgie: #9dceb0; }
  main[data-couleur="violet"] { --liturgie: #e0b4e4; }
  main[data-couleur="rouge"] { --liturgie: #f0aaa4; }
  main[data-couleur="rose"] { --liturgie: #f0b4c2; }
  main[data-couleur="blanc"] { --liturgie: #eadcc8; }
  main[data-couleur="noir"] { --liturgie: #d9d0c6; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: clamp(18.5px, 0.35vw + 18px, 22px);
  overflow-x: clip;
  max-width: 100%;
  text-rendering: optimizeLegibility;
  background: var(--bg);
  transition: background-color 8s ease, color 8s ease, --bg 8s ease, --ink 8s ease, --muted 8s ease, --estompe 8s ease, --reflet 8s ease, --reflet-2 8s ease;
}

html[data-scale="0.9"] { --text-scale: 0.9; }
html[data-scale="1"] { --text-scale: 1; }
html[data-scale="1.12"] { --text-scale: 1.12; }
html[data-scale="1.28"] { --text-scale: 1.28; }

html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }

#voile-souffle[data-souffle-rythme="lent"] { --souffle-duree: 5s; }
#voile-souffle[data-souffle-rythme="pose"] { --souffle-duree: 4s; }
#voile-souffle[data-souffle-rythme="large"] { --souffle-duree: 6s; }

.sans-evenements { pointer-events: none !important; }

body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: clip;
  overflow-wrap: break-word;
  background-color: var(--bg);
  background-image:
    radial-gradient(82% 46% at 100% -8%, color-mix(in srgb, var(--reflet) 30%, transparent), transparent 60%),
    radial-gradient(54% 32% at -8% 100%, color-mix(in srgb, var(--reflet-2) 18%, transparent), transparent 54%);
  background-attachment: fixed;
  color: var(--ink);
  transition: background-color 8s ease, color 8s ease;
  font-family: var(--serif);
  font-weight: 450;
  line-height: 1.6;
  font-optical-sizing: auto;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
  font-variant-numeric: oldstyle-nums proportional-nums;
}

[hidden] { display: none !important; }

button,
input,
select {
  font: inherit;
  color: inherit;
  max-width: 100%;
  min-width: 0;
}

button { cursor: pointer; }

:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.eviter {
  position: absolute;
  z-index: 50;
  left: 0.5rem;
  top: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg);
  color: var(--ink);
  border-radius: 999px;
  text-decoration: none;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.eviter:focus,
.eviter:focus-visible {
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn-menu {
  position: fixed;
  z-index: 25;
  top: max(0.4rem, env(safe-area-inset-top, 0px));
  right: max(0.4rem, env(safe-area-inset-right, 0px));
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 1.45rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: color 0.2s ease;
}

.btn-menu:hover,
.btn-menu:focus-visible {
  opacity: 1;
  color: var(--ink);
}

/* État silence (mode lecture épuré par défaut) */
body[data-silence="1"] .marque {
  display: none;
}

body[data-silence="1"] .pastille {
  display: none;
}

body[data-silence="1"] .mentions-ligne,
body[data-silence="1"] .bible-ligne,
body[data-silence="1"] .protege-ligne {
  display: none;
}

body[data-silence="1"] .btn-menu {
  opacity: 0;
  transition: none;
}

body[data-silence="1"] .btn-menu:focus,
body[data-silence="1"] .btn-menu:focus-visible {
  opacity: 1;
}

body[data-silence="1"] * {
  animation: none !important;
}

.colonne {
  width: 100%;
  max-width: calc(66ch + 48px);
  min-width: 0;
  margin: 0 auto;
  padding: max(1.5rem, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(var(--pastille-haut) + var(--pastille-marge) + var(--pastille-bas) + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  font-size: calc(1rem * var(--text-scale));
  background: var(--bg);
  transition: background-color 8s ease;
}

@media (min-width: 768px) {
  .colonne {
    max-width: 38em;
    padding-inline: max(2.5rem, env(safe-area-inset-right, 0px));
  }
}

@media (min-width: 1280px) {
  .colonne {
    max-width: 42em;
    padding-inline: max(4rem, env(safe-area-inset-right, 0px));
  }
}

.en-tete {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0 2.4rem 1.6rem 0;
}

.marque {
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.8;
  font-weight: 500;
  user-select: none;
}

.moment-label {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 550;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  line-height: 1.35;
  color: var(--liturgie);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.etat {
  margin: 1.2rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.etat button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.bloc {
  position: relative;
  margin: 0 0 2.15rem;
}

body[data-v="b"] .bloc {
  padding-left: 1.45rem;
}

.lire-ici {
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--liturgie);
  opacity: 0;
  pointer-events: none;
  font-size: 0.85rem;
  line-height: 1;
}

body[data-v="a"] .lire-ici,
body[data-v="a"] .silence-ligne { display: none; }

body[data-v="b"] .bloc:hover .lire-ici,
body[data-v="b"] .bloc.montre-lire .lire-ici,
body[data-v="b"] .lire-ici:focus-visible,
body.demo-ouvert[data-v="b"] #texte .bloc:first-child .lire-ici {
  opacity: 1;
  pointer-events: auto;
}

.rubrique {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.09em;
  line-height: 1.35;
  color: var(--liturgie);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.bloc:first-child .rubrique { margin-top: 0.85rem; }

.bloc-psaume .corps,
.bloc-hymne .corps {
  width: fit-content;
  max-width: min(40ch, 100%);
  margin-inline: auto;
}

@media (min-width: 800px) {
  .bloc-psaume .corps,
  .bloc-hymne .corps {
    width: auto;
    max-width: none;
    margin-inline: 0;
  }
}

.bloc-antienne .rubrique,
.bloc-repons .rubrique {
  font-weight: 550;
  letter-spacing: 0.11em;
}

.ref {
  font-variant: normal;
  letter-spacing: 0;
  font-weight: 450;
  font-size: 0.92em;
  color: var(--muted);
}

.corps,
.refrain {
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 8 3 3;
}

.corps p,
.refrain p {
  margin: 0.2rem 0 0.85rem;
  text-wrap: pretty;
}

.refrain {
  color: var(--liturgie);
  font-size: 0.95em;
}

body.chapelet #texte,
body.chapelet #texte .rubrique,
body.chapelet #texte .vr,
body.chapelet #texte .refrain,
body.chapelet #texte .ref,
body.chapelet #texte .verse_number,
body.chapelet #texte .rubrique-hymne,
body.chapelet #texte .hymne-strophe,
body.chapelet #texte .verset {
  color: var(--estompe);
}

body.chapelet #texte .verset {
  transition: color 0.6s ease, background-color 0.6s ease, box-shadow 0.6s ease;
}

body.chapelet #texte .vr {
  font-weight: 450;
}

body.chapelet #texte .verset.courant,
body.chapelet #texte .verset.courant .vr,
body.chapelet #texte .verset.courant .verse_number {
  color: var(--ink);
}

body.chapelet #texte .verset.courant .vr {
  font-weight: 600;
}

body.chapelet #texte .verset.courant {
  background: color-mix(in srgb, var(--liturgie) 30%, var(--bg));
  border-radius: 0.2rem;
  box-shadow: 0 0 0 0.32rem color-mix(in srgb, var(--liturgie) 24%, var(--bg));
}

.verset.garde {
  animation: halo-garde 1.8s ease;
}

@keyframes halo-garde {
  0% { box-shadow: 0 0 0 0.35rem color-mix(in srgb, var(--liturgie) 42%, transparent); }
  100% { box-shadow: 0 0 0 0.6rem transparent; }
}

.verse_number {
  font-size: 0.58em;
  font-weight: 500;
  color: var(--muted);
  margin-right: 0.4em;
  user-select: none;
  vertical-align: 0.4em;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1, "onum" 0;
  letter-spacing: 0.02em;
}

u { text-decoration: none; }

.vr {
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--liturgie);
}

.rubrique-hymne {
  margin: 0 0 0.4rem;
  color: var(--liturgie);
  font-variant: small-caps;
  letter-spacing: 0.05em;
}

.hymne-strophe { margin: 0.2rem 0 0.85rem; }

.silence-ligne {
  margin: 0.15rem 0 0.8rem;
}

.silence-lien {
  border: 0;
  background: none;
  padding: 0.15rem 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.mention,
.mentions-ligne {
  margin: 3rem 0 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--muted);
}

.bible-ligne {
  margin: 0.25rem 0 0;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--muted);
}

.protege-ligne {
  margin: 0.25rem 0 1rem;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--muted);
}

.menu-bible {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.78rem;
  text-align: center;
  color: var(--muted);
}

.menu-protege {
  margin: 0.5rem 0 1.5rem;
  font-size: 0.78rem;
  text-align: center;
  color: var(--muted);
}

.mentions-ligne a,
.bible-ligne a,
.protege-ligne a,
.menu-protege a,
.menu-bible a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.mentions-ligne a:hover,
.mentions-ligne a:focus-visible,
.bible-ligne a:hover,
.bible-ligne a:focus-visible,
.protege-ligne a:hover,
.protege-ligne a:focus-visible,
.menu-protege a:hover,
.menu-protege a:focus-visible,
.menu-bible a:hover,
.menu-bible a:focus-visible {
  opacity: 1;
}

.lecture-aelf {
  margin: 0.85rem 0 1.2rem;
}

.lien-aelf {
  display: inline-block;
  font-size: 0.82rem;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  color: var(--liturgie);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.lien-aelf:hover,
.lien-aelf:focus-visible {
  opacity: 1;
}

.lien-retour {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
}

.lien-retour:hover,
.lien-retour:focus-visible {
  text-decoration: underline;
}

.mentions-page {
  padding-bottom: 4rem;
}

body.sur-place #texte {
  color: color-mix(in srgb, var(--ink) 42%, var(--bg));
}

body.sur-place #texte .mot.courant {
  color: var(--ink);
  background: color-mix(in srgb, var(--liturgie) 22%, transparent);
  border-radius: 0.12em;
}

/* La pastille repose sur un dégradé de fin d'écran : la ligne qui passe
   dessous s'estompe vers le fond, elle n'est pas coupée nette. */
body[data-v="a"]::after {
  content: "";
  position: fixed;
  z-index: 18;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--pastille-haut) + var(--pastille-marge) + var(--pastille-bas) + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    color-mix(in srgb, var(--bg) 70%, transparent) 36%,
    var(--bg) 68%
  );
}

.pastille {
  position: fixed;
  z-index: 20;
  right: max(0.7rem, env(safe-area-inset-right, 0px));
  bottom: calc(var(--pastille-bas) + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  max-width: calc(100% - 1.4rem);
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: opacity 0.4s ease;
}

.pastille.defile {
  opacity: 0;
  pointer-events: none;
}

body[data-v="b"] .pastille,
body.mode-ligne .pastille,
body.mode-guide .pastille,
body.mode-voix .pastille,
body.souffle-ouvert .pastille { display: none; }

body.menu-ouvert .pastille { opacity: 0; pointer-events: none; }

.pastille button {
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.2;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pastille-choix {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.2rem 0.3rem;
  width: 100%;
  min-width: 0;
}

.pastille-choix button:nth-child(-n + 4) { grid-column: span 3; }
.pastille-choix button:nth-child(n + 5) { grid-column: span 4; }

.pastille-choix button {
  min-height: 2.75rem;
  min-width: 0;
  padding: 0.35rem 0.2rem;
  white-space: normal;
  text-align: center;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.pastille-choix button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--liturgie) 18%, transparent);
  color: var(--ink);
}

.pastille-choix button:disabled {
  opacity: 0.55;
  cursor: default;
}

.ligne { display: block; }

body.mode-ligne .ligne {
  opacity: 0.22;
  transition: opacity 0.25s ease;
}

body.mode-ligne .ligne.courante { opacity: 1; }

body.mode-voix .corps {
  color: color-mix(in srgb, var(--ink) 30%, var(--bg));
}

body.mode-voix .mot.voix {
  color: color-mix(in srgb, var(--ink) 70%, var(--bg));
}

body.mode-voix .mot.courant {
  color: var(--ink);
  background: color-mix(in srgb, var(--liturgie) 42%, var(--bg));
  box-shadow: 0 0 0 0.14em color-mix(in srgb, var(--liturgie) 42%, var(--bg));
  border-radius: 0.16em;
}

.barre-lecture {
  position: fixed;
  z-index: 22;
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.1rem 0.35rem;
  max-width: calc(100% - 1.2rem);
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}

.barre-lecture button,
.barre-lecture span {
  flex: 0 0 auto;
  border: 0;
  background: none;
  min-height: 2.75rem;
  min-width: max-content;
  padding: 0.3rem 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.voile-guide {
  margin: 0;
  max-width: min(34ch, 100%);
  max-height: 62vh;
  overflow: auto;
  font-size: clamp(1.35rem, 4.6vw, 1.85rem);
  font-weight: 460;
  line-height: 1.45;
  text-wrap: pretty;
}

.menu-fond {
  position: fixed;
  inset: 0;
  z-index: 30;
  border: 0;
  padding: 0;
  background: rgba(20, 16, 12, 0.35);
  backdrop-filter: blur(2px);
  min-height: 100vh;
  min-height: 100dvh;
}

.menu {
  position: fixed;
  z-index: 31;
  bottom: 0;
  left: 0;
  right: 0;
  top: auto;
  width: 100%;
  max-width: 100%;
  max-height: 85vh;
  max-height: 85dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-left: 0;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
  padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px)) 1.25rem;
}

@media (min-width: 641px) {
  .menu {
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    width: min(100%, 24rem);
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    border-left: 1px solid var(--line);
    border-top: 0;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.12);
    padding: max(1.2rem, env(safe-area-inset-top, 0px)) 1.25rem max(2rem, env(safe-area-inset-bottom, 0px)) 1.25rem;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .menu {
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }
}

.menu-fermer {
  min-height: 44px;
  min-width: 44px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.menu-fermer:hover,
.menu-fermer:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
}

.zone-hint {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

.menu-sec {
  margin: 1.2rem 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.09em;
  color: var(--liturgie);
}

.menu-offices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.menu-offices button {
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: transparent;
  color: var(--ink);
  font-size: 0.85rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.menu-offices button:hover,
.menu-offices button:focus-visible {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

.menu-offices button[aria-current="true"] {
  border-color: var(--liturgie);
  background: color-mix(in srgb, var(--liturgie) 14%, var(--bg));
  color: var(--ink);
  font-weight: 600;
}

.menu-jours {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.menu-jours button {
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: transparent;
  color: var(--ink);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.menu-jours button:hover,
.menu-jours button:focus-visible {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

.menu button,
.menu select,
.menu-date input {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 0.6rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  min-height: 44px;
  white-space: normal;
}

.menu button[aria-current="true"] {
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 650;
}

.menu-date,
.menu-vitesse {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.menu-date input,
#select-zone {
  min-height: 44px;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
}

.menu-lectures {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.menu-var {
  margin: 0.7rem 0 0;
  padding: 0;
  border: 0;
  font-size: 0.82rem;
}

.menu-var legend {
  font-size: 0.68rem;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.menu-var label { margin-right: 0.8rem; }

#compte-nom {
  margin: 0.2rem 0 0.45rem;
  font-size: 0.95rem;
}

#compte-erreur { margin-top: 0.35rem; }

#compte button { margin-top: 0.35rem; }

.favoris { margin-top: 0.35rem; }

.favori-extrait,
.favori-note-office {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.favoris input,
.favoris textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 0.2rem;
  padding: 0.45rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.favoris textarea { resize: vertical; }

#favoris-liste {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
}

#favoris-liste li {
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

#sync-compte button { margin-top: 0.55rem; }

.favori-actions button,
#favoris > button { margin-top: 0.35rem; }

.favori-actions button { margin-right: 0.75rem; }

.favori-note {
  margin: 0.15rem 0 0.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--ink);
}

.cal-nav button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
}

.cal-nav button:hover,
.cal-nav button:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
}

.cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  margin-top: 0.5rem;
  width: 100%;
}

.cal-dow,
.cal button,
.cal span {
  text-align: center;
  font-size: 0.72rem;
  min-width: 0;
}

.cal-dow {
  color: var(--muted);
  font-weight: 500;
  padding: 0.35rem 0;
}

.cal button {
  min-height: 44px;
  min-width: 44px;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 0.5rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--ink);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cal button:hover,
.cal button:focus-visible {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  border-color: var(--line);
}

.cal button[aria-current="date"] {
  background: color-mix(in srgb, var(--liturgie) 16%, var(--bg));
  border-color: var(--liturgie);
  font-weight: 650;
  color: var(--ink);
}

.menu-pwa {
  margin-top: 1.2rem;
}

.menu-pwa .zone-hint {
  margin-top: 0.35rem;
}

.menu-credit {
  margin: 1.5rem 0 0;
  font-size: 0.78rem;
  text-align: center;
  color: var(--muted);
}

.menu-credit a,
.menu-bible a,
.menu-protege a,
.mentions-ligne a,
.bible-ligne a,
.protege-ligne a,
.mention a,
.silence-lien,
.lien-aelf,
.lien-retour {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.parole {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: max(2.4rem, env(safe-area-inset-top, 0px)) max(1.6rem, env(safe-area-inset-right, 0px)) max(4rem, env(safe-area-inset-bottom, 0px)) max(1.6rem, env(safe-area-inset-left, 0px));
  border: 0;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.parole span {
  display: block;
  max-width: 22ch;
  margin: 0;
  text-align: center;
  font-size: clamp(1.5rem, 5.2vw, 2.15rem);
  font-weight: 460;
  line-height: 1.38;
  text-wrap: pretty;
}

.carnet { margin-top: 0.55rem; }

.carnet ul {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}

.carnet li {
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.carnet-meta {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.carnet-texte {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  line-height: 1.4;
}

.carnet button {
  border: 0;
  border-radius: 0;
  padding: 0.15rem 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.voile {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(2.5rem, env(safe-area-inset-top, 0px)) max(1.2rem, env(safe-area-inset-right, 0px)) max(5.5rem, env(safe-area-inset-bottom, 0px)) max(1.2rem, env(safe-area-inset-left, 0px));
  background: var(--bg);
  text-align: center;
  overflow-x: clip;
}

.voile.fin-douce {
  opacity: 0;
  transition: opacity 1.15s ease;
}

.voile-section {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.72rem;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.voile-mot {
  margin: 0;
  max-width: min(18ch, 100%);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 480;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.continuer-place {
  position: fixed;
  z-index: 21;
  left: 50%;
  bottom: 0.8rem;
  transform: translateX(-50%);
  max-width: calc(100% - 1.5rem);
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
}

.voile-continuer,
.voile-barre button,
#silence-fermer,
.silence-choix button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.85rem;
}

.voile-barre,
.silence-choix {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  padding: 0 1rem;
  max-width: 100%;
}

.voile-barre label,
.silence-reste {
  color: var(--muted);
  font-size: 0.8rem;
}

.silence-reste {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 14vw, 5.2rem);
  font-weight: 450;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.silence-choix button[aria-pressed="true"] {
  color: var(--ink);
}

.souffle-lueur {
  width: 6.75rem;
  height: 6.75rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--liturgie) 78%, #fff) 0%, color-mix(in srgb, var(--liturgie) 34%, var(--bg)) 62%, transparent 72%);
  opacity: 0.42;
  transform: scale(0.7);
  transition: transform var(--souffle-duree, 5s) ease-in-out, opacity var(--souffle-duree, 5s) ease-in-out;
}

.voile-souffle.inspiration .souffle-lueur {
  transform: scale(1);
  opacity: 0.96;
}

.voile-souffle.expiration .souffle-lueur {
  transform: scale(0.66);
  opacity: 0.38;
}

.souffle-lueur.pulsation { animation: pouls-souffle 0.4s ease; }

@keyframes pouls-souffle {
  0% { filter: brightness(1.45); }
  100% { filter: brightness(1); }
}

.souffle-moitie {
  max-width: 22ch;
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: clamp(1.45rem, 5vw, 2.05rem);
  font-weight: 460;
  line-height: 1.35;
  text-wrap: pretty;
}

body[data-demo-souffle] .souffle-lueur { transition: none; }

html.lumiere-figee,
html.lumiere-figee body,
html.lumiere-figee .colonne {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .voile-souffle.inspiration .souffle-lueur,
  .voile-souffle.expiration .souffle-lueur {
    transform: none;
    opacity: 0.72;
  }
}
