/* Terracotta — Design System CSS */

/* Alpine.js cloak */
[x-cloak] { display: none !important; }

/* ─── Web fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ─── Antialiasing global ─── */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Easings ─── */
:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

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

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

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes underline-grow {
  to { transform: scaleX(1); }
}

.animate-in {
  opacity: 0;
  animation: fadeSlideUp 0.55s var(--ease-out-expo) forwards;
}

.delay-1  { animation-delay:  60ms; }
.delay-2  { animation-delay: 120ms; }
.delay-3  { animation-delay: 180ms; }
.delay-4  { animation-delay: 240ms; }
.delay-5  { animation-delay: 300ms; }
.delay-6  { animation-delay: 360ms; }
.delay-7  { animation-delay: 420ms; }
.delay-8  { animation-delay: 480ms; }
.delay-9  { animation-delay: 540ms; }
.delay-10 { animation-delay: 600ms; }
.delay-11 { animation-delay: 660ms; }
.delay-12 { animation-delay: 720ms; }

/* ═══════════════════════════════════════════
   AUTH PAGES — logo lockup
   ═══════════════════════════════════════════ */
.auth-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-logo img {
  position: relative;
  z-index: 1;
  border-radius: 1.25rem;
  filter: drop-shadow(0 6px 20px rgba(194, 89, 59, 0.18))
          drop-shadow(0 2px 6px rgba(28, 25, 22, 0.08));
  transition: transform 600ms var(--ease-spring),
              filter 400ms ease;
}

.auth-logo:hover img {
  transform: scale(1.06) rotate(-2deg);
  filter: drop-shadow(0 10px 28px rgba(194, 89, 59, 0.25))
          drop-shadow(0 4px 10px rgba(28, 25, 22, 0.10));
}

/* Ambient glow behind logo */
.auth-logo::before {
  content: '';
  position: absolute;
  width: 140%;
  height: 140%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(194, 89, 59, 0.10) 0%,
    rgba(232, 169, 144, 0.06) 40%,
    transparent 70%
  );
  z-index: 0;
  animation: auth-glow 4s ease-in-out infinite;
}

/* Decorative ring — supprimé pour un rendu plus épuré */

@keyframes auth-glow {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.08); opacity: 1; }
}

/* Auth header with staggered entrance */
.auth-header {
  opacity: 0;
  animation: fadeSlideUp 0.65s 0.1s var(--ease-out-expo) forwards;
}

.auth-header .auth-logo {
  opacity: 0;
  animation: scaleIn 0.55s 0.15s var(--ease-spring) forwards;
}

.auth-header h1 {
  opacity: 0;
  animation: fadeSlideUp 0.5s 0.3s var(--ease-out-expo) forwards;
}

.auth-header p {
  opacity: 0;
  animation: fadeSlideUp 0.5s 0.4s var(--ease-out-expo) forwards;
}

/* Divider line between header and card */
.auth-divider {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #c2593b, #e8a990);
  border-radius: 2px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeSlideUp 0.4s 0.5s var(--ease-out-expo) forwards;
}

/* ═══════════════════════════════════════════
   SITE BANNER — bandeau image décoratif
   ═══════════════════════════════════════════ */
.site-banner {
  position: relative;
  overflow: hidden;
  height: 120px;
}

@media (min-width: 640px) {
  .site-banner { height: 150px; }
}

@media (min-width: 1024px) {
  .site-banner { height: 260px; }
}

.site-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  animation: bannerReveal 0.8s var(--ease-out-expo) forwards;
}

@keyframes bannerReveal {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}

.site-banner__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 2;
}

.site-banner__wave svg {
  display: block;
  width: 100%;
  height: 30px;
}

@media (min-width: 640px) {
  .site-banner__wave svg { height: 40px; }
}

@media (min-width: 1024px) {
  .site-banner__wave svg { height: 50px; }
}

/* ═══════════════════════════════════════════
   FOND BODY : texture grain subtile
   ═══════════════════════════════════════════ */
