/* ============================================================
   Mariage Manon & Hugo — 31 juillet 2027
   Style aquarelle champêtre : blanc cassé, pastels, lampions
   ============================================================ */

:root {
  --bg: #FBF7F0;            /* blanc cassé */
  --bg-alt: #F6F0E6;
  --ink: #1F1B18;           /* quasi noir */
  --ink-soft: #5C544C;
  --rose: #E06A7E;
  --rose-deep: #C9546A;
  --rose-pale: #FDEFF2;
  --rose-bg: #F9DFE6;
  --sauge: #6FA17C;
  --sauge-deep: #4E8A5E;
  --sauge-pale: #EAF4EB;
  --sauge-bg: #D9EDDB;
  --jaune: #E0B84E;
  --jaune-deep: #C79A2C;
  --jaune-pale: #FBF3DF;
  --jaune-bg: #F4E5BC;
  --lilas: #9A86B8;
  --lilas-deep: #7E68A1;
  --lilas-pale: #F2EDF7;
  --lilas-bg: #E5D9F0;
  --kraft: #EAD9C6;
  --kraft-dark: #D9BC9B;
  --white: #FFFDF8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans: "Jost", "Segoe UI", sans-serif;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(40, 30, 20, .10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.hidden { display: none !important; }

/* ---------- boutons & liens ---------- */
.btn {
  display: inline-block;
  padding: .9rem 2.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .04em;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(31,27,24,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31,27,24,.3); }
.btn-big { padding: 1.05rem 2.6rem; font-size: 1.05rem; }

.link-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-weight: 400; letter-spacing: .03em;
  color: var(--ink-soft); text-decoration: underline;
  text-underline-offset: 4px; text-decoration-color: var(--rose);
  padding: .3rem 0; transition: color .2s;
}
.link-btn:hover { color: var(--rose); }

/* ---------- bouton son ---------- */
.sound-toggle {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 120;
  width: 46px; height: 46px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--white); box-shadow: var(--shadow);
  font-size: 1.25rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.sound-toggle:hover { transform: translateY(-2px) scale(1.05); }

/* lecteur YouTube de la musique de fond : présent dans le DOM mais invisible */
.bg-music-player {
  position: fixed; left: -9999px; top: -9999px;
  width: 2px; height: 2px; overflow: hidden;
}

/* ============================================================
   ÉCRAN D'ACCUEIL — L'ENVELOPPE
   ============================================================ */
.splash {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(40rem 30rem at 15% 10%, rgba(249,223,230,.55), transparent 60%),
    radial-gradient(36rem 28rem at 85% 90%, rgba(217,237,219,.6), transparent 60%),
    radial-gradient(30rem 24rem at 70% 20%, rgba(244,229,188,.5), transparent 60%),
    var(--bg);
  transition: opacity .9s ease, visibility .9s ease;
}
.splash.fade-out { opacity: 0; visibility: hidden; }

/* --- canvas de feux d'artifice : couche fixe indépendante, au-dessus de tout le
     reste (y compris la lettre déjà visible en dessous) — pas de fondu lié au splash,
     seule sa propre opacité (pilotée en JS) la fait apparaître/disparaître. --- */
.fireworks {
  position: fixed; inset: 0; z-index: 200;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0;
}
.fireworks.active { opacity: 1; }
.splash-inner { position: relative; z-index: 2; text-align: center; padding: 1.5rem; }

.splash-greeting {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  letter-spacing: .02em;
  color: var(--ink);
  margin-bottom: 2.2rem; min-height: 1.4em;
}

