/* ══════════════════════════════════════════════════════════════
   legal.css — feuille de style partagée pour les pages légales
   (mentions-legales.html, politique-confidentialite.html,
   cgv-services.html, cgv-boutique.html)
   Reprend les variables et composants (nav / footer / mobile bar)
   de repairandco.html pour garder un design cohérent.
   ══════════════════════════════════════════════════════════════ */

:root {
  --red: #F86F01;
  --red-dk: #c85700;
  --red-lt: #FF8C33;
  --ink: #0a0a0a;
  --dark: #111111;
  --dark2: #1a1a1a;
  --dark3: #222222;
  --dark4: #2d2d2d;
  --gray: #444444;
  --muted: #888888;
  --light: #cccccc;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);
  --white: #ffffff;
  --offwhite: #f5f5f0;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── NAV (repris de repairandco.html) ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: 1400px; margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-img {
  height: 65px; width: auto; display: block; object-fit: contain;
  filter: brightness(1.05); transition: opacity 0.2s; align-self: center;
}
.nav-logo:hover .nav-logo-img { opacity: 0.88; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  display: inline-block; padding: 8px 14px;
  font-size: 13px; font-weight: 600; color: var(--light);
  text-decoration: none; letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 6px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-cta { background: var(--red); color: white !important; padding: 10px 20px !important; border-radius: 6px !important; }
.nav-cta:hover { background: var(--red-dk) !important; }
.nav-phone {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: rgba(248,111,1,0.15); border-radius: 8px;
  color: var(--white); text-decoration: none;
}
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  width: 34px; height: 34px; background: none; border: none; cursor: pointer;
  align-items: center; justify-content: center; padding: 4px;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--white); transition: all 0.3s; }
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 998;
  background: var(--ink); padding: 90px 5% 40px; flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); font-weight: 700; font-size: 28px;
  color: var(--white); text-decoration: none; padding: 12px 0;
  border-bottom: 1px solid var(--border); letter-spacing: 0.02em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--red); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-phone { display: flex; }
  .nav-burger { display: flex; }
}
@media (max-width: 480px) { .nav-logo-img { height: 48px; } }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 16px 28px; border-radius: 6px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  letter-spacing: 0.03em; text-transform: uppercase;
  transition: all 0.25s; cursor: pointer; border: none; font-family: var(--font-body);
  white-space: nowrap; min-height: 48px;
}
.btn-primary { background: var(--red); color: white; box-shadow: 0 0 30px rgba(248,111,1,0.35); }
.btn-primary:hover { background: var(--red-lt); transform: translateY(-2px); box-shadow: 0 0 40px rgba(248,111,1,0.5); }
.btn-outline { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); transform: translateY(-2px); }

/* ─── LEGAL PAGE LAYOUT ─── */
.legal-header {
  padding: 150px 5% 60px;
  background: var(--ink);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.legal-header::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 0%, rgba(248,111,1,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.legal-header-inner { position: relative; max-width: 900px; margin: 0 auto; }
.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none;
  margin-bottom: 20px; transition: color 0.2s;
}
.legal-back:hover { color: var(--red-lt); }
.legal-header h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.legal-updated { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }

.legal-wrap { max-width: 900px; margin: 0 auto; padding: 64px 5% 120px; }

.legal-notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(248,111,1,0.08); border: 1px solid rgba(248,111,1,0.3);
  border-radius: 8px; padding: 18px 20px; margin-bottom: 48px;
  font-size: 14px; color: var(--light); line-height: 1.7;
}
.legal-notice svg { color: var(--red-lt); flex-shrink: 0; margin-top: 2px; }

.legal-toc {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: 10px; padding: 28px 32px; margin-bottom: 56px;
}
.legal-toc h2 {
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 16px;
}
.legal-toc ol { list-style: none; display: grid; gap: 8px; }
.legal-toc a {
  font-size: 14px; color: var(--light); text-decoration: none; transition: color 0.2s;
}
.legal-toc a:hover { color: var(--red-lt); }

.legal-content section { padding: 0; margin-bottom: 44px; scroll-margin-top: 90px; }
.legal-content h2 {
  font-family: var(--font-display); font-weight: 800; font-size: 24px;
  letter-spacing: -0.01em; margin-bottom: 16px;
  display: flex; align-items: baseline; gap: 10px;
}
.legal-content h2 .num { color: var(--red); font-size: 18px; }
.legal-content p { color: var(--light); font-size: 15px; line-height: 1.85; margin-bottom: 14px; }
.legal-content p strong, .legal-content li strong { color: var(--white); }
.legal-content ul { margin: 0 0 14px 20px; }
.legal-content li { color: var(--light); font-size: 15px; line-height: 1.85; margin-bottom: 8px; }
.legal-content a { color: var(--red-lt); }
.legal-content .legal-block {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: 8px; padding: 20px 24px; margin: 18px 0;
}
.legal-content .legal-block p:last-child { margin-bottom: 0; }

.legal-todo {
  background: rgba(248,111,1,0.15); color: var(--red-lt);
  padding: 1px 8px; border-radius: 4px; font-weight: 700; font-size: 0.92em;
  white-space: nowrap;
}

/* ─── FOOTER (repris de repairandco.html) ─── */
footer { background: var(--ink); border-top: 1px solid var(--border); padding: 60px 5% 30px; }
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo-text { font-size: 26px; margin-bottom: 6px; display: block; }
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 12px 0 20px; }
.footer-call {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: white; text-decoration: none;
  padding: 12px 20px; border-radius: 8px;
  font-weight: 700; font-size: 16px; transition: background 0.2s;
}
.footer-call:hover { background: var(--red-lt); }
.footer-col h4 {
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--white);
  margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--red);
  display: inline-block;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--red); }
.footer-hours-item { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.footer-hours-item .day { color: var(--muted); }
.footer-hours-item .hours { color: var(--light); font-weight: 600; }
.footer-hours-item.today .day { color: var(--red); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
}
.footer-seo-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-seo-links a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-seo-links a:hover { color: var(--red); }
.footer-seo-links a.current { color: var(--red-lt); }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .legal-header { padding: 130px 4% 44px; }
  .legal-wrap { padding: 44px 4% 100px; }
  .legal-toc { padding: 22px 20px; }
  footer { padding-bottom: 90px; }
}

/* ─── MOBILE STICKY CTA BAR (repris de repairandco.html) ─── */
.mobile-cta-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 990;
  background: rgba(10,10,10,0.97); border-top: 1px solid var(--border2);
  padding: 10px 14px; gap: 10px; box-shadow: 0 -4px 24px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}
@media (max-width: 768px) { .mobile-cta-bar { display: flex; } }
.mobile-cta-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 8px; border-radius: 8px; text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  letter-spacing: 0.04em; text-transform: uppercase; transition: all 0.2s;
}
.mobile-cta-call { background: var(--red); color: white; box-shadow: 0 0 20px rgba(248,111,1,0.4); }
.mobile-cta-call:hover { background: var(--red-lt); }
.mobile-cta-devis { background: rgba(255,255,255,0.06); color: var(--white); border: 1.5px solid var(--border2); }
.mobile-cta-devis:hover { background: rgba(255,255,255,0.1); }
