/* Wizard de publication — Logement Intermittent (façon Airbnb, clair & soigné). */

.li-wz { max-width: 680px; margin: 8px auto 120px; position: relative; }
.li-wz-step { display: none; animation: li-wz-in .32s var(--ease, ease); }
.li-wz-step.is-active { display: block; }
@keyframes li-wz-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.li-wz__q { font-family: var(--serif); font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.12; color: var(--ink); margin: 8px 0 10px; letter-spacing: -.01em; }
.li-wz__sub { color: var(--ink-2); font-size: 1rem; margin: 0 0 26px; line-height: 1.5; }
.li-wz__sub strong { color: var(--ink); }
.li-wz__group { font-size: 1.02rem; font-weight: 600; color: var(--ink); margin: 26px 0 12px; }

/* Cartes radio (type de bien) */
.li-wz-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .li-wz-cards { grid-template-columns: repeat(3, 1fr); } }
.li-wz-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px 16px; min-height: 104px; border: 1.5px solid var(--border); border-radius: var(--r); cursor: pointer; background: var(--card); transition: border-color .18s, box-shadow .18s, transform .18s; }
.li-wz-card:hover { border-color: var(--ink-2); transform: translateY(-2px); }
.li-wz-card input { position: absolute; opacity: 0; pointer-events: none; }
.li-wz-card__ico { font-size: 1.5rem; color: var(--ink); }
.li-wz-card__t { font-weight: 600; color: var(--ink); }
.li-wz-card:has(input:checked) { border-color: var(--rasp); box-shadow: 0 0 0 1.5px var(--rasp), var(--shadow-sm); }
.li-wz-card:has(input:checked) .li-wz-card__ico { color: var(--rasp); }

/* Liste d'options (type d'espace, arrangement) */
.li-wz-list { display: grid; gap: 12px; }
.li-wz-opt { display: flex; align-items: center; padding: 18px 20px; border: 1.5px solid var(--border); border-radius: var(--r); cursor: pointer; background: var(--card); transition: border-color .18s, box-shadow .18s; }
.li-wz-opt:hover { border-color: var(--ink-2); }
.li-wz-opt input { position: absolute; opacity: 0; pointer-events: none; }
.li-wz-opt span { display: flex; flex-direction: column; gap: 3px; }
.li-wz-opt strong { color: var(--ink); font-size: 1.05rem; }
.li-wz-opt em { color: var(--ink-2); font-style: normal; font-size: .92rem; line-height: 1.4; }
.li-wz-opt--inline span { flex-direction: row; }
.li-wz-opt:has(input:checked) { border-color: var(--rasp); box-shadow: 0 0 0 1.5px var(--rasp); }
/* Option à choix multiple (case à cocher) */
.li-wz-opt--check { gap: 14px; }
.li-wz-opt__box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--border); background: #fff; position: relative; transition: background .18s, border-color .18s; }
.li-wz-opt__box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .18s; }
.li-wz-opt--check:has(input:checked) .li-wz-opt__box { background: var(--rasp); border-color: var(--rasp); }
.li-wz-opt--check:has(input:checked) .li-wz-opt__box::after { transform: rotate(45deg) scale(1); }

