/* ==================================================================
   Calendrier de l'Avent — styles
   ================================================================== */

:root {
  --bg: #050813;
  --bg-2: #0a1026;
  --ink: #eef3ff;
  --muted: #98a5c6;
  --muted-2: #6f7b9c;
  --gold: #ffd479;
  --pink: #f472b6;
  --violet: #a78bfa;
  --sky: #38bdf8;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-2: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-soft: rgba(255, 255, 255, 0.07);
  --radius: 22px;
  --shadow: 0 30px 80px -32px rgba(0, 0, 0, 0.95);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Avenir Next", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Inter, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.2, 0.9, 0.25, 1.25);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  touch-action: manipulation;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

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

/* ---------------------------- Décor de fond ---------------------------- */

.bg {
  position: fixed;
  inset: -20vmax;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(56, 189, 248, 0.2), transparent 70%),
    radial-gradient(45% 40% at 82% 8%, rgba(244, 114, 182, 0.16), transparent 70%),
    radial-gradient(50% 45% at 50% 100%, rgba(167, 139, 250, 0.16), transparent 70%),
    linear-gradient(180deg, #070b1a 0%, #050813 55%, #03050c 100%);
}

.bg__blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  will-change: transform;
  animation: drift 26s ease-in-out infinite alternate;
}

.bg__blob--1 {
  top: -14vmax;
  left: -8vmax;
  background: radial-gradient(circle, #1d4ed8 0%, transparent 65%);
}
.bg__blob--2 {
  top: 6vmax;
  right: -14vmax;
  background: radial-gradient(circle, #be185d 0%, transparent 65%);
  animation-duration: 32s;
  animation-delay: -8s;
}
.bg__blob--3 {
  bottom: -22vmax;
  left: 22vmax;
  background: radial-gradient(circle, #6d28d9 0%, transparent 65%);
  animation-duration: 29s;
  animation-delay: -14s;
}
.bg__blob--4 {
  bottom: -10vmax;
  right: 4vmax;
  background: radial-gradient(circle, #0e7490 0%, transparent 65%);
  animation-duration: 35s;
  animation-delay: -4s;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(4vmax, 3vmax, 0) scale(1.12);
  }
  100% {
    transform: translate3d(-3vmax, 5vmax, 0) scale(0.94);
  }
}

.fx-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#snow {
  z-index: 1;
  opacity: 0.85;
}

#confetti {
  z-index: 80;
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

:focus-visible {
  outline: 2px solid rgba(255, 212, 121, 0.75);
  outline-offset: 3px;
}

/* ------------------------------- Héros -------------------------------- */

.hero {
  padding: clamp(28px, 6vh, 72px) clamp(18px, 5vw, 64px) clamp(10px, 2vh, 24px);
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: clamp(0.68rem, 1.1vw, 0.78rem);
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  backdrop-filter: blur(10px);
}

.hero__eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.7);
  }
}

.title {
  margin: clamp(14px, 2.2vh, 26px) 0 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6.6vw, 5.4rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.035em;
  background: linear-gradient(100deg, #ffffff 0%, #ffe6a8 22%, #ffb3dc 45%, #b6a6ff 68%, #9fe4ff 88%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 12s linear infinite;
  filter: drop-shadow(0 8px 40px rgba(255, 212, 121, 0.18));
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}

.subtitle {
  margin: clamp(10px, 1.6vh, 18px) auto 0;
  max-width: 46ch;
  font-size: clamp(0.95rem, 1.9vw, 1.15rem);
  line-height: 1.5;
  color: var(--muted);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(16px, 2.4vh, 26px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke-soft);
  background: rgba(255, 255, 255, 0.045);
  font-size: clamp(0.75rem, 1.3vw, 0.85rem);
  color: var(--muted);
  backdrop-filter: blur(8px);
}

.chip b {
  color: var(--ink);
  font-weight: 650;
}

.chip--demo {
  border-color: rgba(255, 212, 121, 0.35);
  color: #ffe0a3;
  background: rgba(255, 212, 121, 0.08);
}

/* ------------------------------- CTA ---------------------------------- */

.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: clamp(20px, 3.4vh, 34px) 0 clamp(6px, 1vh, 12px);
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 34px;
  min-height: clamp(58px, 8vh, 72px);
  border-radius: 999px;
  background: linear-gradient(120deg, #ffe3a1 0%, #ffb3d1 48%, #a9e6ff 100%);
  color: #0a1024;
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.18rem);
  letter-spacing: -0.01em;
  box-shadow:
    0 18px 45px -18px rgba(255, 179, 209, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s;
  overflow: hidden;
  isolation: isolate;
}

.cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-18deg);
  animation: sweep 4.5s ease-in-out infinite;
}