/* --- l'enveloppe --- */
.envelope {
  position: relative;
  width: min(420px, 86vw);
  height: 286px;
  margin: 0 auto;
  perspective: 1200px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.envelope:focus-visible { outline: 3px solid var(--rose); outline-offset: 8px; border-radius: 10px; }

.env-back {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(155deg, #EFE0CD 0%, var(--kraft) 55%, var(--kraft-dark) 100%);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.env-back::after { /* pli central */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(120,90,60,.14) 50%, transparent 54%);
  border-radius: 10px;
}

.env-letter {
  position: absolute; z-index: 2;
  left: 5%; right: 5%; top: 12%; height: 58%;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(74,59,50,.2);
  display: flex; align-items: center; justify-content: center;
  transition: transform .7s cubic-bezier(.25,.7,.3,1);
}
.letter-preview { text-align: center; padding: .8rem; }
.lp-names {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.3rem, 4vw, 1.7rem); letter-spacing: .08em; color: var(--ink);
}
.lp-date { display: block; font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--ink-soft); margin-top: .35rem; }

/* poche (recto complet) : la lettre reste cachée derrière pendant la sortie */
.env-front {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(155deg, #EFE0CD 0%, var(--kraft) 55%, var(--kraft-dark) 100%);
  border-radius: 10px;
  box-shadow: inset 0 6px 14px rgba(120,90,60,.18);
}
.env-front::before { /* liseré haut de poche */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.35), transparent);
  border-radius: 10px 10px 0 0;
}

.env-flap {
  position: absolute; z-index: 4;
  top: 0; left: 0; right: 0; height: 54%;
  background: linear-gradient(180deg, var(--kraft-dark) 0%, var(--kraft) 100%);
  transform-origin: top center;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transition: transform .6s cubic-bezier(.4,.1,.3,1);
  backface-visibility: hidden;
}

.env-seal {
  position: absolute; z-index: 6;
  left: 50%; top: 50%;
  width: 62px; height: 62px;
  margin: -31px 0 0 -31px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #EDB0A6, #C96F66 72%);
  box-shadow: 0 4px 10px rgba(120,60,50,.35), inset 0 0 0 3px rgba(255,255,255,.28), inset 0 0 12px rgba(90,30,25,.4);
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s ease, opacity .4s ease;
}
.env-seal span {
  font-family: var(--serif); font-weight: 700; font-size: .9rem;
  color: rgba(255,255,255,.94); letter-spacing: .06em;
}

/* séquence d'ouverture : le rabat bascule, la lettre sort AU-DESSUS de l'enveloppe */
.envelope.opened .env-flap { transform: rotateX(180deg); }
.envelope.opened .env-seal { transform: scale(0); opacity: 0; }
.envelope.opened .env-letter { transform: translateY(-185px) scale(1.1); }

.splash-hint {
  margin-top: 1.8rem; font-family: var(--serif); font-style: italic; color: var(--ink-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% {opacity:.55} 50% {opacity:1} }
#splash-skip { margin-top: 1rem; }

/* ============================================================
   LA LETTRE
   ============================================================ */
.letter {
  padding: clamp(1.5rem, 5vw, 4rem) 1.25rem clamp(3rem, 6vw, 5rem);
  position: relative; overflow: hidden;
  background:
    radial-gradient(34rem 26rem at 8% 6%, var(--rose-pale), transparent 62%),
    radial-gradient(30rem 24rem at 92% 12%, var(--sauge-pale), transparent 60%),
    radial-gradient(28rem 22rem at 50% 100%, var(--jaune-pale), transparent 60%);
}
.letter-card {
  max-width: min(780px, 94vw);
  margin: 0 auto;
  background:
    radial-gradient(30rem 20rem at 90% 0%, rgba(248,239,217,.5), transparent 60%),
    radial-gradient(24rem 18rem at 5% 100%, rgba(228,237,224,.6), transparent 60%),
    radial-gradient(20rem 16rem at 50% 100%, rgba(249,223,230,.35), transparent 65%),
    var(--white);
  border-radius: 26px;
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(255,255,255,.7),
    inset 0 0 0 7px var(--rose-pale);
  padding: clamp(2.2rem, 5vw, 3.6rem) clamp(1.4rem, 5vw, 3.6rem);
  text-align: center;
  position: relative;
}
.letter.reveal { animation: fadeUp .9s ease both; }
@keyframes fadeUp { from {opacity:0; transform: translateY(24px)} to {opacity:1; transform:none} }

.lampions { width: 100%; height: 128px; margin-bottom: .8rem; overflow: visible; }
.lanterne { animation: floaty 4.5s ease-in-out infinite; transform-origin: center; }
.lanterne:nth-child(2n) { animation-delay: 1.2s; }
.lanterne:nth-child(3n) { animation-delay: 2.2s; }
@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-5px) } }

