/* Foulée Douce — univers « le carnet de pas ».
   Tête de page : la bande du tapis vue de dessus (lattes crantées entre deux rails sauge), traces de pas en pointillé,
   puis un compteur mécanique (pas, km/h, inclinaison). Fond : papier de carnet crème à petits points.
   Fiches numérotées comme des bornes kilométriques (tête terracotta), « L'avis de Margot » en post-it scotché.
   Titres Fraunces, texte Source Sans 3, chiffres JetBrains Mono (Bunny Fonts). Boutons jaunes « acheter ». */
:root {
  --creme: #f6f1e4;
  --creme-2: #e9e2cf;
  --papier: #fdfaf2;
  --graphite: #26282a;
  --graphite-2: #35383b;
  --gris: #565a5d;
  --sauge: #8fae8b;
  --sauge-pale: #dfe9d9;
  --sauge-fonce: #3b5a44;
  --terracotta: #c8693f;
  --terracotta-texte: #9b4825;
  --jaune: #ffd23f;
  --titre: 'Fraunces', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --points: radial-gradient(circle, rgba(38,40,42,.13) 1px, transparent 1.3px);
  --pas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='220' viewBox='0 0 160 220'%3E%3Cg fill='none' stroke='%23fdfaf2' stroke-opacity='.22' stroke-width='1.6' stroke-dasharray='3 4'%3E%3Cpath transform='rotate(-10 44 64)' d='M44 30c10 0 14 10 13 22s-5 20-13 20-12-9-12-21 3-21 12-21zM43 80c6 0 9 4 9 9s-4 8-9 8-9-3-9-8 3-9 9-9z'/%3E%3Cpath transform='rotate(10 114 174)' d='M114 140c10 0 14 10 13 22s-5 20-13 20-12-9-12-21 3-21 12-21zM113 190c6 0 9 4 9 9s-4 8-9 8-9-3-9-8 3-9 9-9z'/%3E%3C/g%3E%3C/svg%3E");
}

body { font-size: 19px; line-height: 1.6; background-color: var(--creme); background-image: var(--points); background-size: 22px 22px; color: var(--graphite); }
a { color: var(--sauge-fonce); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--terracotta-texte); }
h1, h2, h3, .logo, .produit-nom, .choix-nom, .quiz-titre, .quiz-verdict, .carte-nom, .proches h2, .groupe h2, .faq summary, .cartes a { font-family: var(--titre); font-weight: 600; font-optical-sizing: auto; }
h2 { font-size: 31px; letter-spacing: -.01em; line-height: 1.16; }
h3 { font-size: 23px; }
.meta, .ariane, .produit-cat, .produit-choix, .choix-label, .produit-specs dt, .quiz legend, .carte-label, .sommaire-lateral p,
.avertissement, .produit-source, .barre-choix span, .filtres button, thead th, .volumes-legende, .jauge > span:first-child, .jauge strong, .compteur { font-family: var(--mono); }
.cartes p, .produit-source { color: var(--gris); }

/* En-tête : le capot graphite du tapis, logo précédé d'une empreinte de pas */
.entete { background: var(--graphite); border: 0; padding: 14px 0; border-bottom: 4px solid var(--sauge); }
.entete .conteneur, main.conteneur, .pied .conteneur { max-width: 1120px; }
.entete .logo { color: var(--papier); font-size: 24px; letter-spacing: -.01em; }
.logo::before { content: ""; display: inline-block; width: 12px; height: 19px; margin-right: 10px; vertical-align: -2px;
  background: radial-gradient(ellipse 5px 7px at 50% 35%, var(--terracotta) 98%, transparent), radial-gradient(ellipse 4px 3.4px at 50% 86%, var(--terracotta) 98%, transparent); }
