/* ═══════════════════════════════════════════════════════════════
   Page d'Amour — la page d'amour générée + l'éditeur (design 2.0, moderne)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --display: 'Fraunces', Georgia, serif;
  --script: 'Caveat', cursive;
  --sans: 'Manrope', 'Helvetica Neue', sans-serif;
  --seal: #ff4f87;
}

/* ── Palettes : héros sombre + 2 couleurs de dégradé + fond clair ── */
.lp[data-palette="roseraie"]     { --hero: #200a13; --g1: #ff4f87; --g2: #b23bd6; --bg: #fff4f8; --card: #ffffff; --inkc: #33131f; --accent: #e0447c; --soft: #ff9db8; }
.lp[data-palette="nuit-etoilee"] { --hero: #0d1230; --g1: #4c5df0; --g2: #e8c46f; --bg: #f4f5fb; --card: #ffffff; --inkc: #1b2140; --accent: #4c5df0; --soft: #aeb7f5; }
.lp[data-palette="jardin"]       { --hero: #15220f; --g1: #6fae52; --g2: #f0a35e; --bg: #f5f7ef; --card: #ffffff; --inkc: #223018; --accent: #4c7a45; --soft: #b7d3a4; }
.lp[data-palette="soleil"]       { --hero: #2a0f14; --g1: #ff7847; --g2: #c2477f; --bg: #fff6ef; --card: #ffffff; --inkc: #3a1d16; --accent: #ef6742; --soft: #ffb391; }
.lp[data-palette="encre-or"]     { --hero: #14110c; --g1: #c9a35a; --g2: #8a6d33; --bg: #f7f5f0; --card: #ffffff; --inkc: #211d16; --accent: #a5813e; --soft: #dcc084; }
.lp[data-palette="lavande"]      { --hero: #170f2e; --g1: #8b5cf6; --g2: #ff6fae; --bg: #f7f4fc; --card: #ffffff; --inkc: #2c2347; --accent: #7856d4; --soft: #c9a7f0; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
.lp-body { font-family: var(--sans); overflow-x: hidden; background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.lp ::selection { background: color-mix(in srgb, var(--g1) 35%, transparent); }
.lp-body :focus-visible { outline: 2px solid var(--g1, #ff4f87); outline-offset: 3px; border-radius: 4px; }
.btn:active { transform: translateY(0) scale(.98); }
.lp { background: var(--bg); color: var(--inkc); line-height: 1.7; font-size: 1.02rem; }
.lp h1, .lp h2, .lp h3 { font-family: var(--display); font-weight: 560; line-height: 1.1; letter-spacing: -.01em; }

.lp-script { font-family: var(--script); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 500; }
.lp-kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9rem;
}
.lp-h2 { font-size: clamp(1.9rem, 5vw, 2.9rem); margin-bottom: 1.2rem; }
.lp-caption { font-size: .95rem; opacity: .65; margin-top: 1rem; }
.lp-hint-line { font-size: .85rem; opacity: .7; margin-top: .6rem; }
.lp-error { color: #e0447c; font-size: .9rem; margin-top: .8rem; }

/* Cartes */
.lp-card {
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 24px;
  box-shadow: 0 20px 50px -18px color-mix(in srgb, var(--accent) 28%, transparent);
}

/* Boutons */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: .98rem;
  padding: .9rem 2rem; border-radius: 999px; border: none; cursor: pointer;
  text-decoration: none; letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-small { padding: .55rem 1.3rem; font-size: .88rem; }
.btn-glow {
  background: linear-gradient(120deg, var(--g1, #ff4f87), var(--g2, #b23bd6));
  color: #fff;
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--g1, #ff4f87) 70%, transparent);
}
.btn-glow:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-ghost-dark { background: transparent; color: inherit; border: 1.5px solid currentColor; }

/* ═══════════ En-tête ═══════════ */
.lp-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 5rem 1.4rem;
  background: var(--hero); color: #fff;
}
.lp-hero-blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; z-index: -1;
  animation: blob-drift 16s ease-in-out infinite alternate;
}
.lp-blob-1 { width: 55vmax; height: 55vmax; background: var(--g1); top: -18vmax; left: -12vmax; }
.lp-blob-2 { width: 45vmax; height: 45vmax; background: var(--g2); bottom: -15vmax; right: -10vmax; animation-delay: -8s; }
@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vmax, 4vmax) scale(1.15); }
}
.lp-hearts { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lp-hearts span {
  position: absolute; bottom: -2rem; font-size: 1rem; opacity: 0;
  animation: heart-rise linear infinite;
}
@keyframes heart-rise {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  12% { opacity: .5; }
  100% { transform: translateY(-105vh) rotate(30deg); opacity: 0; }
}

.lp-hero-inner { max-width: 880px; }
.lp-hero .lp-script { color: color-mix(in srgb, var(--g2) 70%, #fff); margin-bottom: .8rem; }
.lp-title {
  font-size: clamp(3rem, 10vw, 6.2rem); font-weight: 620;
  margin-bottom: 1.6rem;
  background: linear-gradient(115deg, #fff 40%, color-mix(in srgb, var(--g1) 65%, #fff));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-names { font-family: var(--display); font-size: clamp(1.3rem, 3.6vw, 1.8rem); letter-spacing: .04em; }
.lp-amp { font-family: var(--script); font-size: 1.35em; margin: 0 .35em; color: var(--g2); -webkit-text-fill-color: var(--g2); }
.lp-since { margin-top: 1.4rem; }
.lp-since-pill {
  display: inline-block; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .55em 1.4em; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}
.lp-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.4); border-radius: 999px;
}
.lp-scroll-hint span {
  position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 4px; background: #fff; animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot { 0%,100% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } }

/* ═══════════ Sections ═══════════ */
.lp-section {
  position: relative;
  max-width: 780px; margin: 0 auto;
  padding: 4.6rem clamp(1.2rem, 5vw, 2.5rem);
  text-align: center;
}
.lp-section-wide { max-width: 1040px; }

/* Compteur */
.lp-counter { display: flex; justify-content: center; gap: clamp(.7rem, 3vw, 1.4rem); flex-wrap: wrap; margin-top: 1.4rem; }
.lp-count-unit {
  min-width: clamp(84px, 20vw, 150px); padding: 1.4rem .6rem 1.1rem;
  background: var(--card); border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
  box-shadow: 0 20px 50px -18px color-mix(in srgb, var(--accent) 30%, transparent);
}
.lp-count-unit b, .lp-stat b, .lp-chat-stat b, .lp-compat-score {
  font-family: var(--display); font-weight: 640; font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--g1), var(--g2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-count-unit b { display: block; font-size: clamp(2.2rem, 6.5vw, 3.6rem); line-height: 1.1; }
.lp-count-unit span { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .55; }

/* Lettre sous enveloppe */
.lp-envelope { position: relative; max-width: 620px; margin: 1.4rem auto 0; }
.lp-envelope-cover {
  position: absolute; inset: 0; z-index: 5; cursor: pointer; border: none;
  border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--g1) 18%, var(--card)), var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: 0 24px 60px -20px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: opacity .5s ease, transform .5s ease;
}
.lp-envelope-flap {
  position: absolute; top: 0; left: 0; right: 0; height: 52%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--g1) 30%, var(--card)), transparent 90%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transition: transform .5s ease; transform-origin: top;
}
.lp-envelope-seal {
  position: absolute; top: 44%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1.6rem; font-weight: 640; color: #fff;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  box-shadow: 0 10px 26px -6px color-mix(in srgb, var(--g1) 80%, transparent);
}
.lp-envelope-hint {
  position: absolute; bottom: 1.1rem; left: 0; right: 0;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); opacity: .8;
}
.lp-envelope.is-open .lp-envelope-cover { opacity: 0; transform: translateY(-14px) scale(.98); pointer-events: none; }
.lp-envelope:not(.is-open) { min-height: 300px; }
.lp-envelope:not(.is-open) .lp-letter { visibility: hidden; }
.lp-letter {
  background: var(--card); border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
  box-shadow: 0 20px 50px -18px color-mix(in srgb, var(--accent) 28%, transparent);
  padding: clamp(1.8rem, 5vw, 3rem);
}
.lp-letter-text {
  font-family: var(--display); font-size: clamp(1.12rem, 2.6vw, 1.28rem); font-weight: 420;
  line-height: 1.95; text-align: left; white-space: pre-wrap;
}
.lp-letter-sign { margin-top: 1.4rem; font-family: var(--script); font-size: 2rem; color: var(--accent); text-align: right; }

/* Lune */
.lp-moon-card { padding: 3rem clamp(1.2rem, 4vw, 2.6rem); }
.lp-moon-figure { margin: .6rem 0; }
.lp-moon-emoji { font-size: clamp(4rem, 10vw, 5.6rem); filter: drop-shadow(0 0 34px color-mix(in srgb, var(--g2) 65%, transparent)); }
.lp-moon-detail { font-size: 1.05rem; }
.lp-moon-detail b { color: var(--accent); }
.lp-moon-line { margin-top: .8rem; font-family: var(--script); font-size: 1.5rem; opacity: .85; }

/* Chiffres poétiques */
.lp-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.lp-stat { padding: 1.6rem 1rem 1.3rem; transition: transform .2s ease; }
.lp-stat:hover { transform: translateY(-4px); }
.lp-stat b { display: block; font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.15; }
.lp-stat span { font-size: .78rem; font-weight: 600; letter-spacing: .06em; opacity: .6; }

/* Sections premium voilées */
.lp-premium-wrap { position: relative; }
.lp-premium-wrap.is-locked .lp-premium-content {
  filter: blur(9px) saturate(.85);
  user-select: none; pointer-events: none; opacity: .8;
}
.lp-lock-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .4rem; text-align: center; padding: 1rem;
}
.lp-lock-seal {
  width: 56px; height: 56px; border-radius: 999px;
  display: grid; place-items: center; font-size: 1.3rem; color: #fff;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--g1) 80%, transparent);
  margin-bottom: .5rem;
}
.lp-lock-title { font-family: var(--display); font-size: 1.25rem; font-weight: 600; }
.lp-lock-sub { font-size: .87rem; opacity: .75; margin-bottom: .7rem; max-width: 420px; }

/* Photos */
.lp-photos { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center; margin-top: 2rem; }
.lp-polaroid {
  background: var(--card); padding: .7rem .7rem 1rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
  box-shadow: 0 18px 44px -16px color-mix(in srgb, var(--accent) 35%, transparent);
  width: 230px; position: relative;
  transform: rotate(-1.6deg);
  transition: transform .25s ease;
}
.lp-polaroid:nth-child(even) { transform: rotate(1.4deg); }
.lp-polaroid:hover { transform: rotate(0) scale(1.04); z-index: 2; }
.lp-polaroid img { width: 100%; height: 210px; object-fit: cover; display: block; border-radius: 12px; }
.lp-polaroid figcaption { font-family: var(--script); font-size: 1.3rem; margin-top: .5rem; }
.lp-photo-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  min-height: 250px; cursor: pointer;
  border: 2px dashed color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--accent); font-size: .9rem; font-weight: 600;
  background: transparent; box-shadow: none;
}
.lp-photo-add-plus { font-size: 2.2rem; font-family: var(--display); }

/* Musique : lecteur YouTube */
.lp-music-artist { font-size: .85rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .55; margin-bottom: 1.6rem; }
.lp-player {
  position: relative; max-width: 580px; margin: 0 auto;
  aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden;
  box-shadow: 0 26px 60px -20px color-mix(in srgb, var(--g1) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
}
.lp-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lp-vinyl-solo { display: flex; justify-content: center; margin-top: .6rem; }
.lp-vinyl {
  width: 150px; height: 150px; border-radius: 50%;
  background: repeating-radial-gradient(circle, #131313 0 2px, #1f1f1f 2px 4px);
  border: 4px solid #0b0b0b; display: grid; place-items: center;
  animation: spin 7s linear infinite;
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
}
.lp-vinyl-label { width: 34%; height: 34%; border-radius: 50%; background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; display: grid; place-items: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.lp-music-edit { max-width: 580px; margin: 1.6rem auto 0; text-align: left; }
.lp-music-url {
  display: block; width: 100%; margin-top: .5rem;
  font-family: var(--sans); font-size: .95rem; padding: .8rem 1.1rem;
  border: 1.5px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 14px; background: var(--card); color: inherit;
}
.lp-music-url:focus { outline: none; border-color: var(--accent); }

/* Ce que j'aime */
.lp-loves { list-style: none; max-width: 620px; margin: 1.6rem auto 0; text-align: left; display: grid; gap: .8rem; }
.lp-loves li {
  position: relative; display: flex; gap: 1rem; align-items: baseline;
  padding: 1.1rem 1.4rem;
  font-family: var(--display); font-size: clamp(1.05rem, 2.4vw, 1.2rem); font-weight: 450;
  transition: transform .2s ease;
}
.lp-loves li:hover { transform: translateX(6px); }
.lp-love-num {
  font-family: var(--sans); font-size: .78rem; font-weight: 800; letter-spacing: .08em;
  color: var(--accent); flex-shrink: 0;
}

/* Roue à surprises */
.lp-wheel-zone { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; margin-top: 1.8rem; }
.lp-wheel-wrap { position: relative; width: min(320px, 82vw); aspect-ratio: 1; }
.lp-wheel {
  width: 100%; height: 100%; border-radius: 50%;
  border: 8px solid var(--card); cursor: pointer;
  box-shadow: 0 26px 60px -18px color-mix(in srgb, var(--g1) 55%, transparent),
              inset 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
  transition: transform 4.2s cubic-bezier(.12, .8, .16, 1);
  position: relative; overflow: hidden;
}
.lp-wheel-label {
  position: absolute; top: 50%; left: 50%;
  width: 50%; transform-origin: 0 0;
  font-size: .7rem; font-weight: 700; color: #fff;
  padding-left: 15%; padding-right: 10%;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lp-wheel-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%; border: 5px solid var(--card);
  background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff;
  font-family: var(--sans); font-weight: 800; letter-spacing: .1em; font-size: .95rem;
  cursor: pointer; z-index: 3;
  box-shadow: 0 10px 26px -6px color-mix(in srgb, var(--g1) 80%, transparent);
  transition: transform .15s ease;
}
.lp-wheel-hub:hover { transform: translate(-50%, -50%) scale(1.08); }
.lp-wheel-pointer {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%); z-index: 4;
  width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent;
  border-top: 24px solid var(--accent);
  filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--accent) 50%, transparent));
}
.lp-wheel-result-text {
  font-family: var(--display); font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 600;
  color: var(--accent);
}
.lp-wheel-items { list-style: none; max-width: 520px; margin: 1.6rem auto 0; text-align: left; display: grid; gap: .4rem; }
.lp-wheel-items li {
  position: relative; padding: .5rem 2.2rem .5rem 1rem;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border-radius: 12px; font-size: .92rem;
}
.lp-wheel-items-hidden { display: none; }
.lp-wheel-items .lp-item-del { top: 50%; transform: translateY(-50%); right: .5rem; }

/* Frise */
.lp-timeline { position: relative; max-width: 600px; margin: 2.2rem auto 0; text-align: left; }
.lp-timeline::before {
  content: ''; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--g1), var(--g2));
  opacity: .5;
}
.lp-moment { position: relative; padding: 0 0 2rem 2.8rem; }
.lp-moment-dot {
  position: absolute; left: 3px; top: 6px;
  width: 17px; height: 17px; border-radius: 50%;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--g1) 18%, transparent);
}
.lp-moment-when { font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .55; margin-bottom: .4rem; }
.lp-moment-card { padding: 1.2rem 1.4rem; }
.lp-moment-card h3 { font-size: 1.25rem; color: var(--accent); margin-bottom: .3rem; }
.lp-moment-card p { font-size: .95rem; opacity: .85; }
.lp-moment-date { font-family: var(--sans); font-size: .8rem; border: none; background: transparent; color: var(--inkc); opacity: .7; margin-bottom: .3rem; }
.lp-moment .lp-item-del { top: 0; right: 0; }

