/* Studiomap — fiches studios et pages de listes (ville, prix, catégorie, département).
   Complète nuit.css (jetons, en-tête, pied de page, cartes studio, puces…). */

.card[hidden]{display:none}

/* ---------- fiche studio : bandeau ---------- */
.studio-hero{padding:40px 0 56px}
.sh-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:24px 48px}
.sh-head > div:first-child{flex:1 1 560px;min-width:0}
.sh-tags{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.pill.sponsor{background:var(--red);border-color:var(--red);color:var(--white)}
.pill.sponsor svg{flex:0 0 auto}
.sh-name{font-weight:900;font-size:clamp(30px,4.4vw,56px);line-height:1.04;overflow-wrap:anywhere}
.sh-facts{list-style:none;margin:20px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:10px 24px;color:var(--muted)}
.sh-facts li{display:flex;align-items:center;gap:8px}
.sh-facts svg{color:var(--red-text);flex:0 0 auto}
.sh-price{flex:0 0 auto;display:flex;align-items:center;gap:20px}
.sh-price p{margin:0;color:var(--muted);font-size:15px}
.sh-price b{display:block;font-family:Archivo,sans-serif;font-weight:900;font-size:44px;line-height:1;color:var(--text)}

/* galerie */
.gallery{position:relative;margin-top:36px;display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:210px 210px;gap:10px;border-radius:24px;overflow:hidden}
.gallery .g{display:block;padding:0;border:0;margin:0;background:var(--ink-2);cursor:zoom-in;overflow:hidden;min-width:0}
.gallery .g img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.gallery .g:hover img{transform:scale(1.03)}
.gallery .g:focus-visible{outline-offset:-4px}
.gallery .g:first-child{grid-row:1/3}
.gallery[data-n="1"]{grid-template-columns:1fr}
.gallery[data-n="2"]{grid-template-columns:1fr 1fr}
.gallery[data-n="2"] .g{grid-row:1/3}
.gallery[data-n="3"]{grid-template-columns:2fr 1fr}
.gallery[data-n="4"] .g:nth-child(4){grid-row:1/3}
.gallery .g-more{position:absolute;right:16px;bottom:16px;min-height:44px;padding:0 18px;font-size:15px;box-shadow:0 8px 24px rgba(0,0,0,.35)}
.no-photo{margin-top:36px;padding:28px;border:1px dashed var(--line-dark);border-radius:24px;color:var(--muted);text-align:center}

/* visionneuse */
.lb{border:0;padding:0;margin:0;width:100%;height:100%;max-width:none;max-height:none;background:rgba(10,10,11,.97);color:var(--white)}
.lb[open]{display:flex;align-items:center;justify-content:center}
.lb::backdrop{background:rgba(0,0,0,.7)}
.lb figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:14px;padding:72px 16px}
.lb img{max-width:min(92vw,1400px);max-height:calc(100vh - 160px);object-fit:contain;border-radius:12px}
.lb figcaption{font-size:14px;color:var(--muted)}
.lb button{position:absolute;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;border:1px solid #3A3A3F;background:rgba(24,24,26,.85);color:var(--white);cursor:pointer;padding:0}
.lb button:hover{background:var(--red);border-color:var(--red)}
.lb .x{top:16px;right:16px}
.lb .prev,.lb .next{top:calc(50% - 24px)}
.lb .prev{left:16px}
.lb .next{right:16px}

/* ---------- fiche studio : contenu ---------- */
.studio-body{padding:64px 0 88px}
.studio-grid{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:48px 56px;align-items:start}
.studio-main{min-width:0}
.block + .block{margin-top:56px}
.block > h2.display{font-size:clamp(24px,2.8vw,32px);margin-bottom:20px}
.desc.clamped{max-height:460px;overflow:hidden;position:relative}
.desc.clamped::after{content:"";position:absolute;left:0;right:0;bottom:0;height:120px;background:linear-gradient(rgba(246,245,242,0),var(--paper))}
.desc-toggle{margin-top:16px;background:none;border:0;padding:0;font:inherit;font-weight:600;color:var(--red-deep);cursor:pointer;text-decoration:underline;text-underline-offset:3px;min-height:44px}
.amen{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.amen li{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 18px 0 14px;border-radius:999px;background:var(--white);border:1px solid var(--line);font-weight:500}
.amen svg{color:var(--red);flex:0 0 auto}
.amen-h{margin:28px 0 12px;font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--grey)}
.block .amen-h:first-of-type{margin-top:0}
.block .steps{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
.block .steps .num{font-size:36px}

/* colonne de réservation */
.studio-aside{position:sticky;top:24px;min-width:0}
.book{background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:0 18px 50px rgba(15,15,16,.08)}
.book-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 12px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.book-head p{margin:0;color:var(--grey);font-size:15px}
.book-head b{font-family:Archivo,sans-serif;font-weight:900;font-size:32px;color:var(--ink)}
.book-title{margin:18px 0 0;font-family:Archivo,sans-serif;font-weight:800;font-size:20px}
.book-spinner{display:flex;flex-direction:column;align-items:center;gap:14px;padding:36px 8px;color:var(--grey);font-size:15px;text-align:center}
.book-spinner span{width:36px;height:36px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--red);animation:sm-spin 1s linear infinite}
@keyframes sm-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.book-spinner span{animation-duration:4s}}
#bookingFormDesktop{display:block;border:0;width:100%}
.sim{margin-top:18px;padding:20px;border-radius:18px;background:var(--paper)}
.sim h3{margin:0;font-family:Archivo,sans-serif;font-weight:800;font-size:18px}
.sim > p{margin:8px 0 0;font-size:14px;line-height:1.55;color:var(--grey)}
.sim label{display:block;margin-top:16px;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--grey)}
#simulator-section{margin-top:6px}
#simulator-section > div{display:block!important}
#hours-input{display:block;width:100%;min-height:48px;margin:0!important;border:1px solid var(--line-2);border-radius:14px;padding:10px 14px;font:inherit;font-size:16px;background:var(--white);color:var(--ink)}
#hours-input:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 3px rgba(231,24,49,.15)}
.sim .rate{display:flex;justify-content:space-between;gap:12px;margin:14px 0 0;font-size:15px;color:var(--ink)}
#total-cost{margin:12px 0 0;padding-top:12px;border-top:1px solid var(--line-2);font-family:Archivo,sans-serif;font-weight:800;font-size:22px;color:var(--ink)}
#total-cost:empty{display:none}
.book .ticks{margin-top:18px;font-size:14px;color:var(--grey)}
.book .ticks li::before{flex-basis:20px;height:20px;background-size:12px}

