:root {
  --nuit: #07080d;
  --encre: #10141f;
  --or: #c6a15a;
  --or-clair: #f0e2c0;
  --creme: #f4efe6;
  --encre-papier: #241c16;
  --rose: #d7a3ad;
  --danger: #e7b4b0;
  --ligne: rgba(198, 161, 90, 0.35);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Outfit, "Segoe UI", sans-serif;
}

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

html {
  background: var(--nuit);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--creme);
  font-family: var(--sans);
  font-weight: 300;
  background:
    radial-gradient(ellipse at top, rgba(198, 161, 90, 0.16), transparent 46%),
    var(--nuit);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("images/soie.png") center / cover no-repeat;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(7, 8, 13, 0.55) 58%, var(--nuit) 100%);
  pointer-events: none;
  z-index: 0;
}

main,
.dock,
dialog {
  position: relative;
  z-index: 1;
}

.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.14;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 4;
}

::selection {
  background: var(--or);
  color: #1a140c;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
}

.screen {
  display: none;
  min-height: 100dvh;
}

.screen.is-active {
  display: block;
}

#ecran-coffre.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 36px;
}

.layout {
  width: min(1080px, 100%);
  display: grid;
  gap: 28px;
  justify-items: center;
}

.kicker {
  margin: 0 0 8px;
  color: var(--or);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
}

h1,
h2,
.phrase,
.poeme,
.signature,
.dock-brand {
  font-family: var(--serif);
  font-weight: 500;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 16vw, 6.2rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(2.3rem, 8vw, 3.6rem);
  line-height: 0.95;
}

.lead {
  margin: 14px 0 0;
  max-width: 38ch;
  color: rgba(244, 239, 230, 0.78);
  font-size: 1.02rem;
  line-height: 1.65;
}

.lead.sombre {
  max-width: 46ch;
}

.whisper {
  margin: 14px 0 0;
  color: rgba(240, 226, 192, 0.55);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.repli {
  width: 100%;
  margin-top: 18px;
  text-align: left;
}

.repli summary {
  cursor: pointer;
  color: rgba(240, 226, 192, 0.62);
  font-size: 0.85rem;
}

.ecrire-lien {
  margin-top: 18px;
}

.vault-float {
  width: min(86vw, 440px);
  animation: flotter 7s ease-in-out infinite;
}

.vault-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  perspective: 1400px;
}

.vault-scene.shake {
  animation: secousse 0.48s ease;
}

.halo {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 68%, rgba(240, 226, 192, 0.95) 82%, transparent 94%);
  animation: tourner 9s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 64.5% 67%, transparent 69%);
  mask: radial-gradient(circle, transparent 62%, #000 64.5% 67%, transparent 69%);
}

.vault-glow {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 214, 140, 0.2), transparent 62%),
    url("images/lumiere-coffre.png") 16% center / 190% auto no-repeat;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.6s ease 0.15s, transform 1.1s ease;
  box-shadow: 0 0 80px rgba(232, 176, 74, 0.35);
}

.vault-scene.is-open {
  animation: none;
}

.vault-scene.is-open .halo {
  opacity: 0;
}

.vault-scene.is-open .vault-glow {
  opacity: 1;
  transform: scale(1);
}

.door {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  transform-origin: 4% 50%;
  transform-style: preserve-3d;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(240, 226, 192, 0.28);
  transition: transform 1.35s cubic-bezier(0.7, 0.02, 0.18, 1);
}

.door img {
  width: 128%;
  height: 128%;
  max-width: none;
  margin: -14%;
  object-fit: cover;
  display: block;
}

.door.spin {
  animation: molette 0.9s cubic-bezier(0.15, 0.7, 0.2, 1);
}

.vault-scene.is-open .door {
  transform: rotateY(-108deg);
}

.dial {
  position: absolute;
  inset: 33%;
  border-radius: 50%;
  border: 1px dashed rgba(240, 226, 192, 0.7);
  pointer-events: none;
  transition: transform 0.25s ease;
}

.dial::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--or-clair);
  box-shadow: 0 0 12px var(--or-clair);
}

.intro {
  width: min(100%, 460px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro .lead {
  margin-inline: auto;
}

.panel,
#form-conditions,
#form-phrase,
#form-titulaire {
  width: 100%;
}

.panel {
  margin-top: 22px;
  text-align: left;
}

label,
.label-note {
  display: block;
  margin: 14px 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 226, 192, 0.78);
}

input[type="password"],
input[type="text"],
input[type="date"],
textarea {
  width: 100%;
  border: 1px solid var(--ligne);
  background: rgba(8, 10, 16, 0.62);
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 16px;
  outline: none;
}

