/* ==========================================================================
   Le Stylo de Lisa — la table de la libraire
   Fond kraft, fiches bristol épinglées, bandeau « coup de cœur » cuivre,
   comptoir en toile de reliure où s'imprime le ticket d'estimation.
   ========================================================================== */

:root {
  --kraft: #D5C5A0;
  --kraft-deep: #C8B68D;
  --kraft-ink: #5B4632;
  --bristol: #FBF7EF;
  --bristol-rule: #E9DDCC;
  --bristol-line: #D9C9B2;
  --margin-rule: #DFAE93;
  --note-paper: #F4EAD5;
  --ink: #4F2A0E;
  --text: #3B2616;
  --taupe: #6E5A43;
  --copper: #A0613F;
  --copper-deep: #84492C;
  --cloth: #3E2310;
  --cloth-ink: #F3E7D3;
  --cloth-muted: #CDB99C;
  --receipt: #FFFDF8;
  --receipt-ink: #2A211B;
  --receipt-muted: #5A5048;
  --tape: rgba(241, 232, 208, .84);
  --error: #9E2B1E;
  --field-line: #8C7760;

  --f-text: "Literata", Georgia, "Times New Roman", serif;
  --f-brand: "Lavishly Yours", "Literata", cursive;
  --f-hand: "Delicious Handrawn", "Literata", cursive;
  --f-mono: "Courier Prime", "Courier New", Courier, monospace;

  --step--1: clamp(.875rem, .85rem + .1vw, .9375rem);
  --step-0: clamp(1.0625rem, 1.03rem + .15vw, 1.125rem);
  --step-1: clamp(1.1875rem, 1.12rem + .3vw, 1.375rem);
  --step-2: clamp(1.375rem, 1.25rem + .6vw, 1.75rem);
  --step-3: clamp(2rem, 1.6rem + 1.9vw, 3rem);
  --step-brand: clamp(3.4rem, 2.2rem + 5vw, 6rem);

  --gutter: clamp(1rem, .4rem + 2.6vw, 2.5rem);
  --page: min(76rem, 100% - 2 * var(--gutter));
  --radius: 3px;
  --shadow-paper: 0 1px 1px rgba(62, 35, 16, .16), 0 12px 24px -12px rgba(62, 35, 16, .5);
  --shadow-lift: 0 2px 3px rgba(62, 35, 16, .14), 0 26px 44px -18px rgba(62, 35, 16, .55);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --tex-fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8 .5' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .22 0 0 0 0 .11 .5 0 0 0 -.19'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --tex-fleck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='l' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .96 0 0 0 0 .92 0 0 0 0 .82 .9 0 0 0 -.56'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23l)'/%3E%3C/svg%3E");
  --tex-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='i' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.6 0 0 0 -.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23i)'/%3E%3C/svg%3E");
  --tex-mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='720'%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0055556' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .27 0 0 0 0 .13 .42 0 0 0 -.16'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
}

/* --- Base ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  scrollbar-color: var(--taupe) var(--kraft-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--kraft);
  background-image: var(--tex-fleck), var(--tex-fibre), var(--tex-mottle);
  color: var(--text);
  font: 400 var(--step-0)/1.6 var(--f-text);
  font-optical-sizing: auto;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  accent-color: var(--copper);
  caret-color: var(--copper);
  overflow-x: clip;
}

::selection { background: var(--copper); color: #FFFCF6; }

img, svg { display: block; max-width: 100%; }

[hidden] { display: none !important; }

a {
  color: inherit;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .22em;
  transition: color .2s, text-decoration-color .2s;
}
a:hover { color: var(--copper-deep); }

:focus-visible {
  outline: 2.5px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

button, input, select, textarea { font: inherit; color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .75rem 1.1rem;
  background: var(--ink);
  color: var(--bristol);
  border-radius: var(--radius);
  text-decoration: none;
  transition: top .2s;
}
.skip:focus,
.skip:hover { top: 1rem; color: var(--bristol); }

.chemin { white-space: nowrap; font-weight: 600; }
.insec { white-space: nowrap; }

/* --- En-tête ----------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--kraft);
  background-image: var(--tex-fleck), var(--tex-fibre);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(79, 42, 14, .16);
  box-shadow: 0 10px 24px -20px rgba(62, 35, 16, .7);
}

.site-header__inner {
  width: var(--page);
  margin-inline: auto;
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__logo { width: 2.75rem; height: 2.75rem; }
.brand__name {
  font-family: var(--f-brand);
  font-size: 2.15rem;
  line-height: 1;
  padding-top: .18em;
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul {
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav ul a {
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration: none;
  padding-block: .4rem;
  background: linear-gradient(var(--copper), var(--copper)) 0 100% / 0 1.5px no-repeat;
  transition: background-size .35s var(--ease-out), color .2s;
}
.site-nav ul a:hover { background-size: 100% 1.5px; color: var(--ink); }

.nav-cta,
.header-devis {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.05rem;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.nav-cta:hover,
.header-devis:hover { background: var(--ink); color: var(--bristol); }

.header-devis,
.menu-toggle { display: none; }

.menu-toggle {
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: .5rem .75rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--step--1);
  cursor: pointer;
}
.menu-toggle .icon { width: 1.5rem; height: 1.5rem; }

/* --- Premier écran ------------------------------------------------------- */

.hero {
  width: var(--page);
  margin-inline: auto;
  padding-block: clamp(1.75rem, 4vw, 3.25rem) 0;
}

.hero__table {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
}

.print {
  grid-column: 1;
  grid-row: 1;
  z-index: 2;
  position: relative;
  justify-self: end;
  width: min(100%, 27rem);
  margin: 0 -3.25rem 0 0;
  padding: .85rem .85rem 3.1rem;
  background: #FDFBF6;
  box-shadow: var(--shadow-paper);
  transform: rotate(-2.4deg);
  transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out);
}
.print:hover { transform: rotate(0deg); box-shadow: var(--shadow-lift); }

.print__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.print__caption {
  position: absolute;
  inset: auto 0 .55rem;
  text-align: center;
  font: 1.55rem/1 var(--f-hand);
  color: #45403B;
}

.tape {
  position: absolute;
  z-index: 3;
  width: 7.25rem;
  height: 2rem;
  color: var(--tape);
  filter: drop-shadow(0 1px 1px rgba(62, 35, 16, .14));
  pointer-events: none;
}
.tape--left { top: -.75rem; left: -2rem; transform: rotate(-31deg); }
.tape--right { top: -.85rem; right: -2.1rem; transform: rotate(27deg); }