/* barre de réservation mobile */
.book-bar{display:none}

/* ---------- pages de listes ---------- */
.list-hero .meta b{color:var(--text)}
.list-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 32px;margin-bottom:28px}
.list-head h2.display{font-size:clamp(26px,3.2vw,40px)}
.filter{margin:0 0 28px}
.seo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px 64px}
.seo .prose{font-size:17px}
.seo .prose h2{margin-top:0;font-size:26px}
.seo .faq h2{margin-bottom:8px;font-size:26px;line-height:1.2;letter-spacing:-0.01em}
.near h2{margin-bottom:24px}
.near .chips + h3{margin-top:32px}
.near h3{margin:0 0 16px;font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--grey)}
.empty-state{padding:40px 32px;border-radius:24px;background:var(--white);border:1px solid var(--line);text-align:center}
.empty-state h2{font-size:clamp(24px,3vw,32px)}
.empty-state p{margin:12px auto 0;max-width:520px;color:var(--grey)}
.empty-state .btn-row{justify-content:center}

@media (max-width:991px){
  .studio-grid{grid-template-columns:minmax(0,1fr)}
  .studio-aside{position:static}
  .book-bar{position:fixed;left:0;right:0;bottom:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--ink);color:var(--text);border-top:1px solid var(--line-dark);transition:transform .25s ease}
  .book-bar p{margin:0;font-size:15px;color:var(--muted)}
  .book-bar b{font-family:Archivo,sans-serif;font-weight:900;font-size:22px;color:var(--text)}
  .book-bar.away{transform:translateY(110%)}
  body:has(.book-bar){padding-bottom:76px}
  .seo{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:767px){
  .studio-hero{padding:28px 0 40px}
  .sh-price{width:100%;justify-content:space-between}
  .sh-price b{font-size:36px}
  .gallery,.gallery[data-n]{grid-template-columns:1fr;grid-template-rows:260px;border-radius:20px;margin-top:28px}
  .gallery .g:first-child{grid-row:auto}
  .gallery .g:not(:first-child){display:none}
  .studio-body{padding:44px 0 64px}
  .block + .block{margin-top:44px}
  .book{padding:20px 16px;border-radius:20px}
  .empty-state{padding:32px 20px}
}
@media (prefers-reduced-motion:reduce){
  .gallery .g img,.book-bar{transition:none}
}
.card .name,.desc{overflow-wrap:anywhere}
