/* ==========================================================================
   Billet Doux — feuille de styles
   Rose poudré, papier, cire. Mobile d'abord.
   ========================================================================== */

/* ---------- Polices auto-hébergées (aucun appel externe) ---------- */
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/playfair-display-latin-500-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/playfair-display-latin-ext-500-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-ext-500-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Great Vibes"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/great-vibes-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Great Vibes"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/great-vibes-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Jetons de design ---------- */
:root {
  --bg: #fbeef1;
  --paper: #fffafb;
  --paper-2: #fff3f6;
  --line: #f1d3db;
  --line-strong: #e6bccb;
  --frame: rgba(206, 132, 157, .42);
  --rose: #c93f6e;
  --rose-600: #b3305d;
  --rose-700: #9a2251;
  --rose-800: #7c1a41;
  --rose-300: #ec9bb5;
  --rose-200: #f6c9d6;
  --rose-100: #fce5ec;
  --ink: #4a2731;
  --ink-soft: #8a6270;
  --ink-faint: #b994a1;
  --gold: #c99b7d;
  --ok: #4f7a57;
  --danger: #b3204e;
  --shadow-card: 0 1px 2px rgba(124, 26, 65, .05), 0 22px 44px -22px rgba(124, 26, 65, .30), 0 48px 90px -48px rgba(124, 26, 65, .28);
  --btn-grad: linear-gradient(180deg, #d4507f 0%, #bb3462 100%);
  --btn-edge: inset 0 -3px 0 rgba(98, 12, 44, .38);
  --font-title: "Playfair Display", "Didot", "Times New Roman", serif;
  --font-body: "Cormorant Garamond", "Garamond", "Georgia", serif;
  --font-script: "Great Vibes", "Snell Roundhand", "Apple Chancery", cursive;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 8% -8%, #fde3ea 0%, rgba(253, 227, 234, 0) 62%),
    radial-gradient(760px 620px at 108% 12%, #fad3de 0%, rgba(250, 211, 222, 0) 58%),
    radial-gradient(820px 600px at 50% 118%, #f7cad7 0%, rgba(247, 202, 215, 0) 62%),
    linear-gradient(180deg, #fdf2f5 0%, #f9e3e9 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .25 0 0 0 0 .35 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.no-scroll { overflow: hidden; }
a { color: var(--rose-600); }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--rose-200); color: var(--rose-800); }
:focus-visible { outline: 2px solid var(--rose-300); outline-offset: 3px; }

/* Cœurs qui flottent en arrière-plan */
.bg-hearts { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bg-hearts i {
  position: absolute;
  bottom: -40px;
  left: var(--x, 50%);
  width: var(--s, 16px);
  height: var(--s, 16px);
  opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ef9fb7' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: bdFloatHeart var(--d, 18s) linear var(--delay, 0s) infinite;
  will-change: transform, opacity;
}
.bg-hearts i:nth-child(1) { --x: 6%; --s: 14px; --d: 19s; --delay: -3s; }
.bg-hearts i:nth-child(2) { --x: 18%; --s: 22px; --d: 24s; --delay: -11s; }
.bg-hearts i:nth-child(3) { --x: 31%; --s: 12px; --d: 17s; --delay: -7s; }
.bg-hearts i:nth-child(4) { --x: 44%; --s: 18px; --d: 22s; --delay: -16s; }
.bg-hearts i:nth-child(5) { --x: 57%; --s: 11px; --d: 16s; --delay: -1s; }
.bg-hearts i:nth-child(6) { --x: 68%; --s: 20px; --d: 26s; --delay: -9s; }
.bg-hearts i:nth-child(7) { --x: 79%; --s: 13px; --d: 18s; --delay: -14s; }
.bg-hearts i:nth-child(8) { --x: 90%; --s: 17px; --d: 21s; --delay: -5s; }
.bg-hearts i:nth-child(9) { --x: 96%; --s: 10px; --d: 15s; --delay: -12s; }
.bg-hearts i:nth-child(10) { --x: 2%; --s: 19px; --d: 25s; --delay: -19s; }
@keyframes bdFloatHeart {
  0% { transform: translate3d(0, 0, 0) rotate(-12deg); opacity: 0; }
  12% { opacity: .5; }
  50% { transform: translate3d(22px, -55vh, 0) rotate(10deg); }
  88% { opacity: .38; }
  100% { transform: translate3d(-14px, -112vh, 0) rotate(-8deg); opacity: 0; }
}

/* ---------- Mise en page ---------- */
.app { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: calc(18px + var(--safe-top)) 22px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-style: italic;
  font-size: 27px;
  line-height: 1;
  color: var(--rose-700);
  text-decoration: none;
  letter-spacing: -.01em;
}
.brand-seal { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 2px 2px rgba(110, 15, 45, .25)); }
.progress { display: flex; gap: 6px; }
.progress i { display: block; width: 30px; height: 2px; border-radius: 2px; background: var(--rose-200); transition: background .45s var(--ease-out); }
.progress i.on { background: var(--rose-600); }
.tagline { max-width: 460px; margin: 4px auto 0; padding: 0 24px; text-align: center; font-style: italic; color: var(--ink-soft); font-size: 18px; }
.main {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px calc(28px + var(--safe-bottom));
}
.my-letters { position: relative; z-index: 1; width: calc(100% - 32px); max-width: 460px; margin: 0 auto 18px; font-size: 16.5px; }
.my-letters summary { cursor: pointer; text-align: center; color: var(--rose-600); font-style: italic; list-style: none; padding: 8px; }
.my-letters summary::-webkit-details-marker { display: none; }
.my-letters ul { list-style: none; margin: 4px 0 0; padding: 6px 16px; background: rgba(255, 252, 253, .85); border: 1px solid var(--line); }
.my-letters li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.my-letters li:last-child { border-bottom: 0; }
.my-letters a { color: var(--rose-700); text-decoration: none; overflow-wrap: anywhere; }
.my-letters small { color: var(--ink-faint); white-space: nowrap; }
.site-footer { position: relative; z-index: 1; text-align: center; padding: 0 16px calc(18px + var(--safe-bottom)); font-size: 14px; color: var(--ink-faint); }
.site-footer a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line-strong); }

/* ---------- Carte papier ---------- */
.card, .bd-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 42px 30px 34px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background:
    radial-gradient(130% 70% at 50% 0%, #fffefe 0%, rgba(255, 254, 254, 0) 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  box-shadow: var(--shadow-card);
}
.card::before, .bd-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--frame);
  border-radius: 1px;
  pointer-events: none;
}
.card-ornament {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 30px;
  height: 15px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffdfd;
  pointer-events: none;
}
.card-ornament svg { width: 10px; height: 10px; fill: var(--rose-300); }

