/* =========================================
 *  1. VARIABLES & THEME (Tokens)
 *  ========================================= */
:root {
  --accent: #ff6233;

  /* Light Theme */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --text: #111319;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow-1: 0 10px 26px rgba(0,0,0,.06);

  --radius: 16px;
}

/* Dark Theme */
:root[data-theme="dark"] {
  --bg: #0f131b;
  --surface: #0b0e14;
  --surface-2: #0f141e;
  --text: #e8edf5;
  --muted: #9aa4b2;
  --border: #1c2230;
  --shadow-1: 0 16px 36px rgba(0,0,0,.45);
}

/* =========================================
 *  2. BASE & LAYOUT
 *  ========================================= */

body.static-page {
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--surface-2);
  color: var(--text);
  margin: 0;
  overflow-x: hidden;
}

/* Conteneur layout */
.page-wrapper {
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Carte centrale */
.static-sitemap .page {
  max-width: 900px;
  margin: clamp(2.5rem, 6vw, 4rem) auto;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);

  /* Sécurité mobile */
  width: calc(100% - 2rem);
  box-sizing: border-box;
}

/* =========================================
 *  3. CONTENU SITEMAP
 *  ========================================= */

/* Hero */
.static-sitemap .hero {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.static-sitemap .hero h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--text);
}

/* Liste du plan du site */
.static-sitemap .content.sitemap {
  display: grid;
  gap: 2rem;
}

.static-sitemap .content.sitemap > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Section principale (li dynamiques) */
.static-sitemap .content.sitemap > ul:first-of-type {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Grille responsive */
  gap: 0.8rem;
}

/* Pages légales */
.static-sitemap h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 1rem;
  color: var(--text);
}

.static-sitemap .content.sitemap > ul:last-of-type {
  display: grid;
  gap: 0.5rem;
}

/* Liens */
.static-sitemap a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.static-sitemap a::before {
  content: "•";
  font-size: 1.2rem;
  line-height: 1;
  color: var(--muted);
}

.static-sitemap a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--text);
}
