/* =========================================================
   Gestavia Sàrl, fiduciaire à Estavayer-le-Lac
   Palette « Lac & molasse »
   ========================================================= */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin.woff2") format("woff2-variations"), url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2-variations"), url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --lac-nuit: #0C2A2F;
  --lac: #12393F;
  --lac-clair: #2F6E73;
  --molasse: #E7E5D8;
  --molasse-sombre: #D9D6C5;
  --feuille: #F5F4EE;
  --encre: #10292D;
  --encre-douce: #3D5458;
  --cuivre: #8E4F24;
  --cuivre-clair: #D09062;
  --trait: rgba(16, 41, 45, .16);
  --trait-clair: rgba(231, 229, 216, .22);
  --ok: #7CC79B;
  --erreur: #A1252B;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 5vw, 56px);
  --header-h: 76px;
  --radius: 6px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--molasse);
  font-stretch: 100%;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 620; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.25rem + 2.6vw, 3.25rem); font-stretch: 110%; letter-spacing: -.012em; }
h3 { font-size: 1.375rem; font-stretch: 104%; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: fixed; left: 12px; top: -100px; z-index: 100;
  background: var(--molasse); color: var(--lac);
  padding: .7rem 1rem; border-radius: var(--radius);
  font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--cuivre);
  outline-offset: 3px;
  border-radius: 3px;
}
.hero :focus-visible,
.pour-qui :focus-visible,
.site-footer :focus-visible,
.quickbar :focus-visible,
.site-header:not(.is-solid) :focus-visible,
.nav-open .nav :focus-visible { outline-color: var(--cuivre-clair); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 48px;
  padding: .8em 1.3em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; flex: none; }
