/* Anthony Chartier, site B "Trois jours chez vous". Tokens from design.md, sizes from direction b. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Red Hat Text";
  src: url("fonts/redhat-text.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --lame: #E9E7E2;
  --bardage: #CBC7BD;
  --anthracite: #383E42;
  --encre: #1C2023;
  --bois-neuf: #A9571F;
  --bois-neuf-fonce: #8E4818;
  --gris-note: #5A5F62;
  --blanc: #FFFFFF;

  --f-titre: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-texte: "Red Hat Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* 390 -> 1440, linear between the two */
  --t-paire: clamp(72px, calc(51.2px + 5.333vw), 128px);
  --t-jour: 56px;
  --t-h1: clamp(30px, calc(20.34px + 2.476vw), 56px);
  --t-h2: clamp(28px, calc(23.54px + 1.143vw), 40px);
  --t-h3: clamp(22px, calc(20.51px + .381vw), 26px);
  --t-tel: clamp(36px, calc(30.06px + 1.524vw), 52px);
  --t-corps: clamp(17px, calc(16.63px + .0952vw), 18px);
  --t-petit: 15px;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;

  --r-bouton: 4px;
  --trait: 2px;
  --courbe: cubic-bezier(0.2, 0.8, 0.2, 1);

  --gouttiere: 16px;
  --largeur: min(1200px, 100% - 2 * var(--gouttiere));
  --debord: calc((100vw - min(1200px, 100vw - 2 * var(--gouttiere))) / 2);
  --bande: var(--s-8);
  --barre: 80px;
}
@media (min-width: 1024px) {
  :root { --gouttiere: 48px; --bande: var(--s-9); --barre: 0px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--lame);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: var(--t-corps);
  line-height: 1.55;
}
@media (min-width: 1024px) { body { line-height: 1.6; } }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, blockquote, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.wrap { width: var(--largeur); margin-inline: auto; }
.texte { max-width: 34em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- liens, focus ---------- */
a { color: var(--encre); }
.lien {
  text-decoration: none;
  background-image: linear-gradient(var(--anthracite), var(--anthracite)), linear-gradient(var(--anthracite), var(--anthracite));
  background-size: 100% 1px, 0 2px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .lien { transition: background-size 300ms var(--courbe); }
  .lien:hover { background-size: 0 1px, 100% 2px; }
}
:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }
.sur-anthracite :focus-visible { outline-color: var(--lame); }

/* ---------- la paire avant -> après, la signature ---------- */
.paire {
  font-family: var(--f-titre);
  font-stretch: 75%;
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1;
  letter-spacing: -0.01em;
}
.paire .a { color: var(--gris-note); font-weight: 600; }
.paire .fl { color: var(--gris-note); font-weight: 500; margin-inline: 0.12em; }
.paire .b { color: var(--encre); font-weight: 800; }

/* ---------- nav ---------- */
.nav { background: var(--lame); position: relative; z-index: 3; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav-logo { display: block; padding: 4px 0; }
.nav-logo img { width: 30px; height: 35px; }
.nav ul { display: flex; gap: var(--s-5); }
.nav a.lien { font-weight: 600; font-size: 17px; }
.nav a[aria-current="page"] { background-size: 0 1px, 100% 2px; }
.nav .ici-cache { display: none; }
@media (min-width: 1024px) {
  .nav .wrap { height: 72px; }
  .nav .ici-cache { display: block; }
  .nav-logo img { width: 36px; height: 42px; }
}

/* ---------- le bouton d'appel ---------- */
.appel {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 var(--s-5);
  background: var(--bois-neuf); color: var(--blanc);
  font-family: var(--f-texte); font-weight: 600; font-size: 18px; line-height: 1;
  text-decoration: none; white-space: nowrap;
  border-radius: var(--r-bouton);
}
.appel::before { content: "Appeler le\00a0"; }
.appel::after {
  /* la cote : un filet de 2 px entre deux petites flèches et deux traits d'arrêt */
  content: ""; position: absolute; left: var(--s-5); right: var(--s-5); bottom: 10px; height: 8px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M1 0v8M199 0v8M1 4h198' stroke='black' stroke-width='2' fill='none'/%3E%3Cpath d='M1 4l6-3v6zM199 4l-6-3v6z' fill='black'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M1 0v8M199 0v8M1 4h198' stroke='black' stroke-width='2' fill='none'/%3E%3Cpath d='M1 4l6-3v6zM199 4l-6-3v6z' fill='black'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0);
}
.appel:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .appel { transition: background-color 200ms ease-out; }
  .appel::after { transition: clip-path 300ms var(--courbe); }
  .appel:hover { background: var(--bois-neuf-fonce); }
  .appel:hover::after { clip-path: inset(0 0 0 0); }
}

