/* L'atelier réfection moteur — direction « la fiche d'atelier »
   Fond bleu nuit, feuilles de papier aux bords découpés, une seule famille (Archivo), un seul accent bleu. */

@font-face { font-family: "Archivo"; src: url("/fonts/archivo-var.woff") format("woff"); font-weight: 400 800; font-stretch: 62% 100%; font-style: normal; font-display: swap; }

:root {
  --navy: #0b1f3d;
  --navy-2: #12294d;
  --navy-3: #1a3a6b;
  --navy-4: #24497f;
  --paper: #f2f2ee;
  --paper-2: #e5e8e4;
  --steel: #c9d2de;
  --ink: #0e1a2e;
  --soft: #46536a;
  --on-navy: #f2f2ee;
  --on-navy-soft: #b4c3dc;
  --blue: #1f5fd6;
  --blue-press: #174cb0;
  --wa: #0f7a40;

  --text: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  --step-sub: clamp(1.75rem, 1.35rem + 1.3vw, 2.5rem);
  --step-head: clamp(2.05rem, 1.25rem + 3.1vw, 4.25rem);
  --step-display: clamp(3.3rem, 1rem + 9vw, 8.75rem);

  --margin: clamp(16px, 3vw, 40px);
  --wrap: 1280px;
  --gap-section: clamp(88px, 10vw, 180px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--navy); }
