/* Page « Bientôt » TilliT — charte du landing (violet, corail, Quicksand + Nunito) */
:root {
  --color-violet: #8b63e8;
  --color-violet-deep: #5b35d5;
  --color-violet-light: #ede7fb;
  --color-coral: #ef8068;
  --color-cream: #fbf7f2;
  --color-green: #1e8a4c;
  --color-white: #ffffff;
  --color-ink: #1f1a3d;
  --color-ink-soft: #4a4570;
  --color-ink-mute: #7a7599;

  --font-heading: 'Quicksand', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  --radius-full: 999px;
  --container-max: 1240px;
  --container-pad: clamp(20px, 4vw, 48px);

  --arches: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'><g fill='none' stroke='%23ffffff' stroke-opacity='0.09' stroke-width='2' stroke-linecap='round'><path d='M40 220 C 40 130, 80 60, 130 60 S 220 130, 220 220'/><path d='M70 220 C 70 150, 100 90, 130 90 S 190 150, 190 220'/></g></svg>");
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: #17113a;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
p {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 3px;
  border-radius: 8px;
}

.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;
}

/* Champ piège anti-robots du formulaire : hors écran, ignoré des lecteurs d'écran. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Opening animation: hidden until the timeline starts (see the inline script in <head>) */
.intro [data-intro] {
  opacity: 0;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding-bottom: clamp(56px, 6vw, 90px);
  background:
    radial-gradient(60% 55% at 72% 42%, rgba(186, 150, 255, 0.45), transparent 70%),
    radial-gradient(130% 100% at 80% -10%, #a77cf6 0%, #7448e2 42%, #5a30d0 72%, #4a25b6 100%);
  border-radius: 0 0 50% 50% / 0 0 clamp(36px, 6vw, 96px) clamp(36px, 6vw, 96px);
  box-shadow: 0 14px 46px -12px rgba(255, 128, 196, 0.55);
  color: var(--color-white);
}

.arches {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.55;
  background-image: var(--arches);
  background-size: 260px 260px;
  mask-image: radial-gradient(75% 85% at 40% 45%, transparent 15%, #000 75%);
  -webkit-mask-image: radial-gradient(75% 85% at 40% 45%, transparent 15%, #000 75%);
}

.glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.glow-a {
  width: 620px;
  height: 620px;
  left: -220px;
  bottom: -330px;
  background: radial-gradient(closest-side, rgba(255, 140, 190, 0.55), transparent);
}

.glow-b {
  width: 560px;
  height: 560px;
  right: -160px;
  top: -180px;
  background: radial-gradient(closest-side, rgba(214, 190, 255, 0.55), transparent);
}

.glow-c {
  width: 520px;
  height: 360px;
  right: 8%;
  bottom: -220px;
  background: radial-gradient(closest-side, rgba(255, 160, 210, 0.35), transparent);
}

/* --- Header --- */
.header {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(18px, 2.4vw, 28px) var(--container-pad) 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  flex-shrink: 0;
  border-radius: 12px;
}

.logo {
  width: clamp(112px, 11vw, 140px);
  filter: drop-shadow(0 4px 14px rgba(40, 20, 110, 0.25));
}

/* --- Layout --- */
.shell {
  flex: 1;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 40px) var(--container-pad) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  align-content: center;
}

.content {
  min-width: 0;
  max-width: 540px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7ee2a8;
  box-shadow: 0 0 0 3px rgba(126, 226, 168, 0.25);
  animation: pulse 2s ease-out infinite;
}

.title {
  margin-top: 22px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 24px rgba(40, 20, 110, 0.25);
  text-wrap: balance;
}

.title-line {
  display: block;
}

.title-line:last-child {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
}

.accent {
  background: linear-gradient(90deg, #ffe4d8 0%, #ffbfa6 55%, #ffa98a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.title-spark {
  width: 0.62em;
  height: 0.62em;
  margin-top: 0.18em;
  fill: none;
  stroke: #ff9d82;
  stroke-width: 3.4;
  stroke-linecap: round;
}

.lead {
  margin-top: 20px;
  max-width: 470px;
  font-size: clamp(1.05rem, 1.45vw, 1.24rem);
  line-height: 1.5;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.93);
}

/* --- Form --- */
.form {
  max-width: 490px;
  margin-top: 30px;
}

.form[hidden] {
  display: none;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  position: relative;
}

.field-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--color-violet-deep);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.field input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 48px;
  border-radius: 14px;
  border: 2px solid transparent;
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-ink);
  outline: none;
  box-shadow: 0 10px 24px rgba(20, 12, 60, 0.18);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.field input::placeholder {
  color: var(--color-ink-mute);
  font-weight: 400;
}