/* halo lumineux qui pulse doucement, comme des lampions allumés */
.lanterne .glow {
  animation: lanternGlow 3.2s ease-in-out infinite;
  transform-origin: center;
}
.lanterne:nth-child(3n) .glow { animation-delay: .9s; }
.lanterne:nth-child(4n) .glow { animation-delay: 1.7s; }
@keyframes lanternGlow {
  0%, 100% { opacity: .55; transform: scale(.92); }
  50%      { opacity: 1;   transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .lanterne, .lanterne .glow { animation: none; }
}

.letter-names {
  display: flex; align-items: baseline; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
}
.name {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.2rem, 9vw, 4rem);
  letter-spacing: .14em; color: var(--ink);
  text-transform: uppercase;
}
.name-left { transform: translateX(-7px); }
.name-right { transform: translateX(7px); }
.name-et { font-family: var(--script); font-size: clamp(1.5rem, 4vw, 2rem); color: var(--ink-soft); }

/* ---------- "Les bébounounets" : même duo de couleurs que le bouton principal, pour rester dans la charte ---------- */
.bebou-title {
  display: inline-block;
  font-family: var(--script);
  font-size: clamp(2.6rem, 11vw, 5.4rem);
  line-height: 1.1;
  background: linear-gradient(100deg, var(--rose-deep) 20%, var(--lilas-deep) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 16px rgba(224,106,126,.22));
  animation: bebouPop .9s cubic-bezier(.32,1.7,.4,1) both;
}
@keyframes bebouPop {
  0%   { transform: scale(.55) rotate(-5deg); opacity: 0; }
  55%  { transform: scale(1.08) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .bebou-title { animation: none; }
}

.letter-title {
  font-family: var(--script); font-size: clamp(2.1rem, 7vw, 3.4rem);
  color: var(--rose-deep); margin: .5rem 0 1rem;
}
.letter-flourish { display: block; width: min(220px, 60%); height: 16px; margin: 0 auto .9rem; }
.letter-sub { font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: clamp(1rem, 2.6vw, 1.2rem); }
.letter-sub.sep { color: var(--rose); font-style: normal; margin: .2rem 0; font-size: 1.3rem; }
.letter-sub.lieu { font-size: clamp(1.1rem, 3vw, 1.3rem); color: var(--ink); }

.letter-illu { margin: 1.8rem 0; }
.letter-illu img {
  width: 100%; max-width: 470px; margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(74,59,50,.2), 0 0 0 6px var(--white), 0 0 0 7px rgba(74,59,50,.08);
}

.letter-text { font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--ink-soft); max-width: 52ch; margin: 0 auto 1.8rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,240,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74,59,50,.08);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: .7rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-brand { font-family: var(--serif); font-weight: 600; letter-spacing: .1em; font-size: 1.1rem; }
.nav-links { display: flex; gap: 1.3rem; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--rose); }
.nav-cta {
  background: var(--ink); color: var(--white) !important;
  padding: .45rem 1.1rem; border-radius: 999px;
}
/* pas de menu sur mobile : les liens se repliaient en bloc peu lisible sous la lettre */
@media (max-width: 639px) {
  .nav { display: none; }
}

/* ============================================================
   HÉROS + COMPTE À REBOURS
   ============================================================ */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 1.25rem clamp(4rem, 9vw, 6rem);
  overflow: hidden;
}
.watercolor { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .5; }
.blob-rose  { width: 420px; height: 420px; left: -120px; top: -80px; background: var(--rose-pale); }
.blob-sauge { width: 380px; height: 380px; right: -110px; top: 5%; background: var(--sauge-pale); }
.blob-jaune { width: 340px; height: 340px; left: 22%; bottom: -140px; background: var(--jaune-pale); }
.blob-lilas { width: 300px; height: 300px; right: 18%; bottom: -120px; background: var(--lilas-pale); }

