/* Demeures des Lys — gestionnaire de sorties (v4 : fiches en pile + calendrier glisser-déposer) */
.so { --or: #c4a35a; --or-cl: #e8d7a8; --nuit: #1b1a17; --creme: #f3ede1; --papier: #fbf7ee; --txt: #5c574e; --brun: #7a6f4f; font-family: "Outfit", system-ui, sans-serif; color: var(--nuit); }
.so *, .so *::before, .so *::after { box-sizing: border-box; }
.so svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* Formulaire */
.so-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.3fr); gap: 14px; background: #fff; border: 1px solid rgba(196,163,90,.4); border-top: 3px solid var(--or); padding: 22px; margin: 0 0 8px; }
.so-f { min-width: 0; }
.so-f label { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brun); margin: 0 0 6px; }
.so-f input, .so-f select { width: 100%; min-width: 0; max-width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--nuit); background: #fffdf8; border: 1px solid rgba(196,163,90,.55); border-radius: 0; -webkit-appearance: none; appearance: none; }
.so-f select { background-image: linear-gradient(45deg, transparent 50%, #c4a35a 50%), linear-gradient(135deg, #c4a35a 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
.so-f input:focus, .so-f select:focus { outline: 2px solid var(--or); outline-offset: 1px; }
.so-msg { min-height: 0; font-size: .85rem; color: var(--brun); text-align: center; margin: 0 0 6px; }
.so-sec { margin: 38px 0 0; }
.so-h { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: clamp(1.55rem, 3.4vw, 2rem); margin: 0 0 18px; text-align: center; }
.so-h::after { content: ""; display: block; width: 44px; height: 1px; background: var(--or); margin: 10px auto 0; }
.so-empty { text-align: center; color: var(--txt); background: #fff; border: 1px dashed rgba(196,163,90,.6); padding: 18px; margin: 0; }

/* ---------- Fiches en pile ---------- */
.so-pile { --fw: min(500px, calc(100% - 190px)); --pk: 46px; position: relative; padding: 6px 0 0; }
.so-stage { position: relative; min-height: 200px; outline: none; touch-action: pan-y; perspective: 1600px; transition: height .3s; }
.so-stage:focus-visible { box-shadow: 0 0 0 2px var(--or); border-radius: 8px; }
.so-pile.vide .so-stage { height: auto !important; min-height: 0; }
.so-pile.vide .so-pv, .so-pile.vide .so-count { display: none; }
.so-fiche { position: absolute; top: 0; left: 50%; width: var(--fw); margin-left: calc(var(--fw) / -2); background: var(--papier); border: 1px solid rgba(196,163,90,.55); border-radius: 3px; box-shadow: 0 1px 0 #fff inset, 0 18px 40px -18px rgba(27,26,23,.35), 0 2px 6px rgba(27,26,23,.06); padding: 12px 12px 0; cursor: pointer; transform-origin: 50% 110%; transition: transform .6s cubic-bezier(.2,.75,.25,1), opacity .45s ease, filter .45s; user-select: none; -webkit-user-select: none; }
.so-fiche::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(196,163,90,.45); pointer-events: none; border-radius: 2px; }
.so-fiche figure { position: relative; margin: 0; aspect-ratio: 16/10; overflow: hidden; background: var(--nuit); }
.so-fiche img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.so-du { position: absolute; left: 10px; bottom: 10px; background: rgba(251,247,238,.94); color: var(--nuit); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 2px; }
.so-fc { padding: 16px 10px 16px; text-align: center; }
.so-meta { margin: 0 0 4px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--or); font-weight: 600; }
.so-fiche h3 { margin: 0 0 6px; font-family: "Cormorant Garamond", serif; font-size: 1.55rem; font-weight: 600; line-height: 1.1; }
.so-l { margin: 0 auto 4px; max-width: 34em; font-size: .92rem; color: var(--txt); line-height: 1.45; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.08rem; }
.so-tr { margin: 0 0 4px; font-size: 12.5px; color: var(--brun); }
.so-cb { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.so-tg { min-height: 48px; border-radius: 999px; border: 1px solid var(--or); background: var(--or); color: var(--nuit); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; padding: 8px 22px; white-space: nowrap; }
.so-tg:hover { filter: brightness(1.05); }
.so-tg[aria-pressed="true"] { background: transparent; color: var(--brun); }
.so .so-off { min-height: 48px; display: inline-flex; align-items: center; gap: 6px; padding: 0 18px; border: 1px solid rgba(196,163,90,.8); border-radius: 999px; font-size: .88rem; color: var(--nuit); text-decoration: none; background: transparent; }
.so .so-off:hover, .so .so-off:focus-visible { background: var(--creme); }
.so-fiche.on { border-color: var(--or); }
.so-fiche.on figure::after { content: "✓ Dans mon séjour"; position: absolute; right: 10px; top: 10px; background: var(--or); color: var(--nuit); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.so-fiche[data-pos="0"] { z-index: 5; transform: none; cursor: default; }
.so-fiche[data-pos="1"] { z-index: 4; transform: translateX(var(--pk)) rotate(2.2deg) scale(.95); filter: brightness(.97); }
.so-fiche[data-pos="2"] { z-index: 3; transform: translateX(calc(var(--pk) * 1.8)) rotate(4deg) scale(.9); filter: brightness(.94); }
.so-fiche[data-pos="-1"] { z-index: 4; transform: translateX(calc(var(--pk) * -1)) rotate(-2.2deg) scale(.95); filter: brightness(.97); }
.so-fiche[data-pos="-2"] { z-index: 3; transform: translateX(calc(var(--pk) * -1.8)) rotate(-4deg) scale(.9); filter: brightness(.94); }
.so-fiche[data-pos="r"] { z-index: 1; transform: translateX(calc(var(--pk) * 2.4)) rotate(5deg) scale(.86); opacity: 0; pointer-events: none; }
.so-fiche[data-pos="l"] { z-index: 1; transform: translateX(calc(var(--pk) * -2.4)) rotate(-5deg) scale(.86); opacity: 0; pointer-events: none; }
.so-fiche.drag { transition: none; }
.so-fiche .so-fc, .so-fiche .so-du, .so-fiche .so-leg, .so-fiche .so-coeur { transition: opacity .35s ease; }
.so-fiche:not([data-pos="0"]) .so-fc, .so-fiche:not([data-pos="0"]) .so-du, .so-fiche:not([data-pos="0"]) .so-leg, .so-fiche:not([data-pos="0"]) .so-coeur, .so-fiche:not([data-pos="0"]) figure::after { opacity: 0; }
.so-pv { position: absolute; top: var(--ay, 160px); width: 48px; height: 48px; margin-top: -24px; border: 0; background: transparent; color: var(--brun); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 6; border-radius: 50%; transition: color .2s, background .2s, opacity .2s; }
.so-pv svg { width: 26px; height: 26px; stroke-width: 1.2; }
.so-pv:hover { color: var(--nuit); background: rgba(196,163,90,.14); }
.so-pv:focus-visible { outline: 2px solid var(--or); }
.so-pv.prev { right: calc(50% + var(--fw) / 2 + var(--pk) * 1.8 + 4px); }
.so-pv.next { left: calc(50% + var(--fw) / 2 + var(--pk) * 1.8 + 4px); }
.so-pv:disabled { opacity: .18; cursor: default; background: transparent; }
.so-count { text-align: center; font-size: 12px; letter-spacing: .2em; color: var(--brun); margin: 6px 0 0; min-height: 16px; }

/* ---------- Mon séjour / calendrier ---------- */
.so-prog { background: #fff; border: 1px solid rgba(196,163,90,.45); position: relative; padding: 28px 22px 22px; margin-top: 44px; box-shadow: 0 14px 40px rgba(27,26,23,.06); scroll-margin-top: 16px; }
.so-prog::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #c4a35a, #e8d7a8 50%, #c4a35a); }
.so-prog.vide .so-actions, .so-prog.vide .so-note { display: none; }
.so-prog .so-empty { border: 0; background: var(--creme); }
.so-sub { text-align: center; color: var(--brun); font-size: .85rem; margin: -4px 0 10px; }
.so-cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; }
.so-tip { flex: 1; text-align: center; margin: 0; font-size: 12.5px; color: var(--brun); font-style: italic; }
.so-cn { width: 48px; height: 48px; border: 1px solid rgba(196,163,90,.55); border-radius: 50%; background: #fff; color: var(--nuit); cursor: pointer; display: flex; align-items: center; justify-content: center; visibility: hidden; }
.so-cal.defile .so-cn { visibility: visible; }
.so-cn:disabled { opacity: .25; cursor: default; }
.so-cal-scroll { overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--or-cl) transparent; padding: 0 0 8px; }
.so-cal-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px; position: relative; }
.so-col { scroll-snap-align: start; min-width: 0; display: flex; flex-direction: column; }
.so-col-h { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 10px 4px 10px; border-bottom: 1px solid var(--or); min-height: 48px; }
.so-col-h b { font-family: "Cormorant Garamond", serif; font-size: 1.22rem; font-weight: 600; }
.so-col-h b::first-letter { text-transform: uppercase; }
.so-col-h em { font-style: normal; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--or); font-weight: 600; }
.so-col-h em.fer { color: #9a4b3c; }
.so-dot { display: none; }
.so-cells { display: grid; grid-template-rows: auto; gap: 8px; padding-top: 8px; flex: 1; }
.so-cell { position: relative; min-height: 148px; border: 1px dashed rgba(196,163,90,.5); border-radius: 3px; background: var(--papier); padding: 22px 6px 6px; transition: background .15s, border-color .15s, box-shadow .15s; }
.so-cell.c-j { min-height: 304px; }
.so-cell.c-s { min-height: 72px; background: #f4efe4; }
.so-cell.plein { border-style: solid; border-color: rgba(196,163,90,.35); }
.so-cl { position: absolute; left: 8px; top: 5px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brun); }
.so-free { display: flex; align-items: center; justify-content: center; min-height: 110px; font-size: 12.5px; color: rgba(122,111,79,.75); font-style: italic; }
.so-cell.c-s .so-free { min-height: 40px; }
.so-cell.cible { background: #f6ecd3; border-color: var(--or); border-style: solid; box-shadow: 0 0 0 2px rgba(196,163,90,.35) inset; }
.so-cell.refus, .so-tray.refus { background: #f7e9e4; border-color: #c98c7a; }
.so-mini { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(196,163,90,.6); border-radius: 3px; box-shadow: 0 6px 14px -8px rgba(27,26,23,.35); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; overflow: hidden; }
.so-mini:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.so-mi { display: block; height: 78px; overflow: hidden; background: var(--nuit); }
.so-cell.c-j .so-mi { height: 210px; }
.so-mi img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.so-mn { display: block; padding: 6px 8px 7px; font-family: "Cormorant Garamond", serif; font-size: 1.02rem; font-weight: 600; line-height: 1.12; }
.so-mn small { display: block; font-family: "Outfit", sans-serif; font-size: 12px; font-weight: 400; color: var(--brun); margin-top: 2px; }
.so-x { position: absolute; top: 0; right: 0; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: flex-end; padding: 5px; }
.so-x span { width: 26px; height: 26px; border-radius: 50%; background: rgba(251,247,238,.95); color: var(--nuit); font-size: 18px; line-height: 25px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.so-x:hover span { background: var(--or); }
.so-cell.c-s .so-mini, .so-tray .so-mini { flex-direction: row; align-items: center; min-height: 52px; padding-right: 44px; }
.so-cell.c-s .so-mi, .so-tray .so-mi { width: 64px; height: 52px; flex: none; }
.so-cell.c-s .so-x, .so-tray .so-x { top: 50%; margin-top: -24px; align-items: center; }
.so-mini.parti { opacity: .35; }
.so-mini.neuf { animation: so-neuf 1.4s ease; }
.so-mini.non { animation: so-non .35s ease; }
@keyframes so-neuf { 0% { box-shadow: 0 0 0 0 rgba(196,163,90,.9); transform: scale(.96); } 40% { box-shadow: 0 0 0 8px rgba(196,163,90,.0); transform: scale(1); } 100% { box-shadow: 0 6px 14px -8px rgba(27,26,23,.35); } }
@keyframes so-non { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.so-ghost { position: fixed !important; left: 0; top: 0; z-index: 1000; pointer-events: none; opacity: .95; box-shadow: 0 18px 40px rgba(27,26,23,.35) !important; cursor: grabbing; transition: none; }
.so-plan.en-drag { cursor: grabbing; }
.so-tray { margin: 14px 0 0; border: 1px dashed rgba(196,163,90,.5); border-radius: 3px; padding: 10px; background: #fffdf8; }
.so-tray.vide { padding: 6px 10px; }
.so-tray-h { margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brun); }
.so-tray.vide .so-tray-h { margin: 0; }
.so-tray-in { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
/* Fresque (> 7 jours) */
.so-cal.fresque .so-cal-grid { grid-auto-columns: 200px; padding-top: 24px; width: max-content; min-width: 100%; }
.so-cal.fresque .so-cal-grid::before { content: ""; position: absolute; left: 0; right: 0; top: 37px; height: 1px; background: linear-gradient(90deg, var(--or), var(--or-cl) 70%, var(--or)); }
.so-cal.fresque .so-col-h { border-bottom: 0; padding-top: 20px; }
.so-cal.fresque .so-dot { display: block; position: absolute; left: 6px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--or); }
.so-cal.fresque .so-col.bord .so-dot { background: var(--or); }
.so-mois { position: absolute; left: 4px; top: -22px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--or); font-weight: 600; }
.so-cal.fresque .so-cell { min-height: 132px; }
.so-cal.fresque .so-cell.c-j { min-height: 272px; }
.so-cal.fresque .so-cell.c-s { min-height: 72px; }
.so-cal.fresque .so-cell.c-j .so-mi { height: 180px; }

.so-noel { text-align: center; margin: 14px 0 0; }
.so-noel a { display: inline-flex; align-items: center; min-height: 48px; color: var(--brun); }
.so-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0 8px; }
.so-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 24px; border-radius: 999px; border: 1px solid var(--or); background: var(--or); color: var(--nuit); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none; }
.so-btn.alt { background: transparent; }
.so-btn.alt:hover { background: var(--creme); }
.so-note { text-align: center; font-size: 12.5px; color: var(--brun); margin: 6px 0 0; }
.so-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(27,26,23,.92); text-align: center; }
.so-bar[hidden], .so-bar.cache { display: none; }
@media (min-width: 900px) { .so-bar { display: none !important; } }

@media (max-width: 768px) {
  .so-form { grid-template-columns: minmax(0,1fr) minmax(0,1fr); padding: 16px; gap: 12px; }
  .so-f-b { grid-column: 1 / -1; }
  .so-f label { font-size: 12px; }
  .so-f input[type=date] { font-size: 15px; padding: 10px 8px; }
  .so-pile { --fw: calc(100% - 92px); --pk: 20px; }
  .so-pv.prev { right: auto; left: -10px; }
  .so-pv.next { left: auto; right: -10px; }
  .so-fiche { padding: 8px 8px 0; }
  .so-fc { padding: 12px 4px 14px; }
  .so-fiche h3 { font-size: 1.35rem; }
  .so-l { font-size: 1rem; }
  .so-cb { flex-direction: column; gap: 8px; }
  .so-tg, .so .so-off { width: 100%; justify-content: center; padding: 0 12px; font-size: 13.5px; }
  .so-prog { padding: 22px 12px 16px; margin-left: -4px; margin-right: -4px; }
  .so-cal-grid { grid-auto-columns: calc(100% - 64px); }
  .so-cal.fresque .so-cal-grid { grid-auto-columns: calc(100vw - 104px); }
  .so-cal-scroll { scroll-snap-type: x mandatory; }
  .so-tray-in { grid-template-columns: 1fr; }
  .so-btn { width: 100%; }
  .so { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .so-fiche, .so-stage, .so-cell { transition: opacity .2s !important; }
  .so-mini.neuf, .so-mini.non { animation: none; }
}

/* ===== v5 : onglets, cases Midi/Soir, notes, carnet ===== */
.so-idees { margin-top: 30px; }
.so-tabs { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 auto 6px; max-width: 760px; touch-action: pan-y; }
.so-tablist { display: flex; justify-content: center; gap: 4px; flex: 1; min-width: 0; }
.so-tab { position: relative; min-height: 52px; padding: 8px 18px; border: 0; background: none; cursor: pointer; font-family: "Cormorant Garamond", serif; font-size: 1.45rem; font-weight: 500; color: var(--brun); white-space: nowrap; transition: color .25s; }
.so-tab::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 0; height: 1px; background: var(--or); transition: width .35s ease, left .35s ease; }
.so-tab:hover { color: var(--nuit); }
.so-tab.on { color: var(--nuit); font-weight: 600; }
.so-tab.on::after { left: 18px; width: calc(100% - 36px); }
.so-tab:focus-visible { outline: 2px solid var(--or); outline-offset: -2px; border-radius: 4px; }
.so-nb { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--or); color: var(--nuit); font-family: "Outfit", sans-serif; font-size: 12px; font-weight: 600; line-height: 20px; vertical-align: 4px; }
.so-tn { width: 48px; height: 48px; flex: none; border: 0; background: none; color: var(--brun); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.so-tn svg { width: 20px; height: 20px; stroke-width: 1.2; }
.so-tn:hover { background: rgba(196,163,90,.14); color: var(--nuit); }
.so-tn:disabled { opacity: .2; cursor: default; background: none; }
.so-tdots { display: none; justify-content: center; gap: 6px; margin: 0 0 8px; }
.so-tdots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(196,163,90,.4); }
.so-tdots i.on { width: 16px; border-radius: 3px; background: var(--or); }
.so-pile.bascule .so-stage { animation: so-bascule .45s ease; }
@keyframes so-bascule { 0% { opacity: 0; transform: translateY(10px) rotate(-.6deg); } 100% { opacity: 1; transform: none; } }
.so-noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, #2a2620, #1b1a17); color: var(--or-cl); font-family: "Great Vibes", cursive; font-size: 2.2rem; padding: 20px; text-align: center; }
/* cases Midi / Soir : petites lignes */
.so-cell.c-l, .so-cell.c-s { min-height: 50px; padding-top: 20px; background: #f6f1e6; }
.so-cal.fresque .so-cell.c-l, .so-cal.fresque .so-cell.c-s { min-height: 50px; }
.so-cell.c-l .so-mini, .so-cell.c-s .so-mini { flex-direction: row; align-items: center; min-height: 52px; padding-right: 44px; }
.so-cell.c-l .so-mi, .so-cell.c-s .so-mi { width: 64px; height: 52px; flex: none; }
.so-cell.c-l .so-x, .so-cell.c-s .so-x { top: 50%; margin-top: -24px; align-items: center; }
.so-add { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; border: 0; background: none; color: rgba(122,111,79,.8); font: inherit; font-size: 12.5px; letter-spacing: .02em; cursor: pointer; border-radius: 3px; opacity: .75; transition: opacity .2s, background .2s; }
.so-cell:not(.c-l):not(.c-s) .so-free { min-height: 62px; }
.so-cell:hover .so-add, .so-add:focus-visible { opacity: 1; background: rgba(196,163,90,.1); color: var(--nuit); }
.so-inbox { display: flex; gap: 6px; align-items: center; }
.so-in { flex: 1; min-width: 0; min-height: 48px; padding: 8px 10px; border: 1px solid var(--or); background: #fffdf8; font-family: "Great Vibes", cursive; font-size: 1.5rem; color: var(--nuit); border-radius: 2px; }
.so-in:focus { outline: 2px solid rgba(196,163,90,.5); }
.so-ok { min-width: 48px; min-height: 48px; border: 1px solid var(--or); background: var(--or); color: var(--nuit); font: inherit; font-weight: 600; font-size: 13px; border-radius: 999px; cursor: pointer; }
.so-mini.so-note-m { flex-direction: row; align-items: center; min-height: 56px; padding: 6px 44px 6px 12px; background: #fdf9ef linear-gradient(transparent 31px, rgba(196,163,90,.25) 32px) ; background-size: 100% 32px; border-color: rgba(196,163,90,.55); transform: rotate(-.6deg); cursor: grab; }
.so-nt { font-family: "Great Vibes", cursive; font-size: 1.6rem; line-height: 1.1; color: #3a332a; overflow-wrap: anywhere; }
.so-note-m .so-x { top: 50%; margin-top: -24px; align-items: center; }
.so-carnet { display: none; }
.so-coeur { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 6px 12px 5px; background: rgba(27,26,23,.82); color: #e8d7a8; border: 1px solid rgba(196,163,90,.8); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; line-height: 1.2; }
.so-leg { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 26px 12px 9px 42%; text-align: right; background: linear-gradient(transparent, rgba(0,0,0,.5)); color: rgba(255,255,255,.92); font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 13px; line-height: 1.3; pointer-events: none; }
@media (max-width: 768px) {
  .so-tablist { overflow: hidden; }
  .so-tab { display: none; font-size: 1.5rem; }
  .so-tab.on { display: block; }
  .so-tab.on::after { left: 30%; width: 40%; }
  .so-tdots { display: flex; }
}

/* ===== Carnet de voyage (impression A4) ===== */
@page { size: A4; margin: 14mm 14mm 16mm; }
@media print {
  body.ddl-doc, html:has(body.ddl-doc) { background: #fff !important; }
  body.ddl-doc > *:not(.so-carnet) { display: none !important; }
  .so-carnet { display: block !important; font-family: "Outfit", sans-serif; color: #1b1a17; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .so-carnet .cp { break-after: page; }
  .so-carnet .cp:last-child { break-after: auto; }
  .cp-garde { height: 262mm; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid #c4a35a; outline: 1px solid #c4a35a; outline-offset: -5mm; padding: 16mm 14mm 12mm; background: #fbf7ee; }
  .cp-logo { width: 30mm; height: 30mm; border-radius: 50%; border: 2px solid #c4a35a; object-fit: cover; }
  .cp-marque { font-family: "Great Vibes", cursive; font-size: 30pt; color: #c4a35a; margin: 5mm 0 0; line-height: 1; }
  .cp-garde h1 { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 40pt; line-height: 1; margin: 8mm 0 5mm; }
  .cp-dem { font-size: 11pt; letter-spacing: .22em; text-transform: uppercase; color: #7a6f4f; margin: 0; }
  .cp-dates { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 16pt; margin: 3mm 0 8mm; }
  .cp-dates::first-letter { text-transform: uppercase; }
  .cp-photo { flex: 1; width: 100%; min-height: 0; border: 1px solid #c4a35a; padding: 2.5mm; background: #fff; }
  .cp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .cp-pied { font-size: 9pt; letter-spacing: .14em; text-transform: uppercase; color: #7a6f4f; margin: 6mm 0 0; }
  .cp h2 { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 24pt; text-align: center; margin: 0 0 6mm; }
  .cp h2::after { content: ""; display: block; width: 18mm; height: 1px; background: #c4a35a; margin: 3mm auto 0; }
  .cj { break-inside: avoid; border: 1px solid rgba(196,163,90,.7); border-top: 3px solid #c4a35a; background: #fbf7ee; padding: 4mm 5mm 3mm; margin: 0 0 5mm; }
  .cj header { display: flex; align-items: baseline; gap: 3mm; flex-wrap: wrap; border-bottom: 1px solid rgba(196,163,90,.5); padding-bottom: 2mm; margin-bottom: 2mm; }
  .cj-n { font-size: 8.5pt; letter-spacing: .2em; text-transform: uppercase; color: #c4a35a; font-weight: 600; }
  .cj h3 { font-family: "Cormorant Garamond", serif; font-size: 16pt; font-weight: 600; margin: 0; }
  .cj h3::first-letter { text-transform: uppercase; }
  .cj em { font-style: normal; font-size: 8.5pt; letter-spacing: .16em; text-transform: uppercase; color: #7a6f4f; }
  .cj em.fer { color: #9a4b3c; }
  .cr { display: grid; grid-template-columns: 22mm 30mm 1fr; gap: 4mm; align-items: center; padding: 2mm 0; border-top: 1px dotted rgba(196,163,90,.5); }
  .cr:first-of-type { border-top: 0; }
  .cr-s { font-size: 8.5pt; letter-spacing: .16em; text-transform: uppercase; color: #7a6f4f; }
  .cr img, .cr-ph { width: 30mm; height: 19mm; object-fit: cover; border: 1px solid rgba(196,163,90,.6); display: block; background: #efe7d6; }
  .cr-t b { display: block; font-family: "Cormorant Garamond", serif; font-size: 13pt; font-weight: 600; line-height: 1.15; }
  .cr-t i { display: block; font-family: "Cormorant Garamond", serif; font-size: 10.5pt; color: #5c574e; }
  .cr-t small { display: block; font-size: 8.5pt; color: #7a6f4f; margin-top: .5mm; }
  .cr-libre, .cr-note { grid-template-columns: 22mm 1fr; }
  .cr-libre p { margin: 0; font-family: "Cormorant Garamond", serif; font-style: italic; color: #7a6f4f; font-size: 11pt; }
  .cr-nt { margin: 0; font-family: "Great Vibes", cursive; font-size: 19pt; color: #3a332a; line-height: 1.1; }
  .cp-infos { text-align: center; }
  .ci { display: inline-block; text-align: left; border: 1px solid #c4a35a; outline: 1px solid #c4a35a; outline-offset: -2.5mm; background: #fbf7ee; padding: 9mm 14mm; margin: 6mm 0; }
  .ci p { margin: 1.5mm 0; font-size: 11pt; }
  .ci b { display: inline-block; width: 30mm; font-size: 8.5pt; letter-spacing: .16em; text-transform: uppercase; color: #7a6f4f; font-weight: 600; }
  .ci-m { font-family: "Great Vibes", cursive; font-size: 24pt !important; color: #c4a35a; text-align: center; margin-bottom: 3mm !important; }
  .ci-n { max-width: 140mm; margin: 4mm auto; font-size: 10pt; color: #5c574e; }
  .ci-s { font-family: "Great Vibes", cursive; font-size: 26pt; color: #c4a35a; margin: 10mm 0 4mm; }
  .ci-c { font-size: 8pt; color: #7a6f4f; }
}
.so-fiche .so-du { z-index: 2; }
@media (max-width: 560px) { .so-leg { padding-left: 34%; font-size: 12.5px; } .so-coeur { top: 10px; left: 10px; } }

/* v7 : niveau de prix et pictogramme Gastronomique */
.so-px { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 2px 0 6px; }
.so-eur { display: inline-flex; gap: 1px; font-family: "Cormorant Garamond", serif; font-size: 1.12rem; font-weight: 600; letter-spacing: .02em; line-height: 1; }
.so-eur .e { color: #d9d2c3; }
.so-eur .e.on { color: #b08d3e; }
.so-gastro { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #9b7d3c; padding: 3px 12px 3px 9px; border: 1px solid rgba(196,163,90,.6); border-radius: 999px; line-height: 1.6; }
.so-gastro .so-cl-i { width: 17px; height: 17px; flex: none; color: #b08d3e; }
@media print {
  .cr-t .so-px { display: flex; justify-content: flex-start; gap: 3mm; margin: .6mm 0 .4mm; }
  .cr-t .so-eur { font-size: 10.5pt; }
  .cr-t .so-gastro { font-size: 7.5pt; padding: .2mm 2.2mm; letter-spacing: .14em; }
  .cr-t .so-gastro .so-cl-i { width: 3.6mm; height: 3.6mm; }
}

/* v9 : mode vitrine (accueil, pages demeures) */
.so-vit .so-form, .so-vit .so-prog, .so-vit .so-msg { display: none !important; }
.so-vit .so-sec.so-idees { margin-top: 6px; }
.so .so-go { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.so .so-go:focus-visible, .so .so-off:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }

/* ===== v9 : encart outil « Mes sorties » (accueil, pages demeures) — variante via data-v="a|b|c" ===== */
.ddl-so { width: min(1000px, calc(100% - 36px)); margin: 8px auto 72px; font-family: "Outfit", system-ui, sans-serif; }
.ddl-so *, .ddl-so *::before, .ddl-so *::after { box-sizing: border-box; }
.ddl-so-in { position: relative; display: grid; overflow: hidden; isolation: isolate; text-decoration: none; color: #1b1a17; background: #fbf8f2; border: 1px solid rgba(196,163,90,.7); outline: 1px solid rgba(196,163,90,.32); outline-offset: -8px; }
.ddl-so-in:focus-visible { outline: 2px solid #c4a35a; outline-offset: 3px; }
.ddl-so-bg { position: absolute; inset: 0; z-index: -1; color: #c4a35a; opacity: .15; pointer-events: none; }
.ddl-so-plan { display: block; width: 100%; height: 100%; }
.ddl-so-plan .cd { fill: #fbf8f2; }
.ddl-so-txt { display: block; position: relative; min-width: 0; }
.ddl-so-k { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: #9b7d3c; }
.ddl-so-cal { width: 24px; height: 24px; flex: none; color: #c4a35a; }
.ddl-so-t { display: block; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.65rem); line-height: 1.08; margin: 12px 0; }
.ddl-so-t em { font-family: "Great Vibes", cursive; font-style: normal; font-weight: 400; font-size: 1.25em; color: #b08d3e; }
.ddl-so-p { display: block; max-width: 530px; color: #5c574e; font-size: 1rem; line-height: 1.65; }
.ddl-so-p b { font-weight: 600; color: #1b1a17; }
.ddl-so-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 20px 0 24px; }
.ddl-so-st { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #1b1a17; }
.ddl-so-st + .ddl-so-st::before { content: ""; width: 20px; height: 1px; background: #c4a35a; margin-right: 5px; }
.ddl-so-st i { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid #c4a35a; background: #fff; font-family: "Cormorant Garamond", serif; font-style: normal; font-weight: 600; font-size: 17px; letter-spacing: 0; color: #9b7d3c; }
.ddl-so-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.ddl-so-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 30px; border-radius: 999px; background: #c4a35a; color: #1b1a17; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 10px 24px -14px rgba(122,95,30,.8); transition: background .25s ease, box-shadow .25s ease; }
.ddl-so-btn span { display: inline-block; transition: transform .25s ease; }
.ddl-so-in:hover .ddl-so-btn { background: #b8964c; box-shadow: 0 14px 28px -14px rgba(122,95,30,.9); }
.ddl-so-in:hover .ddl-so-btn span { transform: translateX(4px); }
.ddl-so-free { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: #7a6f4f; }
.ddl-so-vis { position: relative; display: block; }
.ddl-so-ph { display: block; width: 100%; height: auto; transform: rotate(var(--r, 6deg)); filter: drop-shadow(0 18px 22px rgba(27,26,23,.28)); transition: transform .45s ease; }
.ddl-so-in:hover .ddl-so-ph { transform: translateY(-6px) rotate(var(--r, 6deg)); }
.ddl-so-ar { position: absolute; width: 92px; height: auto; color: #c4a35a; transition: transform .45s ease; }
.ddl-so-in:hover .ddl-so-ar { transform: translateX(4px); }
.ddl-so-hand { position: absolute; font-family: "Great Vibes", cursive; font-size: 30px; line-height: 1; color: #b08d3e; white-space: nowrap; }

/* --- B : vitrine claire (texte à gauche, smartphone à droite) --- */
.ddl-so[data-v="b"] .ddl-so-in, .ddl-so[data-v="c"] .ddl-so-in { grid-template-columns: minmax(0, 1fr) 280px; align-items: center; gap: 24px; padding: 48px 40px 48px 56px; }
.ddl-so[data-v="b"] .ddl-so-vis, .ddl-so[data-v="c"] .ddl-so-vis { width: 172px; justify-self: end; margin-right: 22px; }
.ddl-so[data-v="b"] .ddl-so-ar, .ddl-so[data-v="c"] .ddl-so-ar { left: -104px; top: 36%; }
.ddl-so[data-v="b"] .ddl-so-hand, .ddl-so[data-v="c"] .ddl-so-hand { left: -138px; top: 22%; transform: rotate(-8deg); }

/* --- C : nuit et or (même mise en page, fond noir du bandeau du site) --- */
.ddl-so[data-v="c"] .ddl-so-in { background: radial-gradient(120% 140% at 85% 50%, #2a2722 0%, #1b1a17 60%); color: #fbf7ee; border-color: #c4a35a; outline-color: rgba(196,163,90,.45); }
.ddl-so[data-v="c"] .ddl-so-bg { opacity: .2; }
.ddl-so[data-v="c"] .ddl-so-plan .cd { fill: #1b1a17; }
.ddl-so[data-v="c"] .ddl-so-k, .ddl-so[data-v="c"] .ddl-so-t em, .ddl-so[data-v="c"] .ddl-so-hand { color: #dcbf78; }
.ddl-so[data-v="c"] .ddl-so-p { color: #d9d2c3; }
.ddl-so[data-v="c"] .ddl-so-p b { color: #fbf7ee; }
.ddl-so[data-v="c"] .ddl-so-st { color: #f3ede1; }
.ddl-so[data-v="c"] .ddl-so-st i { background: transparent; color: #dcbf78; }
.ddl-so[data-v="c"] .ddl-so-free { color: #c9bda4; }
.ddl-so[data-v="c"] .ddl-so-btn { box-shadow: 0 10px 26px -12px rgba(196,163,90,.55); }
.ddl-so[data-v="c"] .ddl-so-in:hover .ddl-so-btn { background: #d3b468; }
.ddl-so[data-v="c"] .ddl-so-ph { filter: drop-shadow(0 18px 26px rgba(0,0,0,.55)); }

/* --- A : filigrane centré, smartphone qui dépasse dans le coin --- */
.ddl-so[data-v="a"] .ddl-so-in { display: block; text-align: center; padding: 50px 40px 46px; }
.ddl-so[data-v="a"] .ddl-so-bg { opacity: .12; }
.ddl-so[data-v="a"] .ddl-so-p { margin: 0 auto; }
.ddl-so[data-v="a"] .ddl-so-steps, .ddl-so[data-v="a"] .ddl-so-cta { justify-content: center; }
.ddl-so[data-v="a"] .ddl-so-vis { position: absolute; right: 46px; bottom: -64px; width: 118px; --r: -9deg; }
.ddl-so[data-v="a"] .ddl-so-ar { display: none; }
.ddl-so[data-v="a"] .ddl-so-hand { left: auto; right: 4px; top: -44px; transform: rotate(-8deg); font-size: 24px; }

@media (max-width: 860px) {
  .ddl-so[data-v="a"] .ddl-so-vis { display: none; }
}
@media (max-width: 720px) {
  .ddl-so { margin: 4px auto 54px; }
  .ddl-so[data-v="b"] .ddl-so-in, .ddl-so[data-v="c"] .ddl-so-in { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 30px 22px 30px; text-align: center; }
  .ddl-so[data-v="b"] .ddl-so-vis, .ddl-so[data-v="c"] .ddl-so-vis { order: -1; width: 112px; justify-self: center; margin: 0 0 14px 64px; --r: 5deg; }
  .ddl-so[data-v="b"] .ddl-so-ar, .ddl-so[data-v="c"] .ddl-so-ar { width: 70px; left: -84px; top: 46%; }
  .ddl-so[data-v="b"] .ddl-so-hand, .ddl-so[data-v="c"] .ddl-so-hand { font-size: 25px; left: -122px; top: 24%; }
  .ddl-so-p { margin: 0 auto; font-size: .97rem; }
  .ddl-so-steps { flex-direction: column; align-items: center; gap: 8px; margin: 18px 0 20px; }
  .ddl-so-st + .ddl-so-st::before { display: none; }
  .ddl-so-cta { flex-direction: column; justify-content: center; }
  .ddl-so-btn { width: 100%; padding: 0 18px; }
  .ddl-so[data-v="a"] .ddl-so-in { padding: 34px 22px 30px; }
}
@media (prefers-reduced-motion: reduce) { .ddl-so-btn, .ddl-so-btn span, .ddl-so-ph, .ddl-so-ar { transition: none; } }
