/* Equalizer — feuille de style partagée (privacy.html, support.html).
   Aucune ressource externe : polices système, pas de script. */

:root {
  color-scheme: light dark;
  --accent: #2f7fb8;
  --accent-hover: #256a9a;
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --separator: rgba(60, 60, 67, 0.16);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
  --glow-1: rgba(47, 127, 184, 0.16);
  --glow-2: rgba(46, 139, 111, 0.12);
  --notice-bg: rgba(255, 159, 10, 0.14);
  --notice-border: rgba(204, 120, 0, 0.45);
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #6bb6e8;
    --accent-hover: #9fd0f2;
    --bg: #000000;
    --surface: rgba(28, 28, 30, 0.72);
    --surface-solid: #1c1c1e;
    --text: #f5f5f7;
    --secondary: #a1a1a6;
    --separator: rgba(235, 235, 245, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
    --glow-1: rgba(107, 182, 232, 0.16);
    --glow-2: rgba(46, 139, 111, 0.14);
    --notice-bg: rgba(255, 159, 10, 0.16);
    --notice-border: rgba(255, 179, 64, 0.5);
  }
}

* { box-sizing: border-box; }

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(60rem 30rem at 8% -5%, var(--glow-1), transparent 70%),
    radial-gradient(50rem 28rem at 100% 10%, var(--glow-2), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  font: 17px/1.6 var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--accent-hover); }
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: min(100% - 2.5rem, 760px);
  margin-inline: auto;
}

/* ---------- En-tête ---------- */

.site-header {
  padding: clamp(2.5rem, 8vw, 4.5rem) 0 1.5rem;
  text-align: center;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
}
.brand:hover { color: inherit; }

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22.37%; /* proportion du « squircle » d'icône iOS */
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 10px 28px rgba(0, 0, 0, 0.18);
}

.app-name {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  margin: 1.5rem 0 0;
  font-size: clamp(2rem, 7vw, 3.1rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 34rem;
  margin: 0.9rem auto 0;
  color: var(--secondary);
  font-size: 1.15rem;
  line-height: 1.45;
}

/* ---------- Navigation ---------- */

.pills {
  display: inline-flex;
  gap: 2px;
  margin-top: 1.75rem;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--separator);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.pills a {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.pills a[aria-current="page"],
body:has(#en:target) .pills a[href="#en"],
body:not(:has(#en:target)) .pills a[href="#fr"] {
  background: var(--surface-solid);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}
.pills a:hover { color: var(--accent); }

/* ---------- Contenu ---------- */

main { padding-bottom: 3rem; }

.card {
  margin-top: 1.25rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 0.5px var(--separator);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
}

h2 {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.025em;
}

h3 {
  margin: 1.4rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

p { margin: 0.6rem 0 0; }
ul { margin: 0.6rem 0 0; padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }

.updated {
  margin-top: 0.4rem;
  color: var(--secondary);
  font-size: 0.9rem;
}

.summary {
  margin-top: 1.25rem;
  padding: 1.1rem 1.3rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--glow-1), var(--glow-2));
  box-shadow: inset 0 0 0 0.5px var(--separator);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* Tableau de synthèse des traitements */
.table-scroll {
  margin-top: 0.9rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  padding: 0.7rem 0.8rem 0.7rem 0;
  border-bottom: 1px solid var(--separator);
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
tr:last-child td { border-bottom: 0; }

/* Questions fréquentes */
details {
  padding-block: 0.95rem;
  border-top: 1px solid var(--separator);
}
details:first-of-type { margin-top: 0.6rem; }
summary {
  position: relative;
  padding-right: 2rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  top: -0.1rem;
  right: 0.2rem;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  transition: transform 0.2s ease;
}
details[open] > summary::after { transform: rotate(45deg); }
details > p { color: var(--secondary); }

/* Informations restant à valider par l'éditeur : volontairement bien visibles */
.todo {
  padding: 0.05em 0.4em;
  border-radius: 6px;
  background: var(--notice-bg);
  box-shadow: inset 0 0 0 1px var(--notice-border);
  font-weight: 600;
}

/* Bouton */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.button:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
@media (prefers-color-scheme: dark) {
  .button, .button:hover { color: #00201d; }
}
.center { text-align: center; }

/* ---------- Pied de page ---------- */

.site-footer {
  padding: 1rem 0 3rem;
  color: var(--secondary);
  font-size: 0.85rem;
  text-align: center;
}
.site-footer a { color: inherit; }

/* ---------- Sélecteur de langue (sans script) ----------
   Les deux langues sont visibles par défaut ; les navigateurs gérant :has()
   n'affichent que la langue choisie (français par défaut, #en pour l'anglais). */

body:has(#en:target) [lang="fr"].lang-block { display: none; }
body:not(:has(#en:target)) [lang="en"].lang-block { display: none; }

/* ---------- Adaptations ---------- */

@media (max-width: 480px) {
  body { font-size: 16px; }
  .app-icon { width: 84px; height: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media print {
  body { background: #fff; color: #000; }
  .card { box-shadow: none; background: none; }
  .pills { display: none; }
  body:has(#en:target) [lang="fr"].lang-block,
  body:not(:has(#en:target)) [lang="en"].lang-block { display: block; }
}