.field input:focus {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35), 0 10px 24px rgba(20, 12, 60, 0.18);
}

.field input[aria-invalid='true'] {
  border-color: var(--color-coral);
  box-shadow: 0 0 0 4px rgba(239, 128, 104, 0.4);
}

.consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.consent input {
  position: absolute;
  opacity: 0;
  width: 22px;
  height: 22px;
  margin: 0;
}

.consent .box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.65);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.consent .box svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--color-violet-deep);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  transition: stroke-dashoffset 0.25s ease 0.05s;
}

.consent input:checked + .box {
  background: var(--color-white);
  border-color: var(--color-white);
  transform: scale(1.05);
}

.consent input:checked + .box svg {
  stroke-dashoffset: 0;
}

.consent input:focus-visible + .box {
  outline: 3px solid var(--color-white);
  outline-offset: 3px;
}

.consent input[aria-invalid='true'] + .box {
  border-color: var(--color-coral);
  box-shadow: 0 0 0 4px rgba(239, 128, 104, 0.4);
}

.submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 56px;
  margin-top: 18px;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, #ffffff 0%, #f1ecff 100%);
  color: var(--color-violet-deep);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.08rem;
  box-shadow: 0 16px 34px rgba(20, 8, 80, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.submit-arrow {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(20, 8, 80, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.submit:hover:not(:disabled) .submit-arrow {
  transform: translateX(4px);
}

.submit:disabled {
  opacity: 0.8;
  cursor: progress;
}

.error:not(:empty) {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(31, 26, 61, 0.45);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-white);
}

.success {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 490px;
  margin-top: 30px;
  padding: 14px 22px 14px 14px;
  border-radius: 24px;
  background: var(--color-white);
  box-shadow: 0 18px 40px rgba(20, 12, 60, 0.25);
  animation: pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.success[hidden] {
  display: none;
}

.success-mascot {
  width: 78px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--color-violet-light);
  padding: 4px 6px 0;
}

.success-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-ink);
}

.success-text {
  margin-top: 2px;
  font-size: 0.95rem;
  color: var(--color-ink-soft);
}

.note {
  margin-top: 18px;
  max-width: 470px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.note a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stores-title {
  margin-top: 26px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-white);
}

.stores {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px 8px 14px;
  border-radius: 14px;
  background: rgba(31, 18, 80, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--color-white);
  cursor: not-allowed;
  box-shadow: 0 10px 24px rgba(20, 8, 70, 0.25);
}

.store svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store-small {
  font-size: 0.64rem;
  opacity: 0.75;
}

