/* ceremony.vangu.be — thème « cœur dans le sable » (faire-part) */

/* Polices auto-hébergées (RGPD : aucun appel à Google Fonts). Voir README. */
@font-face { font-family: "Great Vibes"; src: url("fonts/GreatVibes-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/Lora-Variable.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/Lora-Italic-Variable.woff2") format("woff2"); font-style: italic; font-weight: 400 700; font-display: swap; }

:root {
  --cream:    #fbf6ec;   /* fond crème */
  --cream-2:  #f6eedd;
  --sand-50:  #fffcf6;
  --sand-100: #f6eedd;
  --sand-200: #ebdfc9;
  --sand-300: #d8c3a4;
  --sand-500: #a8875f;
  --sand-700: #6f5638;
  --ink:      #26304a;   /* bleu nuit de l'écriture du faire-part */
  --ink-soft: #5a6178;
  --sea:      #7d93a8;   /* ombres bleutées du sable */
  --ok:       #4f7a5a;
  --err:      #a14b3c;
  --radius:   18px;
  --script: "Great Vibes", "Lora", Georgia, serif;
  --serif:  "Lora", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 400 17px/1.6 var(--serif);
  background:
    radial-gradient(1100px 600px at 90% -10%, rgba(233,214,178,.35), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(214,190,150,.22), transparent 60%),
    var(--cream);
}
/* grain de sable */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .28; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .32 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 32px 16px 56px; }

/* En-tête */
.hero { text-align: center; margin-bottom: 22px; }
.hero .heart { width: 118px; height: auto; display: block; margin: 0 auto 4px; }
.hero h1 { font: 400 clamp(46px, 11vw, 68px)/1 var(--script); margin: 0; color: var(--ink); letter-spacing: .5px; }
.hero p { margin: 8px 0 0; color: var(--ink-soft); font-style: italic; }

/* Étapes */
.steps { display: flex; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 20px 0 22px; font-size: 13px; }
.steps li { display: flex; align-items: center; gap: 7px; color: var(--sand-700); opacity: .55; }
.steps li + li::before { content: ""; width: 22px; height: 1px; background: var(--sand-300); margin-right: 1px; }
.steps .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--sand-300); font-size: 12px; background: var(--sand-50); }
.steps li.on, .steps li.done { opacity: 1; }
.steps li.on .n { background: var(--ink); color: var(--sand-50); border-color: var(--ink); }
.steps li.done .n { background: var(--sand-500); color: #fff; border-color: var(--sand-500); }
@media (max-width: 420px) { .steps .lbl { display: none; } .steps li.on .lbl { display: inline; } }

/* Carte papier */
.card {
  background: linear-gradient(180deg, rgba(255,253,248,.9), rgba(253,249,240,.96));
  border: 1px solid rgba(216,195,164,.7); border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 18px 40px -22px rgba(111,86,56,.45);
  padding: 28px 26px; backdrop-filter: blur(2px);
}
@media (max-width: 480px) { .card { padding: 22px 18px; } }
.card h2 { font: 500 22px/1.3 var(--serif); margin: 0 0 6px; }
.card .lead { color: var(--ink-soft); margin: 0 0 20px; }
.script { font-family: var(--script); font-size: 1.6em; line-height: 1; font-weight: 400; }

/* Formulaires */
label { display: block; font-size: 14px; color: var(--sand-700); margin: 0 0 6px; letter-spacing: .2px; }
input[type=text], input[type=email] {
  width: 100%; font: inherit; color: var(--ink); padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--sand-300); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: var(--sand-500); box-shadow: 0 0 0 4px rgba(168,135,95,.18); }
.hint { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  font: 500 17px/1 var(--serif); letter-spacing: .3px; padding: 16px 22px; margin-top: 20px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  color: var(--sand-50); background: var(--ink); box-shadow: 0 10px 22px -12px rgba(38,48,74,.8);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { background: #1b2338; transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.gold { background: var(--sand-500); box-shadow: 0 10px 22px -12px rgba(111,86,56,.9); }
.btn.gold:hover { background: var(--sand-700); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--sand-300); box-shadow: none; }
.row-actions { display: flex; gap: 10px; }
.row-actions .btn { width: auto; flex: 1; }
.link { color: var(--sand-700); font-size: 14px; }

/* Alertes */
.flash { border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 15px; border: 1px solid; }
.flash.error { color: var(--err); background: #fbefeb; border-color: #eccbc2; }
.flash.info { color: var(--ink-soft); background: var(--sand-50); border-color: var(--sand-200); }
.flash.ok { color: var(--ok); background: #eef5ef; border-color: #cfe1d3; }

/* Candidats */
.choices { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; cursor: pointer;
  background: #fff; border: 1px solid var(--sand-200); transition: border-color .12s, background .12s;
}
.choice span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--sand-300); flex: none; }
.choice input:checked + span { border-color: var(--ink); background: var(--sand-50); }
.choice input:checked + span::before { border: 5px solid var(--ink); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(168,135,95,.25); }

/* Invitation */
.guest { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin-bottom: 20px;
  border-radius: 12px; background: var(--sand-50); border: 1px dashed var(--sand-300); }
.guest b { font-weight: 600; }
.pill { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--sand-200); color: var(--sand-700); white-space: nowrap; }

