/* =========================================================================
   RestoPlan — design system
   Transcrit depuis design/RestoPlan Landing.dc.html (artboards 01 et 02).
   Maquette figée à 1440 px : les valeurs fixes deviennent ici des tokens
   et des grilles fluides. Aucun framework.
   ========================================================================= */

/* ------------------------------------------------------------------ tokens */
:root {
  /* encres et textes */
  --ink:          #0B1120;
  --ink-soft:     #374151;
  --text:         #4B5563;
  --muted:        #6B7280;
  --faint:        #9CA3AF;

  /* accent */
  --accent:       #2563EB;
  --accent-tint:  #EFF4FF;
  --accent-wash:  #F7FAFF;

  /* traits */
  --line:         #E5E7EB;
  --line-strong:  #D1D5DB;

  /* surfaces */
  --surface:      #FFFFFF;
  --surface-2:    #F6F7F9;
  --surface-3:    #FCFCFD;

  /* surface sombre */
  --dark:         #0B1120;
  --dark-line:    #2C3444;
  --dark-muted:   #AEB6C4;

  /* typographie */
  --sans: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* rayons */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 14px;
  --r-2xl: 16px;
  --r-pill: 999px;

  /* rythme */
  --shell: 1440px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(44px, 6vw, 64px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
button { font: inherit; color: inherit; }

:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: #FFF;
  padding: 12px 18px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------------ layout */
.wrap {
  max-width: var(--shell);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.band            { background: var(--surface); }
.band--soft      { background: var(--surface-2); border-block: 1px solid var(--line); }
.band--dark      { background: var(--dark); color: #FFF; }
.band__inner     { padding-block: var(--section-y); }

/* --------------------------------------------------------------- primitives */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--muted { color: var(--muted); }

.eyebrow--dot { display: flex; align-items: center; gap: 8px; letter-spacing: 0.16em; }
.eyebrow--dot::before {
  content: ""; width: 7px; height: 7px; flex: none;
  border-radius: 50%; background: var(--accent);
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

.display {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.03;
  color: var(--ink);
  font-size: clamp(38px, 5.2vw, 64px);
  text-wrap: balance;
}

.title {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
  font-size: clamp(30px, 3.6vw, 42px);
  text-wrap: balance;
}

.title--sm { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; line-height: 1.1; }

.lede {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--text);
}

.accent { color: var(--accent); }

/* ------------------------------------------------------------------ boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 23px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: #FFF; border-color: var(--accent); }
.btn--primary:hover { background: #1D4FD8; border-color: #1D4FD8; color: #FFF; }

.btn--dark { background: var(--ink); color: #FFF; border-color: var(--ink); }
.btn--dark:hover { background: #16203A; border-color: #16203A; color: #FFF; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn--on-dark { background: transparent; color: #FFF; border-color: var(--dark-line); }
.btn--on-dark:hover { border-color: #FFF; color: #FFF; }

.btn--sm { padding: 12px 20px; font-size: 14px; }

.btn:disabled,
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }

.link-mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  white-space: nowrap;
}
.link-mono:hover { color: var(--ink); }

/* ------------------------------------------------------------------ en-tête */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand__mark {
  width: 28px; height: 28px; flex: none;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
}
.brand__mark::after { content: ""; width: 9px; height: 9px; background: var(--accent); border-radius: 2px; }
.brand__name { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }

.masthead__left { display: flex; align-items: center; gap: 40px; }

.nav { display: flex; gap: 28px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }

.masthead__right { display: flex; align-items: center; gap: 20px; }
.masthead__right .signin { font-size: 14px; color: var(--ink-soft); }
.masthead__right .signin:hover { color: var(--ink); }

.mobile-nav { display: none; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  align-items: center; justify-content: center;
}
/* Viser le seul trait décoratif : `.burger span` attrapait aussi le libellé
   .sr-only, qui reprenait alors sa position dans le flex et décalait l'icône. */
.burger > span[aria-hidden],
.burger > span[aria-hidden]::before,
.burger > span[aria-hidden]::after {
  content: ""; display: block;
  width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
}
.burger > span[aria-hidden] { position: relative; }
.burger > span[aria-hidden]::before { position: absolute; top: -6px; }
.burger > span[aria-hidden]::after  { position: absolute; top: 6px; }
.burger[aria-expanded="true"] > span[aria-hidden] { background: transparent; }
.burger[aria-expanded="true"] > span[aria-hidden]::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] > span[aria-hidden]::after  { top: 0; transform: rotate(-45deg); }

/* --------------------------------------------------------------------- hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 48px);
  align-items: center;
  padding-block: clamp(40px, 5vw, 64px) clamp(48px, 6vw, 72px);
}
.hero__copy .display { margin-top: 22px; }
.hero__copy .lede { margin-top: 22px; max-width: 480px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.assurances { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 36px); margin-top: 40px; }
.assurances dt { font-size: 14px; font-weight: 600; color: var(--ink); }
.assurances dd {
  margin: 4px 0 0;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase;
}

.hero__visual { position: relative; min-height: 460px; }
.hero__visual img {
  position: absolute; top: -20px; left: -30px;
  width: calc(100% + 30px); height: calc(100% + 40px);
  object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 45%, transparent 96%);
          mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 45%, transparent 96%);
}

.chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgb(11 17 32 / 0.04);
}
.chip__title { font-size: 13px; font-weight: 700; color: var(--ink); }
.chip__meta  { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 4px; text-transform: uppercase; }
.chip__list  { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.chip__dot   { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); margin-top: 8px; }

.chip--a { top: 24px;    left: 0;   width: 170px; }
.chip--b { top: 76px;    right: 0;  width: 180px; }
.chip--c { bottom: 20px; left: 8px; width: 190px; }

/* ----------------------------------------------------------------- services */
.services {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(32px, 4vw, 48px);
  padding-block: var(--section-y);
}
.services__head { margin-bottom: 34px; }
.services__intro .title { margin-top: 14px; }
.services__intro .lede { margin-top: 16px; color: var(--muted); }
.services__routes { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.services__routes .btn { font-size: 15px; padding: 14px 19px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 22px;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgb(37 99 235 / 0.08);
  transform: translateY(-2px);
}
.card__icon { width: 96px; height: 96px; margin: -10px 0 0 -12px; object-fit: contain; mix-blend-mode: multiply; }
/* Les icônes ont un fond blanc opaque : en mode multiply, ce blanc disparaît partout,
   y compris quand l'icône sautille et déborde sur le fond de section. */
.card__name { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); margin-top: 18px; }
.card__desc { font-size: 13px; line-height: 1.55; color: var(--muted); margin-top: 8px; }
.card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 20px;
}
.price {
  background: var(--accent-tint); color: var(--accent);
  padding: 7px 12px; border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 12px;
}
.card__arrow {
  width: 32px; height: 32px; flex: none;
  border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink); font-size: 14px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
a.card:hover .card__arrow { background: var(--accent); border-color: var(--accent); color: #FFF; }

/* Carte à fond de section : au survol, toute la section prend le fond associé
   à la carte (calque .section-fond créé par catalogue.js) et l'icône sautille. */
.card--fond .card__icon {
  transition: transform .6s cubic-bezier(.34, 1.56, .64, 1);
}
.card--fond:is(:hover, :focus-visible) .card__icon {
  transform: translateY(-8px) rotate(-8deg) scale(1.08);
}
/* Le calque est agrandi de 4 % au repos : sans découpe il dépasse de la section
   et rend toute la page scrollable latéralement sur téléphone. */
.section-fond-hote { position: relative; isolation: isolate; overflow: hidden; }
.section-fond {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.04);
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform 1.2s cubic-bezier(.16, 1, .3, 1);
}
.section-fond::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(255 255 255 / .9) 0%, rgb(255 255 255 / .74) 38%, rgb(255 255 255 / .5) 100%);
}
.section-fond.is-visible { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .section-fond { transform: none; }
  .card--fond:is(:hover, :focus-visible) .card__icon { transform: none; }
}

