/* ============================================================
   LEGAL.PAGES — essential styles matching index.html
   ============================================================ */

/* ── CSS VARIABLES (from style.css) ───────────────────────────────────── */
:root {
  /* Palette principale */
  --green-dark:   #0d2117;
  --green:        #1a6b47;
  --green-mid:    #2d9466;
  --green-light:  #e8f5ee;
  --green-hover:  #155a3a;

  /* Accent */
  --accent:       #f0a500;
  --accent-hover: #d4920a;
  --accent-light: rgba(240, 165, 0, 0.15);

  /* Neutres */
  --white:        #ffffff;
  --bg:           #f7faf8;
  --text:         #1a2e22;
  --text-muted:   #5a7a65;
  --border:       #d4e6db;
  --border-focus: var(--green);

  /* Sémantique */
  --error:        #dc2626;
  --error-light:  #fef2f2;
  --success:      #16a34a;
  --success-light:#f0fdf4;

  /* Rayon */
  --rad-sm:  8px;
  --rad:     12px;
  --rad-lg:  20px;
  --rad-xl:  28px;

  /* Typo */
  --font-display: 'Inter', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Ombres */
  --shadow-sm:  0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.07);

  /* Transitions */
  --t-fast:   .15s ease;
  --t-normal: .25s ease;
  --t-spring: .3s cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── TYPOGRAPHY & BASIC ELEMENTS ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -.03em;
  margin-bottom: .5rem;
  color: var(--green-dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 700;
}

h4 {
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  font-weight: 600;
}

h5, h6 {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

ul, ol {
  margin-bottom: 1rem;
  margin-left: 2rem;
}
li {
  margin-bottom: .25rem;
  line-height: inherit;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── TABLES ──────────────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}
th, td {
  border: 1px solid var(--border);
  padding: .75rem 1rem;
  text-align: left;
}
th {
  background-color: var(--bg);
  color: var(--text);
}
td {
  color: var(--text);
}

/* ── HIGHLIGHT BOX ───────────────────────────────────────────────── */
.highlight-box {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  padding: 1rem;
  margin: 2rem 0;
}

/* ── UTILITY CONTAINERS ──────────────────────────────────────────────── */
.section-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── NAVBAR (matches index.html exactly) ─────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 60px;
}

.nav-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--green);
  text-decoration: none;
  letter-spacing: -.02em;
}

.logo-accent { color: var(--accent); }

.nav-tel {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
  transition: color var(--t-fast);
}
.nav-tel:hover { color: var(--green-mid); }

/* ── FOOTER (matches index.html exactly) ─────────────────────────────── */
.footer {
  background: #060f0a;
  color: rgba(255,255,255,.35);
  font-size: .78rem;
  padding: 2rem 1.25rem;
  text-align: center;
}

.footer-inner { max-width: 600px; margin: 0 auto; }

.footer a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer a:hover { color: rgba(255,255,255,.8); }

/* ── ACCESSIBILITY ──────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ── RESPONSIVE ADJUSTMENTS (for kept elements) ─────────────────────── */
@media (max-width: 480px) {
  body { font-size: 14px; }
  
  h1 { font-size: clamp(1.8rem, 6vw, 2.2rem); }
  h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  h3 { font-size: clamp(1.2rem, 4vw, 1.6rem); }
  
  .navbar { height: 55px; }
  .nav-tel { font-size: .8rem; }
  
  .footer { padding: 1.5rem 1rem; font-size: .75rem; }
}

@media (min-width: 768px) {
  .section-container { max-width: 800px; }
}