/* L'Atelier Strata — univers « établi du maker ».
   Tapis de découpe vert quadrillé + règle graduée en tête de page, papier clair pour la lecture,
   titres Bricolage Grotesque, texte Source Serif 4, étiquettes JetBrains Mono (Bunny Fonts, sans traceur).
   Boutons jaunes à ombre décalée : la couleur « acheter » que tout le monde reconnaît. */
:root {
  --tapis: #1f5c4a;
  --tapis-fonce: #163f33;
  --encre: #16181d;
  --carton: #e9e4d6;
  --jaune: #ffd23f;
  --creme: #fffbea;
  --titre: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}
body { font-size: 19px; }
a { color: var(--tapis); text-underline-offset: 3px; }
h1, h2, h3, .logo, .produit-nom, .choix-nom, .quiz-titre, .carte-nom, .proches h2, .groupe h2, .faq summary { font-family: var(--titre); }
h2 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
h3 { font-weight: 800; }
.meta, .ariane, .produit-cat, .produit-choix, .choix-label, .produit-specs dt, .quiz legend, .carte-label,
.sommaire-lateral p, .volumes-legende, .jauge > span:first-child, .jauge strong, .avertissement, .produit-source,
.barre-choix span, .filtres button, thead th { font-family: var(--mono); }

/* En-tête : barre d'encre, logo en pile de couches jaunes */
.entete { background: var(--encre); border: 0; padding: 14px 0; }
.entete .conteneur, main.conteneur, .pied .conteneur { max-width: 1120px; }
.entete .logo { color: #fff; font-weight: 800; letter-spacing: -.02em; font-size: 22px; }
.logo::before { content: ""; display: inline-block; width: 18px; height: 15px; margin-right: 10px; vertical-align: -1px;
  background: repeating-linear-gradient(to bottom, var(--jaune) 0 3px, transparent 3px 6px); }
.entete nav a { color: #d6d3c8; font-family: var(--mono); font-size: 14px; }
.entete nav a:hover { color: var(--jaune); }

/* Tête de page : tapis de découpe (carreaux de 1 cm, repères de 5 cm, diagonale à 45°) puis règle graduée */
.hero { color: #fff; background-color: var(--tapis);
  background-image:
    linear-gradient(135deg, transparent calc(50% - 1px), rgba(255,255,255,.16) 50%, transparent calc(50% + 1px)),
    linear-gradient(rgba(255,255,255,.17) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.17) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 100% 100%, 60px 60px, 60px 60px, 12px 12px, 12px 12px; }
.hero-in { max-width: 1120px; margin: 0 auto; padding: 20px 16px 36px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em;
  max-width: 17ch; margin: 18px 0 18px; }
.hero .ariane ol { margin: 0; color: rgba(255,255,255,.75); }
.hero .ariane a { color: inherit; }
.hero .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: rgba(255,255,255,.85); margin: 0; }
.hero .meta a { color: #fff; }
.auteur { display: inline-flex; align-items: center; gap: 8px; }
.auteur img { border-radius: 5px; border: 1px solid rgba(255,255,255,.4); }
.regle { height: 18px; background-color: var(--tapis-fonce); background-repeat: repeat-x;
  background-image: linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.95) 1px, transparent 1px);
  background-size: 6px 7px, 60px 14px; }
.hero-intro p { font-size: 20px; max-width: 46ch; }
.hero-intro a { color: var(--jaune); }

/* Accueil : illustration d'une imprimante qui empile ses couches */
.hero-grille { display: grid; gap: 24px; align-items: center; }
.imprimante { width: 100%; max-width: 280px; justify-self: center; }
.couches rect { fill: var(--jaune); stroke: var(--encre); stroke-width: 2; animation: couche 8s infinite both; }
.couches rect:nth-child(2) { animation-delay: .5s; } .couches rect:nth-child(3) { animation-delay: 1s; }
.couches rect:nth-child(4) { animation-delay: 1.5s; } .couches rect:nth-child(5) { animation-delay: 2s; }
.couches rect:nth-child(6) { animation-delay: 2.5s; } .couches rect:nth-child(7) { animation-delay: 3s; }
.couches rect:nth-child(8) { animation-delay: 3.5s; }
.tete { animation: tete 1.2s ease-in-out infinite alternate; }
@keyframes couche { 0%, 4% { opacity: 0; } 8%, 85% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes tete { from { transform: translateX(-34px); } to { transform: translateX(34px); } }
@media (prefers-reduced-motion: reduce) { .couches rect, .tete { animation: none; } }
@media (min-width: 900px) { .hero-grille { grid-template-columns: 1fr 300px; } }

/* Mise en page : lecture à gauche, colonne collante à droite 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: #fff; border: 2px solid var(--encre); border-radius: 12px; padding: 16px; box-shadow: 6px 6px 0 var(--encre); }
.carte-choix p { margin: 0 0 8px; }
.carte-label { display: inline-block; background: var(--jaune); border: 2px solid var(--encre); border-radius: 999px;
  padding: 0 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.carte-nom { font-size: 24px; font-weight: 800; line-height: 1.1; }
.carte-pourqui { font-size: 16px; }
.carte-choix .bouton { display: block; text-align: center; }
.sommaire-lateral p { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #5b5f66; 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 : jaune « acheter », bordure d'encre, ombre décalée qui s'enfonce au clic */
.bouton { background: var(--jaune); color: var(--encre); border: 2px solid var(--encre); border-radius: 8px;
  box-shadow: 3px 3px 0 var(--encre); font-family: var(--titre); font-weight: 800; letter-spacing: .01em;
  transition: transform .08s, box-shadow .08s; }
.bouton:hover { filter: none; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--encre); }
.bouton:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--encre); }

