/* Habiter l'Inquiétude — feuille de style
   Aucune ressource externe : pas de police web, pas de script, pas de traceur. */

:root {
  --ground: #EEF0EA;
  --surface: #F8F8F5;
  --surface-2: #E3E8DF;
  --ink: #1C2422;
  --ink-2: #3A4644;
  --muted: #5F6D6A;
  --rule: #CBD3C8;
  --accent: #3E5A3A;
  --accent-strong: #2F4A2C;
  --accent-soft: #8FA98A;
  --accent-wash: #DDE6D8;
  --warm: #9A4E2B;
  --warm-wash: #F3E4DA;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure: 44rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #161B1A;
    --surface: #1E2523;
    --surface-2: #26302D;
    --ink: #E7EAE5;
    --ink-2: #C6CDC8;
    --muted: #9AA7A3;
    --rule: #33403C;
    --accent: #93B98A;
    --accent-strong: #B3D2AB;
    --accent-soft: #5E7A5A;
    --accent-wash: #233028;
    --warm: #D8926E;
    --warm-wash: #3A2A20;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

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

/* ---------- en-tête ---------- */
.site-head { border-bottom: 1px solid var(--rule); background: var(--ground); }
.site-head .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-top: 1.1rem; padding-bottom: 1rem; }
.brand { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); text-decoration: none; letter-spacing: -0.005em; white-space: nowrap; }
.brand em { font-style: italic; color: var(--accent); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem 1.25rem; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--accent-strong); }
.site-nav a.is-current { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- typographie ---------- */
main { padding: 2.5rem 1.25rem 4rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin: 0 0 .75rem; }
h2 { font-size: 1.55rem; margin: 2.4rem 0 .7rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 1.8rem 0 .4rem; }
p, ul, ol { max-width: var(--measure); }
p { margin: 0 0 1rem; text-wrap: pretty; }
ul, ol { padding-left: 1.3rem; margin: 0 0 1rem; }
li { margin: .3rem 0; }
li::marker { color: var(--accent); }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; max-width: var(--measure); }
blockquote { margin: 1.5rem 0; padding: .2rem 0 .2rem 1.25rem; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; color: var(--ink-2); max-width: var(--measure); }
blockquote p { margin: 0 0 .6rem; }
blockquote p:last-child { margin: 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .05em .35em; border-radius: 3px; }
.eyebrow { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; }
.lead { font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--ink-2); max-width: 38rem; margin: 0 0 1.5rem; }
.page-head { margin-bottom: 2rem; }
.note { color: var(--muted); font-size: .95rem; }
.small { font-size: .9rem; color: var(--muted); }