body {
  background-color: #faf8f5;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* body > * z-index supprimé : créait des stacking contexts
   qui piégeaient les popups d'extensions (Bitwarden, etc.) */

/* ═══════════════════════════════════════════
   NAVIGATION — glassmorphism light
   ═══════════════════════════════════════════ */
.nav-glass {
  background: rgb(250 248 245 / 0%);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  /* border-bottom: 1px solid #f0ebe5; */
}

.nav-glass a,
.nav-glass button,
.nav-glass span:not(.nav-logo-dot) {
  text-shadow:
    0 0 12px rgb(249 247 245 / 0.9),
    0 0  6px rgb(249 247 245 / 0.7),
    0 1px 4px rgba(28, 25, 22, 0.35);
}

/* Logo pulsing dot */
.nav-logo-dot {
  width: 8px;
  height: 8px;
  background: #c2593b;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.nav-logo-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid #e8a990;
  animation: pulse-ring 2.5s ease-out infinite;
}

/* Avatar circle */
.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c2593b, #8b3a24);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: transform 200ms var(--ease-spring);
}

.nav-avatar:hover {
  transform: scale(1.08);
}

/* ═══════════════════════════════════════════
   HERO — greeting + title
   ═══════════════════════════════════════════ */
.hero-accent-underline {
  font-style: normal;
  color: #c2593b;
  position: relative;
}

.hero-accent-underline::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: #e8a990;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-grow 0.8s 0.6s var(--ease-out-expo) forwards;
}

/* ═══════════════════════════════════════════
   STAT CHIPS
   ═══════════════════════════════════════════ */
.stat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #e7e0d8;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #78716c;
  transition: all 200ms ease;
}

.stat-chip:hover {
  border-color: #e8a990;
  background: #fdf0ec;
  color: #c2593b;
}

/* ═══════════════════════════════════════════
   WISHLIST CARDS — grid style
   ═══════════════════════════════════════════ */
.wl-card {
  background: #ffffff;
  border: 1px solid #e7e0d8;
  border-radius: 1.25rem;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: all 350ms var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.wl-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c2593b, #e8a990);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 350ms var(--ease-out-expo);
}

.wl-card:hover {
  border-color: #e8a990;
  box-shadow: 0 12px 40px rgba(194, 89, 59, 0.10);
  transform: translateY(-4px);
}

.wl-card:hover::before {
  transform: scaleX(1);
}

/* Card icon with hover animation */
.wl-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform 350ms var(--ease-spring);
}

.wl-card:hover .wl-card-icon {
  transform: scale(1.1) rotate(-3deg);
}

/* Card actions — slide in on hover */
.wl-card-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transform: translateX(8px);
  transition: all 200ms ease;
}

