:root {
  --bg: #F4F1EC;
  --surface: #FFFFFF;
  --ink: #1A1714;
  --ink-soft: #5C5750;
  --ink-muted: #9E9890;
  --accent: #1e40af;
  --accent2: #2563eb;
  --accent-light: #dbeafe;
  --amber: #E9C46A;
  --line: #DDD9D1;
  --radius: 16px;
  --red: #C62828;
  --red-light: #FFEBEE;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}

h1, h2, h3 { font-family: 'Outfit', sans-serif; }

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

nav {
  background: rgba(244, 241, 236, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 0 5vw;
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--accent);
}

.logo span { color: var(--ink); }

.back-btn {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.back-btn:hover { color: var(--accent); text-decoration: none; }

.page-wrap { max-width: 800px; margin: 4rem auto; padding: 0 5vw 6rem; }

.page-header { margin-bottom: 3rem; }

.page-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 0.8rem; }

.page-date { font-size: 0.83rem; color: var(--ink-muted); margin-bottom: 3rem; }

.content-block {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

.content-block h2 { font-size: 1.15rem; margin-bottom: 0.8rem; color: var(--ink); }

.content-block h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--ink); margin-top: 1rem; }

.content-block p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.8rem; }

.content-block ul { list-style: none; margin-bottom: 0.8rem; }

.content-block ul li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
}

.content-block ul li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }

.cookie-table { width: 100%; border-collapse: collapse; margin-top: 0.8rem; }

.cookie-table th {
  background: var(--ink);
  color: #fff;
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.82rem;
  font-family: 'Outfit', sans-serif;
}

.cookie-table td { padding: 0.7rem 1rem; font-size: 0.85rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); }

.cookie-table tbody tr:last-child td { border-bottom: none; }

.badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 50px; font-size: 0.72rem; font-weight: 700; }

.badge-essential { background: var(--accent-light); color: var(--accent); }

.badge-analytics { background: #FFF3E0; color: #E65100; }

.badge-affiliate { background: #F3E5F5; color: #6A1B9A; }

.cookie-pref {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.8rem;
  transition: background 0.2s;
}

.cookie-pref:hover { background: var(--accent2); }

.rights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.8rem; }

.right-box {
  background: var(--bg);
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid var(--line);
}

.right-box h3 { font-size: 0.88rem; margin-bottom: 0.3rem; font-family: 'Outfit', sans-serif; color: var(--ink); }

.right-box p { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 0; }

.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 5rem 5vw 4rem;
  text-align: center;
}

.hero-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.8rem;
}

.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 0.8rem; color: #fff; }

.page-hero p { font-size: 1rem; color: rgba(255, 255, 255, 0.65); max-width: 580px; margin: 0 auto; font-weight: 300; }

.emergency {
  background: var(--red-light);
  border-top: 4px solid var(--red);
  padding: 2rem 5vw;
  text-align: center;
}

.emergency-inner { max-width: 700px; margin: 0 auto; }

.emergency h2 { color: var(--red); font-size: 1.1rem; margin-bottom: 0.6rem; }

.emergency p { font-size: 0.92rem; color: #5C1C1C; margin-bottom: 0.8rem; }

.emergency .hotline {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--red);
  display: block;
  margin-bottom: 0.3rem;
}

.emergency .hotline-note { font-size: 0.78rem; color: #7B3333; }

.jeu-responsable .page-wrap { max-width: 900px; margin: 3rem auto; padding: 0 5vw 6rem; }

.jeu-responsable .content-block ul li::before { content: '✓'; color: var(--accent); font-weight: 700; }

.jeu-responsable .content-block h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 0.6rem; }

.quiz-block {
  background: var(--surface);
  border-radius: var(--radius);
  border: 2px solid var(--accent-light);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

.quiz-block h2 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--accent); }

.quiz-q { margin-bottom: 0.8rem; }

.quiz-q label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.15s;
}

.quiz-q label:hover { background: var(--bg); }

.quiz-q input { margin-top: 0.15rem; accent-color: var(--accent); flex-shrink: 0; width: 16px; height: 16px; }

.quiz-result {
  background: var(--bg);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  display: none;
}

.quiz-result.show { display: block; }

.quiz-result.ok { border-left: 4px solid var(--accent); color: var(--accent); }

.quiz-result.warn { border-left: 4px solid var(--amber); color: #7A6200; }

.quiz-result.alert { border-left: 4px solid var(--red); color: var(--red); }

.btn-quiz {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.2s;
}

.btn-quiz:hover { background: var(--accent2); }

.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.tool-box {
  background: var(--bg);
  border-radius: 12px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  text-align: center;
}

.tool-icon { font-size: 2rem; margin-bottom: 0.7rem; }

.tool-box h3 { font-size: 0.92rem; margin-bottom: 0.4rem; }

.tool-box p { font-size: 0.8rem; color: var(--ink-muted); }

.orgs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.org-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.org-icon { font-size: 1.8rem; flex-shrink: 0; }

.org-card h3 { font-size: 0.92rem; margin-bottom: 0.3rem; }

.org-card p { font-size: 0.82rem; color: var(--ink-soft); }

.org-card a { font-weight: 600; }

footer {
  background: #110F0D;
  color: rgba(255,255,255,.85);
  padding: 4rem 5vw 2.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-disclaimer {
  text-align: center;
  font-size: .88rem;
  line-height: 1.6;
  color: rgba(255,255,255,.7);
  margin: 0 0 2rem;
  font-family: 'DM Sans', sans-serif;
}
.footer-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2rem;
  margin-bottom: 3rem;
}
.footer-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s;
}
.footer-logo-link:hover { opacity: .85; }
.footer-logo-link img {
  max-height: 48px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}
.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  margin-bottom: 2.5rem;
}
.footer-col-left p,
.footer-col-right p {
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  line-height: 1.6;
  color: rgba(255,255,255,.85);
  margin-bottom: 1rem;
}
.footer-intro {
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 1.25rem;
}
.footer-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin: 1.5rem 0 .75rem;
}
.footer-heading:first-of-type { margin-top: 0; }
.footer-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-contacts li {
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  line-height: 1.6;
  color: rgba(255,255,255,.85);
  margin-bottom: 1rem;
}
.footer-contacts li strong { color: #fff; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.12); margin-bottom: 1.5rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
}
.footer-age {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent2);
}
.footer-links-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
}
.footer-links-bottom a {
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .2s;
}
.footer-links-bottom a:hover { color: #fff; }

@media (max-width: 600px) {
  .rights-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .orgs-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .footer-logos { gap: 1rem; }
  .footer-bottom { flex-direction: column; }
}