.store-big {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ------------------------------------------------------------------ */
/* Visual: phone, mascot, floating objects                             */
/* Everything is placed in a 680 × 690 box so it scales as one piece.  */
/* ------------------------------------------------------------------ */
.visual {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  aspect-ratio: 680 / 690;
  container-type: inline-size;
  perspective: 1500px;
  perspective-origin: 55% 40%;
}

.visual > * {
  position: absolute;
}

.orbit {
  left: -1%;
  top: 37%;
  width: 105.9%;
  height: auto;
  z-index: 1;
  overflow: visible;
  transform: rotate(-9deg);
  pointer-events: none;
}

.orbit ellipse {
  fill: none;
  stroke: url(#orbit-grad);
}

.orbit-glow {
  stroke-width: 12;
  opacity: 0.75;
}

.orbit-line {
  stroke-width: 3;
}

.orbit-shine {
  stroke: #ffffff !important;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 60 940;
  opacity: 0.9;
  animation: orbit-shine 7s linear infinite;
}

.floor-glow {
  left: -4%;
  top: 88%;
  width: 66%;
  height: 12%;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(230, 215, 255, 0.45), rgba(200, 170, 255, 0.12) 60%, transparent);
  filter: blur(4px);
}

/* --- Phone (CSS 3D, the screen stays real, readable HTML) --- */
.phone-pivot {
  left: 32.5%;
  top: 2.2%;
  width: 47%;
  height: 92.75%;
  z-index: 2;
  transform-style: preserve-3d;
}

.phone {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateZ(5deg) rotateY(-16deg) rotateX(6deg);
}

.phone-layer,
.phone-face {
  position: absolute;
  inset: 0;
  border-radius: 15% / 7.4%;
}

/* Stacked layers give the phone its thickness (visible on the right edge) */
.phone-layer {
  background: linear-gradient(160deg, #b79cf6 0%, #7d55e0 45%, #5a35c6 100%);
  transform: translateZ(calc(var(--i) * -2.8px));
}

.phone-layer:last-of-type {
  box-shadow: 0 50px 80px rgba(25, 8, 90, 0.5);
}

.phone-face {
  padding: 2.6%;
  background: linear-gradient(145deg, #e9e0ff 0%, #b49af3 30%, #8e6ae6 60%, #cdb9ff 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), inset 0 -6px 14px rgba(70, 30, 170, 0.35);
}

.bezel {
  height: 100%;
  padding: 2.4%;
  border-radius: 13% / 6.4%;
  background: #17112d;
}

.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 3.2cqw 2.2cqw 1.6cqw;
  border-radius: 11.5% / 5.6%;
  background: #f4eefc;
  font-size: 2cqw;
  isolation: isolate;
}

/* lock-screen wallpaper: soft lavender / peach, with the TilliT arches */
.wallpaper {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 38% at 85% 12%, rgba(255, 196, 176, 0.75), transparent 70%),
    radial-gradient(80% 45% at 0% 55%, rgba(196, 172, 255, 0.7), transparent 70%),
    radial-gradient(90% 40% at 100% 100%, rgba(255, 186, 214, 0.6), transparent 70%),
    linear-gradient(180deg, #efe6ff 0%, #f7eef8 50%, #fdeee8 100%);
}

.wallpaper::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 260 260'><g fill='none' stroke='%238b63e8' stroke-opacity='0.14' stroke-width='3' stroke-linecap='round'><path d='M40 220 C 40 130, 80 60, 130 60 S 220 130, 220 220'/><path d='M70 220 C 70 150, 100 90, 130 90 S 190 150, 190 220'/></g></svg>");
  background-size: 18cqw 18cqw;
  mask-image: linear-gradient(180deg, #000 0%, transparent 45%, transparent 70%, #000 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 45%, transparent 70%, #000 100%);
}

.statusbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.6cqw;
  padding: 0 2.2cqw;
  font-family: var(--font-heading);
  color: var(--color-ink);
  font-size: 1.6cqw;
  line-height: 1;
}

.carrier {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.island {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26%;
  height: 3.6cqw;
  border-radius: 999px;
  background: #17112d;
  transform: translate(-50%, -50%);
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 0.7cqw;
}

.status-icons svg {
  width: 2.2cqw;
  height: 1.6cqw;
  fill: var(--color-ink);
}

.battery {
  position: relative;
  width: 3.4cqw;
  height: 1.6cqw;
  border: 1.5px solid var(--color-ink);
  border-radius: 0.5cqw;
  padding: 1px;
}

.battery span {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: 0.25cqw;
  background: var(--color-ink);
}

/* --- Lock: date + big clock --- */
.lock {
  margin-top: 1.4cqw;
  text-align: center;
  color: #2a1f63;
}

.lock-icon {
  width: 1.7cqw;
  height: 2.1cqw;
  margin: 0 auto;
  fill: none;
  stroke: #2a1f63;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.8;
}

.lock-date {
  margin-top: 1cqw;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.85cqw;
  letter-spacing: 0.01em;
  opacity: 0.85;
}

.lock-time {
  margin-top: -0.2cqw;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 8.6cqw;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #3b2a8c 0%, #6a43d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Notifications --- */
.feed {
  position: relative;
  margin-top: 2cqw;
}

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1cqw 1cqw;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75cqw;
  color: #2a1f63;
}

.feed-count {
  min-width: 2.9cqw;
  height: 2.9cqw;
  padding: 0 0.8cqw;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9478, #ef6f5c);
  color: var(--color-white);
  font-size: 1.5cqw;
  box-shadow: 0 0.6cqw 1.4cqw rgba(239, 111, 92, 0.35);
}

.bubbles {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.3cqw;
}

/* frosted glass card */
.bubble {
  display: flex;
  align-items: flex-start;
  gap: 1.6cqw;
  padding: 1.7cqw 1.8cqw 1.8cqw 1.6cqw;
  border-radius: 3.2cqw;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1.6cqw 3.4cqw rgba(60, 30, 140, 0.12),
    0 0.3cqw 0.8cqw rgba(60, 30, 140, 0.06);
  text-align: left;
  overflow: hidden;
}

.bubble.is-new {
  animation: bubble-new 1.6s ease-out;
}

.avatar {
  position: relative;
  flex-shrink: 0;
  width: 5.2cqw;
  height: 5.2cqw;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 55%),
    var(--c);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.2cqw;
  color: var(--color-white);
  box-shadow: inset 0 -0.4cqw 0.8cqw rgba(0, 0, 0, 0.12);
}

/* small messaging badge on the avatar */
.app-badge {
  position: absolute;
  right: -0.5cqw;
  bottom: -0.4cqw;
  width: 2.4cqw;
  height: 2.4cqw;
  border-radius: 0.8cqw;
  border: 0.35cqw solid #fff;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='white' d='M10 3.5c-4 0-7 2.6-7 5.8 0 1.8 1 3.4 2.6 4.4L5 16.5l3.1-1.6c.6.1 1.2.2 1.9.2 4 0 7-2.6 7-5.8s-3-5.8-7-5.8z'/></svg>")
      center / 70% no-repeat,
    linear-gradient(180deg, #5fe07f, #22b858);
}

.bubble-body {
  flex: 1;
  min-width: 0;
}

.bubble-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1cqw;
  font-size: 1.9cqw;
  line-height: 1.25;
  color: var(--color-ink);
}

.bubble-head b {
  font-family: var(--font-heading);
  font-weight: 700;
}

.bubble-head span {
  color: var(--color-ink-mute);
  white-space: nowrap;
  font-size: 1.45cqw;
  font-weight: 600;
}

.bubble-text {
  margin-top: 0.35cqw;
  font-size: 1.85cqw;
  line-height: 1.35;
  color: var(--color-ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bubble-text strong {
  font-weight: 700;
  color: #e0583f;
}

/* older notifications stacked under the list */
.stack {
  position: relative;
  height: 2.6cqw;
}

.stack span {
  position: absolute;
  left: 50%;
  top: -1.6cqw;
  height: 3cqw;
  border-radius: 0 0 2.6cqw 2.6cqw;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1cqw 2cqw rgba(60, 30, 140, 0.08);
}

.stack span:first-child {
  width: 92%;
}

.stack span:last-child {
  top: -0.4cqw;
  width: 82%;
  background: rgba(255, 255, 255, 0.4);
}

/* --- Bottom: lock-screen shortcuts + home indicator --- */
.lock-actions {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  padding: 0 1.4cqw;
}

.lock-btn {
  width: 5.6cqw;
  height: 5.6cqw;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(42, 31, 99, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.lock-btn svg {
  width: 2.5cqw;
  height: 2.5cqw;
  fill: none;
  stroke: #2a1f63;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-bar {
  display: block;
  width: 34%;
  height: 0.7cqw;
  margin: 1.8cqw auto 0;
  border-radius: 999px;
  background: rgba(31, 26, 61, 0.75);
}

@keyframes bubble-new {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 128, 104, 0.55), 0 1.6cqw 3.4cqw rgba(60, 30, 140, 0.12);
  }
  100% {
    box-shadow: 0 0 0 2cqw rgba(239, 128, 104, 0), 0 1.6cqw 3.4cqw rgba(60, 30, 140, 0.12);
  }
}

/* --- Floating objects --- */
.float-anchor {
  z-index: 3;
  pointer-events: none;
}

.float-fallback {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 18px rgba(30, 10, 100, 0.35));
  animation: float 5s ease-in-out infinite;
}

.has-3d .float-fallback {
  visibility: hidden;
}

.anchor-clock {
  left: 10.7%;
  top: 21.3%;
  width: 16.9%;
  aspect-ratio: 1;
}

.anchor-check {
  left: 82.2%;
  top: 40%;
  width: 12.1%;
  aspect-ratio: 1;
}

.anchor-check .float-fallback {
  animation-delay: -1.6s;
}

.anchor-bell {
  left: 68.75%;
  top: 57.6%;
  width: 14%;
  aspect-ratio: 1;
}

.anchor-bell .float-fallback {
  animation-delay: -3.1s;
}

.scene3d {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.spark {
  z-index: 3;
  fill: none;
  stroke-linecap: round;
  stroke-width: 3.6;
  pointer-events: none;
}

.spark-clock {
  left: 26.5%;
  top: 6.5%;
  width: 5.9%;
  stroke: rgba(255, 255, 255, 0.92);
}

.spark-mascot {
  left: 1.5%;
  top: 51%;
  width: 7.4%;
  stroke: #ffd166;
}

/* --- Mascot: bench + body as two layers (body can move, blink, breathe) --- */
.mascot-stage {
  left: -5%;
  top: 48.5%;
  width: 54%;
  aspect-ratio: 720 / 686;
  z-index: 4;
}

.mascot-stage > * {
  position: absolute;
}

.bench {
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 18px 22px rgba(25, 8, 90, 0.35));
}

.seat-shadow {
  left: 31%;
  top: 56.5%;
  width: 48%;
  height: 6.5%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(45, 20, 120, 0.5), transparent);
  filter: blur(3px);
}

.mascot-rig {
  inset: 0;
}

.mascot-body {
  position: absolute;
  inset: 0;
  transform-origin: 54% 70%;
}

.mascot-img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 14px 16px rgba(25, 8, 90, 0.28));
}