/* ----------------------------------------------------------------- méthode */
.method__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.method__head .title { margin-top: 12px; }
.method__note { font-family: var(--mono); font-size: 11px; line-height: 1.7; color: var(--muted); text-align: right; text-transform: uppercase; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
  min-height: 170px;
}
.step__n {
  width: 34px; height: 34px;
  border-radius: var(--r-md);
  background: var(--accent-tint); color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 14px;
}
.step__title { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); margin-top: 16px; }
.step__desc  { font-size: 13px; line-height: 1.55; color: var(--muted); margin-top: 8px; }

/* Section à fond parallaxe : l'image (calque créé par restoplan.js) défile plus
   lentement que la page. Un voile clair, plus dense en haut, garde le titre lisible. */
.parallax { position: relative; isolation: isolate; overflow: hidden; }
.parallax__img {
  position: absolute; left: 0; right: 0; top: -70%; height: 240%; z-index: -1;
  background-size: cover; background-position: center;
  will-change: transform;
}
.parallax__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(246 247 249 / .9) 0%, rgb(246 247 249 / .5) 42%, rgb(246 247 249 / .08) 100%);
}

/* --------------------------------------------------------------- livrables */
.deliverables {
  padding-block: clamp(40px, 5vw, 56px);
}
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.fact { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.fact__title { font-size: 15px; font-weight: 700; color: var(--ink); }
.fact__desc  { font-size: 13px; line-height: 1.55; color: var(--muted); margin-top: 6px; }


/* --------------------------------------------------------------------- CTA */
.cta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 40px;
  padding-block: clamp(40px, 5vw, 56px);
}
.cta__title {
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  color: #FFF; max-width: 600px; text-wrap: balance;
}
.cta__sub { font-size: 15px; color: var(--dark-muted); margin-top: 14px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------- pied */
.colophon {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase;
}
.colophon a { color: var(--muted); }
.colophon a:hover { color: var(--ink); }
.colophon ul { display: flex; flex-wrap: wrap; gap: 8px; }
.colophon li + li::before { content: "· "; }

/* ===================================================================
   Parcours guidé (demarrer.html) — 4 étapes
   =================================================================== */

/* ------------------------------------------------------------ en-tête */
.flow-head {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.flow-head__inner {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  align-items: center;
  gap: 24px;
  min-height: 88px;
  padding-inline: var(--gutter);
}

.stepper-nav { display: flex; justify-content: center; }
.stepper { display: flex; }
.stepper li {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  width: 146px;
}
/* segment reliant l'étape précédente à celle-ci */
.stepper li + li::before {
  content: "";
  position: absolute; top: 16px; right: 50%; left: -50%;
  height: 2px; background: var(--line);
}
.stepper li[aria-current="step"] + li::before,
.stepper li[data-state="done"] + li::before { background: var(--accent); }

.stepper__dot {
  position: relative; z-index: 1;
  width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--faint);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600;
}
.stepper__label {
  font-size: 12px; font-weight: 500; color: var(--faint);
  margin-top: 10px; white-space: nowrap;
}
.stepper li[aria-current="step"] .stepper__dot,
.stepper li[data-state="done"] .stepper__dot {
  background: var(--accent); border-color: var(--accent); color: #FFF;
}
.stepper li[aria-current="step"] .stepper__label { color: var(--ink); font-weight: 600; }
.stepper li[data-state="done"] .stepper__label { color: var(--ink-soft); }

.help {
  justify-self: end;
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 10px 16px; color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.help:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgb(37 99 235 / 0.08); }
.help__badge {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%; background: var(--accent-tint); color: var(--accent);
  display: grid; place-items: center;
}
.help__badge svg { width: 17px; height: 17px; }
.help__title { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.help__sub   { display: block; font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------ colonne gauche */
.flow { display: grid; grid-template-columns: 320px 1fr; align-items: start; }

.flow__aside {
  position: sticky; top: 89px;
  height: calc(100svh - 89px);
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--surface-3);
  display: flex; flex-direction: column;
  padding: 32px 0 0;
}
.aside__title { font-size: 15px; font-weight: 700; color: var(--ink); padding-inline: 28px; }

.progress { display: flex; flex-direction: column; margin-top: 22px; padding-inline: 16px; }
.progress li {
  position: relative;
  display: grid; grid-template-columns: 38px 1fr; gap: 14px;
  padding: 14px 12px; border-radius: var(--r-lg);
}
/* trait vertical reliant les pastilles */
.progress li:not(:last-child)::before {
  content: "";
  position: absolute; left: 30px; top: 52px; bottom: -2px;
  width: 2px; background: var(--line);
}
.progress li[data-state="done"]::before { background: var(--accent); }

.progress__dot {
  position: relative; z-index: 1;
  width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--faint);
  display: grid; place-items: center;
}
.progress__dot svg { width: 18px; height: 18px; }
.progress__body { min-width: 0; }
.progress__title { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.progress__desc  { display: block; font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 3px; }

.progress li[aria-current="step"] { background: var(--accent-tint); }
.progress li[aria-current="step"] .progress__dot,
.progress li[data-state="done"] .progress__dot {
  background: var(--accent); border-color: var(--accent); color: #FFF;
}
.progress li[aria-current="step"] .progress__title { color: var(--accent); }

.aside__foot { margin-top: auto; position: relative; padding-top: 40px; }

.aside-visual { height: 260px; overflow: hidden; }
.aside-visual img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 38%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 38%);
}