textarea {
  border-radius: 18px;
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
textarea:focus {
  border-color: var(--or-clair);
  box-shadow: 0 0 0 3px rgba(198, 161, 90, 0.18);
}

.erreur {
  min-height: 1.2em;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 0.92rem;
}

.btn {
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  padding: 15px 18px;
  background: linear-gradient(180deg, #f0e2c0, #b8924e);
  color: #1c160f;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.btn.sombre {
  background: #172033;
  color: var(--or-clair);
  border: 1px solid var(--ligne);
}

.btn.ghost {
  background: transparent;
  color: var(--or-clair);
  border: 1px solid var(--ligne);
}

.wrap {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 32px 20px 120px;
}

.wrap.etroit {
  width: min(640px, 100%);
}

.wrap.large {
  width: min(1080px, 100%);
}

.sceau {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.compteur {
  margin: 18px 0 8px;
  color: var(--or-clair);
  letter-spacing: 0.22em;
  font-size: 0.78rem;
}

.promise {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--ligne);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
}

.promise input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.coche {
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid var(--or);
  display: grid;
  place-items: center;
}

.promise input:checked + .coche {
  background: linear-gradient(180deg, #f0e2c0, #b8924e);
  border-color: transparent;
}

.promise input:checked + .coche::after {
  content: "";
  width: 7px;
  height: 12px;
  border: solid #1c160f;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}

.promise input:focus-visible + .coche {
  outline: 2px solid var(--creme);
  outline-offset: 3px;
}

.promise:has(input:checked) {
  border-color: rgba(240, 226, 192, 0.7);
  background: rgba(198, 161, 90, 0.08);
}

.promesse-titre,
.promesse-corps {
  display: block;
}

.promesse-titre {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--creme);
}

.promesse-corps {
  margin-top: 4px;
  color: rgba(244, 239, 230, 0.8);
  line-height: 1.45;
  font-size: 1.02rem;
  letter-spacing: normal;
  text-transform: none;
}

.accepter-bar {
  padding-top: 8px;
}

.parachute-scene {
  text-align: center;
  padding-bottom: 48px;
}

.chute-stage {
  position: relative;
  height: min(52vh, 420px);
  margin: 8px auto 6px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(198, 161, 90, 0.12), transparent 55%),
    linear-gradient(180deg, #1a2540 0%, #0e121f 45%, #07080d 100%);
  border: 1px solid var(--ligne);
}

.chute-ciel {
  position: absolute;
  inset: -40% 0;
  pointer-events: none;
}

.chute-nuages {
  position: absolute;
  inset: 0;
  background-repeat: repeat-y;
  background-size: 100% 220px;
  opacity: 0.55;
}

.chute-nuages-a {
  background-image:
    radial-gradient(circle at 18% 40px, rgba(255, 255, 255, 0.09), transparent 38%),
    radial-gradient(circle at 72% 120px, rgba(255, 255, 255, 0.07), transparent 34%),
    radial-gradient(circle at 44% 190px, rgba(255, 255, 255, 0.05), transparent 36%);
  animation: ciel-descend 7s linear infinite;
}

.chute-nuages-b {
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 62% 60px, rgba(240, 226, 192, 0.08), transparent 32%),
    radial-gradient(circle at 28% 160px, rgba(255, 255, 255, 0.06), transparent 30%);
  animation: ciel-descend 4.5s linear infinite;
}

.chute-vent {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.chute-vent i {
  position: absolute;
  left: var(--x, 50%);
  top: -20%;
  width: 2px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(240, 226, 192, 0.35), transparent);
  opacity: 0.45;
  animation: vent-descend var(--d, 1.6s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.chute-vent i:nth-child(1) { --x: 12%; --d: 1.4s; --delay: 0s; }
.chute-vent i:nth-child(2) { --x: 28%; --d: 1.9s; --delay: 0.2s; }
.chute-vent i:nth-child(3) { --x: 44%; --d: 1.2s; --delay: 0.45s; }
.chute-vent i:nth-child(4) { --x: 58%; --d: 1.7s; --delay: 0.1s; }
.chute-vent i:nth-child(5) { --x: 74%; --d: 1.5s; --delay: 0.55s; }
.chute-vent i:nth-child(6) { --x: 88%; --d: 2s; --delay: 0.3s; }

.chute-sticker {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  width: min(78%, 280px);
  margin: 0;
  transform: translateX(-50%) translateY(-38%);
  animation: parachute-descend 5.2s linear infinite;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.45));
  will-change: transform;
}

.chute-sticker img {
  width: 100%;
  height: auto;
  display: block;
  animation: chute-balance 1.8s ease-in-out infinite;
}

.chute-replique {
  margin: 18px auto 10px;
  max-width: 34ch;
  padding: 16px 18px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ligne);
  animation: rise 0.8s ease 0.35s both;
}

.chute-replique p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 4.2vw, 1.75rem);
  line-height: 1.28;
}