/* absorption au scroll : seul le texte décoratif du haut s'estompe légèrement, le compte à rebours reste bien visible */
.hero-greeting, .hero-names, .hero-title {
  opacity: calc(1 - var(--scrollP, 0) * .55);
  transform: translateY(calc(var(--scrollP, 0) * -35px)) scale(calc(1 - var(--scrollP, 0) * .06));
}
.watercolor { transform: translateY(calc(var(--scrollP, 0) * 60px)); }

.hero-greeting {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.hero-names {
  display: flex; align-items: baseline; justify-content: center; gap: .9rem; flex-wrap: wrap;
}
.hero-names span {
  font-family: var(--serif); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.6rem, 10vw, 4.6rem); letter-spacing: .12em;
}
.hero-names em { font-family: var(--script); font-style: normal; font-size: clamp(1.5rem, 4.5vw, 2.2rem); color: var(--ink-soft); }
.hero-title { font-family: var(--script); font-size: clamp(2.4rem, 8vw, 3.6rem); margin-top: .3rem; }
.hero-date { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 3vw, 1.35rem); color: var(--ink); margin-top: 1.1rem; }
.hero-lieu { font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: clamp(1rem, 2.8vw, 1.15rem); }

.countdown {
  display: flex; justify-content: center; gap: clamp(.5rem, 2.5vw, 1.2rem);
  margin-top: 2.8rem;
}
.cd-box {
  min-width: clamp(70px, 16vw, 96px);
  padding: .95rem .4rem;
  border-radius: var(--radius);
  background: rgba(255,253,248,.85);
  box-shadow: var(--shadow);
}
.cd-box:nth-child(1) { background: var(--rose-pale); }
.cd-box:nth-child(2) { background: var(--sauge-pale); }
.cd-box:nth-child(3) { background: var(--jaune-pale); }
.cd-box:nth-child(4) { background: var(--lilas-pale); }
.cd-num {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 7vw, 2.8rem); line-height: 1.1;
}
/* rouleaux façon compteur mécanique : un chiffre par rouleau, défilement vertical */
.odo-digit {
  display: inline-block; overflow: hidden;
  height: 1em; line-height: 1; vertical-align: top;
}
.odo-track { display: flex; flex-direction: column; will-change: transform; }
.odo-track span { display: block; height: 1em; line-height: 1; text-align: center; }
.cd-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* ============================================================
   SECTIONS GÉNÉRIQUES
   ============================================================ */
.section { padding: clamp(3.2rem, 8vw, 5.5rem) 1.25rem; }
.section-alt { background: var(--bg-alt); }

/* fond uni sur tout le site : c'est l'icône pastel de chaque section qui porte la couleur */
.hero    { background:
    radial-gradient(36rem 26rem at 12% 0%, var(--rose-pale), transparent 62%),
    radial-gradient(34rem 26rem at 88% 20%, var(--sauge-pale), transparent 60%),
    radial-gradient(30rem 24rem at 60% 100%, var(--jaune-pale), transparent 60%);
}
.section-head { text-align: center; margin-bottom: 2.6rem; }
.section-icon {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin: 0 auto .9rem;
  border-radius: 50%; font-size: 1.6rem;
  box-shadow: var(--shadow);
}
.section-icon.rose  { background: var(--rose-pale); }
.section-icon.sauge { background: var(--sauge-pale); }
.section-icon.jaune { background: var(--jaune-pale); }
.section-icon.lilas { background: var(--lilas-pale); }
.section-head h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 6vw, 2.7rem); letter-spacing: .04em;
  color: var(--ink);
}
.section-head h2::after {
  content: ""; display: block; width: 60px; height: 2px;
  margin: .9rem auto 0; background: var(--ink); border-radius: 2px;
}
.section-sub { font-family: var(--serif); font-style: italic; color: var(--ink-soft); max-width: 62ch; margin: .9rem auto 0; }