/* Eyelids: a patch of the fur just above each eye, scaled down over the eye to blink */
.eye {
  position: absolute;
  overflow: hidden;
  border-radius: 50%;
}

.eye-l {
  left: 36.24%;
  top: 19.72%;
  width: 8.44%;
  height: 8.87%;
}

.eye-r {
  left: 52.04%;
  top: 19.65%;
  width: 8.37%;
  height: 8.94%;
}

.lid {
  position: absolute;
  inset: -12%;
  overflow: hidden;
  border-radius: 50%;
  transform: scaleY(0);
  transform-origin: 50% 0;
}

.lid::after {
  content: '';
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 14%;
  height: 9%;
  border-radius: 999px;
  background: rgba(8, 40, 120, 0.45);
}

.lid img {
  position: absolute;
  max-width: none;
}

/* the lid box is 124% of the eye box (inset -12%): offsets are computed for that size */
.eye-l .lid img {
  width: calc(1184.5% / 1.24);
  left: calc(-429.3% / 1.24 + 9.7%);
  top: calc(-114.7% / 1.24 + 9.7%);
}

.eye-r .lid img {
  width: calc(1194.8% / 1.24);
  left: calc(-621.7% / 1.24 + 9.7%);
  top: calc(-112.8% / 1.24 + 9.7%);
}