.barre-appel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: var(--s-3) var(--gouttiere) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: var(--lame);
  box-shadow: 0 -1px 0 var(--bardage);
}
.barre-appel .appel { width: 100%; }
@media (min-width: 1024px) { .barre-appel { display: none; } }

/* ---------- grain et photos en bandes ---------- */
.photo { position: relative; overflow: hidden; background: var(--bardage); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
}
.photo-16x9 { aspect-ratio: 16 / 9; }
.debord-droit { margin-right: calc(-1 * var(--debord)); }

/* ---------- surfaces ---------- */
.surface-bardage { background: var(--bardage); position: relative; isolation: isolate; }
.texture-bardage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("img/texture-3.webp") 0 0 / 768px auto repeat;
  mix-blend-mode: multiply; opacity: .12;
}
.surface-anthracite { background: var(--anthracite); color: var(--lame); }
.surface-anthracite a { color: var(--lame); }
.surface-anthracite .lien {
  background-image: linear-gradient(var(--lame), var(--lame)), linear-gradient(var(--lame), var(--lame));
}
.bande { padding-block: var(--bande); overflow-x: clip; }

.h2 {
  font-family: var(--f-titre); font-stretch: 125%; font-weight: 800;
  font-size: var(--t-h2); line-height: 1.05; letter-spacing: -0.01em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-titre); font-stretch: 125%; font-weight: 700;
  font-size: var(--t-h3); line-height: 1.15;
  text-wrap: balance;
}
.petit { font-size: var(--t-petit); line-height: 1.45; max-width: 34em; }

/* ---------- 1. le hero ---------- */
.hero { position: relative; }
.hero-photo { aspect-ratio: 1 / 1; }
.hero-photo img { object-position: 36% 50%; }
.hero-photo::before {
  /* le pied du hero : 120 px de transparent à --lame */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--lame) 0%, transparent) 0%, color-mix(in srgb, var(--lame) 30%, transparent) 55%, var(--lame) 100%);
}
.hero-texte { padding: var(--s-4) var(--gouttiere) var(--s-5); }
.hero h1 {
  font-family: var(--f-titre); font-stretch: 125%; font-weight: 800;
  font-size: var(--t-h1); line-height: 1.04; letter-spacing: -0.015em;
  white-space: pre-line;
}
.uw { display: inline-block; margin-top: var(--s-5); }
.uw .paire { font-size: var(--t-paire); white-space: nowrap; }
.uw-barre { height: 6px; margin-top: var(--s-3); background: color-mix(in srgb, var(--anthracite) 14%, transparent); }
.uw-barre span { display: block; height: 100%; background: var(--anthracite); transform-origin: 0 50%; transform: scaleX(.26); }
.hero-legende { margin-top: var(--s-3); max-width: 30em; color: var(--gris-note); }
.hero .appel { display: none; }

@media (min-width: 600px) and (max-width: 1023px) {
  .hero-photo { aspect-ratio: 16 / 10; }
}
@media (min-width: 1024px) {
  .hero {
    display: grid; grid-template-columns: 55% 45%;
    height: clamp(640px, calc(100vh - 72px), 900px);
  }
  .hero-photo { aspect-ratio: auto; height: 100%; }
  .hero-photo::before { display: none; }
  .hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--lame) 0%, transparent), var(--lame));
  }
  .hero-texte {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 0 var(--gouttiere) var(--s-7) var(--s-8);
  }
  .uw { margin-top: var(--s-6); }
  .hero-legende { margin-top: var(--s-4); }
  .hero .appel { display: inline-flex; margin-top: var(--s-6); padding: 0 var(--s-6); }
}

