/* Dingmark : palette de l'app (teal #00C7BE, vert profond #0A2E2C), typographie
   système, aucune ressource tierce. Le thème suit [data-theme] sur <html>, et
   l'apparence du système quand personne n'a choisi. */

:root {
  --bg: #f6f8f8;
  --surface: #ffffff;
  --surface-2: #eef2f2;
  --text: #10201f;
  --text-soft: #4a5c5b;
  --line: #dde5e4;
  --accent: #00807a;
  --accent-strong: #006b66;
  --on-accent: #ffffff;
  --mark-bg: #00c7be;
  --mark-band: #ffffff;
  --mark-fold: #007f7a;
  --shadow: 0 1px 2px rgba(16, 32, 31, .06), 0 8px 24px rgba(16, 32, 31, .06);
  --radius: 16px;
  --page: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071a19;
    --surface: #0e2523;
    --surface-2: #12302d;
    --text: #eaf4f3;
    --text-soft: #9fb6b4;
    --line: #1c3b38;
    --accent: #2fd8cf;
    --accent-strong: #6ae7e0;
    --on-accent: #052220;
    --mark-bg: #0a2e2c;
    --mark-band: #00c7be;
    --mark-fold: #007f7a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

:root[data-theme="dark"] {
  --bg: #071a19;
  --surface: #0e2523;
  --surface-2: #12302d;
  --text: #eaf4f3;
  --text-soft: #9fb6b4;
  --line: #1c3b38;
  --accent: #2fd8cf;
  --accent-strong: #6ae7e0;
  --on-accent: #052220;
  --mark-bg: #0a2e2c;
  --mark-band: #00c7be;
  --mark-fold: #007f7a;
  --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: -.02em; margin: 0; }

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; }

.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-primary.is-disabled {
  background: var(--surface);
  color: var(--text-soft);
  border: 1px dashed var(--line);
  cursor: default;
}

.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; }

/* Captures */

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

.shots figure { margin: 0; }

.shots img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: block;
}

.shots .wide { grid-column: span 2; }
.shots .wide img { border-radius: 16px; }

.shots figcaption {
  margin-top: .7rem;
  font-size: .87rem;
  color: var(--text-soft);
}

/* Étapes */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: .8rem;
}

.steps 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; }
  .hero-shot { order: -1; }
  .topnav { display: none; }
  .shots .wide { grid-column: span 1; }
  main > section { padding: 3rem 1.25rem; }
}
