/* ==========================================================
   Conseil de quartier de Fass Noflaye 2 — feuille de style
   Palette tirée du logo : bleu nuit, vert, jaune, bleu ciel.
   Mise en page : en-tête collant, grand titre à gauche sur fond bleu nuit,
   puis sections sur fond clair, séparées par le liseré tricolore du logo.
   ========================================================== */

:root {
  --navy: #0a2a5e;
  --green: #1b7a3e;
  --sun: #f5a623;
  --sky: #2a6db5;

  --bg: #f4f8f6;
  --surface: #ffffff;
  --surface-2: #eaf1ed;
  --fg: #101b30;
  --muted: #4a596f;
  --line: #d3ddd8;
  --link: #166534;
  --hero-bg: #0a2a5e;
  --hero-fg: #ffffff;
  --hero-muted: #c6d3ea;
  --chip-ok-bg: #dff3e4;
  --chip-ok-fg: #14532d;
  --chip-plan-bg: #fdecc8;
  --chip-plan-fg: #6b4300;
  --chip-run-bg: #dbe8f8;
  --chip-run-fg: #123e75;
  --focus: #2a6db5;

  --font-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: clamp(0.85rem, 0.83rem + 0.1vw, 0.92rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.8vw, 3.6rem);
  --step-hero: clamp(2.6rem, 1.4rem + 6vw, 6rem);

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --maxw: 1160px;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1424;
    --surface: #131f35;
    --surface-2: #192842;
    --fg: #e8eef8;
    --muted: #a3b3c9;
    --line: #26364f;
    --link: #7dd68b;
    --hero-bg: #071a40;
    --hero-fg: #ffffff;
    --hero-muted: #b9c8e2;
    --chip-ok-bg: #173d27;
    --chip-ok-fg: #a8e9b6;
    --chip-plan-bg: #473512;
    --chip-plan-fg: #ffd98a;
    --chip-run-bg: #17335b;
    --chip-run-fg: #b6d3fb;
    --focus: #8fb9ee;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1424;
  --surface: #131f35;
  --surface-2: #192842;
  --fg: #e8eef8;
  --muted: #a3b3c9;
  --line: #26364f;
  --link: #7dd68b;
  --hero-bg: #071a40;
  --hero-fg: #ffffff;
  --hero-muted: #b9c8e2;
  --chip-ok-bg: #173d27;
  --chip-ok-fg: #a8e9b6;
  --chip-plan-bg: #473512;
  --chip-plan-fg: #ffd98a;
  --chip-run-bg: #17335b;
  --chip-run-fg: #b6d3fb;
  --focus: #8fb9ee;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bande qui prolonge l'en-tête sous la barre d'état des téléphones */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  background: var(--navy); z-index: 60;
}

.wrap {
  width: 100%; max-width: calc(var(--maxw) + var(--gutter-l) + var(--gutter-r));
  margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}

.tricolor { display: flex; height: 6px; }
.tricolor i { flex: 1; display: block; }
.tricolor i:nth-child(1) { background: var(--sun); }
.tricolor i:nth-child(2) { background: var(--green); }
.tricolor i:nth-child(3) { background: var(--sky); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--navy); color: #fff;
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; border-radius: 50%; background: #fff; padding: 2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; font-stretch: 112%; }
.brand-text span { font-size: .78rem; color: var(--hero-muted); }

.nav { margin-left: auto; display: none; }
.nav ul { display: flex; gap: .15rem; }
.nav a {
  display: block; padding: .55rem .7rem; border-radius: 6px; color: #dbe5f6;
  text-decoration: none; font-size: .9rem; font-weight: 600; white-space: nowrap;
}
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav a[aria-current="true"] { color: #fff; box-shadow: inset 0 -3px 0 var(--sun); border-radius: 6px 6px 0 0; }

.header-tools { margin-left: auto; display: flex; gap: .4rem; align-items: center; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28); cursor: pointer; font: inherit;
}
.icon-btn:hover { background: rgba(255,255,255,.12); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
}