/* the moment: only when the head script says motion is welcome */
@keyframes monte20 { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes parait { from { opacity: 0; } to { opacity: 1; } }
.moment .hero h1 { animation: monte20 700ms var(--courbe) both; }
.moment .hero-legende { animation: parait 200ms var(--courbe) 1900ms both; }
.moment .uw-barre span { transform: scaleX(1); }
.fini .hero h1, .fini .hero-legende { animation: none; }

/* ---------- 2. trois jours chez vous ---------- */
.frise-tete .paire { font-size: min(var(--t-jour), 13.4vw); white-space: nowrap; }
.frise-tete .h2 { margin-top: var(--s-5); }
.frise-tete p.texte { margin-top: var(--s-4); }
.frise-piste { position: relative; margin-top: var(--s-7); --pas: 32px; padding-left: var(--pas); }
.filet { position: absolute; left: 0; top: 0; bottom: 0; width: var(--trait); background: color-mix(in srgb, var(--anthracite) 20%, transparent); }
.filet span { position: absolute; inset: 0; background: var(--anthracite); transform-origin: 50% 0; transform: scaleY(var(--p, 1)); }
.js .filet span { transform: scaleY(var(--p, 0)); }

.jour + .jour { margin-top: var(--s-8); }
.jour-n {
  position: relative;
  font-family: var(--f-titre); font-stretch: 75%; font-weight: 600;
  font-size: var(--t-jour); line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--gris-note);
}
.jour-n b { color: var(--encre); font-weight: 800; }
.jour-n::before {
  content: ""; position: absolute; top: 20px; left: calc(-1 * var(--pas) - 5px);
  width: 12px; height: 12px; background: var(--anthracite);
}
.jour .h3 { margin-top: var(--s-3); }
.jour p.texte { margin-top: var(--s-3); }
.jour .photo { margin-top: var(--s-5); }
.gestes { margin-top: var(--s-4); display: grid; gap: var(--s-3); max-width: 34em; }
.gestes b { font-weight: 600; }
.jour-3 .photo-2 { width: 72%; margin-top: var(--s-4); }

.frise-avis { margin-top: var(--s-8); padding-left: var(--pas); max-width: calc(36em + 32px); }
.frise-avis blockquote p {
  font-family: var(--f-titre); font-stretch: 125%; font-weight: 800;
  font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance;
}
.frise-avis .source { margin-top: var(--s-3); }
.frise-fin { margin-top: var(--s-5); }