@keyframes sweep {
  0%,
  55% {
    left: -60%;
  }
  85%,
  100% {
    left: 130%;
  }
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 24px 60px -18px rgba(255, 179, 209, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.cta:active {
  transform: translateY(1px) scale(0.99);
}

.cta[data-disabled="true"] {
  filter: saturate(0.35) brightness(0.72);
  cursor: not-allowed;
  box-shadow: none;
}

.cta[data-disabled="true"]::after {
  animation: none;
}

.cta__icon {
  font-size: 1.35em;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.cta__hint {
  font-size: 0.8rem;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

/* ---------------------------- Calendrier ------------------------------ */

.calendar-wrap {
  flex: 1;
  padding: clamp(10px, 2vh, 22px) clamp(14px, 4vw, 56px) clamp(24px, 5vh, 56px);
}

.calendar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: clamp(9px, 1.4vw, 18px);
  max-width: 1180px;
  margin: 0 auto;
}

.day {
  --tint: #8b9cff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 0.82;
  padding: clamp(8px, 1.1vw, 14px);
  border-radius: clamp(14px, 1.6vw, 20px);
  border: 1px solid var(--stroke);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.015) 55%),
    rgba(9, 14, 33, 0.55);
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(9px);
  overflow: hidden;
  isolation: isolate;
  text-align: left;
  transition:
    transform 0.4s var(--ease-spring),
    border-color 0.35s,
    box-shadow 0.35s;
}

.day::before {
  content: "";
  position: absolute;
  inset: -30% -30% auto -30%;
  height: 110%;
  background: radial-gradient(closest-side, var(--tint), transparent 72%);
  opacity: 0.16;
  pointer-events: none;
  transition: opacity 0.35s;
}

.day::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.5), transparent 38%, transparent 62%, var(--tint));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.day:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 26px 50px -26px rgba(0, 0, 0, 1);
}

.day:hover::before {
  opacity: 0.3;
}
.day:hover::after {
  opacity: 1;
}

.day__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: clamp(0.52rem, 0.85vw, 0.64rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  position: relative;
  z-index: 1;
}

.day__label {
  font-weight: 700;
}

.day__num {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  padding-left: 2px;
}

.day__num small {
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted-2);
  margin-left: 3px;
}

.day__people {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 2px;
  align-items: center;
  min-height: 20px;
}

.day__chip {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 2px 1px;
  border-radius: 7px;
  font-size: clamp(0.44rem, 0.62vw, 0.56rem);
  line-height: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}

.day__chip b {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: 1.05em;
}

.day__chip--empty {
  opacity: 0.62;
  background: rgba(255, 255, 255, 0.035);
  border-color: transparent;
}

.day__lock {
  font-size: 0.9em;
  opacity: 0.6;
}

/* états */
.day[data-status="locked"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.day[data-status="locked"] .day__num {
  color: var(--muted-2);
}

.day[data-status="locked"]:hover {
  transform: none;
}

.day[data-status="today"] {
  border-color: rgba(255, 212, 121, 0.65);
  box-shadow:
    0 0 0 1px rgba(255, 212, 121, 0.35),
    0 0 42px -6px rgba(255, 212, 121, 0.45),
    0 26px 50px -30px #000;
  animation: todayGlow 2.8s ease-in-out infinite;
}

@keyframes todayGlow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 212, 121, 0.3),
      0 0 32px -8px rgba(255, 212, 121, 0.35),
      0 26px 50px -30px #000;
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 212, 121, 0.7),
      0 0 60px -4px rgba(255, 212, 121, 0.6),
      0 26px 50px -30px #000;
  }
}

