/* JourDeMariage.fr — système de design
   Papier dragée, encre prune, framboise. Bodoni Moda pour la voix, Figtree pour l'usage. */

@font-face { font-family: "Bodoni"; src: url("../fonts/bodoni-moda-latin-standard-normal.woff2") format("woff2-variations"), url("../fonts/bodoni-moda-latin-standard-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni"; src: url("../fonts/bodoni-moda-latin-standard-italic.woff2") format("woff2-variations"), url("../fonts/bodoni-moda-latin-standard-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-wght-italic.woff2") format("woff2-variations"), url("../fonts/figtree-latin-wght-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  --paper: #FCF7F6;
  --paper-2: #F6ECEE;
  --blush: #F3DDE3;
  --blush-2: #EBC9D3;
  --ink: #2E1A24;
  --ink-2: #5A4450;
  --ink-3: #75606B;
  --line: #E7D6DB;
  --line-2: #D9C3CA;
  --rasp: #A3355C;
  --rasp-2: #86284A;
  --rasp-soft: #F7E3EA;
  --sage: #4F6B57;
  --sage-soft: #E5EDE6;
  --gold: #A9844B;
  --gold-soft: #F4ECDD;
  --amber: #8A5A12;
  --amber-soft: #FBF0DA;
  --danger: #A8261F;
  --danger-soft: #FBE6E4;
  --white: #FFFFFF;

  --serif: "Bodoni", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;
  --shadow-paper: 0 1px 0 rgba(46,26,36,.04), 0 12px 32px -12px rgba(46,26,36,.18);
  --shadow-float: 0 2px 4px rgba(46,26,36,.06), 0 24px 60px -20px rgba(46,26,36,.32);
  --ring: 0 0 0 3px var(--blush-2);
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; font-feature-settings: "kern", "liga"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--rasp); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--rasp-2); }
:focus-visible { outline: 2px solid var(--rasp); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blush-2); color: var(--ink); }
button { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; color: var(--paper); }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
.display, h1.display { font-family: var(--serif); font-weight: 450; font-optical-sizing: auto; font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 1.02; letter-spacing: -.015em; }
.h1 { font-family: var(--serif); font-weight: 450; font-size: clamp(2.2rem, 4.8vw, 3.8rem); line-height: 1.06; letter-spacing: -.01em; }
.h2 { font-family: var(--serif); font-weight: 450; font-size: clamp(1.85rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -.005em; }
.h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.2; }
.h4 { font-family: var(--sans); font-weight: 650; font-size: 1.0625rem; line-height: 1.35; }
.lede { font-size: clamp(1.12rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-2); }
.subtle { color: var(--ink-3); font-size: .92rem; }
.serif { font-family: var(--serif); }
.it { font-style: italic; }
.prose { max-width: 68ch; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1.2; margin: 2.4rem 0 .8rem; }
.prose h3 { font-weight: 650; font-size: 1.1rem; margin: 1.8rem 0 .4rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose li { margin-bottom: .35rem; }
.tnum { font-variant-numeric: tabular-nums; }
.time { font-family: var(--serif); font-style: italic; font-weight: 500; font-variant-numeric: lining-nums; }

/* ---------- Mise en page ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { padding-block: clamp(64px, 10vw, 128px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--tint { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2, .section--ink .h2, .section--ink h3 { color: var(--paper); }
.stack > * + * { margin-top: var(--s, 1rem); }
.grid-2 { display: grid; gap: clamp(32px, 6vw, 88px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2--wide-right { grid-template-columns: .9fr 1.1fr; } .grid-2--wide-left { grid-template-columns: 1.1fr .9fr; } }

/* ---------- Boutons ---------- */
.btn { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .7em 1.45em; border-radius: var(--r-pill); border: 1px solid var(--bd); background: var(--bg); color: var(--fg); font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.btn:hover { --bd: var(--ink); color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn--primary { --bg: var(--rasp); --fg: var(--white); --bd: var(--rasp); box-shadow: 0 8px 20px -10px rgba(163,53,92,.65); }
.btn--primary:hover { --bg: var(--rasp-2); --bd: var(--rasp-2); --fg: var(--white); }
.btn--ink { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.btn--ink:hover { --bg: #452A37; --bd: #452A37; --fg: var(--paper); }
.btn--light { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); }
.btn--light:hover { --bg: var(--white); --bd: var(--white); --fg: var(--ink); }
.btn--quiet { --bd: transparent; padding-inline: .8em; }
.btn--quiet:hover { --bg: var(--rasp-soft); --bd: transparent; }
.btn--danger { --fg: var(--danger); --bd: #E8BDB9; }
.btn--danger:hover { --bg: var(--danger); --fg: var(--white); --bd: var(--danger); }
.btn--sm { min-height: 38px; padding: .45em 1em; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: .8em 1.8em; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 16px; }
.label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.hint { font-size: .88rem; color: var(--ink-3); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: .7em .95em; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235A4450' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--rasp); box-shadow: var(--ring); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input--key { font-family: var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .04em; text-transform: uppercase; font-size: min(1.15rem, 4.3vw); font-weight: 600; text-align: center; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .97rem; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--white); display: grid; place-items: center; cursor: pointer; transition: .15s; }
.check input:checked { background: var(--rasp); border-color: var(--rasp); }
.check input:checked::after { content: ""; width: 11px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px); }
.check input:focus-visible { box-shadow: var(--ring); outline: none; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--sage); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:focus-visible { box-shadow: var(--ring); outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Messages ---------- */
.notice { border-radius: var(--r-md); padding: 14px 18px; font-size: .97rem; border: 1px solid; }
.notice--ok { background: var(--sage-soft); border-color: #C9D8CC; color: #2F4636; }
.notice--err { background: var(--danger-soft); border-color: #F0C4C0; color: #7A1C16; }
.notice--info { background: var(--gold-soft); border-color: #E6D6B8; color: #5B4520; }

/* ---------- Puces RSVP ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 9px; border-radius: var(--r-pill); font-size: .82rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--yes { background: var(--sage-soft); color: #355040; }
.chip--no { background: var(--danger-soft); color: #8E2420; }
.chip--wait { background: var(--amber-soft); color: var(--amber); }
.chip--plain::before { display: none; }
.chip--plain { background: var(--paper-2); color: var(--ink-2); font-weight: 550; }

/* ---------- Cartes et boutons-icônes ---------- */
.card { background: var(--white); border-radius: var(--r-lg); border: 1px solid #F0E3E7; box-shadow: var(--shadow-paper); padding: clamp(24px, 3.4vw, 40px); }
.card .h2 { margin-bottom: 8px; }
.card form { margin-top: 22px; }
.ibtn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: none; transition: .15s; }
.ibtn:hover { border-color: var(--ink); color: var(--ink); }
.ibtn svg { width: 16px; height: 16px; }
.ibtn[disabled] { opacity: .35; pointer-events: none; }
.ibtn--del:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }

/* ---------- Logotype ---------- */
.wm { display: inline-flex; align-items: baseline; gap: 1px; font-family: var(--serif); font-weight: 500; font-size: 1.45rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wm small { font-family: var(--sans); font-size: .72rem; font-weight: 600; color: var(--rasp); letter-spacing: .02em; margin-left: 2px; }
.wm:hover { color: var(--ink); }
.wm__ring { width: 30px; height: 30px; margin-right: 10px; align-self: center; flex: none; }

/* ---------- Jauges et montants ---------- */
.gauge { height: 10px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.gauge > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rasp), #C8668A); }
.money { font-family: var(--serif); font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.pay { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.pay__dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.pay__dot.is-paid { background: var(--sage); border-color: var(--sage); }
.pay__dot.is-paid::after { content: ""; width: 8px; height: 4px; border: 1.6px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px); }
.kbd { font-family: var(--sans); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .06em; background: var(--paper-2); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
