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

/* ── Variables ── */
:root {
  --rose:      #c4607e;
  --rose-pale: #e8a0b8;
  --mauve:     #9b6ba5;
  --creme:     #fdf5f0;
  --texte:     #3d2040;
  --texte-doux:#8a6878;
  --blanc:     #ffffff;
}

/* ── Base ── */
body {
  min-height: 100vh;
  background: linear-gradient(160deg, #fef0f5 0%, #f8edf8 40%, #fef0f5 100%);
  font-family: 'Lato', sans-serif;
  color: var(--texte);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 80px;
  overflow-x: hidden;
}

/* ── Pétales flottants ── */
.petales-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.petale {
  position: absolute;
  animation: tomber linear infinite;
  opacity: 0;
  user-select: none;
}
@keyframes tomber {
  0%   { transform: translateY(-5vh) rotate(0deg);   opacity: 0; }
  8%   { opacity: 0.7; }
  85%  { opacity: 0.5; }
  100% { transform: translateY(105vh) rotate(540deg); opacity: 0; }
}

/* ── Bandeau décoratif supérieur ── */
.ruban-top {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 28px 0 0;
}
.ruban-top svg { width: 120px; opacity: 0.55; }

/* ── En-tête ── */
header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 12px 0 52px;
}
.label-top {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-pale);
  margin-bottom: 14px;
}
header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #c4607e 0%, #9b3e62 40%, #c4607e 70%, #e8a0b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 18px rgba(196, 96, 126, 0.22));
}
.sous-titre {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--texte-doux);
  margin-top: 10px;
  font-weight: 400;
}

/* ── Séparateur fleuri ── */
.separateur {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 860px;
  margin-bottom: 28px;
}
.separateur::before,
.separateur::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 96, 126, 0.3), transparent);
}
.sep-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
  color: var(--rose);
  white-space: nowrap;
}
.sep-deco {
  color: var(--rose-pale);
  font-size: 0.75rem;
}

/* ── Grille ── */
.grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 22px;
  margin-bottom: 48px;
}

/* ── Carte ── */
.card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(196, 96, 126, 0.18);
  border-radius: 24px;
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(196, 96, 126, 0.08), 0 1px 4px rgba(0,0,0,0.04);
  transition: transform 0.28s cubic-bezier(.22,.9,.36,1),
              box-shadow 0.28s ease,
              border-color 0.28s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,240,248,0.2) 100%);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-7px) scale(1.01);
  box-shadow: 0 18px 52px rgba(196, 96, 126, 0.18), 0 4px 12px rgba(0,0,0,0.06);
  border-color: rgba(196, 96, 126, 0.45);
}

.card-emoji {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(196,96,126,0.25));
}
.card-occasion {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  font-style: italic;
  color: var(--texte);
  line-height: 1.25;
}
.card-year {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-pale);
}
.card-desc {
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--texte-doux);
  line-height: 1.7;
  flex: 1;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--rose);
  margin-top: 6px;
  letter-spacing: 0.04em;
  transition: gap 0.2s ease;
}
.card:hover .card-cta { gap: 14px; }

/* ── Pied de page ── */
footer {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  text-align: center;
}
.footer-sign {
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  color: var(--rose-pale);
}
.footer-url {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #c9b0c0;
  margin-top: 4px;
  text-transform: uppercase;
}