.lp-item-del {
  position: absolute; top: -10px; right: -10px;
  width: 26px; height: 26px; border-radius: 50%;
  border: none; cursor: pointer; font-size: 1rem; line-height: 1;
  background: #e0447c; color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  opacity: 0; transition: opacity .15s;
}
.lp-photo-del { position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%; border: none; cursor: pointer; font-size: 1rem; background: #e0447c; color: #fff; opacity: 0; transition: opacity .15s; }
.lp-polaroid:hover .lp-photo-del, .lp-loves li:hover .lp-item-del,
.lp-moment:hover .lp-item-del, .lp-wheel-items li:hover .lp-item-del { opacity: 1; }
.lp-item-add {
  margin-top: 1.4rem; background: none; cursor: pointer;
  border: 2px dashed color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px; padding: .55rem 1.5rem;
  font-family: var(--sans); font-size: .9rem; font-weight: 700; color: var(--accent);
}
.lp-item-add:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* WhatsApp */
.lp-chat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 1.6rem 0; }
.lp-chat-stat { padding: 1.4rem .9rem 1.1rem; }
.lp-chat-stat b { display: block; font-size: 1.7rem; line-height: 1.2; }
.lp-chat-stat span { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .55; }
.lp-chat-emojis { font-size: 1.9rem; letter-spacing: .3em; margin: .8rem 0; }
.lp-word {
  display: inline-block; margin: .2em .25em;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 999px; padding: .2em .9em;
  font-family: var(--display); font-size: 1rem;
}
.lp-chat-upload { max-width: 520px; margin: 0 auto; padding: 1.8rem; }
.lp-chat-upload p { margin-bottom: .8rem; }