/* --- Fiches bristol ------------------------------------------------------ */

.fiche {
  --tilt: 0deg;
  --margin: 3rem;
  position: relative;
  padding: 2.5rem clamp(1.25rem, 3vw, 2.25rem) 2.25rem calc(var(--margin) + clamp(1rem, 2vw, 1.4rem));
  background-color: var(--bristol);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  transform: rotate(var(--tilt));
  transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out);
}
.fiche:hover,
.fiche:focus-within { transform: rotate(0deg); box-shadow: var(--shadow-lift); }
.fiche::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--margin) - 2px);
  border-left: 2px solid var(--margin-rule);
  pointer-events: none;
}

/* Fiche lignée : chaque ligne de texte repose sur un filet. */
.fiche--ligne {
  line-height: var(--lh);
  padding-top: calc(var(--lh) * 2);
  padding-bottom: calc(var(--lh) * 1.5);
  background-image: linear-gradient(to bottom, transparent calc(var(--lh) - 1px), var(--bristol-rule) calc(var(--lh) - 1px));
  background-size: 100% var(--lh);
  background-position: 0 var(--rule-shift, -.3rem);
  background-repeat: repeat-y;
}

.pin {
  position: absolute;
  top: -.85rem;
  left: 50%;
  width: 2.1rem;
  height: 2.1rem;
  translate: -50% 0;
  filter: drop-shadow(2px 4px 2px rgba(62, 35, 16, .35));
}

.staple {
  position: absolute;
  top: .85rem;
  left: 50%;
  width: 3.5rem;
  height: .9rem;
  translate: -50% 0;
  rotate: -4deg;
}

.note {
  font-family: var(--f-hand);
  font-size: 1.55rem;
  line-height: 1.3;
  color: var(--copper-deep);
  rotate: -1.5deg;
  transform-origin: left center;
}

/* Fiche de présentation */
.fiche--hero {
  --lh: 2rem;
  --margin: 5.25rem;
  --tilt: .8deg;
  grid-column: 2;
  grid-row: 1;
  container-type: inline-size;
  padding-right: clamp(1.5rem, 4vw, 3.5rem);
  padding-left: calc(var(--margin) + clamp(1.25rem, 2.4vw, 2rem));
}
.fiche--hero .pin { left: 62%; }

.hero__brand {
  display: block;
  margin-left: -.04em;
  font-family: var(--f-brand);
  font-size: min(var(--step-brand), 16cqi);
  font-weight: 400;
  line-height: calc(var(--lh) * 3);
  color: var(--ink);
  white-space: nowrap;
}

.hero__offer {
  display: block;
  max-width: 24ch;
  margin-top: var(--lh);
  font-size: var(--step-2);
  font-variation-settings: "opsz" 48;
  line-height: var(--lh);
  letter-spacing: -.005em;
}

.hero__intro { max-width: 36em; margin-top: var(--lh); }

.signature {
  margin-top: var(--lh);
  font-family: var(--f-hand);
  font-size: 1.85rem;
  line-height: var(--lh);
  color: var(--copper-deep);
  rotate: -2deg;
  transform-origin: left center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: var(--lh);
  line-height: 1.3;
}

/* Bandeau « coup de cœur » : l'action principale */
.bandeau {
  --notch: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.35rem;
  padding: .85rem calc(1.4rem + var(--notch)) .85rem calc(1.15rem + var(--notch));
  border: 0;
  background: var(--copper);
  color: #FFFCF6;
  font: 600 var(--step-0)/1.2 var(--f-text);
  letter-spacing: .01em;
  text-decoration: none;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--notch)) 50%, 100% 100%, 0 100%, var(--notch) 50%);
  cursor: pointer;
  transition: background-color .25s, translate .45s var(--ease-out);
}
.bandeau:hover { background: var(--copper-deep); color: #FFFCF6; translate: 0 -2px; }
.bandeau:focus-visible {
  outline: none;
  background: var(--ink);
  box-shadow: inset 0 0 0 3px #FFFCF6, inset 0 0 0 5px var(--ink);
}
.bandeau .icon { width: 1.05rem; height: 1.05rem; }
.bandeau[disabled] { opacity: .65; cursor: progress; translate: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--copper);
}
.link-arrow .icon { transition: translate .35s var(--ease-out); }
.link-arrow:hover .icon { translate: .3rem 0; }


/* --- Sections ------------------------------------------------------------ */

.section {
  width: var(--page);
  margin-inline: auto;
  padding-top: clamp(4.5rem, 9vw, 7.5rem);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}
.section__head h2 {
  font-size: var(--step-3);
  font-variation-settings: "opsz" 72;
  line-height: 1.16;
  letter-spacing: -.012em;
}
.section__head p {
  max-width: 40rem;
  margin-top: 1rem;
  color: var(--kraft-ink);
  font-size: var(--step-1);
  line-height: 1.5;
}
.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  max-width: none;
}

/* --- L'étal des prestations --------------------------------------------- */

.etal {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.fiche--service { padding-top: 2.75rem; }
.fiche--beta { grid-column: 1 / span 5; --tilt: -1deg; }
.fiche--correction { grid-column: 6 / span 7; --tilt: .55deg; margin-top: 1.5rem; }
.fiche--accompagnement { grid-column: 1 / span 7; --tilt: -.4deg; }
.notes { grid-column: 8 / span 5; display: grid; gap: 2.25rem; padding-top: 1rem; }

.fiche--service h3 {
  font-size: var(--step-2);
  font-variation-settings: "opsz" 40;
  line-height: 1.2;
}
.fiche--service > p,
.fiche--service .niveau > p { margin-top: .9rem; }

.fiche__pour {
  margin-top: .35rem !important;
  color: var(--taupe);
  font-style: italic;
  font-size: var(--step--1);
}

.fiche__label {
  margin-top: 1.5rem !important;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--step--1);
}

.liste {
  margin: .4rem 0 0;
  padding: 0;
  list-style: none;
}
.liste li { position: relative; padding-left: 1.1rem; }
.liste li + li { margin-top: .2rem; }
.liste li::before { content: "–"; position: absolute; left: 0; color: var(--copper); }

