:root {
  /* Palette mariage — rose / crème / blanc / vert / bleu */
  --color-white: #FFFFFF;
  --color-cream: #FBF4E9;
  --color-rose: #B05078;        /* sakura profond — CTA, accents (texte blanc OK) */
  --color-rose-light: #F6D5E0;  /* fonds rosés doux */
  --color-green: #4E7A60;       /* vert sauge profond — accents */
  --color-green-light: #DCEBDF; /* fonds verts doux */
  --color-blue: #3A6E8C;        /* bleu profond — titres, footer (texte blanc OK) */
  --color-blue-light: #D6E7F1;  /* fonds bleutés doux */
  --color-ink: #34526A;         /* texte courant (bleu ardoise, pas de noir pur) */

  --color-pine: #3F6B4F;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(52, 82, 106, 0.12);
  --shadow-hover: 0 16px 40px rgba(52, 82, 106, 0.2);
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Mulish", system-ui, -apple-system, sans-serif;
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.6;
}
/* fond washi : taches d'aquarelle (qui respirent lentement) + grain de papier */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 18%, rgba(176, 80, 120, 0.12), transparent 38%),
    radial-gradient(circle at 88% 22%, rgba(58, 110, 140, 0.12), transparent 40%),
    radial-gradient(circle at 78% 78%, rgba(63, 107, 79, 0.12), transparent 42%),
    radial-gradient(circle at 22% 85%, rgba(176, 80, 120, 0.08), transparent 40%),
    var(--color-cream);
  background-size: 160% 160%;
  background-position: 0% 0%;
  animation: washi-drift 34s ease-in-out infinite alternate;
}
@keyframes washi-drift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  /* texture matière : crépi/plâtre éclairé (relief) + grain fin de papier */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340'%3E%3Cfilter id='p' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5' seed='7' stitchTiles='stitch' result='t'/%3E%3CfeDiffuseLighting in='t' lighting-color='%23ffffff' surfaceScale='1.7' diffuseConstant='1.05'%3E%3CfeDistantLight azimuth='235' elevation='58'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 340px 340px, 150px 150px;
  background-repeat: repeat, repeat;
  mix-blend-mode: multiply;
}

h1, h2, h3 {
  font-family: "Funne Display", "Mulish", system-ui, sans-serif;
  font-weight: 800;
  color: var(--color-blue);
  line-height: 1.15;
  margin: 0;
}