/* Menus */
.menus { display: grid; gap: 12px; }
.menu {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 14px 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--sand-200);
  transition: border-color .15s, box-shadow .15s;
}
.menu.active { border-color: var(--sand-500); box-shadow: 0 0 0 3px rgba(168,135,95,.15); }
.menu .ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-100); color: var(--sand-700); }
.menu .ico svg { width: 26px; height: 26px; }
.menu h3 { margin: 0; font: 600 17px/1.2 var(--serif); }
.menu p { margin: 2px 0 0; font-size: 14px; color: var(--ink-soft); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--sand-300); background: var(--sand-50);
  color: var(--ink); font: 500 20px/1 var(--serif); cursor: pointer; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper input { width: 34px; text-align: center; border: 0; background: transparent; font: 600 18px var(--serif); color: var(--ink); padding: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.radio-dot { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--sand-300); }
.menu.active .radio-dot { border: 8px solid var(--ink); }
label.menu { cursor: pointer; font-size: inherit; color: inherit; margin: 0; }
label.menu input { position: absolute; opacity: 0; pointer-events: none; }

.counter { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; font-size: 15px; color: var(--ink-soft); }
.bar { flex: 1; height: 6px; margin: 0 12px; border-radius: 99px; background: var(--sand-200); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--sand-500); transition: width .2s; }
.counter.full .bar i { background: var(--ok); }

/* Récapitulatif */
.recap { list-style: none; padding: 0; margin: 0 0 22px; border-top: 1px solid var(--sand-200); }
.recap li { display: flex; justify-content: space-between; padding: 12px 2px; border-bottom: 1px solid var(--sand-200); }
.recap li b { font-weight: 600; }
.recap li.total { color: var(--sand-700); font-size: 15px; }
.consent { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }

.center { text-align: center; }
.big-heart { width: 92px; margin: 4px auto 10px; display: block; }
.footer { text-align: center; margin-top: 28px; font-size: 13px; color: var(--sand-700); opacity: .85; }
.footer a { color: inherit; }