/* ---------- Typographie ---------- */
.eyebrow, .bd-eyebrow {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.title, .bd-title {
  margin: 0 0 22px;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 9.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.012em;
  color: var(--rose-700);
  text-wrap: balance;
  outline: none;
}
.lead { margin: -6px 0 18px; font-size: 20px; line-height: 1.45; color: var(--ink); }
.hint { margin: 10px 0 0; font-style: italic; font-size: 16.5px; line-height: 1.45; color: var(--ink-soft); }
.hint.small { font-size: 15px; }
.label {
  display: block;
  margin: 26px 0 10px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.label span { letter-spacing: .2em; color: var(--ink-faint); }
.step > .title + .field .label, .step > .title + .summary + .field .label { margin-top: 6px; }

/* ---------- Formulaires ---------- */
.field { position: relative; }
.input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 15px 18px;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
  background: #fffdfd;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input::placeholder { color: var(--ink-faint); font-style: italic; opacity: 1; }
.input:focus { border-color: var(--rose-300); background: #fff; box-shadow: 0 0 0 4px rgba(201, 63, 110, .10); }
.input:disabled { opacity: .45; }
.input-date { text-align: left; }
.input-date::-webkit-date-and-time-value { text-align: left; }
.input-date::-webkit-calendar-picker-indicator { opacity: .5; }
.textarea { min-height: 112px; resize: vertical; line-height: 1.45; }
.field.is-invalid .input { border-color: #d96487; box-shadow: 0 0 0 4px rgba(179, 32, 78, .08); }
.field.is-invalid.shake { animation: bdShake .36s; }
.error { margin: 7px 0 0; min-height: 0; font-size: 15.5px; font-style: italic; color: var(--danger); }
.error:empty { display: none; }
.counter { margin: 6px 0 0; text-align: right; font-size: 14px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
@keyframes bdShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.suggest button {
  padding: 6px 13px;
  font-size: 15.5px;
  font-style: italic;
  color: var(--rose-600);
  background: rgba(255, 255, 255, .65);
  border: 1px solid #efcdd7;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.suggest button:active { transform: scale(.96); }
.suggest button.is-on { color: #fff; background: var(--rose); border-color: var(--rose); }

.check { display: flex; align-items: center; gap: 12px; margin-top: 14px; cursor: pointer; font-size: 17px; line-height: 1.35; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box {
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fffdfd;
  transition: background .2s, border-color .2s;
}
.check-box::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease-spring); }
.check input:checked + .check-box { background: var(--rose); border-color: var(--rose); }
.check input:checked + .check-box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:focus-visible + .check-box { outline: 2px solid var(--rose-300); outline-offset: 2px; }
.check small { display: block; margin-top: 3px; font-size: 14.5px; font-style: italic; color: var(--ink-soft); }

.summary { margin: 0 0 6px; padding: 16px 20px; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: rgba(255, 255, 255, .6); font-size: 19px; line-height: 1.5; }
.summary p { margin: 0; }
.summary strong { font-weight: 500; color: var(--rose-700); }
.summary .muted { color: var(--ink-soft); }

/* ---------- Boutons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 16px 22px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .16s var(--ease-out), box-shadow .2s, background .2s, opacity .2s, color .2s;
}
.btn-primary { color: #fff; background: var(--btn-grad); box-shadow: var(--btn-edge), 0 14px 26px -14px rgba(187, 52, 98, .7); }
.btn-primary:active { transform: translateY(1px) scale(.995); box-shadow: inset 0 -1px 0 rgba(98, 12, 44, .4), 0 6px 14px -8px rgba(187, 52, 98, .6); }
.btn-primary:disabled, .btn-primary[aria-disabled="true"] { cursor: default; background: #e2a8ba; box-shadow: none; transform: none; }
.btn-outline { color: var(--rose-600); background: rgba(255, 253, 253, .7); border: 1px solid #e4b6c4; }
.btn-outline:active { background: var(--rose-100); }
.btn-text { min-height: 44px; padding: 10px 14px; color: var(--ink-soft); background: none; letter-spacing: .2em; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn.is-loading, .bd-btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after, .bd-btn.is-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bdSpin .8s linear infinite;
}
.btn-outline.is-loading::after { border-color: rgba(179, 48, 93, .25); border-top-color: var(--rose-600); }
@keyframes bdSpin { to { transform: rotate(360deg); } }
.actions { display: grid; gap: 12px; margin-top: 30px; }
.actions .btn-text { justify-self: center; }
.secure-note { margin: 14px 0 0; text-align: center; font-size: 15px; font-style: italic; color: var(--ink-soft); }

/* ---------- Horaires (création) ---------- */
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.chip {
  min-height: 52px;
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--ink);
  background: #fffdfd;
  border: 1px solid #ebcbd4;
  border-radius: 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background .2s, color .2s, box-shadow .25s, transform .2s var(--ease-spring), border-color .2s;
}
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { color: #fff; background: var(--btn-grad); border-color: transparent; box-shadow: var(--btn-edge), 0 10px 18px -10px rgba(187, 52, 98, .7); transform: translateY(-1px); }
.chip-add { grid-column: span 2; font-size: 17px; font-style: italic; color: var(--ink-soft); border-style: dashed; background: transparent; }
.custom-time { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 12px; }
.custom-time .btn { min-height: 58px; padding: 0 18px; }

/* ---------- Étapes ---------- */
.step.is-active { animation: bdStepIn .5s var(--ease-out) both; }
.step.is-active.from-left { animation-name: bdStepInLeft; }
@keyframes bdStepIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes bdStepInLeft { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }

.step-success { text-align: center; }
.success-seal { width: 68px; height: 68px; margin: 0 auto 14px; animation: bdStamp .75s var(--ease-spring) .1s both; filter: drop-shadow(0 4px 5px rgba(110, 15, 45, .3)); }
.copy-status { margin: -4px 0 20px; font-size: 18px; line-height: 1.45; }
.copy-status.ok { color: var(--ok); }
.copy-status.warn { color: var(--danger); font-style: italic; }
.track-link { display: inline-block; margin-top: 22px; font-size: 18px; font-weight: 500; color: var(--rose-600); text-decoration: none; border-bottom: 1px solid var(--rose-200); }

/* ---------- Partage ---------- */
.share { text-align: left; }
.share .label { margin-top: 0; }
.share-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.share-input { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 16px; letter-spacing: -.01em; color: var(--rose-700); text-overflow: ellipsis; background: #fff; }
.share-copy { min-height: 58px; padding: 0 18px; letter-spacing: .16em; }
.share-fallback { margin: 9px 0 0; padding: 10px 12px; font-size: 15.5px; font-style: italic; color: var(--danger); background: rgba(255, 255, 255, .7); border: 1px dashed #e7a6b9; }
.share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 253, 253, .85);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s, transform .15s;
}
.share-btn:active { transform: scale(.98); background: var(--rose-100); }
.share-btn svg { width: 19px; height: 19px; flex: none; fill: none; stroke: var(--rose-600); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.share-btn.share-native { grid-column: 1 / -1; color: #fff; background: var(--btn-grad); border-color: transparent; box-shadow: var(--btn-edge); }
.share-btn.share-native svg { stroke: #fff; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(26px + var(--safe-bottom));
  z-index: 300;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  font-size: 16.5px;
  color: #fff;
  background: rgba(74, 39, 49, .94);
  border-radius: 999px;
  box-shadow: 0 12px 30px -12px rgba(74, 39, 49, .6);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity .3s, transform .35s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Aperçu plein écran ---------- */
.preview {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  animation: bdFade .3s ease both;
}
.preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(700px 500px at 10% 0%, #fde3ea 0%, rgba(253, 227, 234, 0) 60%),
    radial-gradient(700px 600px at 100% 100%, #f7cad7 0%, rgba(247, 202, 215, 0) 60%),
    linear-gradient(180deg, #fdf2f5 0%, #f9e3e9 100%);
}
.preview > * { position: relative; z-index: 1; }
.preview-banner {
  padding: calc(13px + var(--safe-top)) 16px 13px;
  text-align: center;
  font-size: 14px;
  letter-spacing: .16em;
  color: #fff;
  background: linear-gradient(180deg, #c4446f 0%, #a52f58 100%);
  box-shadow: 0 6px 18px -10px rgba(124, 26, 65, .6);
}
.preview-banner strong { font-weight: 600; text-transform: uppercase; letter-spacing: .2em; }
.preview-banner em { letter-spacing: .04em; font-size: 16px; }
.preview-stage { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.preview-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 12px;
  padding: 14px 18px calc(14px + var(--safe-bottom));
  background: rgba(255, 249, 250, .94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.preview-bar .btn { min-height: 54px; padding: 12px 10px; font-size: 15px; letter-spacing: .16em; }
@keyframes bdFade { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   Expérience destinataire
   ========================================================================== */
.bd-exp {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.bd-scene {
  grid-area: 1 / 1;
  width: 100%;
  max-width: 500px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.bd-scene.is-in { animation: bdSceneIn .7s var(--ease-out) both; }
.bd-scene.from-letter { animation: bdFromLetter .85s var(--ease-out) both; }
.bd-scene.is-out { animation: bdSceneOut .42s ease both; pointer-events: none; }
@keyframes bdSceneIn { from { opacity: 0; transform: translateY(18px) scale(.965); } to { opacity: 1; transform: none; } }
@keyframes bdFromLetter { from { opacity: 0; transform: translateY(-38px) scale(.84); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes bdSceneOut { to { opacity: 0; transform: translateY(-12px) scale(.975); } }

.bd-fx { position: absolute; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.bd-particle { position: absolute; left: 0; top: 0; display: block; will-change: transform, opacity; }
.bd-particle svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.bd-flee-layer { position: absolute; inset: 0; z-index: 40; pointer-events: none; }

/* ---------- Enveloppe ---------- */
.env-wrap { position: relative; width: min(80vw, 340px); transition: transform .65s var(--ease-out), opacity .5s ease; }
.envelope {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  animation: bdEnvFloat 5s ease-in-out infinite;
  outline: none;
}
.envelope:focus-visible { outline: 2px solid var(--rose-300); outline-offset: 12px; border-radius: 8px; }
.envelope > span, .envelope > svg { position: absolute; display: block; }
.env-press { position: absolute; inset: 0; perspective: 1200px; transition: transform .18s var(--ease-out); }
.envelope:active .env-press { transform: scale(.975); }
.env-press > span, .env-press > svg { position: absolute; display: block; }
.env-shadow {
  left: 7%;
  right: 7%;
  bottom: -15%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 26, 65, .30), rgba(124, 26, 65, 0));
  animation: bdEnvShadow 5s ease-in-out infinite;
}
.env-back {
  inset: 0;
  z-index: 1;
  border-radius: 8px;
  background: linear-gradient(180deg, #e3a1b4 0%, #eebccb 55%, #f1c6d2 100%);
  box-shadow: inset 0 4px 12px rgba(110, 15, 50, .28), 0 24px 40px -22px rgba(124, 26, 65, .55);
}
.env-letter {
  left: 5.5%;
  right: 5.5%;
  top: 5%;
  height: 89%;
  z-index: 2;
  border-radius: 4px;
  background: linear-gradient(180deg, #fffefd 0%, #fff6f5 100%);
  box-shadow: 0 1px 2px rgba(110, 15, 50, .12), 0 8px 18px -10px rgba(110, 15, 50, .3);
  transition: transform .95s cubic-bezier(.22, 1, .36, 1) .72s;
}
.env-letter-inner { position: absolute; left: 12%; right: 12%; top: 9%; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.env-letter-heart { width: 15%; max-width: 28px; aspect-ratio: 1; fill: var(--rose-300); }
.env-letter-line { display: block; height: 2px; width: 74%; border-radius: 2px; background: #f3d9e0; }
.env-letter-line.short { width: 48%; }
.env-pocket { inset: 0; z-index: 3; width: 100%; height: 100%; overflow: visible; }
.env-to {
  left: 0;
  right: 0;
  bottom: 6%;
  z-index: 4;
  text-align: center;
  pointer-events: none;
  font-family: var(--font-script);
  font-size: clamp(22px, 6.8vw, 30px);
  line-height: 1;
  color: var(--rose-700);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
}
.env-to::after { content: ""; display: block; width: 46%; height: 1px; margin: 7px auto 0; background: linear-gradient(90deg, rgba(201, 155, 125, 0), rgba(201, 155, 125, .9), rgba(201, 155, 125, 0)); }
.env-flap {
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.6, .04, .3, 1) .22s, z-index 0s linear .6s;
}
.env-face { position: absolute; inset: 0; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.env-face svg { display: block; width: 100%; height: 100%; overflow: visible; }
.env-face-in { transform: rotateY(180deg); }
.env-seal {
  left: 50%;
  top: 53%;
  z-index: 6;
  width: 23%;
  aspect-ratio: 1;
  margin-left: -11.5%;
  margin-top: -11.5%;
  filter: drop-shadow(0 4px 4px rgba(98, 12, 44, .35));
}
.env-seal-beat { position: absolute; inset: 0; animation: bdSealBeat 2.8s ease-in-out infinite; }
.seal-whole, .seal-half { position: absolute; inset: 0; }
.seal-half { opacity: 0; }
.seal-whole svg, .seal-half svg { display: block; width: 100%; height: 100%; }
.seal-l { clip-path: polygon(0 0, 53% 0, 47% 23%, 55% 45%, 45% 67%, 52% 86%, 48% 100%, 0 100%); }
.seal-r { clip-path: polygon(53% 0, 100% 0, 100% 100%, 48% 100%, 52% 86%, 45% 67%, 55% 45%, 47% 23%); }
.tap-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 50px 0 0;
  padding-left: .42em;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--rose-600);
  transition: opacity .3s, transform .3s;
}
.tap-hint svg { width: 14px; height: 14px; fill: none; stroke: var(--gold); stroke-width: 1.6; animation: bdHintBob 1.8s ease-in-out infinite; }

/* Ouverture : sceau qui se brise → rabat → lettre qui sort */
.envelope.is-open { animation-play-state: paused; cursor: default; pointer-events: none; }
.envelope.is-open .env-shadow { animation-play-state: paused; }
.envelope.is-open .env-seal-beat { animation: none; }
.envelope.is-open .seal-whole { visibility: hidden; }
.envelope.is-open .seal-l { animation: bdSealL .8s cubic-bezier(.3, .7, .3, 1) forwards; }
.envelope.is-open .seal-r { animation: bdSealR .8s cubic-bezier(.3, .7, .3, 1) forwards; }
.envelope.is-open .env-flap { transform: rotateX(180deg); z-index: 1; }
.envelope.is-open .env-letter { transform: translateY(-60%); }
.bd-envelope-scene.is-opening .tap-hint { opacity: 0; transform: translateY(8px); }
.bd-envelope-scene.is-leaving .env-wrap { opacity: 0; transform: translateY(30px) scale(.94); }

@supports not (aspect-ratio: 1 / 1) {
  .envelope { height: 0; padding-top: 66.667%; }
  .env-seal { height: 0; padding-top: 23%; }
}
@keyframes bdEnvFloat { 0%, 100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(-8px) rotate(.5deg); } }
@keyframes bdEnvShadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.9); opacity: .75; } }
@keyframes bdSealBeat { 0%, 30%, 100% { transform: scale(1); } 8% { transform: scale(1.08); } 16% { transform: scale(.98); } 23% { transform: scale(1.05); } }
@keyframes bdSealL { 0%, 18% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(-36%, 34%) rotate(-34deg); } }
@keyframes bdSealR { 0%, 18% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(36%, 40%) rotate(30deg); } }
@keyframes bdHintBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ---------- Cartes de l'expérience ---------- */
.bd-card { text-align: center; padding: 44px 28px 36px; }
.bd-eyebrow { margin-bottom: 18px; }
.bd-title { margin-bottom: 18px; font-size: clamp(36px, 10.4vw, 48px); }
.bd-sub { margin: 0; font-style: italic; font-size: 18px; color: var(--ink-soft); }
.bd-answers { position: relative; display: flex; justify-content: center; align-items: center; gap: 18px; margin: 46px 0 6px; min-height: 64px; }
.bd-btn {
  position: relative;
  min-width: 120px;
  min-height: 58px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .14em;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.bd-btn-yes {
  color: #fff;
  background: var(--btn-grad);
  box-shadow: var(--btn-edge), 0 16px 28px -14px rgba(187, 52, 98, .75);
  scale: var(--grow, 1);
  margin-inline: calc((var(--grow, 1) - 1) * 64px);
  transition: scale .5s var(--ease-spring), margin .5s var(--ease-spring), box-shadow .3s, transform .15s;
  animation: bdYesGlow 2.6s ease-in-out 1.2s infinite;
}
.bd-btn-yes:active { transform: translateY(1px); }
.bd-btn-yes:disabled { cursor: default; background: #e2a8ba; box-shadow: none; animation: none; }
@keyframes bdYesGlow { 0%, 100% { box-shadow: var(--btn-edge), 0 16px 28px -14px rgba(187, 52, 98, .75); } 50% { box-shadow: var(--btn-edge), 0 16px 34px -10px rgba(212, 80, 127, .85), 0 0 0 6px rgba(236, 155, 181, .18); } }
.bd-btn-no { color: var(--rose-600); background: #fffdfd; border: 1px solid #e4b6c4; transition: transform .45s var(--ease-spring), opacity .3s, color .3s; }
.bd-btn-no.is-ghost { visibility: hidden; }
.bd-flee-layer .bd-btn-no { position: absolute; left: 0; top: 0; margin: 0; pointer-events: auto; box-shadow: 0 12px 26px -14px rgba(124, 26, 65, .45); }
.bd-btn-no.is-tired { color: var(--ink-soft); border-style: dashed; animation: bdTired .7s ease; }
@keyframes bdTired { 0%, 100% { rotate: 0deg; } 25% { rotate: -6deg; } 50% { rotate: 5deg; } 75% { rotate: -3deg; } }
.bd-taunt { min-height: 26px; margin: 18px 0 0; font-style: italic; font-size: 18px; color: var(--rose-600); }
.bd-taunt.pop { animation: bdPop .4s var(--ease-spring); }
@keyframes bdPop { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
.bd-confirm-no { margin-top: 30px; animation: bdPop .45s var(--ease-spring); }
.bd-confirm-no p { margin: 0 0 16px; font-family: var(--font-title); font-style: italic; font-size: 26px; color: var(--rose-700); }
.bd-confirm-no .bd-row { display: grid; gap: 10px; }

/* Plan */
.plan-activity { margin: 4px 0 0; font-size: 30px; font-weight: 500; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.plan-place { margin: 6px 0 0; font-size: 21px; font-style: italic; color: var(--ink-soft); overflow-wrap: anywhere; }
.plan-meta { margin: 22px 0 0; font-size: 13.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.plan-detail { margin: 8px 0 0; font-family: var(--font-script); font-size: 32px; line-height: 1.15; color: var(--rose-600); overflow-wrap: anywhere; }
.bd-label { display: block; margin: 26px 0 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.plan-times { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.plan-time {
  min-width: 92px;
  min-height: 56px;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 21px;
  color: var(--ink);
  background: #fffdfd;
  border: 1px solid #e6c0cb;
  border-radius: 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background .2s, color .2s, box-shadow .25s, transform .25s var(--ease-spring), border-color .2s;
}
.plan-time:active { transform: scale(.95); }
.plan-time[aria-checked="true"] { color: #fff; background: var(--btn-grad); border-color: transparent; box-shadow: var(--btn-edge), 0 12px 22px -12px rgba(187, 52, 98, .75); transform: translateY(-2px); }
.bd-line-input {
  display: block;
  width: 100%;
  padding: 10px 6px 12px;
  font-family: var(--font-body);
  font-size: 20px;
  text-align: center;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e3bcc7;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s;
}
.bd-line-input::placeholder { color: var(--ink-faint); }
.bd-line-input:focus { border-color: var(--rose); }
.bd-card .bd-btn-block { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 30px; font-size: 16px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.bd-error { margin: 12px 0 0; font-style: italic; font-size: 16px; color: var(--danger); }
.bd-error:empty { display: none; }

/* Confirmation */
.done-stamp { width: 76px; height: 76px; margin: 0 auto 18px; animation: bdStamp .8s var(--ease-spring) .15s both; filter: drop-shadow(0 5px 5px rgba(98, 12, 44, .3)); }
.done-stamp svg { display: block; width: 100%; height: 100%; }
@keyframes bdStamp { from { opacity: 0; transform: scale(2.3) rotate(-24deg); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
.done-when { margin: 0; font-size: 13.5px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft); }
.done-what { margin: 8px 0 0; font-size: 21px; font-style: italic; color: var(--ink); overflow-wrap: anywhere; }
.done-note { margin: 26px 0 4px; padding: 20px 8px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.done-note-label { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-faint); }
.done-note-text { margin: 0; font-family: var(--font-script); font-size: 32px; line-height: 1.2; color: var(--rose-600); white-space: pre-line; overflow-wrap: anywhere; }
.done-note-text.is-long { font-size: 25px; }
.done-note-text.is-xlong { font-family: var(--font-body); font-style: italic; font-size: 20px; line-height: 1.5; }
.done-sub { margin: 18px 0 0; font-size: 17px; font-style: italic; color: var(--ink-soft); }
.done-more { display: inline-block; margin-top: 18px; font-size: 15px; color: var(--ink-faint); text-decoration: none; border-bottom: 1px solid var(--line-strong); }

/* Page destinataire */
.page-invite .app { min-height: 100vh; min-height: 100dvh; }
.invite-stage { position: relative; flex: 1; display: flex; width: 100%; min-height: 100vh; min-height: 100dvh; }
.owner-banner {
  position: relative;
  z-index: 5;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  text-align: center;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(180deg, #c4446f 0%, #a52f58 100%);
}
.owner-banner strong { letter-spacing: .16em; text-transform: uppercase; font-size: 13px; }
.page-invite .owner-banner + .invite-stage { min-height: calc(100dvh - 44px); }

/* ---------- Suivi ---------- */
.card-track { text-align: center; }
.track-seal { width: 70px; height: 70px; margin: 0 auto 16px; filter: drop-shadow(0 4px 5px rgba(98, 12, 44, .3)); animation: bdStamp .8s var(--ease-spring) .1s both; }
.track-quote { margin: 0 0 18px; font-family: var(--font-script); font-size: 30px; line-height: 1.2; color: var(--rose-600); overflow-wrap: anywhere; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 26px 0 26px; padding: 0; }
.timeline li { position: relative; padding-top: 26px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.timeline li::before { content: ""; position: absolute; top: 4px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fffdfd; }
.timeline li::after { content: ""; position: absolute; top: 11px; left: calc(50% + 12px); right: calc(-50% + 12px); height: 1px; background: var(--line-strong); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--rose-700); }
.timeline li.done::before { background: var(--rose); border-color: var(--rose); box-shadow: 0 0 0 4px rgba(201, 63, 110, .12); }
.timeline small { display: block; margin-top: 2px; font-size: 13px; letter-spacing: 0; text-transform: none; font-style: italic; color: var(--ink-soft); }
.track-actions { display: grid; gap: 10px; margin-top: 26px; }
.spinner { width: 34px; height: 34px; margin: 10px auto 4px; border: 2px solid var(--rose-200); border-top-color: var(--rose); border-radius: 50%; animation: bdSpin .9s linear infinite; }
.notice { margin: 0 0 18px; padding: 12px 14px; font-size: 16.5px; border: 1px solid var(--line); background: rgba(255, 255, 255, .7); }
.notice.ok { color: var(--ok); border-color: #cfe1d1; background: #f4faf4; }
.notice.error { color: var(--danger); border-color: #f1c3cf; background: #fff5f7; }

/* ---------- Pages texte ---------- */
.prose { text-align: left; font-size: 18px; }
.prose h2 { margin: 30px 0 8px; font-family: var(--font-title); font-style: italic; font-weight: 400; font-size: 26px; color: var(--rose-700); }
.prose p, .prose li { margin: 0 0 10px; }
.prose .placeholder { color: var(--danger); font-style: italic; }
.card-wide { max-width: 680px; }

/* ---------- Installation ---------- */
.page-install .card { max-width: 620px; }
.install-section { margin-top: 28px; padding-top: 6px; border-top: 1px solid var(--line); }
.install-section h2 { margin: 18px 0 2px; font-family: var(--font-title); font-style: italic; font-weight: 400; font-size: 24px; color: var(--rose-700); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; }
.req { list-style: none; margin: 0 0 6px; padding: 0; font-size: 16.5px; }
.req li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; }
.req .yes { color: var(--ok); }
.req .no { color: var(--danger); }
.radio-row { display: grid; gap: 8px; }
.radio-row label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-strong); background: #fffdfd; cursor: pointer; font-size: 17px; }
.radio-row input { accent-color: var(--rose); width: 18px; height: 18px; }

/* ==========================================================================
   Administration
   ========================================================================== */
.page-admin { font-size: 17px; }
.page-admin .bg-hearts { display: none; }
.admin-wrap { position: relative; z-index: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: calc(16px + var(--safe-top)) 16px 40px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-top .brand { font-size: 24px; }
.admin-top .brand small { font-family: var(--font-body); font-style: normal; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); margin-left: 4px; }
.admin-nav { display: flex; gap: 8px; align-items: center; }
.admin-nav form { margin: 0; }
.admin-nav .btn { min-height: 42px; padding: 8px 14px; font-size: 13px; letter-spacing: .16em; }
.admin-h1 { margin: 0 0 16px; font-family: var(--font-title); font-style: italic; font-weight: 400; font-size: clamp(28px, 6vw, 38px); color: var(--rose-700); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.stat { padding: 16px 16px 14px; background: rgba(255, 252, 253, .92); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 10px 24px -20px rgba(124, 26, 65, .4); }
.stat b { display: block; font-family: var(--font-title); font-style: italic; font-weight: 400; font-size: 34px; line-height: 1.05; color: var(--rose-700); }
.stat span { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.stat small { display: block; margin-top: 2px; font-style: italic; color: var(--ink-faint); font-size: 14px; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 14px; }
.filters .input { min-height: 48px; padding: 10px 14px; font-size: 18px; }
.filters select.input { background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.filters .btn { min-height: 48px; }
.panel { background: rgba(255, 252, 253, .94); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 16px 34px -28px rgba(124, 26, 65, .45); }
.panel-pad { padding: 20px 18px; }
.panel h2 { margin: 0 0 12px; font-family: var(--font-title); font-style: italic; font-weight: 400; font-size: 24px; color: var(--rose-700); }
.table { width: 100%; border-collapse: collapse; font-size: 16.5px; }
.table th { padding: 12px 12px; text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table a.row-link { color: var(--rose-700); font-weight: 600; text-decoration: none; }
.table .muted { color: var(--ink-soft); font-style: italic; }
.pill { display: inline-block; padding: 3px 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.pill-active { color: #2f6b3c; background: #e8f4ea; border-color: #cfe4d3; }
.pill-pending { color: #8a5a12; background: #fdf1dc; border-color: #f2dcb2; }
.pill-disabled, .pill-expired { color: #6d5a60; background: #f1e9ec; border-color: #e3d6db; }
.pill-yes { color: #fff; background: var(--rose); }
.pill-no { color: var(--rose-700); background: #fbe4ea; border-color: #f2c6d2; }
.pill-wait { color: var(--ink-soft); background: #fff; border-color: var(--line-strong); }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 18px; font-size: 16px; color: var(--ink-soft); }
.pager a { color: var(--rose-600); text-decoration: none; padding: 8px 12px; border: 1px solid var(--line-strong); background: #fffdfd; }
.empty { padding: 40px 16px; text-align: center; font-style: italic; color: var(--ink-soft); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 14px; margin: 0; font-size: 16.5px; }
.kv dt { margin-top: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.copy-row .input { min-height: 44px; padding: 8px 10px; font-size: 14px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.copy-row .btn { min-height: 44px; padding: 6px 12px; font-size: 12px; letter-spacing: .14em; }
.admin-actions { display: grid; gap: 10px; margin-top: 8px; }
.admin-actions form { margin: 0; }
.danger-zone { margin-top: 14px; padding: 14px; border: 1px dashed #e9a7ba; background: #fff7f9; }
.danger-zone .btn-danger { color: #fff; background: linear-gradient(180deg, #c6355b, #a3203f); box-shadow: inset 0 -3px 0 rgba(80, 10, 30, .4); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; }
.form-grid .label { margin-top: 16px; }
.form-grid .input { min-height: 50px; padding: 11px 14px; font-size: 18px; }
.page-admin .card { max-width: 420px; }
.admin-resp { list-style: none; margin: 0; padding: 0; }
.admin-resp li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.admin-resp li:last-child { border-bottom: 0; }

/* ---------- Écrans plus larges ---------- */
@media (min-width: 640px) {
  .card, .bd-card { padding: 50px 44px 42px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters { grid-template-columns: minmax(0, 1fr) 220px auto; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .span-2 { grid-column: 1 / -1; }
  .kv { grid-template-columns: 160px minmax(0, 1fr); }
  .kv dt { margin-top: 0; padding-top: 3px; }
  .preview-bar { max-width: 560px; margin: 0 auto; width: 100%; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
@media (min-width: 980px) {
  .stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}
@media (max-width: 639px) {
  .table-wrap { overflow: visible; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table td { padding: 2px 0; border: 0; }
  .table td[data-label]::before { content: attr(data-label) " · "; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
}
@media (max-width: 360px) {
  .card, .bd-card { padding: 36px 20px 28px; }
  .chips { gap: 7px; }
  .chip { font-size: 17px; }
  .bd-answers { gap: 12px; }
  .bd-btn { min-width: 104px; padding: 12px 18px; }
  .progress i { width: 22px; }
}
@media (max-height: 640px) {
  .tap-hint { margin-top: 34px; }
  .bd-answers { margin-top: 32px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .bg-hearts { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
