/* ==========================================================================
   Rapport — couverture-objet : sceau vermillon des piliers, titre, Maître du Jour,
   phrase-signature, trois phrases à retenir, promesse. Double page sur desktop.
   Référence : design/maquettes/rapport/01-couverture.html. Les dimensions du
   squelette (rapport.html, .is-loading) sont celles de la couverture finale.
   ========================================================================== */

/* Sceau : tronc en haut, branche en bas, quatre piliers de gauche à droite */
.seal-wrap { --s: 272px; display: grid; justify-items: center; gap: 12px; }
.seal {
  position: relative; width: var(--s); aspect-ratio: 1 / 0.92; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr;
  padding: 8px; border-radius: 10px;
  background: radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.09), transparent 38%), radial-gradient(circle at 78% 86%, rgba(0, 0, 0, 0.12), transparent 42%), var(--seal);
  color: var(--on-seal); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 18px 40px rgba(122, 34, 30, 0.22);
}
.seal::before { content: ""; position: absolute; inset: 7px; border: 1.5px solid color-mix(in srgb, var(--on-seal) 75%, transparent); border-radius: 6px; pointer-events: none; }
.seal__g { display: grid; place-items: center; font: 600 calc(var(--s) * 0.17)/1 var(--font-ko); white-space: nowrap; }
.seal__g:not(:nth-child(4n + 1)) { border-left: 1px solid color-mix(in srgb, var(--on-seal) 34%, transparent); }
.seal__g:nth-child(-n + 4) { padding-top: 6px; }
.seal__g:nth-child(n + 5) { padding-bottom: 6px; }
/* Heure inconnue : quatrième colonne voilée */
.seal__g--veil { background: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--on-seal) 12%, transparent) 7px 8px); }
.seal__arrow { width: calc(var(--s) - 28px); height: 12px; color: var(--ink-3); }
.seal__arrow line, .seal__arrow path { stroke: currentColor; stroke-width: 1.2; fill: none; }
.seal__legend { width: var(--s); display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 0 8px; }
.seal__legend span { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.seal__legend .is-day { color: var(--accent-ink); }
.seal__legend small { display: block; margin-top: 3px; font: 400 13px/1.2 var(--font-ko); letter-spacing: 0.06em; text-transform: none; color: var(--ink-3); }
.seal__read { max-width: 30em; font-size: 12.5px; color: var(--ink-3); text-align: center; }

/* Couverture */
.cover { padding: 4px 16px 40px; text-align: center; }
.cover__kicker { margin-top: 10px; }
.cover__title { margin-top: 14px; font-family: var(--font-display); font-weight: 500; line-height: 0.95; letter-spacing: -0.01em; }
.cover__title em { display: block; font-size: 30px; font-weight: 400; font-style: italic; color: var(--ink-2); letter-spacing: 0; line-height: 1.1; }
.cover__title strong { display: block; font-size: 76px; font-weight: 600; margin-top: 2px; line-height: 1.02; overflow-wrap: anywhere; }
.cover__birth { margin-top: 12px; font-size: 14px; color: var(--ink-2); min-height: 21px; }
.cover__seal { margin-top: 26px; display: block; }
.cover__dm { margin-top: 30px; display: grid; gap: 8px; justify-items: center; }
.cover__dm-name { font: 500 30px/1.1 var(--font-display); }
.cover__dm-name .ko-b { font-size: 0.92em; color: var(--el-ink, var(--wood-ink)); margin-right: 4px; }
.cover__dm-name em { font-style: italic; }
.cover__sig { margin: 26px auto 0; max-width: 21em; font: italic 400 25px/1.32 var(--font-display); color: var(--ink); min-height: calc(25px * 1.32 * 3); }

.tldr { margin: 30px auto 0; max-width: 34rem; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 20px 20px; box-shadow: var(--shadow-1); }
.tldr h2 { font: 650 12px/1.3 var(--font-ui); letter-spacing: var(--tracking-kicker); text-transform: uppercase; color: var(--accent-ink); }
.tldr ol { margin-top: 12px; display: grid; gap: 14px; counter-reset: t; }
.tldr li { counter-increment: t; display: grid; grid-template-columns: 26px 1fr; gap: 8px; font: 450 19px/1.45 var(--font-display); }
.tldr li::before { content: counter(t); font: italic 400 22px/1.25 var(--font-display); color: var(--accent-ink); }
.tldr strong { font-weight: 650; }

.promise { margin-top: 30px; display: grid; gap: 14px; justify-items: center; }
.promise__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 14px; color: var(--ink-2); }
.promise__facts > * + *::before { content: "\00b7"; margin-right: 16px; color: var(--ink-3); }
.promise__toc { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.promise .btn { min-width: 248px; }
.sealed { margin-top: 26px; font-size: 13px; color: var(--ink-3); }
.sealed .ko { color: var(--ink-2); }
.disclaimer { margin: 18px auto 0; max-width: 30em; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

/* Ouverture : le sceau se pose, le titre se lève (désactivé sous prefers-reduced-motion) */
@keyframes saju-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes saju-stamp { 0% { opacity: 0; transform: scale(1.1); } 60% { opacity: 1; transform: scale(0.98); } 100% { opacity: 1; transform: none; } }
.cover:not(.is-loading) .seal { animation: saju-stamp 0.5s var(--ease-stamp) both; }
.cover:not(.is-loading) .cover__title { animation: saju-rise 0.6s var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) { .cover .seal, .cover .cover__title { animation: none; } }

/* Desktop : double page, titre à gauche, sceau en majesté à droite */
@media (min-width: 1024px) {
  .cover { padding: 8px 0 56px; }
  .spread { max-width: 1240px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 1fr 1px 1fr; gap: 64px; align-items: center; }
  .spread__gutter { align-self: stretch; background: linear-gradient(var(--line-soft), var(--line-strong), var(--line-soft)); }
  .spread__text { text-align: left; }
  .spread__seal { display: grid; justify-items: center; gap: 20px; text-align: center; }
  .spread__seal .seal-wrap { --s: 420px; }
  .spread__seal .seal__legend span { font-size: 13px; }
  .spread__seal .seal__legend small { font-size: 15px; }
  .cover__title em { font-size: 36px; }
  .cover__title strong { font-size: 112px; line-height: 0.95; }
  .cover__dm { justify-items: start; margin-top: 22px; gap: 6px; }
  .cover__dm-name { font-size: 36px; }
  .cover__birth { margin-top: 8px; }
  .cover__sig { margin: 18px 0 0; min-height: calc(25px * 1.32 * 2); }
  .tldr { margin: 22px 0 0; padding: 18px 20px 16px; max-width: none; }
  .tldr li { font-size: 18px; }
  .tldr ol { gap: 10px; }
  .promise { margin-top: 22px; grid-auto-flow: column; justify-content: start; justify-items: start; align-items: center; gap: 24px; }
  .promise__facts { flex-wrap: nowrap; white-space: nowrap; justify-content: flex-start; }
}

/* Couverture du PDF : propre à l'impression (voir print.css) */
.print-cover { display: none; }