.chute-replique cite {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 226, 192, 0.62);
}

.chute-sous {
  margin: 0 auto 16px;
  max-width: 36ch;
}

#continuer-parachute {
  max-width: 320px;
  margin-inline: auto;
}

@keyframes parachute-descend {
  0% { transform: translateX(-50%) translateY(-38%) rotate(-3deg); }
  100% { transform: translateX(-50%) translateY(88%) rotate(3deg); }
}

@keyframes chute-balance {
  0%,
  100% { transform: rotate(-5deg) scale(1); }
  50% { transform: rotate(5deg) scale(1.02); }
}

@keyframes ciel-descend {
  0% { transform: translateY(-20%); }
  100% { transform: translateY(20%); }
}

@keyframes vent-descend {
  0% { transform: translateY(-30%) scaleY(0.7); opacity: 0; }
  15% { opacity: 0.5; }
  100% { transform: translateY(130%) scaleY(1.15); opacity: 0; }
}

.papier {
  margin-top: 18px;
  padding: 26px 20px 22px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(241, 232, 216, 0.98));
  color: var(--encre-papier);
  color-scheme: light;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.papier time {
  display: block;
  text-align: center;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #8a7044;
}

.phrase {
  margin: 18px 0 8px;
  text-align: center;
  font-style: italic;
  font-size: clamp(1.65rem, 4.6vw, 2.45rem);
  line-height: 1.22;
}

.phrases-du-jour {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 18px 0 8px;
}

.phrase-bloc {
  text-align: center;
}

.phrase-bloc + .phrase-bloc {
  padding-top: 18px;
  border-top: 1px solid rgba(125, 101, 64, 0.22);
}

.auteur-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.65rem;
  font-family: var(--sans);
  font-weight: 500;
}

.auteur-badge.zakaria {
  background: rgba(23, 32, 51, 0.08);
  color: #172033;
}

.auteur-badge.anyssa {
  background: rgba(139, 58, 98, 0.12);
  color: #6b2d4d;
}

.phrase-bloc .phrase {
  margin: 0;
}

.fiche-auteurs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 10px 0 0;
}

.fiche-voix {
  margin: 0;
}

.fiche-voix .auteur-badge {
  margin-bottom: 6px;
}

.papier .vide {
  text-align: center;
  line-height: 1.55;
  color: #5c4e3e;
}

.papier label,
.papier .label-note {
  color: #7d6540;
}

.notes-dix {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.notes-dix button {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(125, 101, 64, 0.45);
  background: transparent;
  color: var(--encre-papier);
  font-family: var(--serif);
  font-size: 1.2rem;
  cursor: pointer;
}

.notes-dix button[aria-pressed="true"] {
  background: #172033;
  color: var(--or-clair);
  border-color: #172033;
}

.notes-dix.shake {
  animation: secousse 0.45s ease;
}

.deja {
  min-height: 1.2em;
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: #6d5838;
}

.demain {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(125, 101, 64, 0.22);
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 3.8vw, 1.45rem);
  line-height: 1.35;
  color: #5c4a32;
  animation: rise 0.7s ease both;
}

.papier textarea {
  background: rgba(255, 255, 255, 0.72);
  color: var(--encre-papier);
  border-color: rgba(80, 60, 30, 0.18);
}

.suite {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  justify-content: space-between;
  margin-top: 18px;
}

.lien {
  border: 0;
  padding: 0;
  background: none;
  color: var(--or-clair);
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lien.discret {
  color: rgba(244, 239, 230, 0.62);
}

.bouquet-grid {
  display: grid;
  gap: 18px;
}

.bouquet-visual {
  margin: 0;
}

.bouquet-visual img {
  width: 100%;
  height: auto;
  display: block;
  animation: flotter 6.5s ease-in-out infinite;
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.45));
}

.poeme {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  font-style: italic;
  line-height: 1.35;
}

.signature {
  margin: 8px 0 18px;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--or-clair);
}

.signature::before {
  content: "— ";
}