.prix {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: .55rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1.5px dotted var(--bristol-line);
}
.prix__montant {
  color: var(--ink);
  font-size: clamp(1.9rem, 1.6rem + 1vw, 2.35rem);
  font-weight: 600;
  font-variation-settings: "opsz" 60;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.1;
}
.prix__unite { color: var(--taupe); font-size: var(--step--1); }
.prix__min { flex-basis: 100%; margin-top: .2rem; color: var(--taupe); font-size: var(--step--1); }

.fiche--service .note { margin-top: 1.4rem; }

.niveaux {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 1.25rem;
}
.niveau + .niveau { padding-left: 1.75rem; border-left: 1.5px dotted var(--bristol-line); }
.niveau h4 {
  color: var(--copper-deep);
  font-size: var(--step-0);
  font-variant-caps: all-small-caps;
  letter-spacing: .07em;
}
.niveau .prix { margin-top: 1.1rem; }

.etapes-mini {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}
.etapes-mini li {
  position: relative;
  padding-left: 2.1rem;
  counter-increment: etape;
}
.etapes-mini li + li { margin-top: .35rem; }
.etapes-mini li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: .1rem;
  width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--copper);
  border-radius: 50%;
  color: var(--copper-deep);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1;
}

.post-it {
  --tilt: 1.6deg;
  position: relative;
  padding: 2rem 1.6rem 1.6rem;
  background: var(--note-paper);
  background-image: var(--tex-fleck);
  box-shadow: var(--shadow-paper);
  transform: rotate(var(--tilt));
  transition: transform .7s var(--ease-out);
}
.post-it:hover { transform: rotate(0deg); }
.post-it--signes { --tilt: -1.4deg; margin-left: 1.5rem; }
.post-it h3 {
  font-family: var(--f-hand);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}
.post-it p { margin-top: .6rem; font-size: var(--step--1); line-height: 1.6; }
.tape--note { top: -.9rem; left: 50%; translate: -50% 0; rotate: -3deg; }

/* --- Le comptoir : estimation ------------------------------------------- */

.comptoir {
  margin-top: clamp(4.5rem, 9vw, 7.5rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background-color: var(--cloth);
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 238, 214, .035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px),
    var(--tex-fibre);
  color: var(--cloth-ink);
}

.comptoir__inner {
  width: var(--page);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.comptoir h2 {
  color: var(--cloth-ink);
  font-size: var(--step-3);
  font-variation-settings: "opsz" 72;
  line-height: 1.16;
  letter-spacing: -.012em;
}
.comptoir__form > p { max-width: 38rem; margin-top: 1rem; color: var(--cloth-muted); }
.comptoir :focus-visible { outline-color: var(--cloth-ink); }

.estimateur { margin-top: 2.25rem; }

.choix { margin: 0; padding: 0; border: 0; }
.choix legend,
.longueur > label {
  display: block;
  margin-bottom: .8rem;
  padding: 0;
  color: var(--cloth-ink);
  font-weight: 600;
}
.choix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}
.choix legend { grid-column: 1 / -1; float: left; width: 100%; }

.choix__item { position: relative; display: block; }
.choix__item input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.choix__item:nth-child(odd) { --tilt: -.8deg; }
.choix__item:nth-child(even) { --tilt: .7deg; }

.choix__carte {
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr);
  align-items: center;
  gap: .1rem .6rem;
  min-height: 3.6rem;
  padding: .8rem 1rem;
  background: var(--bristol);
  color: var(--text);
  border: 2px solid transparent;
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
  transform: rotate(var(--tilt));
  transition: transform .5s var(--ease-out), border-color .2s;
  pointer-events: none;
}
.choix__nom { font-weight: 600; line-height: 1.25; }
.choix__tarif { grid-column: 2; color: var(--taupe); font-size: var(--step--1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.choix__coche { grid-row: 1 / span 2; width: 1.2rem; height: 1.2rem; color: var(--copper); opacity: 0; transition: opacity .2s; }

.choix__item input:hover + .choix__carte { transform: rotate(0deg); }
.choix__item input:checked + .choix__carte {
  border-color: var(--copper);
  background: var(--receipt);
  transform: rotate(0deg);
}
.choix__item input:checked + .choix__carte .choix__coche { opacity: 1; }
.choix__item input:focus-visible + .choix__carte { outline: 2.5px solid var(--cloth-ink); outline-offset: 3px; }

.longueur { margin-top: 2rem; }
.longueur__saisie {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  max-width: 24rem;
  padding-bottom: .2rem;
  border-bottom: 2px solid var(--cloth-muted);
  color: var(--cloth-muted);
  transition: border-color .2s;
}
.longueur__saisie:focus-within { border-bottom-color: var(--cloth-ink); }
.longueur__saisie input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cloth-ink);
  caret-color: var(--cloth-ink);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem);
  font-weight: 600;
  font-variation-settings: "opsz" 60;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.longueur__saisie input:focus-visible { outline: none; }

.reglette {
  --fill: 30%;
  display: block;
  width: 100%;
  max-width: 34rem;
  height: 2.75rem;
  margin: 1rem 0 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.reglette::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--cloth-ink), var(--cloth-ink)) 0 0 / var(--fill) 100% no-repeat, rgba(243, 231, 211, .28);
}
.reglette::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: calc(-.8rem + 1.5px);
  border: 4px solid var(--copper);
  border-radius: 50%;
  background: var(--bristol);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .45);
}
.reglette::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(243, 231, 211, .28); }
.reglette::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--cloth-ink); }
.reglette::-moz-range-thumb {
  width: 1.1rem;
  height: 1.1rem;
  border: 4px solid var(--copper);
  border-radius: 50%;
  background: var(--bristol);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .45);
}
.reglette:focus-visible { outline: 2.5px solid var(--cloth-ink); outline-offset: 2px; }

.longueur__aide { max-width: 34rem; margin-top: .6rem; color: var(--cloth-muted); font-size: var(--step--1); }

/* Le ticket sort de la fente du comptoir */
.ticket-zone {
  position: relative;
  padding: 0 1.5rem 1rem;
  overflow: hidden;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .38));
}
.ticket-zone::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: .85rem;
  border-radius: 0 0 6px 6px;
  background: #1F1108;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, .7);
}