/* Admin */
.wide { max-width: 1040px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--sand-200); vertical-align: top; }
th { background: var(--sand-50); font-weight: 600; color: var(--sand-700); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--sand-200); border-radius: 12px; padding: 12px 14px; }
.kpi b { display: block; font-size: 26px; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 99px; }
.tag.Confirmé { background: #e3efe5; color: var(--ok); }
.tag.En { background: #f6ead9; color: var(--sand-700); }
.tag.Sans { background: #eceef3; color: var(--ink-soft); }
.scroll { overflow-x: auto; }
@media (max-width: 480px) {
  .menu { grid-template-columns: 40px 1fr auto; gap: 10px; padding: 12px; }
  .menu .ico { width: 40px; height: 40px; }
  .menu .ico svg { width: 21px; height: 21px; }
  .menu h3 { font-size: 16px; }
  .menu p { font-size: 13px; line-height: 1.35; }
  .stepper button { width: 32px; height: 32px; }
  .stepper input { width: 26px; }
}

/* ================= Accueil animé (three.js) ================= */
.landing { position: relative; z-index: 1; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 70%, #f3e7d2, var(--cream) 70%); }
.landing canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.landing.is-3d canvas { opacity: 1; }
.landing-fallback { position: absolute; right: 8%; bottom: 14%; width: min(42vw, 420px); opacity: .9; transition: opacity .8s; }
.landing-fallback .fallback-heart { width: 100%; height: auto; }
.landing.is-3d .landing-fallback { opacity: 0; }
.landing-veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(251,246,236,.82) 0%, rgba(251,246,236,.55) 34%, rgba(251,246,236,0) 60%); }

.landing-text { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center;
  max-width: 620px; padding: 0 clamp(20px, 7vw, 110px); }
.landing .names { font: 400 clamp(56px, 8.5vw, 116px)/1 var(--script); margin: 0 0 14px; color: var(--ink); }
.landing .date { font-size: clamp(17px, 1.6vw, 21px); margin: 0 0 22px; color: var(--ink-soft); letter-spacing: .3px; }
.landing .venue { margin: 0 0 18px; font-family: var(--script); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; color: var(--ink); }
.landing .venue span { display: block; }
.landing .venue-addr { font-size: .72em; color: var(--ink-soft); }
.landing .note { margin: 0 0 30px; font-size: 16px; color: var(--ink-soft); }
.landing .cta { width: auto; align-self: flex-start; margin: 0; padding: 16px 30px; }

.reveal { opacity: 0; transform: translateY(14px); animation: reveal 1s cubic-bezier(.2,.7,.2,1) var(--d, 0s) forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px;
  border: 1.5px solid var(--sand-500); border-radius: 14px; opacity: .7; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--sand-500); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-aspect-ratio: 11/10) {
  .landing-veil { background: linear-gradient(180deg, rgba(251,246,236,.9) 0%, rgba(251,246,236,.65) 45%, rgba(251,246,236,0) 68%); }
  .landing-text { justify-content: flex-start; padding-top: clamp(48px, 9vh, 90px); text-align: center; margin: 0 auto; }
  .landing .cta { align-self: center; }
  .landing .date { margin-bottom: 16px; }
  .landing .venue { margin-bottom: 12px; }
  .landing .note { margin-bottom: 22px; font-size: 15px; }
  .landing-fallback { left: 50%; right: auto; bottom: 10%; width: 62vw; transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .scroll-hint span { animation: none; }
}

/* Section réservation sous l'accueil */
.hero-compact { margin-bottom: 8px; }
.kicker { margin: 0; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--sand-500); font-style: normal !important; }
.section-title { font: 400 clamp(40px, 8vw, 58px)/1.05 var(--script); margin: 6px 0 0; color: var(--ink); }

.programme { margin-top: 26px; padding: 22px 24px; border-radius: var(--radius); background: rgba(255,253,248,.6); border: 1px solid var(--sand-200); }
.programme h3 { margin: 0 0 12px; font: 400 32px/1 var(--script); text-align: center; }
.programme ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.programme li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 8px 4px; border-bottom: 1px dashed var(--sand-200); }
.programme li:last-child { border-bottom: 0; }
.programme time { font-weight: 600; color: var(--sand-700); font-variant-numeric: tabular-nums; }

/* ================= Espace organisateurs : navigation + rappels ================= */
.admin-nav { display: flex; gap: 6px; margin: -6px 0 18px; border-bottom: 1px solid var(--sand-200); }
.admin-nav a { padding: 10px 14px; text-decoration: none; color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-nav a.on { color: var(--ink); border-bottom-color: var(--sand-500); font-weight: 600; }
.sub { font: 600 17px/1.3 var(--serif); margin: 26px 0 10px; }
.sub small { font-weight: 400; color: var(--ink-soft); }
textarea { width: 100%; font: 15px/1.55 var(--serif); color: var(--ink); padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--sand-300); background: #fff; outline: none; resize: vertical; }
textarea:focus { border-color: var(--sand-500); box-shadow: 0 0 0 4px rgba(168,135,95,.18); }
select { font: inherit; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--sand-300); background: #fff; color: var(--ink); max-width: 100%; }
.rappel-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
@media (max-width: 820px) { .rappel-grid { grid-template-columns: 1fr; } }
.fields { background: var(--sand-50); border: 1px solid var(--sand-200); border-radius: 14px; padding: 14px; align-self: start; }
.fields h3 { margin: 0 0 8px; font: 600 14px var(--serif); color: var(--sand-700); }
.fields ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 420px; overflow: auto; }
.fields li { display: grid; gap: 1px; font-size: 12.5px; color: var(--ink-soft); }
.field { justify-self: start; font: 600 13px ui-monospace, Menlo, Consolas, monospace; color: var(--sand-700); background: #fff;
  border: 1px solid var(--sand-300); border-radius: 8px; padding: 3px 8px; cursor: pointer; }
.field:hover { border-color: var(--sand-500); background: var(--sand-100); }
.dest-tools { font-size: 14px; margin-bottom: 8px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--sand-700); text-decoration: underline; cursor: pointer; font: inherit; }
.dest-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; max-height: 320px; overflow: auto; }
.dest { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin: 0; background: #fff; border: 1px solid var(--sand-200);
  border-radius: 10px; cursor: pointer; color: var(--ink); font-size: 14px; }