.wl-card:hover .wl-card-actions {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .wl-card-actions {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════
   ADD CARD (dashed)
   ═══════════════════════════════════════════ */
.wl-card-add {
  border: 2px dashed #e7e0d8;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
  cursor: pointer;
  transition: all 350ms var(--ease-out-expo);
  border-radius: 1.25rem;
  text-decoration: none;
}

.wl-card-add:hover {
  border-color: #c2593b;
  background: #fdf0ec;
  transform: translateY(-4px);
}

.wl-card-add-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f2ede7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 350ms var(--ease-spring);
}

.wl-card-add:hover .wl-card-add-icon {
  background: #c2593b;
  color: white;
  transform: scale(1.1) rotate(90deg);
}

/* ═══════════════════════════════════════════
   ITEM IMAGE PLACEHOLDER — état sans image
   ═══════════════════════════════════════════ */

/* Version compacte (wishlist privée — 64×64px) */
.item-img-placeholder {
  background: linear-gradient(135deg, #f2ede7 0%, #fdf0ec 100%);
  position: relative;
}

/* Version grande (share — aspect 4/3) */
.item-img-placeholder--large {
  background: linear-gradient(160deg, #f2ede7 0%, #fdf0ec 50%, #f9f0ec 100%);
  position: relative;
}

/* Reduced-motion : supprime les éventuelles animations sur l'icône */
@media (prefers-reduced-motion: reduce) {
  .item-img-placeholder svg,
  .item-img-placeholder--large svg {
    animation: none;
  }
}

/* ═══════════════════════════════════════════
   ITEM CARDS — grid (share view)
   ═══════════════════════════════════════════ */
.item-card {
  background: #ffffff;
  border: 1px solid #e7e0d8;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 350ms var(--ease-out-expo);
}

.item-card:hover {
  border-color: #f0ebe5;
  box-shadow: 0 8px 32px rgba(28, 25, 22, 0.08);
  transform: translateY(-6px);
}

.item-card img {
  transition: transform 600ms var(--ease-out-expo);
}

.item-card:hover img {
  transform: scale(1.06);
}

/* ═══════════════════════════════════════════
   TOAST — slide in from right
   ═══════════════════════════════════════════ */
.toast-slide-in {
  animation: slideInRight 350ms var(--ease-out-expo) both;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn-terra {
  transition: background-color 200ms ease, transform 150ms ease, box-shadow 200ms ease;
}

.btn-terra:hover {
  box-shadow: 0 4px 16px rgba(194, 89, 59, 0.2);
}

.btn-terra:active {
  transform: scale(0.98);
}

/* ═══════════════════════════════════════════
   CARD HOVER (legacy, items inline)
   ═══════════════════════════════════════════ */
.card-hover {
  transition: background-color 250ms ease, transform 350ms var(--ease-out-expo), box-shadow 350ms ease, border-color 250ms ease;
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(194, 89, 59, 0.08);
}

/* ═══════════════════════════════════════════
   SKELETON SHIMMER
   ═══════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(194,89,59,0.04) 25%,
    rgba(194,89,59,0.08) 50%,
    rgba(194,89,59,0.04) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border-radius: 0.75rem;
}

/* ═══════════════════════════════════════════
   FLOAT (empty states)
   ═══════════════════════════════════════════ */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* ═══════════════════════════════════════════
   SHARE HERO — header immersif page publique
   ═══════════════════════════════════════════ */
.share-hero {
  position: relative;
  background: linear-gradient(175deg, #faf8f5 0%, #f5ede6 40%, #fdf0ec 100%);
}

/* Orbes de gradient mesh flottants */
.share-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.share-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform;
}

.share-hero-orb--1 {
  width: 400px;
  height: 400px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(194, 89, 59, 0.15), transparent 70%);
  animation: orb-drift-1 12s ease-in-out infinite;
}

.share-hero-orb--2 {
  width: 300px;
  height: 300px;
  bottom: -60px;
  left: -40px;
  background: radial-gradient(circle, rgba(232, 169, 144, 0.20), transparent 70%);
  animation: orb-drift-2 10s ease-in-out infinite;
}

.share-hero-orb--3 {
  width: 200px;
  height: 200px;
  top: 40%;
  left: 50%;
  background: radial-gradient(circle, rgba(194, 89, 59, 0.08), transparent 70%);
  animation: orb-drift-3 14s ease-in-out infinite;
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-30px, 20px) scale(1.05); }
  66%      { transform: translate(20px, -15px) scale(0.95); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(25px, -20px) scale(1.08); }
}

@keyframes orb-drift-3 {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50%      { transform: translate(-50%, -25px) scale(1.1); }
}

/* Particules décoratives flottantes */
.share-hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.share-particle {
  position: absolute;
  color: rgba(194, 89, 59, 0.12);
  will-change: transform;
}

.share-particle--1 {
  top: 15%;
  left: 8%;
  animation: particle-float 8s ease-in-out infinite;
}

.share-particle--2 {
  top: 25%;
  right: 12%;
  animation: particle-float 6s ease-in-out infinite 1s;
}

.share-particle--3 {
  bottom: 30%;
  left: 15%;
  color: rgba(232, 169, 144, 0.15);
  animation: particle-float 10s ease-in-out infinite 2s;
}

.share-particle--4 {
  top: 55%;
  right: 8%;
  color: rgba(194, 89, 59, 0.08);
  animation: particle-float 7s ease-in-out infinite 0.5s;
}

.share-particle--5 {
  top: 12%;
  right: 25%;
  color: rgba(232, 169, 144, 0.18);
  animation: particle-float 9s ease-in-out infinite 3s;
}

.share-particle--6 {
  bottom: 25%;
  right: 20%;
  color: rgba(194, 89, 59, 0.10);
  animation: particle-float 11s ease-in-out infinite 1.5s;
}

@keyframes particle-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(10px, -15px) rotate(5deg); }
  50%      { transform: translate(-5px, -25px) rotate(-3deg); }
  75%      { transform: translate(-15px, -10px) rotate(4deg); }
}