/* --- Sticker --- */
.sticker {
  left: 72.8%;
  top: 1.7%;
  z-index: 5;
  max-width: 25.5%;
  padding: 1.7cqw 2.4cqw;
  border-radius: 3cqw 3cqw 1cqw 3cqw;
  background: linear-gradient(135deg, #ff9478, #ef6f5c);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.3cqw;
  line-height: 1.22;
  color: var(--color-white);
  box-shadow: 0 2.4cqw 4.8cqw rgba(120, 30, 40, 0.35);
  transform: rotate(8deg);
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.footer {
  position: relative;
  margin-top: calc(-1 * clamp(36px, 6vw, 96px));
  padding: calc(clamp(36px, 6vw, 96px) + clamp(36px, 5vw, 56px)) var(--container-pad) 30px;
  background: linear-gradient(180deg, #221a52 0%, #160f38 100%);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-size: 0.86rem;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  background-image: var(--arches);
  background-size: 260px 260px;
}

.footer > * {
  position: relative;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 44px;
}

.footer-links a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffb59c;
}

.disclaimer {
  max-width: 640px;
  margin: 22px auto 0;
  line-height: 1.7;
}

.copyright {
  max-width: var(--container-max);
  margin: 24px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.motto {
  margin-left: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #ffa98a;
}

/* ------------------------------------------------------------------ */
/* Legal popup (Mentions légales, Confidentialité, Conditions)         */
/* ------------------------------------------------------------------ */
.legal-open {
  overflow: hidden;
}

.legal {
  width: min(820px, calc(100vw - 32px));
  max-width: none;
  max-height: min(88vh, 900px);
  padding: 0;
  border: none;
  border-radius: 32px;
  background: transparent;
  color: var(--color-ink);
  overflow: visible;
}

.legal::backdrop {
  background: rgba(20, 12, 60, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.legal[open] {
  animation: legal-in 0.32s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.legal[open]::backdrop {
  animation: legal-fade 0.25s ease both;
}

.legal.is-closing {
  animation: legal-out 0.16s ease-in both;
}

.legal.is-closing::backdrop {
  animation: legal-fade 0.16s ease-in reverse both;
}

.legal-card {
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 900px);
  overflow: hidden;
  border-radius: 32px;
  background: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 40px 90px rgba(20, 12, 60, 0.45);
}

.legal-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 28px 18px;
  background:
    radial-gradient(70% 140% at 100% 0%, rgba(255, 181, 156, 0.28), transparent 60%),
    radial-gradient(60% 140% at 0% 0%, rgba(167, 124, 246, 0.2), transparent 60%),
    #fff;
}

.legal-eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-violet);
}

.legal-title {
  margin: 4px 0 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.legal-close {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-cream);
  color: var(--color-ink);
  transition: background 0.2s ease, transform 0.2s ease;
}

.legal-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.legal-close:hover {
  background: var(--color-violet-light);
  transform: rotate(90deg);
}

.legal :focus-visible {
  outline: 3px solid var(--color-violet);
  outline-offset: 3px;
}

.legal-header,
.legal-tabs {
  flex-shrink: 0;
}

.legal-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 28px 16px;
  border-bottom: 1px solid rgba(31, 26, 61, 0.07);
  background: #fff;
}

.legal-tabs [role='tab'] {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #f6f2ff;
  color: var(--color-ink-soft);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.legal-tabs [role='tab']:hover {
  background: var(--color-violet-light);
  color: var(--color-violet-deep);
}

.legal-tabs [role='tab'][aria-selected='true'] {
  background: linear-gradient(135deg, #8b63e8, #5b35d5);
  color: #fff;
  box-shadow: 0 8px 18px rgba(91, 53, 213, 0.3);
}

.legal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 28px 32px;
  outline: none;
}

.legal-update {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-ink-mute);
}

.legal-content {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--color-ink-soft);
}