.secure-card {
  position: relative; z-index: 1;
  margin: 0 20px 24px;
  background: var(--dark); color: #FFF;
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: 0 12px 32px rgb(11 17 32 / 0.22);
}
.aside-visual + .secure-card { margin-top: -120px; }

.secure-card__title {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; font-weight: 700; line-height: 1.4;
}
.secure-card__title svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--dark-muted); }
.secure-card__desc { font-size: 13px; line-height: 1.55; color: var(--dark-muted); margin-top: 8px; }
.secure-card__link { display: inline-block; font-size: 13px; font-weight: 600; margin-top: 12px; color: #7FA5F5; }
.secure-card__link:hover { color: #FFF; }

/* ------------------------------------------------------ colonne droite */
.flow__main {
  display: flex; flex-direction: column;
  padding: 40px var(--gutter) 0;
  min-height: calc(100svh - 89px);
}

.step-panel { display: flex; flex-direction: column; }
.step-panel[hidden] { display: none; }

.tag {
  align-self: flex-start;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface);
  padding: 7px 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.step-title {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800; letter-spacing: -0.038em; line-height: 1.05;
  color: var(--ink); margin-top: 18px; text-wrap: balance;
}
.step-lede { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; color: var(--muted); margin-top: 12px; max-width: 640px; }

/* --------------------------------------------- étape 1 : cartes besoin */
.needs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }

.need { position: relative; display: block; }
.need input { position: absolute; opacity: 0; width: 0; height: 0; }

.need__box {
  display: block; height: 100%;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--surface);
  padding: 22px; min-height: 220px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgb(11 17 32 / 0.04);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.need:hover .need__box { border-color: var(--accent); box-shadow: 0 8px 24px rgb(37 99 235 / 0.10); transform: translateY(-2px); }
.need input:focus-visible + .need__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.need input:checked + .need__box {
  border-color: var(--accent);
  background: var(--accent-wash);
  box-shadow: 0 8px 24px rgb(37 99 235 / 0.12);
}

.need__check {
  position: absolute; top: 18px; right: 18px;
  width: 24px; height: 24px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--surface); color: transparent;
  display: grid; place-items: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.need__check svg { width: 14px; height: 14px; }
.need input:checked + .need__box .need__check {
  background: var(--accent); border-color: var(--accent); color: #FFF;
}

.need__icon  { width: 92px; height: 92px; margin: -8px 0 0 -8px; object-fit: contain; }
.need__title { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); margin-top: 18px; }
.need__desc  { display: block; font-size: 13px; line-height: 1.55; color: var(--muted); margin-top: 8px; }

/* ------------------------------------------------ champs (étapes 2 & 3) */
.field { border: 0; padding: 0; margin: 32px 0 0; }
.field__label {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 0;
  font-size: 17px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink);
}
.field__help { font-size: 13px; color: var(--muted); margin-top: 6px; }