/* Champs */
.li-wz-fields { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.li-wz-field { display: flex; flex-direction: column; gap: 7px; }
.li-wz-field--full { grid-column: 1 / -1; }
.li-wz-field > span { font-weight: 600; font-size: .92rem; color: var(--ink); }
.li-wz input[type="text"], .li-wz input[type="number"], .li-wz input[type="date"], .li-wz input:not([type]), .li-wz input[list] {
	width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: #fff; font: inherit; color: var(--ink); transition: border-color .18s, box-shadow .18s; }
.li-wz input:focus { outline: none; border-color: var(--rasp); box-shadow: 0 0 0 3px rgba(230,62,126,.12); }

/* Carte approximative (localisation) */
.li-wz-map { height: 0; overflow: hidden; border-radius: var(--r); margin-top: 16px; transition: height .3s var(--ease, ease); border: 1px solid var(--border); z-index: 1; }
.li-wz-map.is-on { height: 240px; }
.li-wz__maphint { color: var(--ink-2); font-size: .9rem; margin: 10px 0 0; line-height: 1.45; }
.li-wz__maphint strong { color: var(--ink); }

/* Steppers */
.li-wz-steppers { display: grid; gap: 8px; }
.li-wz-stepper { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--border); }
.li-wz-stepper__lbl { font-weight: 500; color: var(--ink); }
.li-wz-stepper__ctl { display: flex; align-items: center; gap: 14px; }
.li-wz-stepper__ctl button { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--border); background: #fff; font-size: 1.3rem; line-height: 1; color: var(--ink); cursor: pointer; transition: border-color .18s, color .18s; }
.li-wz-stepper__ctl button:hover { border-color: var(--rasp); color: var(--rasp); }
.li-wz-stepper__ctl input { width: 40px; text-align: center; border: none !important; box-shadow: none !important; padding: 0 !important; font-weight: 600; }
.li-wz-stepper--num { gap: 16px; }
.li-wz-surface { max-width: 130px; }

/* Équipements / chips */
.li-wz-equip { display: flex; flex-wrap: wrap; gap: 10px; }
.li-wz-chip { cursor: pointer; }
.li-wz-chip input { position: absolute; opacity: 0; pointer-events: none; }
.li-wz-chip span { display: inline-flex; align-items: center; padding: 10px 16px; border: 1.5px solid var(--border); border-radius: var(--pill); color: var(--ink); font-size: .94rem; transition: all .18s; background: #fff; }
.li-wz-chip:has(input:checked) span { border-color: var(--rasp); background: linear-gradient(120deg, rgba(230,62,126,.1), rgba(224,166,60,.1)); color: var(--rasp-deep); font-weight: 600; }

/* Photos */
.li-wz-drop { display: block; border: 2px dashed var(--border); border-radius: var(--r-lg); padding: 40px 20px; text-align: center; cursor: pointer; transition: border-color .18s, background .18s; }
.li-wz-drop:hover { border-color: var(--rasp); background: rgba(230,62,126,.03); }
.li-wz-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.li-wz-drop__in { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.li-wz-drop__in i { font-size: 2rem; color: var(--rasp); }
.li-wz-drop__in strong { color: var(--ink); font-size: 1.05rem; }
.li-wz-drop__in em { color: var(--ink-2); font-style: normal; font-size: .88rem; }
.li-wz-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 16px; }
.li-wz-thumb { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--border); }
.li-wz-thumb img { width: 100%; height: 100%; object-fit: cover; }
.li-wz-thumb.is-cover { border: 2px solid var(--rasp); }
.li-wz-thumb span { position: absolute; left: 0; right: 0; bottom: 0; background: var(--rasp); color: #fff; font-size: .68rem; text-align: center; padding: 2px; font-weight: 600; }

/* Galerie photos gérée (ajout 1 par 1 / couverture / suppression) */
.li-wz-gallery { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.li-wz-photo { position: relative; width: 120px; height: 120px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.li-wz-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.li-wz-photo.is-cover { outline: 3px solid var(--rasp); outline-offset: -3px; }
.li-wz-photo__cov { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(120deg, var(--rasp), var(--rasp-deep)); color: #fff; font-size: .7rem; font-weight: 700; text-align: center; padding: 3px 0; }
.li-wz-photo__star, .li-wz-photo__del { position: absolute; top: 6px; width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .95rem; line-height: 1; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.18); opacity: 0; transition: opacity .15s, transform .15s; }
.li-wz-photo:hover .li-wz-photo__star, .li-wz-photo:hover .li-wz-photo__del { opacity: 1; }
.li-wz-photo__star:hover, .li-wz-photo__del:hover { transform: scale(1.1); }
.li-wz-photo__star { left: 6px; color: var(--gold-deep); }
.li-wz-photo.is-cover .li-wz-photo__star { opacity: 1; background: var(--gold); color: #3A2606; }
.li-wz-photo__del { right: 6px; color: var(--rasp-deep); }
@media (max-width: 560px) {
	.li-wz-photo { width: calc(33.333% - 8px); height: auto; aspect-ratio: 1; }
	.li-wz-photo__star, .li-wz-photo__del { opacity: 1; }
}

/* Gros champs texte */
.li-wz-bigtext { width: 100%; padding: 16px 18px; border: 1.5px solid var(--border); border-radius: var(--r); background: #fff; font: inherit; font-size: 1.15rem; color: var(--ink); resize: vertical; line-height: 1.45; }
.li-wz-bigtext:focus { outline: none; border-color: var(--rasp); box-shadow: 0 0 0 3px rgba(230,62,126,.12); }
.li-wz-count { text-align: right; color: var(--ink-2); font-size: .85rem; margin-top: 6px; }

/* Attestation */
.li-wz-attest { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border: 1.5px solid var(--border); border-radius: var(--r); background: var(--card); cursor: pointer; line-height: 1.5; color: var(--ink); }
.li-wz-attest input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--rasp); flex: none; }

/* Récap */
.li-wz-recap { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 24px; }
.li-wz-recap__row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.li-wz-recap__row:last-child { border-bottom: none; }
.li-wz-recap__row span { color: var(--ink-2); }
.li-wz-recap__row strong { color: var(--ink); text-align: right; }
.li-wz__publish { width: 100%; padding: 16px; font-size: 1.08rem; cursor: pointer; border: none; }

/* Pied : progression + navigation (sticky bas) */
.li-wz-foot { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(253,249,243,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--border); z-index: 50; }
.li-wz-progress { height: 4px; background: var(--cream-2); }
.li-wz-progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--rasp), var(--gold)); transition: width .35s var(--ease, ease); }
.li-wz-foot__row { max-width: 680px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px clamp(16px, 4vw, 24px); }
.li-wz-foot__step { color: var(--ink-2); font-size: .88rem; font-weight: 600; }
.li-wz-foot__draft { background: none; border: none; color: var(--ink-2); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 4px; transition: color var(--transition); }
.li-wz-foot__draft:hover { color: var(--rasp-deep); }
@media (max-width: 559px) { .li-wz-foot__step { display: none; } .li-wz-foot__draft { font-size: .82rem; } }
.li-wz-foot .li-btn { min-width: 120px; cursor: pointer; }

/* Sélecteur de brouillons */
.li-wz-pick { padding-bottom: 40px; }
.li-wz-drafts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.li-wz-draft { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 16px 20px; }
.li-wz-draft__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.li-wz-draft__info strong { color: var(--ink); }
.li-wz-draft__info em { color: var(--ink-2); font-style: normal; font-size: .86rem; }
.li-wz-draft__act { display: flex; align-items: center; gap: 14px; flex: none; }
.li-wz-draft__act .li-btn { padding: .55em 1.3em; font-size: .95rem; }
.li-wz-draft__del { color: var(--ink-2); font-size: .9rem; text-decoration: underline; text-underline-offset: 2px; }
.li-wz-draft__del:hover { color: #c0392b; }
.li-wz-pick__new { margin-top: 22px; }

/* Confirmation post-publication */
.li-wz-done { text-align: center; padding: 32px; }
.li-wz-done h2 { font-family: var(--serif); margin: 0 0 10px; }

/* Petite secousse si étape incomplète */
.li-wz--shake { animation: li-wz-shake .4s; }
@keyframes li-wz-shake { 0%,100%{transform:none} 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)} }

@media (max-width: 559px) {
	.li-wz-fields { grid-template-columns: 1fr; }
}