/* ---------- HERO ---------- */
.hero {
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, var(--color-rose-light) 0%, transparent 60%),
    linear-gradient(165deg, rgba(214, 231, 241, 0.7) 0%, rgba(246, 213, 224, 0.5) 100%);
  padding: clamp(3rem, 9vw, 5.5rem) 1.25rem clamp(2.5rem, 7vw, 4.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* couche de pétales qui tombent */
.hero__petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.petal {
  position: absolute;
  top: -24px;
  width: 14px;
  height: 14px;
  background: var(--color-rose-light);
  border: 1px solid rgba(176, 80, 120, 0.35);
  border-radius: 0 100% 0 100%;
  opacity: 0.85;
  --op: 0.85;
  filter: blur(var(--blur, 0));
  will-change: transform, opacity;
  animation: petal-fall linear infinite;
}
/* plans de profondeur : opacité maximale propre à chaque plan */
.petal--d0 { --op: 0.5; }
.petal--d1 { --op: 0.7; }
.petal--d2 { --op: 0.92; }
@keyframes petal-fall {
  0% { transform: translate(0, -24px) rotate(0deg); opacity: 0; }
  10% { opacity: var(--op, 0.85); }
  90% { opacity: var(--op, 0.85); }
  100% { transform: translate(var(--drift, 40px), 110vh) rotate(var(--spin, 540deg)); opacity: 0; }
}
/* branches de sakura dans les coins */
.hero__branch { position: absolute; top: 0; width: clamp(120px, 22vw, 230px); height: auto; z-index: 1; pointer-events: none; }
.hero__branch--left { left: 0; }
.hero__branch--right { right: 0; transform: scaleX(-1); }
/* grand torii encadrant les prénoms */
.hero__inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.hero__torii {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  width: min(118%, 560px);
  height: auto;
  color: var(--color-rose);
  opacity: 0.22;
  z-index: -1;
  animation: torii-draw 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* le torii « se dessine » de haut en bas au chargement */
@keyframes torii-draw {
  0% { opacity: 0; clip-path: inset(0 0 100% 0); }
  100% { opacity: 0.22; clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__torii { animation: none; }
}
.hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--color-rose);
  margin: 0 0 1rem;
}
.hero__title {
  font-size: clamp(2.6rem, 9vw, 5rem);
  text-shadow: 0 2px 18px rgba(251, 244, 233, 0.9);
}
.hero__subtitle { font-size: clamp(1.1rem, 3vw, 1.5rem); margin-top: 0.75rem; color: var(--color-ink); }
.hero__date { margin-top: 0.5rem; font-weight: 600; color: var(--color-green); }

/* ---------- INTRO ---------- */
.intro {
  max-width: 720px;
  margin: clamp(2.5rem, 6vw, 4rem) auto;
  padding: 0 1.5rem;
  text-align: center;
  font-size: 1.15rem;
}

/* ---------- JOURNEY / CAGNOTTE ---------- */
.journey {
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
  background: var(--color-white);
  border: 1px solid var(--color-blue-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.journey__title { font-size: clamp(1.4rem, 4vw, 1.9rem); }
.journey__sub { margin: 0.25rem 0 1.5rem; color: var(--color-green); font-weight: 700; }
.journey__bar {
  display: flex;
  align-items: flex-start; /* pays + arc + avion en haut ; jauge et mariés plus bas */
  gap: clamp(0.75rem, 3vw, 1.5rem);
  width: 100%;
  position: relative;
  min-height: clamp(140px, 30vw, 190px);
  padding-top: clamp(26px, 7vw, 46px); /* dégage le ciel pour l'arc et l'avion */
}
.journey__country {
  flex: none;
  align-self: flex-start;
  width: clamp(54px, 13vw, 84px);
  height: clamp(54px, 13vw, 84px);
  opacity: 0.9;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.journey__country--fr {
  background-color: var(--color-blue);
  -webkit-mask-image: url('../assets/france.svg');
  mask-image: url('../assets/france.svg');
}
.journey__country--jp {
  background-color: var(--color-rose);
  -webkit-mask-image: url('../assets/japan.svg');
  mask-image: url('../assets/japan.svg');
}
.journey__track {
  position: relative;
  flex: 1;
  align-self: flex-end; /* la jauge descend sous les pays */
  margin-bottom: clamp(6px, 2vw, 14px);
  height: 16px;
  background: var(--color-blue-light);
  border-radius: 999px;
}
.journey__fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--color-green), var(--color-rose));
  /* même rail que le squelette, simplement rogné par la droite selon l'avancement */
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
/* reflet qui glisse le long de la partie remplie */
.journey__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: gauge-shimmer 12s ease-in-out infinite;
}
@keyframes gauge-shimmer {
  0% { transform: translateX(-130%); }
  14%, 100% { transform: translateX(130%); }
}
/* arc en pointillés + avion au-dessus de la jauge */
.journey__arc { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 1; overflow: visible; }
.journey__arcpath { fill: none; stroke: var(--color-rose); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; opacity: 0.38; }
.journey__plane { position: absolute; left: 0; top: 0; font-size: 1.4rem; line-height: 1; pointer-events: none; z-index: 5; opacity: 0; will-change: transform; }
/* odomètre du montant collecté */
.odo { display: inline-flex; align-items: baseline; font-weight: 800; color: var(--color-rose); line-height: 1; vertical-align: baseline; }
.odo-cell { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.odo-reel { display: flex; flex-direction: column; }
.odo-reel span { height: 1em; line-height: 1; display: flex; align-items: center; justify-content: center; }
.odo-sep { white-space: pre; line-height: 1; }
@media (prefers-reduced-motion: reduce) {
  .journey__fill::after { animation: none; opacity: 0; }
}
.journey__couple {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, calc(-100% - 5px));
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  white-space: nowrap;
  filter: drop-shadow(0 3px 4px rgba(52, 82, 106, 0.25));
  transition: left 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
/* petit repère qui pointe la position exacte sur la jauge */
.journey__couple::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-rose);
}
.journey__label { margin: 1.5rem 0 0; font-size: 1.1rem; }
.journey__label strong { color: var(--color-rose); }

