/* Espace mariée — complète admin.css (même style « beige & caramel ») */

/* Entrée : 4 capsules dessinées derrière un seul vrai champ */
.photo-screen .glass-card .form label.otp { position: relative; display: block; margin: 0 0 16px; }
.otp input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; border: 0;
  font-size: 16px; color: transparent; caret-color: transparent; cursor: text; z-index: 1;
}
.otp-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.otp-boxes i {
  height: 70px; border-radius: 35px; border: 1.5px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .26);
  display: flex; align-items: center; justify-content: center; font: 800 26px var(--sans); font-style: normal; color: #fff;
  transition: background .2s, border-color .2s, transform .25s var(--ease);
}
.otp-boxes i.on { border: 2px solid #fff; background: rgba(255, 255, 255, .42); transform: translateY(-3px); }
.otp input[aria-invalid="true"] + .otp-boxes i { border-color: #FFB4A2; }
.glass-card .btn.pill { margin-top: 4px; }
.help { display: block; margin-top: 14px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .92); text-decoration: none; min-height: 24px; }

/* Accueil */
.bride-hero .hero-mid { top: calc(150px + env(safe-area-inset-top)); }
.bride-hero .hero-names { font-family: var(--display); font-size: 38px; }
.bride-hero .hero-when > span, .greet-sub > span { display: block; }
.bride-hero .hero-when > span + span { margin-top: 6px; }
.greet-sub > span + span { margin-top: 6px; }
.greet-sub b { font-weight: 700; }
.bride-hero .hero-tiles { bottom: 66px; align-items: center; }
.bride-hero .tile { width: 70px; height: 62px; }
.bride-hero .tile b { font-size: 21px; }
.bride-hero .tile.wide { width: auto; min-width: 160px; padding: 0 22px; }
.bride-hero .sep { font-size: 20px; font-weight: 800; color: rgba(255, 255, 255, .85); }
.glass-btn.round { border-radius: 50%; }

.pay-pill { display: block; padding: 0; border-radius: 38px; margin-top: 26px; }
.pay-pill summary { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 18px 12px 13px; list-style: none; cursor: pointer; border-radius: 38px; }
.pay-pill summary::-webkit-details-marker { display: none; }
.pay-pill .chev { margin-left: auto; color: var(--faint); transition: transform .3s var(--ease); }
.pay-pill[open] .chev { transform: rotate(90deg); }
.pay-pill[open] { border-radius: 30px; }
.pay-list { padding: 0 20px 14px; }
.pay-list .kv { border-top: 1px solid var(--line); padding: 10px 0; }
.pay-list .kv span { color: var(--muted); }
.pay-list .kv.total b { color: var(--caramel-text); }

button.cap { border: 0; padding: 0; font: inherit; cursor: pointer; text-align: center; }

.steps-card { margin: 26px 22px 0; border-radius: 30px; background: var(--sand); padding: 20px 18px 12px; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.steps + .steps { margin-top: 0; }
.step { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 6px 0 14px; font-size: 15px; }
.step::before { content: ''; position: absolute; left: 13px; top: 34px; bottom: -6px; width: 2px; background: #DCCBB2; }
.steps:last-of-type .step:last-child::before { display: none; }
.step.done::before { background: var(--caramel); }
.step i { width: 28px; height: 28px; border-radius: 50%; flex: none; position: relative; border: 2px solid #DCCBB2; background: #fff; }
.step.done i { background: var(--caramel); border-color: var(--caramel); }
.step.done i::after { content: ''; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.step.current i { border-color: var(--caramel); }
.step.current i::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--caramel); }
.step span { padding-top: 3px; }
.step.done span { font-weight: 600; }
.step.current span { font-weight: 800; }
.step span small { display: block; font-size: 12px; font-weight: 600; color: #6E5236; }
.step.next span { color: #5A4A3C; }
.more { display: block; margin: 0 auto; }


/* Écrans secondaires */
.sub-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 0 4px; }
.sub-top img { height: 14px; max-width: 100%; justify-self: center; }
.day-card h2 { font-size: 13.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--ink); margin: 0 0 6px; }
.day-card .btn.pill { margin-top: 14px; }
.day-card .kv { padding: 10px 0; border-top: 1px solid var(--line); }
.day-card h2 + .kv { border-top: 0; }
.day-card .kv span { color: var(--muted); }
.day-card .kv b { white-space: normal; text-align: right; }
.reminders { list-style: none; margin: 0; padding: 0; }
.reminder { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.reminder:first-child { border-top: 0; }
.reminder .when { flex: none; width: 72px; color: var(--caramel-text); font-size: 14px; font-weight: 700; }
.reminder .when small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.reminder.past span:last-child { color: var(--muted); text-decoration: line-through; }
.reminder.today { background: var(--cream); margin: 0 -10px; padding: 12px 10px; border-radius: 16px; border-top-color: transparent; }
.photo-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; background: var(--photo-under); display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow-lg); }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(110, 82, 58, 0) 30%, rgba(110, 82, 58, .85) 100%); }
.photo-card-in { position: relative; z-index: 1; padding: 22px 20px; width: 100%; }
.photo-card-in p { font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.contact { display: grid; gap: 10px; }
.out { display: block; margin: 14px auto 0; }

.page-title:focus { outline: none; }
.ring > span { font-size: 11.5px; letter-spacing: -0.02em; }

/* ——— Mon invitation ——— */
.inv-view .sub { margin-bottom: 14px; }
.inv-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.inv-event { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: start; margin: 0; }
.inv-draft { margin: 0 0 14px; font-size: 14px; line-height: 1.5; background: rgba(153, 120, 64, .08); }
.inv-event h2 { font-size: 13.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; margin: 0; }
.inv-event p { font-size: 14px; margin-top: 2px; }
.inv-event p::first-letter { text-transform: uppercase; }
.inv-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.inv-status { font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.inv-status.todo { background: var(--sand); color: var(--muted); }
.inv-status.draft { background: var(--cream); color: var(--caramel-text); }
.inv-status.live { background: var(--ok-bg); color: var(--ok); }

.inv-models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.inv-model { display: grid; gap: 8px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.inv-model img { width: 100%; height: auto; aspect-ratio: 180 / 323; object-fit: cover; border-radius: 22px; background: var(--sand); box-shadow: var(--shadow); transition: transform .25s var(--ease); }
.inv-model:active img { transform: scale(.97); }
.inv-model span { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.inv-model:focus-visible { outline: none; }
.inv-model:focus-visible img { outline: 3px solid var(--caramel); outline-offset: 3px; }

.inv-pv-wrap { position: relative; border-radius: 26px; overflow: hidden; background: var(--sand); box-shadow: var(--shadow-lg); }
.inv-preview { display: block; width: 100%; height: 540px; border: 0; background: #fff; }
.inv-full { position: absolute; right: 12px; bottom: 12px; box-shadow: var(--shadow); }
.inv-change { display: block; margin: 12px auto 4px; min-height: 44px; }
.inv-form { margin-top: 10px; }
.inv-form textarea { resize: vertical; }
.inv-photo .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.inv-photo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.inv-photo-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 16px; background: var(--sand); }
.inv-photo-row label { margin: 0; color: var(--caramel-text); }
.inv-color { display: flex; align-items: center; justify-content: space-between; }
.inv-color input { width: 56px; height: 44px; padding: 0; border: 0; background: none; margin: 0; }
.inv-list { border: 0; border-top: 1px solid var(--line); margin: 6px 0 0; padding: 14px 0 0; }
.inv-list legend { font-size: 15px; font-weight: 800; color: var(--ink); padding: 0; }
.inv-row { border-bottom: 1px dashed var(--line); padding: 8px 0 6px; margin-bottom: 10px; }
.inv-row .link { min-height: 44px; color: var(--danger); }
.inv-bar { position: sticky; bottom: 0; z-index: 2; margin: 0 -18px -24px; padding: 10px 18px calc(12px + env(safe-area-inset-bottom)); background: rgba(247, 244, 239, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.inv-msg { min-height: 20px; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--caramel-text); text-align: center; }
.inv-msg:empty { margin-bottom: 0; min-height: 0; }
.inv-full-view { position: fixed; inset: 0; z-index: 60; background: #fff; }
.inv-full-view iframe { width: 100%; height: 100%; border: 0; }
.inv-full-view .btn { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; box-shadow: var(--shadow-lg); }

.inv-share { display: grid; gap: 12px; text-align: center; }
.inv-link { font-size: 15px; font-weight: 700; color: var(--ink); word-break: break-all; background: var(--cream); border-radius: 16px; padding: 12px 14px; }
.inv-qr { width: 220px; margin: 4px auto; padding: 10px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); }
.inv-qr svg { display: block; width: 100%; height: auto; }
.inv-share .btn-row { display: flex; gap: 10px; }
.inv-del { color: var(--danger); justify-self: center; }
.inv-actions .inv-del { margin-left: auto; }
.inv-confirm-slot:empty { display: none; }
.inv-event .inv-confirm-slot { grid-column: 1 / -1; }
.inv-confirm { padding: 14px 16px; border-radius: 18px; background: var(--danger-bg, #fbebeb); text-align: left; }
.inv-confirm p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.inv-confirm .btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Un mot de Salta (message écrit dans l'admin) */
.note-card { margin: 0 0 22px; padding: 18px 20px; border-radius: 22px; background: var(--card, #fff); border: 1px solid rgba(138, 94, 37, .18); }
.note-card h2 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #8A5E25; }
.note-card p { margin: 0; white-space: pre-line; line-height: 1.55; }

/* Vos photos : un bouton par lien de galerie */
.photo-links { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.photo-links .btn { justify-content: space-between; }
