/* Bouge ton Caillou, partenaires : même identité que le site visiteur (ciel, lagon, sable, flamboyant), pensé pour le téléphone.
   Calendrier de l'événement en flamboyant, calendrier de publication en lagon. Thème clair uniquement, comme l'app. */
:root {
  color-scheme: light;
  --sky-1: #CFEAF8; --sky-2: #EAF6FC;
  --lagoon: #0FA3B1; --lagoon-deep: #0B7A86; --lagoon-soft: #CDEEF1; --ocean: #0B4F6C;
  --ink: #12303F; --ink-soft: #4A6572; --sand: #FBF6EE; --sand-2: #F3EADB; --line: #E7DCC8; --field: #FFFFFF;
  --flam: #E4572E; --flam-soft: #FBDCD2; --ok: #2E8B57; --ok-soft: #DDF1E4; --warn: #9A5B00; --warn-soft: #FDEBD3;
  --white: #FFFFFF; --muted: #B7C3C8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Noto Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--sand); }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--sand); -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 2px; }
a { color: var(--lagoon-deep); }

.wrap { max-width: 560px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }

/* En-tête */
.bar { position: sticky; top: 0; z-index: 20; background: var(--sand); border-bottom: 1px solid var(--line); padding-top: var(--safe-top); }
.bar .wrap { display: flex; align-items: center; gap: 10px; min-height: 56px; }
.bar__brand { display: flex; align-items: center; gap: 6px; font: 600 19px var(--serif); color: var(--ocean); text-decoration: none; white-space: nowrap; }
.bar__brand img { flex: none; }
@media (max-width: 420px) { .bar__brand small { display: none; } }
.bar__brand small { font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--lagoon-deep); margin-left: 6px; }
.bar__spacer { flex: 1; }
.bar__who { font-size: 13px; color: var(--ink-soft); max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkbtn { border: 0; background: none; color: var(--lagoon-deep); font-weight: 600; font-size: 14px; padding: 8px 4px; cursor: pointer; }
.tabs { display: flex; }
.tab { border: 0; background: none; padding: 10px 2px 12px; margin-right: 18px; font-weight: 600; font-size: 15px; color: var(--ink-soft); border-bottom: 3px solid transparent; cursor: pointer; }
.tab[aria-selected="true"] { color: var(--ocean); border-bottom-color: var(--lagoon); }

/* Accueil (non connecté) */
.hero { background: linear-gradient(180deg, var(--sky-1), var(--sky-2)); padding-block: 36px 28px; }
.hero h1 { font: 600 30px/1.15 var(--serif); color: var(--ocean); margin: 0 0 10px; text-wrap: balance; }
.hero p { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--ink); }
.cards { display: grid; gap: 16px; padding-block: 22px 40px; }
.card { scroll-margin-top: 72px; background: var(--white); border: 1.5px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 12px; }
.card h2 { font: 600 21px var(--serif); color: var(--ocean); margin: 0; }
.card p { margin: 0; line-height: 1.5; font-size: 15px; color: var(--ink-soft); }
.notice { padding: 12px 14px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 14.5px; line-height: 1.45; }
.notice--info { background: var(--sand-2); color: var(--ink); font-weight: 500; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ocean); }

/* Formulaire */
.scroll { padding-bottom: 150px; }
.step { padding: 20px 0 8px; display: grid; gap: 10px; }
.step + .step { border-top: 1px solid var(--line); }
.step__head { display: flex; align-items: baseline; gap: 8px; }
.step__num { font: 700 12px var(--sans); color: var(--white); background: var(--ocean); width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; transform: translateY(-2px); }
.step__num.is-event { background: var(--flam); } .step__num.is-pub { background: var(--lagoon); }
.step__title { font: 600 21px var(--serif); color: var(--ocean); margin: 0; }
.hint { font-size: 13.5px; color: var(--ink-soft); margin: -4px 0 0; line-height: 1.45; }
.summary { font-weight: 700; font-size: 15px; color: var(--flam); }
.editing { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--warn); font-size: 14px; font-weight: 600; margin-top: 14px; }
.editing span { flex: 1; }

