/* The site's only stylesheet, written by hand. Shared by the public site and the admin. */

/* ---------- Tokens ---------- */
:root {
  --navy-950: #0b1a33;
  --navy-900: #13284d;
  --navy-800: #1d3866;
  --ink: #1f2d47;
  --muted: #4b5975;
  --on-dark: #c5d0e3;
  --line: #dbe2ee;
  --soft: #f3f6fb;
  --white: #ffffff;
  --green-800: #166534;
  --green-700: #15803d;
  --green-400: #4ade80;
  --green-50: #e8f6ee;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(11 26 51 / 6%), 0 8px 24px rgb(11 26 51 / 6%);
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--green-700);
  --container: 72rem;

  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 100%;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

h1,
h2,
h3 {
  color: var(--navy-900);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 750;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--green-800);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--navy-900);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--white);
  color: var(--navy-950);
  font-weight: 700;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Header and navigation ---------- */
.site-header {
  background: var(--navy-950);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 5;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  min-height: 4.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--white);
}

.logo {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--on-dark);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--white);
  background: var(--navy-800);
}

.site-nav a[aria-current="page"] {
  color: var(--white);
  box-shadow: inset 0 -2px 0 var(--green-400);
  border-radius: 0;
}

.site-nav a.nav-cta {
  margin-left: 0.5rem;
  background: var(--green-700);
  color: var(--white);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
}

.site-nav a.nav-cta:hover {
  background: var(--green-800);
}

.site-nav a.nav-cta[aria-current="page"] {
  box-shadow: none;
}

.site-header :focus-visible {
  box-shadow: 0 0 0 3px var(--green-400);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--navy-800);
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Narrow screens: the script collapses the navigation behind the Menu button. Without the script it stays open. */
@media (max-width: 60rem) {
  .has-menu-script .menu-toggle {
    display: inline-flex;
  }

  .has-menu-script .site-nav {
    display: none;
    width: 100%;
    padding-bottom: 1rem;
  }

  .has-menu-script.menu-open .site-nav {
    display: block;
  }

  .has-menu-script .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .has-menu-script .site-nav a {
    padding: 0.8rem 0.75rem;
    font-size: 1.05rem;
  }

  .site-nav a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--green-400);
  }

  .has-menu-script .site-nav a.nav-cta {
    margin: 0.5rem 0 0;
    text-align: center;
  }
}

/* ---------- Buttons and links ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.button-primary {
  background: var(--green-700);
  color: var(--white);
}

.button-primary:hover {
  background: var(--green-800);
  color: var(--white);
}

.button-secondary {
  border-color: var(--navy-900);
  color: var(--navy-900);
  background: var(--white);
}

.button-secondary:hover {
  background: var(--navy-900);
  color: var(--white);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  text-decoration: none;
}

.more-link .icon {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.15s;
}

.more-link:hover .icon {
  transform: translateX(3px);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--soft) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-split .hero-inner {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.hero-text {
  max-width: 44rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-800);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lead {
  font-size: clamp(1.075rem, 1rem + 0.35vw, 1.25rem);
  color: var(--muted);
}

.illustration {
  display: block;
  width: 100%;
  height: auto;
}

.hero-art .illustration {
  max-width: 30rem;
  margin: 0 auto;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3rem, 2rem + 4vw, 5rem) 0;
}

.section-soft {
  background: var(--soft);
}

.section-dark {
  background: var(--navy-950);
  color: var(--on-dark);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--muted);
}

.section-dark .section-intro {
  color: var(--on-dark);
}

.section-more {
  margin: 2rem 0 0;
}

.grid {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card p:last-child {
  margin-bottom: 0;
}

.card > p {
  color: var(--muted);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-800);
}

.card-icon-large {
  width: 3.5rem;
  height: 3.5rem;
}

.card-service {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-top: 4px solid var(--green-700);
}

.card-service h3 {
  font-size: 1.4rem;
}

.card-service .checklist {
  margin-bottom: 1.5rem;
}

.card-service .more-link {
  margin-top: auto;
}

.section-dark .card {
  background: var(--navy-900);
  border-color: var(--navy-800);
  box-shadow: none;
}

.section-dark .card > p {
  color: var(--on-dark);
}

.section-dark .card-icon {
  background: rgb(74 222 128 / 12%);
  color: var(--green-400);
}

.checklist {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.icon-check {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  padding: 0.15rem;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
  stroke-width: 3;
}

.section-dark .checklist {
  max-width: 48rem;
  gap: 1rem;
  font-size: 1.075rem;
}

.section-dark .icon-check {
  background: rgb(74 222 128 / 15%);
  color: var(--green-400);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.5rem;
  padding-top: 4.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--green-400);
  font-weight: 800;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.steps-timeline {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: 48rem;
}

.steps-timeline .step {
  padding: 0 0 2rem 4rem;
  border: 0;
  background: none;
}

.steps-timeline .step::before {
  top: 0;
  left: 0;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.1rem;
}

/* The line joining one step to the next. */
.steps-timeline .step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 3.25rem;
  bottom: 0.5rem;
  left: calc(1.375rem - 1px);
  width: 2px;
  background: var(--line);
}

