/* Pile Poil : couleurs de l'icône (bleu tram #12448B, crème #FAF7ED), titres
   en police système arrondie comme le « PP » de l'icône, aucune ressource
   tierce. Le thème suit [data-theme] sur <html>, et l'apparence du système
   quand personne n'a choisi. Mise en page reprise de leafin-site. */

:root {
  --bg: #faf7ed;
  --surface: #fffdf7;
  --surface-2: #f0ecdf;
  --text: #14213a;
  --text-soft: #56607a;
  --line: #e2ddcc;
  --accent: #12448b;
  --accent-strong: #0d3570;
  --on-accent: #faf7ed;
  --mark-bg: #12448b;
  --mark-ink: #faf7ed;
  --go: #1f8a4c;
  --shadow: 0 1px 2px rgba(20, 33, 58, .06), 0 8px 24px rgba(20, 33, 58, .07);
  --radius: 16px;
  --page: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1524;
    --surface: #172136;
    --surface-2: #121b2d;
    --text: #e8ecf4;
    --text-soft: #9aa5bd;
    --line: #253150;
    --accent: #8db2ee;
    --accent-strong: #b0caf4;
    --on-accent: #0e1524;
    --mark-bg: #1d55a8;
    --mark-ink: #faf7ed;
    --go: #5fd08f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

:root[data-theme="dark"] {
  --bg: #0e1524;
  --surface: #172136;
  --surface-2: #121b2d;
  --text: #e8ecf4;
  --text-soft: #9aa5bd;
  --line: #253150;
  --accent: #8db2ee;
  --accent-strong: #b0caf4;
  --on-accent: #0e1524;
  --mark-bg: #1d55a8;
  --mark-ink: #faf7ed;
  --go: #5fd08f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-weight: 700; }

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 1.6rem; }
h3 { font-size: 1.05rem; margin-bottom: .4rem; }

p { margin: 0 0 1rem; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--surface);
  padding: .6rem 1rem;
  border-radius: 10px;
}

/* Barre du haut */

.topbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--page);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.mark { width: 30px; height: 30px; display: block; border-radius: 7px; }

.topnav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  font-size: .95rem;
}

.topnav a {
  color: var(--text-soft);
  text-decoration: none;
}

.topnav a:hover { color: var(--text); }

.switches { display: flex; gap: .5rem; }

.switch {
  width: 38px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-soft);
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}

.switch:hover { color: var(--text); }
.switch svg { width: 17px; height: 17px; }

/* Sections */

main > section {
  max-width: var(--page);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.band {
  max-width: none;
  background: var(--surface-2);
}

.band > * { max-width: var(--page); margin-left: auto; margin-right: auto; }

.label {
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .6rem;
}

.note {
  color: var(--text-soft);
  font-size: .9rem;
  margin-top: 2rem;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
  padding-top: 3rem;
}

.eyebrow {
  color: var(--text-soft);
  font-size: .92rem;
  margin-bottom: .8rem;
}

.lead {
  font-size: 1.12rem;
  color: var(--text-soft);
  margin: 1.2rem 0 2rem;
  max-width: 34em;
}

.cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.btn {
  display: inline-block;
  padding: .8rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
}

.btn-primary { background: var(--accent); color: var(--on-accent); }

.btn-ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.hero-note {
  margin-top: 1.6rem;
  font-size: .88rem;
  color: var(--text-soft);
  max-width: 34em;
}

.hero-shot img {
  width: 100%;
  max-width: 320px;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: block;
  margin: 0 auto;
}

/* Cartes */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
}

.card p { color: var(--text-soft); font-size: .95rem; margin: 0; }

/* Confidentialité */

.privacy div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  max-width: 46em;
}

.privacy p:not(.label) { color: var(--text-soft); }

.link { font-weight: 600; }

/* Pied */

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem 3rem;
  max-width: var(--page);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  font-size: .9rem;
  color: var(--text-soft);
}

.footer p { margin: 0; }
.footer nav { display: flex; gap: 1.4rem; margin-left: auto; }

/* Page de contenu (confidentialité, 404) */

.doc {
  max-width: 44em;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .6rem; }
.doc h2 { font-size: 1.25rem; margin: 2.4rem 0 .8rem; }
.doc p, .doc li { color: var(--text-soft); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: .5rem; }
.doc .updated { font-size: .9rem; }

.center { text-align: center; }

.push { margin-left: auto; }

.doc .back { margin-top: 2.5rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .topnav { display: none; }
  main > section { padding: 3rem 1.25rem; }
}

/* Pile Poil */

.hero { grid-template-columns: 1fr; }
.hero > div { max-width: 46em; }
/* A band's blocks line up with the sections' text, padding included. */
.band > * { max-width: calc(var(--page) - 3rem); }
.countdown + .hero-note { margin-top: 0; }

.countdown {
  display: inline-flex;
  align-items: baseline;
  gap: .6rem;
  margin-bottom: 1.4rem;
  padding: .5rem .9rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--go);
}

.countdown span { color: var(--text-soft); font-weight: 500; font-size: .92rem; }

.plus {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 46em;
}

.plus p:not(.label) { color: var(--text-soft); }
.plus .price { color: var(--text); font-weight: 600; }

.credits p { color: var(--text-soft); max-width: 46em; }

.faq h3 { margin-top: 1.8rem; font-size: 1.05rem; }