.btn-light { background: var(--molasse); color: var(--lac); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: rgba(231,229,216,.55); color: var(--molasse); }
.btn-ghost:hover { border-color: var(--molasse); background: rgba(231,229,216,.08); }
.btn-dark { background: var(--lac); color: var(--molasse); }
.btn-dark:hover { background: var(--lac-clair); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--molasse);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.site-header.is-solid {
  background: rgba(231, 229, 216, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--lac);
  box-shadow: 0 1px 0 var(--trait);
}
.header-in {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-mark path { fill: none; stroke-linecap: round; }
.brand-mark .m-g { stroke: currentColor; stroke-width: 4.4; }
.brand-mark .m-l { stroke: var(--cuivre-clair); stroke-width: 3.2; }
.is-solid .brand-mark .m-l { stroke: var(--cuivre); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.45rem; font-weight: 650; font-stretch: 120%; letter-spacing: .01em; }
.brand-sub { font-size: .8rem; opacity: .85; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  text-decoration: none; font-weight: 520;
  padding: .4rem 0;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat;
  transition: background-size .25s;
}
.nav ul a:hover, .nav ul a[aria-current="true"] { background-size: 100% 2px; }
.btn-call { min-height: 42px; padding: .55em 1em; background: var(--molasse); color: var(--lac); }
.btn-call:hover { background: #fff; }
.is-solid .btn-call { background: var(--lac); color: var(--molasse); }
.is-solid .btn-call:hover { background: var(--lac-clair); }

.menu-btn {
  display: none;
  align-items: center; gap: .55rem;
  min-height: 44px; padding: .4rem .2rem .4rem .6rem;
  background: none; border: 0; color: inherit; font: inherit; font-weight: 600; cursor: pointer;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .3s, background-color .2s;
}
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -7px; }
.menu-bars::after { top: 7px; }
.nav-open .menu-bars { background: transparent; }
.nav-open .menu-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--lac);
  color: var(--molasse);
  overflow: hidden;
  isolation: isolate;
  --sky-w: min(58vw, 640px);
  --water: clamp(110px, 20vh, 220px);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-in {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(32px, 9vh, 110px));
  padding-bottom: calc(var(--sky-w) * .2033 + var(--water) + 32px);
}
.hero-kicker { font-size: 1.0625rem; font-weight: 500; color: var(--cuivre-clair); margin-bottom: 1.1rem; }
.hero-title {
  font-size: clamp(2.6rem, 1rem + 6.2vw, 6.6rem);
  font-weight: 640;
  font-stretch: 112%;
  line-height: .98;
  letter-spacing: -.02em;
  max-width: 11.5em;
  margin-bottom: 1.6rem;
}
.hero-lead { font-size: clamp(1.0625rem, .95rem + .45vw, 1.3rem); max-width: 34em; color: rgba(231,229,216,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.4rem; }

.status { display: inline-flex; align-items: center; gap: .6rem; font-size: .95rem; margin: 0; }
.status[hidden] { display: none; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cuivre-clair); flex: none; }
.status.is-open .status-dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(124,199,155,.22); }
.status-dark .status-dot { background: var(--cuivre); }
.status-dark.is-open .status-dot { background: #2E8B57; box-shadow: 0 0 0 4px rgba(46,139,87,.18); }

.skyline {
  position: absolute;
  right: var(--gutter);
  bottom: var(--water);
  width: var(--sky-w);
  height: auto;
  overflow: visible;
}
.skyline path { fill: none; stroke: var(--molasse); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.skyline .sky-win { stroke: var(--cuivre-clair); stroke-width: 2; }

.anim-toggle {
  position: absolute; right: var(--gutter); bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 40px; padding: .4rem .8rem;
  background: rgba(12,42,47,.55); color: var(--molasse);
  border: 1px solid var(--trait-clair); border-radius: var(--radius);
  font: inherit; font-size: .85rem; cursor: pointer;
}
.anim-toggle:hover { background: rgba(12,42,47,.85); }
.anim-toggle[hidden] { display: none; }
.anim-ico { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.anim-toggle[aria-pressed="true"] .anim-ico { border: 0; border-left: 10px solid currentColor; border-block: 6px solid transparent; width: 0; height: 0; }

/* Séquence d'ouverture : uniquement si JS actif et mouvement autorisé */
.anim .hero-kicker, .anim .hero-lead, .anim .hero-actions, .anim .hero .status, .anim .hero-title { opacity: 0; }
.anim .skyline path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.anim .play .hero-kicker { animation: fade .8s .2s ease-out forwards; }
.anim .play .hero-title { animation: widen 1.5s .45s cubic-bezier(.16,.8,.2,1) forwards; }
.anim .play .hero-lead { animation: fade .9s 1.3s ease-out forwards; }
.anim .play .hero-actions { animation: fade .9s 1.5s ease-out forwards; }
.anim .play .status { animation: fade .9s 1.7s ease-out forwards; }
.anim .play .skyline path { animation: trace 2.4s .6s cubic-bezier(.45,.05,.2,1) forwards; }
.anim .play .skyline .sky-win { animation-delay: 2.4s; animation-duration: .8s; }

@keyframes fade { to { opacity: 1; } }
@keyframes widen {
  from { opacity: 0; font-stretch: 62%; letter-spacing: .02em; }
  30% { opacity: 1; }
  to { opacity: 1; }
}
@keyframes trace { to { stroke-dashoffset: 0; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 11vw, 140px); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 4rem; align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head p { max-width: 34em; color: var(--encre-douce); font-size: 1.125rem; margin: 0; }

/* Prestations : un registre, avec sa double marge cuivre */
.ledger {
  list-style: none; margin: 0; padding: 0;
  position: relative;
  border-top: 1px solid var(--trait);
  --tick-col: 56px;
  --gap: 2.5rem;
}
.ledger::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: calc(var(--tick-col) + var(--gap) / 2 - 2px);
  width: 5px; border-inline: 1px solid var(--cuivre); opacity: .55;
}
.ledger-row {
  display: grid;
  grid-template-columns: var(--tick-col) minmax(0, .85fr) minmax(0, 1.25fr);
  column-gap: var(--gap);
  align-items: baseline;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--trait);
}
.ledger-row h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.75rem); }
.ledger-row p { margin: 0; color: var(--encre-douce); max-width: 38em; }
.tick { width: 34px; height: 26px; justify-self: end; align-self: center; }
.tick path { fill: none; stroke: var(--cuivre); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.anim .tick path { stroke-dashoffset: 1; transition: stroke-dashoffset .6s cubic-bezier(.5,0,.2,1); }
.anim .ledger-row.is-checked .tick path { stroke-dashoffset: 0; }

/* Pour qui */
.pour-qui { background: var(--lac); color: var(--molasse); }
.pour-qui h2 { margin-bottom: clamp(40px, 6vw, 72px); max-width: 14em; }
.qui-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qui { padding: .25rem 1.75rem 1rem; border-left: 1px solid var(--trait-clair); }
.qui-ico { width: 46px; height: 46px; margin-bottom: 1.25rem; }
.qui-ico path, .qui-ico circle { fill: none; stroke: var(--cuivre-clair); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.qui h3 { margin-bottom: .6rem; }
.qui p { color: rgba(231,229,216,.82); margin: 0; }

/* Le bureau */
.bureau-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem clamp(40px, 7vw, 110px); align-items: start; }
.bureau-text h2 { margin-bottom: 1.75rem; }
.bureau-text p { font-size: 1.175rem; max-width: 33em; }
.signature { display: flex; align-items: center; gap: .9rem; font-weight: 600; margin-top: 2rem; }
.signature::before { content: ""; width: 2.5rem; height: 2px; background: var(--cuivre); }

.horaires {
  background: var(--feuille);
  border: 1px solid var(--trait);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.horaires h3 { margin-bottom: 1rem; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-bottom: 1.25rem; }
.hours th, .hours td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--trait); font-weight: 400; vertical-align: top; }
.hours th { font-weight: 600; width: 34%; }
.hours tr.is-today { background: rgba(47,110,115,.1); }
.hours tr.is-today th { box-shadow: inset 3px 0 0 var(--cuivre); }
.today-tag { display: block; font-size: .8rem; font-weight: 500; color: var(--lac-clair); }

