/* =========================================================
   Karin Wörthwein – Psychothérapie & supervision, Fribourg
   Concept : le fil de la Sarine (méandre de Fribourg)
   ========================================================= */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs */
  --sarine: #12403C;      /* vert profond de la rivière */
  --sarine-2: #1D5A53;
  --sarine-3: #2C6E66;
  --lichen: #E3E7DE;      /* molasse verdâtre, fond principal */
  --paper: #F5F7F1;       /* fond secondaire */
  --ink: #17221F;         /* texte */
  --muted: #4A5A55;       /* texte secondaire (contraste AA sur lichen et paper) */
  --ochre: #C8963A;       /* le fil */
  --ochre-light: #E9C77F; /* accents sur fond sombre */
  --line: rgba(23, 34, 31, .16);
  --error: #A3321F;

  /* Typo */
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Mise en page */
  --gutter: clamp(18px, 4.5vw, 72px);        /* position du fil */
  --content-left: calc(var(--gutter) + clamp(26px, 5vw, 96px));
  --max: 1240px;
  --header-h: 76px;
  --focus: var(--sarine);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
html.no-motion { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--lichen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.03rem, .98rem + .25vw, 1.15rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 420;
  line-height: 1.1;
  margin: 0 0 .5em;
  font-variation-settings: "opsz" 48;
}
h2 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
  letter-spacing: -.015em;
  font-weight: 380;
  font-variation-settings: "opsz" 72;
}
h3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); font-weight: 480; }
h4 { font-size: 1.15rem; font-weight: 560; font-family: var(--sans); letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 68ch; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: .7em 1em; border-radius: 4px;
  transition: top .2s;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); position: relative; }
.wrap-gutter { padding-left: var(--content-left); max-width: calc(var(--max) + var(--content-left)); margin-left: 0; }
@media (min-width: 1500px) {
  .wrap-gutter { margin-left: calc((100vw - 1500px) / 2); }
}

.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75em 1.4em;
  font: 600 1rem/1.2 var(--sans);
  border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 42px; padding: .55em 1.1em; font-size: .95rem; }
.btn-dark, .btn-small { background: var(--sarine); color: var(--paper); }
.btn-dark:hover, .btn-small:hover { background: var(--sarine-2); }
.btn-light { background: var(--paper); color: var(--sarine); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: rgba(245, 247, 241, .55); color: var(--paper); background: transparent; }
.btn-ghost:hover { border-color: var(--paper); background: rgba(245, 247, 241, .08); }

