/* Armen Studio — feuille de style unique.
   Palette et typographies prolongées depuis armen-photo.fr :
   papier chaud, encre brune, terracotta ; Playfair Display + Questrial (auto-hébergées). */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Questrial";
  src: url("../fonts/questrial-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --paper: #f4f2ed;
  --ink: #32302d;
  --dim: #5f6068;
  --rule: #cbc4ba;
  --line: #8a8378; /* bordures de champs : 3:1 minimum */
  --accent: #8c4f3a;
  --accent-deep: #6f3b2b;
  --on-accent: #f4f2ed;
  --todo-bg: #f6e3a1;
  --todo-ink: #32302d;

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: "Questrial", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 0.5rem + 3.5vw, 3rem);
  --wrap: 82rem;
  --section: clamp(4.5rem, 2.5rem + 7vw, 9rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scrollbar-color: var(--line) var(--paper);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
}
img,
picture,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
h1 em,
h2 em {
  font-style: normal;
  color: var(--accent);
}
p {
  margin: 0;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}
.skip {
  position: absolute;
  left: var(--gutter);
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1rem;
  z-index: 100;
  text-decoration: none;
}
.skip:focus {
  transform: none;
}
.skip:hover {
  color: var(--paper);
}
.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* Repères à compléter (TODO) — visibles volontairement */
.todo {
  background: var(--todo-bg);
  color: var(--todo-ink);
  padding: 0 0.3em;
  border-radius: 2px;
  font-size: 0.92em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3rem;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn:hover {
  background: var(--accent-deep);
  color: var(--on-accent);
}
.btn svg {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.35s var(--ease);
}
.btn:hover svg {
  transform: translateX(4px);
}
.btn--small {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}
.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.link:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

/* ---------- En-tête ---------- */
.top {
  position: relative;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.brand i {
  font-weight: 400;
  color: var(--accent);
}
.nav {
  display: none;
}
.nav ul {
  display: flex;
  gap: 2rem;
}
.nav a {
  text-decoration: none;
  font-size: 0.98rem;
  color: var(--dim);
  padding: 0.5rem 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease), color 0.2s ease;
}
.nav a:hover {
  color: var(--ink);
  background-size: 100% 1px;
}
@media (min-width: 62rem) {
  .nav {
    display: block;
  }
  .top {
    position: sticky;
    top: 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.hero__photo {
  margin: 0;
  order: -1;
}
.hero__frame {
  aspect-ratio: 4 / 5;
  max-height: 46svh;
  width: 100%;
  overflow: hidden;
  background: var(--rule);
  animation: reveal 0.9s var(--ease) both;
}
.hero__frame picture {
  height: 100%;
}
.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__photo figcaption {
  padding: 0.7rem var(--gutter) 0;
}
.hero__text {
  padding: 2.25rem var(--gutter) 3rem;
}
.hero h1 {
  font-size: clamp(2.45rem, 1.4rem + 5.2vw, 5.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 14ch;
}
.hero__lead {
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.55;
  color: var(--dim);
  max-width: 34ch;
}
.hero__cta {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}
.cap {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--dim);
  letter-spacing: 0.01em;
}
@keyframes reveal {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@media (min-width: 62rem) {
  .hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    min-height: min(52rem, calc(100svh - 4rem));
  }
  .hero__photo {
    order: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-right: 0;
  }
  .hero__frame {
    aspect-ratio: auto;
    max-height: none;
    flex: 1;
    min-height: 34rem;
  }
  .hero__photo figcaption {
    padding: 0.7rem var(--gutter) 0.9rem 0.9rem;
  }
  .hero__text {
    order: -1;
    align-self: center;
    padding: 4rem 2rem 4rem max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  }
}

/* ---------- Bandeau de preuves ---------- */
.proof {
  border-block: 1px solid var(--rule);
}
.proof__list {
  display: grid;
  grid-template-columns: 1fr;
}
.proof__list li {
  padding: 1.35rem 0;
  border-top: 1px solid var(--rule);
}
.proof__list li:first-child {
  border-top: 0;
}
.proof__list strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}
.proof__list li > span {
  color: var(--dim);
  font-size: 0.97rem;
  line-height: 1.5;
}
@media (min-width: 46rem) {
  .proof__list {
    grid-template-columns: repeat(2, 1fr);
  }
  .proof__list li:nth-child(2) {
    border-top: 0;
  }
  .proof__list li:nth-child(even) {
    padding-left: 2rem;
    border-left: 1px solid var(--rule);
  }
  .proof__list li:nth-child(odd) {
    padding-right: 2rem;
  }
}
@media (min-width: 62rem) {
  .proof__list {
    grid-template-columns: repeat(4, 1fr);
  }
  .proof__list li {
    border-top: 0;
    padding: 1.9rem 1.75rem;
    border-left: 1px solid var(--rule);
  }
  .proof__list li:first-child {
    border-left: 0;
    padding-left: 0;
  }
  .proof__list li:last-child {
    padding-right: 0;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-top: var(--section);
}
.section__head {
  display: grid;
  gap: 1.1rem;
  margin-bottom: clamp(2.25rem, 1.5rem + 3vw, 4rem);
}
.section__head h2 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem);
  max-width: 20ch;
}
.section__head p {
  color: var(--dim);
  max-width: 52ch;
  font-size: 1.1rem;
}


/* ---------- Pourquoi ---------- */
.why {
  display: grid;
  gap: 2rem;
}
.why__intro h2 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem);
  max-width: 16ch;
}
.why__intro p {
  margin-top: 1.25rem;
  color: var(--dim);
  max-width: 44ch;
  font-size: 1.1rem;
}
.why__list li {
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
.why__list li:first-child {
  border-top-color: var(--ink);
}
.why__list h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
  margin-bottom: 0.5rem;
}
.why__list p {
  color: var(--dim);
  max-width: 52ch;
}
@media (min-width: 62rem) {
  .why {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
    align-items: start;
  }
  .why__intro {
    grid-column: 1 / span 5;
    position: sticky;
    top: 6rem;
  }
  .why__list {
    grid-column: 7 / span 6;
  }
}