.req, .opt {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 7px; border-radius: 5px;
  font-weight: 400;
}
.req { background: var(--accent-tint); color: var(--accent); }
.opt { background: var(--surface-2); color: var(--faint); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.field-row .field { margin-top: 32px; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pill { position: relative; display: inline-flex; }
.pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.pill span {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--surface);
  padding: 11px 18px;
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.pill:hover span { border-color: var(--accent); color: var(--ink); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.pill input:checked + span {
  border-color: var(--accent); background: var(--accent-tint);
  color: var(--accent); font-weight: 600;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group--full { grid-column: 1 / -1; }
.input-label {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.input {
  width: 100%;
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--surface);
  padding: 13px 15px;
  font-family: inherit; font-size: 15px; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--faint); }
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.14);
}
textarea.input { resize: vertical; min-height: 84px; line-height: 1.55; }

.input-error { display: none; font-size: 13px; color: #B42318; }
.input-error[data-shown] { display: block; }
.input[aria-invalid="true"] { border-color: #D92D20; }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgb(217 45 32 / 0.14); }

/* ------------------------------------------ pièces jointes (étape 2) */
.upload {
  margin-top: 40px;
  padding: 22px;
  border: 1px solid var(--line); border-radius: var(--r-2xl);
  background: var(--accent-wash);
}
.upload__intro { display: flex; align-items: center; gap: 16px; }
.upload__icone {
  width: 84px; height: 84px; flex: none; object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .6s cubic-bezier(.34, 1.56, .64, 1);
}
.upload:hover .upload__icone,
.upload--rempli .upload__icone { transform: translateY(-4px) rotate(-5deg); }
.upload__accroche {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink);
}
.upload .field__help { max-width: 52ch; }

.upload__zone {
  position: relative;
  display: grid; justify-items: center; gap: 6px;
  margin-top: 18px; padding: 26px 20px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-xl);
  background: var(--surface);
  text-align: center; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .2s cubic-bezier(.16, 1, .3, 1);
}
.upload__zone:hover { border-color: var(--accent); }
.upload__zone:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.upload__zone--survol {
  border-color: var(--accent); border-style: solid;
  background: var(--accent-tint);
  transform: scale(1.01);
}
.upload__fleche { color: var(--accent); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.upload__zone:hover .upload__fleche,
.upload__zone--survol .upload__fleche { transform: translateY(-3px); }
.upload__titre { font-size: 15px; font-weight: 600; color: var(--ink); }
.upload__lien { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.upload__meta { font-size: 13px; color: var(--muted); }
.upload__compte:empty { display: none; }
.upload__compte { font-size: 13px; font-weight: 600; color: var(--accent); }

.upload__liste { display: grid; gap: 8px; margin-top: 12px; }
.upload__liste:empty { display: none; }
.upload__fichier {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 8px 8px 8px 8px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
  animation: upload-entree .35s cubic-bezier(.16, 1, .3, 1);
}
@keyframes upload-entree { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.upload__apercu { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; }
.upload__type {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent);
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
}
.upload__nom { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload__poids { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.upload__retirer {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: var(--r-sm); background: none; cursor: pointer; color: var(--muted);
}
.upload__retirer:hover { background: var(--surface-2); color: #B42318; }
.upload .input-error { margin-top: 8px; }

@media (max-width: 620px) {
  .upload { padding: 16px; }
  .upload__icone { width: 64px; height: 64px; }
  .upload__fichier { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .upload__poids { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .upload__icone, .upload__zone, .upload__fleche { transition: none; }
  .upload__fichier { animation: none; }
}

.consent {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px;
  align-items: start;
  margin-top: 28px; cursor: pointer;
}
.consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.consent__box {
  width: 22px; height: 22px; margin-top: 1px;
  border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--surface); color: transparent;
  display: grid; place-items: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.consent__box svg { width: 14px; height: 14px; }
.consent input:checked + .consent__box { background: var(--accent); border-color: var(--accent); color: #FFF; }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.consent__text { font-size: 14px; line-height: 1.55; color: var(--text); }

/* ------------------------------------------- étape 4 : recommandation */
.reco { display: flex; flex-direction: column; gap: 28px; margin-top: 32px; }

.reco-group__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.reco-group__title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.reco-group__note  { font-size: 13px; color: var(--muted); }

.reco-badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 5px;
}
.reco-badge--must { background: var(--accent-tint); color: var(--accent); }
.reco-badge--nice { background: #ECFDF3; color: #067647; }
.reco-badge--skip { background: var(--surface-2); color: var(--faint); }

.reco-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }

.reco-card {
  position: relative;
  display: grid; grid-template-columns: 60px 1fr; gap: 16px;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--surface);
  padding: 18px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.reco-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.reco-card:hover { border-color: var(--accent); }
.reco-card:has(input:checked),
.reco-card[data-selected] { border-color: var(--accent); background: var(--accent-wash); }
.reco-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

.reco-card__icon { width: 60px; height: 60px; object-fit: contain; }
.reco-card__name { display: block; font-size: 16px; font-weight: 700; color: var(--ink); }
.reco-card__desc { display: block; font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 5px; }
.reco-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }

.reco-check {
  width: 22px; height: 22px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--surface); color: transparent;
  display: grid; place-items: center;
}
.reco-check svg { width: 14px; height: 14px; }
.reco-card:has(input:checked) .reco-check,
.reco-card[data-selected] .reco-check { background: var(--accent); border-color: var(--accent); color: #FFF; }

.reco-card--skip {
  grid-template-columns: 40px 1fr;
  background: var(--surface-3);
  border-style: dashed;
  cursor: default;
}
.reco-card--skip:hover { border-color: var(--line); }
.reco-card--skip .reco-card__icon { width: 40px; height: 40px; opacity: .45; filter: grayscale(1); }
.reco-card--skip .reco-card__name { color: var(--muted); }

.basket {
  margin-top: 32px;
  border: 1px solid var(--line); border-radius: var(--r-2xl);
  background: var(--surface-2);
  padding: 24px;
}
.basket__line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.basket__label { font-size: 15px; font-weight: 600; color: var(--ink); }
.basket__total { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); }
.basket__note { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 6px; text-transform: uppercase; }
.basket__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.recap { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 24px; }
.recap__title { font-size: 15px; font-weight: 700; color: var(--ink); }
.recap__list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 32px; margin: 14px 0 0;
}
.recap__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.recap__row dt { font-size: 13px; color: var(--muted); }
.recap__row dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; }
.recap__edit { font-family: var(--mono); font-size: 11px; color: var(--accent); background: none; border: 0; cursor: pointer; padding: 0; }
.recap__edit:hover { color: var(--ink); }

/* Ligne de réassurance du formulaire : n'apparaît qu'en dessous de 1020 px,
   là où le panneau latéral qui la portait n'est plus affiché. */
.flow__rassure {
  display: none;
  align-items: flex-start; gap: 8px;
  margin: 28px 0 0; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px; line-height: 1.5; color: var(--muted);
}
.flow__rassure svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.flow__rassure a { color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------------ pied de page */
.flow__foot {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin-top: auto;
  margin-inline: calc(var(--gutter) * -1);
  padding: 16px var(--gutter);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.flow__foot .btn { font-size: 15px; padding: 14px 20px; }
.flow__foot .btn--dark { font-size: 16px; padding: 15px 26px; }
.flow__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.selection { font-family: var(--mono); font-size: 11px; color: var(--faint); text-transform: uppercase; }
.selection[data-tone="error"] { color: #B42318; }

/* ================================================================ responsive */
@media (max-width: 1280px) {
  .flow-head__inner { grid-template-columns: 220px 1fr 220px; }
  .stepper li { width: 124px; }
  .help__sub { display: none; }
  .reco-list { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .services { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .needs { grid-template-columns: repeat(3, 1fr); }
  .recap__list { grid-template-columns: 1fr; }
}

@media (max-width: 1020px) {
  /* le CTA et "se connecter" repassent dans le menu déroulant */
  .nav,
  .masthead__right .signin,
  .masthead__right > .btn { display: none; }
  .burger { display: inline-flex; }

  .masthead__inner { position: relative; }
  .mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    padding-block: 16px 24px;
  }
  .mobile-nav[data-open="true"] { display: block; }
  .mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
  .mobile-nav ul a {          /* ne doit pas toucher le bouton, frère de la liste */
    display: block; padding: 12px 0;
    font-size: 16px; font-weight: 600; color: var(--ink);
  }
  .mobile-nav .btn { width: 100%; margin-top: 12px; }

  .hero { grid-template-columns: 1fr; }
  .hero__visual { min-height: 380px; order: -1; }
  .chip--a { top: 8px; }
  .chip--c { bottom: 0; }

  /* la question passe avant le panneau de contexte */
  .flow { display: flex; flex-direction: column; }
  .flow__main { order: -1; min-height: 0; }
  /* Le panneau de contexte disparaît : sa liste d'étapes est remontée dans
     l'en-tête, et sa carte de réassurance devient une ligne dans le
     formulaire (.flow__rassure). Il ne restait qu'une bande vide. */
  .flow__aside { display: none; }

  .flow-head__inner { grid-template-columns: auto 1fr auto; min-height: 72px; }
}

@media (max-width: 860px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .needs { grid-template-columns: repeat(2, 1fr); }
  .method__note { text-align: left; max-width: none; }
  .cta { gap: 28px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 620px) {
  .card-grid, .steps, .needs, .facts, .grid-2 { grid-template-columns: 1fr; }
  .hero__visual { min-height: 300px; }
  .hero__visual img { top: -10px; left: 0; width: 100%; height: calc(100% + 20px); }
  .chip { display: none; }
  .assurances { gap: 16px; }
  .assurances > div { min-width: 44%; }
  .hero__actions .btn { width: 100%; }
  .step { min-height: 0; }
  .colophon { flex-direction: column; }

  .need__box { min-height: 0; }
  .help { padding: 8px 12px; }
  .pill span { padding: 10px 14px; font-size: 14px; }
  .basket__actions .btn { width: 100%; }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------- pages légales */
.legal            { padding: 56px 0 80px; }
.legal__head      { max-width: 760px; margin-bottom: 40px; }
.legal__title     { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; margin: 8px 0 12px; }
.legal__maj       { font-size: 13px; color: var(--ink-soft); }
.legal__body      { max-width: 760px; }
.legal__body h2   { font-size: 20px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal__body h3   { font-size: 16px; margin: 22px 0 6px; }
.legal__body p,
.legal__body li   { color: var(--ink-soft); line-height: 1.65; }
.legal__body ul   { margin: 8px 0 8px 20px; }
.legal__body li   { margin-bottom: 4px; }
.legal__body a    { color: inherit; }
.legal__body dl   { margin: 8px 0; }
.legal__body dt   { font-weight: 600; color: var(--ink); margin-top: 12px; }
.legal__body dd   { margin: 2px 0 0; color: var(--ink-soft); }
.legal__body table{ width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.legal__body th,
.legal__body td   { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line, #E5E7EB); vertical-align: top; }
.legal__body th   { color: var(--ink); font-weight: 600; }

/* Marqueur de contenu manquant : volontairement criard, ne doit pas passer en prod. */
.todo {
  background: #FEF08A; color: #713F12; font-weight: 600;
  padding: 1px 6px; border-radius: 4px; box-decoration-break: clone;
}
.consent__note    { margin: 8px 0 0 34px; font-size: 13px; color: var(--ink-soft); }
.consent__note a  { color: inherit; }

/* ------------------------------------------------- catalogue & fiches */
.sheet            { padding: 48px 0 80px; }
.sheet__back      { display: inline-block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 24px; }
.sheet__head      { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; max-width: 820px; }
.sheet__icon      { width: 96px; height: 96px; }
.sheet__title     { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 8px; }
.sheet__desc      { color: var(--ink-soft); line-height: 1.6; margin: 0 0 12px; }
.sheet__price     { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 15px; font-weight: 500; }
.sheet__cta       { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.sheet__body      { max-width: 820px; margin-top: 44px; }
.sheet__body h2   { font-size: 20px; margin: 34px 0 10px; letter-spacing: -0.01em; }
.sheet__body p,
.sheet__body li   { color: var(--ink-soft); line-height: 1.65; }
.sheet__body ul   { margin: 8px 0 8px 20px; }
.sheet__body li   { margin-bottom: 4px; }
.related          { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; list-style: none; padding: 0; }
.related a        { display: inline-block; padding: 8px 14px; border: 1px solid var(--line, #E5E7EB); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); }
.related a:hover  { border-color: var(--ink); }
@media (max-width: 620px) {
  .sheet__head    { grid-template-columns: 1fr; }
  .sheet__icon    { width: 72px; height: 72px; }
}

/* --------------------------------------------- catalogue chargé à l'exécution */
.card-grid__attente,
.sheet__chargement {
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

/* ===================================================================
   Administration (admin.html)
   =================================================================== */
.admin { padding-block: clamp(32px, 5vw, 56px); }

.admin-ident { display: flex; align-items: center; gap: 14px; }
.admin-ident__mail { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.admin-connexion { max-width: 520px; }
.admin-connexion .lede { margin: 12px 0 24px; }

.admin-erreur {
  margin-top: 14px; padding: 12px 14px;
  border: 1px solid #FDA29B; border-radius: var(--r-md);
  background: #FFFBFA; color: #B42318; font-size: 14px;
}

.admin-onglets { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.admin-onglet {
  border: 0; background: none; cursor: pointer;
  padding: 12px 16px; margin-bottom: -1px;
  font-size: 15px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent;
}
.admin-onglet:hover { color: var(--ink); }
.admin-onglet[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.admin-tete {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; margin-bottom: 20px;
}
.admin-tete .lede { margin-top: 8px; max-width: 620px; font-size: 14px; }
.admin-tete__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.admin-message {
  margin-bottom: 18px; padding: 12px 14px;
  border: 1px solid #ABEFC6; border-radius: var(--r-md);
  background: #F6FEF9; color: #067647; font-size: 14px;
}
.admin-message--erreur { border-color: #FDA29B; background: #FFFBFA; color: #B42318; }

.admin-ligne {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  align-items: center; gap: 18px;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--surface); padding: 16px 18px; margin-bottom: 10px;
}
.admin-ligne > img { width: 56px; height: 56px; object-fit: contain; }
.admin-ligne h2 { font-size: 16px; font-weight: 700; color: var(--ink); }
.admin-ligne p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.admin-ligne--inactif { background: var(--surface-3); }
.admin-ligne--inactif > img { opacity: .4; filter: grayscale(1); }

.admin-etat {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: .08em; background: var(--surface-2); color: var(--faint);
  padding: 3px 7px; border-radius: 5px; vertical-align: middle;
}
.admin-meta { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.admin-ligne__prix { font-size: 17px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.admin-ligne__actions { display: flex; gap: 8px; }
.admin-fixe { font-family: var(--mono); font-size: 14px; color: var(--muted); padding-top: 6px; }

.admin-modale {
  width: min(760px, 94vw); max-height: 90vh;
  border: 0; border-radius: var(--r-2xl); padding: 0;
  background: var(--surface); color: var(--ink);
}
.admin-modale::backdrop { background: rgb(11 17 32 / 0.55); }
.admin-modale form { padding: 28px; overflow-y: auto; max-height: 90vh; }
.admin-modale h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.admin-modale h3 { font-size: 16px; font-weight: 700; margin-top: 28px; }
.admin-modale .grid-2 { margin-top: 20px; }
.admin-modale .input-group { margin: 0; }
.admin-modale__actions {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .admin-ligne { grid-template-columns: 44px 1fr; }
  .admin-ligne > img { width: 44px; height: 44px; }
  .admin-ligne__prix, .admin-ligne__actions { grid-column: 2; }
}


/* ===================================================================
   Administration : demandes (liste, filtres, fiche détaillée)
   =================================================================== */
.dm-recherche input {
  width: min(320px, 100%);
  padding: 11px 14px 11px 38px;
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  font: inherit; font-size: 14px; color: var(--ink);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E") no-repeat 13px center;
}
.dm-recherche input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.dm-filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.dm-filtre {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 8px 7px 13px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.dm-filtre:hover { border-color: var(--line-strong); color: var(--ink); }
.dm-filtre[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFF; }
.dm-filtre__n {
  min-width: 22px; padding: 1px 7px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--muted);
  font-size: 12px; font-variant-numeric: tabular-nums; text-align: center;
}
.dm-filtre[aria-pressed="true"] .dm-filtre__n { background: rgb(255 255 255 / .16); color: #FFF; }

/* --- liste --------------------------------------------------------------- */
.dm-liste { display: grid; gap: 10px; }
.dm-ligne {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto 110px 118px 96px 20px;
  align-items: center; gap: 18px;
  padding: 14px 18px 14px 14px;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--surface); color: inherit;
  transition: border-color .15s ease, box-shadow .2s ease, transform .2s cubic-bezier(.16, 1, .3, 1);
}
.dm-ligne:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 28px -14px rgb(37 99 235 / .35);
  transform: translateY(-1px);
}
.dm-ligne--nouvelle .dm-ligne__nom::after {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px;
  border-radius: 50%; background: var(--accent); vertical-align: middle;
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.dm-ligne__besoin {
  width: 56px; height: 56px; border-radius: var(--r-lg);
  background: var(--accent-wash); display: grid; place-items: center;
}
.dm-ligne__besoin img { width: 48px; height: 48px; object-fit: contain; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.dm-ligne:hover .dm-ligne__besoin img { transform: translateY(-3px) rotate(-6deg) scale(1.06); }
.dm-ligne__qui { display: grid; gap: 3px; min-width: 0; }
.dm-ligne__nom { font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-ligne__sous { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-ligne__total { font-size: 15px; font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.dm-ligne__date { font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; }
.dm-ligne__fleche { color: var(--faint); transition: color .15s ease, transform .2s ease; }
.dm-ligne:hover .dm-ligne__fleche { color: var(--accent); transform: translateX(3px); }

.dm-pile { display: flex; align-items: center; padding-left: 8px; }
.dm-pile img, .dm-pile__plus {
  width: 34px; height: 34px; margin-left: -8px;
  border: 2px solid var(--surface); border-radius: 50%;
  background: var(--surface-2); object-fit: contain; padding: 3px;
}
.dm-pile__plus { display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 0; }

.dm-statut {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.dm-statut::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dm-statut--nouvelle   { background: var(--accent-tint); color: var(--accent); }
.dm-statut--en_cours   { background: #FFFAEB; color: #B54708; }
.dm-statut--devis      { background: #F4F3FF; color: #5925DC; }
.dm-statut--signee     { background: #ECFDF3; color: #067647; }
.dm-statut--sans_suite { background: var(--surface-2); color: var(--muted); }

.dm-vide { display: grid; justify-items: center; gap: 10px; padding: 48px 20px; color: var(--muted); font-size: 14px; }
.dm-vide img { width: 96px; height: 96px; object-fit: contain; opacity: .8; }

/* --- fiche ---------------------------------------------------------------- */
.dm-detail { animation: dm-entree .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes dm-entree { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.dm-retour { display: inline-block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.dm-retour:hover { color: var(--ink); }

.dm-tete {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 20px;
  padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line);
}
.dm-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #FFF;
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
}
.dm-tete__nom { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.dm-tete__sous { font-size: 15px; color: var(--text); margin-top: 4px; }
.dm-tete__meta { font-size: 13px; color: var(--muted); margin-top: 6px; }
.dm-ref { font-family: var(--mono); font-size: 12px; }
.dm-tete__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.dm-select select {
  appearance: none; -webkit-appearance: none;
  padding: 11px 36px 11px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E") no-repeat right 13px center;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.dm-select select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.dm-grille { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.dm-colonne { display: grid; gap: 18px; }
.dm-carte {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--r-2xl);
  background: var(--surface);
}
.dm-carte--discret { background: var(--surface-3); }
.dm-carte__label {
  font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted);
  margin-bottom: 12px;
}

.dm-besoin {
  display: flex; align-items: center; gap: 18px;
  padding: 16px; margin: -6px -6px 18px;
  border-radius: var(--r-xl); background: var(--accent-wash);
}
.dm-besoin img { width: 88px; height: 88px; object-fit: contain; flex: none; }
.dm-besoin .dm-carte__label { margin-bottom: 4px; }
.dm-besoin h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }

.dm-infos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.dm-info { padding: 12px 0; border-top: 1px solid var(--line); }
.dm-info dt { font-size: 12px; color: var(--muted); }
.dm-info dd { margin: 3px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.dm-info:last-child:nth-child(odd) { grid-column: 1 / -1; }
.dm-puce {
  display: inline-block; margin: 4px 6px 0 0; padding: 3px 10px;
  border-radius: var(--r-pill); background: var(--surface-2);
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
}

.dm-message { margin-top: 18px; }
.dm-message blockquote {
  margin: 0; padding: 14px 16px;
  border-radius: var(--r-lg); background: var(--surface-2);
  font-size: 15px; line-height: 1.6; color: var(--ink-soft); white-space: pre-wrap;
}

.dm-contact { display: grid; gap: 12px; }
.dm-contact li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; font-size: 14px; }
.dm-contact span { color: var(--muted); font-size: 13px; }
.dm-contact a, .dm-contact strong { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.dm-contact a:hover { color: var(--accent); }
.dm-copier {
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  padding: 3px 9px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.dm-copier:hover { color: var(--ink); border-color: var(--line-strong); }

.dm-services { display: grid; gap: 8px; }
.dm-service {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 8px 10px 8px 6px; border-radius: var(--r-lg); background: var(--surface-3);
  border: 1px solid var(--line);
}
.dm-service img { width: 44px; height: 44px; object-fit: contain; }
.dm-service__nom { font-size: 14px; font-weight: 600; color: var(--ink); }
.dm-service__prix { font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.dm-service--vide { display: block; padding: 12px; font-size: 14px; color: var(--muted); }
.dm-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.dm-total strong { font-size: 22px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.dm-consent { font-size: 13px; color: var(--muted); line-height: 1.5; }
.dm-consent--ok svg { color: #067647; vertical-align: -2px; }
.dm-joint-compte {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 8px;
  font-size: 12px; font-weight: 600; color: var(--muted); vertical-align: middle;
}
.dm-fichiers { display: grid; gap: 8px; }
.dm-fichier {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 8px 10px 8px 8px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface-3);
}
.dm-fichier__type {
  width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .04em;
}
.dm-fichier__nom { display: grid; gap: 2px; min-width: 0; }
.dm-fichier__nom strong { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-fichier__nom span { font-size: 12px; color: var(--muted); }
.dm-fichier__ouvrir {
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface);
  padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.dm-fichier__ouvrir:hover { border-color: var(--accent); color: var(--accent); }
.dm-fichiers-vide { font-size: 14px; color: var(--muted); }

.dm-supprimer {
  margin-top: 14px; border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 13px; font-weight: 600; color: #B42318;
}
.dm-supprimer:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Les icônes du front ont un fond blanc opaque : le mode multiply le fait
   disparaître sur les fonds teintés. */
.dm-ligne__besoin img, .dm-besoin img, .dm-pile img, .dm-service img { mix-blend-mode: multiply; }

@media (max-width: 1100px) {
  .dm-ligne { grid-template-columns: 56px minmax(0, 1fr) auto 110px 20px; }
  .dm-pile, .dm-ligne__date { display: none; }
}
@media (max-width: 860px) {
  .dm-grille { grid-template-columns: 1fr; }
  .dm-tete { grid-template-columns: auto minmax(0, 1fr); }
  .dm-tete__actions { grid-column: 1 / -1; }
  .dm-ligne { grid-template-columns: 48px minmax(0, 1fr) auto; row-gap: 8px; }
  .dm-ligne__besoin { width: 48px; height: 48px; }
  .dm-ligne__besoin img { width: 40px; height: 40px; }
  .dm-ligne__total { grid-column: 2; grid-row: 2; text-align: left; }
  .dm-ligne .dm-statut { grid-column: 3; grid-row: 1; }
  .dm-ligne__fleche { display: none; }
  .dm-infos { grid-template-columns: 1fr; }
  .dm-info:last-child:nth-child(odd) { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .dm-detail { animation: none; }
  .dm-ligne, .dm-ligne__besoin img { transition: none; }
}

/* =========================================================================
   Téléphone — mise en page repensée, pas seulement rétrécie
   La maquette est en cartes larges : empilées telles quelles sur un écran de
   390 px, l'étape 1 fait à elle seule 1 900 px et le panneau de contexte 680.
   Ici les cartes deviennent des lignes, la progression remonte dans l'en-tête,
   et le panneau latéral se réduit à sa promesse.
   ========================================================================= */

@media (hover: none) {
  a, button, label, summary, [role="button"] { -webkit-tap-highlight-color: transparent; }
  /* Au doigt, un survol reste « collé » sur le dernier élément touché. */
  a.card:hover { border-color: var(--line); box-shadow: none; transform: none; }
  a.card:hover .card__arrow { background: none; border-color: var(--line); color: var(--ink); }
  .need:hover .need__box { border-color: var(--line); box-shadow: 0 1px 2px rgb(11 17 32 / .04); transform: none; }
}

/* ----------------------------------------------- parcours guidé : ossature */
@media (max-width: 1020px) {
  /* La barre d'actions quitte le flux : en pile elle se retrouvait sous le
     panneau de contexte, donc hors de portée pendant toute la saisie. */
  .flow__foot {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    margin: 0;
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px;
    padding: 12px max(var(--gutter), env(safe-area-inset-left))
             calc(12px + env(safe-area-inset-bottom))
             max(var(--gutter), env(safe-area-inset-right));
    box-shadow: 0 -10px 28px -22px rgb(11 17 32 / .6);
  }
  .flow__actions { display: contents; }
  .flow__foot .selection { order: 1; flex: 1 0 100%; text-align: center; }
  .flow__foot [data-prev] { order: 2; flex: 0 0 auto; }
  .flow__foot [data-next] { order: 3; flex: 1 1 auto; }
  /* La progression remonte dans l'en-tête : la liste détaillée du panneau
     latéral répétait la même chose sur 400 px, tout en bas de la page. */
  .flow-head__inner > .stepper-nav { display: flex; }
  .stepper li { width: auto; }
  .stepper li + li { margin-left: 34px; }
  .stepper li + li::before { left: -34px; right: calc(100% - 1px); top: 14px; }
  .stepper__dot { width: 30px; height: 30px; font-size: 13px; }
  .stepper__label { display: none; }

  /* La réassurance suit le formulaire, en une ligne, au lieu d'occuper une
     bande à part une fois toutes les questions passées. */
  .flow__rassure { display: flex; }
  .flow__main { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }

  /* Le bouton d'aide se réduit à son pictogramme : son libellé prenait le tiers
     de la largeur d'en-tête. Son conteneur part aussi, sinon l'écart du flex
     reste et transforme le bouton rond en ovale. */
  .help { gap: 0; padding: 8px; border-radius: 50%; }
  .help > span:not(.help__badge) { display: none; }
}

@media (max-width: 620px) {
  .flow-head__inner { grid-template-columns: auto 1fr auto; gap: 12px; min-height: 64px; }
  .brand__name { font-size: 17px; }
  .stepper li + li { margin-left: 22px; }
  .stepper li + li::before { left: -22px; }
  .stepper__dot { width: 26px; height: 26px; font-size: 12px; }
  .help__badge { width: 26px; height: 26px; }
}

@media (max-width: 430px) {
  /* Sous 430 px, le nom de marque, les quatre pastilles et le bouton d'aide ne
     tiennent plus sur la ligne : dans un tunnel, la pastille de marque suffit
     et la progression est ce qui doit rester lisible. */
  .flow-head .brand__name { display: none; }
  .stepper li + li { margin-left: 26px; }
  .stepper li + li::before { left: -26px; }
}

/* ------------------------------------------- cartes « besoin » en lignes */
@media (max-width: 620px) {
  .needs { gap: 10px; margin-top: 22px; }
  .need__box {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 22px;
    grid-template-areas:
      "ico titre coche"
      "ico texte coche";
    align-items: center;
    column-gap: 14px;
    min-height: 0; padding: 12px 14px;
    border-radius: var(--r-lg);
  }
  .need__icon  { grid-area: ico; width: 46px; height: 46px; margin: 0; }
  .need__title { grid-area: titre; margin-top: 0; font-size: 15.5px; }
  .need__desc  { grid-area: texte; margin-top: 2px; font-size: 12.5px; line-height: 1.45; }
  .need__check { grid-area: coche; position: static; width: 22px; height: 22px; }
  .need__check svg { width: 12px; height: 12px; }
}

/* --------------------------------------- cartes service en lignes aussi */
@media (max-width: 620px) {
  .card-grid { gap: 10px; }
  .card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-areas: "ico nom" "ico texte" "ico pied";
    column-gap: 14px;
    padding: 14px;
    border-radius: var(--r-lg);
  }
  .card__icon { grid-area: ico; width: 54px; height: 54px; margin: 0; align-self: start; }
  .card__name { grid-area: nom; margin-top: 0; font-size: 16px; }
  .card__desc { grid-area: texte; margin-top: 3px; font-size: 12.5px; line-height: 1.45; }
  .card__foot { grid-area: pied; margin-top: 10px; padding-top: 0; }
  .price { font-size: 11px; padding: 5px 9px; }
  .card__arrow { width: 28px; height: 28px; font-size: 13px; }

  /* Même compactage pour les livrables recommandés de l'étape 4. */
  .reco-card { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .reco-card__icon { width: 44px; height: 44px; }
  .reco-card--skip .reco-card__icon { width: 32px; height: 32px; }
}

/* ------------------------------------------- titres, rythme, respirations */
@media (max-width: 620px) {
  :root { --section-y: 38px; }

  .step-title { font-size: 26px; margin-top: 14px; letter-spacing: -0.03em; }
  .step-lede  { font-size: 15px; margin-top: 10px; }
  /* « Étape 2 sur 4 » répétait la progression désormais visible en en-tête. */
  .step-panel > .tag { display: none; }
  .step-title { margin-top: 0; }
  .tag { padding: 5px 10px; font-size: 10px; }
  .field { margin-top: 24px; }
  .grid-2 { gap: 14px; margin-top: 24px; }
  .recap { margin-top: 26px; padding-top: 18px; }

  .title { font-size: 28px; letter-spacing: -0.032em; }
  .title--sm { font-size: 24px; }
  .lede { font-size: 15px; }
  .fact { padding: 14px; }

  /* Les quatre étapes deviennent des lignes : le numéro à gauche, le texte
     à droite, au lieu de trois lignes empilées par carte. */
  .step {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-areas: "n titre" "n texte";
    column-gap: 14px; align-items: center;
    padding: 14px; min-height: 0; border-radius: var(--r-lg);
  }
  .step__n     { grid-area: n; width: 32px; height: 32px; font-size: 13px; }
  .step__title { grid-area: titre; margin-top: 0; font-size: 16px; }
  .step__desc  { grid-area: texte; margin-top: 2px; font-size: 12.5px; line-height: 1.45; }
  .method__note { margin-top: 14px; }
  .facts, .steps { gap: 10px; }
  .services__intro .lede,
  .services__head .lede { margin-top: 12px; }
  .services__routes { margin-top: 18px; }
  .cta { gap: 20px; }
  .cta__title { font-size: 26px; }
}

/* --------------------------------------------- champs et cibles tactiles */
@media (max-width: 620px) {
  /* Sous 16 px, iOS zoome sur le champ à la mise au point et n'en revient pas. */
  .input, .pill span, select, textarea.input { font-size: 16px; }
  .input { padding: 13px 14px; }

  .burger { width: 44px; height: 44px; }
  .upload__retirer { width: 40px; height: 40px; }
  .recap__edit { min-height: 32px; padding-inline: 4px; }
  .pill span { padding: 11px 15px; }
  .pills { gap: 8px; }
  .colophon a { display: inline-block; padding-block: 6px; }

  /* Deux lignes dans la barre fixe : tout mettre sur une seule couperait
     « Voir ma recommandation » dès 390 px. */
  .flow__foot { row-gap: 8px; }
  .flow__foot [data-prev] {
    order: 1; flex: 0 0 auto;
    font-size: 14px; padding: 6px 10px 6px 0; border-color: transparent;
  }
  .flow__foot .selection { order: 2; flex: 1 1 auto; text-align: right; }
  .flow__foot [data-next] { order: 3; flex: 1 1 100%; font-size: 16px; padding: 14px 18px; }
  .flow__main { padding-bottom: calc(130px + env(safe-area-inset-bottom)); }

  .upload { padding: 14px; }
  .upload__fichier { gap: 10px; }
  .upload__nom { min-width: 0; }
}

/* Le glisser-déposer n'existe pas au doigt : la zone annonce ce qu'elle fait
   vraiment sur un écran tactile. Les deux libellés sont dans le HTML, seul
   celui qui correspond au pointeur est affiché. */
.upload__titre[data-pointeur="doigt"] { display: none; }
@media (hover: none) {
  .upload__titre[data-pointeur="souris"] { display: none; }
  .upload__titre[data-pointeur="doigt"] { display: block; }
}
