/* ═══════════════ Djouney v3 — primitives porcelaine (module A) ═══════════════
   Feuille à déchirer, paupière, sceau de cire, tache d'encre, goutte du fil rouge ;
   phase 2 : enveloppe retenue, bougie, aube.
   Encre & Cire (§ 16) : papier crème, ombres chaudes ; le sceau et le cachet de l'enveloppe sont de
   vrais cachets de cire (components/ink.js, css/ink.css).
   Classes préfixées .pc- (voir ARCHITECTURE.md § 8, § 10 A, § 13.2 et § 16). */

/* ─── La feuille qu'on déchire ─── */
.pc-tear {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: grab;
}
.pc-tear.is-tearing { cursor: grabbing; }

.pc-tear__sheet {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  overflow: hidden;
  border-radius: inherit;
  text-align: center;
  background-color: var(--milk);
  /* Lumière dorée en haut à gauche, puis le grain du papier. */
  background-image:
    radial-gradient(130% 90% at 16% 0%, rgba(var(--light-rgb), calc(.9 * var(--hl-a))), rgba(var(--light-rgb), calc(0 * var(--hl-a))) 62%),
    radial-gradient(120% 80% at 100% 100%, rgba(234, 214, 190, .28), rgba(234, 214, 190, 0) 70%),
    var(--pc-grain, none);
  box-shadow:
    var(--emboss),
    inset 1px 1px 0 rgba(var(--light-rgb), calc(.95 * var(--hl-a))),
    inset -1px -1px 0 rgba(var(--hollow-rgb), .45);
}

.pc-tear__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 32ch;
  overflow-wrap: anywhere;
}

.pc-tear__title {
  margin: 0;
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: clamp(32px, 9vw, 44px);
  line-height: 1.08;
  color: var(--ink);
}

.pc-tear__sub {
  margin: 10px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(var(--ink-rgb), .84);
}

/* Petite ligne de perforation, comme une invitation à déchirer. */
.pc-tear__perf {
  display: block;
  width: 68px;
  height: 1px;
  margin: 26px auto 12px;
  background-image: repeating-linear-gradient(90deg, var(--relief) 0 5px, transparent 5px 10px);
}

.pc-tear__hint {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .3px;
  color: rgba(var(--ink-rgb), .8);
  transition: opacity var(--mid) var(--ease);
}
.pc-tear.is-tearing .pc-tear__hint { opacity: .35; }