.dest input { margin-top: 4px; accent-color: var(--ink); }
.dest span { display: grid; }
.dest small { color: var(--ink-soft); font-size: 12.5px; }
.preview-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.preview-bar label { margin: 0; }
.btn.small { width: auto; margin: 0; padding: 10px 16px; font-size: 15px; }
.mail-preview { margin-top: 12px; border: 1px solid var(--sand-200); border-radius: 14px; overflow: hidden; background: #fffdf8; }
.mail-head { display: grid; gap: 2px; padding: 12px 16px; background: var(--sand-100); border-bottom: 1px solid var(--sand-200); font-size: 14px; }
.mail-head span { color: var(--ink-soft); font-size: 13px; }
.mail-body { padding: 16px; white-space: pre-wrap; font-size: 15px; line-height: 1.6; }
.send-zone { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--sand-200); }
@media (max-width: 820px) { .send-zone { grid-template-columns: 1fr; } }
.send-zone .inline { display: flex; gap: 8px; }
.send-zone .inline input { flex: 1; }
.send-zone .go { display: grid; gap: 10px; align-content: end; }
.send-zone .go .btn { margin: 0; }
.confirm { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 15px; margin: 0; }
.confirm input { accent-color: var(--ink); }
.tag.st-envoye { background: #e3efe5; color: var(--ok); }
.tag.st-journalise { background: #eceef3; color: var(--ink-soft); }
.tag.st-en_attente, .tag.st-envoi { background: #f6ead9; color: var(--sand-700); }
.tag.st-echec { background: #fbefeb; color: var(--err); }
.sent-body { margin-top: 18px; }
.sent-body pre { white-space: pre-wrap; font: 14px/1.5 var(--serif); background: var(--sand-50); padding: 14px; border-radius: 10px; border: 1px solid var(--sand-200); }
.scroll a { color: var(--sand-700); }

/* ================= Pleine largeur (parcours invité + admin) ================= */
.wrap, .wrap.wide { max-width: none; padding-left: clamp(16px, 4vw, 64px); padding-right: clamp(16px, 4vw, 64px); }
.menus { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.menu { align-content: center; }
.choices { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.programme ol { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); column-gap: 24px; }
.programme li:last-child { border-bottom: 1px dashed var(--sand-200); }
/* champs et boutons gardent une largeur lisible sur très grand écran */
.card input[type=text], .card input[type=email] { max-width: 760px; }
.card .btn:not(.small):not(.cta) { max-width: 480px; }
.row-actions { max-width: 760px; }
.recap { max-width: 760px; }
.center .recap, .center + .recap { margin-left: auto; margin-right: auto; }
.center .btn, .card > .btn.ghost { margin-left: auto; margin-right: auto; display: flex; }
.guest { max-width: none; }
.dest-list { max-height: 420px; }

/* ================= Accueil : section « Confirmer ma présence » ================= */
body.ident-page .wrap { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-top: 32px; padding-bottom: 48px; }
body.ident-page .card { width: 100%; }
body.ident-page .hero .heart { width: 84px; margin-bottom: 10px; }
body.ident-page .footer { display: none; }
body.ident-page .card { max-width: 760px; margin: 0 auto; padding: 30px 32px 26px; }
.back-home { text-align: center; margin: 18px 0 0; }
/* pot de miel anti-robots : invisible pour les humains */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ident-form label { margin-top: 4px; }
.ident-row { display: flex; gap: 10px; }
.ident-row input { flex: 1; max-width: none !important; }
.ident-row .btn { width: auto; margin: 0; padding: 0 26px; white-space: nowrap; flex: none; }
@media (max-width: 560px) {
  .ident-row { flex-direction: column; }
  .ident-row .btn { width: 100%; padding: 16px 22px; max-width: none !important; }
}

/* ================= Programme : frise chronologique ================= */
.programme h3 { margin-bottom: 18px; }
.programme .timeline { list-style: none; margin: 0 auto 6px; padding: 0; position: relative; display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr)); max-width: min(1100px, calc(var(--n) * 230px)); }
/* ligne horizontale reliant les pastilles (du centre de la 1re au centre de la dernière) */
.timeline::before { content: ""; position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n));
  top: 52px; height: 2px; background: repeating-linear-gradient(90deg, var(--sand-300) 0 8px, transparent 8px 14px); }
.tl-step { position: relative; display: grid; justify-items: center; text-align: center; gap: 8px; padding: 0 6px;
  opacity: 0; transform: translateY(8px); animation: reveal .7s cubic-bezier(.2,.7,.2,1) calc(var(--i) * .12s + .1s) forwards; }
.programme li.tl-step { border: 0; grid-template-columns: none; padding: 0 6px; }
.tl-time { font: 600 15px/1 var(--serif); color: var(--sand-700); letter-spacing: .5px; height: 18px; font-variant-numeric: tabular-nums; }
.tl-dot { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #fffdf8; border: 1.5px solid var(--sand-300); color: var(--sand-700); box-shadow: 0 0 0 6px var(--cream), 0 8px 18px -12px rgba(111,86,56,.6); }
.tl-dot svg { width: 24px; height: 24px; }
.tl-step:first-child .tl-dot { background: var(--ink); border-color: var(--ink); color: var(--sand-50); }
.tl-label { font-size: 15.5px; color: var(--ink); line-height: 1.3; }

/* mobile : frise verticale */
@media (max-width: 640px) {
  .programme .timeline { grid-template-columns: 1fr; gap: 20px; max-width: 360px; }
  .timeline::before { left: 95px; right: auto; top: 26px; bottom: 26px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--sand-300) 0 8px, transparent 8px 14px); }
  .tl-step, .programme li.tl-step { grid-template-columns: 58px 52px 1fr; justify-items: start; align-items: center; text-align: left; gap: 12px; padding: 0; }
  .tl-time { justify-self: end; height: auto; }
}
@media (prefers-reduced-motion: reduce) { .tl-step { animation: none; opacity: 1; transform: none; } }