@media (min-width: 1024px) {
  .frise-tete { display: grid; grid-template-columns: auto 1fr; column-gap: var(--s-8); align-items: end; }
  .frise-tete .paire { grid-row: span 2; font-size: 96px; }
  .frise-tete .h2 { margin-top: 0; }
  .frise-piste { --pas: 96px; margin-top: var(--s-8); }
  .jour { display: grid; grid-template-columns: 380px 1fr; column-gap: var(--s-7); align-items: start; }
  .jour > * { grid-column: 1; }
  .jour > .photo { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
  .jour-2 { grid-template-columns: 380px 1fr; row-gap: 0; }
  .jour-2 .jour-n, .jour-2 .h3, .jour-2 p.texte { grid-column: 1; }
  .jour-2 .gestes { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; align-self: end; }
  .jour-2 > .photo { grid-column: 1 / -1; grid-row: auto; margin-top: var(--s-6); }
  .jour-3 > .photo-2 { grid-column: 1; grid-row: 4; width: 100%; margin-top: var(--s-6); }
  .jour + .jour { margin-top: var(--s-9); }
  .jour-n::before { top: 20px; }
  .frise-avis { margin-top: var(--s-9); max-width: calc(40em + 96px); }
}

/* ---------- 3. avant -> après ---------- */
.avant { position: relative; overflow: hidden; }
.avant::before {
  /* overlay-4, la lumière d'une fenêtre, loin du texte */
  content: ""; position: absolute; right: -4%; top: -40px; width: 520px; aspect-ratio: 3 / 2; pointer-events: none;
  background: url("img/overlay-4.webp") center / cover no-repeat;
  mix-blend-mode: screen; opacity: .16;
  -webkit-mask: radial-gradient(closest-side, black 40%, transparent);
          mask: radial-gradient(closest-side, black 40%, transparent);
  display: none;
}
.avant .h2 { color: var(--lame); position: relative; }
.paires { margin-top: var(--s-7); display: grid; gap: var(--s-7); position: relative; }
.paires .etiquette { font-weight: 600; font-size: var(--t-petit); color: var(--bardage); }
.paires .paire { margin-top: var(--s-2); font-size: var(--t-jour); text-wrap: balance; }
.paires .paire.mots { font-size: clamp(40px, calc(35.54px + 1.143vw), 56px); line-height: 1.02; }
.paires .paire.mots .a, .paires .paire.mots .b { text-wrap: balance; }
.paires .paire.mots .b { display: block; margin-top: .06em; }
.paires .paire .a, .paires .paire .fl { color: var(--bardage); }
.paires .paire .b { color: var(--lame); }
.paires .unite { font-size: 20px; font-weight: 500; color: var(--bardage); margin-left: .3em; }
.paires p.texte { margin-top: var(--s-3); }
.avant .mention { margin-top: var(--s-7); color: var(--bardage); }
.preuve { margin-top: var(--s-5); font-weight: 600; max-width: 34em; position: relative; }
@media (min-width: 1024px) {
  .avant::before { display: block; }
  .paires li { display: grid; grid-template-columns: 1fr 380px; column-gap: var(--s-7); align-items: end; }
  .paires .etiquette { grid-column: 1 / -1; }
  .paires p.texte { margin-top: 0; }
  .paires { gap: var(--s-8); margin-top: var(--s-8); }
}

/* ---------- 4. les avis ---------- */
.avis-une {
  font-family: var(--f-titre); font-stretch: 125%; font-weight: 800;
  font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; max-width: 18em;
}
.avis-une-source { margin-top: var(--s-3); color: var(--gris-note); }
.avis-note { margin-top: var(--s-7); display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s-4); row-gap: var(--s-2); }
.avis-note .paire { font-size: var(--t-jour); }
.avis-note h2 { font-size: var(--t-corps); font-weight: 600; line-height: 1.3; }
.avis-liste { margin-top: var(--s-6); display: grid; gap: var(--s-6); }
.avis-liste p.texte { font-size: var(--t-corps); }
.avis-liste .qui { margin-top: var(--s-2); color: var(--gris-note); }
@media (min-width: 1024px) {
  .avis .wrap { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-8); }
  .avis-tete { grid-column: 1; }
  .avis-corps { grid-column: 2; }
  .avis-note { margin-top: 0; }
}

/* ---------- 5. le contact ---------- */
.contact .tel {
  display: inline-block; margin-top: var(--s-5);
  font-family: var(--f-titre); font-stretch: 75%; font-weight: 600;
  font-size: var(--t-tel); line-height: 1; font-variant-numeric: tabular-nums;
  text-decoration: none; white-space: nowrap;
}
.contact .appel { margin-top: var(--s-5); width: 100%; }
.contact-infos { margin-top: var(--s-6); display: grid; gap: var(--s-4); }
.contact-infos .qui { font-weight: 600; }
@media (min-width: 1024px) {
  .contact .wrap { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-8); align-items: start; }
  .contact .appel { width: auto; padding: 0 var(--s-6); }
  .contact-infos { margin-top: 0; }
}