.ticket {
  --zz: .55rem;
  max-width: 23rem;
  margin: 0 auto;
  padding: 2rem 1.5rem calc(2rem + var(--zz));
  background: var(--receipt);
  color: var(--receipt-ink);
  font: 400 .9rem/1.55 var(--f-mono);
  letter-spacing: 0;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zz)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zz)) 100%;
}
.ticket.is-waiting { transform: translateY(-101%); }
.ticket.is-printing { animation: imprimer 1.25s steps(18, end) both; }
.ticket.is-feeding { animation: avancer .4s steps(5, end); }
@keyframes imprimer { from { transform: translateY(-101%); } to { transform: translateY(0); } }
@keyframes avancer { from { transform: translateY(-1.6rem); } to { transform: translateY(0); } }

.ticket__shop { text-align: center; font-weight: 600; letter-spacing: .22em; font-size: .95rem; }
.ticket__sub { text-align: center; color: var(--receipt-muted); font-size: .78rem; }
.ticket__rule { height: 0; margin: .85rem 0; border-top: 1.5px dashed #A39A92; }
.ticket__row { display: flex; justify-content: space-between; gap: 1rem; }
.ticket__row > span:last-child { white-space: nowrap; text-align: right; }
.ticket__row--muted { color: var(--receipt-muted); }
.ticket__row--min { margin-top: .35rem; }
.ticket__item { font-weight: 600; }
.ticket__total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
}
.ticket__small { margin-top: .45rem; color: var(--receipt-muted); font-size: .78rem; line-height: 1.5; }
.ticket__small--center { margin-top: .9rem; text-align: center; }
.bandeau--ticket { width: 100%; margin-top: 1.25rem; font-size: var(--step--1); letter-spacing: .01em; }

/* --- Déroulé ------------------------------------------------------------- */

.deroule {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--bristol);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  transform: none;
}

.deroule__etape { position: relative; padding: 2rem clamp(1.25rem, 2vw, 1.75rem) 2.25rem; }
.deroule__etape + .deroule__etape { border-left: 2px dashed var(--bristol-line); }
.deroule__etape h3 { margin-top: 1.1rem; font-size: var(--step-1); line-height: 1.25; }
.deroule__etape p { margin-top: .55rem; font-size: var(--step--1); line-height: 1.6; }

/* Les numéros sont des coups de tampon */
.deroule__num {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border: 2px solid var(--copper);
  border-radius: 50%;
  outline: 1px solid var(--copper);
  outline-offset: 3px;
  color: var(--copper-deep);
  font-size: 1.6rem;
  font-weight: 600;
  font-variation-settings: "opsz" 60;
  line-height: 1;
}

.fiche--engagements {
  --lh: 1.75rem;
  --tilt: .7deg;
  max-width: 48rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0 auto;
}
.fiche--engagements h3 { font-size: var(--step-2); line-height: var(--lh); }
.engagements { margin: var(--lh) 0 0; padding: 0; list-style: none; }
.engagements li { position: relative; padding-left: 1.6rem; }
.engagements li + li { margin-top: var(--lh); }
.engagements li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55rem;
  width: .85rem;
  height: .85rem;
  background: var(--copper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5 10 17.5 19 7' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5 10 17.5 19 7' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.engagements strong { color: var(--ink); }

/* --- Lectures ------------------------------------------------------------ */

.carrousel-nav { display: flex; gap: .75rem; flex: none; }
.rond {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s, color .2s, opacity .2s;
}
.rond:hover:not(:disabled) { background: var(--ink); color: var(--bristol); }
.rond:disabled { opacity: .35; cursor: default; }
.rond .icon { width: 1.3rem; height: 1.3rem; }

.carrousel {
  position: relative;
  margin-right: calc(50% - 50vw);
  padding: 1.25rem 0 2.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--taupe) transparent;
}
.carrousel:focus-visible { outline-offset: 6px; }

.carrousel__piste {
  display: flex;
  gap: clamp(1.5rem, 2.6vw, 2.25rem);
  width: max-content;
  margin: 0;
  padding: 0 var(--gutter) 0 .25rem;
  list-style: none;
}

.lecture {
  --tilt: -.9deg;
  flex: none;
  width: clamp(16.5rem, 72vw, 18.75rem);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}
.lecture:nth-child(even) { --tilt: 1deg; }
.lecture:nth-child(3n) { --tilt: -.3deg; }


.lecture__fiche {
  position: relative;
  flex: 1;
  padding: 2rem 1.5rem 1.5rem;
  background: var(--bristol);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  transform: rotate(var(--tilt));
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.lecture:hover .lecture__fiche,
.lecture:focus-within .lecture__fiche { transform: rotate(0deg); box-shadow: var(--shadow-lift); }

.lecture__titre {
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 600;
  font-variation-settings: "opsz" 36;
  line-height: 1.2;
}
.lecture__auteur {
  margin-top: .35rem;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lecture__meta { margin-top: .3rem; color: var(--taupe); font-size: .84rem; }

.mots {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .9rem 0 0;
  padding: 0;
  list-style: none;
}
.mots li {
  padding: .12rem .6rem;
  border: 1px solid var(--bristol-line);
  border-radius: 999px;
  color: var(--text);
  font-size: .8rem;
  line-height: 1.5;
}

.lecture__lien {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--copper-deep);
  font-size: var(--step--1);
  font-weight: 600;
}
.lecture__lien .icon { width: 1rem; height: 1rem; }

.lecture--suite { justify-content: center; }
.suite {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: .4rem;
  min-height: 100%;
  padding: 2rem 1.75rem;
  border: 2px dashed rgba(91, 70, 50, .55);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: background-color .25s, border-color .25s;
}
.suite:hover { background: rgba(251, 247, 239, .45); border-color: var(--ink); color: var(--ink); }
.suite__main { font-family: var(--f-hand); font-size: 2rem; line-height: 1.05; }
.suite__compte { color: var(--kraft-ink); font-size: var(--step--1); font-weight: 600; }

/* --- Questions ----------------------------------------------------------- */

.fiche--faq {
  --tilt: -.25deg;
  max-width: 54rem;
  padding-block: .75rem;
}
.fiche--faq details + details { border-top: 1.5px dotted var(--bristol-line); }
.fiche--faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 0;
  color: var(--ink);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.fiche--faq summary::-webkit-details-marker { display: none; }
.fiche--faq summary .icon {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--copper);
  transition: rotate .4s var(--ease-out);
}
.fiche--faq details[open] summary .icon { rotate: 45deg; }
.fiche--faq summary:hover { color: var(--copper-deep); }
.fiche--faq details p { max-width: 62ch; padding-bottom: 1.4rem; }

