/* Rayon Neuf, atelier vélo. Charte de la cliente gardée telle quelle : 4 couleurs, 2 polices, angles droits ou coins coupés,
   filets fins, ni ombre ni dégradé, pas de fond noir. Une seule chose orange sur l'écran en dehors du logo : l'œillet.
   Sans JavaScript, en mouvement réduit ou sur un écran trop bas : version fixe (les deux faces de l'étiquette se lisent).
   Avec l'animation : site.js pose la classe « anime » sur <html>. */
@font-face {
  font-family: "Brygada 1918"; src: url("../polices/brygada-1918-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans"; src: url("../polices/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap;
}
:root {
  --aubergine: #33203F;
  --orange: #E4572E;
  --papier: #F6F2EA;
  --lilas: #D9CBE8;
  /* Espacements, base 4 px */
  --e1: 4px; --e2: 8px; --e3: 12px; --e4: 16px; --e5: 24px; --e6: 32px; --e7: 48px; --e8: 72px; --e9: 112px;
  --marge: 16px;
  --barre: 60px;
  --coupe: 10px;
  --filet: 1px solid var(--aubergine);
  --police-titre: "Brygada 1918", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --police-texte: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  /* Hauteur de l'étiquette avec sa ficelle (rapport 230 / 400) */
  --h-objet: clamp(380px, 48svh, 112vw);
  --penche: -3deg;
  /* Corps du titre : il sert aussi à placer la ficelle dans le crochet du « j » de « jour ». */
  --corps: min(15.6vw, 8.4svh);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--barre) + var(--e2)); }
body { margin: 0; background: var(--lilas); color: var(--aubergine); font: 400 1.0625rem/1.5 var(--police-texte); }
img, svg { display: block; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--aubergine); outline-offset: 3px; box-shadow: 0 0 0 3px var(--papier); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.evitement { position: absolute; left: -999px; top: 0; z-index: 30; padding: var(--e3) var(--e4); background: var(--aubergine); color: var(--papier); }
.evitement:focus { left: var(--e2); top: var(--e2); }

/* ---------- Bouton : plein aubergine, coins coupés comme l'étiquette (la coupe se creuse au survol) ---------- */
.bouton {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--e5); border: 0; background: none; cursor: pointer;
  color: var(--papier); font: 600 1.0625rem/1 var(--police-texte); font-stretch: 85%; text-decoration: none; white-space: nowrap;
}
.bouton::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--aubergine);
  clip-path: polygon(var(--coupe) 0, 100% 0, 100% calc(100% - var(--coupe)), calc(100% - var(--coupe)) 100%, 0 100%, 0 var(--coupe));
}
.bouton:hover::before { clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.bouton:active { transform: translateY(1px); }
.lien { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-stretch: 85%; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.lien:hover { text-decoration-thickness: 3px; }
@media (prefers-reduced-motion: no-preference) { .bouton::before { transition: clip-path 0.14s ease-out; } }

/* ---------- Barre du haut : bande de papier, filet fin dessous ; le logo y garde son fond d'origine ---------- */
.entete {
  position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--e2);
  min-height: var(--barre); padding: calc((var(--barre) - 45px) / 2) var(--marge); background: var(--papier); border-bottom: var(--filet);
}
.entete-logo { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.entete-logo img { height: 32px; width: auto; }
.menu { font-stretch: 85%; font-weight: 500; }
.menu ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--e3); text-decoration: none; }
.menu a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.menu a[aria-current] { text-decoration: underline; text-decoration-thickness: 2.5px; text-underline-offset: 6px; }
.menu-bouton {
  min-height: 44px; padding: 0 var(--e3); border: 1.5px solid var(--aubergine); background: none; cursor: pointer;
  color: inherit; font: 600 1rem/1 var(--police-texte); font-stretch: 85%;
}
.entete-action { min-height: 44px; }
.recherche-lien { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--e3); font-stretch: 85%; font-weight: 500; }
.js .recherche-lien { display: none; }
.recherche-bouton {
  align-items: center; gap: var(--e2); min-width: 44px; height: 44px; padding: 0 var(--e3); border: 0; background: none; cursor: pointer;
  color: inherit; font: 500 1.0625rem/1 var(--police-texte); font-stretch: 85%;
}
.recherche-bouton svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.recherche-panneau { padding: var(--e3) var(--e4) var(--e4); background: var(--papier); }
.recherche-panneau label { display: block; margin-bottom: var(--e1); font-size: 0.9375rem; font-stretch: 85%; font-weight: 600; }
.recherche-panneau input {
  width: 100%; min-height: 48px; padding: 0 var(--e3); border: 1.5px solid var(--aubergine); border-radius: 0; background: var(--papier);
  color: inherit; font: inherit;
}
.recherche-panneau input::placeholder { color: var(--aubergine); opacity: 0.72; }
/* La croix bleue du navigateur sort de la palette : Échap ferme et vide le champ. */
.recherche-panneau input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.recherche-etat { margin-top: var(--e2); font-size: 0.9375rem; }
.recherche-etat:empty { display: none; }
.recherche-resultats { list-style: none; margin: var(--e1) 0 0; padding: 0; }
.recherche-resultats li { border-top: var(--filet); }
.recherche-resultats a { display: flex; align-items: center; min-height: 44px; padding: var(--e2) 0 var(--e1); font-weight: 600; }
.recherche-resultats span { display: block; margin-bottom: var(--e2); font-size: 0.9375rem; }