/* ---------- pied ---------- */
.pied { padding-block: var(--s-8) calc(var(--s-8) + var(--barre)); }
.pied-logo { width: 280px; height: auto; }
.pied-rge { margin-top: var(--s-6); }
.pied-rge .paire { font-size: 32px; }
.pied-rge .paire .a, .pied-rge .paire .fl { color: var(--bardage); }
.pied-rge .paire .b { color: var(--lame); }
.pied-rge p.petit { margin-top: var(--s-2); color: var(--bardage); }
.pied-infos { margin-top: var(--s-6); display: grid; gap: var(--s-2); }
.pied-legal { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
@media (min-width: 1024px) {
  .pied .wrap { display: grid; grid-template-columns: 1fr auto auto; column-gap: var(--s-8); align-items: start; }
  .pied-rge, .pied-infos { margin-top: 0; }
  .pied-legal { grid-column: 1 / -1; }
}

/* ---------- pose.html ---------- */
.pose { padding-top: 0; }
.pose-tete { padding-top: var(--s-7); }
.pose-tete h1 {
  font-family: var(--f-titre); font-stretch: 125%; font-weight: 800;
  font-size: var(--t-h1); line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance;
}
.pose-tete .paire { font-size: var(--t-paire); margin-top: var(--s-5); }
.pose-tete p.texte { margin-top: var(--s-4); }
.etapes { margin-top: var(--s-8); display: grid; gap: var(--s-8); }
.etape { position: relative; }
.etape-n {
  font-family: var(--f-titre); font-stretch: 75%; font-weight: 800;
  font-size: var(--t-jour); line-height: 1; font-variant-numeric: tabular-nums; color: var(--encre);
}
.etape-n span { color: var(--gris-note); font-weight: 600; }
.etape .h3 { margin-top: var(--s-3); }
.etape p.texte { margin-top: var(--s-3); }
.etape .energie { margin-top: var(--s-4); padding-left: var(--s-4); box-shadow: inset var(--trait) 0 0 var(--anthracite); }
.etape .energie b { font-weight: 600; }
.etape .photo { margin-top: var(--s-5); }
.etape .photo-2 { width: 72%; margin-top: var(--s-4); }
.etape-courte .texte { max-width: 32em; }
@media (min-width: 1024px) {
  .pose-tete { padding-top: var(--s-8); display: grid; grid-template-columns: 1fr auto; column-gap: var(--s-8); align-items: end; }
  .pose-tete .paire { margin-top: 0; grid-column: 2; grid-row: 1 / span 2; }
  .etapes { gap: var(--s-9); }
  .etape { display: grid; grid-template-columns: 120px 380px 1fr; column-gap: var(--s-7); align-items: start; }
  .etape-n { grid-column: 1; grid-row: 1 / span 4; }
  .etape > :not(.etape-n):not(.photo) { grid-column: 2; }
  .etape > .photo { grid-column: 3; grid-row: 1 / span 5; margin-top: 0; }
  .etape .h3 { margin-top: 0; }
  .etape > .photo-2 { grid-column: 2; grid-row: auto; width: 100%; margin-top: var(--s-5); }
  .etape-courte { grid-template-columns: 120px minmax(0, 560px); }
}

.rge .h2 { color: var(--lame); }
.rge .paire { font-size: var(--t-jour); margin-top: var(--s-6); }
@media (max-width: 599px) { .rge .paire .b { display: block; } }
.rge .paire .a, .rge .paire .fl { color: var(--bardage); }
.rge .paire .b { color: var(--lame); }
.rge .dates-leg { margin-top: var(--s-2); color: var(--bardage); }
.rge p.texte { margin-top: var(--s-5); }
.rge p.texte + p.texte { margin-top: var(--s-4); }
@media (min-width: 1024px) {
  .rge .wrap { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-8); }
  .rge-g { grid-column: 1; }
  .rge-d { grid-column: 2; }
  .rge-d p.texte:first-child { margin-top: 0; }
}

/* ---------- mouvement au scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--courbe), transform .9s var(--courbe); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .moment .hero h1, .moment .hero-legende { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .filet span { transform: scaleY(1); }
  .uw-barre span { transform: scaleX(.26) !important; }
  .appel, .appel::after, .lien { transition: none !important; }
  .appel::after { clip-path: inset(0 100% 0 0) !important; }
}

/* ---------- devis.html: la demande de devis. Les tokens du site, rien d'autre. ---------- */
.devis .pose-tete .paire { font-size: var(--t-jour); }
.devis-leg { margin-top: var(--s-3); color: var(--gris-note); }
@media (min-width: 1024px) { .devis-leg { text-align: right; max-width: none; } }

.champs { margin-top: var(--s-8); display: grid; gap: var(--s-7); max-width: 40em; }
@media (min-width: 1024px) {
  .champs { grid-template-columns: 1fr 1fr; column-gap: var(--s-8); row-gap: var(--s-8); max-width: none; }
}
.champ-corps { display: grid; gap: var(--s-3); justify-items: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.champ-corps > .h3 { display: block; padding: 0; }
.champ-n {
  display: block; margin-bottom: var(--s-2);
  font-family: var(--f-titre); font-stretch: 75%; font-weight: 800;
  font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--encre);
}
.champ-n span { color: var(--gris-note); font-weight: 600; }