/* Compatibilité */
.lp-compat { padding: 3rem clamp(1.2rem, 4vw, 2.6rem); }
.lp-compat-score { font-size: clamp(4.4rem, 13vw, 7rem); line-height: 1; }
.lp-compat-score small { font-size: .4em; }
.lp-compat-bar {
  height: 10px; max-width: 320px; margin: 1.2rem auto; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); overflow: hidden;
}
.lp-compat-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--g1), var(--g2)); }

/* Pied de page */
.lp-footer { text-align: center; padding: 5rem 1.4rem 3rem; }
.lp-footer-orn {
  width: 52px; height: 52px; margin: 0 auto 1.4rem; border-radius: 999px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--g1) 70%, transparent);
}
.lp-footer-script { font-size: clamp(2.2rem, 7vw, 3.2rem); color: var(--accent); }
.lp-footer-note { margin-top: 2rem; font-size: .8rem; opacity: .5; }
.lp-footer-brand { color: inherit; font-weight: 700; }

/* Apparition douce au défilement */
.lp-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.lp-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .lp-reveal { opacity: 1; transform: none; transition: none; }
  .lp-hero-blob, .lp-hearts span, .lp-vinyl { animation: none; }
}

/* Bandeau propriétaire sur la page publique */
.lp-owner-bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; justify-content: center; gap: 1rem; align-items: center;
  background: rgba(12, 10, 18, .85); backdrop-filter: blur(10px); color: #fff;
  font-size: .85rem; padding: .55rem 1rem;
}
.lp-owner-bar a { color: #ffb0cd; font-weight: 700; }

/* ═══════════ Éditeur ═══════════ */
.ed-bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(12, 10, 18, .88); backdrop-filter: blur(12px); color: #fff;
  padding: .6rem clamp(.8rem, 3vw, 1.6rem);
  flex-wrap: wrap;
}
.ed-bar-brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-size: 1.12rem; font-weight: 640;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.logo-heart-ed { width: 22px; height: auto; filter: drop-shadow(0 4px 10px rgba(255,79,135,.5)); }
.ed-bar-brand em {
  font-style: italic;
  background: linear-gradient(120deg, #ff4f87, #ffb45c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.ed-bar-center { display: flex; align-items: center; gap: .8rem; font-size: .82rem; opacity: .85; }
.ed-status { color: #ffb0cd; min-width: 90px; }
.ed-bar-actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.ed-palette-pick { display: flex; gap: .4rem; margin-right: .4rem; }
.ed-palette-dot {
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s, border-color .15s;
}
.ed-palette-dot:hover { transform: scale(1.15); }
.ed-palette-dot.is-active { border-color: #fff; transform: scale(1.12); }
.ed-bar .btn-ghost-dark { color: #fff; border-color: rgba(255,255,255,.4); }
.ed-bar .btn-ghost-dark:hover { background: rgba(255,255,255,.1); }
.ed-bar .btn-seal, .ed-bar .btn-glow {
  background: linear-gradient(120deg, #ff4f87, #b23bd6); color: #fff; border: none;
}

.ed-notice {
  background: linear-gradient(120deg, #ffe3ec, #f3e8ff); color: #4a1030;
  font-size: .9rem; text-align: center; padding: .75rem 1.2rem;
}
.ed-notice-soft { background: linear-gradient(120deg, #fff0f5, #f5f0ff); color: #6b2447; }

/* Champs éditables */
.lp-edit-mode [contenteditable="true"] {
  outline: none; border-radius: 6px;
  transition: box-shadow .15s;
  cursor: text; min-width: 1.5em; display: inline-block;
}
.lp-edit-mode .lp-letter-text[contenteditable="true"] { display: block; }
.lp-edit-mode [contenteditable="true"]:hover { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent, #e0447c) 50%, transparent); }
.lp-edit-mode [contenteditable="true"]:focus { box-shadow: 0 0 0 2px var(--accent, #e0447c); background: rgba(255,255,255,.5); }
.lp-hero [contenteditable="true"]:focus { background: rgba(0,0,0,.3); -webkit-text-fill-color: #fff; }

.lp-date-edit, .lp-inline-edit {
  display: inline-flex; gap: .5rem; align-items: center; flex-wrap: wrap; justify-content: center;
  margin-top: 1.4rem; font-size: .85rem;
  background: rgba(0,0,0,.28); border-radius: 999px; padding: .5rem 1.2rem;
}
.lp-inline-edit { background: color-mix(in srgb, var(--accent) 8%, transparent); color: inherit; border-radius: 16px; }
.lp-date-edit input, .lp-inline-edit input[type="date"] { border: none; background: transparent; color: inherit; font-family: var(--sans); }
.lp-date-edit input { color: #fff; }

.lp-section-tools { display: flex; justify-content: center; margin-bottom: 1.2rem; }
.lp-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 999px; padding: .35rem 1.1rem;
  cursor: pointer;
}
.lp-hidden-section { opacity: .45; }
.lp-hidden-section::after {
  content: 'partie masquée sur la page publique';
  display: block; font-size: .78rem; font-style: italic; opacity: .8; margin-top: 1rem;
}

.ed-sharebox {
  max-width: 560px; margin: 0 auto 3rem; text-align: center;
  font-size: .9rem; padding: 0 1.2rem; color: #33131f;
}
.ed-share-row { display: flex; gap: .5rem; margin-top: .5rem; }
.ed-share-row input {
  flex: 1; font-family: var(--sans); font-size: .9rem;
  padding: .6rem 1rem; border: 1.5px solid rgba(0,0,0,.18); border-radius: 999px;
  background: #fff;
}
.ed-wa { margin-top: .8rem; }
.ed-inline-form { display: inline; }
.ed-hint-desktop { display: none; }
@media (min-width: 760px) { .ed-hint-desktop { display: inline; } }

@media (max-width: 640px) {
  .lp-hero { min-height: 82svh; }
  .lp-polaroid { width: 46%; }
  .lp-polaroid img { height: 150px; }
  .lp-polaroid figcaption { font-size: 1.1rem; }
  .lp-photo-add { min-height: 195px; }
  .ed-bar-center { display: none; }
  .ed-bar { justify-content: center; }
  .lp-count-unit { min-width: 42%; }
  .btn { min-height: 46px; }
  .lp-item-add { min-height: 44px; }
  /* Sur tactile, les boutons de suppression sont toujours visibles */
  .lp-item-del, .lp-photo-del { opacity: 1; width: 24px; height: 24px; }
  .lp-chat-grid { grid-template-columns: 1fr 1fr; }
  .lp-stats-grid { grid-template-columns: 1fr 1fr; }
  .ed-share-row input { min-width: 0; }
}