/* Masquer particules sur petit écran pour rester clean */
@media (max-width: 640px) {
  .share-hero-particles { display: none; }
  .share-hero-orb--1 { width: 250px; height: 250px; }
  .share-hero-orb--2 { width: 180px; height: 180px; }
  .share-hero-orb--3 { display: none; }
}

/* Badge occasion */
.share-hero-badge {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.share-hero-badge span {
  display: inline-block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #c2593b;
  background: rgba(194, 89, 59, 0.08);
  border: 1px solid rgba(194, 89, 59, 0.15);
  padding: 6px 18px;
  border-radius: 9999px;
}

/* Avatar avec glow pulsé */
.share-hero-avatar {
  width: 72px;
  height: 88px;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 3px solid white;
  box-shadow: 0 4px 20px rgba(194, 89, 59, 0.15),
              0 0 0 1px rgba(194, 89, 59, 0.08);
  animation: avatar-glow 4s ease-in-out infinite;
}

@keyframes avatar-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(194, 89, 59, 0.15), 0 0 0 1px rgba(194, 89, 59, 0.08); }
  50%      { box-shadow: 0 6px 30px rgba(194, 89, 59, 0.25), 0 0 0 1px rgba(194, 89, 59, 0.15); }
}

/* Stat chips du hero (variante glass) */
.share-stat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(231, 224, 216, 0.6);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #78716c;
  transition: all 200ms ease;
}

.share-stat-chip:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: #e8a990;
  color: #c2593b;
  transform: translateY(-1px);
}

/* Vague séparatrice bas du hero */
.share-hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.share-hero-wave svg {
  display: block;
  width: 100%;
  height: 40px;
}

@media (min-width: 640px) {
  .share-hero-wave svg { height: 60px; }
}

/* ═══════════════════════════════════════════
   SHARE HERO — Thème NOËL
   ═══════════════════════════════════════════ */

/* Fond : cranberry profond + touches dorées */
.share-hero--noel {
  background: linear-gradient(175deg, #1a0f0f 0%, #2d1215 30%, #1c1412 70%, #0f0a08 100%);
}

/* Orbes en cranberry + or */
.share-hero--noel .share-hero-orb--1 {
  background: radial-gradient(circle, rgba(168, 40, 40, 0.25), transparent 70%);
}

.share-hero--noel .share-hero-orb--2 {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%);
}

.share-hero--noel .share-hero-orb--3 {
  background: radial-gradient(circle, rgba(168, 40, 40, 0.12), transparent 70%);
}

/* Textes en clair sur fond sombre */
.share-hero--noel h1 {
  color: #faf8f5 !important;
}

.share-hero--noel p {
  color: #c8b8a8 !important;
}

/* Badge occasion doré */
.share-hero--noel .share-hero-badge span {
  color: #d4af37;
  background: rgba(212, 175, 55, 0.10);
  border-color: rgba(212, 175, 55, 0.25);
}

/* Avatar glow cranberry */
.share-hero--noel .share-hero-avatar {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 20px rgba(168, 40, 40, 0.3), 0 0 0 1px rgba(212, 175, 55, 0.15);
}

@keyframes avatar-glow-noel {
  0%, 100% { box-shadow: 0 4px 20px rgba(168, 40, 40, 0.3), 0 0 0 1px rgba(212, 175, 55, 0.15); }
  50%      { box-shadow: 0 6px 30px rgba(168, 40, 40, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.3); }
}

.share-hero--noel .share-hero-avatar {
  animation: avatar-glow-noel 4s ease-in-out infinite;
}

/* Stat chips glass sombre */
.share-hero--noel .share-stat-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
  color: #c8b8a8;
  backdrop-filter: blur(12px);
}

.share-hero--noel .share-stat-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(212, 175, 55, 0.3);
  color: #d4af37;
}

.share-hero--noel .share-stat-chip svg {
  color: #d4af37 !important;
}

/* Vague en couleur body pour transition propre */
.share-hero--noel .share-hero-wave svg {
  fill: #faf8f5;
}