.pc-tear__btn {
  min-width: 44px;
  min-height: 44px;
  margin-top: 2px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.pc-tear__btn:active { background: var(--porcelain); box-shadow: var(--deboss); }

.pc-tear__rip {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Les deux moitiés qui tombent : copies découpées le long du tracé. */
.pc-tear__half {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  filter: drop-shadow(0 12px 18px rgba(var(--shadow-rgb), .24));
  will-change: transform, opacity;
}
.pc-tear__half .pc-tear__sheet {
  box-shadow: inset 1px 1px 0 rgba(var(--light-rgb), calc(.95 * var(--hl-a))), inset -1px -1px 0 rgba(var(--hollow-rgb), .45);
}

/* ─── La paupière ─── */
.pc-eyelid {
  display: inline-block;
  flex: none;
  vertical-align: middle;
  overflow: visible;
  color: var(--stem);
}
/* Épaisseurs en unités du viewBox ; createEyelid les épaissit un peu aux petites tailles. */
.pc-eyelid__lid {
  fill: none;
  stroke: var(--stem);
  stroke-width: var(--pc-eye-line, 1.5);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pc-eyelid__lashes {
  fill: none;
  stroke: var(--stem);
  stroke-width: var(--pc-eye-lash, 1.1);
  stroke-linecap: round;
}
.pc-eyelid__white { fill: var(--milk); }
.pc-eyelid__iris { fill: var(--ink); }
.pc-eyelid__pupil { fill: var(--stem); }
.pc-eyelid__glint { fill: #fff; opacity: .85; }

/* ─── Le sceau de cire ───
   Un vrai cachet de cire, la fleur du duo en relief (createWaxSeal, css/ink.css) : en couleur quand
   quelque chose est vivant (.is-alive), grisé et pâle au repos. L'élément porte les deux classes
   « pc-seal ink-seal » ; --pc-seal (taille) reste posé pour les feuilles de style qui le lisent. */
.pc-seal { --pc-seal: 46px; }

/* ─── La tache d'encre ─── */
.pc-ink {
  display: inline-block;
  flex: none;
  overflow: visible;
  color: var(--ink);
  pointer-events: none;
}
.pc-ink__body { fill: currentColor; }
.pc-ink__rim { fill: none; stroke: currentColor; }

/* ─── La goutte du fil rouge ─── */
.pc-drop {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 15px;
  overflow: visible;
  transform-origin: 50% 82%;
  filter: drop-shadow(0 1.5px 1.5px rgba(var(--thread-rgb), .28));
  animation: pc-breathe 3.6s ease-in-out infinite;
}
.pc-drop__body { fill: var(--thread); }
.pc-drop__glint { fill: #fff; opacity: .5; }
@keyframes pc-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07, 1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .pc-drop { animation: none; }
  .pc-tear__hint { transition: none; }
}

/* ═════════════════════════ Phase 2 : le tempo ═════════════════════════ */

/* ─── L'enveloppe retenue ───
   Empilement dans le papier : intérieur (fond) < rabat ouvert (1) < lettre (2) < poche (3)
   < plis et prénom (4) < ombre du rabat (5) < rabat fermé (6). Le rabat change de plan
   quand il passe la verticale, à mi-course (courbe symétrique). */
.pc-env {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  transition: opacity 700ms ease, transform 700ms var(--ease);
}
.pc-env.is-gone { opacity: 0; transform: translateY(-6px); pointer-events: none; }

.pc-env__paper {
  --pc-env-r: 12px;
  position: relative;
  z-index: 0;
  display: block;
  width: min(100%, 320px);
  aspect-ratio: 8 / 5;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--pc-env-r);
  /* L'intérieur de l'enveloppe, visible quand le rabat est levé. */
  background: linear-gradient(180deg, #E6D7C6, #F1E7DB 52%);
  /* Papier épais : une fine tranche sous le relief. */
  box-shadow:
    0 1.5px 0 #F8F1E7,
    0 3px 0 rgba(var(--hollow-rgb), .75),
    var(--emboss);
  perspective: 1100px;
  perspective-origin: 50% 30%;
  color: inherit;
  font: inherit;
  text-align: left;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
/* Tout le contenu est en position absolue : cette cale garde la hauteur (8 / 5) même là où
   aspect-ratio ne s'applique pas à un <button>. */
.pc-env__paper::before {
  content: "";
  display: block;
  padding-top: 62.5%;
}
button.pc-env__paper { cursor: pointer; }
button.pc-env__paper[aria-disabled="true"] { cursor: default; }
.pc-env__paper:focus-visible { outline-offset: 6px; border-radius: var(--pc-env-r); }

/* La lettre glissée dedans : elle affleure quand le rabat est levé. */
.pc-env__letter {
  position: absolute;
  z-index: 2;
  left: 7%;
  right: 7%;
  top: 5%;
  height: 82%;
  border-radius: 5px;
  background-color: #FFFCF7;
  background-image:
    linear-gradient(180deg, rgba(var(--light-rgb), calc(.9 * var(--hl-a))), rgba(var(--light-rgb), calc(0 * var(--hl-a))) 30%),
    var(--pc-grain, none);
  box-shadow: 0 1px 4px rgba(var(--shadow-rgb), .2), inset 0 0 0 .5px rgba(var(--hollow-rgb), .55);
  pointer-events: none;
  transition: transform 420ms var(--ease);
}
.pc-env.is-peek .pc-env__letter { transform: translateY(-30%); transition: transform 760ms var(--ease); }
.pc-env__script {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.pc-env__script path {
  fill: none;
  stroke: var(--sepia);
  stroke-width: 1.1px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: .34;
}

/* La poche : plis latéraux et pli du bas, lumière venant du haut à gauche. */
.pc-env__pocket {
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: var(--pc-env-r);
  clip-path: polygon(0 0, 50% 55.8%, 100% 0, 100% 100%, 0 100%);
  background-color: var(--milk);
  background-image:
    linear-gradient(104deg, rgba(var(--light-rgb), calc(.75 * var(--hl-a))) 0%, rgba(var(--light-rgb), calc(0 * var(--hl-a))) 38%, rgba(var(--hollow-rgb), 0) 64%, rgba(var(--hollow-rgb), .24) 100%),
    linear-gradient(0deg, rgba(var(--hollow-rgb), .18), rgba(var(--hollow-rgb), 0) 34%),
    var(--pc-grain, none);
  pointer-events: none;
}

.pc-env__folds,
.pc-env__flap-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.pc-env__folds { z-index: 4; }
.pc-env__crease {
  fill: none;
  stroke-width: 1px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.pc-env__crease--shade { stroke: rgba(var(--shadow-rgb), .26); }
.pc-env__crease--light { stroke: rgba(var(--light-rgb), calc(.95 * var(--hl-a))); }
.pc-env__crease--dim { stroke: rgba(var(--light-rgb), calc(.6 * var(--hl-a))); }
.pc-env__crease--edge { stroke: rgba(150, 118, 92, .42); stroke-width: .9px; }

.pc-env__from {
  position: absolute;
  z-index: 4;
  right: 9%;
  bottom: 8%;
  max-width: 46%;
  overflow: hidden;
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.15;
  color: var(--sepia);
  opacity: .82;
  white-space: nowrap;
  text-overflow: ellipsis;
  transform: rotate(-4deg);
  transform-origin: 100% 100%;
  pointer-events: none;
}

/* Petite ombre de profondeur sous le rabat (flou appliqué au contenant, découpe au pseudo-élément). */
.pc-env__shade {
  position: absolute;
  z-index: 5;
  inset: 0;
  filter: blur(2.4px);
  pointer-events: none;
  transition: opacity 360ms ease 520ms;
}
.pc-env__shade::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(.6% 0, 100% 0, 100% 2%, 50.8% 60%, .6% 3%);
  background: rgba(110, 78, 56, .28);
}
.pc-env.is-open .pc-env__shade { opacity: 0; transition: opacity 240ms ease; }

/* Le rabat : il pivote autour de son arête haute ; face (porcelaine) et revers (intérieur). */
.pc-env__flap {
  position: absolute;
  z-index: 6;
  inset: 0;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  pointer-events: none;
  transition: transform 760ms cubic-bezier(.6, .04, .4, .96), z-index 0s linear 380ms;
}
.pc-env.is-open .pc-env__flap { z-index: 1; transform: rotateX(180deg); }
@media (hover: hover) {
  .pc-env--online:not(.is-open):not(.is-gone) .pc-env__paper:hover .pc-env__flap { transform: rotateX(8deg); }
}
.pc-env--online:not(.is-open):not(.is-gone) .pc-env__paper:focus-visible .pc-env__flap { transform: rotateX(8deg); }

.pc-env__flap-face,
.pc-env__flap-back {
  position: absolute;
  inset: 0;
  border-radius: var(--pc-env-r);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.pc-env__flap-face {
  clip-path: polygon(0 0, 100% 0, 51.5% 54.3%, 50.6% 55.5%, 50% 55.8%, 49.4% 55.5%, 48.5% 54.3%);
  background-color: var(--milk);
  background-image:
    linear-gradient(180deg, rgba(var(--light-rgb), calc(.95 * var(--hl-a))) 0, rgba(var(--light-rgb), calc(0 * var(--hl-a))) 7%),
    linear-gradient(150deg, rgba(var(--light-rgb), calc(.8 * var(--hl-a))), rgba(var(--light-rgb), calc(0 * var(--hl-a))) 48%),
    linear-gradient(180deg, rgba(var(--hollow-rgb), 0) 28%, rgba(var(--hollow-rgb), .22)),
    var(--pc-grain, none);
}
/* Revers : retourné une fois ici, une fois par le rabat ouvert, il se lit à l'endroit au-dessus du papier. */
.pc-env__flap-back {
  clip-path: polygon(0 100%, 100% 100%, 51.5% 45.7%, 50.6% 44.5%, 50% 44.2%, 49.4% 44.5%, 48.5% 45.7%);
  background-color: #F3EADF;
  background-image:
    linear-gradient(0deg, rgba(var(--hollow-rgb), .34), rgba(var(--light-rgb), calc(.55 * var(--hl-a)))),
    var(--pc-grain, none);
  transform: rotateX(180deg);
}
.pc-env__flap-lines {
  transform: translateZ(.4px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Le cachet de cire, à la pointe du rabat : un vrai cachet (createWaxSeal) en deux moitiés découpées
   le long d'une fêlure (clip-path posé par porcelain.js). Il est posé SUR le papier, au-dessus du rabat
   mais hors de son plan 3D : quand le rabat se lève, le cachet fendu monte avec lui et s'efface ;
   s'il retombe (ouverture refusée), le cachet revient une fois le rabat presque refermé.
   Carré sans aspect-ratio (padding-top en % de la largeur) : il tient aussi dans un <button>. */
.pc-env__seal {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 52%;
  width: 19%;
  height: 0;
  padding-top: 19%;
  margin: -9.5% 0 0 -9.5%;
  pointer-events: none;
  transition: transform .18s var(--ease), opacity 420ms ease 380ms;
}
.pc-env--online:not(.is-opening) .pc-env__paper:active .pc-env__seal { transform: scale(.96); }
.pc-env.is-open .pc-env__seal {
  opacity: 0;
  transform: translateY(-120%) scale(.9);
  transition: transform 460ms cubic-bezier(.6, .04, .4, .96), opacity 300ms ease-in;
}
.pc-env__glow {
  position: absolute;
  inset: -36%;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--flower-light) 52%, transparent),
    color-mix(in srgb, var(--flower-light) 16%, transparent) 55%,
    transparent);
  opacity: 0;
  transition: opacity 600ms ease;
}
.pc-env__breath {
  position: absolute;
  inset: 0;
  display: block;
}
/* Vivant ('online', ou 'time' échu) : le cachet est en couleur et respire ; une lettre qui attend son
   heure garde un cachet au repos, grisé et pâle (setAlive, posé par porcelain.js). */
.pc-env--online .pc-env__glow,
.pc-env.is-due .pc-env__glow { opacity: .7; animation: pc-env-glow 4.2s ease-in-out infinite; }
.pc-env--online .pc-env__breath,
.pc-env.is-due .pc-env__breath { animation: pc-env-breath 4.2s ease-in-out infinite; }
.pc-env.is-opening .pc-env__glow { opacity: 0; animation: none; }
.pc-env.is-opening .pc-env__breath { animation: none; }

/* Les deux moitiés du cachet (deux cachets de cire identiques, chacun découpé d'un côté de la fêlure)
   s'écartent en pivotant depuis le bas. Sélecteur à deux classes : il l'emporte sur la taille de .ink-seal. */
.pc-env .pc-env__half {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 90%;
  transition: transform 400ms cubic-bezier(.3, .7, .25, 1), opacity 420ms var(--ease), color 1ms linear;
}
.pc-env.is-cracked .pc-env__half--left { transform: translate(-2.2%, .8%) rotate(-2.5deg); }
.pc-env.is-cracked .pc-env__half--right { transform: translate(2.2%, .8%) rotate(2.5deg); }

.pc-env__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  max-width: 34ch;
  text-align: center;
}
.pc-env__title {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
}
.pc-env__hint {
  margin: 0;
  min-height: 1.5em;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .3px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  color: rgba(var(--ink-rgb), .82);
  transition: opacity var(--mid) var(--ease);
}
.pc-env.is-opening .pc-env__hint { opacity: .4; }

@keyframes pc-env-breath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}
@keyframes pc-env-glow {
  0%, 100% { opacity: .38; transform: scale(.92); }
  50% { opacity: .82; transform: scale(1.04); }
}

/* ─── La bougie ─── */
.pc-candle {
  --pc-candle: 24px;
  position: relative;
  display: inline-block;
  flex: none;
  width: calc(var(--pc-candle) * .6);
  height: var(--pc-candle);
  vertical-align: middle;
}
.pc-candle__base,
.pc-candle__smoke,
.pc-candle__flame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
/* Corps de porcelaine en relief : lumière dorée en haut à gauche, comme --emboss-sm. */
.pc-candle__base {
  filter:
    drop-shadow(-.8px -.8px 1px rgba(var(--light-rgb), calc(.9 * var(--hl-a))))
    drop-shadow(1px 1.4px 1.4px rgba(var(--shadow-rgb), .32));
}
.pc-candle__dish { fill: var(--milk); stroke: rgba(168, 138, 110, .5); stroke-width: .7px; vector-effect: non-scaling-stroke; }
.pc-candle__dish-shadow { fill: rgba(var(--shadow-rgb), .2); }
.pc-candle__body { stroke: rgba(168, 138, 110, .6); stroke-width: .7px; vector-effect: non-scaling-stroke; }
.pc-candle__pool { fill: #EFE3D4; }
.pc-candle__wick {
  fill: none;
  stroke: var(--stem);
  stroke-width: 1.2px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.pc-candle__drip { fill: #FFFDF8; stroke: rgba(168, 138, 110, .45); stroke-width: .5px; vector-effect: non-scaling-stroke; }
.pc-candle__shine { fill: none; stroke: rgba(var(--light-rgb), calc(.95 * var(--hl-a))); stroke-width: 1.2; stroke-linecap: round; }

.pc-candle__halo {
  position: absolute;
  left: 50%;
  top: 26%;
  width: calc(var(--pc-candle) * 1.4);
  height: calc(var(--pc-candle) * 1.4);
  margin: calc(var(--pc-candle) * -.7) 0 0 calc(var(--pc-candle) * -.7);
  border-radius: 50%;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--flower-light) 46%, transparent),
    color-mix(in srgb, var(--flower-light) 14%, transparent) 50%,
    transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}
.pc-candle.is-lit .pc-candle__halo { opacity: .85; animation: pc-candle-glow 2.9s ease-in-out infinite; }

.pc-candle__flame {
  transform-origin: 50% 45%;
  transform: scale(.2);
  opacity: 0;
  transition: opacity 380ms ease, transform 460ms var(--ease);
}
.pc-candle.is-lit .pc-candle__flame { opacity: 1; transform: none; }
.pc-candle__tint-light { stop-color: var(--flower-light); }
.pc-candle__tint { stop-color: var(--flower); }
.pc-candle__core { fill: #FFFFFF; opacity: .55; }
.pc-candle__sway,
.pc-candle__flicker {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.pc-candle.is-lit .pc-candle__sway { animation: pc-candle-sway 3.7s ease-in-out -1.3s infinite; }
.pc-candle.is-lit .pc-candle__flicker { animation: pc-candle-flicker 2.3s ease-in-out infinite; }

.pc-candle__wisp {
  fill: none;
  stroke: rgba(128, 104, 88, .6);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  opacity: 0;
}

@keyframes pc-candle-flicker {
  0%, 100% { transform: scale(1, 1); }
  17% { transform: scale(.95, 1.05); }
  34% { transform: scale(1.03, .96); }
  51% { transform: scale(.97, 1.08); }
  69% { transform: scale(1.02, .97); }
  84% { transform: scale(.96, 1.03); }
}
@keyframes pc-candle-sway {
  0%, 100% { transform: rotate(0deg) skewX(0deg); }
  22% { transform: rotate(-2.6deg) skewX(2deg); }
  45% { transform: rotate(1.6deg) skewX(-1.4deg); }
  63% { transform: rotate(-1.1deg) skewX(.6deg); }
  81% { transform: rotate(2.2deg) skewX(-1deg); }
}
@keyframes pc-candle-glow {
  0%, 100% { opacity: .85; transform: scale(1); }
  38% { opacity: .64; transform: scale(.95); }
  71% { opacity: .95; transform: scale(1.04); }
}

/* ─── L'aube ───
   Sous le texte de la lettre : z-index -1 dans un parent isolé (spécificité nulle, toute règle
   du consommateur l'emporte). Le parent doit être positionné. */
.pc-dawn {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
:where(:has(> .pc-dawn)) { isolation: isolate; }
@supports not selector(:has(*)) {
  .pc-dawn { z-index: 0; mix-blend-mode: multiply; }
}
.pc-dawn__haze,
.pc-dawn__sun {
  position: absolute;
  inset: 0;
}
.pc-dawn__haze {
  background: radial-gradient(150% 92% at 50% 116%,
    color-mix(in srgb, var(--flower-light) 18%, transparent) 0%,
    color-mix(in srgb, var(--flower-light) 8%, transparent) 48%,
    transparent 80%);
}
.pc-dawn__sun {
  background: radial-gradient(52% 40% at 50% 104%,
    color-mix(in srgb, var(--flower-light) 10%, transparent) 0%,
    color-mix(in srgb, var(--flower-light) 4%, transparent) 60%,
    transparent 100%);
}
.pc-dawn.is-fresh .pc-dawn__haze { animation: pc-dawn-rise 2400ms cubic-bezier(.25, .6, .3, 1) both; }
.pc-dawn.is-fresh .pc-dawn__sun { animation: pc-dawn-rise 2100ms cubic-bezier(.3, .55, .3, 1) 300ms both; }
@keyframes pc-dawn-rise {
  from { opacity: 0; transform: translateY(42%); }
  45% { opacity: .75; }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pc-dawn-fade {
  from { opacity: 0; }
}

/* ─── Mouvement réduit (phase 2) ───
   porcelaine.css ramène toutes les durées à 0,01 ms : les fondus voulus ici les reprennent
   (sélecteurs plus précis et !important), sans aucun déplacement. */
@media (prefers-reduced-motion: reduce) {
  .pc-env .pc-env__seal .pc-env__breath,
  .pc-env .pc-env__seal .pc-env__glow { animation: none; }
  .pc-env .pc-env__half,
  .pc-env .pc-env__letter { transform: none !important; }
  .pc-env .pc-env__seal { transform: none !important; transition: opacity 440ms ease !important; }
  .pc-env .pc-env__flap { transform: none !important; transition: opacity 440ms ease !important; }
  .pc-env.is-open .pc-env__flap { z-index: 6; opacity: 0; }
  .pc-env .pc-env__shade { transition: opacity 440ms ease !important; }
  .pc-env.is-gone { transform: none; transition: opacity 500ms ease !important; }

  .pc-candle.is-lit .pc-candle__sway,
  .pc-candle.is-lit .pc-candle__flicker,
  .pc-candle.is-lit .pc-candle__halo { animation: none; }
  .pc-candle .pc-candle__flame { transform: none; transition: opacity 400ms ease !important; }

  .pc-dawn.is-fresh .pc-dawn__haze,
  .pc-dawn.is-fresh .pc-dawn__sun { animation: pc-dawn-fade 1200ms ease both !important; }
}