/* --- Contact ------------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.fiche--form { grid-column: 1 / span 7; --tilt: -.35deg; }
.fiche--direct { grid-column: 9 / span 4; --tilt: 1.4deg; margin-top: 2.5rem; }
@media (max-width: 1180px) {
  .fiche--form { grid-column: 1 / span 7; }
  .fiche--direct { grid-column: 8 / span 5; }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.champ { margin-top: 1.6rem; }
.hp + .champ { margin-top: 0; }
.champ > label,
.champ > legend {
  display: block;
  margin-bottom: .2rem;
  padding: 0;
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 600;
}
.facultatif { color: var(--taupe); font-weight: 400; }

.champ input[type="text"],
.champ input[type="email"],
.champ select {
  display: block;
  width: 100%;
  min-height: 2.9rem;
  padding: .5rem 0 .45rem;
  border: 0;
  border-bottom: 1.5px solid var(--field-line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  transition: border-color .2s;
}
.champ select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9.5 12 15.5 18 9.5' fill='none' stroke='%23A0613F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right .1rem center / 1.2rem no-repeat;
  cursor: pointer;
}
.champ textarea {
  display: block;
  width: 100%;
  min-height: 8.5rem;
  margin-top: .45rem;
  padding: .75rem .9rem;
  border: 1.5px solid var(--field-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .55);
  color: var(--text);
  line-height: 1.6;
  resize: vertical;
  transition: border-color .2s;
}
.champ input:focus,
.champ select:focus,
.champ textarea:focus { border-color: var(--ink); }
.champ input:focus-visible,
.champ select:focus-visible,
.champ textarea:focus-visible { outline-offset: 4px; }
::placeholder { color: #7A6650; opacity: 1; }

.champ [aria-invalid="true"] { border-color: var(--error); border-bottom-style: dashed; }
.champ textarea[aria-invalid="true"] { border-style: dashed; }
.champ__err {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .4rem;
  color: var(--error);
  font-size: var(--step--1);
  font-weight: 600;
}
.champ__err[hidden] { display: none; }

.champ--radios { margin-inline: 0; padding: 0; border: 0; }
.pastilles { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .55rem; }
.pastilles label { position: relative; }
.pastilles input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pastilles span {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: .4rem 1.05rem;
  border: 1.5px solid var(--field-line);
  border-radius: 999px;
  color: var(--text);
  font-size: var(--step--1);
  pointer-events: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pastilles input:hover + span { border-color: var(--ink); }
.pastilles input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bristol); }
.pastilles input:focus-visible + span { outline: 2.5px solid var(--ink); outline-offset: 3px; }

.champ-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.75rem;
  margin-top: 1.6rem;
}
.champ-duo .champ { margin-top: 0; }

.rgpd { margin-top: 1.6rem; color: var(--taupe); font-size: var(--step--1); line-height: 1.55; }
.form-actions { margin-top: 1.6rem; }

.form-statut:empty { display: none; }
.form-statut {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1.5px solid currentColor;
  border-radius: var(--radius);
  font-size: var(--step--1);
  line-height: 1.55;
}
.form-statut.is-ok { color: #2F5232; background: rgba(70, 96, 63, .08); }
.form-statut.is-error { color: var(--error); background: rgba(158, 43, 30, .06); border-style: dashed; }

.fiche--direct h3 { font-size: var(--step-1); line-height: 1.3; }
.fiche--direct p { margin-top: .8rem; font-size: var(--step--1); }
.lien-fort { font-size: var(--step-0); font-weight: 600; white-space: nowrap; }
.direct__lieu { color: var(--taupe); }
.note--direct { margin-top: 1.25rem !important; font-size: 1.6rem !important; }

/* --- Pied de page -------------------------------------------------------- */

