/* =============================================================
   legal_pages.css — lageniale · Obsidian & Emerald Green 2026
   Used by: mentions_legales, privacy, contact
============================================================= */

/* ── TOKENS (OuiTaxi Emerald Green & Obsidian Glass) ────── */
:root {
  --gold: #00D174;
  --gold-l: #34D399;
  --gold-glow: rgba(0, 209, 116, 0.25);
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.65);
  --muted2: rgba(255, 255, 255, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --ink: #06080D;
  --navbar-h: 62px;
  --r-pill: 5px;
  --max: 960px;
  --t: all .25s cubic-bezier(.25,.46,.45,.94);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── BASE ───────────────────────────────────────────────────── */
body.lp-page {
  background: var(--ink);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── PAGE WRAPPER ───────────────────────────────────────────── */
.lp-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 48px) 120px;
}

/* ── HERO ───────────────────────────────────────────────────── */
.lp-hero {
  padding: 40px clamp(20px, 5vw, 48px) 40px;
  max-width: var(--max);
  margin: 0 auto;
}
.lp-label {
  display: inline-block;
  font-size: .68rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.lp-hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.08;
  color: #FFFFFF;
  margin-bottom: 16px;
}
.lp-hero h1 em {
  font-style: normal; color: var(--gold);
}
.lp-hero-sub {
  font-size: .95rem; color: var(--muted);
  line-height: 1.8; max-width: 640px;
}
.lp-hero-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 20px;
  font-size: .78rem; color: rgba(255,255,255,.45);
}
.lp-hero-meta strong { color: rgba(255,255,255,.85); font-weight: 600; }

/* ── DIVIDER ────────────────────────────────────────────────── */
.lp-divider {
  height: 1px;
  background: var(--border);
  margin: 0 clamp(20px,5vw,48px);
}

/* ── CONTENT BODY ───────────────────────────────────────────── */
.lp-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,48px) 120px;
}

/* ── TOC ────────────────────────────────────────────────────── */
.lp-toc {
  padding: 24px 28px;
  margin-top: 28px;
  margin-bottom: 24px;
  background: rgba(12, 16, 26, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
}
.lp-toc-label {
  font-size: .65rem; font-weight: 800;
  color: var(--gold); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 14px;
}
.lp-toc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 8px 24px;
}
.lp-toc-list a {
  font-size: .82rem; color: var(--muted);
  text-decoration: none; display: flex;
  align-items: center; gap: 8px;
  padding: 4px 0; transition: color .2s;
}
.lp-toc-list a span {
  font-size: .65rem; font-weight: 800;
  color: rgba(0, 209, 116, 0.6); min-width: 18px;
}
.lp-toc-list a:hover { color: var(--gold); }

/* ── SECTIONS ───────────────────────────────────────────────── */
.lp-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--navbar-h) + 20px);
}
.lp-section:last-child { border-bottom: none; }
.lp-section-head {
  display: flex; align-items: baseline;
  gap: 14px; margin-bottom: 20px;
}
.lp-num {
  font-size: .68rem; font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
  flex-shrink: 0; padding-top: 4px;
}
.lp-section h2 {
  font-size: 1.25rem; font-weight: 800;
  color: #FFFFFF; letter-spacing: -.3px;
}

/* ── TABLE ──────────────────────────────────────────────────── */
.lp-table {
  width: 100%; border-collapse: collapse;
  margin: 16px 0;
}
.lp-table tr { border-bottom: 1px solid rgba(255,255,255,.04); }
.lp-table tr:last-child { border-bottom: none; }
.lp-table td { padding: 11px 0; vertical-align: top; }
.lp-table td:first-child {
  width: 180px;
  font-size: .72rem; font-weight: 700;
  color: rgba(240,238,232,.32);
  text-transform: uppercase; letter-spacing: .6px;
  padding-right: 20px; padding-top: 13px;
}
.lp-table td:last-child {
  font-size: .9rem; color: var(--muted2); line-height: 1.7;
}
.lp-table td:last-child strong { color: var(--text); font-weight: 600; }
.lp-table td:last-child a { color: var(--gold); text-decoration: none; }
.lp-table td:last-child a:hover { text-decoration: underline; }