.day[data-status="today"] .day__label {
  color: var(--gold);
}

.day__flag {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  font-size: clamp(0.5rem, 0.8vw, 0.6rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: linear-gradient(120deg, #ffe3a1, #ffb3d1);
  color: #1a1024;
  box-shadow: 0 4px 14px rgba(255, 179, 209, 0.45);
}

.day[data-status="opened"] {
  border-color: rgba(255, 255, 255, 0.16);
}

.day[data-status="opened"] .day__lock {
  color: #6ee7b7;
}

.day.is-shaking {
  animation: shake 0.45s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-7px) rotate(-1deg);
  }
  40% {
    transform: translateX(6px) rotate(1deg);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(3px);
  }
}

/* --------------------------- Overlay de jour --------------------------- */

.reveal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(110% 80% at 50% -10%, #1a2450 0%, #0b1230 38%, #050813 78%);
  opacity: 0;
  transition: opacity 0.45s ease;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.reveal.is-open {
  opacity: 1;
}

.reveal__rays {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 170vmax;
  height: 170vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.09) 0deg 2.2deg,
    transparent 2.2deg 12deg
  );
  -webkit-mask-image: radial-gradient(closest-side, #000 12%, transparent 62%);
  mask-image: radial-gradient(closest-side, #000 12%, transparent 62%);
  animation: spin 90s linear infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.reveal.is-open .reveal__rays {
  opacity: 0.55;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.reveal__glow {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 70vmin;
  height: 70vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 212, 121, 0.28), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
  opacity: 0;
}

.reveal.is-open .reveal__glow {
  animation: glowPulse 4s ease-in-out 0.2s infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.14);
  }
}

.reveal__head {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(16px, 3.6vh, 40px) 20px 0;
  flex: 0 0 auto;
}

.reveal__kicker {
  font-size: clamp(0.6rem, 1.4vw, 0.74rem);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
}

.reveal__num {
  font-family: var(--display);
  font-size: clamp(4rem, 13vh, 9.5rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #fff 10%, #ffe3a1 55%, #ffb3d1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 40px rgba(255, 179, 209, 0.35));
  transform: scale(0.5) rotateX(70deg);
  opacity: 0;
}

.reveal.is-open .reveal__num {
  animation: numberIn 1s var(--ease-spring) 0.1s forwards;
}

@keyframes numberIn {
  0% {
    transform: scale(0.4) rotateX(80deg);
    opacity: 0;
    filter: blur(14px);
  }
  70% {
    transform: scale(1.08) rotateX(0deg);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: scale(1) rotateX(0deg);
    opacity: 1;
  }
}

.reveal__date {
  margin-top: clamp(4px, 0.8vh, 10px);
  font-size: clamp(0.8rem, 1.6vw, 0.98rem);
  color: var(--muted);
  letter-spacing: 0.02em;
  opacity: 0;
}

.reveal.is-open .reveal__date {
  animation: fadeUp 0.7s var(--ease-out) 0.5s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal__grid {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 22px);
  align-content: center;
  padding: clamp(12px, 2.4vh, 26px) clamp(14px, 4vw, 56px);
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  min-height: 0;
}

/* ------------------------------ Cartes cadeau ------------------------- */

.gift {
  --accent: #ffd479;
  --accent2: #f472b6;
  position: relative;
  height: clamp(168px, 30vh, 300px);
  perspective: 1400px;
  opacity: 0;
  transform: translateY(34px) scale(0.86);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.7s var(--ease-spring);
}

.gift.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gift__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.95s cubic-bezier(0.3, 0.9, 0.25, 1);
}

