/* FaSiLa Grandir – feuille de style
   Couleurs reprises du patchwork du logo. Aucune police externe (pas de Google Fonts). */

:root {
  --paper: #fffdf8;
  --surface: #ffffff;
  --ink: #2b2a33;
  --muted: #5f5d6b;
  --line: #d9d4c7;
  --red: #d9443b;
  --yellow: #f2c230;
  --blue: #2f6fb5;
  --green: #3f9a5a;
  --purple: #8a4fb0;
  --accent: var(--blue);
  --todo-bg: #fff3a0;
  --todo-ink: #5a4a00;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, sans-serif;
  --font-hand: "Comic Neue", "Segoe Print", "Bradley Hand", "Chalkboard SE", "Comic Sans MS", cursive;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1d1c22;
    --surface: #26252d;
    --ink: #efedf5;
    --muted: #b3b0c0;
    --line: #3d3b47;
    --accent: #7fb0ec;
    --todo-bg: #5a4a00;
    --todo-ink: #fff3a0;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--font);
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper); padding: .5rem 1rem;
}
.skip:focus { left: 1rem; z-index: 10; }

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

.site-header {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 16px .5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; }
.brand img { border-radius: 8px; background: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-hand); font-size: 1.6rem; }
.brand-text small { color: var(--muted); }

.nav { display: flex; gap: .3rem; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  padding: .45rem .8rem;
  border-radius: 999px;
  font-weight: 600;
}
.nav a:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

.menu-toggle {
  display: none;
  font: inherit; font-weight: 600;
  background: none; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: .35rem .9rem; cursor: pointer;
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; }
  .nav.open { display: flex; }
  .nav a { padding: .7rem .8rem; }
}

/* Portée musicale, clin d'œil au logo */
.staff {
  height: 22px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 5px);
  opacity: .9;
}

/* ─── Contenu ─────────────────────────────────────── */

main { max-width: 1080px; margin: 0 auto; padding: 1.5rem 16px 3rem; outline: none; }

h1, h2, h3 { line-height: 1.25; }
h1 { font-family: var(--font-hand); font-size: clamp(2rem, 5vw, 3rem); margin: .5rem 0 1rem; }
h2 { font-size: 1.5rem; margin-top: 2.5rem; }
h3 { font-size: 1.15rem; margin-bottom: .3rem; }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1rem 0 1.5rem;
}
.hero img { border-radius: var(--radius); background: #fff; padding: 1rem; border: 1px solid var(--line); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } }

.buttons { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.btn {
  display: inline-block;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
}
.btn.secondary { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.secondary) { color: #1d1c22; } }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 6px solid var(--c, var(--accent));
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.c-red { --c: var(--red); }
.c-yellow { --c: var(--yellow); }
.c-blue { --c: var(--blue); }
.c-green { --c: var(--green); }
.c-purple { --c: var(--purple); }

.prose { max-width: 70ch; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.facts div { border-left: 4px solid var(--accent); padding: .2rem 0 .2rem .9rem; }
.facts dt { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.facts dd { margin: .1rem 0 0; font-size: 1.2rem; font-weight: 700; line-height: 1.35; }
.facts small { font-size: .85rem; font-weight: 400; color: var(--muted); }

.quote {
  margin: 2.5rem auto 0;
  max-width: 40ch;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.5rem;
  line-height: 1.4;
}
.quote cite { display: block; margin-top: .5rem; font: italic .9rem var(--font); color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 1rem; }
.contact-list .label { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.contact-list a, .contact-list strong { font-size: 1.1rem; overflow-wrap: anywhere; }

.map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.job {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin: 1rem 0;
}
.job .meta { color: var(--muted); margin: .2rem 0 .6rem; }

/* Texte provisoire, à remplacer : bien visible pour le relecteur */
.todo {
  background: var(--todo-bg);
  color: var(--todo-ink);
  border-radius: 4px;
  padding: 0 .3em;
}
.todo::before { content: "À compléter : "; font-weight: 700; }

/* ─── Pied de page ────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 16px 2rem;
  color: var(--muted);
  font-size: .95rem;
}
.site-footer .small { font-size: .85rem; }

