/* ═══════════════════════════════════════════════════════
   Vodeon AI — legal.css
   Pages : /mentions-legales · /confidentialite · /cookies
   ═══════════════════════════════════════════════════════ */

/* Wrapper legal pages :
   - le fond coloré remonte tout en haut du viewport (y=0)
   - la navbar translucide (rgba 255,255,255,.9) se détache dessus
   - le contenu commence 160px plus bas → 64px navbar + 96px de respiration */
.lg-page {
  position: relative;
  padding-top: 164px; /* 64px navbar + 100px de gap manuel */
  background:
    radial-gradient(1000px 380px at 50% -20px, rgba(167,139,250,.18), transparent 60%),
    linear-gradient(180deg, #EEF0F7 0%, var(--bg-alt) 220px, var(--bg) 460px);
}
.lg-page::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 460px;
  background-image:
    linear-gradient(rgba(30,27,75,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,27,75,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 0%, transparent 75%);
  pointer-events: none;
}

/* ── HERO ── */
.lg-hero {
  position: relative;
  padding: 0 0 56px;
}
.lg-hero-inner {
  position: relative; z-index: 1;
  max-width: 800px; margin: 0 auto; padding: 0 24px;
}
.lg-hero .tag { margin-bottom: 18px; }
.lg-hero h1 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 800; letter-spacing: -1.2px; line-height: 1.15;
  color: var(--indigo); margin-bottom: 14px;
}
.lg-updated {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; color: var(--text-sec); font-weight: 500;
}
.lg-updated i { width: 16px; height: 16px; stroke: var(--text-sec); }

/* ── DOC WRAPPER ── */
.lg-doc {
  max-width: 800px; margin: 0 auto;
  padding: 60px 24px 100px;
}