.steps-timeline .step h3 {
  padding-top: 0.55rem;
}

/* ---------- Split layouts, figures, notes ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.split-text {
  align-items: start;
}

.split-art {
  margin: 0;
}

.split-art .illustration {
  max-width: 26rem;
  margin: 0 auto;
}

figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.stack {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.stack h3 {
  margin-bottom: 0.35rem;
}

.stack p {
  margin: 0;
  color: var(--muted);
}

.note {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--green-700);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--soft);
}

.callout {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.callout .icon {
  color: var(--green-700);
}

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
}

th,
td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: var(--soft);
  color: var(--navy-900);
  font-size: 0.9rem;
}

tbody th {
  color: var(--navy-900);
  white-space: nowrap;
}

tbody tr:last-child > * {
  border-bottom: 0;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 50rem;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  color: var(--navy-900);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--green-700);
  font-size: 1.4rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 0;
  padding: 0 1.5rem 1.25rem;
  color: var(--muted);
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.about-portrait {
  margin: 0;
}

.portrait {
  display: block;
  width: 100%;
  max-width: 16rem;
  height: auto;
  margin: 0 auto;
}

/* ---------- Call to action band ---------- */
.cta {
  padding: 0 0 clamp(3rem, 2rem + 4vw, 5rem);
}

.section-soft + .cta,
.section-dark + .cta {
  padding-top: clamp(3rem, 2rem + 4vw, 5rem);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
}

.cta-inner > div {
  flex: 1 1 26rem;
}

.cta .container {
  max-width: calc(var(--container) - 2.5rem);
  padding: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--navy-950);
  color: var(--on-dark);
}

.cta h2 {
  color: var(--white);
}

.cta p {
  margin: 0;
  font-size: 1.1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--on-dark);
  padding: 3rem 0;
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
}

.footer-brand p {
  max-width: 24rem;
  margin: 1rem 0 0;
}

.site-footer h2 {
  margin-bottom: 0.75rem;
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--on-dark);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer :focus-visible {
  box-shadow: 0 0 0 3px var(--green-400);
}

/* ---------- Responsive ---------- */
@media (max-width: 60rem) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-split .hero-inner,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-art .illustration {
    max-width: 24rem;
  }
}