/* ── TEXT ───────────────────────────────────────────────────── */
.lp-text {
  font-size: .9rem; color: var(--muted2);
  line-height: 1.9; margin-bottom: 14px;
}
.lp-text:last-child { margin-bottom: 0; }
.lp-text strong { color: var(--text); font-weight: 600; }
.lp-text a { color: var(--gold); text-decoration: none; }
.lp-text a:hover { text-decoration: underline; }

/* ── NOTE ─────────────────────────────────────────────────── */
.lp-note {
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(0, 209, 116, 0.05);
  border-radius: 0 5px 5px 0;
  margin: 20px 0;
}
.lp-note p {
  font-size: .85rem; color: var(--muted2);
  line-height: 1.75; margin: 0;
}
.lp-note p strong { color: var(--gold); font-weight: 600; }
.lp-note a { color: var(--gold); text-decoration: none; }

/* ── GRID ───────────────────────────────────────────────────── */
.lp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 16px; margin-top: 24px;
}
.lp-grid-item {
  padding: 18px 20px;
  background: rgba(12, 16, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
}
.lp-grid-icon { font-size: 1.2rem; margin-bottom: 10px; display: block; color: var(--gold); }
.lp-grid-item h4 {
  font-size: .88rem; font-weight: 700;
  color: #FFFFFF; margin-bottom: 6px;
}
.lp-grid-item p {
  font-size: .8rem; color: var(--muted);
  line-height: 1.65; margin: 0;
}

/* ── PILLS ──────────────────────────────────────────────────── */
.lp-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 5px;
  font-size: .68rem; font-weight: 700;
}
.lp-pill-green { background: rgba(0, 209, 116, 0.12); color: #00D174; border: 1px solid rgba(0, 209, 116, 0.3); }
.lp-pill-gold  { background: rgba(0, 209, 116, 0.08); color: var(--gold); border: 1px solid rgba(0, 209, 116, 0.25); }

/* ── CTA ────────────────────────────────────────────────────── */
.lp-cta {
  padding: 60px 0; text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
.lp-cta h3 {
  font-size: 1.5rem; font-weight: 800;
  color: #FFFFFF; letter-spacing: -.5px;
  margin-bottom: 10px;
}
.lp-cta p {
  font-size: .9rem; color: var(--muted);
  margin-bottom: 28px;
}
.lp-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 5px;
  background: var(--gold); color: #04120B;
  font-weight: 800; font-size: .85rem;
  text-decoration: none;
  transition: var(--t);
}
.lp-cta-btn:hover {
  background: var(--gold-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--gold-glow);
}

/* ── CONTACT SPECIFIC ───────────────────────────────────────── */
.ct-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
}
.ct-channels { display: flex; flex-direction: column; gap: 4px; }
.ct-ch {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.ct-ch:first-child { border-top: 1px solid var(--border); }
.ct-ch-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0, 209, 116, 0.6);
}
.ct-ch-label {
  font-size: .68rem; font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 3px;
}
.ct-ch-desc {
  font-size: .75rem; color: var(--muted);
  margin-top: 1px;
}
/* Email unique affiché une seule fois */
.ct-email-unified {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: 5px;
  border: 1px solid rgba(0, 209, 116, 0.3);
  color: var(--gold);
  font-size: .9rem; font-weight: 700;
  text-decoration: none;
  transition: var(--t);
  letter-spacing: -.2px;
}
.ct-email-unified:hover {
  background: rgba(0, 209, 116, 0.08);
  border-color: rgba(0, 209, 116, 0.6);
}
.ct-note {
  font-size: .78rem; color: rgba(255, 255, 255, 0.35);
  line-height: 1.7; margin-top: 20px;
}
.ct-note strong { color: rgba(255, 255, 255, 0.6); }