.entete nav a { color: #dfe9d9; font-family: var(--mono); font-size: 14px; }
.entete nav a:hover { color: var(--jaune); }

/* Tête de page : la bande vue de dessus, lattes qui défilent entre deux rails, traces de pas */
.hero { color: var(--papier); background-color: var(--graphite-2); border-left: 0; position: relative;
  background-image: var(--pas), repeating-linear-gradient(180deg, var(--graphite-2) 0 12px, #2e3134 12px 14px);
  background-size: 160px 220px, auto; background-position: right 8% top 0, 0 0;
  box-shadow: inset 14px 0 0 var(--sauge-fonce), inset -14px 0 0 var(--sauge-fonce); animation: bande 6s linear infinite; }
@keyframes bande { from { background-position: right 8% top 0, 0 0; } to { background-position: right 8% top 220px, 0 28px; } }
.hero-in { max-width: 1120px; margin: 0 auto; padding: 20px 30px 32px; }
.hero h1 { font-size: clamp(32px, 5.6vw, 54px); line-height: 1.08; max-width: 19ch; margin: 18px 0; }
.hero .ariane ol { margin: 0; color: #e9eee5; }
.hero .ariane a, .hero .meta a { color: inherit; }
.hero .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; color: #e9eee5; }
.auteur { display: inline-flex; align-items: center; gap: 8px; }
.auteur img { border-radius: 50%; box-shadow: 0 0 0 1.5px var(--papier); }
.hero-intro p { font-size: 20px; max-width: 46ch; }
.hero-intro a { color: var(--jaune); }
.hero-intro a:hover { color: #fff; }

/* Compteur mécanique sous la tête de page : chiffres en cases, comme sur la console */
.compteur { background: var(--creme-2); border-bottom: 2px solid var(--graphite); color: var(--graphite); font-size: 12px; }
.compteur-in { max-width: 1120px; margin: 0 auto; padding: 8px 16px; display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.compteur b { display: inline-flex; gap: 2px; margin-right: 6px; font-weight: 500; }
.compteur i { font-style: normal; display: inline-block; min-width: 13px; text-align: center; padding: 1px 2px; background: var(--graphite); color: var(--papier);
  border-radius: 2px; box-shadow: inset 0 -6px 0 rgba(255,255,255,.07); font-size: 13px; }
.compteur i.rouge { background: var(--terracotta-texte); }

/* Accueil et rubriques : la pièce de 3 × 3 m, tapis déplié, traces de pas qui avancent */
.hero-grille { display: grid; gap: 24px; align-items: center; }
.plan { width: 100%; max-width: 340px; justify-self: center; filter: drop-shadow(5px 6px 0 rgba(0,0,0,.3)); transform: rotate(-1.2deg); }
.pl-feuille { fill: var(--papier); stroke: var(--graphite); stroke-width: 1.5; }
.pl-points { fill: url(#pl-grille); }
.pl-piece { fill: none; stroke: var(--graphite); stroke-width: 4; }
.pl-porte { fill: none; stroke: var(--graphite); stroke-width: 1.2; stroke-dasharray: 3 3; }
.pl-plie { fill: var(--sauge-pale); stroke: var(--sauge-fonce); stroke-width: 1.4; stroke-dasharray: 5 3; }
.pl-chassis { fill: var(--graphite); }
.pl-bande { fill: var(--graphite-2); }
.pl-lattes { fill: none; stroke: #4a4e52; stroke-width: 2; animation: lattes 1.2s linear infinite; }
.pl-pas { fill: var(--terracotta); }
.pl-pas g { opacity: 0; animation: pas 2.4s linear infinite; }
.pl-pas g:nth-child(2) { animation-delay: .6s; } .pl-pas g:nth-child(3) { animation-delay: 1.2s; } .pl-pas g:nth-child(4) { animation-delay: 1.8s; }
.pl-console { fill: var(--sauge-fonce); }
.pl-ecran { fill: var(--jaune); }
.pl-cote, .pl-txt { font-family: var(--mono); font-size: 10px; fill: var(--graphite); }
.pl-txt-plie { fill: var(--sauge-fonce); }
.pl-fleche { fill: none; stroke: var(--graphite); stroke-width: 1; }
@keyframes lattes { from { transform: translateY(0); } to { transform: translateY(12px); } }
@keyframes pas { 0% { opacity: 0; transform: translateY(-30px); } 20% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(60px); } }
@media (prefers-reduced-motion: reduce) {
  .hero, .pl-lattes, .pl-pas g { animation: none; }
  .pl-pas g { opacity: 1; }
}
@media (min-width: 900px) { .hero-grille { grid-template-columns: 1fr 340px; } }

/* Mise en page : lecture + colonne collante sur grand écran */
.mise-en-page { display: grid; gap: 48px; margin-top: 8px; }
.mise-en-page > article { min-width: 0; }
.colonne { display: none; }
@media (min-width: 1040px) {
  .mise-en-page { grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; }
  .colonne { display: block; }
  .colonne-in { position: sticky; top: 24px; display: grid; gap: 24px; padding-top: 24px; }
  .mobile-seul { display: none; }
}
.carte-choix { background: var(--papier); border: 1.5px solid var(--graphite); border-radius: 6px; padding: 16px; box-shadow: 5px 5px 0 var(--sauge); }
.carte-choix p { margin: 0 0 8px; }
.carte-label { display: inline-block; color: var(--terracotta-texte); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; }
.carte-nom { font-size: 24px; line-height: 1.12; }
.carte-pourqui { font-size: 16px; color: var(--gris); }
.carte-choix .bouton { display: block; text-align: center; }
.sommaire-lateral p { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--gris); margin: 0 0 8px; }
.sommaire-lateral ol { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.5; }
.sommaire-lateral li { margin-bottom: 6px; }

/* Boutons jaunes : bordure graphite, ombre décalée qui s'enfonce au clic */
.bouton { background: var(--jaune); color: var(--graphite); border: 2px solid var(--graphite); border-radius: 6px; box-shadow: 3px 3px 0 var(--graphite);
  font-family: var(--titre); font-weight: 600; letter-spacing: .01em; transition: transform .08s, box-shadow .08s; }
.bouton:hover { filter: none; color: var(--graphite); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--graphite); }
.bouton:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--graphite); }
@media (prefers-reduced-motion: reduce) { .bouton { transition: none; } }

.avertissement { font-size: 13px; background: transparent; border: 1px dashed var(--gris); border-radius: 4px; color: var(--gris); }
.sommaire { background: var(--papier); border: 1.5px solid var(--graphite); border-radius: 6px; }

/* Choix rapide : des pages de carnet */
.choix { gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choix-carte { background: var(--papier); border: 1.5px solid var(--graphite); border-radius: 6px; padding: 14px; border-top: 6px solid var(--sauge); }
.choix-label { color: var(--terracotta-texte); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.choix-nom { font-size: 19px; line-height: 1.15; }
.choix-nom a { color: var(--graphite); }
.choix-pourqui { font-size: 15px; color: var(--gris); }

/* Fiches produit : numéro sur une borne kilométrique (tête terracotta arrondie) */
.produit { background: var(--papier); border: 1.5px solid var(--graphite); border-radius: 6px; padding: 34px 20px 18px; margin: 52px 0; box-shadow: 6px 6px 0 var(--creme-2); }
.produit-rang { top: -26px; left: 18px; width: 42px; height: 50px; padding: 0 0 5px; box-sizing: border-box; display: grid; place-items: end center;
  background: linear-gradient(to bottom, var(--terracotta) 0 40%, var(--papier) 40%); color: var(--graphite); border: 1.5px solid var(--graphite);
  border-radius: 21px 21px 3px 3px; font-family: var(--mono); font-weight: 500; font-size: 16px; }
.produit-choix { color: var(--terracotta-texte); font-size: 12px; letter-spacing: .1em; }
.produit-nom { font-size: 28px; line-height: 1.12; }
.produit-cat { background: var(--sauge-pale); color: var(--graphite); font-size: 11px; padding: 3px 9px; border-radius: 3px; letter-spacing: .06em; }
.jauge > span:first-child { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); }
.jauge-barre { background: var(--creme-2); border: 1px solid var(--graphite); }
.jauge-barre span { background: repeating-linear-gradient(90deg, var(--sauge-fonce) 0 6px, var(--sauge) 6px 8px); }
.produit-specs { gap: 0; background: transparent; margin: 14px 0; border-top: 1px solid var(--graphite); }
.produit-specs div { padding: 8px 10px; border-bottom: 1px dashed #bdb39a; }
.produit-specs dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); }
.plus li::marker { color: var(--sauge-fonce); }
.moins li::marker { color: var(--terracotta-texte); }

/* L'avis de Margot : un post-it de carnet, scotché et légèrement de travers */
blockquote { position: relative; background: var(--sauge-pale); border: 0; border-radius: 2px; padding: 26px 22px 16px; margin: 36px 4px;
  font-size: 19px; transform: rotate(-.6deg); box-shadow: 0 1px 0 rgba(0,0,0,.08), 3px 5px 0 rgba(38,40,42,.12); }
blockquote::before { content: ""; position: absolute; left: 50%; top: -10px; width: 92px; height: 22px; margin-left: -46px; transform: rotate(2deg);
  background: rgba(253,250,242,.75); border: 1px solid rgba(38,40,42,.12); }
blockquote strong:first-child { font-family: var(--titre); font-weight: 600; color: var(--sauge-fonce); }

/* Quiz : sur la bande du tapis, une question à la fois */
.quiz { color: var(--papier); border: 1.5px solid var(--graphite); border-radius: 6px; padding: 22px; background-color: var(--graphite-2);
  background-image: repeating-linear-gradient(180deg, var(--graphite-2) 0 12px, #2e3134 12px 14px); box-shadow: inset 8px 0 0 var(--sauge-fonce), inset -8px 0 0 var(--sauge-fonce); }
.quiz-titre { font-size: 24px; }
.quiz-progres { background: rgba(255,255,255,.2); height: 6px; }
.quiz-progres span { background: var(--jaune); }
.quiz legend { color: var(--jaune); font-size: 13px; margin-bottom: 10px; }
.quiz label { display: flex; gap: 12px; align-items: center; background: rgba(0,0,0,.25); border: 1.5px solid rgba(255,255,255,.4); border-radius: 6px;
  padding: 10px 14px; margin-bottom: 10px; font-size: 17px; }
.quiz label:hover { border-color: var(--jaune); }
.quiz input { accent-color: var(--jaune); width: 18px; height: 18px; flex-shrink: 0; }
.quiz-resultat { border-top: 0; margin-top: 0; padding-top: 0; }
.quiz-verdict { font-size: 22px; }
.quiz-resultat a:not(.bouton) { color: var(--jaune); }

/* Tableau et filtres : le relevé du carnet */
.tableau { border: 1.5px solid var(--graphite); border-radius: 6px; background: var(--papier); }
thead th { background: var(--graphite); color: var(--papier); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
tbody tr { border-color: var(--creme-2); }
tbody tr:hover { background: var(--creme); }
tbody td { font-variant-numeric: tabular-nums; }
tbody th a { color: var(--graphite); font-family: var(--titre); font-weight: 600; }
.filtres button { background: var(--papier); border: 1.5px solid var(--graphite); color: var(--graphite); font-size: 13px; }
.filtres button[aria-pressed="true"] { background: var(--jaune); color: var(--graphite); }

/* Schémas à l'échelle : plan de la pièce sur papier quadrillé */
.volumes { background-color: var(--papier); border: 1.5px solid var(--graphite); border-radius: 6px; padding: 16px;
  background-image: linear-gradient(rgba(59,90,68,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(59,90,68,.1) 1px, transparent 1px);
  background-size: 20px 20px; }

.faq details { border-bottom: 1px dashed var(--gris); }
.proches, .cartes li { background: var(--papier); border: 1.5px solid var(--graphite); border-radius: 6px; }
.cartes li { box-shadow: 4px 4px 0 var(--creme-2); }
.cartes a { color: var(--graphite); }
.groupe h2 a { color: var(--graphite); text-decoration-color: var(--terracotta); }
.barre-choix { background: var(--graphite); color: var(--papier); border: 0; border-top: 3px solid var(--sauge); }
.pied { background: var(--graphite); color: #d9ddd6; border: 0; border-top: 4px solid var(--sauge); }
.pied .mention { color: #fff; }
.pied a { color: #fff; }

/* Petits écrans : rails plus fins, compteur resserré */
@media (max-width: 600px) {
  .hero { box-shadow: inset 8px 0 0 var(--sauge-fonce), inset -8px 0 0 var(--sauge-fonce); }
  .hero-in { padding: 16px 22px 26px; }
  .compteur-in { gap: 6px 14px; }
  .choix { grid-template-columns: minmax(0, 1fr); }
}

/* Outils interactifs (agent outil) : « calories » (équation ACSM) et « empreinte » (tient-il chez moi ?) */
.outil-calories, .outil-empreinte { background: var(--papier); border: 1.5px solid var(--graphite); border-radius: 6px; padding: 18px; margin: 32px 0;
  box-shadow: 6px 6px 0 var(--creme-2); display: grid; gap: 16px; }
.oc-form, .oe-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .oc-form { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.oc-champ, .oe-champ { display: grid; gap: 4px; min-width: 0; }
.oc-champ > span, .oe-champ > span, .oc-sous-titre { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); }
.oc-champ input, .oe-champ input { width: 100%; box-sizing: border-box; font: 500 20px var(--mono); padding: 8px 10px; border: 1.5px solid var(--graphite);
  border-radius: 4px; background: #fff; color: var(--graphite); }
.oc-champ input:focus-visible, .oe-champ input:focus-visible { outline: 3px solid var(--sauge-fonce); outline-offset: 1px; }
.oc-resultat p, .oe-resultat p { margin: 0 0 10px; }
.oc-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.oc-kcal { font: 500 40px/1 var(--mono); background: var(--graphite); color: var(--jaune); padding: 6px 12px; border-radius: 4px; letter-spacing: .04em; }
.oc-total > span { font-family: var(--mono); font-size: 15px; color: var(--gris); }
.oc-detail, .oc-titre-tapis, .oe-bilan { font-size: 17px; }
.oc-alerte { font-size: 15px; color: var(--terracotta-texte); border-left: 4px solid var(--terracotta); padding-left: 10px; }
.oc-barres, .oc-tapis, .oe-liste { list-style: none; margin: 0 0 14px; padding: 0; }
.oc-barres li { display: grid; grid-template-columns: 92px minmax(0, 1fr) 82px; gap: 10px; align-items: center; font-family: var(--mono); font-size: 13px; margin-bottom: 6px; }
.oc-barres strong { font-weight: 500; text-align: right; }
.oc-barre { height: 14px; background: var(--creme-2); border: 1px solid var(--graphite); border-radius: 2px; overflow: hidden; }
.oc-barre span { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--sauge-fonce) 0 6px, var(--sauge) 6px 8px); }
.oc-vous .oc-barre span { background: var(--terracotta); }
.oc-vous { font-weight: 500; }
.oc-un { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 0; border-bottom: 1px dashed #bdb39a; }
.oc-nom { font-family: var(--titre); font-weight: 600; flex: 1 1 180px; }
.oc-capa { font-family: var(--mono); font-size: 13px; color: var(--gris); flex: 1 1 200px; }
.oc-note, .oe-note, .oe-sans { font-size: 15px; color: var(--gris); border-top: 1px dashed var(--gris); padding-top: 10px; }
.oe-legende { font-family: var(--mono); font-size: 12px; color: var(--gris); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.oe-l { display: inline-block; width: 16px; height: 10px; border-radius: 1px; vertical-align: middle; }
.oe-l-deplie, .oe-deplie { fill: var(--graphite-2); background: var(--graphite-2); }
.oe-l-deg { background: repeating-linear-gradient(45deg, var(--terracotta) 0 2px, #f3d9cb 2px 5px); }
.oe-deg { fill: #f3d9cb; stroke: var(--terracotta); stroke-width: 1; stroke-dasharray: 3 2; }
.oe-l-plie { background: var(--sauge-pale); border: 1.5px dashed var(--sauge-fonce); box-sizing: border-box; }
.oe-plie { fill: var(--sauge-pale); fill-opacity: .9; stroke: var(--sauge-fonce); stroke-width: 1.4; stroke-dasharray: 4 2; }
.oe-l-piece { border: 2px solid var(--graphite); box-sizing: border-box; }
.oe-piece { fill: #fff; stroke: var(--graphite); stroke-width: 2; }
.oe-non .oe-piece { stroke: var(--terracotta-texte); }
.oe-liste { display: flex; flex-direction: column; }
.oe-tapis { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px dashed #bdb39a; }
.oe-non { order: 1; }
.oe-plan { width: 100%; max-width: 260px; height: auto; display: block; }
.oe-nom { font-family: var(--titre); font-weight: 600; font-size: 19px; }
.oe-badge { display: inline-block; font-family: var(--mono); font-weight: 500; font-size: 12px; padding: 2px 8px; border-radius: 3px; background: var(--sauge-pale);
  color: var(--sauge-fonce); border: 1px solid var(--sauge-fonce); vertical-align: 2px; margin-left: 4px; }
.oe-non .oe-badge { background: #fbe9df; color: var(--terracotta-texte); border-color: var(--terracotta-texte); }
.oe-dims { font-size: 15px; color: var(--gris); }
@media (min-width: 640px) { .oe-tapis { grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: center; } }
