/* ===== Palette (maquette E) — terracotta, ivoire, brun ===== */
.wedding {
  --paper: #fbfaf7;
  --ink: #2b2624;
  --terra: #d1452b;
  --terra-deep: #b33a23;
  --taupe: #9a958c;
  --muted: #8a807a;
  --line: rgba(43,38,36,.14);

  font: 300 15px/1.7 'Inter', sans-serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.wedding * { box-sizing: border-box; }
.wedding [hidden] { display: none !important; }
body { margin: 0; background: var(--paper, #fbfaf7); }
.wedding img { display: block; max-width: 100%; }
.wedding a { color: inherit; text-decoration: none; }
.wedding h1, .wedding h2, .wedding h3, .wedding p, .wedding figure, .wedding dl, .wedding dd, .wedding ul { margin: 0; padding: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.label { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; font-weight: 500; }
.script { font-family: 'Pinyon Script', cursive; font-weight: 400; }

/* ===== Menu flottant ===== */
.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 30;
  display: flex; gap: 4px; padding: 6px; max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none;
  background: rgba(255,255,255,.78); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 30px rgba(43,38,36,.08);
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  transition: background .3s, color .3s;
}
.nav a:hover { background: rgba(209,69,43,.08); color: var(--terra); }
.nav a.active { background: var(--terra); color: #fff; }

/* ===== Pages (onglets) ===== */
.page { animation: pagein .6s cubic-bezier(.2,.7,.2,1); }
@keyframes pagein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ===== Accueil ===== */
.hero {
  position: relative; min-height: 100vh; overflow: hidden; background: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  text-align: center; padding: 0 20px 9vh;
}
.hero-art {
  position: absolute; inset: 0 0 26% 0;
  /* fondu vers le blanc en bas (dégradé par-dessus l'image : fonctionne sur tous les téléphones) */
  background: linear-gradient(rgba(255,255,255,0) 45%, #fff 92%), url('/local/static/wedding/aquarelle_hd.jpg?v=2') center 30% / cover;
  will-change: transform;
}
.hero-names {
  position: relative; color: var(--ink); font-weight: 400; text-transform: uppercase;
  letter-spacing: .32em; font-size: clamp(13px, 1.6vw, 17px);
  text-shadow: 0 0 14px #fff, 0 0 6px #fff, 0 0 2px #fff;
}
.std {
  position: relative; font-family: 'Italiana', serif; font-weight: 400; color: var(--terra);
  text-transform: uppercase; line-height: .9; margin: 14px 0 22px !important;
  font-size: clamp(64px, 12vw, 170px); text-shadow: 0 0 30px rgba(255,255,255,.9);
}
.std .script { text-transform: none; font-size: 1.22em; line-height: 0; vertical-align: -.05em; margin-right: -.07em; }
.hero-date { position: relative; color: var(--ink); font-size: clamp(16px, 2vw, 22px); letter-spacing: .4em; }
.scroll-hint {
  position: relative; margin-top: 40px; width: 1px; height: 56px;
  background: linear-gradient(var(--taupe), transparent); animation: drop 2.2s ease-in-out infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; }
}
.count-card {
  position: relative; z-index: 2; margin: -40px auto 0; width: min(640px, 92vw);
  background: #fff; border-radius: 22px; box-shadow: 0 20px 60px rgba(43,38,36,.10);
  display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 26px 10px;
}
.count-card div + div { border-left: 1px solid var(--line); }
.count-card b { display: block; font-family: 'Italiana', serif; font-weight: 400; font-size: 48px; color: var(--terra); line-height: 1; }
.count-card .label { color: var(--muted); }
/* Groupe de décomptes (un seul, ou deux pour les invités aux deux) */
.count-group { position: relative; z-index: 2; margin: -40px auto 0; width: min(640px, 92vw); display: grid; gap: 16px; }
.count-group.two { width: min(1000px, 94vw); grid-template-columns: 1fr 1fr; }
.count-group .count-card { margin: 0; width: auto; }
.count-title { grid-column: 1 / -1; margin: 0 0 14px !important; font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--ink); }
.count-done { grid-column: 1 / -1; font-family: 'Italiana', serif; font-size: 34px; color: var(--terra); }
.hero-date.two .hd-sep { font-family: 'Pinyon Script', cursive; color: var(--terra); letter-spacing: 0; font-size: 2.6em; line-height: 0; margin: 0 .35em; vertical-align: -.2em; }
@media (max-width: 860px) {
  .count-group.two { grid-template-columns: 1fr; width: 92vw; }
  /* téléphone : date, &, date l'une sous l'autre */
  .hero-date.two span { display: block; }
  .hero-date.two .hd-sep { line-height: 1; margin: .05em 0 .1em; font-size: 2em; }
  .hero-date { padding-left: .4em; }
  /* menu sur deux lignes plutôt que coupé */
  .nav { flex-wrap: wrap; justify-content: center; border-radius: 24px; width: calc(100vw - 24px); }
}
.married { text-align: center; font-family: 'Italiana', serif; font-size: 28px; color: var(--terra); margin-top: 30px !important; }

/* ===== Sections ===== */
.section { padding: 120px 0; }
.page:not([data-page="accueil"]) .section { padding-top: 130px; min-height: 80vh; }
.head { display: grid; grid-template-columns: 220px 1fr; gap: 40px; margin-bottom: 64px; }
.num { font-family: 'Italiana', serif; font-size: 18px; color: var(--terra); padding-top: 14px; border-top: 1px solid var(--terra); }
.head h2 { font-family: 'Italiana', serif; font-weight: 400; font-size: clamp(44px, 6vw, 84px); line-height: .95; }
.head h2 em { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--terra); }
.head p { color: var(--muted); max-width: 560px; margin-top: 16px; }
.block-title { font-weight: 500; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--terra); margin: 0 0 22px !important; }

/* ===== Notre histoire : bande défilante ===== */
.reel { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 40px 24px; scroll-padding: 0 40px; scrollbar-width: thin; }
.reel figure { flex: 0 0 260px; scroll-snap-align: start; }
.reel img { width: 260px; aspect-ratio: 3/4; object-fit: cover; filter: grayscale(.15) contrast(1.02); transition: filter .5s, transform .6s cubic-bezier(.2,.7,.2,1); }
.reel figure:hover img { filter: none; transform: scale(1.015); }
.reel figcaption { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.reel figcaption b { font-family: 'Italiana', serif; font-weight: 400; font-size: 24px; color: var(--terra); line-height: 1; }
.reel figcaption span { color: var(--muted); }
.reel .final { display: flex; flex-direction: column; justify-content: center; align-items: center; aspect-ratio: 3/4; width: 260px; background: var(--terra); color: #fff; text-align: center; padding: 30px; }
.reel .final b { font-family: 'Italiana', serif; font-weight: 400; font-size: 64px; line-height: 1; }
.reel .final p { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 20px; margin-top: 8px; }
.reel .final img { width: 120px; aspect-ratio: auto; filter: brightness(3) saturate(0); margin-top: 14px; opacity: .8; }
/* Carte 2027 animée (danseurs du t-shirt, noir et blanc) */
.reel .final.dance { background: #f3efe8; color: #1c1a19; padding: 16px 14px 18px; gap: 2px; min-height: 0; overflow: hidden; }
.reel .final.dance .dancers { flex: 1 1 0; min-height: 0; width: 100%; }
.reel .final.dance b { font-size: 40px; margin-top: 4px; }
.reel .final.dance p { font-size: 17px; margin-top: 2px; }
.dancers { display: block; width: 100%; height: auto; }
.dancers .ink, .dancers .ghost { fill: none; stroke: #1c1a19; stroke-linejoin: miter; stroke-miterlimit: 4; }
.dancers .ghost { opacity: .14; transform: translate(3px, 1px); }
.dancers .body { stroke-width: 11; stroke-linecap: butt; }
.dancers .limb { stroke-width: 9; stroke-linecap: butt; }
.dancers .fine { stroke-width: 2.6; stroke-linecap: round; }
.reel-nav { display: flex; justify-content: flex-end; gap: 10px; padding: 0 40px; margin-top: 6px; }
.reel-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 16px; cursor: pointer; transition: background .25s, color .25s; }
.reel-nav button:hover { background: var(--ink); color: #fff; }

/* ===== Programme : tableau ===== */
.prog { border-top: 1px solid var(--ink); }
.prog .day { padding: 26px 0 10px; color: var(--muted); }
.prog .row { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 40px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: background .3s, padding .3s; }
.prog .row:hover { background: #fff; padding-left: 14px; }
.prog .t { font-family: 'Italiana', serif; font-size: 40px; color: var(--terra); line-height: 1; }
.prog .w { font-family: 'Italiana', serif; font-size: 28px; }
.prog .p { color: var(--muted); }

/* ===== Lieux ===== */
.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.place { border: 1px solid var(--line); background: #fff; }
.place .pic { height: 260px; overflow: hidden; border-bottom: 1px solid var(--line); background: #f4f1ec; display: grid; place-items: center; }
.place .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.place .pic img.motif { width: 46%; height: auto; object-fit: contain; transform: rotate(-8deg); }
.place .pic img.motif.bouquet { width: 70%; transform: none; }
.place:hover .pic img.motif.bouquet { transform: scale(1.04); }
.place:hover .pic img { transform: scale(1.04); }
.place:hover .pic img.motif { transform: rotate(-5deg) scale(1.04); }
/* Lieux en lignes alternées : l'aquarelle garde son format, le texte à côté */
.places { grid-template-columns: 1fr; gap: 72px; max-width: 1040px; margin: 0 auto; }
.place { border: none; background: transparent; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.place:nth-child(even) .pic { order: 2; }
.place .pic { height: auto; border: none; overflow: visible; }
.place .pic:not(.art-pic) { aspect-ratio: 4 / 3; border: 1px solid var(--line); overflow: hidden; }
.place .pic.art-pic { background: transparent; }
.place .pic img.art { width: auto; height: auto; max-width: 100%; max-height: 520px; object-fit: initial; box-shadow: 0 18px 40px rgba(43,38,36,.12); }
.place:hover .pic img.art { transform: scale(1.015); }
.place .body { background: #fff; border: 1px solid var(--line); }
.place .body { padding: 30px 32px 34px; }
.place .body .label { color: var(--terra); }
.place h3 { font-family: 'Italiana', serif; font-weight: 400; font-size: 34px; margin: 8px 0 6px !important; }
.place p { color: var(--muted); white-space: pre-line; }
.place .access { margin-top: 12px !important; font-size: 14px; }
.more { display: inline-block; margin-top: 18px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 3px; transition: color .25s, border-color .25s; }
.more:hover { color: var(--terra); border-color: var(--terra); }

/* ===== Infos pratiques ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-bottom: 64px; }
.card { border: 1px solid var(--line); background: #fff; padding: 26px 28px; }
.card h4 { font-family: 'Italiana', serif; font-weight: 400; font-size: 26px; margin: 0 0 4px; }
.card .meta { color: var(--terra); }
.card p { color: var(--muted); margin-top: 10px !important; font-size: 14px; white-space: pre-line; }
.links { list-style: none; border-top: 1px solid var(--ink); }
.links li { border-bottom: 1px solid var(--line); }
.links a { display: flex; justify-content: space-between; gap: 16px; padding: 20px 4px; font-family: 'Italiana', serif; font-size: 24px; transition: padding .3s, color .25s; }
.links a:hover { padding-left: 14px; color: var(--terra); }
.links small { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--muted); align-self: center; }
/* Nature Camp (lodges au château) */
.camp { background: #fff; border: 1px solid var(--line); padding: 44px 48px; margin-bottom: 28px; position: relative; }
.camp .label { color: var(--terra); }
.camp h4 { font-family: 'Italiana', serif; font-weight: 400; font-size: 36px; line-height: 1.1; margin: 10px 0 12px !important; }
.camp-intro p { color: var(--muted); max-width: 640px; }
.camp-top { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: center; }
.camp-main { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 100%; }
.camp-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.camp-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.camp-gallery figcaption { margin-top: 8px; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.camp-feats.three { grid-template-columns: repeat(3, 1fr); }
.camp-chateau .camp-main { object-position: 50% 35%; }
.camp-credit { margin-top: 18px !important; font-size: 11px; color: var(--muted); opacity: .8; }
.camp-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 30px 0 26px !important; border-top: 1px solid var(--line); }
.camp-feat { padding: 20px 22px 4px 0; }
.camp-feat + .camp-feat { padding-left: 22px; border-left: 1px solid var(--line); }
.camp-feat b { display: block; font-family: 'Italiana', serif; font-weight: 400; font-size: 21px; color: var(--terra); margin-bottom: 6px; }
.camp-feat span { color: var(--muted); font-size: 14px; }
.camp-foot { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 19px; color: var(--ink); margin-bottom: 14px !important; max-width: 680px; }
@media (max-width: 860px) {
  .camp { padding: 30px 22px; }
  .camp h4 { font-size: 28px; }
  .camp-top { grid-template-columns: 1fr; gap: 22px; }
  .camp-gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
  .camp-gallery figcaption { font-size: 9px; letter-spacing: .12em; }
  .camp-feats, .camp-feats.three { grid-template-columns: 1fr 1fr; }
  .camp-feat, .camp-feat + .camp-feat { padding: 16px 12px 6px 0; border-left: none; }
}
/* Encart « Où dormir » (PDF des hébergements) */
.lodging { display: grid; grid-template-columns: 130px 1fr auto; gap: 34px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 30px 36px; margin-bottom: 56px; }
.lodging img { width: 130px; transform: rotate(-8deg); }
.lodging .label { color: var(--terra); }
.lodging p { color: var(--muted); margin-top: 8px !important; max-width: 520px; }
.lodging-btn { text-decoration: none; text-align: center; white-space: nowrap; width: auto; }
@media (max-width: 860px) {
  .lodging { grid-template-columns: 1fr; gap: 18px; padding: 26px 22px; }
  .lodging img { width: 110px; }
  .lodging-btn { white-space: normal; }
}
.empty { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 22px; color: var(--muted); margin-bottom: 56px !important; }

/* ===== RSVP ===== */
.rsvp-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.rsvp-aside { background: var(--ink); color: var(--paper); padding: 50px 44px; position: relative; overflow: hidden; min-height: 100%; }
.rsvp-aside .label { color: var(--terra); }
.rsvp-aside .aside-title { font-family: 'Italiana', serif; font-size: 34px; line-height: 1.1; margin: 16px 0 14px !important; }
.rsvp-aside p { color: rgba(251,250,247,.72); position: relative; white-space: pre-line; }
.rsvp-aside img { position: absolute; right: -40px; bottom: -50px; width: 240px; opacity: .25; filter: brightness(2) saturate(.3); }
.rsvp-card { border: 1px solid var(--line); background: #fff; padding: 44px 44px 40px; }
.rsvp .field { margin: 0 0 26px; border: 0; padding: 0; }
.rsvp label, .rsvp legend { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .24em; font-size: 11px; font-weight: 500; margin: 0 0 8px; padding: 0; }
.rsvp input[type=text], .rsvp input[type=email], .rsvp select, .rsvp textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: 8px 2px; border-radius: 0; outline: none; transition: border-color .25s;
}
.rsvp textarea { border: 1px solid var(--line); padding: 10px; resize: vertical; }
.rsvp input:focus, .rsvp select:focus, .rsvp textarea:focus { border-color: var(--terra); }
.rsvp .choice label { display: inline-flex; align-items: center; gap: 8px; margin: 6px 22px 6px 0; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 300; color: var(--ink); cursor: pointer; }
.rsvp .choice input { accent-color: var(--terra); width: 16px; height: 16px; margin: 0; }
.rsvp-error { color: var(--terra); font-size: 14px; margin: 0 0 16px !important; }
.btn { display: inline-block; border: 0; cursor: pointer; font: inherit; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; padding: 15px 28px; transition: background .25s; }
.btn-full { width: 100%; background: var(--terra); color: #fff; }
.btn-full:hover { background: var(--terra-deep); }
.btn-full:disabled { opacity: .6; cursor: wait; }
.thanks-title { font-family: 'Pinyon Script', cursive; font-size: 64px; color: var(--terra); line-height: 1.2; }
.rsvp-thanks p { color: var(--muted); }

/* RSVP : une carte par personne */
.rsvp-intro { color: var(--muted); font-size: 14px; margin-bottom: 18px !important; }
.people { display: grid; gap: 14px; margin-bottom: 18px; }
.person { border: 1px solid var(--line); padding: 18px 20px 16px; background: #fdfcfa; transition: border-color .25s; }
.person.is-yes { border-color: rgba(209,69,43,.45); }
.person-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.person-name { font-family: 'Italiana', serif; font-size: 24px; line-height: 1.1; -webkit-text-stroke: .7px currentColor; }
.person-head .tag { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--terra); border: 1px solid var(--terra); padding: 2px 7px; white-space: nowrap; }
.rsvp .person-head input.person-input { flex: 1; font-family: 'Italiana', serif; font-size: 22px; padding: 4px 2px; -webkit-text-stroke: .6px currentColor; }
.person-remove { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1; }
.person-remove:hover { color: var(--terra); }
.rsvp .person .choice { margin: 0 0 4px; }
.person-details { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 12px; }
.rsvp .person-details .field { margin-bottom: 12px; }
.rsvp .person-details .field:last-child { margin-bottom: 0; }
.rsvp .person-details .choice label { display: flex; margin: 6px 0; }
.rsvp .lodge-row { display: flex; align-items: center; flex-wrap: wrap; column-gap: 16px; }
.rsvp .lodge-row label { flex: 0 1 auto; }
.rsvp .lodge-link { flex: none; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); border-bottom: 1px solid currentColor; padding-bottom: 1px; text-decoration: none; }
.rsvp .lodge-link:hover { color: var(--terra-deep); }
.add-person { background: none; border: 1px dashed var(--line); width: 100%; padding: 12px; margin-bottom: 26px; cursor: pointer; font: inherit; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .25s, border-color .25s; }
.add-person:hover { color: var(--terra); border-color: var(--terra); }

/* ===== Liste de noces ===== */
.gift { display: grid; grid-template-columns: 1.6fr 1fr; border: 1px solid var(--line); background: #fff; }
.gift-main { padding: 60px; }
.gift-main h3 { font-family: 'Italiana', serif; font-weight: 400; font-size: 44px; line-height: 1.05; }
.gift-main > p { color: var(--muted); margin: 18px 0 28px !important; max-width: 520px; }
.link-btn { background: none; border: 0; padding: 0 0 3px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--terra); border-bottom: 1px solid var(--terra); }
.rib { margin-top: 26px; border-top: 1px solid var(--ink); padding-top: 22px; max-width: 520px; }
.rib dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; align-items: baseline; }
.rib dt { color: var(--muted); text-transform: uppercase; letter-spacing: .24em; font-size: 11px; font-weight: 500; }
.rib dd { font-size: 15px; word-break: break-all; }
.copy { margin-left: 8px; font: inherit; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--line); background: none; padding: 3px 9px; cursor: pointer; }
.copy:hover { border-color: var(--ink); }
.rib-note { color: var(--muted); font-size: 13px; margin-top: 16px !important; }
.gift-soon { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 20px; color: var(--muted); }
.gift-side { background: #f4f1ec; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px; }
.gift-side .trip { color: var(--muted); }

/* ===== Espace mariés ===== */
.nav a.nav-admin { color: var(--terra); }
.nav a.nav-admin.active { color: #fff; }
.preview-banner { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 16px; background: var(--ink); color: #fff; padding: 10px 12px 10px 20px; border-radius: 999px; box-shadow: 0 10px 30px rgba(43,38,36,.25); font-size: 13px; max-width: calc(100vw - 24px); }
.preview-banner button { background: var(--terra); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 30px; }
.btn-line { background: #fff; border: 1px solid var(--line); padding: 10px 16px; font: inherit; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s; }
.btn-line:hover { border-color: var(--terra); color: var(--terra); }
.btn-line.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.admin-updated, .admin-note { color: var(--muted); font-size: 13px; }
.admin-error { color: var(--terra); margin-bottom: 20px !important; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 56px; }
.tile { background: #fff; border: 1px solid var(--line); padding: 20px 22px; }
.tile .label { color: var(--muted); display: block; }
.tile .value { display: block; font-family: 'Italiana', serif; font-size: 46px; line-height: 1.1; margin-top: 8px; color: var(--ink); }
.tile .sub { display: block; color: var(--muted); font-size: 13px; }
.meters { display: grid; gap: 18px; margin-bottom: 56px; max-width: 760px; }
.meter-row { display: grid; grid-template-columns: 200px 1fr 120px; gap: 16px; align-items: center; }
.meter-row .m-label { font-size: 14px; }
.meter-track { height: 12px; background: #f3d9d2; border-radius: 0 6px 6px 0; overflow: hidden; position: relative; cursor: default; }
.meter-fill { height: 100%; background: var(--terra); border-radius: 0 4px 4px 0; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.meter-row .m-value { font-size: 13px; color: var(--muted); text-align: right; }
.preview-box { background: #fff; border: 1px solid var(--line); padding: 24px; margin-bottom: 56px; }
.preview-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.preview-pick { display: flex; gap: 10px; margin-bottom: 10px; }
.preview-pick select { flex: 1; font: inherit; font-size: 14px; padding: 9px 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; margin-bottom: 56px; border: 1px solid var(--line); background: #fff; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: #fbf7f3; }
.admin-table .num-col { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table .people { color: var(--muted); font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--terra); }
.badge.wait::before { background: transparent; border: 1.5px solid var(--muted); }
.empty-row { color: var(--muted); font-style: italic; }
.admin-messages { display: grid; gap: 12px; margin-bottom: 40px; }
.admin-messages .msg { background: #fff; border: 1px solid var(--line); padding: 16px 20px; }
.admin-messages .msg p { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 20px; }
.admin-messages .msg span { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 860px) {
  .meter-row { grid-template-columns: 1fr; gap: 6px; }
  .meter-row .m-value { text-align: left; }
  .preview-pick { flex-direction: column; }
}

/* ===== Pied de page ===== */
.footer { border-top: 1px solid var(--line); padding: 46px 0; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-names { font-family: 'Italiana', serif; font-size: 32px; }
.footer-names .script { color: var(--terra); }
.footer .label { color: var(--muted); }

/* ===== Écran d'entrée ===== */
.wedding.locked > :not(.gate) { display: none !important; }
.wedding:not(.locked) .gate { display: none; }
.gate { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 40px 20px; background: #fff; overflow: hidden; }
.gate-art { position: absolute; inset: 0; background: url('/local/static/wedding/lavande/lavande_bouquet_horizontal.png') center 14% / min(560px, 80vw) no-repeat, var(--paper); opacity: .9; }
.gate-card { position: relative; width: min(460px, 100%); background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(43,38,36,.12); padding: 46px 40px 40px; text-align: center; animation: pagein .8s cubic-bezier(.2,.7,.2,1); }
.gate-card .label { color: var(--muted); }
.gate-title { font-family: 'Italiana', serif; font-weight: 400; font-size: clamp(38px, 12.5vw, 64px); color: var(--terra); text-transform: uppercase; line-height: 1; margin: 14px 0 16px !important; }
.gate-title .script { text-transform: none; font-size: 1.2em; line-height: 0; vertical-align: -.05em; margin-right: -.06em; }
.gate-text { color: var(--muted); font-size: 14px; margin-bottom: 26px !important; }
.gate-card input { width: 100%; font: inherit; font-size: 18px; letter-spacing: .2em; text-transform: uppercase; text-align: center; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 10px 4px; margin-bottom: 20px; outline: none; }
.gate-card input:focus { border-color: var(--terra); }
.gate-error { color: var(--terra); font-size: 14px; margin: -8px 0 16px !important; }
.hero-hello { position: relative; font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 700; font-size: clamp(18px, 2.2vw, 24px); color: var(--terra); margin-bottom: 6px !important; text-shadow: 0 0 14px #fff, 0 0 6px #fff; }
.logout { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.logout:hover { color: var(--terra); }

/* ===== Apparition au défilement ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Mobile ===== */
@media (max-width: 860px) {
  .wrap { padding: 0 22px; }
  .nav { justify-content: center; }
  .nav a { padding: 8px 12px; font-size: 10px; letter-spacing: .16em; }
  .head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 44px; }
  .num { width: 80px; }
  .section { padding: 90px 0; }
  .prog .row { grid-template-columns: 90px 1fr; gap: 6px 20px; } .prog .p { grid-column: 2; }
  .prog .t { font-size: 30px; } .prog .w { font-size: 24px; }
  .places, .rsvp-layout, .gift { grid-template-columns: 1fr; }
  .places { gap: 48px; }
  .place { grid-template-columns: 1fr; gap: 0; }
  .place:nth-child(even) .pic { order: 0; }
  .place .pic img.art { max-height: 440px; box-shadow: none; }
  .place .body { border-top: none; }
  .rsvp-aside, .rsvp-card, .gift-main { padding: 36px 26px; }
  .rsvp-aside .aside-title { font-size: 24px; }
  .count-card b { font-size: 36px; }
  .reel { padding: 0 22px 24px; scroll-padding: 0 22px; } .reel figure { flex-basis: 220px; } .reel img, .reel .final { width: 220px; }
  .reel-nav { padding: 0 22px; }
  .footer .wrap { flex-direction: column; }
}

/* ===== Touches vivantes ===== */
.viv-ink { fill: none; stroke: #1c1a19; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; filter: url(#viv-boil); overflow: visible; }
.viv-ink .soft { stroke-width: 2.6; }
.viv-ink .terra { stroke: var(--terra); }
.viv-person .body { stroke-width: 10; stroke-linecap: butt; }
.viv-person .limb { stroke-width: 7.5; stroke-linecap: butt; stroke-linejoin: miter; }
.viv-person .fine { stroke-width: 2.4; }

/* 1. La fête au RSVP */
.viv-party { position: fixed; inset: 0; z-index: 70; background: rgba(251,250,247,.975); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; animation: vivfade .35s ease; }
.viv-party canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.viv-party .stage { width: min(440px, 78vw); animation: vivpop .7s cubic-bezier(.2,1.5,.4,1); }
.viv-party .stage.small { width: min(190px, 44vw); }
.viv-party p { font-family: 'Italiana', serif; font-size: clamp(30px, 5vw, 54px); color: #d1452b; text-align: center; line-height: 1.1; padding: 0 20px; margin: 0; }
@keyframes vivfade { from { opacity: 0; } }
@keyframes vivpop { from { transform: scale(.4) rotate(-8deg); opacity: 0; } }

@keyframes vivspin { to { transform: rotate(360deg); } }
/* 3. Le programme dessiné */
.prog.viv { position: relative; border-top: 0; }
.prog.viv .row { grid-template-columns: 110px 170px 1fr 1fr; gap: 34px; align-items: center; border-bottom: 0; padding: 20px 0; }
.prog.viv .row:hover { background: none; padding-left: 0; }
.prog.viv .day { padding-left: 144px; }
.viv-line { display: block; position: absolute; left: 0; top: 0; width: 110px; height: 100%; pointer-events: none; overflow: visible; }
.viv-line path { fill: none; stroke: #1c1a19; stroke-width: 2.6; stroke-linecap: round; }
.viv-moment { display: block; position: relative; width: 104px; height: 104px; border-radius: 50%; background: var(--paper); transform: scale(.35) rotate(-20deg); opacity: 0; transition: transform .6s cubic-bezier(.2,1.6,.4,1), opacity .3s; }
.viv-moment.on { transform: none; opacity: 1; }
.viv-moment svg { width: 100%; height: 100%; display: block; }
.prog.viv .row:hover .viv-moment.on { transform: rotate(-7deg) scale(1.12); }
.viv-swing { transform-origin: 50px 30px; animation: vivswing 1.5s ease-in-out infinite alternate; }
@keyframes vivswing { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.viv-bub { animation: vivbub 1.8s linear infinite; } .viv-bub.b { animation-delay: .7s; } .viv-bub.c { animation-delay: 1.2s; }
@keyframes vivbub { from { transform: translateY(14px); opacity: 0; } 40% { opacity: 1; } to { transform: translateY(-16px); opacity: 0; } }
.viv-ray { animation: vivray .8s steps(2) infinite; } @keyframes vivray { 50% { opacity: .15; } }
.viv-turn { transform-box: fill-box; transform-origin: center; animation: vivspin 9s linear infinite; }

/* 4. La frise polaroïd */
.reel { gap: 34px; padding-top: 30px; padding-bottom: 46px; }
.reel figure { position: relative; background: #fff; padding: 12px 12px 14px; box-shadow: 0 12px 30px rgba(43,38,36,.14); transition: transform .45s cubic-bezier(.2,1.4,.4,1), box-shadow .3s; flex-basis: 284px; }
.reel figure:nth-child(odd) { transform: rotate(-2.4deg); } .reel figure:nth-child(even) { transform: rotate(1.8deg) translateY(8px); } .reel figure:nth-child(3n) { transform: rotate(-.8deg) translateY(-5px); }
.reel figure:hover { transform: rotate(0) translateY(-10px) scale(1.03); box-shadow: 0 24px 50px rgba(43,38,36,.22); z-index: 3; }
.reel figure:hover img { transform: none; }
.reel .frame { position: relative; overflow: hidden; display: block; }
.viv-cap { display: block; position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 14px 12px; color: #fff; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 19px; line-height: 1.15; background: linear-gradient(transparent, rgba(28,26,25,.72)); opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; }
.reel figure:hover .viv-cap { opacity: 1; transform: none; }
.reel .live img { transform-origin: 50% 0; animation: vivken 5s ease-in-out infinite alternate; }
/* calé sur le haut : ne coupe jamais les têtes */
@keyframes vivken { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (hover: none) { .viv-cap { opacity: 1; transform: none; } }

/* 5. Les bonhommes des titres */
.viv-buddy { display: block; }
.head { position: relative; }
.viv-buddy.title { position: absolute; right: 40px; bottom: -18px; width: 128px; height: 150px; }
[data-page="accueil"] .viv-buddy.title { right: auto; left: 40px; }   /* le photographe, à gauche */
.viv-crete { --paper: #f4f1ec; display: block; width: min(330px, 100%); height: auto; aspect-ratio: 260 / 168; overflow: hidden; }   /* dans l'encart du voyage de noces */
[data-page="liste"] .head h2 em { white-space: nowrap; }
.viv-duo { display: flex; flex: none; margin: -34px 0 -46px; }
.viv-buddy.foot { width: 74px; height: 92px; flex: none; } .viv-duo .foot:first-child { transform: scaleX(-1); margin-right: -14px; }

@media (max-width: 860px) {
  .prog.viv .row { grid-template-columns: 78px 1fr; gap: 2px 16px; } .prog.viv .row > .viv-moment { grid-row: 1 / span 3; width: 74px; height: 74px; }
  .prog.viv .row .t, .prog.viv .row .w, .prog.viv .row .p { grid-column: 2; } .prog.viv .row .t { font-size: 24px; }
  .prog.viv .day { padding-left: 94px; } .viv-line { width: 74px; }
  .reel { gap: 24px; padding: 30px 22px 46px; } .reel figure { flex-basis: 244px; }
  .viv-buddy.title { right: 6px; bottom: auto; top: -38px; width: 60px; height: 74px; }
  [data-page="accueil"] .viv-buddy.title { right: auto; left: 116px; }
  .viv-crete { width: min(300px, 100%); }
  .viv-duo { margin: -10px 0; }
  .gate-card { padding: 38px 24px 30px; }
}
@media (prefers-reduced-motion: reduce) { .viv-swing, .viv-bub, .viv-ray, .viv-turn, .reel .live img { animation: none; } }

/* ===== Carte dessinée, soirée qui tombe, comment venir ===== */
/* La carte dessinée */
.vx-map { max-width: 1040px; margin: 96px auto 0; }
.vx-map h3 { font-family: 'Italiana', serif; font-weight: 400; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin: 0 0 4px !important; } .vx-map h3 em { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--terra); }
.vx-map > p { color: var(--muted); } .vx-map svg { width: 100%; height: auto; display: block; margin-top: 18px; overflow: visible; }
.vx-map .ink { fill: none; stroke: #1c1a19; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: url(#viv-boil); }
.vx-map .soft { stroke-width: 2.4; } .vx-map .terra { stroke: #d1452b; } .vx-map .lav { stroke: #7f7fc4; stroke-width: 3; }
.vx-map .track { fill: none; stroke: rgba(43,38,36,.26); stroke-width: 2.4; stroke-dasharray: 2 11; stroke-linecap: round; }
.vx-map .road { fill: none; stroke: #1c1a19; stroke-width: 4; stroke-linecap: round; filter: url(#viv-boil); }
.vx-map text { font-family: 'Italiana', serif; font-size: 29px; fill: #2b2624; } .vx-map text.s { font-family: 'Inter', sans-serif; font-size: 15px; fill: #7a716b; } .vx-map text.r { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 24px; fill: #4f7fa8; }
.vx-map text.k { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 27px; fill: #d1452b; }
.vx-wheel { transform-box: fill-box; transform-origin: center; animation: vivspin 1.1s linear infinite; }

/* La soirée qui tombe */
[data-page="programme"] .section { position: relative; overflow: hidden; background: var(--vxbg, var(--paper)); transition: background-color 1s ease; }
[data-page="programme"] .wrap { position: relative; z-index: 1; }
.prog.viv .row { padding: 34px 0; } .prog.viv .row.vx-soir { padding: 92px 0; } .prog.viv .row.vx-diner { padding: 54px 0; }
.viv-moment { background: var(--vxbg, var(--paper)); transition: transform .6s cubic-bezier(.2,1.6,.4,1), opacity .3s, background-color 1s ease; }
[data-page="programme"] h2, [data-page="programme"] .head p, .prog .w, .prog .p, .prog .day, .prog .t { transition: color 1s ease; }
[data-page="programme"] .viv-ink, .viv-line path { transition: stroke 1s ease; }
[data-page="programme"].vx-night h2, .vx-night .prog .w { color: #fff; }
.vx-night .prog .t, [data-page="programme"].vx-night h2 em, [data-page="programme"].vx-night .num { color: #ff9a80; }
.vx-night .prog .p, .vx-night .prog .day, [data-page="programme"].vx-night .head p { color: #c3c8e6; }
[data-page="programme"].vx-night .viv-ink, .vx-night .viv-line path { stroke: #fff; } .vx-night .viv-ink .terra { stroke: #ff9a80; }
.vx-lights { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; pointer-events: none; } .vx-night .vx-lights { opacity: 1; }
.vx-dance { display: block; width: 210px; margin: -62px 0 -62px; opacity: 0; transform: translateY(18px) scale(.9); transition: opacity .7s, transform .7s cubic-bezier(.2,1.4,.4,1); } .vx-night .vx-dance { opacity: 1; transform: none; }
.vx-dance .dancers .ink, .vx-dance .dancers .ghost { stroke: #fff; } .vx-dance .dancers .ghost { opacity: .22; }

/* Comment venir */
/* Site des invités au civil seulement */
.hero.civil { padding: 84px 20px max(64px, 7vh); }
/* le dessin prend la place qui reste au-dessus du texte : il ne passe jamais dessous */
.hero.civil .hero-art { position: relative; inset: auto; flex: 1 1 0; min-height: 130px; max-height: 480px; width: 100%; margin-bottom: 14px; background: none; transform: none !important; display: flex; align-items: flex-end; justify-content: center; }
.hero.civil .hero-hello, .hero.civil .hero-names, .hero.civil .hero-date { flex: none; text-shadow: none; }
.hero.civil .hero-hello { font-size: clamp(21px, 2.4vw, 28px); } .hero.civil .hero-date { font-size: clamp(19px, 2.2vw, 26px); }
.hero.civil .scroll-hint { margin-top: 22px; height: 34px; flex: none; } @media (max-height: 760px) { .hero.civil .scroll-hint { display: none; } }
.vx-scene { width: min(1000px, 100%); height: 100%; overflow: visible; }
.vx-scene .ink, .vx-cross .ink { fill: none; stroke: #1c1a19; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; filter: url(#viv-boil); }
.vx-scene .soft { stroke-width: 2.2; } .vx-scene .terra { stroke: var(--terra); }
.hero.civil .std { flex: none; font-size: clamp(50px, min(10vw, 16vh), 140px); }
.vx-flag { animation: vxflag 1.6s ease-in-out infinite alternate; } @keyframes vxflag { from { transform: skewY(-5deg); } to { transform: skewY(5deg) scaleX(.94); } }
.vx-cafe { width: 74%; height: auto; }
[data-page="accueil"] .vx-brief .viv-buddy.title { left: auto; right: 40px; } .vx-brief .vx-come { margin-bottom: 0; } .vx-cross h3 em { white-space: nowrap; } .vx-photos { padding-top: 0; } .final.dance > .viv-person { height: 58%; width: auto; }
@media (max-width: 860px) { [data-page="accueil"] .vx-brief .viv-buddy.title { right: 6px; } }
.vx-map text.pastel { font-family: 'Italiana', serif; font-size: 26px; fill: #d1452b; stroke: none; }
.vx-walk { animation: vxwalk 6s linear infinite; } @keyframes vxwalk { 0% { transform: translateX(0); opacity: 0; } 10%, 88% { opacity: 1; } 100% { transform: translateX(var(--d)); opacity: 0; } }
.vx-cross + .vx-come { max-width: 1040px; margin: 80px auto 0; }
@media (max-width: 860px) { .hero.civil { padding-top: 110px; } .hero.civil .hero-art { max-height: 360px; } .vx-scene { width: 150%; flex: none; } }
@media (prefers-reduced-motion: reduce) { .vx-flag, .vx-walk { animation: none; } }
.vx-come { margin: 0 0 64px; }
.vx-come .grid { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); border-top: 1px solid var(--ink); }
.vx-come .c { padding: 26px 26px 30px 0; border-bottom: 1px solid var(--line); } .vx-come .c + .c { padding-left: 26px; border-left: 1px solid var(--line); }
.vx-come svg { width: 104px; height: 82px; display: block; margin-bottom: 12px; }
.vx-come h4 { font-family: 'Italiana', serif; font-weight: 400; font-size: 28px; line-height: 1.1; margin: 0 0 6px !important; }
.vx-come .big { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 23px; color: var(--terra); margin: 0 0 6px !important; } .vx-come p { color: var(--muted); }
.vx-come .go { animation: vxgo 2.4s ease-in-out infinite alternate; } @keyframes vxgo { from { transform: translateX(-5px); } to { transform: translateX(7px); } }
.vx-come .fly { animation: vxfly 3s ease-in-out infinite alternate; } @keyframes vxfly { from { transform: translate(-5px, 6px) rotate(-3deg); } to { transform: translate(6px, -6px) rotate(2deg); } }

@media (max-width: 860px) {
  .prog.viv .row { padding: 22px 0; } .prog.viv .row.vx-soir { padding: 60px 0; } .prog.viv .row.vx-diner { padding: 34px 0; }
  .vx-dance { grid-column: 2; width: 150px; margin: 10px 0 -10px; }
  .vx-come .grid { grid-template-columns: 1fr; } .vx-come .c, .vx-come .c + .c { padding: 22px 0; border-left: 0; }
  .vx-map text { font-size: 25px; } .vx-map text.s { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .vx-wheel, .vx-come .go, .vx-come .fly { animation: none; } }