@media (max-width: 40rem) {
  /* Tables become one card per row, each cell introduced by its column name. */
  table,
  tbody,
  tr,
  th,
  td {
    display: block;
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody tr {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
  }

  tbody th,
  tbody td {
    padding: 0.25rem 0;
    border: 0;
    white-space: normal;
  }

  tbody th {
    font-size: 1.05rem;
  }

  td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--navy-900);
    font-size: 0.85rem;
    font-weight: 700;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .about {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .portrait {
    max-width: 10rem;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .actions .button {
    width: 100%;
  }

  .cta .container {
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ---------- Admin: same tokens, plain layout ---------- */
.admin .site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
}

.admin .site-header form {
  margin: 0;
}

.admin .site-header button {
  padding: 0.45rem 1rem;
  border: 1px solid var(--on-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.admin .site-header button:hover {
  background: var(--navy-800);
}

.admin main {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.admin main h1 {
  font-size: 1.75rem;
}

.admin main form {
  display: grid;
  gap: 0.5rem;
  max-width: 24rem;
}

.admin label {
  font-weight: 600;
  color: var(--navy-900);
}

.admin input:not([type="hidden"]),
.admin select,
.admin textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid #7d8aa3;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.admin main button[type="submit"] {
  justify-self: start;
  margin-top: 0.5rem;
  padding: 0.65rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--green-700);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin main button[type="submit"]:hover {
  background: var(--green-800);
}

.admin [role="alert"] {
  padding: 0.75rem 1rem;
  border-left: 4px solid #b91c1c;
  border-radius: 0 8px 8px 0;
  background: #fdecec;
  color: #7f1d1d;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy-800);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pricing-card-featured {
  border-color: var(--green-700);
  border-top-color: var(--green-700);
  box-shadow: 0 0 0 1px var(--green-700), var(--shadow);
}

.pricing-card h3 {
  font-size: 1.4rem;
}

.pricing-tagline {
  color: var(--muted);
}

.price-lines {
  display: grid;
  gap: 0;
  margin: 0.5rem 0 1.5rem;
}

.price-line {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.price-line:first-child {
  border-top: 1px solid var(--line);
}

.price-line dt {
  color: var(--navy-900);
  font-weight: 700;
}

.price-line dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

.price-amount {
  color: var(--navy-900);
  font-size: 1.35rem;
  font-weight: 800;
  white-space: nowrap;
}

.price-from,
.price-unit {
  font-size: 0.9rem;
}

.pricing-card h4 {
  margin: 0 0 0.75rem;
  color: var(--navy-900);
  font-size: 1rem;
}

.pricing-card .checklist {
  margin-bottom: 1.75rem;
}

.pricing-action {
  margin-top: auto;
}

.pricing-action .button {
  width: 100%;
  text-align: center;
}

@media (max-width: 60rem) {
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 34rem;
  }
}

/* ---------- Admin: pricing forms ---------- */
.admin main form.pricing-form {
  max-width: none;
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.pricing-form h2 {
  font-size: 1.3rem;
}

.pricing-form fieldset {
  margin: 0.75rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.pricing-form legend {
  padding: 0 0.4rem;
  color: var(--navy-900);
  font-weight: 700;
}

.pricing-form .hint {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin main:has(.pricing-form) {
  max-width: 64rem;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.6fr) auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row .checkbox {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  padding-top: 2.2rem;
  white-space: nowrap;
}

.admin .price-row .checkbox input {
  width: auto;
}

.field-error {
  margin: 0.25rem 0 0;
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 600;
}

.admin [aria-invalid="true"] {
  border-color: #b91c1c;
}

.admin-saved {
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--green-700);
  border-radius: 0 8px 8px 0;
  background: var(--green-50);
  color: var(--green-800);
}

@media (max-width: 40rem) {
  .price-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .price-row .checkbox {
    padding-top: 0;
  }
}

/* ---------- Contact form ---------- */
/* The form posts back to #formulaire: keep its heading clear of the sticky header. */
#formulaire {
  scroll-margin-top: 4rem;
}

.contact-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  max-width: 46rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.field label {
  font-weight: 600;
  color: var(--navy-900);
}

.contact-form input:not([type="checkbox"]),
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #7d8aa3;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  border-color: var(--green-700);
}

.field-invalid input,
.field-invalid select,
.field-invalid textarea {
  border-color: #b91c1c;
  border-width: 2px;
}

.field-error {
  margin: 0;
  color: #b91c1c;
  font-size: 0.95rem;
  font-weight: 600;
}

.field-check {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.75rem;
}

.field-check input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.2rem 0 0;
  accent-color: var(--green-700);
}

.field-check label {
  font-weight: 400;
  color: var(--ink);
}

.field-check .field-error {
  grid-column: 2;
}

.contact-form button {
  justify-self: start;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.form-alert {
  padding: 0.9rem 1.1rem;
  border-left: 4px solid #b91c1c;
  border-radius: 0 8px 8px 0;
  background: #fdecec;
  color: #7f1d1d;
}

.form-alert p,
.form-alert ul {
  margin: 0;
}

.form-alert ul {
  padding-left: 1.25rem;
}

.form-alert a {
  color: #7f1d1d;
  font-weight: 600;
}

/* The robot trap: off screen rather than display:none, which some robots detect. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 40rem) {
  .contact-form {
    padding: 1.25rem;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-form button {
    justify-self: stretch;
  }
}

/* Sample report on the Surveillance page */
.stack p + p {
  margin-top: 0.75rem;
}

/* ---------- Contact details, legal pages, identity settings (ticket 05) ---------- */
.contact-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 1.1rem;
}

.contact-label {
  display: inline-block;
  min-width: 7rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-inner {
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
}

.footer-contact .contact-label {
  display: block;
  min-width: 0;
  color: var(--on-dark);
  font-size: 0.8rem;
  font-weight: 400;
}

.footer-contact a,
.footer-contact li {
  overflow-wrap: anywhere;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-800);
}

.footer-legal p {
  margin: 0;
}

.site-footer .footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: 1.35rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.4rem 1.5rem;
  margin: 1rem 0 0;
}

.prose dt {
  color: var(--navy-900);
  font-weight: 700;
}

.prose dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.to-complete {
  padding: 0 0.3rem;
  border-radius: 4px;
  background: #fde68a;
  color: #713f12;
  font-weight: 700;
}

.admin-warning {
  margin-bottom: 2rem;
}

.admin-warning p {
  margin: 0;
}

.admin-warning p + p {
  margin-top: 0.4rem;
}

.admin-warning a {
  color: inherit;
}

.admin [role="status"] {
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--green-700);
  border-radius: 0 8px 8px 0;
  background: var(--green-50);
  color: var(--green-800);
}

.admin main form.settings-form {
  gap: 1.25rem;
  max-width: 32rem;
}

/* .field and .field-error come from the contact form above. */
.admin .field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin [aria-invalid="true"] {
  border-color: #b91c1c;
}

@media (max-width: 60rem) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 40rem) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .prose dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }

  .prose dd + dt {
    margin-top: 0.6rem;
  }
}