.input { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--field); font-size: 17px; outline: none; }
.input:focus { border-color: var(--lagoon); box-shadow: 0 0 0 3px rgba(15, 163, 177, .18); }
.input--title { font: 600 19px var(--serif); }
textarea.input { min-height: 76px; resize: vertical; font-size: 16px; }
.timerow { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-soft); }
.timerow .input { width: auto; flex: 1; min-width: 0; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--lagoon); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: var(--field); color: var(--ocean); border-radius: 999px; padding: 10px 15px; min-height: 44px; font-weight: 600; font-size: 15px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ocean); border-color: var(--ocean); color: var(--white); }
.btn { min-height: 52px; border-radius: 999px; border: 0; font-weight: 700; font-size: 16px; cursor: pointer; padding: 0 22px; }
.btn--main { background: var(--lagoon); color: var(--white); }
.btn--ghost { background: none; color: var(--ocean); box-shadow: inset 0 0 0 1.5px rgba(11,79,108,.25); }
.btn--danger { background: none; color: var(--flam); box-shadow: inset 0 0 0 1.5px rgba(228,87,46,.4); }
.btn:disabled { opacity: .55; cursor: default; }

/* Lieu */
.gps { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 12px 16px; text-align: left; border: 0; border-radius: 14px; background: var(--lagoon); color: var(--white); font-weight: 700; font-size: 17px; cursor: pointer; box-shadow: 0 6px 16px rgba(15, 163, 177, .3); }
.gps small { display: block; font-weight: 500; font-size: 13px; opacity: .9; }
.or { text-align: center; font-size: 13px; color: var(--ink-soft); margin: 4px 0; }
.suggest { list-style: none; margin: 0; padding: 0; border: 1.5px solid var(--line); border-radius: 14px; background: var(--field); overflow: hidden; }
.suggest button { width: 100%; text-align: left; padding: 12px 14px; border: 0; background: none; cursor: pointer; font-size: 15.5px; }
.suggest li + li button { border-top: 1px solid var(--line); }
.suggest small { color: var(--ink-soft); }
.place-head { display: flex; align-items: center; gap: 10px; }
.place-head .zone { flex: 1; }
.zone { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--lagoon-soft); color: var(--lagoon-deep); }
.map { height: 220px; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--line); }
.map-hint { font-size: 12.5px; color: var(--ink-soft); }
.pin { width: 30px; height: 30px; position: relative; }
.pin::before { content: ""; position: absolute; inset: 0; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--flam); border: 3px solid var(--white); box-shadow: 0 4px 10px rgba(0,0,0,.25); }

/* Entrée */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--sand-2); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { border: 0; border-radius: 11px; min-height: 46px; background: none; font-weight: 700; font-size: 16px; color: var(--ink-soft); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--ocean); box-shadow: 0 2px 6px rgba(11,79,108,.12); }
.money { position: relative; }
.money .input { padding-right: 40px; font-variant-numeric: tabular-nums; }
.money span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--ink-soft); }