/* ---------- Prestations ---------- */
.offer {
  display: grid;
  gap: 1.5rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--rule);
}
.offer:last-child {
  border-bottom: 1px solid var(--rule);
}
.offer__photo {
  margin: 0;
}
.offer__photo picture {
  background: var(--rule);
}
.offer h3 {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
}
.offer__pitch {
  margin-top: 0.9rem;
  color: var(--dim);
  max-width: 48ch;
}
.offer__cols {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.75rem;
}
.offer h4 {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: var(--dim);
  margin-bottom: 0.6rem;
}
.incl li {
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.99rem;
  line-height: 1.45;
}
.incl li:last-child {
  border-bottom: 1px solid var(--rule);
}
.offer__side p + p {
  margin-top: 0.4rem;
}
.offer__side .cap {
  margin-bottom: 0.2rem;
}
.price {
  display: none;
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-size: 1.5rem;
}
.price small {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--dim);
}
body[data-prices="on"] .price {
  display: block;
}
.offer__go {
  margin-top: 1.5rem;
}
@media (min-width: 62rem) {
  .offer {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
    padding-block: 3.5rem;
    align-items: start;
  }
  .offer__photo {
    grid-column: 1 / span 5;
    position: sticky;
    top: 6rem;
  }
  .offer__body {
    grid-column: 7 / span 6;
  }
  .offer:nth-child(even) .offer__photo {
    grid-column: 8 / span 5;
    grid-row: 1;
  }
  .offer:nth-child(even) .offer__body {
    grid-column: 1 / span 6;
    grid-row: 1;
  }
  .offer__cols {
    grid-template-columns: 1.35fr 1fr;
    gap: 2rem;
  }
}