.legal-content > * + * {
  margin-top: 12px;
}

.legal-content h3 {
  margin: 28px 0 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--color-ink);
}

.legal-content h3:first-child {
  margin-top: 14px;
}

.legal-content strong {
  color: var(--color-ink);
}

.legal-content a {
  color: var(--color-violet-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.legal-content li + li {
  margin-top: 6px;
}

.legal-content li::marker {
  color: var(--color-violet);
}

.legal-content .chapo {
  margin-top: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.5;
  color: var(--color-ink);
}

.legal-content .nowrap {
  white-space: nowrap;
}

/* "À compléter par TilliT" */
.todo {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1.5px dashed rgba(239, 128, 104, 0.6);
  background: #fdf1ec;
}

.legal-content .todo-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.todo-title::before {
  content: '';
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9573f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20h4L19 9l-4-4L4 16v4zM14 6l4 4'/></svg>") center / contain no-repeat;
}

.legal-content .todo-title strong {
  color: #c9573f;
}

.todo li {
  font-size: 0.94rem;
}

.todo li::marker {
  color: var(--color-coral);
}

.todo > p:not(.todo-title) {
  margin-top: 10px;
  font-size: 0.92rem;
}

/* the four data collections */
.collect {
  padding: 16px 18px;
  border-radius: 18px;
  background: #faf8ff;
  border: 1px solid rgba(139, 99, 232, 0.16);
}

.collect + .collect {
  margin-top: 12px;
}

.collect > strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
}

.legal-content .see-also {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px dashed rgba(139, 99, 232, 0.3);
  font-size: 0.95rem;
}

@media (max-width: 560px) {
  .legal {
    width: 100vw;
    max-height: 92vh;
    margin: auto 0 0;
    border-radius: 26px 26px 0 0;
  }

  .legal-card {
    max-height: 92vh;
    border-radius: 26px 26px 0 0;
  }

  .legal-header {
    padding: 22px 20px 14px;
  }

  .legal-tabs {
    padding: 0 20px 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .legal-tabs {
    gap: 6px;
    scrollbar-width: none;
  }

  .legal-tabs [role='tab'] {
    flex-shrink: 0;
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.84rem;
  }

  .legal-body {
    padding: 18px 20px 28px;
  }

  .legal[open] {
    animation-name: legal-up;
  }
}

@keyframes legal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes legal-up {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes legal-out {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@keyframes legal-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ------------------------------------------------------------------ */
/* Keyframes                                                           */
/* ------------------------------------------------------------------ */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(126, 226, 168, 0.6);
  }
  100% {
    box-shadow: 0 0 0 9px rgba(126, 226, 168, 0);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-8px) rotate(3deg);
  }
}

@keyframes orbit-shine {
  to {
    stroke-dashoffset: -1000;
  }
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 960px) {
  .shell {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .content {
    max-width: 560px;
    margin: 0 auto;
  }

  .title-line:last-child {
    justify-content: center;
  }

  .lead,
  .form,
  .note,
  .success {
    margin-inline: auto;
  }

  .success,
  .consent {
    text-align: left;
  }

  .stores {
    justify-content: center;
  }

  .visual {
    max-width: 560px;
    margin: 8px auto 0;
  }
}

@media (max-width: 560px) {
  .fields {
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: 8px 24px;
  }
}

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