/* ─── Flocons de neige ─── */
.share-snowfall {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.snowflake {
  position: absolute;
  top: -20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  will-change: transform;
  animation: snowfall linear infinite;
}

.snowflake--1  { left: 2%;  font-size: 16px; animation-duration: 8s;  animation-delay: 0s; }
.snowflake--2  { left: 8%;  font-size: 10px; animation-duration: 11s; animation-delay: 1.2s; }
.snowflake--3  { left: 14%; font-size: 18px; animation-duration: 9s;  animation-delay: 3s; }
.snowflake--4  { left: 20%; font-size: 8px;  animation-duration: 12s; animation-delay: 0.5s; }
.snowflake--5  { left: 27%; font-size: 14px; animation-duration: 10s; animation-delay: 2s; }
.snowflake--6  { left: 33%; font-size: 12px; animation-duration: 7s;  animation-delay: 4s; }
.snowflake--7  { left: 39%; font-size: 10px; animation-duration: 13s; animation-delay: 1.5s; }
.snowflake--8  { left: 45%; font-size: 16px; animation-duration: 9s;  animation-delay: 3.5s; }
.snowflake--9  { left: 51%; font-size: 8px;  animation-duration: 11s; animation-delay: 2.5s; }
.snowflake--10 { left: 57%; font-size: 14px; animation-duration: 8s;  animation-delay: 5s; }
.snowflake--11 { left: 63%; font-size: 12px; animation-duration: 10s; animation-delay: 0.8s; }
.snowflake--12 { left: 68%; font-size: 18px; animation-duration: 9s;  animation-delay: 2.8s; }
.snowflake--13 { left: 73%; font-size: 8px;  animation-duration: 12s; animation-delay: 1s; }
.snowflake--14 { left: 78%; font-size: 10px; animation-duration: 7s;  animation-delay: 4.5s; }
.snowflake--15 { left: 83%; font-size: 16px; animation-duration: 11s; animation-delay: 0.3s; }
.snowflake--16 { left: 88%; font-size: 12px; animation-duration: 8s;  animation-delay: 3.2s; }
.snowflake--17 { left: 92%; font-size: 14px; animation-duration: 10s; animation-delay: 1.8s; }
.snowflake--18 { left: 96%; font-size: 10px; animation-duration: 13s; animation-delay: 2.2s; }
.snowflake--19 { left: 5%;  font-size: 6px;  animation-duration: 14s; animation-delay: 6s; }
.snowflake--20 { left: 48%; font-size: 6px;  animation-duration: 15s; animation-delay: 7s; }

@keyframes snowfall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(calc(100vh + 20px)) rotate(360deg); opacity: 0; }
}

/* Masquer flocons sur petit écran — garder 8 */
@media (max-width: 640px) {
  .snowflake--2, .snowflake--4, .snowflake--7, .snowflake--9,
  .snowflake--11, .snowflake--13, .snowflake--14, .snowflake--16,
  .snowflake--17, .snowflake--18, .snowflake--19, .snowflake--20 { display: none; }
}

/* ═══════════════════════════════════════════
   SHARE HERO — Thème ANNIVERSAIRE
   ═══════════════════════════════════════════ */
.share-hero--anniv {
  background: linear-gradient(175deg, #fff5f0 0%, #ffe8e0 30%, #fff0e6 60%, #ffecd8 100%);
}

/* Orbes festifs rose/corail/doré */
.share-hero--anniv .share-hero-orb--1 {
  background: radial-gradient(circle, rgba(255, 107, 129, 0.20), transparent 70%);
}

.share-hero--anniv .share-hero-orb--2 {
  background: radial-gradient(circle, rgba(255, 179, 71, 0.22), transparent 70%);
}

.share-hero--anniv .share-hero-orb--3 {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12), transparent 70%);
}

/* Badge occasion rose vif */
.share-hero--anniv .share-hero-badge span {
  color: #e8457a;
  background: rgba(232, 69, 122, 0.08);
  border-color: rgba(232, 69, 122, 0.20);
}

/* Avatar glow corail */
.share-hero--anniv .share-hero-avatar {
  border-color: rgba(255, 107, 129, 0.3);
  box-shadow: 0 4px 20px rgba(255, 107, 129, 0.20), 0 0 0 1px rgba(255, 179, 71, 0.15);
  animation: avatar-glow-anniv 4s ease-in-out infinite;
}

@keyframes avatar-glow-anniv {
  0%, 100% { box-shadow: 0 4px 20px rgba(255, 107, 129, 0.20), 0 0 0 1px rgba(255, 179, 71, 0.15); }
  50%      { box-shadow: 0 6px 30px rgba(255, 107, 129, 0.30), 0 0 0 1px rgba(255, 179, 71, 0.25); }
}