/* ---------- Portfolio ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin-bottom: 2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule);
}
.filter {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.5rem 0;
  min-height: 2.75rem;
  font: inherit;
  font-size: 1rem;
  color: var(--dim);
  cursor: pointer;
  background: linear-gradient(var(--accent), var(--accent)) 0 calc(100% - 0.35rem) / 0 1.5px no-repeat;
  transition: color 0.2s ease, background-size 0.4s var(--ease);
}
.filter:hover {
  color: var(--ink);
}
.filter[aria-pressed="true"] {
  color: var(--ink);
  background-size: 100% 1.5px;
}
.folio {
  columns: 2;
  column-gap: 1rem;
}
.folio__item {
  break-inside: avoid;
  margin: 0 0 1.25rem;
}
.folio__item[hidden] {
  display: none;
}
.folio__link {
  display: block;
  overflow: hidden;
  background: var(--rule);
  cursor: zoom-in;
}
.folio__link img {
  width: 100%;
  transition: transform 1.2s var(--ease);
}
.folio__link:hover img {
  transform: scale(1.03);
}
.folio__item .cap {
  margin-top: 0.5rem;
}
@media (min-width: 46rem) {
  .folio {
    columns: 3;
    column-gap: 1.75rem;
  }
  .folio__item {
    margin-bottom: 2rem;
  }
}
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(24, 22, 20, 0.94);
  color: #f4f2ed;
}
.lightbox::backdrop {
  background: rgba(24, 22, 20, 0.94);
}
.lightbox__fig {
  position: absolute;
  inset: 3.5rem 1rem 3rem;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  gap: 0.75rem;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  width: auto;
  height: auto;
  object-fit: contain;
  align-self: center;
}
.lightbox__cap {
  color: #d9d4cc;
}
.lightbox__btn {
  position: absolute;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 242, 237, 0.4);
  border-radius: 2px;
  background: transparent;
  color: #f4f2ed;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.lightbox__btn:hover {
  background: rgba(244, 242, 237, 0.14);
}
.lightbox__btn svg {
  width: 1.25rem;
  height: 1.25rem;
}
.lightbox__close {
  top: 0.75rem;
  right: 0.75rem;
}
.lightbox__prev,
.lightbox__next {
  top: 50%;
  translate: 0 -50%;
}
.lightbox__prev {
  left: 0.75rem;
}
.lightbox__next {
  right: 0.75rem;
}
.lightbox :focus-visible {
  outline-color: #f4f2ed;
}
@media (max-width: 45.99rem) {
  .lightbox__fig {
    inset: 3.5rem 0.5rem 4.5rem;
  }
  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 0.75rem;
    translate: none;
  }
  .lightbox__prev {
    left: 0.75rem;
  }
  .lightbox__next {
    right: 0.75rem;
  }
}

/* ---------- Galerie (ancienne mise en page) ---------- */
.gal {
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
}
.gal:first-of-type {
  margin-top: 0;
}
.gal__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-top: 0.9rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--ink);
}
.gal__head h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}
.gal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1rem;
}
.gal__grid figure {
  margin: 0;
}
.gal__grid .wide {
  grid-column: 1 / -1;
}
.shot picture {
  background: var(--rule);
  overflow: hidden;
}
.shot img {
  width: 100%;
  transition: transform 1.2s var(--ease);
}
.shot:hover img {
  transform: scale(1.025);
}
.shot figcaption {
  margin-top: 0.55rem;
}
@media (min-width: 46rem) {
  .gal__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2.5rem 2rem;
    align-items: start;
  }
  .gal__grid .s8 {
    grid-column: span 8;
  }
  .gal__grid .s7 {
    grid-column: span 7;
  }
  .gal__grid .s6 {
    grid-column: span 6;
  }
  .gal__grid .s5 {
    grid-column: span 5;
  }
  .gal__grid .s4 {
    grid-column: span 4;
  }
  .gal__grid .s3 {
    grid-column: span 3;
  }
  .gal__grid .down {
    margin-top: 4rem;
  }
}

/* ---------- Déroulé ---------- */
.steps {
  display: grid;
  gap: 0;
}
.steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 0.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
.steps li:last-child {
  border-bottom: 1px solid var(--rule);
}
.steps .n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--accent);
}
.steps h3 {
  font-size: 1.5rem;
  margin-bottom: 0.45rem;
}
.steps p {
  color: var(--dim);
  max-width: 40ch;
}
@media (min-width: 62rem) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 2rem;
  }
  .steps li {
    display: block;
    border-bottom: 0 !important;
    padding: 1.1rem 0 0;
    border-top: 1px solid var(--ink);
  }
  .steps .n {
    display: block;
    margin-bottom: 2.75rem;
  }
}