@media (max-width: 959px) {
  .entete-action { order: 1; padding: 0 var(--e3); font-size: 0.9375rem; }
  .menu-bouton { order: 2; }
  .recherche { order: 3; }
  .menu { order: 4; flex-basis: 100%; }
  .js .menu-bouton { display: inline-flex; align-items: center; }
  .js .menu { display: none; }
  .js .menu-ouvert .menu { display: block; padding-bottom: var(--e2); }
  .menu-ouvert .menu ul { display: block; }
  .menu-ouvert .menu li { border-top: var(--filet); }
  /* Sans script, tous les liens sont affichés : la barre est haute, elle reste en haut de page au lieu de suivre. */
  html:not(.js) .entete { position: static; }
  /* menu ouvert = panneau papier à la hauteur de son contenu, filet épais dessous, et un voile aubergine
     sur la page (sans dégradé ni noir) : ni grand vide ni panneau qui flotte sur le titre.
     Un clic sur le voile referme le menu (js/site.js). */
  .js .entete.menu-ouvert { border-bottom-width: 3px; }
  .js .entete.menu-ouvert::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100svh; background: rgba(51, 32, 63, 0.55); }
  /* état ouvert visible sur le bouton (plein aubergine, libellé « Fermer » posé par js/site.js). */
  /* bouton contour, filet épais. */
  .js .menu-ouvert .menu-bouton { border-width: 3px; padding: 0 6px; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .recherche { order: 0; }
}
@media (max-width: 599px) {
  /* Le bouton d'action est déjà dans la barre, toujours visible : pas de doublon sur le premier écran du téléphone. */
  .accroche .bouton { display: none; }
  /* « Menu » et « Fermer » ont la même largeur, la barre reste sur une ligne menu ouvert (mesuré : 340 px
     utiles à 375). Sous 375 px, le symbole seul du logo (gabarit.html). */
  .entete { gap: 0 6px; }
  .menu-bouton { min-width: 64px; padding: 0 var(--e2); justify-content: center; }
  /* Téléphone : pas la place pour la loupe à côté du logo, du bouton d'action et de « Menu » :
     le champ de recherche est le premier élément du menu ouvert. */
  .recherche { flex-basis: 100%; }
  .js .recherche { display: none; }
  .js .menu-ouvert .recherche { display: block; }
  .js .recherche-bouton { display: none; }
  .js .menu-ouvert .recherche-panneau { display: block; padding: var(--e2) 0 var(--e3); }
  /* dès qu'il y a des résultats, ils prennent la place des liens du menu (la barre est collée en haut : ce
     qui dépasserait le bas de l'écran ne se verrait jamais) ; la liste défile d'elle-même si elle est plus haute. */
  .js .menu-ouvert:has(.recherche-resultats li) .menu { display: none; }
  .js .menu-ouvert .recherche-resultats { max-height: calc(100svh - var(--barre) - 160px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (min-width: 600px) {
  .entete { gap: 0 var(--e3); }
  .entete-logo img { height: 44px; }
  .js .recherche-bouton { display: inline-flex; }
  .recherche-bouton span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .recherche-panneau { position: absolute; top: 100%; right: var(--marge); width: min(26rem, calc(100vw - 2 * var(--marge))); border: var(--filet); border-top: 0; }
}
@media (min-width: 960px) {
  .menu-bouton { display: none; }
  .entete-logo { margin-right: var(--e4); }
  .menu { margin-right: auto; }
}
@media (min-width: 1280px) {
  /* Loupe étiquetée dès que la place le permet. */
  .recherche-bouton span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}

/* ---------- Premier écran ---------- */
.heros {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  min-height: calc(100svh - var(--barre)); padding: 0 var(--marge) var(--e5);
}
.heros > * { min-width: 0; }
.titre {
  order: 2; position: relative; z-index: 2; margin: var(--e4) 0 0;
  font: 700 var(--corps)/0.92 var(--police-titre); letter-spacing: -0.024em;
}
.titre span { display: block; white-space: nowrap; }
.accroche { order: 3; max-width: 23rem; margin-top: var(--e3); }
.accroche .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e1) var(--e5); margin-top: var(--e4); }
.reperes { order: 5; max-width: 22rem; margin-top: var(--e6); font-style: normal; font-size: 0.9375rem; line-height: 1.45; }
.reperes p + p { margin-top: var(--e1); }

/* L'étiquette de consigne. Version fixe : les deux faces sont deux étiquettes dans le fil de la page. */
.objet, .objet-tourne { display: contents; }
.face { position: relative; flex: none; width: calc(var(--h-objet) * 230 / 400); aspect-ratio: 230 / 400; }
/* Sur téléphone, 12 px de retrait : le coin bas de l'étiquette penchée reste dans l'écran. */
.recto { order: 1; margin: -26px 0 0 var(--e3); }
.verso { order: 4; margin: var(--e5) 0 0 var(--e3); }
/* La ficelle tombe droit ; l'étiquette pend un peu de travers, autour de son œillet. */
.face-ficelle, .face-fond { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.face-carte { position: absolute; inset: 0; container-type: inline-size; transform-origin: 50% 20.5%; transform: rotate(var(--penche)); }
.verso .face-carte { transform: rotate(calc(var(--penche) * -1)); }
.papier { fill: var(--papier); stroke: var(--aubergine); stroke-width: 1.3; stroke-linejoin: miter; }
.ficelle { fill: none; stroke: var(--aubergine); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.oeillet { fill: none; stroke: var(--orange); stroke-width: 4.8; }
/* Le texte de l'étiquette suit sa largeur (unités cqi) : 1 unité du dessin = 0,4348 cqi. */
.face-texte { position: absolute; left: 7.4cqi; right: 7.4cqi; top: 46cqi; bottom: 5cqi; font-stretch: 85%; font-size: 6.1cqi; line-height: 1.28; }
.face-titre { margin: 0; font: 600 6.1cqi/1.2 var(--police-texte); font-stretch: 80%; }
.delai { margin-top: 1.6cqi; font: 700 24.5cqi/0.88 var(--police-titre); letter-spacing: -0.02em; }
.delai span { display: block; white-space: nowrap; }
.face-petit { margin-top: 2.4cqi; font-size: 6.1cqi; }
.tarifs { width: 100%; margin-top: 5.6cqi; border-collapse: collapse; font-size: 6.2cqi; }
.tarifs th, .tarifs td { padding: 2.5cqi 0; border-top: var(--filet); text-align: left; font-weight: 500; vertical-align: baseline; }
.tarifs tr:last-child th, .tarifs tr:last-child td { border-bottom: var(--filet); }
.tarifs td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reponses { margin: 3cqi 0 0; }
.reponses div { padding: 2.1cqi 0 2.4cqi; border-top: var(--filet); }
.reponses dt { font-weight: 700; font-size: 6.2cqi; }
.reponses dd { margin: 0.6cqi 0 0; text-wrap: pretty; }
.retourner {
  min-height: 44px; padding: 0 var(--e1); border: 0; background: none; cursor: pointer; color: inherit;
  font: 600 0.9375rem/1.6 var(--police-texte); font-stretch: 85%; text-align: left;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
.retourner:hover { text-decoration-thickness: 3px; }

/* Version animée : une seule étiquette, deux faces dos à dos, qui tourne sur sa ficelle. */
.anime .objet {
  display: block; order: 1; position: relative; z-index: 1; flex: none; margin: -26px 0 0 var(--e3);
  width: calc(var(--h-objet) * 230 / 400); aspect-ratio: 230 / 400; perspective: 1900px; perspective-origin: 50% 45%;
}
/* Elle pivote autour du haut de sa ficelle, là où elle est accrochée. */
.anime .objet-tourne { display: block; position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 0.75%; will-change: transform; }
.anime .face { position: absolute; inset: 0; width: auto; margin: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.anime .verso { transform: rotateY(180deg); }
.anime .retourner { position: absolute; left: calc(100% + var(--e4)); bottom: 7%; width: 6.2rem; }

@media (min-width: 768px) {
  :root { --marge: 32px; --barre: 72px; --h-objet: min(52svh, 70vw); --corps: min(10.6vw, 15svh); --penche: -4deg; }
  .heros {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr;
    column-gap: var(--e6); align-items: start; padding: var(--e5) var(--marge) var(--e6);
  }
  .titre { grid-column: 1 / -1; grid-row: 1; margin: 0; text-align: center; line-height: 0.9; }
  .titre span { display: inline; }
  .titre .l1 { display: block; }
  /* Le haut de la ficelle se loge dans le crochet du « j » : 0,15 corps à gauche du centre, 0,045 corps sous la ligne. */
  .recto, .anime .objet {
    grid-column: 1 / -1; grid-row: 2; justify-self: center; left: calc(var(--corps) * -0.15);
    margin: calc(var(--corps) * 0.045 - var(--h-objet) * 3 / 400) 0 0;
  }
  .verso { grid-column: 1 / -1; grid-row: 4; justify-self: center; margin: var(--e7) 0 0; }
  .reperes { grid-column: 1; grid-row: 3; align-self: end; margin-top: var(--e6); }
  .accroche { grid-column: 2; grid-row: 3; align-self: end; justify-self: end; margin-top: var(--e6); }
  .anime .retourner { left: 50%; bottom: auto; top: calc(100% + var(--e2)); width: auto; transform: translateX(-50%); white-space: nowrap; text-align: center; }
}
@media (min-width: 1100px) {
  :root { --marge: 40px; }
  /* Grand écran : l'adresse en bas à gauche, l'accroche et le bouton en bas à droite, l'étiquette seule au centre. */
  .heros { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .recto, .anime .objet { grid-column: 2; }
  .reperes { grid-row: 2; max-width: 19rem; margin-top: 0; }
  .accroche { grid-column: 3; grid-row: 2; max-width: 21rem; margin-top: 0; }
  .verso { grid-row: 3; }
}
@media (min-width: 1600px) {
  :root { --marge: 56px; --barre: 80px; }
  body { font-size: 1.125rem; }
  /* en très grand écran, l'adresse et l'accroche viennent de part et d'autre de l'étiquette, à sa hauteur,
     en plus grand, au lieu de rester petites dans les coins bas. */
  .reperes, .accroche { align-self: center; max-width: 23rem; }
  .reperes { justify-self: end; margin-right: var(--e8); text-align: right; font-size: 1.25rem; line-height: 1.45; }
  .reperes strong { display: block; margin-bottom: var(--e2); font: 700 1.875rem/1.1 var(--police-titre); }
  .accroche { justify-self: start; margin-left: var(--e8); font-size: 1.375rem; line-height: 1.45; }
  .accroche .actions { margin-top: var(--e5); }
}

/* ======================================================================================================
   Site complet (2026-11-29) : le premier écran ci-dessus est celui de l'essai A ; tout ce qui suit est ajouté.
   Même charte : lilas et papier en alternance, filets aubergine, coins coupés, l'orange réservé à l'œillet du héros.
   ====================================================================================================== */
:root { --large: 76rem; }

/* Téléphone : l'adresse et les horaires tiennent dans le premier écran (défaut de l'essai A à 375 × 812). */
/* au téléphone aussi, l'étiquette pend au « j » (titre centré d'abord, puis l'étiquette accrochée sous le j).
   Mesuré à 390 × 844 : la ligne « jour dit. » fait 3,60 corps ; le crochet du j est à 0,12 corps de son bord gauche.
   Ficelle = milieu de l'étiquette ; l'étiquette est placée pour que sa ficelle tombe à 50vw − 1,75 corps (dans le crochet). */
@media (max-width: 767px) {
  :root { --h-objet: clamp(270px, 37svh, 92vw); --corps: min(12.8vw, 7svh); }
  .heros { align-items: stretch; }
  /* titre aligné à gauche comme le reste ; la 3e ligne « jour dit. » est décalée d'une demi-étiquette, et
     l'étiquette (bord gauche à 0,05 corps de la marge) pend toujours sous le crochet du j (0,05 corps après le début de la ligne). */
  .titre { order: 1; margin-top: var(--e3); text-align: left; }
  .titre .l3 { padding-left: calc(var(--h-objet) * 115 / 400); }
  /* « jour dit. » seule décalée paraissait accidentelle ; le titre descend en escalier régulier
     (0, un demi-pas, un pas), comme la ficelle qui mène à l'étiquette. */
  .titre .l2 { padding-left: calc(var(--h-objet) * 115 / 800); }
  .recto, .anime .objet {
    order: 2; align-self: flex-start;
    margin: calc(var(--corps) * 0.01 - var(--h-objet) * 3 / 400) 0 0 calc(var(--corps) * 0.05);
  }
  .accroche { order: 3; }
  .verso { order: 4; align-self: flex-start; }
  .reperes { order: 5; }
  .accroche { margin-top: var(--e3); font-size: 1rem; line-height: 1.45; }
  .accroche .actions { margin-top: var(--e2); }
  .reperes { margin-top: var(--e4); font-size: 0.9375rem; }
  /* « Retourner l'étiquette » centré sous l'étiquette, au lieu de flotter à sa droite ; l'étiquette
     rapetisse un peu pour que le premier écran tienne toujours à 844 px de haut. */
  :root { --h-objet: clamp(250px, 32svh, 92vw); }
  .anime .objet { margin-bottom: 44px; }
  .anime .retourner { left: 50%; bottom: auto; top: calc(100% + var(--e1)); width: auto; transform: translateX(-50%); white-space: nowrap; text-align: center; font-size: 0.9375rem; }
}

/* ---------- Bandeau de fermeture exceptionnelle (contenu/atelier.json) ---------- */
.fermeture { margin: 0; padding: var(--e3) var(--marge); background: var(--aubergine); color: var(--papier); font-weight: 600; text-align: center; }

/* ---------- Titres de section ---------- */
.section-titre { margin: 0; font: 700 clamp(2rem, 5.2vw, 3.6rem)/1 var(--police-titre); letter-spacing: -0.02em; text-wrap: balance; }
.section-titre-petit { margin: 0 0 var(--e4); font: 700 1.625rem/1.1 var(--police-titre); letter-spacing: -0.01em; }
.liste-filets { list-style: none; margin: 0; padding: 0; }
.liste-filets li { padding: var(--e3) 0; border-top: var(--filet); }
.liste-filets li:last-child { border-bottom: var(--filet); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2) var(--e5); margin-top: var(--e5); }

/* ---------- Le dépôt en quatre temps (récit en étapes) ---------- */
.recit { padding: var(--e8) var(--marge); background: var(--papier); border-top: var(--filet); }
.recit-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--e3) var(--e6); max-width: var(--large); margin: 0 auto; }
.recit-passer { display: none; }
.recit-scene { display: grid; gap: var(--e6); max-width: var(--large); margin: var(--e7) auto 0; }
.recit-etapes { display: grid; gap: 0 var(--e6); list-style: none; margin: 0; padding: 0; counter-reset: none; }
.etape { padding: var(--e4) 0 var(--e5); border-top: var(--filet); }
.etape-num { font: 700 1rem/1 var(--police-texte); font-stretch: 85%; font-variant-numeric: tabular-nums; }
.etape-num::before { content: "Étape "; }
.etape-titre { margin: var(--e2) 0 var(--e2); font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.08 var(--police-titre); letter-spacing: -0.01em; }
.etape p:last-child { max-width: 30rem; }

/* La vraie étiquette de consigne, celle du comptoir : nom, vélo, prestation, jour de retour. */
.consigne { position: relative; width: min(19rem, 78vw); aspect-ratio: 230 / 400; justify-self: center; container-type: inline-size; }
.consigne-fond { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(3deg); transform-origin: 50% 20%; }
.consigne-fond .oeillet { stroke: var(--aubergine); stroke-width: 3; }
.consigne-texte { position: absolute; left: 9cqi; right: 9cqi; top: 47cqi; transform: rotate(3deg); transform-origin: 50% -30%; }
.consigne-enseigne { margin-bottom: 4cqi; padding-bottom: 2.5cqi; border-bottom: var(--filet); font: 600 5.6cqi/1.2 var(--police-texte); font-stretch: 80%; letter-spacing: 0.06em; text-transform: uppercase; }
.consigne-ligne, .consigne-retour { display: flex; flex-direction: column; padding: 2.2cqi 0 2.6cqi; border-bottom: 1px dashed var(--aubergine); }
.consigne-cle { font: 600 5.2cqi/1.2 var(--police-texte); font-stretch: 80%; }
.consigne-main { font: 400 9cqi/1.1 var(--police-titre); }
.consigne-jour { font: 700 14cqi/1 var(--police-titre); letter-spacing: -0.01em; }
.consigne-tampon {
  display: inline-block; margin-top: 5cqi; padding: 1.6cqi 3.4cqi; border: 2px solid var(--aubergine); transform: rotate(-6deg);
  font: 700 6cqi/1.1 var(--police-texte); font-stretch: 80%; letter-spacing: 0.08em; text-transform: uppercase;
}
@media (min-width: 768px) {
  .recit-etapes { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .recit-scene { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; column-gap: var(--e8); }
  .consigne { width: 20rem; }
}

/* Version animée : la section reste en place ; une étape à la fois, l'étiquette se remplit (js/site.js). */
.anime-recit .recit-passer { display: inline-flex; }
.anime-recit .recit { min-height: calc(100svh - var(--barre)); display: flex; flex-direction: column; justify-content: center; padding-top: var(--e6); padding-bottom: var(--e6); }
.anime-recit .recit-tete, .anime-recit .recit-scene { width: 100%; }
.anime-recit .recit-scene { margin-top: var(--e5); }
/* L'étiquette tient entière dans la hauteur de l'écran, tampon compris. */
@media (min-width: 1100px) { .anime-recit .consigne { width: min(20rem, calc((100svh - var(--barre) - 190px) * 230 / 400)); } }
.anime-recit .recit-etapes { display: grid; grid-template-columns: 1fr; }
.anime-recit .etape { grid-area: 1 / 1; align-self: center; border-top: 0; padding: 0; }
.anime-recit .etape-num { font: 700 clamp(4rem, 9vw, 7.5rem)/0.9 var(--police-titre); }
.anime-recit .etape-num::before { content: none; }
.anime-recit .etape-titre { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1; margin-top: var(--e4); }
.anime-recit .etape p:last-child { font-size: 1.1875rem; }
.anime-recit [data-remplie] .consigne-main, .anime-recit .consigne-jour, .anime-recit .consigne-tampon { clip-path: inset(0 100% 0 0); }
/* au téléphone, l'étiquette du comptoir à droite du texte de l'étape (au lieu de dessus) : la section tient
   dans environ 560 px de haut ; plus bas, js/site.js garde la version fixe. */
@media (max-width: 767px) {
  .anime-recit .recit { padding-top: var(--e5); padding-bottom: var(--e5); }
  /* colonne de texte plus large (« Vous demandez / en ligne. » sur deux lignes à 375), interligne plus aéré. */
  .anime-recit .recit-scene { grid-template-columns: minmax(0, 1fr) min(8.5rem, 32vw); gap: var(--e3); align-items: start; }
  .anime-recit .recit-etapes { grid-column: 1; grid-row: 1; }
  .anime-recit .consigne { grid-column: 2; grid-row: 1; width: 100%; margin-top: var(--e2); }
  .anime-recit .etape { align-self: start; }
  .anime-recit .etape-num { font-size: 2.75rem; }
  .anime-recit .etape-titre { font-size: 1.625rem; line-height: 1.1; margin-top: var(--e2); margin-bottom: var(--e3); }
  .anime-recit .etape p:last-child { font-size: 1rem; line-height: 1.5; }
}
.sonde-hauteur { position: fixed; top: 0; left: 0; width: 0; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; }

/* ---------- Ce que l'atelier fait, ce qu'il ne fait pas ---------- */
.oui-non { padding: var(--e8) var(--marge); border-top: var(--filet); }
.oui-non > .section-titre { max-width: var(--large); margin: 0 auto; }
.oui-non-grille { display: grid; gap: var(--e6); max-width: var(--large); margin: var(--e7) auto 0; }
.colonne-titre { margin: 0 0 var(--e3); font: 700 1.25rem/1.2 var(--police-texte); font-stretch: 85%; }
.colonne-action { padding: var(--e5); background: var(--papier); clip-path: polygon(var(--coupe) 0, 100% 0, 100% calc(100% - var(--coupe)), calc(100% - var(--coupe)) 100%, 0 100%, 0 var(--coupe)); }
.colonne-action p + p { margin-top: var(--e3); }
@media (min-width: 900px) { .oui-non-grille { grid-template-columns: 1fr 1fr 0.9fr; align-items: start; } }

/* ---------- Pages intérieures ---------- */
.page-tete { max-width: var(--large); margin: 0 auto; padding: var(--e8) var(--marge) var(--e7); }
.page-titre { margin: 0; font: 700 clamp(3rem, 9vw, 6.6rem)/0.92 var(--police-titre); letter-spacing: -0.024em; }
.page-chapo { max-width: 38rem; margin-top: var(--e5); font-size: 1.1875rem; }
.page-chapo a, .texte-long a, .depot a:not(.bouton), .question a { text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* Tarifs : l'affiche des tarifs de l'atelier, tableau à filets fins sur papier. */
.affiche { display: grid; gap: var(--e7); max-width: var(--large); margin: 0 auto; padding: 0 var(--marge) var(--e9); }
.affiche-cadre {
  padding: var(--e6) var(--e5) var(--e5); background: var(--papier);
  clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%, 0 24px);
}
.affiche-titre { margin: 0; font: 700 clamp(1.75rem, 4vw, 2.6rem)/1 var(--police-titre); text-align: center; }
.affiche-date { margin-top: var(--e3); text-align: center; font-size: 1rem; }
.grilles { display: grid; row-gap: var(--e6); margin-top: var(--e5); }
.grille-titre { caption-side: top; padding-bottom: var(--e3); text-align: left; font: 700 1.5rem/1.1 var(--police-titre); }
.grille-tarifs { width: 100%; border-collapse: collapse; font-stretch: 90%; }
.grille-tarifs thead th { padding: 0 0 var(--e2); font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; text-align: left; }
.grille-tarifs thead th:last-child { text-align: right; }
.grille-tarifs tbody th, .grille-tarifs td { padding: var(--e3) 0; border-top: var(--filet); vertical-align: baseline; }
.grille-tarifs tbody tr:last-child th, .grille-tarifs tbody tr:last-child td { border-bottom: var(--filet); }
.grille-tarifs tbody th { text-align: left; font-weight: 600; font-size: 1.125rem; }
.grille-tarifs td { padding-left: var(--e4); text-align: right; font-weight: 700; font-size: 1.1875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grille-tarifs .precision { display: block; margin-top: var(--e1); font-weight: 400; font-size: 0.9375rem; font-stretch: 100%; max-width: 34rem; }
.grille-tarifs tr:target th, .grille-tarifs tr:target td { background: var(--lilas); }
.affiche-pied { margin-top: var(--e4); text-align: center; font-weight: 600; }
/* une seule colonne (avant : colonne droite vide sous « Bon à savoir » sur toute la hauteur du tableau).
   L'affiche garde une largeur lisible ; « Bon à savoir » passe dessous, sur deux colonnes, avec le bouton. */
@media (min-width: 1000px) {
  .affiche-cadre { padding: var(--e7) var(--e7) var(--e6); }
  .grilles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--e7); align-items: start; }
  .affiche-cote { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--e7); align-items: end; }
  .affiche-cote .section-titre-petit { grid-column: 1 / -1; }
  .affiche-cote .liste-filets { columns: 2; column-gap: var(--e6); }
  .affiche-cote .liste-filets li { break-inside: avoid; }
  .affiche-cote .actions { margin-top: 0; }
}

/* L'atelier : trois engagements */
.trois { display: grid; gap: var(--e5); max-width: var(--large); margin: 0 auto; padding: 0 var(--marge) var(--e8); }
.engagement { padding: var(--e5); background: var(--papier); clip-path: polygon(var(--coupe) 0, 100% 0, 100% calc(100% - var(--coupe)), calc(100% - var(--coupe)) 100%, 0 100%, 0 var(--coupe)); }
.engagement-num { font: 700 3rem/1 var(--police-titre); }
.engagement-titre { margin: var(--e3) 0 var(--e2); font: 700 1.75rem/1.05 var(--police-titre); }
@media (min-width: 900px) { .trois { grid-template-columns: repeat(3, 1fr); } }

/* Même colonne que l'en-tête des pages : largeur maximale centrée, marge intérieure de chaque côté. */
.bande { padding: var(--e8) 0; background: var(--papier); border-top: var(--filet); }
.bande > * { max-width: var(--large); margin-left: auto; margin-right: auto; padding-left: var(--marge); padding-right: var(--marge); }
.bande > p { margin-top: var(--e4); padding-right: max(var(--marge), calc(100% - 44rem)); font-size: 1.125rem; }
/* à partir de 900 px, le titre à gauche et ce qui est dit à droite, au lieu d'une moitié
   droite vide sous le titre. */
.bande-cote .liste-filets { margin-top: var(--e5); font-size: 1.125rem; }
@media (min-width: 900px) {
  .bande.bande-cote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--e8); align-items: start;
    padding-left: max(var(--marge), calc((100% - var(--large)) / 2 + var(--marge))); padding-right: max(var(--marge), calc((100% - var(--large)) / 2 + var(--marge))); }
  .bande.bande-cote > * { grid-column: 2; max-width: none; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .bande.bande-cote > .section-titre { grid-column: 1; grid-row: 1 / span 3; }
  .bande.bande-cote > .liste-filets { margin-top: var(--e2); }
}

/* Questions : chaque réponse écrite sur la page, rien à déplier. */
.questions { display: grid; gap: 0 var(--e7); max-width: var(--large); margin: 0 auto; padding: 0 var(--marge) var(--e8); }
.question { padding: var(--e4) 0 var(--e5); border-top: var(--filet); }
.question-titre { margin: 0 0 var(--e2); font: 700 1.4375rem/1.15 var(--police-titre); }
.question:target { background: var(--papier); box-shadow: -12px 0 0 var(--papier), 12px 0 0 var(--papier); }
@media (min-width: 900px) { .questions { grid-template-columns: 1fr 1fr; } }

/* Textes légaux et plan du site */
.texte-long { max-width: 44rem; margin: 0 auto; padding: 0 var(--marge) var(--e9); }
.texte-long h2 { margin: var(--e6) 0 var(--e2); font: 700 1.5rem/1.15 var(--police-titre); }
.texte-long p + p { margin-top: var(--e3); }
.a-completer { display: inline; padding: 0 var(--e1); border: 1.5px dashed var(--aubergine); }
.plan { display: grid; gap: var(--e6); max-width: var(--large); margin: 0 auto; padding: 0 var(--marge) var(--e9); }
@media (min-width: 900px) { .plan { grid-template-columns: 1fr 1fr; } }

/* Merci */
.numero { margin-top: var(--e5); padding: var(--e4) var(--e5); max-width: 40rem; background: var(--papier); border: var(--filet); font-size: 1.125rem; }
.numero-valeur { font: 700 1.5rem/1.2 var(--police-texte); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; white-space: nowrap; }
.suite-etapes { max-width: 40rem; margin: var(--e5) 0 0; padding: 0; list-style: none; counter-reset: suite; }
.suite-etapes li { position: relative; padding: var(--e3) 0 var(--e3) 2.4rem; border-top: var(--filet); counter-increment: suite; }
.suite-etapes li::before { content: counter(suite); position: absolute; left: 0; top: var(--e3); font: 700 1.25rem/1.4 var(--police-titre); }

/* ---------- Déposer mon vélo : règles à gauche, formulaire à droite ---------- */
.depot { display: grid; gap: var(--e7); max-width: var(--large); margin: 0 auto; padding: 0 var(--marge) var(--e9); }
.depot-tel { margin-top: var(--e4); }
.depot-formulaire { padding: var(--e5) var(--e4); background: var(--papier); border: var(--filet); }
@media (min-width: 600px) { .depot-formulaire { padding: var(--e6); } }
@media (min-width: 1000px) {
  .depot { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
  .depot-regles { position: sticky; top: calc(var(--barre) + var(--e5)); }
}
.groupe { margin: var(--e5) 0 0; padding: 0; border: 0; }
.groupe legend { padding: 0; margin-bottom: var(--e2); font: 700 1.25rem/1.2 var(--police-titre); }
.champ { margin-top: var(--e4); }
.champ > label, .etiquette-champ { display: block; margin-bottom: var(--e1); font-weight: 600; font-stretch: 90%; }
.aide { font-weight: 400; font-size: 0.9375rem; }
p.aide { margin-top: var(--e1); }
.champ input:not([type="radio"]):not([type="checkbox"]), .champ select, .champ textarea {
  display: block; width: 100%; min-height: 48px; padding: var(--e2) var(--e3); border: 1.5px solid var(--aubergine); border-radius: 0;
  background: #fff; color: var(--aubergine); font: inherit; font-size: 1.0625rem;
}
.champ select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--aubergine) 50%), linear-gradient(135deg, var(--aubergine) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.champ textarea { min-height: 7rem; resize: vertical; }
.champ [aria-invalid="true"] { border-width: 3px; }
.choix-ligne { display: flex; flex-wrap: wrap; gap: var(--e2) var(--e5); }
.choix { display: inline-flex; align-items: center; gap: var(--e2); min-height: 44px; font-weight: 500; cursor: pointer; }
.choix input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--aubergine); }
/* la case seule dans son champ (« vélo de prêt ») gardait l'affichage en bloc de « .champ > label » : collée à son texte. */
.champ > label.choix { display: inline-flex; gap: var(--e3); margin-bottom: 0; }
.erreur { margin-top: var(--e1); padding-left: 1.5rem; font-weight: 600; background: no-repeat left 0.2em / 1.1rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1 19 18H1Z' fill='none' stroke='%2333203F' stroke-width='2'/%3E%3Cpath d='M10 7v5M10 14v2' stroke='%2333203F' stroke-width='2'/%3E%3C/svg%3E"); }
.form-resume { margin: var(--e4) 0 0; padding: var(--e4); border: 3px solid var(--aubergine); background: var(--lilas); }
.form-resume p { font-weight: 700; }
.form-resume ul { margin: var(--e2) 0 0; padding-left: 1.2rem; }
.form-note { margin-top: var(--e4); font-size: 0.9375rem; }
.form-envoi { margin-top: var(--e6); }
.form-envoi .bouton { width: 100%; min-height: 56px; font-size: 1.1875rem; }
@media (min-width: 600px) { .form-envoi .bouton { width: auto; } }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pages d'erreur du serveur (formulaire refusé, sans JavaScript) */
.intro { max-width: 44rem; margin: 0 auto; padding: var(--e8) var(--marge); }
.intro h1 { margin: 0 0 var(--e4); font: 700 clamp(2.2rem, 6vw, 3.6rem)/1 var(--police-titre); }
.intro ul { margin: var(--e3) 0 var(--e5); padding-left: 1.2rem; }
.intro li + li { margin-top: var(--e2); }

/* ---------- Pied de page : aubergine, jamais de noir ---------- */
.pied { padding: var(--e8) var(--marge) var(--e5); background: var(--aubergine); color: var(--papier); }
.pied a { color: var(--papier); text-underline-offset: 4px; }
.pied :focus-visible { outline-color: var(--papier); box-shadow: 0 0 0 3px var(--aubergine); }
.pied-grille { display: grid; gap: var(--e6); max-width: var(--large); margin: 0 auto; }
.pied-marque img { width: auto; height: 40px; }
.pied-marque p { margin-top: var(--e4); max-width: 20rem; }
.pied-adresse { font-style: normal; }
.pied-adresse p + p, .pied-horaires p + p { margin-top: var(--e2); }
.pied-titre { margin: 0 0 var(--e3); font: 700 1.25rem/1.2 var(--police-titre); }
.pied-liens ul { list-style: none; margin: 0; padding: 0; }
.pied-liens a { display: inline-flex; align-items: center; min-height: 40px; }
.pied-bas { max-width: var(--large); margin: var(--e7) auto 0; padding-top: var(--e4); border-top: 1px solid var(--papier); font-size: 0.9375rem; }
@media (min-width: 768px) { .pied-grille { grid-template-columns: 1.3fr 1fr 1fr 0.8fr; } }

/* Pages sans le grand héros : le fond reste lilas, comme l'affiche des tarifs. */
@media print { .entete, .pied, .recherche { display: none; } body { background: #fff; } }