.avertissement { font-size: 13px; background: transparent; border: 1px dashed #b9b29f; border-radius: 6px; color: #4a4d52; }
.sommaire { background: #fff; border: 2px solid var(--encre); border-radius: 10px; }

/* Choix rapide : étiquettes de bobine, numérotées */
.choix { counter-reset: choix; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choix-carte { counter-increment: choix; position: relative; background: #fff; border: 2px solid var(--encre);
  border-radius: 12px; padding: 16px 14px 14px; box-shadow: 4px 4px 0 var(--encre); }
.choix-carte::before { content: counter(choix, decimal-leading-zero); position: absolute; top: 10px; right: 12px;
  font-family: var(--titre); font-weight: 800; font-size: 28px; color: var(--carton); }
.choix-label { color: var(--tapis); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.choix-nom { font-size: 19px; line-height: 1.15; padding-right: 32px; }
.choix-pourqui { font-size: 15px; color: #45484d; }

/* Fiches produit : grosse étiquette numérotée à la couleur du produit, jauges, caractéristiques en carreaux */
.produit { background: #fff; border: 2px solid var(--encre); border-radius: 14px; padding: 24px 20px 18px;
  margin: 40px 0; box-shadow: 6px 6px 0 var(--encre); }
.produit-rang { top: -20px; left: 18px; background: var(--couleur, var(--jaune)); color: #fff; border: 2px solid var(--encre);
  font-family: var(--titre); font-size: 20px; padding: 2px 14px; }
.produit-choix { color: var(--couleur, var(--tapis)); font-size: 12px; letter-spacing: .08em; }
.produit-nom { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.produit-cat { background: var(--encre); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 4px; letter-spacing: .08em; }
.jauge { grid-template-columns: 70px 1fr 84px; }
.jauge > span:first-child { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #5b5f66; }
.jauge-barre { height: 12px; background: var(--carton); border: 1.5px solid var(--encre); }
.jauge-barre span { border-right: 1.5px solid var(--encre); }
.jauge strong { font-size: 13px; }
.produit-specs { gap: 0; border: 1.5px solid var(--encre); border-radius: 8px; overflow: hidden; background: var(--fond); }
.produit-specs div { padding: 8px 10px; border-right: 1px dashed #c9c2ae; border-bottom: 1px dashed #c9c2ae; }
.produit-specs dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #5b5f66; }
.produit-titre { font-family: var(--titre); }
.plus li::marker { color: var(--tapis); }

/* L'avis de Léon : note scotchée sur l'établi */
blockquote { position: relative; background: var(--creme); border: 2px solid var(--encre); border-radius: 4px;
  padding: 20px 20px 16px; margin: 32px 4px; transform: rotate(-.6deg); box-shadow: 4px 4px 0 var(--encre); }
blockquote::before { content: ""; position: absolute; top: -12px; left: calc(50% - 50px); width: 100px; height: 24px;
  background: rgba(255, 210, 63, .8); border: 1px solid rgba(22, 24, 29, .15); transform: rotate(-3deg); }
blockquote strong:first-child { font-family: var(--titre); }

/* Quiz : posé sur le tapis de découpe, une question à la fois */
.quiz { color: #fff; border: 2px solid var(--encre); border-radius: 14px; box-shadow: 6px 6px 0 var(--encre); padding: 20px;
  background-color: var(--tapis);
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 24px 24px; }
.quiz-titre { font-size: 24px; font-weight: 800; }
.quiz-progres { background: rgba(255,255,255,.2); height: 8px; }
.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(255,255,255,.06); border: 2px solid rgba(255,255,255,.35);
  border-radius: 10px; padding: 12px 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-family: var(--titre); font-size: 22px; }
.quiz-resultat a:not(.bouton) { color: var(--jaune); }

/* Tableau comparatif et filtres */
.tableau { border: 2px solid var(--encre); border-radius: 12px; background: #fff; box-shadow: 4px 4px 0 var(--encre); }
thead th { background: var(--encre); color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
tbody tr:hover { background: var(--creme); }
tbody th a { color: var(--encre); font-family: var(--titre); font-weight: 800; }
.filtres button { border: 2px solid var(--encre); color: var(--encre); font-size: 13px; }
.filtres button[aria-pressed="true"] { background: var(--jaune); color: var(--encre); }

/* Schéma des volumes : papier millimétré */
.volumes { background-color: #fff; border: 2px solid var(--encre); border-radius: 12px; padding: 16px;
  background-image: linear-gradient(rgba(31,92,74,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(31,92,74,.08) 1px, transparent 1px);
  background-size: 16px 16px; }
.pastille { border: 1.5px solid var(--encre); }

.faq details { border-bottom: 2px dashed #c9c2ae; }
.proches, .cartes li { background: #fff; border: 2px solid var(--encre); border-radius: 12px; box-shadow: 4px 4px 0 var(--encre); }
.cartes a { font-family: var(--titre); color: var(--encre); }
.barre-choix { background: var(--encre); color: #fff; border: 0; }
.pied { background: var(--encre); color: #bdb9ad; border: 0; }
.pied .mention { color: #fff; }