/* ---------- Témoignages (masqués par défaut) ---------- */
.testimonials {
  display: none;
}
body[data-testimonials="on"] .testimonials {
  display: block;
}
body:not([data-testimonials="on"]) .js-testimonials {
  display: none;
}
.quotes {
  display: grid;
  gap: 2.5rem;
}
.quotes blockquote {
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--ink);
}
.quotes p {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem);
  line-height: 1.35;
}
.quotes footer {
  margin-top: 1rem;
}
@media (min-width: 62rem) {
  .quotes {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

/* ---------- À propos ---------- */
.about {
  display: grid;
  gap: 2rem;
}
.about figure {
  margin: 0;
}
.about picture {
  background: var(--rule);
}
.about h2 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem);
  max-width: 14ch;
}
.about__text p {
  margin-top: 1.25rem;
  max-width: 54ch;
}
.about__text p:first-of-type {
  margin-top: 1.75rem;
  font-size: 1.2rem;
  line-height: 1.55;
}
@media (min-width: 62rem) {
  .about {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
    align-items: center;
  }
  .about figure {
    grid-column: 1 / span 5;
  }
  .about__text {
    grid-column: 7 / span 6;
  }
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--ink);
  padding-top: 0.25rem;
}
.split {
  display: grid;
}
@media (min-width: 62rem) {
  .split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
  }
  .split .section__head {
    grid-column: 1 / span 4;
    margin-bottom: 0;
    align-content: start;
  }
  .split .faq {
    grid-column: 6 / span 7;
  }
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 3.5rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  line-height: 1.4;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 1.5px 100% no-repeat;
  transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq summary:hover {
  color: var(--accent);
}
.faq .ans {
  padding: 0 0 1.5rem;
  color: var(--dim);
  max-width: 60ch;
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  gap: 3rem;
}
.contact h2 {
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4rem);
  max-width: 14ch;
}
.contact__lead {
  margin-top: 1.25rem;
  color: var(--dim);
  max-width: 40ch;
  font-size: 1.1rem;
}
.direct {
  margin-top: 2.25rem;
  border-top: 1px solid var(--rule);
}
.direct > div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.direct dt {
  font-size: 0.9375rem;
  color: var(--dim);
}
.direct dd {
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}
.form {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}
.form__row {
  display: grid;
  gap: 1.25rem;
}
.field label {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.4rem;
}
.field label span {
  color: var(--dim);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.35rem, calc(100% - 0.8rem) 1.35rem;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}
.field select option {
  background: var(--paper);
  color: var(--ink);
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__note {
  font-size: 0.875rem;
  color: var(--dim);
  max-width: 52ch;
}
.form__status {
  min-height: 1.5rem;
  font-size: 1rem;
}
.form__status[data-state="ok"] {
  color: var(--ink);
}
.form__status[data-state="err"] {
  color: var(--accent-deep);
}
.form .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
@media (min-width: 40rem) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 62rem) {
  .contact {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
  }
  .contact__intro {
    grid-column: 1 / span 5;
  }
  .form {
    grid-column: 7 / span 6;
  }
}

/* ---------- Pied de page ---------- */
.foot {
  margin-top: var(--section);
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--dim);
}
.foot__in {
  display: grid;
  gap: 1.25rem;
}
.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.foot a {
  color: var(--dim);
}
.foot a:hover {
  color: var(--accent);
}
@media (min-width: 46rem) {
  .foot__in {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

/* ---------- Barre d'action mobile ---------- */
.dock {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--rule);
  transition: transform 0.45s var(--ease);
}
.dock.is-away {
  transform: translateY(105%);
}
.dock .alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  text-decoration: none;
  color: var(--ink);
}
@media (max-width: 61.99rem) {
  body {
    padding-bottom: 4.75rem;
  }
}
@media (min-width: 62rem) {
  .dock {
    display: none;
  }
}

/* ---------- Pages légales ---------- */
.legal {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}
.legal h1 {
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
  margin-bottom: 2rem;
}
.legal h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.75rem;
}
.legal p,
.legal li {
  max-width: 68ch;
}
.legal p + p {
  margin-top: 0.9rem;
}
.legal ul {
  margin-top: 0.75rem;
  padding-left: 1.2rem;
  list-style: disc;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
}
@media print {
  .dock,
  .top,
  .form {
    display: none;
  }
}

/* Champs de formulaire et boutons : interligne lisible */
button,
input,
select,
textarea {
  line-height: 1.4;
}