.saisie {
  width: 100%; min-height: 56px; padding: var(--s-3) var(--s-4);
  border: 2px solid var(--gris-note); border-radius: var(--r-bouton);
  background: var(--blanc); color: var(--encre);
  font: 400 var(--t-corps) / 1.35 var(--f-texte);
}
textarea.saisie { resize: vertical; }
.saisie::placeholder { color: var(--gris-note); opacity: 1; }
.saisie[aria-invalid="true"] { border-width: 3px; border-color: var(--encre); }
.aide { font-size: var(--t-petit); line-height: 1.45; color: var(--gris-note); max-width: 34em; }
.erreur { font-size: var(--t-petit); font-weight: 600; color: var(--encre); }
.erreur:empty { display: none; }

.choix { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.choix label {
  display: grid; align-content: center; min-height: 56px; padding: var(--s-2) var(--s-4);
  border: 2px solid var(--gris-note); border-radius: var(--r-bouton); background: var(--blanc);
  font-weight: 600; line-height: 1.25; cursor: pointer;
}
.choix label .petit { font-weight: 400; color: var(--gris-note); }
.choix input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choix label:has(input:checked) { background: var(--anthracite); border-color: var(--anthracite); color: var(--lame); }
.choix label:has(input:checked) .petit { color: var(--bardage); }
.choix label:has(input:focus-visible) { outline: 2px solid var(--encre); outline-offset: 2px; }

.pas { display: flex; align-items: stretch; gap: var(--s-2); }
.pas-btn {
  width: 56px; min-height: 56px; border: 2px solid var(--anthracite); border-radius: var(--r-bouton);
  background: var(--lame); color: var(--encre); font: 600 24px / 1 var(--f-texte); cursor: pointer;
}
.pas-n {
  width: 88px; text-align: center; font-family: var(--f-titre); font-stretch: 75%; font-weight: 800;
  font-size: 28px; font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.pas-n::-webkit-inner-spin-button, .pas-n::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* le bouton de la page: anthracite, le bois neuf reste au seul bouton d'appel */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 var(--s-6);
  border: 2px solid var(--anthracite); border-radius: var(--r-bouton);
  background: var(--anthracite); color: var(--lame);
  font: 600 18px / 1.2 var(--f-texte); text-align: center; cursor: pointer;
}
.bouton-contour { background: var(--lame); color: var(--encre); font-size: 17px; }
.bouton:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .bouton { transition: background-color 200ms ease-out, color 200ms ease-out; }
  .bouton:hover { background: var(--encre); border-color: var(--encre); }
  .bouton-contour:hover { background: var(--bardage); border-color: var(--anthracite); }
}
button.lien { border: 0; font: inherit; font-weight: 600; color: var(--encre); cursor: pointer; }

.fichier { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.fichier:focus-visible + .bouton { outline: 2px solid var(--encre); outline-offset: 2px; }
.vignettes { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.vignettes[hidden] { display: none; }
.vignettes li { display: grid; gap: var(--s-1); justify-items: start; }
.vignettes img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r-bouton); background: var(--bardage); }
.vignettes button.lien { font-size: var(--t-petit); }

.envoyer { margin-top: var(--s-7); display: grid; gap: var(--s-3); justify-items: start; max-width: 40em; }
.envoyer .bouton { width: 100%; }
@media (min-width: 600px) { .envoyer .bouton { width: auto; } }

.demande[hidden], .envoyee[hidden] { display: none; }
.envoyee { margin-top: var(--s-8); max-width: 40em; }
.envoyee:focus { outline: none; }
.envoyee .espace { margin-top: var(--s-5); }
.recap { margin: var(--s-6) 0 0; border-top: var(--trait) solid var(--anthracite); }
.recap div { display: grid; gap: var(--s-1); padding: var(--s-3) 0; border-bottom: 1px solid var(--bardage); }
.recap dt { font-weight: 600; }
.recap dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 600px) { .recap div { grid-template-columns: 11em 1fr; gap: var(--s-4); } }
.mail { margin-top: var(--s-2); padding: var(--s-5); background: var(--blanc); border-radius: var(--r-bouton); box-shadow: inset var(--trait) 0 0 var(--anthracite); display: grid; gap: var(--s-2); }
.mail-tete { font-size: var(--t-petit); overflow-wrap: anywhere; }
.mail-tete span { display: inline-block; min-width: 4em; color: var(--gris-note); }
.mail-tete b { font-weight: 600; }
.mail-corps { margin-top: var(--s-3); white-space: pre-line; font-size: var(--t-petit); line-height: 1.55; }

@media (prefers-reduced-motion: reduce) {
  .bouton { transition: none !important; }
}