.gift.is-flipped .gift__inner {
  transform: rotateY(180deg);
}

.gift__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.8vh, 10px);
  padding: clamp(10px, 1.4vw, 20px);
  border-radius: clamp(16px, 2vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.12), transparent 62%),
    linear-gradient(170deg, rgba(20, 28, 62, 0.95), rgba(8, 12, 28, 0.96));
  box-shadow:
    0 26px 60px -30px #000,
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
  text-align: center;
}

.gift__face::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -40%;
  width: 120%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent), transparent 68%);
  opacity: 0.18;
  pointer-events: none;
}

.gift__face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, var(--accent), transparent 45%, transparent 60%, var(--accent2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}

.gift__front {
  cursor: pointer;
}

.gift__emoji {
  position: relative;
  z-index: 1;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
  animation: bob 3.6s ease-in-out infinite;
}

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

.gift__who {
  position: relative;
  z-index: 1;
  font-size: clamp(0.62rem, 1.2vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.gift__num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: clamp(2px, 0.6vh, 8px) 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  text-shadow: 0 0 34px rgba(255, 255, 255, 0.25);
}

.gift__num span {
  font-size: 0.36em;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}

.gift__num b {
  font-size: 1em;
  background: linear-gradient(180deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.gift__mystery {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: clamp(46px, 7.2vw, 82px);
  height: clamp(46px, 7.2vw, 82px);
  margin: clamp(1px, 0.4vh, 6px) 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.16), transparent 68%),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    0 0 34px -12px var(--accent),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 22px var(--accent);
  animation: mysteryPulse 2.6s ease-in-out infinite;
}

@keyframes mysteryPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 30px -12px var(--accent),
      inset 0 0 20px rgba(255, 255, 255, 0.05);
  }
  50% {
    transform: scale(1.06);
    box-shadow:
      0 0 46px -8px var(--accent),
      inset 0 0 26px rgba(255, 255, 255, 0.08);
  }
}

.gift__hint {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.58rem, 1vw, 0.7rem);
  color: var(--muted-2);
  letter-spacing: 0.06em;
}

.gift__hint::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 1.8s ease-in-out infinite;
}

.gift__back {
  transform: rotateY(180deg);
  justify-content: center;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 212, 121, 0.16), transparent 62%),
    linear-gradient(170deg, rgba(24, 30, 66, 0.98), rgba(8, 12, 28, 0.98));
}

.gift__back .gift__who {
  color: var(--accent);
}