/* ---------- FILTERS ---------- */
.filters {
  max-width: var(--maxw);
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.filters button {
  border: 2px solid var(--color-blue-light);
  background: var(--color-white);
  color: var(--color-ink);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s ease;
}
.filters button:hover { background: var(--color-blue-light); }
.filters button[aria-pressed="true"] {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white);
}

/* ---------- GIFTS GRID ---------- */
.gifts {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
  justify-content: center;
  gap: 1.5rem;
}
.gifts__loading { grid-column: 1 / -1; text-align: center; color: var(--color-green); }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-blue-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
/* halo « actif » piloté par le JS : survol souris ET doigt sur mobile */
.card.is-hovered {
  box-shadow: var(--shadow-hover), 0 0 0 1px color-mix(in srgb, var(--cat, var(--color-rose)) 45%, transparent);
  z-index: 2;
}

.card__media {
  position: relative;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  background: var(--color-green-light);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  /* le fond est légèrement creusé pour passer « derrière » l'emoji */
  box-shadow: inset 0 0 38px rgba(52, 82, 106, 0.12), inset 0 -6px 14px rgba(52, 82, 106, 0.06);
}
/* l'emoji flotte au-dessus du fond (ombre portée + survol parallaxe) */
.card__emoji {
  display: inline-block;
  line-height: 1;
  filter: drop-shadow(0 8px 10px rgba(52, 82, 106, 0.32));
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.card__body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__cat {
  align-self: flex-start;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-green);
  background: var(--color-green-light);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
/* une couleur par catégorie */
.card__cat[data-cat="Transport"]   { color: #2f6d8c; background: #d6e7f1; }
.card__cat[data-cat="Hébergement"] { color: #b05078; background: #f6d5e0; }
.card__cat[data-cat="Gastronomie"] { color: #a85d20; background: #f7e3c8; }
.card__cat[data-cat="Parcs"]       { color: #6a4fb0; background: #e4def4; }
.card__cat[data-cat="Culture"]     { color: #4e7a60; background: #dcebdf; }
.card__cat[data-cat="Détente"]     { color: #2e7d74; background: #cdebe5; }
.card__cat[data-cat="Aventure"]    { color: #b5523a; background: #f4ddd4; }
.card__cat[data-cat="Souvenirs"]   { color: #8a7a1f; background: #eeedc8; }

/* couleur de catégorie diffusée sur toute la carte */
.card[data-cat="Transport"]   { --cat: #2f6d8c; --cat-bg: #e7f1f7; }
.card[data-cat="Hébergement"] { --cat: #b05078; --cat-bg: #fbe7ef; }
.card[data-cat="Gastronomie"] { --cat: #a85d20; --cat-bg: #f9ecd8; }
.card[data-cat="Parcs"]       { --cat: #6a4fb0; --cat-bg: #ece7f7; }
.card[data-cat="Culture"]     { --cat: #4e7a60; --cat-bg: #e6f0e8; }
.card[data-cat="Détente"]     { --cat: #2e7d74; --cat-bg: #def2ee; }
.card[data-cat="Aventure"]    { --cat: #b5523a; --cat-bg: #f7e6e0; }
.card[data-cat="Souvenirs"]   { --cat: #8a7a1f; --cat-bg: #f3f1d9; }
.card[data-cat] { border-color: color-mix(in srgb, var(--cat) 38%, white); }
.card[data-cat] .card__media { background-color: var(--cat-bg); }
.card[data-cat] .card__price { color: var(--cat); }
.card__title { font-size: 1.2rem; margin-bottom: 0.4rem; }
.card__desc { font-size: 0.95rem; color: var(--color-ink); flex: 1; }
.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.1rem;
  gap: 0.75rem;
}
.card__price { font-size: 1.4rem; font-weight: 800; color: var(--color-rose); white-space: nowrap; }

/* ---------- BUTTONS ---------- */
.btn {
  font-family: inherit;
  font-weight: 800;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.15s ease, box-shadow 0.2s ease;
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(176, 80, 120, 0.32); }
}
.btn:active { transform: scale(0.93); }
.btn--primary { background: var(--color-rose); color: var(--color-white); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border: 2px solid var(--color-ink);
}
.btn--ghost:hover { background: var(--color-ink); color: var(--color-white); }
.card .btn { padding: 0.55rem 1.1rem; font-size: 0.88rem; }

/* ---------- FREE GIFT ---------- */
.freegift {
  max-width: var(--maxw);
  margin: clamp(3rem, 8vw, 5rem) auto;
  padding: 0 1.25rem;
}
.freegift__card {
  background: linear-gradient(160deg, var(--color-green-light), var(--color-rose-light));
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  box-shadow: var(--shadow);
}
.freegift__emoji { font-size: 3rem; }
.freegift__card h2 { font-size: 1.8rem; margin: 0.5rem 0; }
.freegift__card > p { max-width: 460px; margin: 0.5rem auto 1.5rem; color: var(--color-ink); }
.freegift__amounts { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.freegift__amounts button {
  border: 2px solid var(--color-blue);
  background: var(--color-white);
  color: var(--color-blue);
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}
.freegift__amounts button:hover,
.freegift__amounts button[aria-pressed="true"] { background: var(--color-blue); color: var(--color-white); }
.freegift__custom { margin-bottom: 1.4rem; }
.freegift__custom label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.freegift__inputwrap {
  display: inline-flex;
  align-items: center;
  background: var(--color-white);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  border: 2px solid var(--color-blue);
}
.freegift__inputwrap input {
  border: none;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  width: 120px;
  text-align: right;
  background: transparent;
  color: var(--color-ink);
}
.freegift__inputwrap input:focus { outline: none; }
.freegift__inputwrap span { font-weight: 800; margin-left: 0.3rem; }

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  padding: 2.5rem 1.25rem;
  background: var(--color-blue);
  color: var(--color-white);
  font-weight: 600;
}

/* ---------- MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(52, 82, 106, 0.55); backdrop-filter: blur(3px); }
.modal__box {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  box-shadow: var(--shadow-hover);
}
.modal__close {
  position: absolute; top: 0.8rem; right: 1rem;
  background: none; border: none; font-size: 2rem; line-height: 1;
  color: var(--color-ink); cursor: pointer;
}
.modal__gift { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.modal__emoji { font-size: 3rem; }
.modal__title { font-size: 1.5rem; }
.modal__amount { font-size: 1.5rem; font-weight: 800; color: var(--color-rose); margin: 0.2rem 0 0; }
.modal__lead { color: var(--color-ink); margin-top: 0; }
.modal__hint { font-size: 0.85rem; color: var(--color-green); text-align: center; margin-bottom: 0; }

.paymethods { display: flex; flex-direction: column; gap: 0.9rem; margin: 1.25rem 0; }
.paymethod {
  border: 2px solid var(--color-blue-light);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: var(--color-white);
}
.paymethod__head { display: flex; align-items: center; gap: 0.6rem; }
.paymethod__head strong { font-size: 1.05rem; }
.paymethod__icon { font-size: 1.5rem; }
.paymethod__note { font-size: 0.85rem; color: var(--color-ink); margin: 0.5rem 0 0.75rem; }
.paymethod a.btn, .paymethod button.btn { display: inline-block; text-decoration: none; }
.paymethod__copy {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  background: var(--color-cream);
  border-radius: 10px; padding: 0.6rem 0.8rem; margin-top: 0.5rem;
}
.paymethod__copy code { font-size: 0.85rem; word-break: break-all; flex: 1; min-width: 160px; }
.paymethod__copy button {
  border: none; background: var(--color-blue); color: var(--color-white);
  border-radius: 8px; padding: 0.35rem 0.7rem; font-family: inherit; font-weight: 700;
  cursor: pointer; font-size: 0.8rem;
}

.modal__step .btn--ghost { width: 100%; margin-top: 0.5rem; }

/* ---------- CONFIRM FORM ---------- */
.confirmform { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1rem; }
.confirmform[hidden] { display: none; }
.confirmform label { display: flex; flex-direction: column; font-weight: 700; gap: 0.35rem; }
.confirmform label span { color: var(--color-rose); }
.confirmform input, .confirmform textarea {
  font-family: inherit; font-size: 1rem;
  border: 2px solid var(--color-blue-light);
  border-radius: 10px; padding: 0.6rem 0.8rem;
  color: var(--color-ink); background: var(--color-white);
}
.confirmform input:focus, .confirmform textarea:focus { outline: none; border-color: var(--color-blue); }
.confirmform .btn { margin-top: 0.5rem; }
.confirmform__done { text-align: center; padding: 1rem 0; }
.confirmform__check { font-size: 3rem; }
.confirmform__done h3 { font-size: 1.4rem; margin: 0.5rem 0; }
.confirmform__done .btn { margin-top: 1rem; }

@media (max-width: 480px) {
  .card__footer { flex-direction: column; align-items: stretch; }
  .card__footer .btn { width: 100%; }
}

/* ======================================================================
   DÉCOR JAPONAIS — washi, torii, seigaiha, sakura, animations
   ====================================================================== */

/* Séparateur en vagues seigaiha */
.wave-divider {
  height: 26px;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cg fill='none' stroke='%233A6E8C' stroke-width='1.6'%3E%3Cpath d='M0 22 A22 22 0 0 1 44 22'/%3E%3Cpath d='M7 22 A15 15 0 0 1 37 22'/%3E%3Cpath d='M14 22 A8 8 0 0 1 30 22'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: 44px 22px;
  opacity: 0.55;
}
/* variante : rangée de mini-torii */
.wave-divider--torii {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='24' viewBox='0 0 46 24'%3E%3Cg fill='none' stroke='%23B05078' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M7 6 H39'/%3E%3Cpath d='M11 10 H35'/%3E%3Cpath d='M15 7 V21'/%3E%3Cpath d='M31 7 V21'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 46px 24px;
}

/* Portique de temple au trait encadrant chaque carte (toit + lanternes, piliers, socle) */
.card {
  position: relative;
  padding: 58px 26px 28px;
  border-color: var(--color-rose-light);
  background: url("../assets/gate-base.svg") bottom center / calc(100% - 4px) 20px no-repeat, var(--color-white);
}
.card__media { border-radius: 8px 8px 0 0; }
/* toit (faîtage + avant-toit) et lanternes, en haut, étiré sur la largeur */
.card::before {
  content: "";
  position: absolute;
  top: 1px; left: 0; right: 0;
  height: 56px;
  z-index: 3;
  pointer-events: none;
  background: url("../assets/gate-roof.svg") top center / 100% 56px no-repeat;
}
/* piliers (côtés), entre le toit et le socle */
.card::after {
  content: "";
  position: absolute;
  top: 54px; bottom: 24px; left: 0; right: 0;
  z-index: 2;
  pointer-events: none;
  background:
    url("../assets/gate-pillar.svg") left 11px top 0 / 14px 18px repeat-y,
    url("../assets/gate-pillar.svg") right 11px top 0 / 14px 18px repeat-y;
}

/* Texture douce derrière l'emoji des cartes (atténuée, neutre pour toute teinte) */
.card__media {
  background-color: var(--color-green-light);
  background-image:
    radial-gradient(circle at 50% 100%, transparent 40%, rgba(52, 82, 106, 0.05) 41%, rgba(52, 82, 106, 0.05) 46%, transparent 47%);
  background-size: 22px 22px;
}

/* Footer : crête seigaiha + branche */
.footer { position: relative; }
.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 22px;
  transform: translateY(-100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cg fill='none' stroke='%233A6E8C' stroke-width='1.6'%3E%3Cpath d='M0 22 A22 22 0 0 1 44 22'/%3E%3Cpath d='M7 22 A15 15 0 0 1 37 22'/%3E%3Cpath d='M14 22 A8 8 0 0 1 30 22'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center bottom;
  opacity: 0.45;
}

/* Titres de section décorés d'un torii */
.journey__title,
.freegift__card h2 {
  position: relative;
  display: inline-block;
}

/* Apparition au scroll (montée + léger zoom, en cascade) */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Survol 3D des cartes (desktop : pointeur fin + survol) */
@media (hover: hover) and (pointer: fine) {
  .card { will-change: transform; }
}
/* Retour tactile sur mobile (pas de survol) */
@media (hover: none) {
  .card:active { transform: scale(0.985); }
}

/* ======================================================================
   AMÉLIORATIONS : infos pratiques, tri, partage, radios, toast, paliers, a11y
   ====================================================================== */
/* Lien infos pratiques */
.practical__link { margin-top: 1.5rem; display: inline-block; text-decoration: none; }
.footer__link { color: var(--color-white); font-weight: 700; }

/* Bouton partager */
.journey__share { margin-top: 1rem; }

/* Barre de tri */
.sortbar {
  max-width: var(--maxw);
  margin: 0 auto 1.5rem;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--color-ink);
}
.sortbar select {
  font-family: inherit;
  font-weight: 700;
  color: var(--color-ink);
  background: var(--color-white);
  border: 2px solid var(--color-blue-light);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
}
/* bascule « disponibles uniquement » */
.sortbar__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  background: var(--color-white);
  border: 2px solid var(--color-blue-light);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.sortbar__toggle:hover { border-color: var(--color-rose); }
.sortbar__toggle input { width: 1.05rem; height: 1.05rem; accent-color: var(--color-rose); cursor: pointer; margin: 0; }
.sortbar__toggle:has(input:checked) { border-color: var(--color-rose); background: var(--color-rose-light); }
@media (max-width: 480px) { .sortbar { flex-wrap: wrap; } }

/* Radios moyen de paiement */
.payradio {
  border: 2px solid var(--color-blue-light);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  margin: 0;
}
.payradio legend { font-weight: 700; padding: 0 0.4rem; }
.payradio label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.25rem 0.9rem 0.25rem 0;
  font-weight: 600;
  cursor: pointer;
}
.payradio input { accent-color: var(--color-rose); width: 1.05rem; height: 1.05rem; }

/* Toast de remerciement */
.toast {
  position: fixed;
  left: 50%;
  top: 1.2rem;
  transform: translate(-50%, -140%);
  z-index: 320;
  max-width: min(92vw, 420px);
  display: flex;
  gap: 0.7rem;
  align-items: center;
  background: var(--color-white);
  color: var(--color-ink);
  border: 2px solid var(--color-rose-light);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}
.toast--show { transform: translate(-50%, 0); opacity: 1; }
.toast__emoji { font-size: 1.6rem; }
.toast strong { color: var(--color-rose); }

/* Bannière palier */
.milestone {
  position: fixed;
  left: 50%;
  top: 15%;
  transform: translate(-50%, -50%) scale(0.6);
  z-index: 321;
  background: var(--color-blue);
  color: var(--color-white);
  font-family: "Funne Display", "Mulish", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
.milestone--show { transform: translate(-50%, -50%) scale(1); opacity: 1; }

/* Bouton flottant « revenir à la cagnotte » */
.to-cagnotte {
  position: fixed;
  right: clamp(0.9rem, 3vw, 1.6rem);
  bottom: clamp(0.9rem, 3vw, 1.6rem);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.95rem;
  border: none;
  border-radius: 999px;
  background: var(--color-blue);
  color: var(--color-white);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: var(--shadow-hover);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s, background 0.2s;
}
.to-cagnotte__arrow { font-size: 1.05rem; line-height: 1; }
.to-cagnotte--show { animation: to-cagnotte-in 0.3s ease both; }
@keyframes to-cagnotte-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (hover: hover) {
  .to-cagnotte:hover { transform: translateY(-3px); background: var(--color-rose); box-shadow: 0 12px 28px rgba(176, 80, 120, 0.4); }
}
.to-cagnotte:active { transform: scale(0.94); }

/* Accessibilité : focus visible homogène */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .toast, .milestone { transition: opacity 0.3s ease; }
  .to-cagnotte--show { animation: none; }
  .card__emoji { transition: none; }
}

/* ======================================================================
   RÉCOMPENSE À LA VALIDATION D'UN CADEAU
   ====================================================================== */
.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}
.gain-float {
  position: fixed;
  z-index: 301;
  transform: translate(-50%, -50%) scale(0.6);
  font-family: "Funne Display", "Mulish", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  color: var(--color-rose);
  text-shadow: 0 2px 10px rgba(251, 244, 233, 0.9);
  pointer-events: none;
  opacity: 0;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.4s ease;
}
.gain-float--go {
  transform: translate(-50%, -180%) scale(1.1);
  opacity: 1;
}
.journey--reward {
  animation: reward-pulse 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes reward-pulse {
  0% { transform: scale(1); box-shadow: var(--shadow); }
  25% { transform: scale(1.035); box-shadow: 0 16px 50px rgba(176, 80, 120, 0.45); }
  100% { transform: scale(1); box-shadow: var(--shadow); }
}
.journey__fill { box-shadow: 0 0 0 0 rgba(176, 80, 120, 0); }
.journey--reward .journey__fill {
  box-shadow: 0 0 16px 2px rgba(176, 80, 120, 0.55);
}

/* Carte déjà offerte : grisée pour repérer en un coup d'œil */
.card--offered { border-color: var(--color-green); }
.card--offered .card__media,
.card--offered .card__body { filter: grayscale(0.95) opacity(0.7); }
.card--offered .card__badge { filter: none; }
.card__badge {
  position: absolute;
  top: 58px;
  right: 14px;
  z-index: 4;
  background: var(--color-green);
  color: var(--color-white);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(52, 82, 106, 0.25);
}

/* ======================================================================
   ÉCRAN D'ACCUEIL SCÉNARISÉ
   ====================================================================== */
body.intro-open { overflow: hidden; }

.welcome {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: transparent;
}
.welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 16%, var(--color-rose-light), transparent 55%),
    linear-gradient(160deg, var(--color-blue-light) 0%, var(--color-green-light) 55%, var(--color-rose-light) 100%);
  transition: opacity 0.8s ease;
}
.intro__petals { position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity 0.5s ease; }
/* branches de sakura dans les coins, identiques au hero */
.intro__branch { position: absolute; top: 0; width: clamp(120px, 22vw, 230px); height: auto; z-index: 1; pointer-events: none; transition: opacity 0.5s ease; }
.intro__branch--left { left: 0; }
.intro__branch--right { right: 0; transform: scaleX(-1); }
.intro__inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: clamp(2.6rem, 7vh, 4rem) 1.5rem;
}
/* le torii encadre le texte (prénoms entre ses piliers), en fond */
.intro__toriiwrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -56%);
  width: min(116%, 70vh, 460px);
  z-index: -1;
  pointer-events: none;
}
.intro__torii {
  display: block;
  width: 100%;
  height: auto;
  color: var(--color-rose);
  opacity: 0.32;
  will-change: opacity;
  animation: intro-torii-fade 1.1s ease both;
}
/* mêmes formats que le hero pour une transition sans rupture */
.intro__kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--color-rose);
  margin: 0 0 1rem;
}
.intro__title {
  font-family: "Funne Display", "Mulish", system-ui, sans-serif;
  font-weight: 800;
  color: var(--color-blue);
  font-size: clamp(2.6rem, 9vw, 5rem);
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 2px 18px rgba(251, 244, 233, 0.9);
  will-change: transform, opacity;
}
.intro__sub { font-size: clamp(1.1rem, 3vw, 1.5rem); color: var(--color-ink); margin: 0.75rem 0 0; }
.intro__date { font-weight: 600; color: var(--color-green); margin: 0.5rem 0 0; }
.intro__couple { font-size: clamp(1.8rem, 5vw, 2.2rem); margin: 0.6rem 0 0.3rem; filter: drop-shadow(0 3px 4px rgba(52, 82, 106, 0.25)); }
.intro__cta {
  margin-top: 0.8rem;
  font-size: 1.05rem;
  padding: 0.8rem 1.8rem;
  animation: cta-pulse 2.4s ease-in-out infinite;
}
.intro__cta:hover { animation-play-state: paused; }

/* entrée en cascade */
.welcome [data-intro] {
  opacity: 0;
  animation: intro-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.welcome [data-intro="1"] { animation-delay: 0.25s; }
.welcome [data-intro="2"] { animation-delay: 0.45s; }
.welcome [data-intro="3"] { animation-delay: 0.7s; }
.welcome [data-intro="4"] { animation-delay: 0.9s; }
.welcome [data-intro="5"] { animation-delay: 1.1s; }
.welcome [data-intro="6"] { animation-delay: 1.35s; }

@keyframes intro-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes intro-torii-fade { from { opacity: 0; } to { opacity: 0.32; } }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(176, 80, 120, 0.35); transform: translateY(0); }
  50% { box-shadow: 0 12px 30px rgba(176, 80, 120, 0.55); transform: translateY(-2px); }
}

/* hero masqué pendant l'accueil/la transition, révélé à la fin du vol */
.hero--pending .hero__inner > *,
.hero--pending .hero__branch { opacity: 0; }
/* on coupe l'animation « torii qui se dessine » sinon son remplissage
   forcerait l'opacité et le torii réapparaîtrait derrière l'accueil */
.hero--pending .hero__torii { animation: none; }
/* les prénoms et le torii (éléments partagés) prennent le relais instantanément :
   surtout PAS de « torii-draw » ici, sinon le torii se redessine et casse
   l'illusion du torii qui vient de voler jusqu'à sa place */
.hero--revealing #couple-names { opacity: 1; }
.hero--revealing .hero__torii { animation: none; opacity: 0.22; clip-path: none; }
/* les branches reprennent instantanément la place de celles de l'accueil */
.hero--revealing .hero__branch { opacity: 1; }
/* le texte propre au hero apparaît en fondu autour des éléments partagés */
.hero--revealing .hero__kicker,
.hero--revealing .hero__subtitle,
.hero--revealing .hero__date { animation: hero-reveal 0.6s ease both; }
@keyframes hero-reveal { from { opacity: 0; } to { opacity: 1; } }

/* sortie : on efface le fond et les éléments non partagés ; le torii et le titre s'envolent */
.welcome--leaving::before { opacity: 0; }
.welcome--leaving .intro__petals { opacity: 0; }
/* les branches restent visibles jusqu'au retrait de l'accueil : le hero
   prend le relais instantanément au même endroit (handoff invisible) */
.welcome--leaving [data-intro]:not(.fly) { opacity: 0; transform: translateY(-14px); transition: opacity 0.5s ease, transform 0.5s ease; animation: none; }

.intro__torii.fly, .intro__title.fly { z-index: 5; }

/* version sans animation */
.welcome--noanim [data-intro], .welcome--noanim .intro__torii { opacity: 1 !important; animation: none !important; transform: none !important; }

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  .petal { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .journey__fill, .journey__couple { transition: none; }
  .hero__branch, .hero__torii { transform: none !important; }
  .intro__cta { animation: none; }
}