.menu-panel {
  display: none; background: var(--navy); border-top: 1px solid rgba(255,255,255,.14);
}
.menu-panel.open { display: block; }
.menu-panel ul { display: grid; padding-block: .5rem 1rem; }
.menu-panel a {
  display: block; padding: .8rem .25rem; color: #fff; text-decoration: none; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

@media (min-width: 1120px) {
  .nav { display: block; }
  .header-tools .menu-btn { display: none; }
  .header-tools { margin-left: .5rem; }
  .menu-panel { display: none !important; }
}

/* ---------- Accueil ---------- */
.hero { background: var(--hero-bg); color: var(--hero-fg); }
.hero-grid { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-weight: 800; font-size: var(--step-hero); font-stretch: 118%; letter-spacing: -0.015em; }
.hero h1 .w { display: flex; align-items: center; gap: .22em; }
.hero h1 .w::before {
  content: ""; width: .2em; height: .72em; border-radius: 2px; flex-shrink: 0;
  background: var(--c); transform-origin: left center; animation: grow .8s cubic-bezier(.2,.8,.2,1) both;
}
.hero h1 .w:nth-child(1) { --c: var(--sun); }
.hero h1 .w:nth-child(2) { --c: #3ea35f; }
.hero h1 .w:nth-child(2)::before { animation-delay: .12s; }
.hero h1 .w:nth-child(3) { --c: #5a9be0; }
.hero h1 .w:nth-child(3)::before { animation-delay: .24s; }
@keyframes grow { from { transform: scaleY(.1); opacity: .2; } to { transform: scaleY(1); opacity: 1; } }
.hero .tag { margin-top: 1.1rem; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); font-stretch: 100%; color: var(--hero-muted); }
.hero .intro { margin-top: 1.4rem; max-width: 56ch; font-size: var(--step-0); color: #e6edf9; }
.hero-actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.3rem; border-radius: 8px;
  font-weight: 700; text-decoration: none; font-size: 1rem; border: 2px solid transparent; cursor: pointer; font-family: var(--font-body);
}
.btn-primary { background: var(--sun); color: #1b1300; }
.btn-primary:hover { background: #ffb940; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-solid { background: var(--green); color: #fff; }
.btn-solid:hover { background: #166a35; }
.btn-line { border-color: var(--line); color: var(--fg); background: var(--surface); }
.btn-line:hover { border-color: var(--green); }

.badge { justify-self: center; width: min(72vw, 360px); }
.badge .disc {
  background: #fff; border-radius: 50%; padding: 4%; aspect-ratio: 1; display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(255,255,255,.1), 0 24px 60px rgba(0,0,0,.35);
}
.badge img { width: 100%; border-radius: 50%; }

.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts li { padding: 1.1rem 1rem 1.1rem 0; border-top: 1px solid var(--line); }
.facts li:nth-child(-n+2) { border-top: 0; }
.facts b { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); font-stretch: 112%; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .facts b { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .facts b { color: #fff; } }
.facts span { display: block; margin-top: .35rem; font-size: var(--step--1); color: var(--muted); }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .badge { width: min(100%, 380px); justify-self: end; }
  .facts ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts li { border-top: 0; border-left: 1px solid var(--line); padding: 1.4rem 1.2rem; }
  .facts li:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
.section.alt { background: var(--surface-2); }
.section-head { display: grid; gap: .9rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); max-width: 62ch; }
.section-head h2 { font-size: var(--step-3); font-weight: 800; font-stretch: 112%; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); font-size: var(--step-0); }
.section-head::after { content: ""; width: 72px; height: 6px; background: linear-gradient(90deg, var(--sun) 0 33%, var(--green) 33% 66%, var(--sky) 66% 100%); border-radius: 3px; order: -1; }

h3 { font-weight: 700; font-size: var(--step-1); font-stretch: 105%; }

/* Présentation */
.about { display: grid; gap: 2rem; }
.about .lead { font-size: var(--step-1); line-height: 1.5; font-family: var(--font-body); font-weight: 500; max-width: 46ch; }
.about .more { color: var(--muted); max-width: 60ch; display: grid; gap: 1rem; }
.values { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 2.2rem; }
.value { background: var(--surface); padding: 1.4rem 1.4rem 1.5rem; border-top: 6px solid var(--c); }
.value:nth-child(1) { --c: var(--sun); }
.value:nth-child(2) { --c: var(--green); }
.value:nth-child(3) { --c: var(--sky); }
.value h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.value p { color: var(--muted); font-size: .97rem; }

.sub { margin-top: clamp(2.8rem, 6vw, 4.5rem); }
.sub > h3 { font-size: var(--step-2); font-weight: 800; font-stretch: 110%; margin-bottom: .6rem; }
.sub > .note { color: var(--muted); max-width: 60ch; margin-bottom: 1.6rem; }

.officers { display: grid; gap: 1rem; margin-bottom: 1.2rem; }
.officer { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.3rem 1.4rem; }
.officer dt { font-size: .92rem; color: var(--muted); font-weight: 600; }
.officer dd { margin: .2rem 0 0; font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); font-stretch: 110%; line-height: 1.1; }
.officer .deputies { margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--line); font-size: .95rem; color: var(--muted); display: grid; gap: .25rem; }
.officer .deputies span { color: var(--fg); font-weight: 600; }

.roles { display: grid; gap: 1rem; }
.role { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.3rem; }
.role h4 { font-size: 1.05rem; font-weight: 700; font-stretch: 105%; margin-bottom: .5rem; }
.role p { font-size: .97rem; color: var(--muted); }
.role p b { color: var(--fg); font-weight: 700; }

@media (min-width: 760px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .officers { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.commissions { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.commission { display: grid; gap: .25rem; padding: 1rem 1.3rem; border-top: 1px solid var(--line); }
.commission:first-child { border-top: 0; }
.commission h4 { font-size: 1.05rem; font-weight: 700; font-stretch: 105%; }
.commission .who { color: var(--muted); font-size: .95rem; }
.commission .who b { color: var(--fg); }
.commission .what { font-size: .93rem; color: var(--muted); }
.commission .what:empty { display: none; }
@media (min-width: 860px) {
  .commission { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.5rem; align-items: baseline; }
}

details.sages { margin-top: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
details.sages summary { padding: 1rem 1.3rem; cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.sages summary::-webkit-details-marker { display: none; }
details.sages summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--link); }
details.sages[open] summary::after { content: "−"; }
details.sages ul { columns: 1; padding: 0 1.3rem 1.3rem; color: var(--muted); }
details.sages li { padding: .2rem 0; break-inside: avoid; }
@media (min-width: 640px) { details.sages ul { columns: 2; } }
@media (min-width: 960px) { details.sages ul { columns: 3; } }

/* Actualités */
.news { display: grid; gap: 1.2rem; }
.news article { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; display: grid; gap: .7rem; align-content: start; }
.news time { font-size: .92rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.news h3 { font-size: 1.3rem; }
.news p { color: var(--muted); }
.news .go { margin-top: .3rem; font-weight: 700; }
.news article:first-child { border-top: 6px solid var(--sun); }
.notice { margin-top: 1.5rem; padding: 1.1rem 1.3rem; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); background: var(--surface); }
.notice b { color: var(--fg); }
@media (min-width: 900px) {
  .news { grid-template-columns: 1.3fr 1fr 1fr; }
}

/* Réunions */
.meet { display: grid; gap: 2.5rem; }
.timeline { position: relative; display: grid; gap: 1.6rem; padding-left: 1.6rem; }
.timeline::before { content: ""; position: absolute; left: 5px; top: .5rem; bottom: .5rem; width: 2px; background: var(--line); }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1.6rem + 0px); top: .45rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--c, var(--green)); box-shadow: 0 0 0 4px var(--bg);
}
.section.alt .timeline li::before { box-shadow: 0 0 0 4px var(--surface-2); }
.timeline li:nth-child(1) { --c: var(--sun); }
.timeline li:nth-child(3) { --c: var(--sky); }
.timeline time { display: block; font-weight: 800; font-family: var(--font-display); font-stretch: 108%; }
.timeline h3 { font-size: 1.12rem; margin: .15rem 0 .3rem; font-family: var(--font-body); font-weight: 700; font-stretch: 100%; }
.timeline p { color: var(--muted); font-size: .98rem; }

.upcoming { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem 1.5rem; }
.upcoming h3 { margin-bottom: 1rem; }
.upcoming li { display: grid; gap: .1rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.upcoming li:first-of-type { border-top: 0; padding-top: 0; }
.upcoming strong { font-weight: 700; }
.upcoming span { color: var(--muted); font-size: .95rem; }
.rhythm { margin-top: 1rem; padding: .9rem 1.1rem; background: var(--chip-ok-bg); color: var(--chip-ok-fg); border-radius: 8px; font-weight: 600; font-size: .97rem; }
@media (min-width: 900px) { .meet { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; } }

/* Documents */
.docs { display: grid; gap: .9rem; }
.doc {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.2rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.3rem;
}
.doc .ext {
  width: 52px; height: 64px; border-radius: 6px; background: var(--navy); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: .85rem; letter-spacing: .02em; position: relative;
  border-bottom: 5px solid var(--sun);
}
.doc h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; font-stretch: 100%; }
.doc .meta { color: var(--muted); font-size: .92rem; margin-top: .2rem; }
.doc .btn { grid-column: 1 / -1; justify-content: center; }
@media (min-width: 720px) {
  .doc { grid-template-columns: auto minmax(0, 1fr) auto; }
  .doc .btn { grid-column: auto; }
}
.docs-note { margin-top: 1.4rem; color: var(--muted); font-size: .95rem; max-width: 70ch; }

/* Projets */
.projects { display: grid; gap: 1.1rem; }
.project { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem; display: grid; gap: .8rem; align-content: start; }
.project h3 { font-size: 1.2rem; }
.project p, .project li { color: var(--muted); font-size: .98rem; }
.project ul { display: grid; gap: .35rem; padding-left: 1.1rem; list-style: disc; }
.chip { justify-self: start; display: inline-block; padding: .22rem .65rem; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.chip.ok { background: var(--chip-ok-bg); color: var(--chip-ok-fg); }
.chip.plan { background: var(--chip-plan-bg); color: var(--chip-plan-fg); }
.chip.run { background: var(--chip-run-bg); color: var(--chip-run-fg); }
@media (min-width: 700px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.done { margin-top: clamp(2.5rem, 5vw, 4rem); }
.done h3 { font-size: var(--step-2); font-weight: 800; font-stretch: 110%; margin-bottom: 1.2rem; }
.done ul { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.done li { background: var(--surface); padding: 1.1rem 1.3rem; display: grid; gap: .25rem; }
.done li b { font-weight: 700; }
.done li span { color: var(--muted); font-size: .95rem; }
.done time { font-size: .88rem; font-weight: 700; color: var(--link); }
@media (min-width: 760px) { .done li { grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; align-items: baseline; } }

/* Partenaires */
.partners { display: grid; gap: 1.1rem; }
.partner { background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--c); border-radius: 10px; padding: 1.5rem; display: grid; gap: .6rem; align-content: start; }
.partner:nth-child(1) { --c: var(--navy); }
.partner:nth-child(2) { --c: var(--green); }
.partner:nth-child(3) { --c: var(--sun); }
:root[data-theme="dark"] .partner:nth-child(1) { --c: var(--sky); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .partner:nth-child(1) { --c: var(--sky); } }
.partner p { color: var(--muted); }
.join { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; background: var(--navy); color: #fff; border-radius: 10px; padding: 1.6rem 1.8rem; }
.join p { max-width: 52ch; font-size: var(--step-0); color: #e6edf9; }
.join strong { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); display: block; margin-bottom: .3rem; color: #fff; }
@media (min-width: 860px) { .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Contact */
.contact { display: grid; gap: 2rem; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.6rem; display: grid; gap: 1.1rem; align-content: start; }
.contact-card dl { display: grid; gap: .9rem; margin: 0; }
.contact-card dt { font-size: .9rem; color: var(--muted); font-weight: 600; }
.contact-card dd { margin: .1rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
form.msg { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.6rem; display: grid; gap: 1rem; align-content: start; }
form.msg h3 { font-size: 1.3rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .75rem .85rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.form-status { min-height: 1.4em; font-size: .95rem; color: var(--muted); }
@media (min-width: 860px) { .contact { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2.5rem; } }

/* Pied de page */
.site-footer { background: var(--navy); color: #d6e0f2; margin-top: 0; }
.site-footer .wrap { display: grid; gap: 1.5rem; padding-block: 2.5rem; }
.foot-brand { display: flex; gap: 1rem; align-items: center; }
.foot-brand img { width: 64px; height: 64px; border-radius: 50%; background: #fff; padding: 3px; }
.foot-brand strong { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: #fff; display: block; font-stretch: 110%; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.site-footer a { color: #d6e0f2; }
.site-footer small { color: #aab9d3; }
@media (min-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } .site-footer small { grid-column: 1 / -1; } }

.to-top { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; background: var(--navy); border-color: rgba(255,255,255,.4); }
.to-top.show { opacity: 1; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 .w::before { animation: none; }
  .to-top { transition: none; }
}

@media print {
  .site-header, .to-top, .menu-panel { display: none; }
  body { background: #fff; color: #000; }
}