body {
  margin: 0; font-family: var(--text); font-size: var(--step-body); line-height: 1.55; color: var(--ink);
  background: var(--navy); font-stretch: 100%; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  font-variant-numeric: tabular-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
p { margin: 0 0 1em; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.on-navy :focus-visible, .top :focus-visible { outline-color: #fff; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--margin), env(safe-area-inset-left)); padding-right: max(var(--margin), env(safe-area-inset-right)); }

/* Typographie : un très grand corps, un petit, presque rien entre les deux */
.display, .head, h1, h2 { font-family: var(--text); font-stretch: 68%; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.95; margin: 0; text-wrap: balance; }
.display { font-size: var(--step-display); line-height: 0.88; }
h1, .head { font-size: var(--step-head); }
h2 { font-size: var(--step-head); }
h3 { font-family: var(--text); font-size: var(--step-lead); font-weight: 700; line-height: 1.2; margin: 0 0 .4em; font-stretch: 85%; }
.lead { font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; }
.small { font-size: var(--step-small); }

/* Boutons : rectangles pleins, coins carrés, partout pareils */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 0 1.4em; border: 0; border-radius: 0; font: 650 1rem/1.1 var(--text); font-stretch: 90%; text-decoration: none; cursor: pointer; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:active { transform: scale(0.97); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-press); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--navy-3); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0b6534; }
.btn-line { background: var(--paper-2); color: var(--ink); }
.btn-line:hover { background: var(--steel); }
.link { font-weight: 650; text-decoration: underline; text-decoration-color: var(--blue); }
.link:hover { color: var(--blue); }

/* ---------- Barre du haut, posée sur le fond ---------- */
.top { position: relative; z-index: 5; color: var(--on-navy); padding-top: env(safe-area-inset-top); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 92px; }
.brand img { height: 62px; width: auto; }
.nav { display: flex; gap: 26px; margin: 0 auto; }
.nav a { position: relative; color: var(--on-navy); text-decoration: none; font-weight: 550; font-size: var(--step-body); padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.top-actions { display: flex; align-items: center; gap: 18px; }
.top-tel { color: var(--on-navy); text-decoration: none; font-weight: 650; white-space: nowrap; }
.menu-btn { display: none; }

/* ---------- La fiche (feuille de papier) ---------- */
.sheet { position: relative; background: var(--paper); color: var(--ink); }
/* bord du haut perforé, comme une feuille détachée d'un carnet */
.edge-top { --r: 9px; -webkit-mask: radial-gradient(var(--r) at 50% 0, #0000 98%, #000) 50% 0 / calc(var(--r) * 3.2) 100% repeat-x; mask: radial-gradient(var(--r) at 50% 0, #0000 98%, #000) 50% 0 / calc(var(--r) * 3.2) 100% repeat-x; }
/* bord du bas en dents de scie, comme un ticket déchiré */
.edge-zig { --z: 12px; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%; }
.edge-scallop { --r: 14px; -webkit-mask: radial-gradient(var(--r) at 50% 100%, #0000 98%, #000) 50% 100% / calc(var(--r) * 2.4) 100% repeat-x; mask: radial-gradient(var(--r) at 50% 100%, #0000 98%, #000) 50% 100% / calc(var(--r) * 2.4) 100% repeat-x; }
.perfo { border: 0; border-top: 6px dotted var(--steel); margin: 0; }

/* En-tête de fiche : ce qui est imprimé en haut d'un ordre de réparation */
.sheet-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 30px 48px 18px; font-size: var(--step-small); color: var(--soft); background: var(--paper-2); }
.sheet-head strong { color: var(--ink); font-weight: 700; }

/* Lignes à pointillés de conduite (devis, tickets, cartes) */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; }
.row .k { flex: 0 1 auto; min-width: 0; }
.row .dots { flex: 1 0 18px; min-width: 18px; border-bottom: 4px dotted #aab4c4; transform: translateY(-4px); }
.row .v { flex: none; font-weight: 700; text-align: right; white-space: nowrap; }
.row a, a.row { text-decoration: none; }
a.row:hover .k { text-decoration: underline; text-decoration-color: var(--blue); }
.row a:hover .k { text-decoration: underline; text-decoration-color: var(--blue); }

/* Puces carrées, le seul motif répété */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 26px; margin: 0 0 .55em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 11px; background: var(--blue); }

/* ---------- Accueil : la fiche moteur ---------- */
.hero-home { position: relative; overflow: hidden; color: var(--on-navy); }
.hero-home .stage { padding-top: 24px; }
.hero-home .sheet { margin: 0 auto; max-width: 1180px; min-height: calc(100svh - 92px - 24px + 60px); }
.hero-body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px 48px; padding: 44px 48px 96px; }
.hero-ctas .btn { padding: 0 1.1em; }
.hero-body .display { color: var(--ink); }
.hero-body .hero-title { grid-column: 1 / -1; margin-bottom: 4px; }
.hero-body .lead { margin: 0 0 32px; color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { position: absolute; right: -40px; bottom: -30px; width: 340px; opacity: .9; pointer-events: none; }

/* Le sélecteur « votre moteur » */
.picker { background: #fff; padding: 26px 26px 22px; align-self: start; }
.picker h2 { font-size: var(--step-sub); margin-bottom: 8px; }
.picker > p { color: var(--soft); font-size: var(--step-body); margin-bottom: 16px; }
.picker label { display: block; font-weight: 650; font-size: var(--step-small); margin: 14px 0 6px; }
.picker select { width: 100%; height: 50px; padding: 0 40px 0 14px; font: 500 1rem var(--text); color: var(--ink); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1a2e' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; border: 0; border-bottom: 3px solid var(--ink); border-radius: 0; -webkit-appearance: none; appearance: none; }
.picker select:focus { outline: none; border-bottom-color: var(--blue); }
.picker-out { margin-top: 18px; }
.picker-out[hidden] { display: none; }
.picker-out .issue { font-size: var(--step-body); margin: 0 0 6px; }
.picker-out .rows { margin: 8px 0 16px; font-size: var(--step-small); }
.picker-out .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.picker-fallback { columns: 2; font-size: var(--step-small); margin: 0; padding: 0; list-style: none; }
.picker-fallback li { margin-bottom: 4px; }
.js .picker-fallback { display: none; }
.picker-form { display: none; }
.js .picker-form { display: block; }

/* ---------- Sections ---------- */
.band { padding: var(--gap-section) 0; }
.band.paper { background: var(--paper); color: var(--ink); }
.band.navy { background: var(--navy); color: var(--on-navy); }
.band.navy-2 { background: var(--navy-2); color: var(--on-navy); }
.band.tone { background: var(--paper-2); color: var(--ink); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-r { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.measure { max-width: 34ch; }
.on-navy-soft { color: var(--on-navy-soft); }

/* Le déroulé imprimé sur un ticket */
.slip { max-width: 480px; margin-left: auto; padding: 34px 32px 52px; background: var(--paper); color: var(--ink); }
.slip h3 { font-size: var(--step-body); margin: 26px 0 4px; font-stretch: 100%; }
.slip h3:first-child { margin-top: 0; }
.slip .row { padding: 6px 0; font-size: var(--step-body); }
.slip .total { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 26px -32px 0; padding: 0 32px; min-height: 52px; background: var(--ink); color: var(--paper); font-weight: 700; }

/* Le jeu de cartes des marques, qui se replie en tranches */
.deck-wrap { position: relative; }
.deck-stage { position: relative; }
.deck { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.deck::-webkit-scrollbar { display: none; }
.deck .card { flex: 0 0 min(560px, 84vw); scroll-snap-align: start; min-height: 340px; padding: 32px; display: flex; flex-direction: column; color: var(--on-navy); text-decoration: none; }
.deck .card:nth-child(3n+1) { background: var(--navy-2); }
.deck .card:nth-child(3n+2) { background: var(--navy-3); }
.deck .card:nth-child(3n) { background: var(--navy-4); }
.deck .card h3 { font-stretch: 68%; font-weight: 800; text-transform: uppercase; font-size: var(--step-sub); line-height: .95; margin: 0 0 14px; }
.deck .card p { color: var(--on-navy-soft); font-size: var(--step-body); margin: 0; max-width: 40ch; }
.deck .card .card-foot { margin-top: auto; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; font-weight: 650; font-size: var(--step-small); }
.deck .card .card-foot span:first-child { color: var(--on-navy-soft); font-weight: 500; }
.deck .card:hover .card-foot span:last-child { text-decoration: underline; }
.deck-note { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; font-size: var(--step-body); }

@media (min-width: 1081px) and (prefers-reduced-motion: no-preference) {
  .js .deck-wrap { height: 220svh; }
  .js .deck-stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .js .deck { overflow: hidden; display: block; position: relative; height: 380px; }
  .js .deck .card { position: absolute; top: 0; left: 0; width: 620px; height: 380px; overflow: hidden; transition: transform 120ms linear; will-change: transform; }
  .js .deck .card.spine h3 { white-space: nowrap; }
}

/* La lettre de l'atelier */
.letter { max-width: 680px; margin: 0 auto; padding: 60px 60px 72px; }
.letter p { font-size: var(--step-body); line-height: 1.6; }
.letter .sign { font-weight: 700; font-size: var(--step-lead); margin-top: 1.6em; }
.letter .sign span { display: block; font-weight: 400; font-size: var(--step-small); color: var(--soft); }
.letter mark { background: #d6e3fb; color: inherit; padding: 0 .15em; }
.tearoff { max-width: 680px; margin: 0 auto; background: var(--paper); color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 60px; min-height: 76px; flex-wrap: wrap; }
.tearoff a { font-weight: 700; text-decoration: none; }

/* Les prestations, comme une carte de tarifs */
.menu-sheet { max-width: 640px; padding: 56px 52px 64px; }
.menu-sheet > h2 { text-align: center; margin-bottom: 36px; }
.menu-group + .menu-group { margin-top: 40px; }
.menu-group h3 { font-size: var(--step-body); font-stretch: 100%; margin-bottom: 6px; }
.menu-item { padding: 9px 0; }
.menu-item .row { padding: 0; font-size: var(--step-body); }
.menu-item .desc { color: var(--soft); font-size: var(--step-small); max-width: 40ch; margin: 3px 0 0; }
.menu-item a { text-decoration: none; }
.menu-item a:hover .k { color: var(--blue); }

/* La carte de visite posée sur le dessin */
.visit { position: relative; min-height: 100svh; background: var(--navy-2); overflow: hidden; }
.visit-art { position: absolute; inset: 0; display: grid; align-items: center; justify-items: start; padding-left: max(var(--margin), calc((100vw - var(--wrap)) / 2 + var(--margin))); }
.visit-art svg { height: min(82svh, 760px); width: auto; }
.visit-card { position: absolute; top: 60px; right: max(var(--margin), calc((100vw - var(--wrap)) / 2 + var(--margin))); width: 400px; background: var(--paper); color: var(--ink); padding: 32px 32px 0; border-radius: 8px; overflow: hidden; }
.visit-card h2 { font-size: var(--step-sub); margin-bottom: 14px; }
.visit-card address { font-style: normal; margin-bottom: 14px; }
.visit-card .rows { margin-bottom: 18px; }
.visit-card .btn { width: calc(100% + 64px); margin: 0 -32px; min-height: 58px; }
.visit-zone { position: absolute; right: max(var(--margin), calc((100vw - var(--wrap)) / 2 + var(--margin))); bottom: 56px; width: 400px; color: var(--on-navy-soft); font-size: var(--step-body); }
.visit-zone a { color: var(--on-navy); }

/* Animation du dessin : piston, bielle, vilebrequin */
.crank { transform-box: fill-box; transform-origin: center; }
.piston-move { transform-box: view-box; }
@media (prefers-reduced-motion: no-preference) {
  .crank { animation: spin 2.4s linear infinite; }
  .piston-move { animation: stroke 1.2s cubic-bezier(.45,0,.55,1) infinite alternate; }
  .rod { transform-box: view-box; transform-origin: 150px 182px; animation: swing 2.4s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes stroke { to { transform: translateY(96px); } }
@keyframes swing { 0%, 50%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }

/* Questions à côté d'un grand dessin */
.faq-facts { margin: 22px 0 30px; font-size: var(--step-body); }
.faq-facts p { margin: 0 0 6px; }
.faq details { padding: 0; margin: 0 0 22px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: baseline; font-weight: 650; font-size: var(--step-lead); line-height: 1.3; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform var(--t-ui) var(--ease-out); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details > div { color: var(--soft); font-size: var(--step-body); max-width: 60ch; padding-top: 8px; }
.on-navy .faq details > div { color: var(--on-navy-soft); }
.tall-art { position: relative; background: var(--navy); height: 560px; display: grid; place-items: center; }
.tall-art > svg { max-height: 78%; max-width: 84%; height: auto; }
.tall-art .sq { position: absolute; left: -40px; bottom: -40px; width: 34%; aspect-ratio: 1; background: var(--blue); display: grid; place-items: center; padding: 8%; }
.tall-art .sq svg { height: 100%; width: auto; }

/* La carte réponse */
.reply { position: relative; overflow: hidden; min-height: 80svh; display: flex; align-items: flex-end; padding-top: 96px; }
.reply .wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; align-items: end; }
.reply-text { color: var(--on-navy-soft); font-size: var(--step-lead); line-height: 1.4; margin-bottom: 64px; max-width: 30ch; }
.reply-text strong { color: var(--on-navy); font-weight: 600; }
.reply-card { justify-self: end; width: min(640px, 100%); aspect-ratio: 7 / 5; background: var(--paper); color: var(--ink); padding: 48px; text-align: center; transform: rotate(-2deg) translateY(60px); display: flex; flex-direction: column; justify-content: center; }
.reply-card h2 { font-size: var(--step-sub); margin-bottom: 14px; }
.reply-card p { color: var(--soft); max-width: 36ch; margin: 0 auto 26px; }
.reply-card .btn { width: 100%; min-height: 58px; }
.reply-card .alt { display: flex; justify-content: center; gap: 22px; margin-top: 16px; font-weight: 650; }

/* ---------- Pages intérieures ---------- */
.hero-page { color: var(--on-navy); padding-bottom: 0; }
.hero-page .sheet { max-width: 1180px; margin: 24px auto 0; }
.page-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px 56px; padding: 40px 48px 64px; }
.page-title { grid-column: 1 / -1; max-width: 22ch; max-width: 1000px; }
.crumbs { font-size: var(--step-small); color: var(--soft); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 6px; }
.page-body .lead { margin: 0 0 28px; max-width: 40ch; }
.page-fiche { background: #fff; padding: 26px 26px 20px; align-self: start; }
.page-fiche h2 { font-size: var(--step-body); font-stretch: 100%; text-transform: none; letter-spacing: 0; margin: 0 0 12px; line-height: 1.2; }
.page-fiche .ticks { margin-bottom: 18px; }
.page-fiche .rows { font-size: var(--step-small); }

.kids { padding: 64px 0 40px; background: var(--navy); }
.kids-sheet { max-width: 1180px; margin: 0 auto; padding: 44px 48px 60px; }
.kids-sheet .row { padding: 14px 0 4px; font-size: var(--step-lead); font-weight: 650; }
.kids-sheet .desc { color: var(--soft); font-size: var(--step-small); margin: 0 0 6px; max-width: 70ch; }
.kids-cols { columns: 2; column-gap: 56px; }
.kids-cols > div { break-inside: avoid; }

.reading { background: var(--paper); }
.reading .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 96px); padding-top: 88px; padding-bottom: 96px; }
.prose { max-width: 68ch; font-size: var(--step-body); line-height: 1.65; }
.prose h2 { font-size: var(--step-sub); margin: 1.6em 0 .55em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 24px; }
.prose ul > li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; background: var(--blue); }
.prose li { margin-bottom: .45em; }
.prose a { text-decoration-color: var(--blue); }
.prose a:hover { color: var(--blue); }
.prose blockquote { margin: 1.6em 0; padding: 22px 26px; background: var(--paper-2); }
.prose blockquote p:last-child { margin: 0; }
.prose strong { font-weight: 650; }
.table-wrap { overflow-x: auto; margin: 1.4em 0 1.8em; background: #fff; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step-small); }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--paper-2); vertical-align: top; }
.prose th { background: var(--ink); color: var(--paper); font-weight: 650; }
.side { position: sticky; top: 24px; align-self: start; }
.side-card { background: var(--paper-2); padding: 26px; }
.side-card h2 { font-size: var(--step-sub); margin-bottom: 10px; }
.side-card p { color: var(--soft); font-size: var(--step-body); }
.side-card .btn { width: 100%; margin-top: 8px; }
.side-card .rows { font-size: var(--step-small); margin-top: 14px; }

.faq-band .split { grid-template-columns: 5fr 7fr; }
.more-links .rows { max-width: 820px; font-size: var(--step-body); }
.more-links .row { padding: 12px 0; }

/* Formulaire de devis, comme un bon de commande */
.order { background: #fff; padding: 32px 32px 26px; margin-bottom: 48px; }
.order h2 { font-size: var(--step-sub); margin-bottom: 8px; }
.order > p { color: var(--soft); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; margin-top: 18px; }
.form .full { grid-column: 1 / -1; }
.form label, .form .lbl { display: block; font-weight: 650; font-size: var(--step-small); margin: 14px 0 4px; }
.form input, .form select, .form textarea { width: 100%; font: 500 1.05rem var(--text); color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 10px 2px; -webkit-appearance: none; appearance: none; }
.form textarea { min-height: 110px; resize: vertical; border: 2px solid var(--ink); padding: 10px 12px; }
.form select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1a2e' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 4px center / 18px no-repeat; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); }
.radios { display: flex; gap: 10px; flex-wrap: wrap; }
.radios label { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; background: var(--paper); font-weight: 550; font-size: var(--step-body); cursor: pointer; }
.radios input { width: 20px; height: 20px; accent-color: var(--blue); -webkit-appearance: auto; appearance: auto; }
.form .hint { font-size: var(--step-small); color: var(--soft); margin-top: 10px; }
.form .err { color: #b42318; }

/* ---------- Pied de page : le dos de la carte, découvert comme un rideau ---------- */
main { position: relative; z-index: 1; background: var(--navy); }
.foot { position: relative; z-index: 0; background: var(--navy); padding: 72px 0 40px; color: var(--ink); }
.foot-card { position: relative; max-width: 1080px; margin: 0 auto; background: var(--paper); padding: 72px 56px 30px;
  --r: 42px; -webkit-mask: radial-gradient(var(--r) at 50% 0, #0000 98%, #000) 50% 0 / calc(var(--r) * 2.6) 100% repeat-x; mask: radial-gradient(var(--r) at 50% 0, #0000 98%, #000) 50% 0 / calc(var(--r) * 2.6) 100% repeat-x; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; }
.foot-card h2 { font-size: var(--step-sub); margin-bottom: 14px; }
.foot-card .msg { max-width: 38ch; color: var(--soft); }
.foot-addr { list-style: none; padding: 0 130px 0 0; margin: 0; font-size: var(--step-body); }
.foot-addr li { margin-bottom: 12px; }
.foot-addr a { text-decoration: none; font-weight: 600; }
.foot-addr a:hover { color: var(--blue); }
.stamp { position: absolute; top: 64px; right: 56px; width: 96px; background: var(--navy); padding: 10px; outline: 6px solid var(--paper); outline-offset: -6px; transform: rotate(3deg); }
.foot-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; padding-top: 32px; font-size: var(--step-small); }
.foot-links h3 { font-size: var(--step-body); font-stretch: 100%; margin-bottom: 8px; }
.foot-links ul { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: 5px; }
.foot-links a { text-decoration: none; color: var(--soft); }
.foot-links a:hover { color: var(--blue); }
.imprint { text-align: center; font-size: var(--step-small); color: var(--soft); margin-top: 48px; }
.imprint a { color: var(--soft); }
@media (min-width: 1000px) and (min-height: 820px) {
  .foot { position: sticky; bottom: 0; }
}

/* Barre de contact du téléphone : pleine, sans flou, en bas */
.mobilebar { display: none; }

/* ---------- Apparitions au défilement (le contenu reste visible sans script) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] > * { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); }
  .js [data-reveal].is-in > * { opacity: 1; transform: none; }
  .js [data-reveal].is-in > *:nth-child(2) { transition-delay: 80ms; }
  .js [data-reveal].is-in > *:nth-child(3) { transition-delay: 160ms; }
  .js [data-reveal].is-in > *:nth-child(4) { transition-delay: 240ms; }
  .js [data-reveal].is-in > *:nth-child(5) { transition-delay: 320ms; }
  .js [data-rows].is-in .row, .js [data-rows] .row { transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
  .js [data-rows] .row { opacity: 0; transform: translateX(-10px); }
  .js [data-rows].is-in .row { opacity: 1; transform: none; }
  .js .rise { animation: rise 1000ms var(--ease-expo) both; }
  .js .rise-2 { animation: rise 1000ms var(--ease-expo) 120ms both; }
  .js .tilt-in.is-in { animation: tilt 1100ms var(--ease-expo) both; }
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-leave 180ms ease both; }
  ::view-transition-new(root) { animation: vt-arrive 380ms var(--ease-out) 40ms both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(48px); } }
@keyframes tilt { from { opacity: 0; transform: rotate(-6deg) translateY(140px); } to { transform: rotate(-2deg) translateY(60px); } }
@keyframes vt-leave { to { opacity: 0; } }
@keyframes vt-arrive { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Tablette ---------- */
@media (max-width: 1080px) {
  .deck:not(.x) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; overflow: visible; }
  .deck .card { min-height: 0; }
  .nav { gap: 18px; }
  .top-tel { display: none; }
  .hero-body, .page-body { grid-template-columns: 1fr; gap: 36px; }
  .split, .split-r, .faq-band .split { grid-template-columns: 1fr; }
  .slip { margin-left: 0; }
  .reading .wrap { grid-template-columns: 1fr; }
  .side { position: static; }
  .reply .wrap { grid-template-columns: 1fr; }
  .reply-text { margin-bottom: 0; }
}

/* ---------- En-tête compact jusqu'à 960 px ---------- */
@media (max-width: 960px) {
  .nav, .top-actions .btn, .top-tel { display: none; }
  .top-actions { margin-left: auto; gap: 8px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: var(--paper); color: var(--ink); border: 0; font: 650 1rem var(--text); cursor: pointer; }
  .menu-btn i { display: grid; gap: 4px; width: 16px; }
  .menu-btn i::before, .menu-btn i::after { content: ""; height: 2px; background: currentColor; transition: transform var(--t-ui) var(--ease-out); }
  .menu-open .menu-btn i::before { transform: translateY(3px) rotate(45deg); }
  .menu-open .menu-btn i::after { transform: translateY(-3px) rotate(-45deg); }
}

/* ---------- Téléphone ---------- */
@media (max-width: 760px) {
  :root { --gap-section: 76px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  :root { --top-h: 68px; }
  .top .wrap { min-height: 68px; gap: 10px; }
  .brand img { height: 48px; }

  .sheet-head { padding: 22px 20px 14px; }
  .hero-home .stage { padding: 12px 12px 0; }
  .hero-home .sheet { min-height: 0; }
  .hero-body { padding: 26px 20px 56px; gap: 30px; }
  .display { font-size: 10.6vw; font-stretch: 62%; }
  .hero-body .lead { margin: 18px 0 24px; }
  .hero-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-ctas .btn:first-child { grid-column: 1 / -1; }
  .hero-ctas .btn { min-height: 54px; padding: 0 1em; }
  .hero-art { display: none; }
  .picker { padding: 20px 18px 18px; margin: 0 -8px; }
  .picker-out .btns { grid-template-columns: 1fr; }

  .hero-page .sheet { margin: 12px 12px 0; }
  .page-body { padding: 24px 20px 40px; }
  h1 { font-size: 2.05rem; font-stretch: 62%; }
  .page-body .lead { margin: 0 0 22px; }
  .page-fiche { padding: 20px 18px 14px; margin: 0 -8px; }

  .slip { padding: 26px 20px 46px; }
  .slip .total { margin: 22px -20px 0; padding: 0 20px; font-size: var(--step-small); }

  .deck:not(.x) { grid-template-columns: 1fr; gap: 8px; }
  .deck .card { min-height: 0; padding: 18px 20px; }
  .deck .card p { display: none; }
  .deck .card h3 { font-size: var(--step-sub); margin-bottom: 6px; }
  .deck .card .card-foot { padding-top: 4px; }
  .deck-note { flex-direction: column; gap: 6px; }

  .letter { padding: 36px 24px 48px; }
  .tearoff { padding: 18px 24px; flex-direction: column; align-items: stretch; text-align: center; }
  .menu-sheet { padding: 40px 20px 48px; margin: 0 -4px; }

  .visit { min-height: 0; padding-bottom: 32px; }
  .visit-art { position: relative; height: 70svh; max-height: 520px; place-items: center; padding: 0; }
  .visit-art svg { height: 62svh; max-height: 460px; width: auto; }
  .visit-card { position: relative; top: auto; right: auto; width: auto; margin: -80px 16px 0; }
  .visit-zone { position: static; padding: 28px 16px 0; }

  .tall-art { height: auto; min-height: 0 !important; aspect-ratio: 4 / 3; margin-bottom: 56px; }
  .tall-art > svg { max-height: 80%; }
  .art-desktop { display: none !important; }
  .tall-art .sq { left: auto; right: -8px; bottom: -36px; width: 38%; }
  .faq summary { font-size: var(--step-body); }

  .reply { min-height: 0; padding-top: 72px; }
  .reply-card { width: 92%; justify-self: center; aspect-ratio: auto; padding: 32px 22px; transform: rotate(-1deg) translateY(40px); margin-top: 20px; }
  @keyframes tilt { from { opacity: 0; transform: rotate(-4deg) translateY(120px); } to { transform: rotate(-1deg) translateY(40px); } }

  .kids { padding: 0; }
  .kids-sheet { margin: 0 12px; padding: 28px 20px 40px; }
  .kids-cols { columns: 1; }
  .reading .wrap { padding-top: 48px; padding-bottom: 56px; }
  .prose { font-size: var(--step-body); }
  .side { display: none; }
  .table-wrap table { min-width: 560px; }
  .order { padding: 24px 18px 20px; margin: 0 -8px 40px; }
  .form { grid-template-columns: 1fr; }

  .foot { padding: 48px 0 calc(24px + env(safe-area-inset-bottom)); }
  .foot-card { padding: 64px 22px 24px; --r: 24px; margin: 0 12px; }
  .foot-grid, .foot-links { grid-template-columns: 1fr; gap: 28px; }
  .stamp { top: 46px; right: 22px; width: 68px; padding: 7px; }
  .foot-addr { padding-right: 0; }
  .foot-card h2 { padding-right: 84px; font-size: var(--step-sub); }
  .foot-card .msg { padding-right: 72px; }

  .mobilebar { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); transition: transform 360ms var(--ease-out); }
  .mobilebar.show { transform: none; }
  .menu-open .mobilebar { transform: translateY(100%); }
  .mobilebar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; color: var(--paper); text-decoration: none; font-weight: 650; font-size: var(--step-small); }
  .mobilebar a:active { background: var(--navy-3); }
  .mobilebar svg { width: 19px; height: 19px; }
  .mobilebar .mb-call { background: var(--blue); }
  .mobilebar .mb-wa { background: var(--wa); }
}

/* Menu du téléphone : une feuille qui descend */
.msheet { display: none; }
@media (max-width: 960px) {
  .msheet { display: block; position: fixed; inset: calc(var(--top-h, 92px) + env(safe-area-inset-top)) 0 0; z-index: 4; background: var(--navy); overflow-y: auto; overscroll-behavior: contain; visibility: hidden; opacity: 0; transition: opacity var(--t-ui) ease, visibility var(--t-ui); }
  .msheet-in { margin: 4px 12px 24px; background: var(--paper); padding: 10px 20px 24px; transform: translateY(-16px); transition: transform 420ms var(--ease-out); }
  .menu-open .msheet { visibility: visible; opacity: 1; }
  .menu-open .msheet-in { transform: none; }
  .menu-open, .menu-open body { overflow: hidden; }
  .menu-open .top { position: fixed; inset: 0 0 auto; background: var(--navy); }
  .msheet .mlink, .msheet summary { display: flex; justify-content: space-between; align-items: center; min-height: 56px; font-size: var(--step-body); font-weight: 700; text-decoration: none; color: var(--ink); list-style: none; cursor: pointer; font-stretch: 90%; }
  .msheet summary::-webkit-details-marker { display: none; }
  .msheet summary::after { content: ""; width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); transition: transform var(--t-ui) var(--ease-out); }
  .msheet details[open] summary::after { transform: rotate(-135deg); }
  .msheet .mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 2px 0 14px; }
  .msheet .mgrid a { padding: 11px 12px; background: var(--paper-2); text-decoration: none; font-size: var(--step-small); font-weight: 550; line-height: 1.25; }
  .msheet .perfo { margin: 8px 0; }
  .msheet .mcta { display: grid; gap: 8px; margin-top: 18px; }
  .msheet .mcta .btn { width: 100%; }
  .msheet .mcta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .msheet .mnote { text-align: center; color: var(--soft); font-size: var(--step-small); margin: 14px 0 0; }
}