.text-link {
  background: none; border: 0; padding: 0; font: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: .2em; cursor: pointer;
}

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--paper);
  transition: background-color .35s, color .35s, box-shadow .35s, height .35s;
  --focus: var(--ochre-light);
}
.site-header.is-dark {
  background: rgba(18, 64, 60, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header.is-solid {
  background: rgba(227, 231, 222, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  --focus: var(--sarine);
}
.header-inner {
  height: 100%; display: flex; align-items: center; gap: 1.5rem;
  padding: 0 clamp(16px, 3vw, 40px);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { width: 38px; height: 38px; }
.site-header:not(.is-solid) .brand img { filter: brightness(0) invert(1); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.brand-sub { font-size: .8rem; opacity: .8; }

.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.main-nav a {
  text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: .4em 0; position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--ochre); transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.main-nav a:hover::after, .main-nav a[aria-current="true"]::after { transform: scaleX(1); }

.lang { display: flex; border: 1px solid currentColor; border-radius: 999px; padding: 2px; opacity: .9; }
.lang button {
  font: 600 .8rem/1 var(--sans); letter-spacing: .02em;
  background: none; border: 0; color: inherit; padding: .5em .75em; border-radius: 999px; cursor: pointer;
  min-width: 40px; min-height: 32px;
}
.lang button[aria-pressed="true"] { background: currentColor; }
.lang button[aria-pressed="true"] { color: var(--sarine); background: var(--paper); }
.site-header.is-solid .lang button[aria-pressed="true"] { color: var(--paper); background: var(--sarine); }

.site-header:not(.is-solid) .header-cta { background: var(--paper); color: var(--sarine); }

.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .header-cta { display: none; }
}
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: .55rem;
    background: none; border: 1px solid currentColor; color: inherit;
    border-radius: 999px; padding: .55em 1em; font: 600 .9rem var(--sans); cursor: pointer;
    min-height: 44px;
  }
  .menu-toggle-bars, .menu-toggle-bars::before {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative;
    transition: transform .3s;
  }
  .menu-toggle-bars::before { content: ""; position: absolute; top: 6px; }
  .menu-toggle-bars { top: -3px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }

  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: flex-start; gap: 2rem;
    background: var(--sarine); color: var(--paper);
    padding: 2rem clamp(20px, 6vw, 40px);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
    overflow-y: auto;
    --focus: var(--ochre-light);
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  .main-nav ul { flex-direction: column; gap: .25rem; }
  .main-nav a { font-family: var(--serif); font-size: 2rem; font-weight: 400; display: inline-block; }
  .main-nav .lang button[aria-pressed="true"] { color: var(--sarine); background: var(--paper); }
  .menu-open .site-header { background: var(--sarine); color: var(--paper); box-shadow: none; }
  .menu-open .site-header .brand img { filter: brightness(0) invert(1); }
  .menu-open { overflow: hidden; }
}

/* ---------- Accueil ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  background:
    radial-gradient(120% 80% at 85% 20%, rgba(44, 110, 102, .55), transparent 60%),
    var(--sarine);
  color: var(--paper);
  overflow: hidden;
  display: flex; align-items: flex-end;
  --focus: var(--ochre-light);
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }

.meander {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.meander path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.meander-bank {
  stroke: rgba(233, 199, 127, .18);
  stroke-width: 46;
}
.meander-river {
  stroke: var(--ochre-light);
  stroke-width: 2.5;
}
.js .meander path { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.js .is-ready .meander-river { animation: draw 3.2s cubic-bezier(.6, .05, .2, 1) .2s forwards; }
.js .is-ready .meander-bank { animation: draw 3.6s cubic-bezier(.6, .05, .2, 1) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-inner {
  position: relative; z-index: 1; width: 100%;
  padding: calc(var(--header-h) + 6vh) clamp(20px, 6vw, 96px) clamp(32px, 6vh, 64px);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 1rem + 6.4vw, 7.6rem);
  line-height: .94;
  letter-spacing: -.03em;
  font-variation-settings: "opsz" 72;
  margin: 0 0 .45em;
}
.ht-line { display: block; }
.ht-indent { padding-left: .9em; }
.ht-indent-2 { padding-left: 1.8em; }
.js .ht-line { opacity: 0; transform: translateY(.25em); }
.js .is-ready .ht-line { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .is-ready .ht-line:nth-child(2) { animation-delay: .9s; }
.js .is-ready .ht-line:nth-child(3) { animation-delay: 1.6s; }
.js .is-ready .ht-line:nth-child(1) { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-lead { font-size: clamp(1.08rem, 1rem + .45vw, 1.35rem); max-width: 40ch; margin-bottom: 1.6em; color: rgba(245, 247, 241, .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: clamp(32px, 7vh, 72px); }
.js .hero-lead, .js .hero-actions, .js .hero-facts { opacity: 0; }
.js .is-ready .hero-lead, .js .is-ready .hero-actions, .js .is-ready .hero-facts { animation: fade .9s ease 2.2s forwards; }
@keyframes fade { to { opacity: 1; } }

.hero-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem;
  margin: 0; padding-top: 1.25rem; border-top: 1px solid rgba(245, 247, 241, .22);
  max-width: 880px;
}
.hero-facts dt { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.hero-facts dd { margin: 0; font-size: .92rem; color: rgba(245, 247, 241, .75); }

@media (max-width: 700px) {
  .hero-facts { grid-template-columns: 1fr; gap: .75rem; }
  .ht-indent { padding-left: .5em; }
  .ht-indent-2 { padding-left: 1em; }
  .meander { opacity: .35; }
}

/* ---------- Le fil ---------- */
main { position: relative; }
.thread-layer {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1; pointer-events: none;
}
.thread { width: 100%; height: 100%; overflow: visible; }
.thread-path { fill: none; stroke: var(--ochre); stroke-width: 2.5; stroke-linecap: round; }
.thread-bead { fill: var(--ochre); stroke: var(--lichen); stroke-width: 3; }
html:not(.js) .thread-layer { display: none; }

.section, .fork { position: relative; }
.section > .wrap, .fork > .wrap { position: relative; z-index: 2; }

/* ---------- Aiguillage ---------- */
.fork { padding: clamp(110px, 18vh, 190px) 0 clamp(60px, 10vh, 110px); }
.fork-title { margin-bottom: 1.6em; max-width: 18ch; }
.fork-paths {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 9vw, 140px);  /* le fil passe dans l'espace central */
  max-width: 1100px;
}
.path-card {
  display: flex; flex-direction: column;
  padding: clamp(28px, 3.5vw, 48px);
  background: var(--paper);
  border-radius: 28px 28px 28px 4px;
  text-decoration: none;
  min-height: 300px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .3s;
}
.path-card:nth-child(2) { border-radius: 28px 28px 4px 28px; }
.path-card:hover { transform: translateY(-4px); }
.path-card h3 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); font-weight: 400; max-width: 16ch; }
.path-card p { color: var(--muted); }
.path-link {
  margin-top: auto; font-weight: 600; display: inline-flex; gap: .5em; align-items: center;
  text-decoration: underline; text-underline-offset: .25em;
}
.path-card-dark { background: var(--sarine); color: var(--paper); --focus: var(--ochre-light); }
.path-card-dark p { color: rgba(245, 247, 241, .8); }
.path-card-dark:hover { background: var(--sarine-2); }

