/* ══ privacy.css — Loft Thai /test/privacy/ ════════════════
 * Style aligné sur spa-menu : hero slim, ticker, eyebrows,
 * Playfair Display, gold accents, assurance banner.
 */

/* ── Variables ── */
:root {
  --pv-deep: #080808;
  --pv-charcoal: #14110e;
  --pv-gold: #c9a86c;
  --pv-gold-soft: #ead9a2;
  --pv-ink: #1c1c1c;
  --pv-muted: #6b6560;
  --pv-line: #e8e4db;
  --pv-cream: #f7f5f0;
  --pv-max: 1180px;
  --pv-serif: "Cormorant Garamond", Georgia, serif;
}

/* ══ HERO ═════════════════════════════════════════════════
 * Gabarit unifié V2 : 500px, centré — identique à /about/ et
 * spa-menu. padding-top dégage le header fixe.
 */
.privacy-hero {
  position: relative;
  isolation: isolate;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 130px 0 46px;
  text-align: center;
  color: #fff;
  background: var(--pv-deep);
}
.privacy-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* Image large 1920x1080 : couvre proprement toute la bannière */
  background-image: url("/test/assets/hero-spa.jpg");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  transform: scale(1.02);
}
.privacy-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,6,6,0.72) 0%, rgba(8,6,6,0.58) 45%, rgba(8,6,6,0.82) 100%),
    radial-gradient(ellipse at center, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.62) 100%);
}
/* Filet doré en bas, comme .about-hero::after */
.privacy-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(201,168,108,0.25);
}
.privacy-hero__inner {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0;
}
.privacy-hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 18px;
  color: var(--pv-gold-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.privacy-hero__eyebrow::before,
.privacy-hero__eyebrow::after {
  content: "";
  flex: 0 0 44px;
  height: 1px;
  background: rgba(201,168,108,0.5);
}
.privacy-hero h1 {
  max-width: 780px;
  margin: 0 auto 18px;
  font-family: var(--pv-serif);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.01em;
}
.privacy-hero h1 em {
  font-style: italic;
  color: var(--pv-gold);
}
.privacy-hero__copy {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255,255,255,0.8);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.7;
}

/* ══ TICKER ═══════════════════════════════════════════════ */
.privacy-ticker {
  overflow: hidden;
  padding: 10px 0;
  color: rgba(255,255,255,0.5);
  background: var(--pv-charcoal);
  border-top: 1px solid rgba(201,168,108,0.12);
}
.privacy-ticker__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: pv-ticker 80s linear infinite;
}
.privacy-ticker__group {
  display: flex;
  flex: none;
  align-items: center;
}
.privacy-ticker__seq {
  display: flex;
  flex: none;
  align-items: center;
  gap: 52px;
  padding-right: 52px;
}
.privacy-ticker span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.privacy-ticker b {
  color: var(--pv-gold);
  font-weight: 400;
}
@keyframes pv-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══ SHELL ═══════════════════════════════════════════════ */
.privacy-shell {
  padding: 0;
  background: var(--pv-cream);
}
.privacy-layout {
  width: min(var(--pv-max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  padding: 80px 0;
}

/* ── Sidebar ── */
.privacy-sidebar {
  position: relative;
}
.privacy-sidebar__sticky {
  position: sticky;
  top: 110px;
  /* 20 sections : reste atteignable sur les écrans courts */
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,108,0.45) transparent;
}
.privacy-sidebar__sticky::-webkit-scrollbar { width: 4px; }
.privacy-sidebar__sticky::-webkit-scrollbar-thumb {
  background: rgba(201,168,108,0.45);
  border-radius: 4px;
}
.privacy-sidebar__label {
  margin: 0;
  color: var(--pv-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.privacy-sidebar__date {
  margin: 4px 0 28px;
  font-family: var(--pv-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--pv-ink);
}
.privacy-sidebar__nav {
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--pv-line);
  padding-left: 18px;
}
.privacy-sidebar__nav a {
  padding: 8px 0;
  color: var(--pv-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}
.privacy-sidebar__nav a:hover,
.privacy-sidebar__nav a.is-active {
  color: var(--pv-gold);
}

/* ── Body ── */
.privacy-body {
  max-width: 720px;
}
.privacy-eyebrow {
  margin: 0 0 14px;
  color: var(--pv-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.privacy-eyebrow--light {
  color: var(--pv-gold-soft);
}
.privacy-block {
  margin-bottom: 64px;
  scroll-margin-top: 110px;
}
.privacy-block h2 {
  margin: 0 0 22px;
  font-family: var(--pv-serif);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  line-height: 1.05;
  color: var(--pv-ink);
}
.privacy-block > p {
  margin: 0 0 16px;
  color: #4a4540;
  font-size: 15px;
  line-height: 1.75;
}
.privacy-block ul {
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
}
.privacy-block li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 26px;
  color: #4a4540;
  font-size: 15px;
  line-height: 1.7;
}
.privacy-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 1px;
  background: var(--pv-gold);
}
.privacy-block strong {
  color: var(--pv-ink);
  font-weight: 600;
}
.privacy-note {
  margin-top: 8px !important;
  padding: 18px 22px;
  background: rgba(201,168,108,0.08);
  border-left: 3px solid var(--pv-gold);
  border-radius: 2px;
}
.privacy-link {
  color: var(--pv-gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Cookies grid ── */
.privacy-cookies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.privacy-cookie-tile {
  padding: 24px 20px;
  background: #fff;
  border: 1px solid var(--pv-line);
  border-radius: 4px;
  transition: box-shadow .25s ease;
}
.privacy-cookie-tile:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}
.privacy-cookie-tile i {
  color: var(--pv-gold);
  font-size: 22px;
  margin-bottom: 14px;
}
.privacy-cookie-tile span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pv-ink);
}
.privacy-cookie-tile p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--pv-muted);
}