/* ---------- planning ---------- */
.planning {
  display: grid; gap: 1.5rem;
  max-width: 1020px; margin: 0 auto;
}
.plan-card {
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(31,27,24,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(40,30,20,.14); }
.plan-card:nth-child(1) { background: linear-gradient(160deg, var(--rose-pale), var(--white) 70%); }
.plan-card:nth-child(2) { background: linear-gradient(160deg, var(--sauge-pale), var(--white) 70%); }
.plan-card:nth-child(3) { background: linear-gradient(160deg, var(--jaune-pale), var(--white) 70%); }
.plan-card .plan-icon {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: .8rem;
  border-radius: 50%; background: var(--white); font-size: 1.6rem;
  box-shadow: var(--shadow);
}
.plan-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; color: var(--ink); }
.plan-card .plan-titre { font-family: var(--serif); font-style: italic; color: var(--sauge-deep); font-weight: 500; margin-bottom: .9rem; font-size: 1.15rem; }
.plan-card ul { list-style: none; }
.plan-card li {
  padding: .5rem 0; position: relative;
  border-bottom: 1px dashed rgba(31,27,24,.14);
  font-size: 1.02rem; color: var(--ink);
  display: flex; align-items: center; gap: .6rem;
}
.plan-card li:last-child { border-bottom: none; }
.li-ico { font-size: 1.05rem; flex: 0 0 auto; }

/* ---------- lieu ---------- */
.lieu-grid {
  display: grid; gap: 2rem;
  max-width: 1020px; margin: 0 auto;
  grid-template-columns: 1fr;
}
.lieu-info {
  background: linear-gradient(160deg, var(--rose-pale), var(--white) 70%);
  border-radius: var(--radius); padding: 1.9rem 1.8rem;
  box-shadow: var(--shadow); border: 1px solid rgba(31,27,24,.05);
  text-align: center;
}
.lieu-info h3 { font-family: var(--serif); font-weight: 600; font-size: 1.8rem; }
.lieu-adresse { font-family: var(--serif); font-style: italic; color: var(--ink-soft); margin: .3rem 0 1rem; }
.lieu-info .link-btn { margin-top: .3rem; }
.lieu-infos { list-style: none; margin-bottom: 1.2rem; }
.lieu-infos li { padding: .5rem 0; display: flex; align-items: flex-start; gap: .7rem; text-align: left; }
.lieu-infos .li-ico { font-size: 1.15rem; flex: 0 0 auto; margin-top: .1rem; }
.lieu-map iframe {
  width: 100%; height: 340px; border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow); filter: sepia(.1) saturate(.95);
}

/* ---------- infos pratiques : cartes visuelles, colorées, avec icône ---------- */
.infos-list {
  display: grid; gap: 1.4rem; max-width: 980px; margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.info-item {
  border-radius: var(--radius); padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(31,27,24,.05);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.info-item:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(40,30,20,.14); }
.info-item.pastel-0 { background: linear-gradient(160deg, var(--rose-pale), var(--white) 70%); }
.info-item.pastel-1 { background: linear-gradient(160deg, var(--sauge-pale), var(--white) 70%); }
.info-item.pastel-2 { background: linear-gradient(160deg, var(--jaune-pale), var(--white) 70%); }
.info-item.pastel-3 { background: linear-gradient(160deg, var(--lilas-pale), var(--white) 70%); }
.info-icon {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; margin: 0 auto .9rem;
  border-radius: 50%; background: var(--white); font-size: 1.9rem;
  box-shadow: var(--shadow);
}
.info-item h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--ink); margin-bottom: .5rem; }
.info-item p { color: var(--ink-soft); font-size: .98rem; }

/* ============================================================
   FORMULAIRE
   ============================================================ */
.rsvp-form {
  max-width: 680px; margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 4vw, 2.4rem);
}
.field { margin-bottom: 1.5rem; border: none; padding: 0; min-width: 0; }
.field legend {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.3rem; margin-bottom: .7rem; color: var(--ink);
}
.field-intro { font-family: var(--serif); font-style: italic; color: var(--ink-soft); margin-bottom: .7rem; }
.field label { display: block; font-weight: 400; margin-bottom: .4rem; color: var(--ink); }