/* ---------- boutons ---------- */
.button { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: .7rem 1.2rem; border-radius: 4px; font-weight: 500; line-height: 1.2; border: 1px solid transparent; }
.button:hover { background: var(--accent-strong); color: #fff; }
.button-quiet { background: transparent; color: var(--accent); border-color: var(--accent-soft); }
.button-quiet:hover { background: var(--accent-wash); color: var(--accent-strong); }
.button-small { padding: .45rem .85rem; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 2rem; }
@media (prefers-color-scheme: dark) { .button { color: #101512; } .button:hover { color: #101512; } .button-quiet { color: var(--accent); } }

/* ---------- accueil ---------- */
.kind-home .hero { padding: 2rem 0 2.5rem; border-bottom: 1px solid var(--rule); }
.kind-home .hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); max-width: 16ch; margin-bottom: 1rem; }
.kind-home .hero .lead { font-size: 1.35rem; }
.portes { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; margin: 2.5rem 0; }
.porte { border-top: 2px solid var(--accent); padding-top: 1rem; }
.porte h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.porte p { font-size: 1rem; }
.porte a.more { font-weight: 500; }
.bande { background: var(--surface); border: 1px solid var(--rule); padding: 1.5rem 1.75rem; margin: 2.5rem 0; max-width: none; }
.bande h2 { margin-top: 0; }
.bande p:last-child { margin-bottom: 0; }

/* ---------- grilles & tableaux ---------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; border-top: 2px solid var(--accent); border-bottom: 1px solid var(--rule); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: .65rem .8rem .65rem 0; border-bottom: 1px solid var(--rule); }
th { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; white-space: nowrap; }

/* ---------- semaines (programme) ---------- */
.semaines { list-style: none; padding: 0; margin: 1.5rem 0 2rem; max-width: var(--measure); }
.semaines li { border-top: 1px solid var(--rule); padding: 1rem 0; margin: 0; display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; }
.semaines li:last-child { border-bottom: 1px solid var(--rule); }
.semaines .num { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: .35rem; }
.semaines h3 { margin: 0 0 .25rem; }
.semaines p { margin: 0 0 .4rem; font-size: .98rem; }
.semaines a { font-weight: 500; }

/* ---------- méditation ---------- */
.kind-meditation .lecteur { background: var(--surface); border: 1px solid var(--rule); padding: 1.25rem 1.5rem; margin: 0 0 2rem; max-width: var(--measure); }
.kind-meditation .lecteur p { margin: 0; }
.kind-meditation audio { width: 100%; margin-top: .75rem; }
.pratique { max-width: 40rem; font-family: var(--serif); font-size: 1.22rem; line-height: 1.6; }
.pratique p { margin: 0 0 1.1rem; }
.pratique em.pause, .pratique p > em:only-child { display: block; color: var(--muted); font-size: .95rem; font-family: var(--sans); font-style: italic; margin: .2rem 0 1.4rem; }
.pratique .intro { font-size: 1.05rem; font-family: var(--sans); color: var(--ink-2); border-bottom: 1px solid var(--rule); padding-bottom: 1.25rem; margin-bottom: 1.75rem; }
.cadre { border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-top: 1rem; font-size: .9rem; color: var(--muted); max-width: var(--measure); }

/* ---------- liste de méditations ---------- */
.medlist { list-style: none; padding: 0; margin: 1.5rem 0; max-width: var(--measure); }
.medlist li { border-top: 1px solid var(--rule); padding: 1rem 0; margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: baseline; }
.medlist li:last-child { border-bottom: 1px solid var(--rule); }
.medlist .titre { font-family: var(--serif); font-size: 1.2rem; }
.medlist .meta { font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.medlist .desc { grid-column: 1 / -1; margin: 0; font-size: .98rem; color: var(--ink-2); }
.tag { display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--rule); border-radius: 3px; padding: .1rem .4rem; vertical-align: middle; }

/* ---------- ressources d'aide ---------- */
.aide { max-width: var(--measure); }
.aide .urgent { background: var(--warm-wash); border-left: 4px solid var(--warm); padding: 1rem 1.25rem; margin: 1.5rem 0 2rem; }
.aide .urgent p { margin: 0 0 .5rem; }
.aide .urgent p:last-child { margin: 0; }
.aide dl { margin: 0 0 1.5rem; }
.aide dt { font-weight: 600; margin-top: 1rem; }
.aide dd { margin: .2rem 0 0; color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- formulaire (Brevo) ---------- */
.inscription { background: var(--surface); border: 1px solid var(--rule); padding: 1.5rem 1.75rem; margin: 2rem 0; max-width: var(--measure); }
.inscription h2, .inscription h3 { margin-top: 0; }
.inscription p:last-child { margin-bottom: 0; }

/* ---------- portrait ---------- */
.page-a-propos main.wrap { max-width: 64rem; }
.portrait { float: right; width: min(38%, 16rem); margin: .25rem 0 1rem 2rem; }
.portrait img { width: 100%; height: auto; display: block; border-radius: 3px; }
.portrait figcaption { font-size: .8rem; color: var(--muted); margin-top: .4rem; }
@media (max-width: 600px) { .portrait { float: none; width: 100%; margin: 0 0 1.5rem; } }

/* ---------- pied de page ---------- */
.site-foot { border-top: 1px solid var(--rule); margin-top: 3rem; background: var(--surface); font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem; padding-top: 2.5rem; padding-bottom: 2rem; }
.foot-grid p, .foot-grid ul { max-width: none; }
.foot-brand { font-family: var(--serif); font-size: 1.15rem; margin-bottom: .5rem; }
.foot-title { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: .3rem 0; }
.site-foot a { color: var(--ink-2); }
.foot-help { background: var(--warm-wash); padding: 1rem 1.25rem; border-left: 3px solid var(--warm); }
.foot-help .button { background: var(--warm); }
.foot-help .button:hover { background: #7f3f22; }
.foot-legal { border-top: 1px solid var(--rule); padding-top: 1rem; padding-bottom: 2rem; color: var(--muted); font-size: .85rem; }
.foot-legal p { max-width: none; margin: 0; }

/* ---------- 404 ---------- */
.page-404 main { text-align: left; }