/* ── Rights grid ── */
.privacy-rights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.privacy-right-card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--pv-line);
  border-radius: 4px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.privacy-right-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.07);
}
.privacy-right-card i {
  color: var(--pv-gold);
  font-size: 24px;
  margin-bottom: 14px;
}
.privacy-right-card h3 {
  margin: 0 0 8px;
  font-family: var(--pv-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--pv-ink);
}
.privacy-right-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--pv-muted);
}

/* ══ ASSURANCE BANNER ════════════════════════════════════ */
.privacy-assurance {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  /* vraie bannière : hauteur généreuse plutôt qu'une bande étroite */
  min-height: 420px;
  padding: clamp(72px, 8vw, 104px) max(18px, calc((100vw - var(--pv-max)) / 2));
  color: #fff;
  /* image 16:9 haute résolution : couvre proprement toute la largeur,
     voile allégé pour que la photo se lise vraiment */
  background:
    linear-gradient(100deg, rgba(10,7,5,0.92) 0%, rgba(14,10,7,0.74) 48%, rgba(10,7,5,0.52) 100%),
    url("/test/assets/treatment-atlas-signature-massage-2026.jpg") center 45% / cover no-repeat;
}
/* filets dorés haut et bas, comme le hero */
.privacy-assurance::before,
.privacy-assurance::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(201,168,108,0.28);
}
.privacy-assurance::before { top: 0; }
.privacy-assurance::after  { bottom: 0; }
.privacy-assurance__copy h2 {
  margin: 0;
  font-family: var(--pv-serif);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.02;
  color: #fff;
}
.privacy-assurance__copy h2 em {
  font-style: italic;
  color: var(--pv-gold-soft);
}
.privacy-assurance__copy p:not(.privacy-eyebrow) {
  max-width: 540px;
  margin: 16px 0 0;
  color: rgba(255,255,255,0.78);
  font-size: 17px;
  line-height: 1.6;
}
.privacy-assurance__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.btn-assurance {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 1px;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.btn-assurance i { font-size: 16px; }
.btn-assurance:hover { transform: translateY(-1px); }
.btn-wa { color: #11100d; background: var(--pv-gold-soft); }
.btn-wa:hover { background: #e5cb94; }
.btn-line { color: #fff; background: #00b900; }
.btn-line:hover { background: #00a200; }
.btn-mail { color: #fff; background: transparent; border-color: rgba(255,255,255,0.3); }
.btn-mail:hover { border-color: var(--pv-gold-soft); color: var(--pv-gold-soft); }

/* ══ RESPONSIVE ══════════════════════════════════════════ */
@media (max-width: 900px) {
  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0;
  }
  /* min-width:0 => l'élément de grille peut rétrécir sous la largeur
     de son contenu, sinon la bande de nav élargit toute la page */
  .privacy-sidebar,
  .privacy-sidebar__sticky,
  .privacy-body {
    min-width: 0;
  }
  .privacy-sidebar__sticky {
    position: static;
    /* annule le confinement desktop : en statique, tout doit s'afficher */
    max-height: none;
    overflow: visible;
  }
  /* 20 sections : bande défilable horizontalement plutôt qu'un pavé */
  .privacy-sidebar__nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    border-left: 0;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--pv-line);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(201,168,108,0.45) transparent;
  }
  .privacy-sidebar__nav::-webkit-scrollbar { height: 3px; }
  .privacy-sidebar__nav::-webkit-scrollbar-thumb {
    background: rgba(201,168,108,0.45);
    border-radius: 3px;
  }
  .privacy-sidebar__nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 16px 8px 0;
    scroll-snap-align: start;
  }
}

@media (max-width: 760px) {
  .privacy-hero {
    min-height: 540px;
    padding: 104px 0 40px;
  }
  .privacy-hero__eyebrow::before,
  .privacy-hero__eyebrow::after {
    flex-basis: 24px;
  }
  .privacy-hero__overlay {
    background:
      linear-gradient(180deg, rgba(11,8,8,0.66) 0%, rgba(11,8,8,0.88) 100%);
  }
  .privacy-cookies-grid,
  .privacy-rights-grid {
    grid-template-columns: 1fr;
  }
  .privacy-assurance {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 360px;
  }
  .privacy-assurance__actions {
    justify-content: flex-start;
  }
}

/* ── Hero : paliers petits écrans, alignés sur /about/ et spa-menu ── */
@media (max-width: 480px) {
  .privacy-hero { min-height: 470px; padding: 88px 0 34px; }
}
@media (max-width: 480px) and (max-height: 720px) {
  .privacy-hero { min-height: 450px; }
}
@media (max-width: 380px) and (max-height: 680px) {
  .privacy-hero { min-height: 430px; }
}