.carnet {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.fiche {
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid var(--ligne);
  background: rgba(255, 255, 255, 0.03);
}

.fiche time {
  color: var(--or);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.fiche-phrase {
  margin: 8px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.3;
}

.fiche-meta {
  margin: 0 0 10px;
  color: rgba(244, 239, 230, 0.75);
  line-height: 1.45;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  justify-content: space-around;
  gap: 4px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(7, 8, 13, 0.88);
  border-top: 1px solid var(--ligne);
  backdrop-filter: blur(16px);
}

.dock[hidden] {
  display: none !important;
}

.dock-brand {
  display: none;
  font-style: italic;
  font-size: 1.35rem;
}

.dock button {
  border: 0;
  background: transparent;
  color: rgba(244, 239, 230, 0.68);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 500;
  padding: 12px 6px;
  cursor: pointer;
  white-space: nowrap;
}

.dock button[aria-current="page"] {
  color: var(--or-clair);
}

dialog {
  width: min(540px, calc(100vw - 24px));
  border: 1px solid var(--ligne);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at top, rgba(198, 161, 90, 0.16), transparent 50%),
    #121826;
  color: var(--creme);
  padding: 22px 18px 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(7px);
}

.fermer {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--creme);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.plume-liste {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.plume-liste article {
  padding-top: 10px;
  border-top: 1px solid var(--ligne);
}

.plume-liste p {
  margin: 4px 0;
  line-height: 1.4;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 30;
  transform: translateX(-50%) translateY(12px);
  max-width: min(90vw, 420px);
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--creme);
  color: var(--encre-papier);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.petal {
  position: fixed;
  top: -12vh;
  z-index: 6;
  width: 14px;
  height: 18px;
  border-radius: 80% 0 80% 0;
  background: radial-gradient(circle at 30% 30%, #f8e1e4, #9a3d52);
  pointer-events: none;
  animation: chute linear forwards;
}

.petal.or {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff8e4, #c6a15a);
}

@keyframes flotter {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes tourner {
  to { transform: rotate(360deg); }
}

@keyframes molette {
  to { transform: rotate(520deg); }
}

@keyframes secousse {
  0%,
  100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}

@keyframes chute {
  to {
    transform: translateY(110vh) rotate(220deg);
    opacity: 0.2;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 799px) {
  .vault-float {
    width: min(68vw, 300px);
  }

  .vault-float.is-pinned {
    animation: none !important;
    pointer-events: none;
  }

  #ecran-coffre.is-active {
    align-items: flex-start;
    justify-content: flex-start;
    padding: max(12px, env(safe-area-inset-top)) 16px 20px;
    min-height: 100dvh;
    min-height: 100svh;
  }

  body.coffre-clavier {
    overflow: hidden;
    position: fixed;
    inset: 0;
    width: 100%;
  }

  body.coffre-clavier #ecran-coffre.is-active {
    overflow: hidden;
    height: 100%;
    max-height: 100dvh;
    max-height: 100svh;
  }

  body.coffre-clavier #ecran-coffre .layout {
    gap: 8px;
  }

  body.coffre-clavier #ecran-coffre .intro .kicker,
  body.coffre-clavier #ecran-coffre .intro .lead,
  body.coffre-clavier #ecran-coffre .whisper,
  body.coffre-clavier #ecran-coffre .repli,
  body.coffre-clavier #ecran-coffre .ecrire-lien {
    display: none;
  }

  body.coffre-clavier #ecran-coffre .intro h1 {
    font-size: clamp(2.35rem, 11vw, 3rem);
    line-height: 0.92;
    margin-bottom: 2px;
  }

  body.coffre-clavier #ecran-coffre .panel {
    margin-top: 8px;
  }

  #vault-spacer {
    width: min(68vw, 300px);
    margin: 0 auto;
  }

  #vault-spacer[hidden] {
    display: none;
  }

  .layout {
    gap: 14px;
  }
}

@media (min-width: 520px) {
  .notes-dix {
    grid-template-columns: repeat(10, 1fr);
  }
}

@media (min-width: 860px) {
  .layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    justify-items: stretch;
  }

  .intro {
    align-items: flex-start;
    text-align: left;
  }

  .intro .lead,
  .whisper {
    text-align: left;
    margin-left: 0;
  }

  .bouquet-grid {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 48px;
    align-items: center;
  }

  .bouquet-visual {
    order: 2;
  }

  .bouquet-visual img {
    max-height: 74vh;
    width: auto;
    margin-left: auto;
  }
}

@media (min-width: 800px) {
  .dock {
    top: 0;
    bottom: auto;
    justify-content: flex-end;
    gap: 6px;
    padding: 14px 28px;
    border-top: 0;
    border-bottom: 1px solid var(--ligne);
  }

  .dock-brand {
    display: block;
    margin-right: auto;
    color: var(--creme);
  }

  .dock button {
    font-size: 11px;
    padding: 10px 12px;
  }

  body.has-nav .wrap {
    padding-top: 108px;
    padding-bottom: 64px;
  }

  .toast {
    bottom: 28px;
  }
}

@media (max-width: 799px) {
  body.has-nav .toast {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
}

@media (hover: hover) {
  .btn:not(:disabled):hover {
    filter: brightness(1.06);
  }

  .dock button:hover,
  .lien:hover {
    color: white;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .chute-sticker {
    transform: translateX(-50%) translateY(20%);
    animation: none !important;
  }

  .chute-vent,
  .chute-nuages {
    animation: none !important;
  }
}
