/* ==========================================================
   GEOFILLING – Politique de confidentialité
   ========================================================== */

:root {
  --blue: #1d4fa0;
  --blue-dark: #143a78;
  --blue-light: #e8eef8;
  --red: #d7263d;
  --text: #1f2933;
  --muted: #5b6776;
  --border: #dde3ec;
  --bg: #f6f8fb;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(20, 58, 120, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo img { display: block; height: 40px; width: auto; }
.back-link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
}
.back-link:hover { color: var(--blue); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: 50%;
  width: 240px;
  height: 240px;
  transform: translateY(-50%) rotate(45deg);
  border: 28px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
}
.hero-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}
.hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  font-weight: 700;
}
.hero-date {
  display: inline-block;
  margin: 18px 0 0;
  padding: 4px 14px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 72px;
}

/* ---------- Sommaire ---------- */
.toc {
  position: sticky;
  top: 96px;
  align-self: start;
}
.toc-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border);
}
.toc li { counter-increment: toc; }
.toc a {
  display: block;
  padding: 6px 0 6px 16px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.toc a::before { content: counter(toc) ". "; font-weight: 600; }
.toc a:hover { color: var(--blue); border-left-color: var(--blue); }

/* ---------- Contenu ---------- */
.content { min-width: 0; }

.intro {
  background: var(--white);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.intro p:first-child { margin-top: 0; }
.intro p:last-child { margin-bottom: 0; }

.section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  scroll-margin-top: 96px;
}
.section h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.3;
  color: var(--blue-dark);
}
.num {
  position: relative;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  z-index: 0;
}
.num::before {                 /* losange rappelant le logo */
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--blue);
  border-radius: 5px;
  transform: rotate(45deg);
  z-index: -1;
}
.section h3 {
  margin: 28px 0 8px;
  font-size: 17px;
  color: var(--blue-dark);
}
.section p { margin: 0 0 14px; }
.section > :last-child { margin-bottom: 0; }

.section ul,
.section ol { margin: 0 0 16px; padding-left: 22px; }
.section li { margin-bottom: 6px; }
.section ul li::marker { color: var(--red); }

ol.alpha { list-style: lower-alpha; }
ol.alpha li::marker { font-weight: 600; color: var(--blue); }

/* Étiquettes (données collectées) */
ul.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}
ul.tags li {
  margin: 0;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-dark);
  background: var(--blue-light);
  border-radius: 999px;
}

/* Cartes durée de conservation */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.card {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.card p { margin: 0; }
.card-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.2;
}
.card-label {
  margin: 4px 0 8px !important;
  font-weight: 600;
}
.card-text { font-size: 14px; color: var(--muted); }

/* Encadré contact */
.callout {
  margin: 8px 0 18px;
  padding: 20px 24px;
  background: var(--blue-light);
  border-radius: var(--radius);
}
.callout p { margin: 0 0 6px; }
.callout-mail {
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

/* Liens CNIL */
ul.links { list-style: none; padding: 0; }
ul.links li {
  position: relative;
  padding-left: 22px;
}
ul.links li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* ---------- Consentement ---------- */
.consent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding: 20px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
}
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.slider {
  position: relative;
  width: 40px;
  height: 22px;
  background: #c3ccd8;
  border-radius: 999px;
  transition: background .2s;
}
.slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 50%;
  transition: transform .2s;
}
.toggle input:checked + .slider { background: var(--blue); }
.toggle input:checked + .slider::after { transform: translateX(18px); }
.toggle input:focus-visible + .slider { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.consent .btn { margin-left: auto; }

.btn-outline {
  color: var(--blue);
  background: transparent;
}
.btn-outline:hover { background: var(--blue); color: var(--white); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 32px 0;
  font-size: 14px;
  text-align: center;
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--white); }
.footer-name {
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 24px; }
  .toc {
    position: static;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero { padding: 44px 0 40px; }
  .section, .intro { padding: 22px 20px; }
  .section h2 { font-size: 19px; }
  .back-link { display: none; }
  .consent .btn { margin-left: 0; width: 100%; }
}

/* ---------- Impression ---------- */
@media print {
  .site-header, .toc, .consent, .back-link { display: none; }
  body { background: #fff; }
  .hero { background: none; color: var(--text); padding: 0 0 16px; }
  .hero::after { display: none; }
  .layout { display: block; padding: 0; }
  .section, .intro { box-shadow: none; border: 1px solid var(--border); break-inside: avoid; }
}