@media (max-width: 760px) {
  .fork-paths { grid-template-columns: 1fr; gap: 20px; }
  .path-card { min-height: 0; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vh, 140px) 0; }
.section-paper { background: rgba(245, 247, 241, .65); }
.section-dark { background: var(--sarine); color: var(--paper); --focus: var(--ochre-light); }
.section-dark .muted { color: rgba(245, 247, 241, .75); }

.intro { font-family: var(--serif); font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); line-height: 1.5; font-weight: 380; max-width: 46ch; }

.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-bottom: clamp(48px, 8vh, 88px); }
.split-side { padding-top: .6rem; border-top: 2px solid var(--ink); }
.section-dark .split-side { border-color: var(--ochre-light); }
.split-side h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 1.1em 0 .25em; }
.split-side h3:first-child { margin-top: .4em; }
.split-side p { margin-bottom: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* thèmes */
.themes-title { margin-bottom: 1.2em; }
.themes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem 2.5rem;
  margin-bottom: clamp(48px, 8vh, 80px);
}
.theme h4 { margin-bottom: .6em; padding-bottom: .5em; border-bottom: 1px solid var(--line); }
.theme ul { list-style: none; margin: 0; padding: 0; }
.theme li { padding: .22em 0; color: var(--muted); }

/* urgences */
.urgent {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 3rem; align-items: center;
  padding: clamp(22px, 3vw, 36px);
  background: var(--paper);
  border-left: 6px solid var(--error);
  border-radius: 4px 20px 20px 4px;
}
.urgent h3 { margin-bottom: .25em; }
.urgent p { margin: 0; color: var(--muted); }
.urgent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; grid-row: span 2; grid-column: 2; }
.urgent-list a {
  display: flex; flex-direction: column; text-decoration: none;
  padding: .6em 1em; border: 1.5px solid var(--line); border-radius: 14px; min-width: 120px;
}
.urgent-list a:hover { border-color: var(--error); }
.urgent-list strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; line-height: 1; color: var(--error); }
.urgent-list span { font-size: .85rem; }
@media (max-width: 860px) {
  .urgent { grid-template-columns: 1fr; }
  .urgent-list { grid-column: auto; grid-row: auto; }
}

/* étapes : vraie séquence */
.steps {
  list-style: none; margin: 2.2rem 0 3rem; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px);
  counter-reset: step;
}
.steps li { counter-increment: step; position: relative; padding-top: 4.2rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--serif); font-size: 3.4rem; font-weight: 300; line-height: 1;
  color: var(--sarine-3);
}
.steps li::after {
  content: ""; position: absolute; top: 1.7rem; left: 2.6rem; right: -1rem; height: 1px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps p { color: var(--muted); font-size: .98rem; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } .steps li:nth-child(2)::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li::after { display: none; } .steps li { padding-top: 3.6rem; } }

.availability {
  display: inline-flex; align-items: center; gap: .7em;
  padding: .7em 1.2em; border-radius: 999px; background: var(--lichen);
  font-weight: 500; max-width: none;
}
.availability .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ochre); box-shadow: 0 0 0 4px rgba(200, 150, 58, .25); flex: none; }

/* supervision */
.offers {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 56px);
  margin-bottom: 3rem;
}
.offer { padding-top: 1.2rem; border-top: 1px solid rgba(245, 247, 241, .3); }
.offer p { color: rgba(245, 247, 241, .82); }
@media (max-width: 860px) { .offers { grid-template-columns: 1fr; } }

/* parcours */
.about { display: grid; grid-template-columns: minmax(200px, 360px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: end; margin-bottom: clamp(56px, 9vh, 96px); }
.portrait {
  margin: 0; position: relative; aspect-ratio: 4 / 5;
  border-radius: 180px 180px 18px 18px;  /* arche, comme les arcades de la vieille ville */
  overflow: hidden; background: var(--sarine-2);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.portrait-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: 5rem; font-weight: 300; color: var(--ochre-light);
  background:
    radial-gradient(80% 60% at 50% 30%, var(--sarine-3), transparent 70%),
    var(--sarine);
}
.portrait.is-missing img { display: none; }
.titles { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.titles li { padding: .55em 0; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 300px; }
}

/* frise : les points tombent sur le fil */
.timeline { list-style: none; margin: 0 0 clamp(56px, 9vh, 96px); padding: 0; position: relative; }
.timeline li {
  display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1.5rem;
  padding: 1.1rem 0; position: relative;
}
.timeline li::before {
  content: ""; position: absolute;
  left: calc(var(--gutter) - var(--content-left) - 7px);
  top: 1.55rem; width: 14px; height: 14px; border-radius: 50%;
  background: var(--lichen); border: 3px solid var(--ochre);
}
.tl-year { font-family: var(--serif); font-size: 1.9rem; font-weight: 400; line-height: 1.1; color: var(--sarine-2); }
.timeline p { margin: .35em 0 0; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: .2rem; } }