.gift__text {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(0.95rem, 1.75vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 20ch;
  text-wrap: balance;
}

.gift__check {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(110, 231, 183, 0.16);
  color: #6ee7b7;
  font-size: 0.7rem;
  border: 1px solid rgba(110, 231, 183, 0.35);
}

.gift.is-flipped .gift__face {
  box-shadow:
    0 26px 60px -30px #000,
    0 0 42px -12px var(--accent);
}

.reveal__foot {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  padding: 0 20px clamp(14px, 3vh, 34px);
}

.reveal__tip {
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-weight: 650;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
  transition:
    transform 0.3s var(--ease-spring),
    background 0.25s,
    border-color 0.25s;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn--gold {
  border: 0;
  background: linear-gradient(120deg, #ffe3a1, #ffb3d1);
  color: #140f22;
  box-shadow: 0 16px 40px -20px rgba(255, 179, 209, 0.8);
}

.btn--gold:hover {
  background: linear-gradient(120deg, #ffeec0, #ffc6de);
}

.btn--ghost {
  background: transparent;
}

.btn--small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.8rem;
}

.icon-btn {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 1.05rem;
  transition: background 0.25s, transform 0.25s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

/* ------------------------------- Toast -------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(14, 20, 44, 0.92);
  backdrop-filter: blur(14px);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 20px 50px -20px #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.35s var(--ease-spring);
  max-width: calc(100vw - 40px);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast--success {
  border-color: rgba(110, 231, 183, 0.4);
  color: #c9ffe9;
}

.toast--error {
  border-color: rgba(248, 113, 113, 0.45);
  color: #ffd1d1;
}

/* ------------------------------ Footer -------------------------------- */

.footer {
  padding: 0 clamp(16px, 4vw, 56px) calc(22px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--muted-2);
}

.footer a {
  text-decoration: none;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.footer a:hover {
  color: var(--ink);
  border-color: var(--stroke);
  background: rgba(255, 255, 255, 0.04);
}

/* ==================================================================
   ADMIN
   ================================================================== */

.page--admin .bg__blob {
  opacity: 0.28;
}

.admin {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(18px, 3.4vh, 40px) clamp(14px, 3vw, 32px) 60px;
  width: 100%;
  flex: 1;
}

.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(18px, 3vh, 30px);
}

.admin-head__title {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.admin-head__sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-head__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.save-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 650;
  color: #9df5d3;
  border: 1px solid rgba(110, 231, 183, 0.28);
  background: rgba(110, 231, 183, 0.08);
  transition: opacity 0.3s;
}

.save-state__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 10px #6ee7b7;
}

/* écran de verrouillage */
.gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 7, 16, 0.82);
  backdrop-filter: blur(16px);
}

.gate__card {
  width: min(420px, 100%);
  padding: clamp(22px, 4vw, 36px);
  border-radius: 26px;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(244, 114, 182, 0.14), transparent 60%),
    rgba(10, 15, 34, 0.94);
  box-shadow: var(--shadow);
  text-align: center;
}

.gate__icon {
  font-size: 2.2rem;
}

.gate__title {
  margin: 10px 0 4px;
  font-size: 1.4rem;
  font-family: var(--display);
  letter-spacing: -0.02em;
}

.gate__text {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.pin-input {
  width: 100%;
  height: 62px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: 0.6em;
  text-indent: 0.6em;
  font-weight: 700;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.pin-input:focus {
  border-color: rgba(255, 212, 121, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 212, 121, 0.14);
}

.gate__error {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: #ff9b9b;
  opacity: 0;
  transition: opacity 0.2s;
}

.gate__error.is-visible {
  opacity: 1;
}

.gate__hint {
  margin-top: 16px;
  font-size: 0.72rem;
  color: var(--muted-2);
}

/* onglets */
.tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--stroke-soft);
  background: rgba(255, 255, 255, 0.035);
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 18px;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 11px;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}

.tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.tab.is-active {
  color: #0f1424;
  background: linear-gradient(120deg, #ffe3a1, #ffb3d1);
  box-shadow: 0 8px 22px -12px rgba(255, 179, 209, 0.9);
}

.panel {
  border-radius: var(--radius);
  border: 1px solid var(--stroke-soft);
  background: rgba(12, 18, 40, 0.55);
  backdrop-filter: blur(12px);
  padding: clamp(14px, 2.4vw, 26px);
  box-shadow: 0 24px 60px -46px #000;
}

.panel + .panel {
  margin-top: 16px;
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.panel__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.panel__hint {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--muted-2);
  line-height: 1.5;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* planning */
.plan {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan__row {
  display: grid;
  grid-template-columns: 72px repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.plan__row:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--stroke-soft);
}

.plan__row--head {
  padding-top: 0;
  padding-bottom: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.plan__row--head:hover {
  background: none;
  border-color: transparent;
}

.plan__day {
  font-weight: 750;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.plan__day b {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--stroke-soft);
  color: var(--ink);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.plan__day.is-today b {
  background: linear-gradient(120deg, #ffe3a1, #ffb3d1);
  color: #171024;
  border-color: transparent;
}

.plan__person {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  min-width: 0;
}

.plan__person span {
  font-size: 1rem;
}

/* formulaires */
.select,
.input,
.textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid var(--stroke-soft);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 0.84rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
  cursor: pointer;
}

.select option {
  background: #10162e;
  color: var(--ink);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(255, 212, 121, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 212, 121, 0.1);
  background: rgba(255, 255, 255, 0.07);
}

.textarea {
  resize: vertical;
  min-height: 74px;
  line-height: 1.45;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.field__help {
  font-size: 0.72rem;
  color: var(--muted-2);
  line-height: 1.45;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* catalogue */
.catalog {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-size: 0.8rem;
}

.catalog th {
  text-align: left;
  padding: 0 8px 6px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 650;
  white-space: nowrap;
}

.catalog th .emoji {
  margin-right: 4px;
  font-size: 0.95rem;
}

.catalog td {
  padding: 0 4px;
  vertical-align: middle;
}

.catalog td:first-child {
  width: 56px;
  padding-left: 8px;
}

.catalog__num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke-soft);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.catalog .input {
  min-height: 38px;
  font-size: 0.8rem;
}

.catalog__cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.catalog__num-input {
  flex: 0 0 64px;
  width: 64px;
  min-width: 64px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding-left: 4px;
  padding-right: 4px;
  -moz-appearance: textfield;
}

.catalog__num-input::-webkit-outer-spin-button,
.catalog__num-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.catalog__cell .input[type="text"] {
  flex: 1 1 auto;
  min-width: 150px;
}

.catalog__num-input.is-duplicate {
  border-color: rgba(248, 113, 113, 0.75);
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.18);
}

.catalog__warning {
  margin: 0 8px 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.1);
  color: #fde68a;
  font-size: 0.78rem;
  line-height: 1.4;
}

.catalog__scroll {
  overflow-x: auto;
  margin: 0 -4px;
  padding-bottom: 2px;
}

/* personnes */
.person-card {
  --accent: #fff;
  position: relative;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--stroke-soft);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 255, 255, 0.07), transparent 60%),
    rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.person-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

.person-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.person-card__emoji {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--stroke-soft);
}

.person-card__name {
  font-weight: 750;
  font-size: 0.95rem;
}

.person-card__id {
  font-size: 0.7rem;
  color: var(--muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* switch */
.switch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke-soft);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  user-select: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch__track {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--stroke-soft);
  transition: background 0.25s;
}

.switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #cbd5f5;
  transition: transform 0.28s var(--ease-spring), background 0.25s;
}