.field select, .field textarea {
  width: 100%; padding: .9rem 1.1rem;
  border: 1.5px solid rgba(31,27,24,.14); border-radius: 14px;
  background: #FBF9F6; color: var(--ink);
  font-family: var(--sans); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background .2s, transform .15s;
}
.field select:focus, .field textarea:focus {
  outline: none; border-color: var(--rose); background: var(--white);
  box-shadow: 0 0 0 4px rgba(224,106,126,.16);
}
.field-hint { display: block; margin-top: .4rem; font-size: .85rem; color: var(--ink-soft); }
.field-hint.err { color: #D64545; }

.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }

/* choix présence / participation : grille de chips modernes avec icône */
.choice-grid {
  display: grid; gap: .7rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.choice {
  position: relative;
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1rem;
  border-radius: 16px;
  background: #FBF9F6;
  border: 1.5px solid rgba(31,27,24,.12);
  cursor: pointer;
  user-select: none;
  transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
}
.choice:hover { transform: translateY(-2px); border-color: var(--rose); box-shadow: 0 6px 14px rgba(31,27,24,.08); }
.choice:has(input:checked) {
  border-color: var(--rose);
  background: var(--rose-pale);
  box-shadow: 0 6px 18px rgba(224,106,126,.22);
}
.choice-ico { font-size: 1.3rem; line-height: 1; flex: 0 0 auto; }
.accompagne-details { margin-top: 1.1rem; }
.choice input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.choice span:last-child { font-size: .96rem; color: var(--ink); font-weight: 400; }

/* ---------- champs à label flottant : style minimal "underline", pas de carré ---------- */
.float-field { position: relative; margin-bottom: 1.7rem; }
.float-field input {
  width: 100%; padding: 1.55rem .15rem .6rem;
  border: none; border-bottom: 1.5px solid rgba(31,27,24,.2);
  border-radius: 0;
  background: transparent; color: var(--ink);
  font-family: var(--sans); font-size: 1.05rem;
  transition: border-color .2s;
}
.float-field label {
  position: absolute; left: .15rem; top: 1.55rem;
  font-size: 1.02rem; color: var(--ink-soft); pointer-events: none;
  transition: top .18s ease, font-size .18s ease, color .18s ease;
}
.float-field input:focus,
.float-field input:not(:placeholder-shown) { padding-top: 1.8rem; padding-bottom: .4rem; }
.float-field input:focus ~ label,
.float-field input:not(:placeholder-shown) ~ label {
  top: 0; font-size: .74rem; letter-spacing: .03em; color: var(--rose-deep);
}
.float-field input:focus { outline: none; }
.float-field input.invalid { border-bottom-color: #D64545; }
.float-field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--lilas-deep));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
  pointer-events: none;
}
.float-field:focus-within::after { transform: scaleX(1); }

/* zone texte message : léger fond teinté */
.field textarea { resize: vertical; min-height: 72px; }

/* bouton d'envoi moderne */
.rsvp-form .btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--rose) 0%, var(--lilas-deep) 100%);
  color: var(--white);
  border: none;
  padding: 1.05rem 2.6rem;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(224,106,126,.35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.rsvp-form .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(224,106,126,.42);
  filter: brightness(1.03);
}
.rsvp-form .btn-primary:active { transform: translateY(0); }