.team { max-width: 720px; padding: clamp(22px, 3vw, 36px); background: var(--paper); border-radius: 20px; }
.team-name { font-family: var(--serif); font-size: 1.5rem; margin-bottom: .2em; }
.team p:not(.team-name) { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
address { font-style: normal; }
.addr { font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; }
.big-link { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-weight: 600; word-break: break-word; }

.map { margin-top: 2rem; }
.map-art, .map iframe {
  width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 20px; background: var(--sarine);
}
.map-river { fill: none; stroke: var(--ochre-light); stroke-width: 26; stroke-opacity: .18; stroke-linecap: round; }
.map-art .map-river + .map-pin { }
.pin-halo { fill: var(--ochre); opacity: .3; }
.pin-core { fill: var(--ochre-light); }
.map-label { fill: var(--paper); font: 600 15px var(--sans); }
.map-label-soft { fill: rgba(245, 247, 241, .6); font-weight: 500; }
.map-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin: 1rem 0 .5rem; }
.js .pin-halo { animation: pulse 2.6s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2); opacity: 0; } }

/* formulaire */
.contact-form {
  background: var(--paper); padding: clamp(24px, 3.5vw, 48px); border-radius: 28px 28px 28px 4px;
}
.field { margin: 0 0 1.25rem; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label, legend { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .98rem; }
legend { padding: 0; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .75em .9em; min-height: 48px;
  background: #fff; border: 1.5px solid rgba(23, 34, 31, .35); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 140px; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--sarine); box-shadow: 0 0 0 3px rgba(18, 64, 60, .25);
}
[aria-invalid="true"] { border-color: var(--error) !important; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choices label {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 500; margin: 0;
  padding: .55em 1em; border: 1.5px solid rgba(23, 34, 31, .25); border-radius: 999px; cursor: pointer;
  min-height: 44px;
}
.choices label:has(input:checked) { border-color: var(--sarine); background: rgba(18, 64, 60, .08); }
.choices input, .field-check input { accent-color: var(--sarine); width: 18px; height: 18px; margin: 0; flex: none; }
.field-check label { display: flex; gap: .7em; align-items: flex-start; font-weight: 500; }
.field-check input { margin-top: .2em; }
.hint { font-size: .88rem; color: var(--muted); margin: .4rem 0 0; }
.error { color: var(--error); font-size: .9rem; font-weight: 600; margin: .4rem 0 0; }
.error::before { content: "! "; }
.form-summary {
  border: 2px solid var(--error); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1.5rem; background: #fff;
}
.form-summary p { margin: 0 0 .4em; font-weight: 700; color: var(--error); }
.form-summary ul { margin: 0; padding-left: 1.2em; }
.form-summary a { color: var(--error); }
.form-done {
  margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: 14px;
  background: rgba(18, 64, 60, .08); border-left: 4px solid var(--sarine);
}
.form-done p:last-child { margin-bottom: 0; }

/* ---------- Pied de page ---------- */
.site-footer {
  position: relative; z-index: 1;
  background: var(--ink); color: rgba(245, 247, 241, .85);
  padding: 64px 0 28px; font-size: .95rem;
  --focus: var(--ochre-light);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr auto; gap: 2rem 3rem; }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: var(--paper); margin-bottom: .4em; }
.footer-legal details { border-top: 1px solid rgba(245, 247, 241, .2); padding: .7rem 0; }
.footer-legal summary { cursor: pointer; font-weight: 600; color: var(--paper); }
.footer-legal details p { margin: .6rem 0 0; font-size: .9rem; }
.footer-tools { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.copyright { margin-top: 2.5rem; font-size: .85rem; opacity: .6; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
.no-motion *, .no-motion *::before, .no-motion *::after {
  animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important;
}

@media print {
  .site-header, .thread-layer, .meander, .map, .contact-form, .footer-tools { display: none !important; }
  .hero { min-height: 0; background: none; color: var(--ink); }
  .section-dark { background: none; color: var(--ink); }
}
