/* Allège : style « tampon » en pastels bonbon, comme l'application.
   Contours épais à l'encre, ombres décalées pleines, fond lavande pointillé. */
@font-face {
  font-family: "Bricolage";
  src: url("bricolage.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #f4f1ff;
  --surface: #ffffff;
  --ink: #1d1b2e;
  --muted: #68647d;
  --dot: rgba(29, 27, 46, .12);
  --butter: #ffe07a;
  --rose: #ffc8dd;
  --sky: #bde0fe;
  --mint: #c9f2da;
  --shadow: #1d1b2e;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15131f;
    --surface: #221f30;
    --ink: #f4f1ff;
    --muted: #a8a3bd;
    --dot: rgba(244, 241, 255, .09);
    --shadow: #000000;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.3px);
  background-size: 22px 22px;
  color: var(--ink);
  font: 17px/1.6 "Bricolage", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-variation-settings: "wght" 430, "opsz" 14;
}

a { color: var(--ink); text-decoration-color: #e0b400; text-decoration-thickness: 3px; text-underline-offset: 3px; }
a:hover { background: var(--butter); color: #1d1b2e; }

.wrap {
  max-width: 760px;
  min-width: 0;
  margin: 0 auto;
  padding: 0 16px;
}

header.site { border-bottom: 2px solid var(--ink); background: var(--surface); }
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-variation-settings: "wght" 800, "opsz" 32, "wdth" 90;
  text-decoration: none;
}
.brand:hover { background: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; border: 2px solid var(--ink); }
nav { display: flex; gap: 6px; font-size: 15px; flex-wrap: wrap; }
nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 4px 12px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-variation-settings: "wght" 600;
}
nav a:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }
nav a[aria-current="page"] { background: var(--butter); border-color: var(--ink); color: #1d1b2e; }

main { padding: 40px 0 56px; }

h1, h2, .hero h1 {
  font-variation-settings: "wght" 800, "opsz" 96, "wdth" 85;
  letter-spacing: -.02em;
  line-height: 1;
}

.hero { text-align: center; padding: 8px 0 8px; }
.hero img {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  border: 3px solid #1d1b2e;
  box-shadow: 8px 8px 0 var(--shadow);
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) { .hero img { animation: none; } }
.hero h1 { margin: 26px 0 10px; font-size: 64px; }
.hero p { margin: 0 auto; max-width: 500px; color: var(--muted); font-size: 18px; }
.badge {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 16px;
  border: 2px solid #1d1b2e;
  border-radius: 999px;
  background: var(--butter);
  color: #1d1b2e;
  font-size: 15px;
  font-variation-settings: "wght" 750;
  box-shadow: 4px 4px 0 var(--shadow);
  transform: rotate(-2deg);
}

h1 { font-size: 44px; margin: 0 0 12px; }
h2 { font-size: 28px; margin: 40px 0 12px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
.muted { color: var(--muted); }
strong { font-variation-settings: "wght" 700; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 40px 0;
  padding: 0;
  list-style: none;
}
.features li {
  margin: 0;
  padding: 16px 18px;
  color: #1d1b2e;
  border: 2px solid #1d1b2e;
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--shadow);
}
.features li:nth-child(4n+1) { background: var(--rose); }
.features li:nth-child(4n+2) { background: var(--sky); }
.features li:nth-child(4n+3) { background: var(--butter); }
.features li:nth-child(4n+4) { background: var(--mint); }
.features strong {
  display: block;
  font-size: 19px;
  font-variation-settings: "wght" 800, "opsz" 32, "wdth" 90;
  margin-bottom: 4px;
}
.features span { font-size: 15px; opacity: .85; }

.card {
  margin: 28px 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--shadow);
}
.card p:last-child { margin-bottom: 0; }

details {
  margin: 0 0 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--shadow);
}
details[open] { background: var(--surface); }
summary { cursor: pointer; font-variation-settings: "wght" 700; list-style-position: inside; }
summary::marker { color: #e0b400; }
details p { margin: 10px 0 0; color: var(--muted); }

footer {
  border-top: 2px solid var(--ink);
  background: var(--surface);
  padding: 22px 0 30px;
  font-size: 14px;
  color: var(--muted);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: var(--muted); }

@media (max-width: 520px) {
  header.site .wrap { gap: 8px; }
  nav { font-size: 13.5px; gap: 2px; flex-wrap: nowrap; }
  nav a { padding: 3px 7px; }
  .brand span { display: none; }
  .hero h1 { font-size: 48px; }
  h1 { font-size: 36px; }
}