/* Contact */
.contact { background: var(--molasse-sombre); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3rem clamp(40px, 7vw, 110px); align-items: start; }
.coords h2 { margin-bottom: 1.25rem; }
.coords-intro { font-size: 1.125rem; color: var(--encre-douce); max-width: 30em; margin-bottom: 2rem; }
.coord-list { list-style: none; margin: 0; padding: 0; }
.coord-list li { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--trait); }
.coord-list svg { width: 24px; height: 24px; flex: none; margin-top: 1.4rem; fill: none; stroke: var(--lac-clair); stroke-width: 1.7; stroke-linejoin: round; }
.coord-label { display: block; font-size: .875rem; font-weight: 600; color: var(--lac-clair); }
.coord-list a { font-size: 1.15rem; font-weight: 560; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.coord-list a.coord-more { display: block; width: fit-content; margin-top: .3rem; font-size: 1rem; color: var(--lac-clair); }

.form {
  background: var(--feuille);
  border: 1px solid var(--trait);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
}
.form h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.form-help { font-size: .95rem; color: var(--encre-douce); }
.field { margin-bottom: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
label { display: block; font-weight: 600; margin-bottom: .35rem; }
.opt { font-weight: 400; color: var(--encre-douce); }
input, select, textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--encre);
  background: #fff;
  border: 1.5px solid #74827C;
  border-radius: 4px;
  padding: .75rem .85rem;
  min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 140px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2312393F' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; padding-right: 2.5rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lac); box-shadow: 0 0 0 3px rgba(47,110,115,.3); }
[aria-invalid="true"] { border-color: var(--erreur); }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(161,37,43,.22); }
.field-hint { font-size: .875rem; color: var(--encre-douce); margin: .35rem 0 0; }
.field-error { display: flex; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--erreur); margin: .35rem 0 0; }
.field-error::before { content: "!"; flex: none; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--erreur); color: #fff; font-size: .75rem; display: grid; place-items: center; margin-top: .15rem; }
.field-error[hidden] { display: none; }
.form-errors { border-left: 4px solid var(--erreur); background: #F7E9E6; padding: 1rem 1.2rem; margin-bottom: 1.5rem; border-radius: 0 4px 4px 0; }
.form-errors[hidden] { display: none; }
.form-errors-title { font-weight: 600; margin-bottom: .4rem; }
.form-errors ul { margin: 0; padding-left: 1.2rem; }
.form-errors a { color: var(--erreur); font-weight: 600; }
.form-note { font-size: .9rem; color: var(--encre-douce); max-width: 40em; }
.form-done { margin-top: 1.5rem; padding: 1rem 1.2rem; border-left: 4px solid #2E8B57; background: #E6F1EA; border-radius: 0 4px 4px 0; }
.form-done[hidden] { display: none; }
.form-done p:last-child { margin: 0; }

/* Pied de page */
.site-footer { background: var(--lac-nuit); color: rgba(231,229,216,.85); padding-block: 48px; font-size: .95rem; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.footer-brand { display: flex; gap: .9rem; align-items: center; color: var(--molasse); }
.footer-brand p, .footer-legal { margin: 0; }
.footer-nav { display: flex; flex-direction: column; gap: .4rem; }
.footer-nav a { text-underline-offset: 3px; }

/* Barre d'actions mobile */
.quickbar { display: none; }

/* ---------- Page secondaire ---------- */
.page-hero { background: var(--lac); color: var(--molasse); padding: calc(var(--header-h) + 64px) 0 56px; }
.page-hero h1 { font-size: clamp(2.2rem, 1.2rem + 4vw, 4rem); font-stretch: 110%; }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 2.5rem 0 .8rem; }
.prose ul { padding-left: 1.2rem; }
.prose .placeholder { background: #F2E3C9; padding: 0 .3em; border-radius: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section-head, .bureau-grid, .contact-grid { grid-template-columns: 1fr; }
  .qui-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .ledger-row { grid-template-columns: var(--tick-col) minmax(0, 1fr); row-gap: .5rem; }
  .ledger-row p { grid-column: 2; }
  .tick { grid-row: 1; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 2.5rem;
    padding: var(--header-h) var(--gutter) 40px;
    background: var(--lac); color: var(--molasse);
    visibility: hidden; opacity: 0;
    transition: opacity .3s, visibility 0s .3s;
  }
  .nav ul { flex-direction: column; gap: .5rem; }
  .nav ul a { font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 600; font-stretch: 112%; display: inline-block; }
  .nav-open .nav { visibility: visible; opacity: 1; transition: opacity .3s; }
  .nav-open .nav li { animation: slidein .5s both cubic-bezier(.2,.7,.2,1); }
  .nav-open .nav li:nth-child(2) { animation-delay: .05s; }
  .nav-open .nav li:nth-child(3) { animation-delay: .1s; }
  .nav-open .nav li:nth-child(4) { animation-delay: .15s; }
  .nav-open .site-header, .site-header.nav-open { background: transparent; color: var(--molasse); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.nav-open .brand-mark .m-l { stroke: var(--cuivre-clair); }
  .nav .btn-call { background: var(--molasse); color: var(--lac); font-size: 1.1rem; }
  .brand-sub { display: none; }
}
@keyframes slidein { from { opacity: 0; transform: translateX(-24px); } }

@media (max-width: 760px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .quickbar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; inset: auto 0 0 0; z-index: 40;
    background: var(--lac-nuit); color: var(--molasse);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -1px 0 var(--trait-clair);
  }
  .quickbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
    min-height: 64px; text-decoration: none; font-size: .85rem; font-weight: 600;
  }
  .quickbar a + a { border-left: 1px solid var(--trait-clair); }
  .quickbar svg { width: 22px; height: 22px; fill: none; stroke: var(--cuivre-clair); stroke-width: 1.8; stroke-linejoin: round; }
  .hero-title { font-stretch: 100%; letter-spacing: -.025em; }
  .hero { --sky-w: calc(100vw - var(--gutter)); --water: 92px; min-height: calc(100svh - 64px - env(safe-area-inset-bottom)); }
  .skyline { right: 0; }
  .anim-toggle { bottom: 12px; font-size: .8rem; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}

@media (max-width: 560px) {
  .qui-grid { grid-template-columns: 1fr; row-gap: 0; }
  .qui { border-left: 0; border-top: 1px solid var(--trait-clair); padding: 1.75rem 0; display: grid; grid-template-columns: 46px 1fr; column-gap: 1.25rem; }
  .qui-ico { grid-row: span 2; margin: 0; }
  .ledger { --tick-col: 34px; --gap: 1.6rem; }
  .tick { width: 26px; height: 20px; }
  .hours th { width: auto; }
  .hours th, .hours td { padding-inline: .3rem; font-size: .95rem; }
  .hours td:not([colspan]) { white-space: nowrap; }
  .hours td[colspan] { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .quickbar, .hero-canvas, .anim-toggle, .form { display: none !important; }
  .hero { min-height: 0; background: none; color: #000; }
}