/* ---------- Admin: contact messages ---------- */
.admin-messages {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.admin-messages li {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.admin-messages span {
  color: var(--muted);
}

.admin-status {
  justify-self: start;
  margin: 0.25rem 0 0;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-status-new {
  background: var(--green-50);
  color: var(--green-800);
}

.admin-message {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  margin: 1.5rem 0;
}

.admin-message dt {
  font-weight: 600;
  color: var(--navy-900);
}

.admin-message dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Keeps the visitor's line breaks. */
.admin-message-text {
  white-space: pre-line;
}

@media (max-width: 40rem) {
  .admin-message {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .admin-message dd {
    margin-bottom: 0.6rem;
  }
}

/* ---------- Guides ---------- */
.guide-list h3 {
  font-size: 1.1rem;
}

.guide-list h3 a {
  color: var(--navy-900);
  text-decoration: none;
}

.guide-list h3 a:hover {
  color: var(--green-800);
  text-decoration: underline;
}

.guide-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "\203A";
  margin-right: 0.5rem;
  color: var(--muted);
}

.byline {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.guide-body {
  font-size: 1.05rem;
}

.guide-body h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.guide-body ol {
  padding-left: 1.25rem;
}

.guide-body ol li + li {
  margin-top: 0.6rem;
}

.guide-body code {
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  background: var(--soft);
  font-size: 0.95em;
  overflow-wrap: anywhere;
}

.guide-body .faq {
  margin-top: 1rem;
}