/* ── TOC ── */
.lg-toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 26px;
  margin-bottom: 48px;
  box-shadow: var(--sh-sm);
}
.lg-toc-title {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text-sec); margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px;
}
.lg-toc-title i { width: 14px; height: 14px; stroke: var(--text-sec); }
.lg-toc ol {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 4px;
  counter-reset: lgtoc;
}
.lg-toc ol > li {
  counter-increment: lgtoc;
  margin: 0; padding: 0;
}
.lg-toc ol > li > a {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 4px;
  color: var(--indigo); text-decoration: none;
  font-size: .95rem; font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.lg-toc ol > li > a::before {
  content: counter(lgtoc, decimal-leading-zero);
  display: inline-block;
  font-size: .78rem; font-weight: 700;
  color: var(--coral);
  letter-spacing: .5px;
  text-align: left;
}
.lg-toc ol > li > a:hover {
  color: var(--coral-h);
  background: rgba(244,126,96,.06);
}

/* ── BODY ── */
.lg-body { color: var(--text); line-height: 1.75; font-size: 1.02rem; }
.lg-body h2 {
  font-size: 1.5rem; font-weight: 700;
  color: var(--indigo);
  margin: 48px 0 14px;
  letter-spacing: -.4px;
  scroll-margin-top: 100px;
}
.lg-body h2:first-child { margin-top: 0; }
.lg-body h3 {
  font-size: 1.1rem; font-weight: 700;
  color: var(--indigo);
  margin: 28px 0 10px;
  letter-spacing: -.2px;
}
.lg-body p { margin-bottom: 14px; color: var(--text); }
.lg-body ul, .lg-body ol { margin: 8px 0 16px 22px; }
.lg-body li { margin-bottom: 6px; }
.lg-body a { color: var(--coral-h); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lg-body a:hover { color: var(--coral); }
.lg-body strong { font-weight: 700; color: var(--indigo); }

.lg-placeholder {
  display: inline-block;
  background: rgba(244,126,96,.1);
  color: var(--coral-h);
  padding: 1px 8px; border-radius: 5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .88em; font-weight: 600;
  letter-spacing: .2px;
}

.lg-callout {
  background: var(--bg-alt);
  border-left: 3px solid var(--coral);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  color: var(--text-sec);
  font-size: .95rem;
}

/* ── COOKIE TABLE PLACEHOLDER ── */
.lg-table-placeholder {
  border: 1px dashed var(--border);
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 18px 20px;
  color: var(--text-sec);
  font-size: .92rem;
  margin: 14px 0 20px;
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .lg-hero { padding: 120px 0 32px; }
  .lg-doc  { padding: 40px 22px 80px; }
  .lg-toc  { padding: 18px 20px; margin-bottom: 36px; }
  .lg-body { font-size: .98rem; }
  .lg-body h2 { font-size: 1.3rem; margin-top: 38px; }
}

/* ═══════════════════════════════════════════════════════
   COOKIE CONSENT BANNER
   ═══════════════════════════════════════════════════════ */
.ck-banner {
  position: fixed; z-index: 9500;
  left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(140%);
  width: min(920px, calc(100vw - 32px));
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--sh-lg);
  padding: 22px 26px;
  display: none;
  opacity: 0;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94), opacity .35s;
}
.ck-banner.is-open {
  display: block;
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.ck-banner-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.ck-banner-head i {
  width: 22px; height: 22px; stroke: var(--coral);
}
.ck-banner-title {
  font-size: 1.05rem; font-weight: 700; color: var(--indigo);
  letter-spacing: -.2px;
}
.ck-banner-body {
  font-size: .93rem; color: var(--text-sec);
  line-height: 1.6; margin-bottom: 16px;
}
.ck-banner-body a { color: var(--coral-h); text-decoration: underline; }
.ck-banner-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: flex-end;
}
.ck-btn {
  flex: 1 1 auto;
  min-width: 150px;
  padding: 12px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-size: .92rem; font-weight: 700;
  cursor: pointer; border: none;
  transition: background .2s, border-color .2s, transform .12s, box-shadow .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.ck-btn:active { transform: translateY(1px); }
.ck-btn-accept {
  background: var(--coral); color: #fff;
  box-shadow: 0 4px 16px rgba(244,126,96,.35);
}
.ck-btn-accept:hover { background: var(--coral-h); box-shadow: 0 6px 22px rgba(244,126,96,.42); }
.ck-btn-refuse {
  background: #fff; color: var(--indigo);
  border: 1.5px solid rgba(30,27,75,.2);
}
.ck-btn-refuse:hover { border-color: var(--indigo); background: var(--bg-alt); }
.ck-btn-custom {
  background: var(--bg-alt); color: var(--indigo);
  border: 1.5px solid transparent;
}
.ck-btn-custom:hover { background: var(--bg-alt2); border-color: var(--border); }

@media (max-width: 640px) {
  .ck-banner { padding: 18px 20px; bottom: 16px; }
  .ck-banner-actions { flex-direction: column; }
  .ck-btn { width: 100%; min-width: 0; }
}

/* ── MODAL PERSONNALISER ── */
.ck-modal {
  position: fixed; inset: 0; z-index: 9600;
  background: rgba(13,11,46,.55);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .25s;
}
.ck-modal.is-open { display: flex; opacity: 1; }
.ck-modal-panel {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--sh-lg);
  max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 30px;
}
.ck-modal-title {
  font-size: 1.4rem; font-weight: 800; color: var(--indigo);
  letter-spacing: -.4px; margin-bottom: 8px;
}
.ck-modal-sub {
  font-size: .95rem; color: var(--text-sec);
  line-height: 1.6; margin-bottom: 22px;
}
.ck-cat {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.ck-cat-body { flex: 1; }
.ck-cat-title {
  font-size: 1rem; font-weight: 700; color: var(--indigo);
  margin-bottom: 4px;
}
.ck-cat-desc { font-size: .88rem; color: var(--text-sec); line-height: 1.55; }
.ck-cat-locked {
  font-size: .78rem; font-weight: 600; color: var(--text-muted);
  padding: 4px 10px; background: var(--bg-alt); border-radius: 6px;
  align-self: center;
}
.ck-modal-actions {
  display: flex; gap: 10px; margin-top: 24px;
  flex-wrap: wrap; justify-content: flex-end;
}

/* Switch */
.ck-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.ck-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.ck-switch-slider {
  position: absolute; inset: 0;
  background: #CBD5E1;
  border-radius: 24px;
  transition: background .2s;
  cursor: pointer;
}
.ck-switch-slider::after {
  content: ''; position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .2s;
}
.ck-switch input:checked + .ck-switch-slider { background: var(--coral); }
.ck-switch input:checked + .ck-switch-slider::after { transform: translateX(20px); }
