/* ============================================
   Politique de Confidentialité – Sentinelle
   Fichier CSS externe · Mobile-first
   ============================================ */

/* --- Google Fonts --- */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&family=Space+Grotesk:wght@400;600;700&display=swap");

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #1a1a1a;
  background-color: #f8f7f4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #0d7c66;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}

a:hover {
  color: #0a5c4c;
}

strong {
  font-weight: 700;
}

/* --- Header --- */
.header {
  background-color: #0f0f0f;
  color: #ffffff;
  padding: 2.5rem 1.25rem 2rem;
  text-align: center;
}

.header__container {
  max-width: 720px;
  margin: 0 auto;
}

.header__app {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0d7c66;
  margin-bottom: 0.75rem;
}

.header__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.header__date {
  font-size: 0.85rem;
  color: #777777;
}

/* --- Table of Contents --- */
.toc {
  background-color: #ffffff;
  border-bottom: 1px solid #e8e6e1;
  padding: 1.5rem 1.25rem;
}

.toc__container {
  max-width: 720px;
  margin: 0 auto;
}

.toc__heading {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999999;
  margin-bottom: 1rem;
}

.toc__list {
  list-style: none;
  counter-reset: toc;
}

.toc__list > .toc__item {
  counter-increment: toc;
}

.toc__list > .toc__item > .toc__link::before {
  content: counter(toc) ". ";
  font-weight: 700;
  color: #0d7c66;
  font-family: "Space Grotesk", sans-serif;
}

.toc__link {
  display: inline-block;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #1a1a1a;
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.toc__link:hover {
  color: #0d7c66;
}

.toc__sublist {
  list-style: none;
  padding-left: 1.25rem;
  margin-top: 0.15rem;
}

.toc__sublist .toc__link {
  font-size: 0.8rem;
  color: #666666;
}

.toc__sublist .toc__link::before {
  content: none;
}

/* --- Content --- */
.content {
  padding: 2rem 1.25rem 3rem;
}

.content__container {
  max-width: 720px;
  margin: 0 auto;
}

/* --- Sections --- */
.section {
  margin-bottom: 2.5rem;
}

.section__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f0f0f;
  line-height: 1.3;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #0d7c66;
  margin-bottom: 1rem;
  scroll-margin-top: 1.5rem;
}

.subsection {
  margin-bottom: 1.5rem;
}

.subsection:last-child {
  margin-bottom: 0;
}

.subsection__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2a2a2a;
  margin-bottom: 0.5rem;
  scroll-margin-top: 1.5rem;
}

.section p {
  margin-bottom: 0.75rem;
}

.section p:last-child {
  margin-bottom: 0;
}

/* --- Lists --- */
.list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.75rem;
}

.list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.list li:last-child {
  margin-bottom: 0;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #0d7c66;
}

/* --- Table --- */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  border: 1px solid #e8e6e1;
  border-radius: 8px;
}

.table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.6;
}

.table thead {
  background-color: #0f0f0f;
  color: #ffffff;
}

.table th {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
  text-align: left;
}

.table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e8e6e1;
  vertical-align: top;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:nth-child(even) {
  background-color: #faf9f7;
}

/* --- Contact --- */
.contact-email {
  margin-top: 0.5rem;
}

.contact-email__label {
  font-weight: 600;
  color: #2a2a2a;
}

.contact-email__link {
  font-weight: 500;
  word-break: break-all;
}

/* --- Footer --- */
.footer {
  background-color: #0f0f0f;
  color: #777777;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.footer__container {
  max-width: 720px;
  margin: 0 auto;
}

.footer__text {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

/* ============================================
   Tablet — 768px et plus
   ============================================ */
@media (min-width: 768px) {
  .header {
    padding: 3.5rem 2rem 2.5rem;
  }

  .header__container,
  .toc__container,
  .content__container,
  .footer__container {
    max-width: 780px;
  }

  .header__title {
    font-size: 2.25rem;
  }

  .header__date {
    font-size: 0.9rem;
  }

  .toc {
    padding: 1.75rem 2rem;
  }

  .toc__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.2rem 2rem;
  }

  .toc__list > .toc__item:nth-child(2) {
    grid-column: 1 / -1;
  }

  .toc__sublist {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.5rem;
    padding-left: 0;
  }

  .content {
    padding: 2.5rem 2rem 4rem;
  }

  .section {
    margin-bottom: 3rem;
  }

  .section__title {
    font-size: 1.4rem;
  }

  .subsection__title {
    font-size: 1.1rem;
  }
}

/* ============================================
   Desktop — 1024px et plus
   ============================================ */
@media (min-width: 1024px) {
  .header {
    padding: 4.5rem 2.5rem 3rem;
  }

  .header__container,
  .toc__container,
  .content__container,
  .footer__container {
    max-width: 820px;
  }

  .header__title {
    font-size: 2.75rem;
  }

  .toc {
    padding: 2rem 2.5rem;
  }

  .toc__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .toc__list > .toc__item:nth-child(2) {
    grid-column: auto;
  }

  .content {
    padding: 3rem 2.5rem 5rem;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .table td,
  .table th {
    padding: 1rem 1.25rem;
  }
}

/* ============================================
   Large Desktop — 1280px et plus
   ============================================ */
@media (min-width: 1280px) {
  .header__container,
  .toc__container,
  .content__container,
  .footer__container {
    max-width: 880px;
  }
}

/* ============================================
   Accessibilité — Focus visible
   ============================================ */
:focus-visible {
  outline: 2px solid #0d7c66;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================
   Accessibilité — Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .toc__link {
    transition: none;
  }
}

/* ============================================
   Impression
   ============================================ */
@media print {
  .header {
    background-color: #ffffff;
    color: #000000;
    border-bottom: 2px solid #000000;
  }

  .header__app {
    color: #000000;
  }

  .toc {
    position: static;
    box-shadow: none;
    border-bottom: 1px solid #cccccc;
  }

  .toc__link {
    color: #000000;
  }

  .toc__link:hover {
    color: #000000;
  }

  .section__title {
    border-bottom-color: #000000;
    break-after: avoid;
  }

  .subsection {
    break-inside: avoid;
  }

  .table-wrapper {
    overflow: visible;
    border-color: #cccccc;
  }

  .table thead {
    background-color: #eeeeee;
    color: #000000;
  }

  .footer {
    background-color: #ffffff;
    color: #000000;
    border-top: 1px solid #cccccc;
  }
}