/* Stat chips festifs */
.share-hero--anniv .share-stat-chip:hover {
  border-color: rgba(255, 107, 129, 0.35);
  color: #e8457a;
}

.share-hero--anniv .share-stat-chip:hover svg {
  color: #e8457a !important;
}

/* ─── Confettis ─── */
.share-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  will-change: transform;
  animation: confetti-fall linear infinite;
}

/* Couleurs variées et positions réparties */
.confetti--1  { left: 3%;  background: #ff6b81; width: 8px;  height: 5px;  animation-duration: 6s;  animation-delay: 0s; }
.confetti--2  { left: 9%;  background: #ffb347; width: 6px;  height: 8px;  border-radius: 50%; animation-duration: 8s;  animation-delay: 1s; }
.confetti--3  { left: 16%; background: #a855f7; width: 10px; height: 4px;  animation-duration: 7s;  animation-delay: 2.5s; }
.confetti--4  { left: 22%; background: #34d399; width: 5px;  height: 5px;  border-radius: 50%; animation-duration: 9s;  animation-delay: 0.8s; }
.confetti--5  { left: 29%; background: #fbbf24; width: 7px;  height: 7px;  animation-duration: 6.5s; animation-delay: 3s; }
.confetti--6  { left: 35%; background: #f472b6; width: 9px;  height: 4px;  animation-duration: 8.5s; animation-delay: 1.5s; }
.confetti--7  { left: 42%; background: #60a5fa; width: 6px;  height: 6px;  border-radius: 50%; animation-duration: 7.5s; animation-delay: 4s; }
.confetti--8  { left: 48%; background: #ff6b81; width: 8px;  height: 3px;  animation-duration: 6s;  animation-delay: 2s; }
.confetti--9  { left: 55%; background: #fbbf24; width: 5px;  height: 8px;  animation-duration: 9.5s; animation-delay: 0.3s; }
.confetti--10 { left: 61%; background: #a855f7; width: 7px;  height: 5px;  border-radius: 50%; animation-duration: 7s;  animation-delay: 3.5s; }
.confetti--11 { left: 67%; background: #34d399; width: 10px; height: 4px;  animation-duration: 8s;  animation-delay: 1.2s; }
.confetti--12 { left: 73%; background: #f472b6; width: 6px;  height: 6px;  animation-duration: 6.5s; animation-delay: 5s; }
.confetti--13 { left: 78%; background: #60a5fa; width: 8px;  height: 3px;  animation-duration: 10s; animation-delay: 2.2s; }
.confetti--14 { left: 83%; background: #ffb347; width: 5px;  height: 7px;  border-radius: 50%; animation-duration: 7.5s; animation-delay: 0.6s; }
.confetti--15 { left: 88%; background: #ff6b81; width: 9px;  height: 5px;  animation-duration: 8.5s; animation-delay: 4.5s; }
.confetti--16 { left: 93%; background: #fbbf24; width: 7px;  height: 4px;  animation-duration: 6s;  animation-delay: 1.8s; }
.confetti--17 { left: 12%; background: #60a5fa; width: 4px;  height: 4px;  border-radius: 50%; animation-duration: 11s; animation-delay: 6s; }
.confetti--18 { left: 52%; background: #34d399; width: 6px;  height: 3px;  animation-duration: 12s; animation-delay: 7s; }

@keyframes confetti-fall {
  0%   { transform: translateY(-12px) rotate(0deg) scale(1); opacity: 0; }
  8%   { opacity: 0.85; }
  50%  { transform: translateY(calc(50vh)) rotate(200deg) scale(0.9); opacity: 0.7; }
  85%  { opacity: 0.5; }
  100% { transform: translateY(calc(100vh + 12px)) rotate(420deg) scale(0.6); opacity: 0; }
}

/* Mobile : réduire le nombre de confettis */
@media (max-width: 640px) {
  .confetti--2, .confetti--4, .confetti--7, .confetti--9,
  .confetti--11, .confetti--13, .confetti--14, .confetti--16,
  .confetti--17, .confetti--18 { display: none; }
}

/* ═══════════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════════ */
.progress-bar {
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════
   FOCUS RING
   ═══════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid #c2593b;
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate-in {
    opacity: 1;
  }
}