/* Options */
.opts { display: grid; gap: 10px; }
.base { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.base svg { flex: none; }
.opt { border-radius: 16px; border: 2px solid var(--line); background: var(--field); overflow: hidden; }
.opt.is-on { border-color: var(--lagoon); box-shadow: 0 0 0 3px rgba(15,163,177,.15); }
.opt__head { display: grid; grid-template-columns: 26px 1fr auto; gap: 2px 12px; align-items: start; padding: 14px; cursor: pointer; }
.opt__head input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--lagoon); }
.opt__name { font-weight: 700; font-size: 16.5px; color: var(--ocean); }
.opt__price { font-weight: 700; font-size: 15px; color: var(--ocean); white-space: nowrap; font-variant-numeric: tabular-nums; }
.opt__desc { grid-column: 2 / 4; font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; }
.opt__more { display: grid; gap: 10px; padding: 0 14px 14px 52px; }
.opt__more label, .opt__label { font-weight: 600; font-size: 13.5px; color: var(--ocean); display: grid; gap: 6px; }
.upload { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 14px; border: 2px dashed #C9B99B; background: var(--sand); color: var(--ink-soft); font-size: 14px; text-align: center; cursor: pointer; overflow: hidden; position: relative; padding: 10px; }
.upload img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Calendriers (--sel : couleur de la sélection) */
.cal { --sel: var(--lagoon); --sel-soft: var(--lagoon-soft); position: relative; background: var(--white); border: 1.5px solid #BFE3E8; border-radius: 18px; padding: 12px 10px 10px; user-select: none; }
.cal--event { --sel: var(--flam); --sel-soft: var(--flam-soft); border-color: #F1C9BC; }
.cal__head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px; }
.cal__month { font: 600 18px var(--serif); color: var(--ocean); text-transform: capitalize; padding: 6px 4px 8px; }
.cal__head .cal__month { padding: 0; }
.cal__nav { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sand-2); color: var(--ocean); font-size: 20px; cursor: pointer; }
.cal__nav:disabled { opacity: .35; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.cal__dow { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--ink-soft); padding-bottom: 4px; }
.day { position: relative; height: 42px; border: 0; background: none; padding: 0; cursor: pointer; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink); }
.day span { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.day::before { content: ""; position: absolute; inset: 3px 0; z-index: 0; }
.day.in-range::before { background: var(--sel-soft); }
.day.is-start::before { left: 50%; } .day.is-end::before { right: 50%; } .day.is-start.is-end::before { display: none; }
.day.is-start span, .day.is-end span { background: var(--sel); color: var(--white); font-weight: 700; }
.day.is-free::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 1px; height: 3px; border-radius: 2px; background: var(--ok); z-index: 1; }
.day.is-event span { box-shadow: inset 0 0 0 2.5px var(--flam); font-weight: 700; color: var(--flam); }
.day.is-event.is-start span, .day.is-event.is-end span { color: var(--white); }
.day.is-after::before { background: repeating-linear-gradient(45deg, var(--warn-soft), var(--warn-soft) 4px, #FFF6E8 4px, #FFF6E8 8px); }
.day:disabled, .day.is-off { cursor: default; color: var(--muted); }
.day.is-locked span { background: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(183,195,200,.35) 3px, rgba(183,195,200,.35) 5px); }
.day.is-other { visibility: hidden; }
.cal__legend { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 10px 4px 0; font-size: 12px; color: var(--ink-soft); }
.lg { display: inline-flex; align-items: center; gap: 5px; }
.lg i { display: inline-block; width: 16px; height: 10px; border-radius: 3px; }
.lg .l-pub { background: var(--lagoon-soft); }
.lg .l-free { height: 3px; background: var(--ok); }
.lg .l-event { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--flam); }
.lg .l-lock { background: repeating-linear-gradient(45deg, #fff, #fff 3px, rgba(183,195,200,.6) 3px, rgba(183,195,200,.6) 5px); border: 1px solid var(--line); }
.bubble { position: absolute; z-index: 5; width: 240px; padding: 10px 12px; border-radius: 12px; background: var(--ocean); color: var(--white); font-size: 13.5px; line-height: 1.35; box-shadow: 0 10px 24px rgba(11,79,108,.35); pointer-events: none; }
.bubble::after { content: ""; position: absolute; left: var(--arrow, 50%); bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: var(--ocean); transform: rotate(45deg); }
.bubble.below::after { bottom: auto; top: -6px; }
.bubble b { font-size: 16px; display: block; margin-top: 2px; font-variant-numeric: tabular-nums; }
.bubble small { display: block; opacity: .85; margin-top: 2px; }

.alert { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.4; }
.alert--warn { background: var(--warn-soft); color: var(--warn); }
.alert--info { background: var(--sand-2); color: var(--ink); }
.alert button { justify-self: start; border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; cursor: pointer; background: var(--white); color: inherit; }
.cost { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--white); border: 1.5px solid var(--line); font-size: 14.5px; }
.cost__line { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.cost__line span:first-child { min-width: 0; }
.cost__line.is-tier { color: var(--ink-soft); }
.cost__total { font-weight: 700; color: var(--ocean); font-size: 16px; }
.cost__total s { color: var(--ink-soft); font-weight: 500; margin-right: 6px; }
.pilot { color: var(--ok); font-weight: 700; }

/* Aperçu : la tuile de l'agenda, l'affiche, la carte */
.preview { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: linear-gradient(180deg, #DCEFF5, #CFE7EE); }
.preview__label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ocean); }
.tile { display: flex; flex-direction: column; gap: 2px; background: var(--white); border-left: 4px solid var(--ocean); border-radius: 12px; padding: 10px 12px; position: relative; overflow: hidden; }
.tile.is-featured { border-left-color: var(--flam); padding: 0; }
.tile__img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0FA3B1, #0B4F6C 60%, #E4572E); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile.is-featured .tile__body { padding: 10px 12px 12px; }
.tile__body { display: flex; flex-direction: column; gap: 2px; }
.tile__badge { position: absolute; top: 8px; left: 8px; background: var(--flam); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 4px 8px; border-radius: 999px; text-transform: uppercase; }
.tile__when { font-size: 12.5px; font-weight: 600; color: var(--lagoon-deep); }
.tile__title { font: 600 17px/1.25 var(--serif); color: var(--ocean); overflow-wrap: anywhere; }
.tile__title.is-empty { color: #9DB0B8; }
.tile__where { font-size: 13.5px; color: var(--ink-soft); }
.tile__desc { font-size: 13.5px; margin-top: 4px; }
.tile__cta { align-self: flex-start; margin-top: 8px; background: var(--lagoon); color: var(--white); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; }
.homeposter { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: center; }
.homeposter__screen { height: 150px; border-radius: 14px; border: 4px solid #0E2A38; overflow: hidden; position: relative; background: linear-gradient(180deg, var(--sky-1), var(--sky-2)); }
.homeposter__card { position: absolute; left: 6px; right: 6px; bottom: 8px; border-radius: 8px; overflow: hidden; background: var(--white); box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.homeposter__card div { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0FA3B1, #0B4F6C 60%, #E4572E); }
.homeposter__card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.homeposter__card p { margin: 0; padding: 4px 5px; font: 600 8.5px/1.2 var(--serif); color: var(--ocean); }
.homeposter p.txt { margin: 0; font-size: 13.5px; line-height: 1.4; }
.mapprev { height: 190px; border-radius: 14px; overflow: hidden; border: 1.5px solid rgba(11,79,108,.15); }
.mapprev__legend { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
/* Marqueurs : gratuit = petit point ; vendu = épingle ou médaillon (mêmes formes que la carte des visiteurs) */
.mk-free { width: 16px; height: 16px; border-radius: 50%; background: var(--lagoon); border: 3px solid var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.mk-link { width: 30px; height: 30px; position: relative; }
.mk-link::before { content: ""; position: absolute; inset: 0; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--flam); border: 3px solid var(--white); box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.mk-link::after { content: ""; position: absolute; left: 50%; top: 45%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--white); }
.mk-une { width: 52px; height: 52px; border-radius: 50%; position: relative; background: linear-gradient(135deg, #0FA3B1, #0B4F6C 60%, #E4572E) center / cover; border: 3px solid var(--white); box-shadow: 0 0 0 3px var(--flam), 0 6px 14px rgba(0,0,0,.3); }
.mk-une em { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px); white-space: nowrap; font: 700 10px var(--sans); font-style: normal; letter-spacing: .04em; text-transform: uppercase; color: var(--white); background: var(--flam); padding: 2px 6px; border-radius: 999px; }

/* Barre d'envoi */
.send { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding-bottom: calc(14px + var(--safe-bottom)); background: linear-gradient(180deg, rgba(251,246,238,0), var(--sand) 30%); }
.send .wrap { padding-top: 14px; }
.send__btn { width: 100%; min-height: 56px; border: 0; border-radius: 999px; background: var(--flam); color: var(--white); font-weight: 700; font-size: 17px; cursor: pointer; box-shadow: 0 8px 20px rgba(228,87,46,.35); }
.send__btn:disabled { background: #C9BBA6; box-shadow: none; cursor: default; }
.send__sub { text-align: center; font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; min-height: 16px; }

/* Confirmation */
.done { position: fixed; inset: 0; z-index: 30; background: var(--sand); display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 28px; text-align: center; }
.done > * { max-width: 460px; margin-inline: auto; width: 100%; }
.done__icon { width: 76px; height: 76px; border-radius: 50%; background: var(--ok); margin: 0 auto 6px; display: grid; place-items: center; }
.done h2 { font: 600 26px var(--serif); color: var(--ocean); margin: 0; }
.done p { margin: 0; color: var(--ink-soft); line-height: 1.5; font-size: 15.5px; }

/* Mes événements */
.list { display: grid; gap: 12px; padding-block: 16px 40px; }
.item { display: grid; gap: 6px; background: var(--white); border-radius: 16px; padding: 14px; border: 1px solid var(--line); }
.item__top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.item strong { font: 600 17px var(--serif); color: var(--ocean); min-width: 0; overflow-wrap: anywhere; }
.item span { font-size: 13.5px; color: var(--ink-soft); }
.item .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.item .actions .btn { min-height: 42px; font-size: 14.5px; padding: 0 16px; }
.status { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.st-pending { background: var(--warn-soft); color: var(--warn) !important; }
.st-approved { background: var(--ok-soft); color: var(--ok) !important; }
.st-rejected { background: var(--flam-soft); color: #B23A17 !important; }
.st-over { background: var(--sand-2); color: var(--ink-soft) !important; }
.reason { font-size: 13.5px; color: #B23A17 !important; }
.empty { text-align: center; color: var(--ink-soft); padding: 40px 10px; line-height: 1.5; }

.toast { position: fixed; left: 50%; bottom: calc(110px + var(--safe-bottom)); transform: translateX(-50%); z-index: 40; max-width: min(92vw, 480px); background: var(--ocean); color: var(--white); padding: 12px 16px; border-radius: 14px; font-size: 14.5px; line-height: 1.4; box-shadow: 0 10px 24px rgba(11,79,108,.35); }
.toast.err { background: #B23A17; }
.loading { padding: 60px 20px; text-align: center; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.btn--hero { margin-top: 18px; min-height: 58px; font-size: 18px; padding: 0 28px; box-shadow: 0 8px 20px rgba(15,163,177,.3); }
.guest-note { margin-top: 14px; }
.guest-note .linkbtn { display: block; padding: 6px 0 0; }
.step__num:not(:empty) { font-size: 12px; }

/* Tunnel : étapes qui apparaissent, étapes finies repliées en une ligne (toucher pour modifier) */
.step { scroll-margin-top: 112px; }
.step:not([hidden]) { animation: step-in .28s ease both; }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } }
.step__sum { display: none; }
.step__next { margin-top: 6px; }
.step.is-collapsed { padding-bottom: 16px; }
.step.is-collapsed .step__body { display: none; }
.step.is-collapsed .step__head { cursor: pointer; align-items: center; }
.step.is-collapsed .step__num { background: var(--ok); }
.step.is-collapsed .step__title { font: 600 13.5px var(--sans); color: var(--ink-soft); flex: none; }
.step.is-collapsed .step__sum { display: block; flex: 1; min-width: 0; padding: 0; border: 0; background: none; text-align: left; font: 600 16px var(--serif); color: var(--ocean); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.step.is-collapsed .step__head::after { content: "Modifier"; flex: none; font-size: 13.5px; font-weight: 600; color: var(--lagoon-deep); }
.step--preview .step__title { font-size: 19px; }
.upload__row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.upload__row span { flex: 1; }

/* Recadrage du visuel (16:9) */
body.noscroll { overflow: hidden; }
.crop { position: fixed; inset: 0; z-index: 35; display: grid; place-items: center; overflow-y: auto; background: #0E2A38;
  padding: calc(16px + var(--safe-top)) max(16px, env(safe-area-inset-right, 0px)) calc(16px + var(--safe-bottom)) max(16px, env(safe-area-inset-left, 0px)); }
.crop__inner { width: 100%; max-width: 560px; display: grid; gap: 12px; }
.crop__title { font: 600 22px var(--serif); color: var(--white); margin: 0; }
.crop .seg { background: rgba(255,255,255,.12); }
.crop .seg button { color: rgba(255,255,255,.85); }
.crop .seg button[aria-pressed="true"] { background: var(--white); color: var(--ocean); }
.crop__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0E2A38; }
.crop__frame canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.crop__ring { position: absolute; top: 4%; bottom: 4%; left: 50%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; border: 2px dashed rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
.crop__hint { color: rgba(255,255,255,.82); margin: 0; }
.crop__zoom { width: 100%; accent-color: var(--lagoon); }
.crop__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.crop .btn--ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.step.is-collapsed .step__title[data-short] { font-size: 0; }
.step.is-collapsed .step__title[data-short]::before { content: attr(data-short); font-size: 13.5px; }
.step > * { min-width: 0; }

/* Publication : choix du bord réglé par le prochain toucher */
.pubpick button { display: grid; gap: 1px; padding: 6px 8px; line-height: 1.2; font-size: 15px; }
.pubpick small { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--lagoon-deep); }
.pubpick button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--lagoon), 0 2px 6px rgba(11,79,108,.12); }

/* Origine (« comment nous avez-vous connus ? ») */
.origin-card { display: grid; gap: 10px; border: 2px solid var(--lagoon); }
.origin-card__q, .origin-q { margin: 0; font-weight: 700; color: var(--ocean); }
.origin-q { margin-top: 6px; }
.origin-other { margin-top: 8px; }

/* Récapitulatif et paiement */
.pay { position: fixed; inset: 0; z-index: 36; display: grid; align-items: end; justify-items: center; background: rgba(14, 42, 56, .55); overflow-y: auto; }
.pay__inner { width: 100%; max-width: 560px; background: var(--sand); border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + var(--safe-bottom)); display: grid; gap: 12px; animation: payup .25s ease-out; }
@media (min-width: 700px) { .pay { align-items: center; } .pay__inner { border-radius: 22px; } }
@keyframes payup { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pay__inner { animation: none; } }
.pay__title { font: 600 22px/1.25 var(--serif); color: var(--ocean); margin: 0; }
.pay__card { background: var(--field); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.pay__ev { font-weight: 700; }
.pay__line { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.pay__line.is-total { font-weight: 800; font-size: 17px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.pay__btn { font: 800 17px var(--sans); border: 0; border-radius: 999px; padding: 16px; min-height: 52px; cursor: pointer; background: var(--ocean); color: var(--white); }
.pay__note { margin: 0; text-align: center; color: var(--ink-soft); font-size: 13.5px; }
.pay__reveal { background: var(--ok-soft); border-radius: 16px; padding: 16px; display: grid; gap: 8px; text-align: center; }
.pay__reveal b { font: 700 22px/1.2 var(--serif); color: var(--ok); }
.pay__reveal s { color: var(--ink-soft); }