.site-footer {
  margin-top: clamp(5rem, 10vw, 8rem);
  padding-block: 3.5rem 2.5rem;
  background-color: var(--cloth);
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 238, 214, .035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px);
  color: var(--cloth-muted);
  font-size: var(--step--1);
}
.site-footer__inner {
  width: var(--page);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.25rem 3rem;
  align-items: start;
}
.site-footer a { color: var(--cloth-ink); text-decoration-color: rgba(243, 231, 211, .45); }
.site-footer a:hover { color: #FFFFFF; text-decoration-color: var(--cloth-ink); }
.site-footer :focus-visible { outline-color: var(--cloth-ink); }
.footer-brand img { width: 3.75rem; height: 3.75rem; padding: .2rem; background: var(--bristol); border-radius: 50%; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.footer-brand__name {
  margin-top: .6rem;
  color: var(--cloth-ink);
  font-family: var(--f-brand);
  font-size: 2.6rem;
  line-height: 1.1;
}
.footer-brand p:last-child { margin-top: .3rem; }
.footer-nav ul { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.footer-contact p + p { margin-top: .6rem; }
.footer-legal {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 231, 211, .16);
  font-size: .8125rem;
  line-height: 1.7;
}

/* --- Pages intérieures (mentions, confidentialité, CGV) ---------------- */

.page {
  width: min(52rem, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}
.page .fiche { --tilt: -.2deg; }
.page h1 {
  font-size: var(--step-3);
  font-variation-settings: "opsz" 72;
  line-height: 1.1;
  letter-spacing: -.012em;
}
.page .page__intro { margin-top: .9rem; color: var(--taupe); }
.page h2 {
  margin-top: 2.25rem;
  font-size: var(--step-1);
  line-height: 1.3;
}
.page p,
.page ul,
.page dl { margin-top: .75rem; }
.page ul { padding-left: 1.2rem; }
.page li + li { margin-top: .35rem; }
.page dl { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: .5rem 1.5rem; }
.page dt { color: var(--ink); font-weight: 600; }
.page dd { margin: 0; }
.retour { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.25rem; color: var(--ink); font-weight: 600; font-size: var(--step--1); }
.retour .icon { rotate: 180deg; }
.a-completer { padding: 0 .3rem; background: #F6DCCB; color: var(--error); font-weight: 600; }

/* --- Adaptations --------------------------------------------------------- */

@media (max-width: 1080px) {
  .site-nav ul { gap: 1.1rem; }
  .site-nav { gap: 1.25rem; }
}

@media (max-width: 960px) {
  .header-devis,
  .menu-toggle { display: inline-flex; }
  .header-devis { padding: .45rem .85rem; }

  .site-nav {
    position: absolute;
    top: calc(100% + .5rem);
    left: var(--gutter);
    right: var(--gutter);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem 1.5rem 1.5rem;
    background: var(--bristol);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul li + li { border-top: 1.5px dotted var(--bristol-line); }
  .site-nav ul a { display: block; padding: .8rem 0; font-size: var(--step-0); background: none; }
  .nav-cta { justify-content: center; padding: .8rem 1rem; }

  .hero__table { grid-template-columns: minmax(0, 1fr); }
  .print {
    grid-column: 1;
    grid-row: 1;
    z-index: 1;
    justify-self: center;
    width: min(82%, 24rem);
    margin: 0;
  }
  .fiche--hero {
    grid-column: 1;
    grid-row: 2;
    z-index: 2;
    --margin: 2.75rem;
    --tilt: .6deg;
    margin-top: -2.75rem;
    padding-right: clamp(1.25rem, 4vw, 2.5rem);
  }

  .fiche--beta,
  .fiche--correction,
  .fiche--accompagnement,
  .notes { grid-column: 1 / -1; }
  .fiche--correction { margin-top: 0; }
  .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 0; }
  .post-it--signes { margin-left: 0; }

  .comptoir__inner { grid-template-columns: minmax(0, 1fr); }
  .ticket-zone { max-width: 26rem; width: 100%; justify-self: center; }

  .deroule { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deroule__etape:nth-child(3) { border-left: 0; }
  .deroule__etape:nth-child(n + 3) { border-top: 2px dashed var(--bristol-line); }

  .fiche--form,
  .fiche--direct { grid-column: 1 / -1; }
  .fiche--direct { margin-top: 0; max-width: 32rem; }

  .site-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .site-header__inner { gap: .6rem; min-height: 4.25rem; }
  .brand { gap: .5rem; }
  .brand__name { font-size: 1.6rem; }
  .brand__logo { width: 2.2rem; height: 2.2rem; }
  .header-devis { padding: .4rem .7rem; }
  .menu-toggle { padding-inline: .4rem; }
  .hero__brand { line-height: calc(var(--lh) * 2); }
  .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

  .fiche { --margin: 1.6rem; padding-left: calc(var(--margin) + 1rem); padding-right: 1.15rem; }
  .fiche--hero { --margin: 1.75rem; }
  .hero__offer { max-width: none; }


  .niveaux { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .niveau + .niveau { padding-left: 0; padding-top: 1.25rem; border-left: 0; border-top: 1.5px dotted var(--bristol-line); }

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

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

  .deroule { grid-template-columns: minmax(0, 1fr); }
  .deroule__etape + .deroule__etape { border-left: 0; border-top: 2px dashed var(--bristol-line); }

  .section__head--row { flex-direction: column; align-items: flex-start; }

  .champ-duo { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }

  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .page dl { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .page dd + dt { margin-top: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .ticket.is-waiting { transform: none; }
}

@media print {
  body { background: #fff; }
  .site-header, .comptoir, .carrousel-nav, .hero__actions, .site-footer { display: none; }
  .fiche, .print, .post-it { box-shadow: none; transform: none; }
}

/* Pages intérieures : la fiche reste droite pour la lecture longue */
.page .fiche,
.page .fiche:hover,
.page .fiche:focus-within { transform: none; box-shadow: var(--shadow-paper); }
.fiche--page { padding-block: clamp(2rem, 5vw, 3rem) clamp(2.25rem, 5vw, 3.25rem); }
.fiche--page a { overflow-wrap: anywhere; }
.page .formulaire-retractation { padding-left: 0; list-style: none; }
.formulaire-retractation li { padding: .75rem 0 1.75rem; border-bottom: 1.5px dotted var(--bristol-line); }
.page .formulaire-retractation li + li { margin-top: 0; }
.note--page { margin-top: 1.75rem !important; }

/* La police manuscrite a des espaces très étroites : on les ouvre un peu. */
.note,
.signature,
.print__caption,
.post-it h3,
.suite__main { word-spacing: .16em; }

/* ==========================================================================
   Le roman : chapitres, bandeau de livre, page corrigée, tampons, cachet,
   texte qui se tape à la machine.
   ========================================================================== */

/* Numéros de chapitre calligraphiés, accrochés au titre */
.chap {
  margin-right: .32em;
  color: var(--copper-deep);
  font-style: italic;
  font-weight: 500;
  letter-spacing: .01em;
}
.chap:not(.chap--mot)::after { content: "."; }
.comptoir .chap { color: #D49A74; }

/* Épigraphes, comme en tête des chapitres de roman */
.section__head--epigraphe {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.5rem 3.5rem;
  align-items: end;
  max-width: none;
}
.epigraphe {
  max-width: 24rem;
  margin: 0 0 .35rem auto;
  color: var(--kraft-ink);
  text-align: right;
}
.epigraphe p {
  margin: 0;
  font-size: var(--step-1);
  font-style: italic;
  line-height: 1.45;
}
.epigraphe footer { margin-top: .55rem; font-size: var(--step--1); letter-spacing: .02em; }
.epigraphe footer::before { content: "—\00a0"; }
.lectures__cote { display: flex; align-items: flex-end; gap: 2.5rem; }
.epigraphe--courte { max-width: 15rem; margin-bottom: .2rem; }

/* Le bandeau du livre : une bande cuivrée qui traverse la table */
.bandeau-livre {
  position: relative;
  margin: clamp(3rem, 6vw, 4.5rem) calc(50% - 50vw) 0;
  padding: 1.1rem var(--gutter) 1.15rem;
  background-color: var(--copper);
  background-image: var(--tex-fleck);
  color: #FFFCF6;
  box-shadow: var(--shadow-paper);
  rotate: -1.2deg;
}
.promesses {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem 2.75rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  font-size: var(--step-0);
}
.promesses li::before {
  content: "";
  display: inline-block;
  width: .85rem;
  height: .85rem;
  margin-right: .6rem;
  vertical-align: -.04em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.3c-.3 0-.6-.1-.8-.3C6.4 16 3 12.9 3 9.1 3 6.4 5.1 4.3 7.7 4.3c1.6 0 3.2.8 4.3 2.1 1.1-1.3 2.7-2.1 4.3-2.1C18.9 4.3 21 6.4 21 9.1c0 3.8-3.4 6.9-8.2 10.9-.2.2-.5.3-.8.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.3c-.3 0-.6-.1-.8-.3C6.4 16 3 12.9 3 9.1 3 6.4 5.1 4.3 7.7 4.3c1.6 0 3.2.8 4.3 2.1 1.1-1.3 2.7-2.1 4.3-2.1C18.9 4.3 21 6.4 21 9.1c0 3.8-3.4 6.9-8.2 10.9-.2.2-.5.3-.8.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.promesses strong { font-weight: 700; }

/* Le tampon de la libraire : le logo, à l'encre, imparfait */
.tampon {
  --size: 6rem;
  --rot: -12deg;
  display: block;
  width: var(--size);
  height: var(--size);
  background: var(--copper);
  opacity: .8;
  mix-blend-mode: multiply;
  rotate: var(--rot);
  pointer-events: none;
  -webkit-mask-image: url("../img/logo-512.png"), var(--tex-ink);
  -webkit-mask-size: contain, 9rem 9rem;
  -webkit-mask-repeat: no-repeat, repeat;
  -webkit-mask-position: center, 0 0;
  -webkit-mask-composite: source-in;
  mask-image: url("../img/logo-512.png"), var(--tex-ink);
  mask-size: contain, 9rem 9rem;
  mask-repeat: no-repeat, repeat;
  mask-position: center, 0 0;
  mask-composite: intersect;
}
.tampon--hero { position: absolute; right: 1.5rem; bottom: 1.25rem; --size: 6.5rem; --rot: -14deg; }
@container (min-width: 32rem) {
  .hero__actions { padding-right: 7.5rem; }
}
@container (max-width: 31.99rem) {
  .tampon--hero { top: .55rem; right: .55rem; bottom: auto; --size: 3.75rem; --rot: 12deg; }
}
.engagements__tete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-height: calc(var(--lh) * 3);
}
.tampon--sceau { --size: calc(var(--lh) * 3); --rot: 9deg; flex: none; }

/* Le logo imprimé en tête du ticket */
.ticket__logo {
  display: block;
  width: 3rem;
  height: 3rem;
  margin: 0 auto .7rem;
  background: var(--receipt-ink);
  -webkit-mask: url("../img/logo-192.png") center / contain no-repeat;
  mask: url("../img/logo-192.png") center / contain no-repeat;
}

/* L'emblème frappé à sec dans la toile du comptoir */
.comptoir { position: relative; overflow: clip; }
.comptoir::before,
.comptoir::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -6rem;
  width: min(32rem, 75vw);
  aspect-ratio: 1;
  rotate: -8deg;
  pointer-events: none;
  -webkit-mask: url("../img/logo-512.png") center / contain no-repeat;
  mask: url("../img/logo-512.png") center / contain no-repeat;
}
.comptoir::before { background: rgba(255, 236, 210, .08); translate: 2px 2px; }
.comptoir::after { background: rgba(0, 0, 0, .32); }
.comptoir__inner { position: relative; z-index: 1; }
@media (min-width: 961px) {
  .ticket-zone { position: sticky; top: 6rem; }
}

/* Chapitre II : la page de manuscrit corrigée */
.exemple {
  display: grid;
  grid-template-columns: minmax(0, 7.5fr) minmax(0, 4.5fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.manuscrit {
  position: relative;
  margin: 0;
  padding: clamp(2rem, 4vw, 3rem) clamp(9rem, 15vw, 12.5rem) clamp(2rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 3.25rem);
  background: #FFFEFA;
  color: #2B2420;
  font-family: var(--f-mono);
  box-shadow: var(--shadow-paper);
  rotate: -.6deg;
}
.manuscrit__entete { margin-bottom: 1.6rem; color: #6D635B; font-size: .82rem; text-align: right; }
.manuscrit__texte p {
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  line-height: 2.35;
  text-indent: 2.5em;
}
.manuscrit__legende { margin-top: 1.4rem; color: #6D635B; font-family: var(--f-text); font-size: var(--step--1); font-style: italic; }

.corr { --d: 0s; position: relative; white-space: nowrap; }
.corr[data-n="2"] { --d: .55s; }
.corr[data-n="3"] { --d: 1.1s; }
.corr[data-n="4"] { --d: 1.65s; }
.corr del { position: relative; text-decoration: none; }
.corr del::after {
  content: "";
  position: absolute;
  left: -.15em;
  right: -.15em;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: var(--copper);
  rotate: -5deg;
  transform-origin: left center;
}
.corr ins {
  position: absolute;
  left: 50%;
  bottom: 1.1em;
  color: var(--copper-deep);
  font-family: var(--f-hand);
  font-size: 1.4em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  word-spacing: .16em;
  translate: -50% 0;
  rotate: -4deg;
}
.corr::before {
  content: attr(data-n);
  position: absolute;
  top: -1.75em;
  right: -1.15em;
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border: 1.5px solid var(--copper);
  border-radius: 50%;
  background: #FFFEFA;
  color: var(--copper-deep);
  font: 600 .62rem/1 var(--f-text);
  text-indent: 0;
}
.corr--espace .espace { display: inline-block; position: relative; width: .85em; height: 1em; vertical-align: -.22em; }
.corr--espace .espace::before,
.corr--espace .espace::after {
  content: "";
  position: absolute;
  left: .05em;
  right: .05em;
  height: .32em;
  border: 2px solid var(--copper);
}
.corr--espace .espace::before { top: .02em; border-bottom: 0; border-radius: .45em .45em 0 0; }
.corr--espace .espace::after { bottom: .02em; border-top: 0; border-radius: 0 0 .45em .45em; }

.marge {
  position: absolute;
  top: clamp(5.5rem, 9vw, 7rem);
  right: clamp(.75rem, 1.6vw, 1.5rem);
  width: clamp(7.5rem, 13vw, 10.5rem);
  color: var(--copper-deep);
  font-family: var(--f-hand);
  font-size: 1.3rem;
  line-height: 1.35;
  word-spacing: .16em;
  rotate: 3deg;
}
.marge__fleche { width: 4.5rem; height: 3.4rem; margin: 0 0 .2rem -2.75rem; color: var(--copper); }

.fiche--corrections { --tilt: 1deg; margin-top: 2.5rem; }
.fiche--corrections h3 { font-size: var(--step-1); line-height: 1.3; }
.corrections { margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: correction; }
.corrections li {
  position: relative;
  padding-left: 2.1rem;
  counter-increment: correction;
  font-size: var(--step--1);
  line-height: 1.6;
}
.corrections li + li { margin-top: .75rem; }
.corrections li::before {
  content: counter(correction);
  position: absolute;
  left: 0;
  top: .1rem;
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border: 1.5px solid var(--copper);
  border-radius: 50%;
  color: var(--copper-deep);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1;
}
.corrections strong { color: var(--ink); }
.corrections__beta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1.5px dotted var(--bristol-line);
  font-size: var(--step--1);
  line-height: 1.6;
}

/* Les corrections s'inscrivent une à une, une fois la page tapée */
@media (prefers-reduced-motion: no-preference) {
  .corr del::after { transition: scale .35s var(--ease-out) var(--d); }
  .corr ins { transition: opacity .3s ease-out calc(var(--d) + .25s), translate .45s var(--ease-out) calc(var(--d) + .25s); }
  .corr::before { transition: scale .3s var(--ease-out) calc(var(--d) + .4s), opacity .2s calc(var(--d) + .4s); }
  .corr--espace .espace::before,
  .corr--espace .espace::after { transition: opacity .3s ease-out var(--d); }
  .marge { transition: clip-path .9s var(--ease-out) 2.3s; }

  .js-motion .exemple:not(.is-corrected) .corr del::after { scale: 0 1; }
  .js-motion .exemple:not(.is-corrected) .corr ins { opacity: 0; translate: -50% .4rem; }
  .js-motion .exemple:not(.is-corrected) .corr::before { opacity: 0; scale: .2; }
  .js-motion .exemple:not(.is-corrected) .corr--espace .espace::before,
  .js-motion .exemple:not(.is-corrected) .corr--espace .espace::after { opacity: 0; }
  .js-motion .exemple:not(.is-corrected) .marge { clip-path: inset(-10% 100% -10% -30%); }
  .js-motion .exemple.is-corrected .marge { clip-path: inset(-10% -10% -10% -30%); }
}

/* Le texte se tape à la machine (les lecteurs d'écran lisent la copie masquée) */
.tw--bloc { display: block; }
.tw-ready .tw-c { visibility: hidden; }
.tw-ready .tw-c.on { visibility: visible; }

/* Le titre s'écrit à la plume, puis la libraire tamponne sa fiche */
.hero__brand { position: relative; }
.hero__ecrit { display: inline-block; }
.paraphe {
  position: absolute;
  left: .1em;
  bottom: .04em;
  width: 5.7em;
  height: .32em;
  fill: var(--copper);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__ecrit { animation: ecrire 1.1s cubic-bezier(.45, .05, .35, 1) .15s both; }
  .paraphe { animation: parapher .7s var(--ease-out) 1.15s both; }
  .signature { animation: parapher .9s var(--ease-out) 2.35s both; }
  .tampon--hero { animation: tamponner .55s var(--ease-out) 2.75s both; }
}
@keyframes ecrire {
  from { clip-path: inset(-35% 100% -45% -6%); }
  to { clip-path: inset(-35% -6% -45% -6%); }
}
@keyframes parapher {
  from { clip-path: inset(-25% 100% -25% -5%); }
  to { clip-path: inset(-25% -5% -25% -5%); }
}
@keyframes tamponner {
  0% { opacity: 0; scale: 1.7; }
  55% { opacity: .9; scale: .94; }
  100% { opacity: .8; scale: 1; }
}

/* La demande est une lettre, fermée d'un cachet de cire au logo */
.fiche--form { padding-bottom: 3rem; }
.cachet {
  position: absolute;
  right: -1.6rem;
  bottom: -2.2rem;
  width: clamp(5.5rem, 9vw, 7.75rem);
  height: auto;
  aspect-ratio: 1;
  rotate: -9deg;
  filter: drop-shadow(0 7px 8px rgba(62, 35, 16, .38));
  pointer-events: none;
}

/* Questions : la fiche et un mot glissé à côté */
.questions {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.questions .fiche--faq { grid-column: 1 / span 8; max-width: none; }
.post-it--question { grid-column: 9 / span 4; --tilt: 2.2deg; max-width: 22rem; margin-top: 3.5rem; }

/* Lectures : des fiches au format des chroniques Instagram */
.carrousel { padding-top: 1.75rem; }
.tape--lecture { top: -.95rem; left: 50%; width: 6rem; height: 1.8rem; translate: -50% 0; rotate: 2deg; }
.lecture:nth-child(even) .tape--lecture { rotate: -3deg; }
.lecture__label {
  margin-top: 1.1rem;
  color: var(--ink);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lecture__label + .mots { margin-top: .45rem; }

/* En-tête des pages intérieures */
.cta-court { display: none; }

@media (max-width: 1180px) {
  .promesses {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    column-gap: 3rem;
  }
}

@media (max-width: 1180px) {
  .manuscrit { padding-right: clamp(1.5rem, 4vw, 3.25rem); }
  .marge { position: static; width: auto; max-width: 30rem; margin-top: 1.25rem; rotate: -1deg; }
  .marge__fleche { margin-left: 0; rotate: 120deg; width: 3rem; height: 2.4rem; }
}

@media (max-width: 960px) {
  .section__head--epigraphe { grid-template-columns: minmax(0, 1fr); }
  .epigraphe { margin-left: 0; text-align: left; }
  .exemple { grid-template-columns: minmax(0, 1fr); }
  .fiche--corrections { margin-top: 0; max-width: 34rem; }
  .questions .fiche--faq,
  .post-it--question { grid-column: 1 / -1; }
  .post-it--question { margin-top: 0; }
}

@media (max-width: 640px) {
  .promesses { grid-template-columns: max-content; justify-content: start; }
  .bandeau-livre { rotate: -2deg; }
  .lectures__cote { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .manuscrit { padding: 1.75rem 1.25rem 1.75rem; rotate: -.4deg; }
  .manuscrit__texte p { line-height: 2.5; text-indent: 1.5em; }
  .cachet { right: -.6rem; bottom: -1.9rem; width: 5rem; }
  .cta-long { display: none; }
  .cta-court { display: inline; }
}

@media print {
  .tw-ready .tw-c { visibility: visible !important; }
}

/* Les boucles de la calligraphie débordent de la boîte du texte : on leur laisse de l'air. */
.brand__name { padding-right: .3em; }
@media (max-width: 380px) {
  .brand__name { font-size: 1.4rem; }
  .brand__logo { width: 2rem; height: 2rem; }
}
@media (max-width: 340px) {
  /* Sur les plus petits écrans, la demande de devis reste dans le menu et dans la fiche. */
  .header-devis { display: none; }
}