.switch input:checked + .switch__track {
  background: linear-gradient(120deg, #ffe3a1, #ffb3d1);
  border-color: transparent;
}

.switch input:checked + .switch__track::after {
  transform: translateX(20px);
  background: #10142a;
}

.switch__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.switch__title {
  font-size: 0.86rem;
  font-weight: 650;
}

.switch__desc {
  font-size: 0.72rem;
  color: var(--muted-2);
  line-height: 1.4;
}

/* liste de jours dans les réglages / données */
.day-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.day-chip {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 9px;
  border: 1px solid var(--stroke-soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

.day-chip.is-on {
  background: rgba(110, 231, 183, 0.12);
  border-color: rgba(110, 231, 183, 0.3);
  color: #b9ffe6;
}

.day-chip.is-today {
  background: linear-gradient(120deg, #ffe3a1, #ffb3d1);
  border-color: transparent;
  color: #171024;
}

.danger-zone {
  border-color: rgba(248, 113, 113, 0.24);
  background: rgba(248, 113, 113, 0.04);
}

.danger-zone .panel__title {
  color: #ffb4b4;
}

/* bannière d'aperçu */
.preview-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 212, 121, 0.35);
  background: rgba(255, 212, 121, 0.06);
  color: #ffe6b8;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

/* ------------------------------ Responsive ---------------------------- */

/* Écrans peu hauts (iPad en paysage, portables) : héros compact
   pour laisser voir un maximum de cases du calendrier. */
@media (max-height: 820px) {
  .hero {
    padding-top: 16px;
    padding-bottom: 4px;
  }
  .hero__eyebrow {
    padding: 6px 13px;
    font-size: 0.62rem;
  }
  .title {
    font-size: clamp(1.9rem, 4.8vw, 3.1rem);
    margin-top: 8px;
  }
  .subtitle {
    font-size: 0.88rem;
    margin-top: 6px;
    max-width: 60ch;
  }
  .meta {
    margin-top: 10px;
    gap: 8px;
  }
  .chip {
    padding: 6px 11px;
    font-size: 0.72rem;
  }
  .cta-wrap {
    margin: 12px 0 4px;
    gap: 6px;
  }
  .cta {
    min-height: 52px;
    padding: 0 28px;
    font-size: 1rem;
  }
  .cta__hint {
    font-size: 0.72rem;
  }
  .calendar-wrap {
    padding-top: 6px;
  }
  .day {
    aspect-ratio: 0.95;
  }
  .footer {
    padding-bottom: 12px;
  }
}

@media (max-width: 1080px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .reveal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    padding-top: 10px;
  }
  .gift {
    height: clamp(128px, 19vh, 190px);
  }
  .reveal__head {
    padding-top: clamp(10px, 2.4vh, 26px);
  }
  .reveal__num {
    font-size: clamp(3.4rem, 10vh, 6rem);
  }
  .gift__num {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
  }
  .plan {
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .plan__row {
    min-width: 0;
    grid-template-columns: 60px repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding: 6px 6px;
  }
  .plan__row--head {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }
  .plan__person {
    font-size: 0.66rem;
    gap: 4px;
  }
  .plan__day {
    gap: 5px;
  }
  .plan__day b {
    width: 26px;
    height: 26px;
    font-size: 0.72rem;
    border-radius: 7px;
  }
  .plan .select {
    min-height: 36px;
    padding: 6px 22px 6px 7px;
    font-size: 0.72rem;
    background-position: calc(100% - 13px) 52%, calc(100% - 8px) 52%;
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .plan__row {
    min-width: 560px;
  }
}

@media (max-width: 640px) {
  .calendar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .day {
    aspect-ratio: 0.86;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-head__actions {
    width: 100%;
  }
  .catalog__scroll {
    margin: 0 -10px;
  }
  .hero {
    padding-top: 26px;
  }
  .reveal__date {
    font-size: 0.78rem;
  }
  .gift {
    height: clamp(132px, 21vh, 180px);
  }
  .reveal__tip {
    display: none;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  .reveal__head {
    padding-top: 8px;
  }
  .reveal__num {
    font-size: 3.2rem;
  }
  .gift {
    height: 150px;
  }
  .reveal__foot {
    padding-bottom: 10px;
  }
}

/* --------------------------- Compléments UI --------------------------- */

body.no-scroll {
  overflow: hidden;
}

.btn--block {
  display: flex;
  width: 100%;
}

.reveal__close {
  position: absolute;
  z-index: 5;
  top: calc(12px + env(safe-area-inset-top));
  right: calc(12px + env(safe-area-inset-right));
  width: 42px;
  height: 42px;
  font-size: 0.95rem;
}

/* jour mis en avant même s'il a déjà été ouvert */
.day--focus {
  border-color: rgba(255, 212, 121, 0.55);
  animation: todayGlow 2.8s ease-in-out infinite;
}

.day--focus .day__label {
  color: var(--gold);
}

.day--focus .day__num {
  background: linear-gradient(180deg, #fff, #ffe3a1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer__sound {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--stroke-soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  line-height: 1;
  transition: background 0.25s, border-color 0.25s;
}

.footer__sound:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--stroke);
}

.catalog {
  min-width: 1000px;
}

.icon-link {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--stroke-soft);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.6rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.icon-link:hover {
  background: rgba(255, 212, 121, 0.18);
  color: #ffe6b8;
  transform: translateX(1px);
}

.color-input {
  padding: 3px;
  min-height: 40px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
}

.color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-input::-webkit-color-swatch {
  border: 0;
  border-radius: 7px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal__num {
    transform: none;
    opacity: 1;
  }
  .gift {
    opacity: 1;
    transform: none;
  }
}