/* ── FORM PREMIUM ──────────────────────────────────────── */
.ct-form-title {
  font-size: 1.1rem; font-weight: 800;
  color: var(--text); margin-bottom: 6px;
  letter-spacing: -.3px;
}
.ct-form-sub {
  font-size: .78rem; color: var(--muted);
  margin-bottom: 32px; line-height: 1.6;
}

/* Wrapper champ */
.ct-field-wrap {
  position: relative;
  margin-bottom: 28px;
}
.ct-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Input / Select / Textarea communs */
.ct-inp {
  width: 100%;
  background: rgba(255,255,255,.03);
  border: none;
  border-radius: 10px 10px 0 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
  padding: 22px 14px 8px;
  font-size: .92rem;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: background .2s, border-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.ct-inp:focus {
  background: rgba(255,255,255,.055);
  border-bottom-color: transparent;
}
.ct-inp::placeholder { color: transparent; }

/* Floating label */
.ct-fl {
  position: absolute;
  top: 15px; left: 14px;
  font-size: .88rem;
  font-weight: 500;
  color: rgba(240,238,232,.32);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .22s cubic-bezier(.25,.46,.45,.94),
              color .22s;
}
/* État flottant : focus OU valeur saisie */
.ct-inp:focus ~ .ct-fl,
.ct-inp:not(:placeholder-shown) ~ .ct-fl,
.ct-select-wrap.ct-has-val .ct-fl-sel {
  transform: translateY(-9px) scale(.72);
  color: var(--gold);
}

/* Barre animée gold */
.ct-bar {
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-l));
  border-radius: 0 0 2px 2px;
  transition: width .3s cubic-bezier(.25,.46,.45,.94);
}
.ct-inp:focus ~ .ct-bar { width: 100%; }
.ct-inp:focus ~ .ct-fl { color: var(--gold); }

/* Select custom — remplacé par dropdown JS */
.ct-sel { display: none; } /* caché, remplacé par ct-drop */
.ct-select-wrap { display: none; }