.form-status { min-height: 1.5em; margin-top: 1.1rem; font-family: var(--serif); font-style: italic; color: var(--ink); }
.form-status.ok { color: var(--sauge-deep); }
.form-status.err { color: #D64545; }

.rsvp-ok {
  text-align: center; max-width: 600px; margin: 0 auto; padding: 2.6rem;
  background: var(--white); border-radius: 24px; box-shadow: var(--shadow);
}
.ok-title { margin: 0; color: var(--sauge-deep); font-size: clamp(2.2rem, 7vw, 3rem); }

.honey { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { text-align: center; padding: 2.8rem 1.25rem 3.2rem; border-top: 1px solid rgba(74,59,50,.1); }
.footer p { font-family: var(--serif); font-style: italic; color: var(--ink-soft); }
.footer-love { font-family: var(--sans) !important; font-style: normal !important; margin-top: .5rem; color: var(--rose) !important; }

/* ============================================================
   CHIEN QUI BONDIT (déclenché au scroll vers "Le week-end")
   ============================================================ */
.dog-attack {
  position: fixed; z-index: 60; pointer-events: none;
  left: -16vw; bottom: -16vh;
  width: clamp(150px, 26vw, 260px);
  opacity: 0;
  transform: scale(.3) rotate(-18deg);
  text-align: center;
}
.dog-svg { width: 100%; height: auto; filter: drop-shadow(0 14px 22px rgba(60,40,20,.32)); }
.dog-bubble {
  display: inline-block; margin-top: -.8rem;
  font-family: var(--script); font-size: 1.7rem; color: var(--rose-deep);
  background: var(--white); border-radius: 999px; padding: .15rem 1.2rem;
  box-shadow: var(--shadow);
  opacity: 0;
}
/* animation longue et marquée en 3 temps : bond → attaque (secousses au centre) → repart */
.dog-attack.jump { animation: dogJump 3s cubic-bezier(.3,.9,.35,1) forwards; }
.dog-attack.jump .dog-bubble { animation: dogBubble 3s ease forwards; }
@keyframes dogJump {
  0%   { left: -16vw; bottom: -16vh; opacity: 0; transform: translateX(0) scale(.3) rotate(-18deg); }
  8%   { opacity: 1; }
  26%  { left: 50vw; bottom: 40vh; transform: translateX(-50%) scale(1.6) rotate(9deg); }
  34%  { transform: translateX(-50%) scale(1.78) rotate(-11deg); }
  42%  { transform: translateX(-50%) scale(1.6) rotate(9deg); }
  50%  { transform: translateX(-50%) scale(1.78) rotate(-9deg); }
  58%  { transform: translateX(-50%) scale(1.6) rotate(7deg); }
  70%  { left: 50vw; bottom: 40vh; opacity: 1; transform: translateX(-50%) scale(1.55) rotate(0deg); }
  100% { left: 114vw; bottom: -18vh; opacity: 0; transform: translateX(-50%) scale(.5) rotate(30deg); }
}
@keyframes dogBubble {
  0%, 22% { opacity: 0; }
  30%, 66% { opacity: 1; }
  76%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dog-attack, .dog-attack.jump { display: none; }
}

/* ============================================================
   FURET QUI TRAVERSE (déclenché un peu plus loin dans le scroll)
   ============================================================ */
.ferret-run {
  position: fixed; z-index: 60; pointer-events: none;
  left: -22vw; bottom: 12px;
  width: clamp(100px, 15vw, 170px);
  opacity: 0;
}
.ferret-run.run { animation: ferretRun 2.4s linear forwards; }
@keyframes ferretRun {
  0%   { left: -22vw; opacity: 0; }
  6%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 118vw; opacity: 0; }
}
.ferret-svg {
  width: 100%; height: auto;
  filter: drop-shadow(0 6px 10px rgba(60,40,20,.25));
  animation: ferretBob .2s ease-in-out infinite;
  transform-origin: center;
}
.ferret-run.run .ferret-svg { animation-play-state: running; }
@keyframes ferretBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-4px) rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ferret-run, .ferret-run.run, .ferret-svg { display: none; animation: none; }
}

/* ============================================================
   RESPONSIVE — mobile d'abord, PC confortable ensuite
   ============================================================ */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .planning { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
  .lieu-grid { grid-template-columns: 1.05fr 1fr; align-items: center; }
}

@media (min-width: 900px) {
  .envelope { width: 460px; height: 310px; }
  .envelope.opened .env-letter { transform: translateY(-200px) scale(1.12); }
  .letter-card { padding: clamp(2.4rem, 5vw, 3.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .fireworks { display: none; }
}
