/* ==================================================================
   ALTERNATIS — modules : boutique, réservations, podcast, forum,
   panier, chat, pop-up, lightbox
   ================================================================== */

/* ---------------------------------------------------------------- */
/* Page head                                                        */
/* ---------------------------------------------------------------- */

.page-head {
  background: var(--ink);
  color: var(--cream);
  padding: 168px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 80% 20%, rgba(198, 161, 91, .16), transparent 70%);
}
.page-head .wrap { position: relative; }
.page-head h1 {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -.02em;
}
.page-head h1 em { color: var(--gold); font-style: italic; }
.page-head__text {
  margin: 20px 0 0; max-width: 620px;
  font-size: 16px; line-height: 1.7; color: rgba(246, 243, 236, .7);
}
.page-head__actions { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }

.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: #8A939A; margin-bottom: 32px;
}
.breadcrumb a:hover { color: var(--gold); }

/* ---------------------------------------------------------------- */
/* Boutique                                                         */
/* ---------------------------------------------------------------- */

.shop-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.chip {
  border: 1px solid rgba(11, 23, 32, .16); background: transparent;
  padding: 8px 16px; border-radius: 20px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #5C666E;
  transition: all .2s ease;
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.product-card {
  border: 1px solid rgba(11, 23, 32, .1); background: #FFFDF8;
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -26px rgba(11, 23, 32, .35); border-color: rgba(198, 161, 91, .5); }
.product-card__media { position: relative; display: block; overflow: hidden; }
.product-card__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--ink); color: var(--gold);
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 10px;
}
.product-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product-card__cat { margin: 0 0 8px; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.product-card h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 19px; font-weight: 500; line-height: 1.3; }
.product-card h3 a:hover { color: var(--gold); }
.product-card__text { margin: 0 0 18px; font-size: 13.5px; line-height: 1.6; color: #5F6970; flex: 1; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.price { font-family: var(--font-display); font-size: 19px; font-weight: 500; color: var(--ink); }
.price--lg { font-size: 30px; }
.price-old { font-size: 14px; color: #9AA2A8; text-decoration: line-through; margin-left: 8px; }
.stock-out { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #A33B3B; }
.shop-note { margin-top: 34px; font-size: 12px; color: #7B848B; max-width: 640px; }

/* product page */
.product-page { padding-top: 40px; }
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.product__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product__title {
  margin: 6px 0 14px; font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 400; line-height: 1.1;
}
.product__lead { margin: 0 0 22px; font-size: 16px; line-height: 1.7; color: #5F6970; }
.product__price { display: flex; align-items: baseline; gap: 8px; padding: 18px 0; border-top: 1px solid rgba(11,23,32,.1); border-bottom: 1px solid rgba(11,23,32,.1); }
.product__meta { display: flex; flex-wrap: wrap; gap: 18px; padding: 16px 0; font-size: 12px; color: #5F6970; }
.product__meta span { display: inline-flex; align-items: center; gap: 7px; }
.product__meta svg { color: var(--gold); }
.buy-row { display: flex; gap: 12px; margin: 8px 0 28px; flex-wrap: wrap; }
.buy-row .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(11,23,32,.18); border-radius: 2px; }
.qty button { width: 42px; height: 48px; border: 0; background: transparent; font-size: 17px; color: var(--ink); cursor: pointer; }
.qty button:hover { background: #F1EFE8; }
.qty input { width: 48px; height: 48px; border: 0; border-left: 1px solid rgba(11,23,32,.12); border-right: 1px solid rgba(11,23,32,.12); text-align: center; font-size: 14px; background: transparent; }
.qty input:focus { outline: 0; }
.product__desc { margin-top: 10px; font-size: 14.5px; }
.related { margin-top: 84px; }
.related .sec-title { margin-bottom: 30px; }

/* order */
.order-page { padding-top: 60px; }
.order-card { background: #FFFDF8; border: 1px solid rgba(11,23,32,.1); padding: 48px; }
.order-check {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; background: var(--ink); color: var(--gold);
}
.order-check svg { width: 24px; height: 24px; }
.order-card h1 { margin: 0 0 14px; text-align: center; font-family: var(--font-display); font-weight: 400; font-size: 34px; }
.order-card .sec-text { text-align: center; margin: 0 auto 30px; }
.order-table { width: 100%; border-collapse: collapse; margin: 10px 0 26px; }
.order-table th { text-align: left; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #8590A0; padding: 10px 8px; border-bottom: 1px solid rgba(11,23,32,.12); }
.order-table td { padding: 13px 8px; border-bottom: 1px solid rgba(11,23,32,.07); font-size: 13.5px; }
.order-table tfoot td { font-weight: 600; border-bottom: 0; padding-top: 18px; }
.row-sub { font-size: 11px; color: #8A939A; }
.downloads { background: #F1EFE8; padding: 20px 22px; margin-bottom: 26px; }
.downloads h3 { margin: 0 0 12px; font-size: 13px; }
.download-link {
  display: flex; align-items: center; gap: 9px; padding: 8px 0;
  font-size: 13px; color: var(--ink); border-bottom: 1px solid rgba(11,23,32,.08);
}
.download-link:hover { color: var(--gold); }
.order-next { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.order-next p { margin: 0; flex: 1 1 100%; font-size: 12.5px; color: #5F6970; }

/* ---------------------------------------------------------------- */
/* Réservations                                                     */
/* ---------------------------------------------------------------- */

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 80px; }
.service-card {
  border: 1px solid rgba(11,23,32,.1); background: #FFFDF8;
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.service-card__top { display: flex; justify-content: space-between; gap: 10px; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.service-card h3 { margin: 4px 0 0; font-family: var(--font-display); font-size: 20px; font-weight: 500; line-height: 1.3; }
.service-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #5F6970; flex: 1; }
.service-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(11,23,32,.08); }
.service-card__foot strong { font-family: var(--font-display); font-size: 18px; font-weight: 500; }

.booking-panel { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; scroll-margin-top: 120px; }
.booking-form { padding: 32px; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; min-height: 42px; }
.slot {
  border: 1px solid rgba(11,23,32,.16); background: #FBFAF6;
  padding: 9px 14px; border-radius: 2px; font-size: 12.5px; color: var(--ink);
  cursor: pointer; transition: all .15s ease;
}
.slot:hover { border-color: var(--gold); }
.slot.is-selected { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.slot:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.slot-grid .help { font-size: 12.5px; color: #8A939A; }

/* ---------------------------------------------------------------- */
/* Podcast                                                          */
/* ---------------------------------------------------------------- */

.podcast-list { display: grid; gap: 32px; }
.episode { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; padding-bottom: 32px; border-bottom: 1px solid rgba(11,23,32,.12); }
.episode__cover { position: relative; }
.episode__cover img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.episode__num {
  position: absolute; bottom: 10px; left: 10px;
  background: var(--ink); color: var(--gold);
  font-family: var(--font-display); font-size: 13px; padding: 4px 9px;
}
.episode__body h2 { margin: 0 0 10px; font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 1.3; }
.episode__body p { margin: 0 0 14px; font-size: 14px; line-height: 1.65; color: #5F6970; }
.episode__body audio { width: 100%; height: 38px; }

/* ---------------------------------------------------------------- */
/* Forum                                                            */
/* ---------------------------------------------------------------- */

.forum-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.forum-list { display: grid; gap: 0; border-top: 1px solid rgba(11,23,32,.12); }
.thread-row {
  display: flex; gap: 20px; align-items: center;
  padding: 22px 6px; border-bottom: 1px solid rgba(11,23,32,.12);
  transition: background .15s ease;
}
.thread-row:hover { background: #FBFAF6; }
.thread-row__main { flex: 1; }
.thread-row__cat { margin: 0 0 6px; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.thread-row h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 19px; font-weight: 500; line-height: 1.35; }
.thread-row__meta { margin: 0; font-size: 11.5px; color: #8A939A; }
.thread-row__count {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: #F1EFE8;
  font-size: 12px; color: var(--ink);
}
.forum-form { padding: 26px; }
.forum-form h2 { margin: 0 0 16px; font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.thread-page { padding-top: 40px; }
.thread { padding-bottom: 26px; border-bottom: 1px solid rgba(11,23,32,.12); }
.thread h1 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.15; }
.thread__meta { margin: 0 0 18px; font-size: 11.5px; color: #8A939A; }
.thread__body { font-size: 15.5px; line-height: 1.8; color: #46525B; }
.thread__replies-title { margin: 32px 0 18px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.replies { display: grid; gap: 14px; }
.reply { border: 1px solid rgba(11,23,32,.1); background: #FFFDF8; padding: 18px 20px; }
.reply--team { border-color: rgba(198,161,91,.45); background: #FBF7EC; }
.reply__meta { margin: 0 0 8px; font-size: 11.5px; color: #8A939A; }
.reply__meta strong { color: var(--ink); font-size: 12.5px; }
.badge-team { background: var(--gold); color: #171307; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 6px; border-radius: 2px; }
.reply__body { font-size: 14px; line-height: 1.7; color: #46525B; }
.reply-form { margin-top: 28px; padding: 26px; }
.reply-form h3 { margin: 0 0 14px; font-family: var(--font-display); font-size: 20px; font-weight: 500; }

/* ---------------------------------------------------------------- */
/* Panier                                                           */
/* ---------------------------------------------------------------- */

.cart-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid rgba(246,243,236,.3);
  color: inherit; padding: 9px 13px; border-radius: 2px;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  transition: border-color .2s, color .2s;
}
.cart-btn:hover { border-color: var(--gold); color: var(--gold); }
.cart-btn b {
  background: var(--gold); color: #171307; border-radius: 10px;
  font-size: 9.5px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px;
}
.cart-btn b.is-empty { display: none; }

.cart-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(8, 17, 24, .55);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }
.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 151;
  width: 420px; max-width: 100%;
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease;
  box-shadow: -20px 0 60px rgba(0,0,0,.25);
}
.cart-panel.is-open { transform: none; }
.cart-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid rgba(11,23,32,.1); }
.cart-head h2 { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 500; }
.cart-head button { margin-left: auto; border: 0; background: transparent; font-size: 22px; line-height: 1; color: #7B848B; }
.cart-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cart-line { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(11,23,32,.08); }
.cart-line__img img, .cart-line__img .img-placeholder { width: 60px; height: 60px; object-fit: cover; min-height: 0; }
.cart-line h4 { margin: 0 0 4px; font-size: 13px; font-weight: 500; line-height: 1.4; }
.cart-line__meta { font-size: 11px; color: #8A939A; }
.cart-line__right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.cart-line__price { font-size: 13px; font-weight: 600; }
.cart-line__rm { border: 0; background: transparent; color: #A33B3B; font-size: 11px; text-decoration: underline; }
.cart-foot { padding: 18px 22px 22px; border-top: 1px solid rgba(11,23,32,.1); background: #FBFAF6; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cart-total span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #7B848B; }
.cart-total strong { font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.cart-empty { text-align: center; padding: 50px 10px; color: #8A939A; }
.cart-form { margin-top: 4px; }
.cart-form .field { margin-bottom: 10px; }
.cart-form input, .cart-form select, .cart-form textarea { background: #fff; }
.cart-form h3 { margin: 16px 0 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #7B848B; }

/* ---------------------------------------------------------------- */
/* Chat                                                             */
/* ---------------------------------------------------------------- */

.chat-launcher {
  position: fixed; right: 24px; bottom: 88px; z-index: 95;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: var(--gold);
  border: 1px solid rgba(198,161,91,.4);
  display: grid; place-items: center;
  box-shadow: 0 14px 30px rgba(0,0,0,.3);
  transition: transform .2s ease;
}
.chat-launcher:hover { transform: translateY(-2px); }
.chat-launcher .dot { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: #3DBE7C; border: 2px solid var(--ink); }

.chat-panel {
  position: fixed; right: 24px; bottom: 150px; z-index: 96;
  width: 360px; max-width: calc(100vw - 32px);
  height: 480px; max-height: 70vh;
  background: #fff; color: var(--ink);
  border: 1px solid rgba(11,23,32,.12);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.4);
  display: none; flex-direction: column;
}
.chat-panel.is-open { display: flex; }
.chat-head { background: var(--ink); color: var(--cream); padding: 16px 18px; display: flex; gap: 10px; align-items: center; }
.chat-head strong { display: block; font-size: 13px; font-weight: 500; }
.chat-head span { display: block; font-size: 10.5px; color: rgba(246,243,236,.6); margin-top: 2px; }
.chat-head button { margin-left: auto; background: transparent; border: 0; color: rgba(246,243,236,.7); font-size: 20px; line-height: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; background: #F7F8F9; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 82%; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.5; }
.chat-msg--visitor { align-self: flex-end; background: var(--ink); color: var(--cream); border-bottom-right-radius: 2px; }
.chat-msg--team { align-self: flex-start; background: #fff; border: 1px solid rgba(11,23,32,.1); border-bottom-left-radius: 2px; }
.chat-msg time { display: block; font-size: 9px; opacity: .55; margin-top: 4px; }
.chat-form { display: flex; border-top: 1px solid rgba(11,23,32,.1); }
.chat-form input { flex: 1; border: 0; padding: 13px 14px; font-family: inherit; font-size: 13px; }
.chat-form input:focus { outline: 0; }
.chat-form button { border: 0; background: var(--gold); color: #171307; width: 48px; display: grid; place-items: center; }
.chat-gate { padding: 14px; display: grid; gap: 8px; background: #F7F8F9; }
.chat-gate p { font-size: 11.5px; color: #7B848B; }
.chat-gate input { border: 1px solid rgba(11,23,32,.14); padding: 9px 10px; font-size: 12.5px; border-radius: 4px; width: 100%; }

/* ---------------------------------------------------------------- */
/* Pop-up                                                           */
/* ---------------------------------------------------------------- */

.popup-overlay {
  position: fixed; inset: 0; z-index: 160;
  background: rgba(8,17,24,.6);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.popup-overlay.is-open { opacity: 1; pointer-events: auto; }
.popup {
  background: var(--paper); width: 100%; max-width: 720px;
  display: grid; grid-template-columns: .9fr 1.1fr;
  position: relative; overflow: hidden;
}
.popup__media { background: var(--ink); }
.popup__media img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.popup__body { padding: 38px 36px; }
.popup__body h3 { margin: 0 0 12px; font-family: var(--font-display); font-size: 26px; font-weight: 400; line-height: 1.2; }
.popup__body p { margin: 0 0 20px; font-size: 13.5px; line-height: 1.65; color: #5F6970; }
.popup__close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 22px; color: #8A939A; line-height: 1; }

/* ---------------------------------------------------------------- */
/* Lightbox / vidéo / partage                                       */
/* ---------------------------------------------------------------- */

.lightbox {
  position: fixed; inset: 0; z-index: 170; background: rgba(6,13,19,.94);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; top: 20px; right: 24px; background: transparent; border: 0; color: #fff; font-size: 30px; line-height: 1; }

.video-block { position: relative; width: 100%; aspect-ratio: 16/9; background: var(--ink); }
.video-block iframe, .video-block video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post__share { display: flex; align-items: center; gap: 14px; padding: 0 0 30px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8A939A; }
.post__share a { color: var(--ink); border-bottom: 1px solid rgba(11,23,32,.2); }
.post__share a:hover { color: var(--gold); border-color: var(--gold); }

/* ---------------------------------------------------------------- */
/* Responsive                                                       */
/* ---------------------------------------------------------------- */

@media (max-width: 1000px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; gap: 30px; }
  .services { grid-template-columns: 1fr; }
  .booking-panel { grid-template-columns: 1fr; gap: 30px; }
  .forum-wrap { grid-template-columns: 1fr; gap: 34px; }
  .episode { grid-template-columns: 140px 1fr; gap: 18px; }
  .popup { grid-template-columns: 1fr; }
  .popup__media { display: none; }
  .page-head { padding: 140px 0 56px; }
}

@media (max-width: 700px) {
  .shop-grid { grid-template-columns: 1fr; }
  .episode { grid-template-columns: 1fr; }
  .episode__cover { max-width: 180px; }
  .order-card { padding: 28px 20px; }
  .cart-panel { width: 100%; }
  .chat-panel { right: 12px; bottom: 84px; }
  .chat-launcher { right: 16px; }
  .post__share { flex-wrap: wrap; }
  .page-head h1 { font-size: 2rem; }
  .product-page { padding-top: 10px; }
  .related { margin-top: 48px; }
}
