/* ════════════════════════════════════════════════════════════════
   Styles partagés pour les pages légales KUPBAP
   (mentions-legales, politique-confidentialite, cgu)
   ════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;
  --blue: #12448E;
  --red: #FF3131;
  --cream: #F8F4E3;
  --gold: #E8A317;
  --dark: #1A1A2E;
  --gray: #9A9A9A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}

/* ── NAV (aligné sur contact/menu) ── */
#navbar {
  position: fixed; top: 1.8rem; left: 0; right: 0; z-index: 100;
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0);
  backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  border: 1px solid rgba(255,255,255,0);
  border-radius: 20px;
  padding: 0.35rem 1.75rem;
  transition: background 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
}
#navbar.scrolled .nav-inner {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border-color: rgba(255,255,255,0.25);
}
.nav-link {
  color: white; font-weight: 600; font-size: 0.78rem; text-decoration: none;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: opacity 0.2s; padding: 0.25rem 0; opacity: 0.85;
}
.nav-link:hover { opacity: 1; }
#navbar-logo img {
  height: clamp(18px, 2.6vw, 26px); width: auto; display: block;
  transition: filter 0.4s ease;
}
.btn-nav {
  background: var(--red); color: white;
  padding: 0.6rem 1.3rem; border-radius: 8px;
  font-weight: 600; font-size: 0.78rem; letter-spacing: 0.05em;
  text-decoration: none; text-transform: uppercase;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(255,49,49,0.35);
}
.btn-nav:hover { background: #d42020; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,49,49,0.45); }
.btn-nav-outline {
  color: white; padding: 0.6rem 1.3rem; border-radius: 8px;
  font-weight: 600; font-size: 0.78rem; letter-spacing: 0.05em;
  text-decoration: none; text-transform: uppercase;
  border: 1.5px solid rgba(255,255,255,0.55);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-nav-outline:hover { background: rgba(255,255,255,0.12); border-color: white; transform: translateY(-1px); }

/* Mobile menu */
#mobileMenu {
  display: none; position: fixed; inset: 0;
  background: var(--dark); z-index: 200;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 1.25rem;
}
#mobileMenu.open { display: flex; }
.mobile-link {
  font-family: 'Intro Rust', sans-serif;
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  color: white; text-decoration: none;
  transition: color 0.2s; letter-spacing: 0.05em;
}
.mobile-link:hover { color: var(--red); }
.hamburger-btn { background: none; border: none; cursor: pointer; padding: 0.25rem; }
.hamburger-btn svg { transition: stroke 0.3s ease; }
@media (max-width: 768px) { .desktop-nav { display: none !important; } }
@media (min-width: 769px) { .hamburger-btn { display: none; } }

/* ── PAGE HERO ── */
.page-hero {
  background: var(--blue);
  padding: clamp(7rem, 16vh, 11rem) clamp(1.25rem, 5vw, 2rem) 0;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 15% 60%, rgba(255,49,49,0.18) 0%, transparent 55%),
              radial-gradient(ellipse at 85% 20%, rgba(232,163,23,0.10) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: 900px; margin: 0 auto;
  position: relative; z-index: 1;
  padding-bottom: clamp(3rem, 6vh, 5rem);
}
.page-eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.page-title {
  font-family: 'Intro Rust', sans-serif;
  color: white;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 0.85rem;
}
.page-title .accent { color: var(--red); }
.page-sub {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.wave-wrap {
  line-height: 0; overflow: hidden;
  margin-bottom: -4px;
  position: relative;
}
.wave { display: block; width: 100%; line-height: 0; }

/* ── LEGAL CONTENT ── */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 3.5rem) clamp(1.25rem, 5vw, 2rem) clamp(4rem, 10vh, 7rem);
}
.legal-content section {
  margin-bottom: clamp(2rem, 4vh, 3rem);
}
.legal-content h2 {
  font-family: 'Intro Rust', sans-serif;
  color: var(--blue);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}
.legal-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: var(--dark);
  font-size: 1.02rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.legal-content p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #333;
  margin-bottom: 1rem;
}
.legal-content p strong { color: var(--dark); font-weight: 600; }
.legal-content a {
  color: var(--blue);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.legal-content a:hover { color: var(--red); }
.legal-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}
.legal-content ul.legal-info li {
  font-size: 0.95rem;
  line-height: 1.7;
  padding-left: 1.25rem;
  position: relative;
  color: #333;
}
.legal-content ul.legal-info li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
.legal-content ul.legal-info li strong { color: var(--dark); font-weight: 600; }

.legal-content ul.legal-bullet {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.legal-content ul.legal-bullet li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #333;
  padding-left: 0.3rem;
  margin-bottom: 0.35rem;
  position: relative;
  list-style: disc;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}
.legal-content table th,
.legal-content table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(18,68,142,0.12);
  vertical-align: top;
}
.legal-content table th {
  background: rgba(18,68,142,0.06);
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.02em;
}
.legal-content table td { color: #333; line-height: 1.55; }

/* ── FOOTER (aligné site) ── */
footer {
  background: var(--dark);
  color: white;
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1.25rem, 5vw, 2rem) clamp(2rem, 5vh, 3rem);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1rem;
}
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 1.75rem; align-items: center;
}
.footer-link {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: white; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1rem;
}
.footer-legal .footer-link { font-size: 0.76rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 1rem;
}
.footer-bottom .copyright {
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
}
.footer-bottom .tagline {
  color: rgba(255,255,255,0.12);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-family: 'Intro Rust', sans-serif;
}

/* ── Accessibilité ── */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