/* ================= Confirmation de présence (invités sans repas) ================= */
.presence-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; margin-bottom: 18px; }
.presence-details { max-width: 760px; }
.nb-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.nb-row label { margin: 0; }
.nb-row[hidden] { display: none; }
.tag.Présent { background: #e3efe5; color: var(--ok); }
.tag.Absent { background: #fbefeb; color: var(--err); }

/* ================= Récapitulatif / confirmation ================= */
.confirm-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; align-items: stretch; }
.confirm-grid > section { padding: 6px 34px 8px; }
.confirm-grid > section:first-child { padding-left: 4px; }
.confirm-contact { border-left: 1px dashed var(--sand-300); display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 860px) {
  .confirm-grid { grid-template-columns: 1fr; }
  .confirm-grid > section { padding: 4px 0; }
  .confirm-contact { border-left: 0; border-top: 1px dashed var(--sand-300); margin-top: 22px; padding-top: 22px !important; }
}
.confirm-grid .kicker { margin-bottom: 6px; }
.confirm-name { font: 500 clamp(22px, 2.4vw, 28px)/1.25 var(--serif) !important; margin: 0 0 18px !important; color: var(--ink); }
.confirm-status { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px;
  background: #eef5ef; border: 1px solid #cfe1d3; margin-bottom: 16px; }
.confirm-status .status-ico { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; }
.confirm-status .status-ico svg { width: 20px; height: 20px; }
.confirm-status b { display: block; font-weight: 600; color: var(--ink); }
.confirm-status span { font-size: 14px; color: var(--ink-soft); }
.confirm-status.is-absent { background: #fbf1ec; border-color: #eccbc2; }
.confirm-status.is-absent .status-ico { background: var(--err); }
.menu-chips { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.menu-chips li { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--sand-200); }
.chip-ico { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sand-100); color: var(--sand-700); }
.chip-ico svg { width: 18px; height: 18px; }
.chip-label { flex: 1; font-size: 15px; }
.chip-qty { font-weight: 600; color: var(--sand-700); font-variant-numeric: tabular-nums; }
.edit-link { display: inline-block; margin-top: 2px; }
.confirm-contact h3 { font: 500 20px/1.3 var(--serif); margin: 0 0 16px; }
.confirm-contact input[type=email] { max-width: none !important; }
.confirm-contact .approve { width: 100%; max-width: none !important; margin-top: 16px; }
.confirm-contact .consent { margin-top: 12px; }

/* Mention « e-mail obligatoire » */
.req { color: var(--err); }
.email-required { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px;
  background: #fbf3ea; border: 1px solid #efd9bf; color: var(--sand-700); font-size: 13.5px; line-height: 1.45; }
.email-required svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.email-required b { color: var(--ink); font-weight: 600; }