/* ── DROPDOWN CUSTOM ──────────────────────────────────── */
.ct-drop {
  position: relative;
  margin-bottom: 28px;
}
.ct-drop-trigger {
  width: 100%;
  background: rgba(255,255,255,.03);
  border: none;
  border-radius: 10px 10px 0 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
  padding: 22px 40px 8px 14px;
  font-size: .92rem;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: background .2s;
  display: flex;
  align-items: flex-end;
  min-height: 54px;
}
.ct-drop-trigger:focus,
.ct-drop.open .ct-drop-trigger {
  background: rgba(255,255,255,.055);
}
/* Label flottant du dropdown */
.ct-drop-label {
  position: absolute;
  top: 15px; left: 14px;
  font-size: .88rem; font-weight: 500;
  color: rgba(240,238,232,.32);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .22s cubic-bezier(.25,.46,.45,.94), color .22s;
}
.ct-drop.open .ct-drop-label,
.ct-drop.ct-selected .ct-drop-label {
  transform: translateY(-9px) scale(.72);
  color: var(--gold);
}
/* Valeur sélectionnée */
.ct-drop-value {
  font-size: .92rem;
  color: var(--text);
  font-weight: 500;
}
/* Flèche */
.ct-drop-arrow {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform .25s cubic-bezier(.25,.46,.45,.94);
  flex-shrink: 0;
}
.ct-drop.open .ct-drop-arrow {
  transform: translateY(-50%) rotate(180deg);
}
/* Barre gold */
.ct-drop .ct-bar {
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-l));
  border-radius: 0 0 2px 2px;
  transition: width .3s cubic-bezier(.25,.46,.45,.94);
}
/* Panel dropdown */
.ct-drop-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: rgba(14,14,14,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
  z-index: 100;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .2s cubic-bezier(.25,.46,.45,.94),
              transform .2s cubic-bezier(.25,.46,.45,.94);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.ct-drop.open .ct-drop-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
/* Options */
.ct-drop-opt {
  padding: 13px 16px;
  font-size: .88rem;
  color: rgba(240,238,232,.55);
  cursor: pointer;
  transition: color .15s, background .15s, padding-left .15s;
  border-bottom: 1px solid rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.ct-drop-opt:last-child { border-bottom: none; }
.ct-drop-opt::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .15s, transform .15s;
  transform: scale(0);
}
.ct-drop-opt:hover {
  color: var(--text);
  background: rgba(255,255,255,.04);
  padding-left: 20px;
}
.ct-drop-opt:hover::before {
  opacity: 1;
  transform: scale(1);
}
.ct-drop-opt.active {
  color: var(--gold);
  font-weight: 600;
}
.ct-drop-opt.active::before {
  opacity: 1;
  transform: scale(1);
}
/* Shake si validation échoue */
.ct-drop.ct-drop-error .ct-drop-trigger {
  animation: ct-shake .4s cubic-bezier(.36,.07,.19,.97);
  border-bottom-color: #f87171;
}
.ct-drop.ct-drop-error .ct-bar {
  width: 100% !important;
  background: #f87171;
}
@keyframes ct-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

/* Textarea */
.ct-ta {
  resize: none;
  overflow: hidden;
  min-height: 160px;
  line-height: 1.7;
  padding-top: 24px;
}

/* Bouton submit */
.ct-submit {
  position: relative;
  overflow: hidden;
  width: 100%; padding: 15px;
  border-radius: 5px;
  background: var(--gold);
  color: #04120B;
  font-weight: 800; font-size: .9rem;
  font-family: inherit; border: none;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ct-submit:hover {
  background: var(--gold-l);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 209, 116, 0.3);
}
.ct-submit:active { transform: translateY(0); }
.ct-submit:disabled {
  opacity: .45; cursor: not-allowed;
  transform: none; box-shadow: none;
}
/* Shimmer effect */
.ct-btn-shimmer {
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transform: skewX(-20deg);
  transition: left .0s;
}
.ct-submit:not(:disabled):hover .ct-btn-shimmer {
  left: 150%;
  transition: left .6s ease;
}

/* Feedback cards */
.ct-feedback {
  display: none;
  align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  animation: ct-slide-down .3s cubic-bezier(.25,.46,.45,.94);
}
.ct-feedback.show { display: flex; }
@keyframes ct-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ct-feedback-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 800;
  flex-shrink: 0;
}
.ct-feedback-title {
  font-size: .88rem; font-weight: 700;
  margin-bottom: 2px;
}
.ct-feedback-sub {
  font-size: .76rem; opacity: .75;
  line-height: 1.4;
}
.ct-feedback-sub a { text-decoration: underline; }
.ct-feedback-success {
  background: rgba(74,222,128,.06);
  border: 1px solid rgba(74,222,128,.15);
  color: #4ade80;
}
.ct-feedback-success .ct-feedback-icon {
  background: rgba(74,222,128,.12);
}
.ct-feedback-error {
  background: rgba(248,113,113,.06);
  border: 1px solid rgba(248,113,113,.15);
  color: #f87171;
}
.ct-feedback-error .ct-feedback-icon {
  background: rgba(248,113,113,.12);
}
.ct-feedback-error a { color: #f87171; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 720px) {
  .ct-layout { grid-template-columns: 1fr; gap: 40px; }
  .ct-row { grid-template-columns: 1fr; gap: 0; }
  .lp-toc-list { grid-template-columns: 1fr; }
  .lp-grid { grid-template-columns: 1fr 1fr; }
  .lp-table td:first-child { width: 130px; font-size: .68rem; }
}
@media (max-width: 480px) {
  .lp-hero h1 { letter-spacing: -1.5px; }
  .lp-grid { grid-template-columns: 1fr; }
}
