/*
Theme Name: Scie à onglet
Description: Thème de scie-a-onglet.fr, écrit à la main. Aucune extension requise sauf Rank Math.
Author: Clément Quatravaux
Version: 2.0
Text Domain: scie
*/

/* ==========================================================================
   Charte
   Les couleurs du site : jaune #FFDD1A, brun presque noir #1E1A00, gris #656565,
   crème #FFFCEC. Aucun coin arrondi : la signature, c'est l'angle à 45° du logo
   (coins coupés des boutons, triangles jaunes des cartes). Archivo pour le texte,
   une mono technique pour les cotes, comme sur un plan.
   Le responsive est tout en bas : écrit plus haut, il serait écrasé.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2?v=3") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 112%;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("fonts/plexmono.woff2?v=4") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --jaune: #ffdd1a;
  --jaune-fonce: #e9c600;
  --encre: #1e1a00;
  --encre-2: #3f3b25;
  --gris: #656565;
  --creme: #fffcec;
  --blanc: #ffffff;
  --fond: #f5f4ee;
  --trait: #e3dfcf;
  --trait-2: #c9c2a6;
  --bois: #ead7b0;
  --bois-2: #cfb07c;
  --ok: #1d7446;
  --ko: #b3261e;
  --attente: #c69200;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --large: 1200px;
  --colonne: 720px;
  --gouttiere: 24px;
  --coin: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--jaune-fonce); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }
button, input, select { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
small { font-size: .8em; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 750; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 3.6vw, 3rem); font-stretch: 104%; }
h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); }
h3 { font-size: 1.12rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aller-au-contenu { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--encre); color: #fff; }
.aller-au-contenu:focus { top: 8px; }
.cadre { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 var(--gouttiere); }
.muet { color: var(--gris); }
.nc { color: var(--gris); font-family: "Archivo", sans-serif; font-size: .86em; font-weight: 400; }

/* Le libellé au-dessus d'un titre : capitales espacées, marqué d'un petit triangle jaune. */
.surtitre {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 .8rem;
  font-size: .72rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--encre);
}
.surtitre::before { content: ""; width: 11px; height: 11px; flex: none; background: var(--jaune); clip-path: polygon(0 0, 100% 0, 0 100%); }
.surtitre a { text-decoration: none; }
.chapeau { max-width: 62ch; font-size: 1.12rem; color: var(--encre-2); }
.chapeau p:last-child { margin-bottom: 0; }

.icone { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter; }

/* La tuile jaune qui porte une icône : besoins, outils, sections. */
.tuile { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; background: var(--jaune); color: var(--encre); }
.tuile .icone { width: 24px; height: 24px; }
.tuile-mini { width: 22px; height: 22px; }
.tuile-mini .icone { width: 14px; height: 14px; stroke-width: 2; }
.tuile-petite { width: 34px; height: 34px; }
.tuile-petite .icone { width: 19px; height: 19px; }
.tuile-grande { width: 56px; height: 56px; }
.tuile-grande .icone { width: 30px; height: 30px; stroke-width: 1.6; }
.tuile-titre { display: inline-grid; width: 34px; height: 34px; margin-right: 12px; vertical-align: -5px; }
.tuile-titre .icone { width: 19px; height: 19px; }

/* --------------------------------------------------------------------------
   Boutons : aplats francs, coin bas-droit coupé à 45°
   -------------------------------------------------------------------------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; flex-wrap: nowrap;
  padding: .95em 1.55em; border: 0; background: var(--encre); color: #fff;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--coin)), calc(100% - var(--coin)) 100%, 0 100%);
  transition: background-color .15s, color .15s, transform .15s;
}
.bouton:hover { text-decoration: none; }
.bouton:active { transform: translateY(1px); }
.bouton .icone { width: 1.15em; height: 1.15em; stroke-width: 2; }
.bouton-signal, .bouton-amazon { background: var(--jaune); color: var(--encre); }
.bouton-signal:hover, .bouton-amazon:hover { background: var(--jaune-fonce); color: var(--encre); }
.bouton-fonce { background: var(--encre); color: #fff; }
.bouton-fonce:hover { background: #000; color: var(--jaune); }
.bouton-contour { background: var(--blanc); color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--encre); clip-path: none; }
.bouton-contour:hover { background: var(--encre); color: #fff; }
.bouton-plein { width: 100%; }
.bouton-petit { padding: .65em 1.05em; font-size: .72rem; --coin: 8px; }
.bouton-texte { padding: .4em 0; background: none; border: 0; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; color: var(--encre-2); }
.bouton-icone { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; background: none; border: 0; }
.bouton-icone:hover { background: var(--fond); }
.bouton-icone .icone { width: 22px; height: 22px; }
.boutons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

.lien-fleche {
  display: inline-flex; align-items: center; gap: .45em; padding-bottom: 2px;
  border-bottom: 2px solid var(--jaune); font-weight: 700; text-decoration: none; color: var(--encre);
}
.lien-fleche .icone { width: 1em; height: 1em; stroke-width: 2; transition: transform .15s; }
.lien-fleche:hover { border-bottom-color: var(--encre); }
.lien-fleche:hover .icone { transform: translateX(3px); }

.bouton-comparer {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; background: var(--blanc);
  border: 1px solid var(--trait-2); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.bouton-comparer:hover { border-color: var(--encre); }
.bouton-comparer .icone { width: 15px; height: 15px; }
.bouton-comparer[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: #fff; }
.bouton-comparer[aria-pressed="true"] span::after { content: " ✓"; }

/* --------------------------------------------------------------------------
   En-tête : bandeau, logo et recherche, puis les menus
   -------------------------------------------------------------------------- */

.bandeau { margin: 0; background: var(--encre); text-align: center; }
.bandeau a { display: block; padding: 8px 16px; color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.bandeau a:hover { color: var(--jaune); }

.entete { position: relative; z-index: 40; background: var(--blanc); border-bottom: 1.5px solid var(--encre); }
.entete-haut { display: flex; align-items: center; gap: 28px; max-width: var(--large); margin: 0 auto; padding: 18px var(--gouttiere) 12px; }
.logo { display: block; flex: none; }
.logo-image { width: auto; height: 33px; }
.faux-champ {
  flex: 1; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 18px;
  background: var(--fond); border: 1px solid var(--trait); color: var(--gris); font-size: .95rem; text-align: left; cursor: text;
}
.faux-champ:hover { border-color: var(--encre); }
.faux-champ .icone { color: var(--encre); }
.bouton-location { flex: none; }
.entete-actions { display: flex; align-items: center; gap: 6px; }
.bouton-loupe, .bouton-menu { display: none; }
.pastille-comparaison {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  background: var(--encre); color: #fff; font-family: var(--mono); font-size: .85rem; text-decoration: none;
}
.pastille-comparaison:hover { background: var(--jaune); color: var(--encre); }

.nav-principale { max-width: var(--large); margin: 0 auto; padding: 0 var(--gouttiere); }
.nav-principale > ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-principale > ul > li > a, .nav-principale summary {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px 13px; list-style: none; cursor: pointer;
  font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; text-decoration: none;
}
.nav-principale summary::-webkit-details-marker { display: none; }
.nav-principale summary::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: rotate(45deg);
}
.nav-principale details[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.nav-principale > ul > li > a:hover, .nav-principale summary:hover, .nav-principale details[open] summary,
.nav-principale a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--jaune); }
.a-panneau { position: relative; }
.panneau {
  position: absolute; top: 100%; left: 0; z-index: 50; min-width: 280px; padding: 18px 22px;
  background: var(--blanc); border: 1.5px solid var(--encre); box-shadow: 6px 6px 0 var(--jaune);
}
.panneau ul { margin: 0; padding: 0; list-style: none; }
.panneau li a { display: block; padding: 5px 0; font-size: .95rem; text-decoration: none; }
.panneau li a:hover { text-decoration: underline; }
.panneau p { margin: 12px 0 0; }
.panneau-vedettes { margin-bottom: 10px !important; padding-bottom: 10px !important; border-bottom: 1px solid var(--trait); }
.panneau-vedettes a { display: flex !important; align-items: center; gap: 8px; font-weight: 700; }
.panneau-vedettes .icone { width: 16px; height: 16px; padding: 3px; box-sizing: content-box; background: var(--jaune); }
.colonnes-2 { columns: 2; column-gap: 28px; }

/* Les logos des marques : toujours dans un cadre blanc, à hauteur égale, pour que les couleurs des
 * marques cohabitent avec la charte. */
/* La page « meilleure scie à onglet » : un bloc par usage, la scie retenue et les deux suivantes. */
.sommaire-meilleure { margin: 0; padding: 6px 16px 10px; list-style: none; counter-reset: choix; }
.sommaire-meilleure li { counter-increment: choix; border-bottom: 1px dashed var(--trait); }
.sommaire-meilleure a { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 8px; padding: 7px 0; text-decoration: none; }
.sommaire-meilleure a::before { content: counter(choix, decimal-leading-zero); grid-row: 1 / span 2; font-family: var(--mono); font-size: .74rem; color: var(--gris); padding-top: 2px; }
.sommaire-meilleure span { font-size: .74rem; color: var(--gris); }
.sommaire-meilleure strong { font-size: .92rem; line-height: 1.25; }
.sommaire-meilleure a:hover strong { text-decoration: underline; }
.choix { padding: 46px 0 38px; border-bottom: 1px solid var(--trait); scroll-margin-top: 20px; }
.choix-tete { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.choix-tete h2 { display: flex; align-items: center; margin: 0; }
.choix-corps { display: grid; grid-template-columns: 280px minmax(0, 1fr) 250px; gap: 34px; align-items: start; }
.choix-photo { display: block; padding: 18px; background: var(--fond); }
.choix-photo img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.choix-nom { margin: 0 0 6px; font-size: 1.5rem; }
.choix-nom a { text-decoration: none; }
.choix-nom a:hover { text-decoration: underline; }
.choix-raison { margin: 0 0 16px; font-family: var(--mono); font-size: .92rem; }
.choix-cotes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin: 0 0 16px; border-top: 1.5px solid var(--encre); }
.choix-cotes div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--trait); }
.choix-cotes dt { font-size: .86rem; color: var(--gris); }
.choix-cotes dd { margin: 0; font-family: var(--mono); font-size: .86rem; }
.choix-regle { display: flex; gap: 10px; margin: 0; padding: 12px 14px; background: var(--creme); border-left: 4px solid var(--jaune); font-size: .88rem; color: var(--encre-2); }
.choix-regle .icone { margin-top: 3px; }
.choix-achat { display: grid; gap: 10px; padding: 18px; border: 1.5px solid var(--encre); box-shadow: 8px 8px 0 var(--jaune); }
.choix-achat .bouton { font-size: .76rem; letter-spacing: .06em; }
.choix-suivantes { margin-top: 26px; }
.choix-suivantes .memo-titre { margin: 0 0 8px; }
.choix-suivantes ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.choix-suivantes a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border: 1px solid var(--trait); text-decoration: none; }
.choix-suivantes a:hover { border-color: var(--encre); }
.choix-suivantes img { width: 56px; height: 56px; object-fit: contain; background: var(--fond); mix-blend-mode: multiply; }
.choix-suivantes strong { display: block; line-height: 1.2; }
.choix-suivantes small { display: block; font-family: var(--mono); font-size: .74rem; color: var(--gris); }
.choix-suivantes em { font-style: normal; font-weight: 800; white-space: nowrap; }

/* La page des prix : des tableaux recalculés chaque nuit. */
.bloc-prix { margin-bottom: 52px; }
.bloc-prix > .chapeau { margin-bottom: 18px; font-size: 1rem; }
.tableau-prix { border-top: 1.5px solid var(--encre); }
.tableau-prix th, .tableau-prix td { padding: 11px 12px; border-bottom: 1px solid var(--trait); text-align: left; white-space: nowrap; }
.tableau-prix thead th { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.tableau-prix td { font-family: var(--mono); font-size: .9rem; text-align: right; }
.tableau-prix thead th:not(:first-child) { text-align: right; }
.tableau-prix tbody th { font-weight: 650; }
.tableau-prix td strong { font-weight: 500; background: var(--jaune); padding: 1px 4px; }
.tableau-prix tbody tr:hover { background: var(--creme); }
.grille-budgets-prix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.budget-prix { padding: 18px; border: 1px solid var(--trait); border-top: 3px solid var(--encre); }
.budget-prix h3 { margin-bottom: 2px; }
.budget-prix dl { margin: 12px 0 14px; }
.budget-prix dl div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--trait); font-size: .86rem; }
.budget-prix dd { margin: 0; font-family: var(--mono); text-align: right; }
.liens-prix { display: flex; flex-wrap: wrap; gap: 12px; }

.grille-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.grille-logos a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; height: 100%; min-height: 86px; padding: 14px 10px 10px; background: var(--blanc); border: 1px solid var(--trait); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.grille-logos a:hover { border-color: var(--encre); box-shadow: 4px 4px 0 var(--jaune); text-decoration: none; }
.logo-marque { display: block; max-width: 100%; height: auto; object-fit: contain; }
.logo-marque-texte { display: inline-grid; max-width: 100%; overflow: hidden; text-overflow: ellipsis; place-items: center; height: var(--h); padding: 0 .6em; border: 1.5px solid var(--encre); font-size: calc(var(--h) * .46); font-weight: 800; letter-spacing: .08em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.logo-legende { font-size: .74rem; font-weight: 650; line-height: 1.2; text-align: center; color: var(--encre-2); }
.logo-legende small { margin-left: 2px; font-family: var(--mono); font-size: .9em; color: var(--gris); }
.panneau .grille-logos-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 600px; gap: 6px; }
.panneau .grille-logos-menu a, .tiroir .grille-logos a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 70px; padding: 10px 8px 8px; font-size: inherit; }
.panneau .grille-logos-menu a:hover { text-decoration: none; }
.grille-logos-tiroir { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 14px; }
.grille-logos-tiroir a { min-height: 64px; padding: 10px 6px 8px; }
.grille-logos-accueil { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.grille-logos-page { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-bottom: 40px; }
.grille-logos-page a { min-height: 104px; }
.grille-logos-voisins { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.guide-logos { margin: 0 0 30px; }
.grille-logos-guide { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.grille-logos-guide a { min-height: 70px; padding: 10px 6px 8px; }
.grille-logos-voisins a { min-height: 60px; padding: 10px; }
.tuile-logo { display: inline-grid; place-items: center; flex: none; min-width: 56px; height: 56px; padding: 0 12px; background: var(--blanc); border: 1.5px solid var(--encre); box-shadow: 4px 4px 0 var(--jaune); }
.tuile-logo .logo-marque { max-height: 34px; max-width: 150px; }
.fiche-marque { display: block; width: fit-content; margin: 0 0 14px; }
.fiche-marque .logo-marque { max-height: 30px; }
.marque-ligne { display: flex; align-items: center; gap: 14px; }
.marque-ligne-logo { display: flex; justify-content: flex-start; width: 88px; flex: none; }
.marque-ligne-logo .logo-marque { max-height: 20px; }

.regle-graduee {
  height: 14px;
  background:
    repeating-linear-gradient(90deg, var(--encre) 0 1.5px, transparent 1.5px 50px) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--encre) 0 1px, transparent 1px 10px) 0 0 / 100% 7px no-repeat;
}

/* Tiroir du menu au téléphone. */
.tiroir { position: fixed; inset: 0; z-index: 60; background: rgba(30, 26, 0, .5); }
.tiroir-dedans { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); padding: 18px 24px 40px; overflow-y: auto; background: var(--blanc); border-left: 4px solid var(--jaune); }
.tiroir-fermer { margin-left: auto; }
.tiroir ul { margin: 0; padding: 0; list-style: none; }
.tiroir-principal { margin: 8px 0 18px !important; }
.tiroir-principal a { display: block; padding: 12px 0; border-bottom: 1px solid var(--trait); font-size: 1.2rem; font-weight: 750; text-decoration: none; }
.tiroir details { border-bottom: 1px solid var(--trait); }
.tiroir summary { padding: 14px 0; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.tiroir details li a { display: block; padding: 6px 0; text-decoration: none; }
.tiroir details ul { padding-bottom: 14px; }

/* Fil d'Ariane. */
.fil { padding: 18px 0 6px; font-size: .84rem; color: var(--gris); }
.fil ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.fil li { display: inline-flex; align-items: center; }
.fil li + li::before { content: "/"; margin: 0 10px; color: var(--trait-2); }
.fil a { text-decoration: none; }
.fil a:hover { text-decoration: underline; }
.fil [aria-current] { color: var(--encre-2); }

/* --------------------------------------------------------------------------
   Accueil
   -------------------------------------------------------------------------- */

.accueil-tete { background: var(--jaune); }
.accueil-tete-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 60px; }
.accueil-tete .surtitre::before { background: var(--encre); }
.accueil-tete h1 { margin-bottom: .4em; font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 800; font-stretch: 106%; line-height: .98; letter-spacing: -.04em; }
.accueil-promesse { max-width: 50ch; margin-bottom: 1.8em; font-size: 1.16rem; color: var(--encre-2); }
.accueil-faits { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 34px 0 0; padding: 18px 0 0; border-top: 1.5px solid var(--encre); list-style: none; font-size: .92rem; }
.accueil-faits li { display: inline-flex; align-items: center; gap: 8px; }
.accueil-faits strong { font-family: var(--mono); font-weight: 500; }

.fiche-coupe { position: relative; padding: 0 28px 28px; background: var(--blanc); border: 2px solid var(--encre); box-shadow: 10px 10px 0 var(--encre); }
.fiche-coupe-entete {
  display: flex; justify-content: space-between; margin: 0 -28px 24px; padding: 10px 28px;
  background: var(--encre); color: #fff; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
}
.fiche-coupe-entete span:first-child::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px; background: var(--jaune); clip-path: polygon(0 0, 100% 0, 0 100%); }
.fiche-coupe h2 { margin-bottom: .3em; font-size: 1.55rem; }
.fiche-coupe-aide { font-size: .95rem; color: var(--encre-2); }
.fiche-coupe-champs { display: flex; align-items: flex-end; gap: 14px; margin: 20px 0 16px; }
.fiche-coupe-champs label { flex: 1; display: grid; grid-template-columns: 1fr auto; align-items: end; border-bottom: 2px solid var(--encre); }
.fiche-coupe-champs label span { grid-column: 1 / -1; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.fiche-coupe-champs input {
  width: 100%; min-width: 0; padding: 4px 0 6px; border: 0; background: transparent;
  font-family: var(--mono); font-size: 2.2rem; line-height: 1.1; -moz-appearance: textfield;
}
.fiche-coupe-champs input::-webkit-outer-spin-button, .fiche-coupe-champs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fiche-coupe-champs input:focus { outline: none; }
.fiche-coupe-champs label:focus-within { box-shadow: 0 2px 0 var(--jaune); }
.fiche-coupe-champs input::placeholder { color: var(--trait-2); }
.fiche-coupe-champs em { padding-bottom: 10px; font-family: var(--mono); font-style: normal; color: var(--gris); }
.fois { padding-bottom: 8px; font-size: 1.5rem; color: var(--gris); }
.fiche-coupe-angle { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.fiche-coupe-angle legend { float: left; margin: 0 10px 0 0; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.fiche-coupe-angle label { position: relative; }
.fiche-coupe-angle input { position: absolute; opacity: 0; }
.fiche-coupe-angle span { display: inline-block; padding: 7px 14px; border: 1.5px solid var(--trait-2); font-size: .9rem; font-weight: 650; cursor: pointer; }
.fiche-coupe-angle input:checked + span { background: var(--encre); border-color: var(--encre); color: #fff; }
.fiche-coupe-angle input:focus-visible + span { outline: 2px solid var(--encre); outline-offset: 2px; }
.fiche-coupe-exemples-titre { margin: 0 0 8px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.fiche-coupe-exemples { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.fiche-coupe-exemples a { display: inline-block; padding: 6px 10px; background: var(--fond); border: 1px solid var(--trait); font-size: .86rem; text-decoration: none; }
.fiche-coupe-exemples a:hover { background: var(--jaune); border-color: var(--jaune); }
.fiche-coupe-exemples small { margin-left: 3px; font-family: var(--mono); font-size: .76rem; color: var(--gris); }

.bloc-accueil { padding: 84px 0 0; }
.bloc-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 30px; }
.bloc-tete h2 { max-width: 20ch; margin: 0; }
.bloc-tete-texte { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; color: var(--encre-2); }
.bloc-tete-texte p { max-width: 56ch; margin: 0; }
.index { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.index span { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; background: var(--encre); color: var(--jaune); font-family: var(--mono); font-size: .78rem; letter-spacing: 0; }

.grille-usages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--encre); border-left: 1px solid var(--trait); }
.grille-usages li { border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.grille-usages a { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px 20px 20px; text-decoration: none; transition: background-color .15s; }
.grille-usages a:hover { background: var(--creme); }
.grille-usages a::after { content: ""; position: absolute; top: 0; right: 0; width: 0; height: 0; background: var(--jaune); clip-path: polygon(0 0, 100% 0, 100% 100%); transition: width .15s, height .15s; }
.grille-usages a:hover::after { width: 22px; height: 22px; }
.grille-usages .tuile { margin-bottom: 6px; }
.usage-nom { font-size: 1.18rem; font-weight: 750; letter-spacing: -.015em; line-height: 1.15; }
.usage-texte { flex: 1; font-size: .93rem; color: var(--encre-2); }
.usage-chiffres { font-family: var(--mono); font-size: .78rem; color: var(--gris); }

.grille-selections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grille-selections-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.selection { position: relative; display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--trait); }
.selection-titre { display: flex; align-items: center; min-height: 48px; margin: 0; padding: 9px 14px; background: var(--jaune); font-size: .68rem; font-weight: 750; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; }
.selection-scie { display: block; padding: 14px 14px 0; text-decoration: none; }
.selection-scie img { width: 100%; aspect-ratio: 1; margin-bottom: 12px; object-fit: contain; background: var(--fond); mix-blend-mode: multiply; }
.grille-selections:not(.grille-selections-5) .selection-scie img { aspect-ratio: 16 / 10; padding: 10px; }
.selection-scie span { display: block; font-weight: 750; line-height: 1.2; }
.selection-scie:hover span { text-decoration: underline; }
.selection-raison { margin: 6px 14px 12px; font-family: var(--mono); font-size: .8rem; line-height: 1.45; }
.selection-regle { margin: auto 14px 0; padding: 10px 0 14px; border-top: 1px dashed var(--trait-2); font-size: .8rem; line-height: 1.45; color: var(--gris); }

.grille-budgets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--encre); }
.budget { display: flex; flex-direction: column; padding: 20px 20px 18px; border-right: 1px solid var(--trait); }
.budget:last-child { border-right: 0; }
.budget-tranche { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.budget-compte { margin: 0 0 12px; font-family: var(--mono); font-size: .78rem; color: var(--gris); }
.budget ol { flex: 1; margin: 0 0 14px; padding: 0; list-style: none; counter-reset: b; }
.budget li { counter-increment: b; border-top: 1px solid var(--trait); }
.budget li a { display: grid; grid-template-columns: 28px 1fr; padding: 10px 0; text-decoration: none; }
.budget li a::before { content: counter(b); grid-row: span 2; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; background: var(--jaune); font-family: var(--mono); font-size: .72rem; }
.budget li strong { font-weight: 700; line-height: 1.25; }
.budget li a:hover strong { text-decoration: underline; }
.budget li span { font-family: var(--mono); font-size: .76rem; color: var(--gris); }

.liste-plateformes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.liste-plateformes li { display: flex; }
.liste-plateformes a { flex: 1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--trait); font-weight: 650; text-decoration: none; }
.liste-plateformes a:hover { border-color: var(--encre); box-shadow: 4px 4px 0 var(--jaune); }
.liste-plateformes small { font-family: var(--mono); font-size: .76rem; color: var(--gris); }

.grille-lames { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--encre); border-left: 1px solid var(--trait); }
.grille-lames li { border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.grille-lames a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 18px; text-decoration: none; }
.grille-lames a:hover { background: var(--jaune); }
.lame-diametre { font-family: var(--mono); font-size: 2.1rem; line-height: 1; letter-spacing: -.04em; }
.lame-texte { font-size: .84rem; line-height: 1.45; color: var(--encre-2); }

.liste-pastilles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.liste-pastilles a { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 14px; border: 1px solid var(--trait); font-weight: 650; text-decoration: none; }
.liste-pastilles a:hover { background: var(--encre); border-color: var(--encre); color: #fff; }
.liste-pastilles a:hover small { color: var(--jaune); }
.liste-pastilles small { font-family: var(--mono); font-size: .76rem; color: var(--gris); }
.liste-pastilles .icone { align-self: center; width: 17px; height: 17px; }
.page-404-besoins .memo-titre { margin: 0 0 8px; }

.grille-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.grille-guides a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px; border: 1px solid var(--trait); border-top: 3px solid var(--encre); text-decoration: none; }
.grille-guides a:hover { background: var(--creme); border-top-color: var(--jaune); }
.guide-titre { font-size: 1.12rem; font-weight: 750; letter-spacing: -.015em; line-height: 1.2; }
.guide-extrait { flex: 1; font-size: .93rem; color: var(--encre-2); }
.grille-guides .lien-fleche { align-self: flex-start; }
.guide-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guide-numero { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
/* Le premier guide, celui par lequel commencer, prend deux colonnes et l'aplat foncé. */
.guide-une { grid-column: span 2; }
.guide-une a { position: relative; justify-content: flex-end; min-height: 300px; padding: 30px; background: var(--encre); border-color: var(--encre); color: #fff; }
.guide-une a::after { content: ""; position: absolute; right: 0; bottom: 0; width: 64px; height: 64px; background: var(--jaune); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.guide-une a:hover { background: #000; border-top-color: var(--jaune); }
.guide-une .guide-tete { margin-bottom: auto; }
.guide-une .guide-numero { color: var(--jaune); }
.guide-une .guide-titre { max-width: 22ch; font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.guide-une .guide-extrait { flex: none; max-width: 56ch; font-size: 1rem; color: #d9d5c2; }
.guide-une .lien-fleche { color: #fff; }

/* La bande méthode : le seul grand aplat foncé de la page. */
.bande-methode { margin-top: 96px; padding: 76px 0 84px; background: var(--encre); color: #e9e5d4; }
.bande-methode h2 { color: #fff; }
.bande-methode .index { color: var(--jaune); }
.bande-methode .index span { background: var(--jaune); color: var(--encre); }
.trois-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0 0 40px; padding: 0; list-style: none; }
.trois-points li { padding-top: 20px; border-top: 1px solid #4a4530; font-size: .98rem; }
.trois-points .tuile { margin-bottom: 18px; }
.trois-points strong { display: block; margin-bottom: 6px; color: #fff; font-size: 1.1rem; }

/* --------------------------------------------------------------------------
   Cartes et listes de scies
   -------------------------------------------------------------------------- */

.grille-scies { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.carte-scie { position: relative; display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--trait); transition: border-color .15s, box-shadow .15s; }
.carte-scie::before { content: ""; position: absolute; top: -1px; left: -1px; z-index: 1; width: 0; height: 0; background: var(--jaune); clip-path: polygon(0 0, 100% 0, 0 100%); transition: width .15s, height .15s; }
.carte-scie:hover { border-color: var(--encre); box-shadow: 6px 6px 0 var(--jaune); }
.carte-scie:hover::before { width: 24px; height: 24px; }
.carte-lien { display: flex; flex: 1; flex-direction: column; text-decoration: none; }
.carte-photo { position: relative; padding: 14px; background: var(--fond); }
.carte-photo img, .photo-absente { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.photo-absente { display: block; background: var(--trait); }
.carte-corps { flex: 1; padding: 14px 16px 6px; }
.carte-marque { margin: 0 0 2px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.carte-marque .logo-marque { max-height: 18px; max-width: 96px; }
.carte-marque .logo-marque-texte { height: 18px; font-size: .62rem; border-width: 1px; }
.carte-nom { margin: 0 0 10px; font-size: 1.06rem; font-weight: 750; line-height: 1.15; letter-spacing: -.01em; }
.carte-lien:hover .carte-nom { text-decoration: underline; }
.etiquettes { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 12px; padding: 0; list-style: none; }
.etiquettes li { padding: 2px 7px; border: 1px solid var(--trait-2); font-family: var(--mono); font-size: .7rem; white-space: nowrap; }
.carte-cotes { display: grid; gap: 4px; margin: 0; }
.carte-cotes div { display: flex; justify-content: space-between; gap: 8px; padding-top: 4px; border-top: 1px dashed var(--trait); font-size: .84rem; }
.carte-cotes dt { color: var(--gris); }
.carte-cotes dd { margin: 0; font-family: var(--mono); font-size: .8rem; }
.carte-pied { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px 14px; }
.carte-prix { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.carte-montant { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.carte-montant.muet { font-size: .84rem; font-weight: 600; }
.carte-prix:has(.carte-reference) { flex-wrap: wrap; row-gap: 0; }
.carte-reference { order: 3; flex-basis: 100%; font-family: var(--mono); font-size: .74rem; line-height: 1.3; color: var(--gris); }

/* La remise : un aplat foncé, chiffre jaune, coin coupé comme les boutons. */
.badge-promo {
  display: inline-block; padding: 4px 9px 4px 8px; background: var(--encre); color: var(--jaune);
  font-family: var(--mono); font-size: .8rem; line-height: 1.2; white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}
.carte-photo .badge-promo { position: absolute; top: 10px; left: 10px; z-index: 1; }
.prix-promo { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 0; font-size: .86rem; color: var(--encre-2); }
.prix-promo s { font-family: var(--mono); }
.nav-promos { gap: 7px; }
.nav-compte { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; background: var(--jaune); font-family: var(--mono); font-size: .7rem; letter-spacing: 0; }
.promo-vide { max-width: var(--colonne); margin-bottom: 48px; padding: 26px 28px; border: 1.5px dashed var(--trait-2); }
.promo-vide h2 { font-size: 1.4rem; }
.promo-vide p { margin: 0; color: var(--encre-2); }
.bloc-pas-cher { margin: 56px 0 8px; padding-top: 34px; border-top: 1.5px solid var(--encre); }
.bloc-pas-cher-tete { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-bottom: 22px; }
.bloc-pas-cher-tete h2 { margin-bottom: .2em; font-size: 1.5rem; }
.bloc-pas-cher-tete p { margin: 0; max-width: 62ch; font-size: .95rem; color: var(--encre-2); }
.bandeau-promos { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 0 0 32px; padding: 12px 18px 12px 12px; background: var(--encre); color: #fff; text-decoration: none; }
.bandeau-promos strong { display: block; color: var(--jaune); }
.bandeau-promos span span, .bandeau-promos > span { font-size: .92rem; }
.bandeau-promos:hover { background: #000; }

.dispo { display: inline-block; flex: none; width: 9px; height: 9px; background: var(--ok); }
.dispo-peu, .dispo-delai { background: var(--attente); }
.dispo-ko { background: var(--ko); }

.tete-liste { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; margin-bottom: 40px; padding: 22px 0 42px; border-bottom: 1.5px solid var(--encre); }
.tete-fiche { position: static; margin: 6px 0 0; }
.tete-fiche .rangee-chiffres { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 0; }
.tete-fiche .chiffre { margin: 0; padding: 14px 16px 12px; border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.tete-fiche .chiffre:nth-child(2n), .tete-fiche .chiffre:last-child:nth-child(odd) { border-right: 0; }
.tete-fiche .chiffre:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tete-fiche .chiffre strong { font-size: 1.55rem; }
.tete-regle { padding: 4px 16px 16px; background: var(--creme); }
.tete-regle .memo-titre { display: flex; align-items: center; gap: 7px; margin: 12px 0 6px; }
.tete-regle .memo-titre .icone { width: 16px; height: 16px; }
.tete-regle p { margin: 0; font-size: .92rem; font-weight: 600; line-height: 1.45; }
.tete-regle .tete-regle-note { margin-top: 6px; font-size: .78rem; font-weight: 400; color: var(--gris); }
.tete-titre { display: flex; align-items: flex-start; gap: 20px; }
.tete-titre .surtitre { margin-top: 4px; }
.tete-liste h1 { max-width: 24ch; margin-bottom: .4em; }
.tete-liste .chapeau { margin-top: 10px; }
.rangee-chiffres { display: flex; flex-wrap: wrap; margin-top: 30px; border-top: 1px solid var(--trait); }
.chiffre { display: flex; flex-direction: column; margin-right: 32px; padding: 14px 32px 0 0; border-right: 1px solid var(--trait); }
.chiffre:last-child { border-right: 0; }
.chiffre strong { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.chiffre strong small { font-size: .55em; font-weight: 600; color: var(--gris); }
.chiffre span { font-size: .8rem; color: var(--gris); }

.selections { margin-bottom: 48px; }
.selections .chapeau { font-size: 1rem; }
.regle-liste { display: flex; align-items: flex-start; gap: 12px; max-width: 880px; margin: 0 0 26px; padding: 14px 16px; background: var(--creme); border-left: 4px solid var(--jaune); font-size: .92rem; color: var(--encre-2); }
.regle-liste .icone { margin-top: 3px; }
.barre-liste { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.barre-liste h2 { margin: 0; }
.tri { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.tri select, .champ-select select {
  padding: 8px 32px 8px 12px; background: var(--blanc); border: 1.5px solid var(--encre); -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--encre) 50%), linear-gradient(135deg, var(--encre) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.texte-liste { max-width: var(--colonne); margin: 64px 0 0; }
.voisins { margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--trait); }
.voisins-titre { margin: 0 0 14px; font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }

/* La notice et la fiche du fabricant, sous le titre de la fiche technique. */
.documents { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; max-width: 960px; margin: 6px 0 30px; padding: 0; list-style: none; }
.document { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; height: 100%; padding: 14px 16px; border: 1.5px solid var(--encre); text-decoration: none; }
.document > .icone:first-child { width: 26px; height: 26px; padding: 6px; box-sizing: content-box; background: var(--jaune); }
.document strong { display: block; font-size: .95rem; line-height: 1.25; }
.document small { display: block; margin-top: 2px; font-size: .78rem; color: var(--gris); }
.document > .icone:last-child { width: 20px; height: 20px; }
.document:hover { background: var(--encre); color: #fff; }
.document:hover small { color: #d9d5c2; }
.provenance { display: flex; align-items: flex-start; gap: 12px; margin: 56px 0 72px; padding: 16px 18px; border: 1px dashed var(--trait-2); font-size: .88rem; color: var(--encre-2); }
.provenance .icone { margin-top: 3px; color: var(--gris); }
.provenance p { margin: 0; }

/* --------------------------------------------------------------------------
   Fiche d'une scie
   -------------------------------------------------------------------------- */

.fiche-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 52px; padding: 14px 0 48px; }
.fiche-galerie { min-width: 0; }
.galerie-defilante { display: flex; overflow-x: auto; background: var(--fond); scroll-snap-type: x mandatory; scrollbar-width: none; }
.galerie-defilante::-webkit-scrollbar { display: none; }
.galerie-vue { flex: 0 0 100%; margin: 0; padding: 30px; scroll-snap-align: center; }
.galerie-vue img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.galerie-pastilles { display: flex; gap: 8px; margin: 10px 0 0; padding: 0; overflow-x: auto; list-style: none; }
.galerie-pastilles a { display: block; width: 60px; height: 60px; padding: 4px; background: var(--fond); border: 1.5px solid transparent; }
.galerie-pastilles a:hover { border-color: var(--encre); }
.galerie-pastilles img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.fiche-infos h1 { margin-bottom: .35em; font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.fiche-resume { font-size: 1.08rem; color: var(--encre-2); }
.fiche-chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 22px 0 26px; border-top: 1.5px solid var(--encre); }
.fiche-chiffres div { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--trait); }
.fiche-chiffres div:nth-child(odd) { border-right: 1px solid var(--trait); }
.fiche-chiffres div:nth-child(even) { padding-left: 16px; }
.fiche-chiffres dt { display: flex; align-items: center; gap: 8px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.fiche-chiffres dd { margin: 6px 0 0; font-family: var(--mono); font-size: 1.12rem; }

.encart-prix { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 22px; background: var(--blanc); border: 2px solid var(--encre); box-shadow: 8px 8px 0 var(--jaune); }
.encart-prix::before { content: ""; position: absolute; top: -2px; left: -2px; width: 20px; height: 20px; background: var(--jaune); clip-path: polygon(0 0, 100% 0, 0 100%); }
.encart-prix-haut { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.prix-montant { margin: 0; font-size: 2.4rem; font-weight: 800; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.prix-montant .muet { font-size: 1.1rem; }
.dispo-texte { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .9rem; font-weight: 650; }
.dispo-texte.dispo-ok { color: var(--ok); background: none; }
.dispo-texte.dispo-ko { color: var(--ko); background: none; }
.dispo-texte.dispo-peu, .dispo-texte.dispo-delai { color: #8a6500; background: none; }
.encart-prix .bouton-amazon { font-size: .86rem; }
.encart-prix .bouton-comparer { padding: .9em 1.1em; }
.prix-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; margin: 0; font-size: .8rem; color: var(--gris); }
.prix-note .icone { width: 15px; height: 15px; }

.sommaire-fiche { position: sticky; top: 0; z-index: 30; background: var(--blanc); border-top: 1px solid var(--trait); border-bottom: 1.5px solid var(--encre); }
.sommaire-fiche .cadre { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sommaire-fiche ul { display: flex; gap: 2px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; list-style: none; }
.sommaire-fiche ul a { display: block; padding: 14px 12px; font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.sommaire-fiche ul a:hover { box-shadow: inset 0 -4px 0 var(--jaune); }
.sommaire-fiche .bouton { flex: none; }

.fiche-corps { padding-top: 8px; }
.section-fiche { padding: 60px 0 8px; border-bottom: 1px solid var(--trait); }
.section-fiche > h2 { display: flex; align-items: center; margin-bottom: .4em; }
.section-fiche > .chapeau { margin-bottom: 26px; font-size: 1rem; }

.capacite-bloc { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; align-items: start; margin-bottom: 44px; }
.capacite-dessin { margin: 0; padding: 22px 20px 14px; background: var(--creme); border: 1px solid var(--trait); }
.capacite-dessin figcaption { margin-top: 10px; font-size: .8rem; color: var(--gris); }
.capacite { width: 100%; height: auto; overflow: visible; }
.cap-bois { fill: var(--bois); stroke: var(--encre); stroke-width: 1.3; }
.cap-fil { fill: none; stroke: var(--bois-2); stroke-width: .7; }
.cap-veinage { stroke: none; }
.cap-onglet { fill: rgba(255, 221, 26, .55); stroke: var(--encre); stroke-width: 1.3; stroke-dasharray: 5 4; }
.cap-legende-onglet { fill: var(--encre); font-family: var(--mono); font-size: 10px; }
.cap-cote { stroke: var(--encre); stroke-width: .9; }
.cap-rappel { stroke: var(--gris); stroke-width: .6; }
.cap-pointe { fill: var(--encre); }
.cap-valeur { fill: var(--encre); font-family: var(--mono); font-size: 13px; }
.cap-fond-texte { fill: var(--creme); }
.cap-plateau { stroke: var(--encre); stroke-width: 2.2; }
.cap-guide { fill: var(--encre-2); }
.cap-regle { stroke: var(--gris); stroke-width: .7; }
.cap-regle.long { stroke: var(--encre-2); stroke-width: 1; }
.cap-graduation { fill: var(--gris); font-family: var(--mono); font-size: 8.5px; text-anchor: middle; }

.table-capacites { margin-bottom: 18px; border-top: 1.5px solid var(--encre); }
.table-capacites th, .table-capacites td { padding: 11px 0; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: baseline; }
.table-capacites th { font-weight: 700; }
.table-capacites th small { display: block; font-size: .78rem; font-weight: 400; color: var(--gris); }
.table-capacites td { font-family: var(--mono); font-size: .95rem; text-align: right; white-space: nowrap; }
.table-capacites td small { display: block; font-size: .74rem; color: var(--gris); }
.positions { margin: 0 0 18px; padding: 0; list-style: none; }
.positions li { position: relative; padding: 9px 0 9px 22px; border-bottom: 1px dashed var(--trait); font-size: .94rem; }
.positions li::before { content: ""; position: absolute; left: 0; top: 14px; width: 10px; height: 10px; background: var(--jaune); clip-path: polygon(0 0, 100% 0, 0 100%); }

.mention-methode { display: flex; align-items: flex-start; gap: 12px; max-width: var(--colonne); margin: 0 0 26px; padding: 13px 16px; background: var(--creme); border-left: 4px solid var(--jaune); font-size: .9rem; color: var(--encre-2); }
.mention-methode .icone { margin-top: 3px; }
.texte { max-width: var(--colonne); }
.texte h2 { margin-top: 1.7em; }
.texte h3 { margin-top: 1.6em; }
.texte ul, .texte ol { padding-left: 1.2em; }
.texte li { margin-bottom: .45em; }
.texte ul li::marker { content: "▪  "; color: var(--encre); font-size: .8em; }
.texte strong { font-weight: 700; }
.texte table { margin: 1.4em 0; font-size: .94rem; }
.texte th, .texte td { padding: 9px 10px; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
.texte thead th { border-bottom: 1.5px solid var(--encre); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.texte blockquote { margin: 1.6em 0; padding: 6px 0 6px 20px; border-left: 4px solid var(--jaune); font-size: 1.12rem; font-weight: 600; }
.texte .encart { margin: 1.5em 0; padding: 18px 20px; background: var(--creme); border-left: 4px solid var(--encre); }
.texte a { text-decoration-color: var(--jaune-fonce); text-decoration-thickness: 2px; }

.pour-contre { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 960px; margin: 34px 0 44px; }

/* L'avis et, à côté, l'aide-mémoire de la scie qui reste à l'écran pendant la lecture. */
.avis-grille { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.avis-grille .pour-contre { max-width: none; }
.memo { position: sticky; top: 76px; margin-bottom: 44px; border: 1.5px solid var(--encre); background: var(--blanc); box-shadow: 8px 8px 0 var(--jaune); }
.memo-tete { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 8px 14px; background: var(--encre); color: var(--jaune); font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.memo-tete span:last-child { overflow: hidden; color: #fff; text-overflow: ellipsis; white-space: nowrap; }
.memo-scie { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; padding: 14px 16px 6px; }
.memo-scie img { width: 64px; height: 64px; object-fit: contain; background: var(--fond); }
.memo-scie strong { font-size: 1.02rem; line-height: 1.2; }
.memo-cotes { margin: 0; padding: 4px 16px 6px; }
.memo-cotes div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--trait); }
.memo-cotes dt { font-size: .84rem; color: var(--gris); }
.memo-cotes dd { margin: 0; font-family: var(--mono); font-size: .84rem; text-align: right; }
.memo-cotes .memo-mot { font-family: inherit; font-weight: 600; }
.memo-titre { margin: 12px 16px 6px; font-size: .68rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.memo-listes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0 16px 4px; list-style: none; }
.memo-listes a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 7px; background: var(--creme); border: 1px solid var(--trait); font-size: .8rem; font-weight: 600; text-decoration: none; }
.memo-listes a:hover { border-color: var(--encre); background: var(--jaune); }
.memo-listes .icone { width: 15px; height: 15px; }
.memo-prix { display: grid; gap: 10px; margin-top: 12px; padding: 14px 16px 16px; border-top: 1.5px solid var(--encre); background: var(--fond); }
.memo-prix .prix-montant { font-size: 1.9rem; }
.memo-prix .bouton { font-size: .76rem; letter-spacing: .06em; }
.pour-contre > div { padding: 18px 20px; border: 1px solid var(--trait); border-top: 3px solid currentColor; }
.pour { color: var(--ok); }
.contre { color: var(--ko); }
.pour-contre h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.pour-contre ul { margin: 0; padding: 0; list-style: none; color: var(--encre); }
.pour-contre li { padding: 8px 0; border-top: 1px dashed var(--trait); font-size: .94rem; }

.fiche-technique { columns: 2; column-gap: 44px; margin-bottom: 44px; }
.fiche-technique table { break-inside: avoid; margin-bottom: 28px; }
.fiche-technique caption { padding-bottom: 8px; border-bottom: 1.5px solid var(--encre); font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-align: left; text-transform: uppercase; }
.fiche-technique th, .fiche-technique td { padding: 8px 0; border-bottom: 1px solid var(--trait); font-size: .93rem; vertical-align: baseline; }
.fiche-technique td.mot { font-family: inherit; font-size: .9rem; font-weight: 600; }
.fiche-technique th { padding-right: 16px; font-weight: 400; text-align: left; color: var(--encre-2); }
.fiche-technique td { font-family: var(--mono); font-size: .86rem; text-align: right; }

.defilement-horizontal { margin-bottom: 26px; overflow-x: auto; }
.tableau-comparatif { min-width: 640px; border: 1px solid var(--trait); }
.tableau-comparatif th, .tableau-comparatif td { padding: 10px 14px; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
.tableau-comparatif tbody th { font-size: .84rem; font-weight: 600; color: var(--encre-2); white-space: nowrap; }
.tableau-comparatif td { font-family: var(--mono); font-size: .84rem; }
.tableau-comparatif thead th { vertical-align: bottom; border-bottom: 1.5px solid var(--encre); }
.tableau-comparatif thead a { display: block; font-weight: 750; line-height: 1.2; text-decoration: none; }
.tableau-comparatif thead img { width: 84px; height: 84px; margin-bottom: 8px; object-fit: contain; }
.tableau-comparatif .courante { background: var(--creme); }

.bloc-questions { max-width: var(--colonne); padding: 60px 0 0; }
.question { border-top: 1px solid var(--trait); }
.question:last-child { border-bottom: 1px solid var(--trait); }
.question summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 700; list-style: none; cursor: pointer; }
.question summary::-webkit-details-marker { display: none; }
.question summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 24px; height: 24px; background: var(--jaune); font-family: var(--mono); font-size: 1rem; line-height: 1; }
.question[open] summary::after { content: "−"; background: var(--encre); color: var(--jaune); }
.reponse { padding: 0 0 16px; color: var(--encre-2); }

.barre-achat { display: none; }

/* --------------------------------------------------------------------------
   Comparateur
   -------------------------------------------------------------------------- */

.comparateur { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; }
.filtres { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.filtres-repli > summary { display: none; }
.filtres-formulaire fieldset { margin: 0; padding: 14px 0; border: 0; border-top: 1px solid var(--trait); }
.filtres-formulaire legend { float: left; width: 100%; margin-bottom: 8px; padding: 0; font-size: .68rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.filtres-formulaire label { display: flex; align-items: center; gap: 8px; clear: both; padding: 3px 0; font-size: .92rem; cursor: pointer; }
.filtres-formulaire label small { margin-left: auto; font-family: var(--mono); font-size: .74rem; color: var(--gris); }
.filtres-formulaire input[type="checkbox"], .filtres-formulaire input[type="radio"] { width: 16px; height: 16px; accent-color: var(--encre); }
.champ-unite { display: flex !important; align-items: center; padding: 0 10px 0 0 !important; background: var(--blanc); border: 1.5px solid var(--trait-2); }
.champ-unite span { display: none; }
.champ-unite input { flex: 1; width: 100%; min-width: 0; padding: 8px 10px; background: none; border: 0; font-family: var(--mono); font-size: .9rem; }
.champ-unite input:focus { outline: none; }
.champ-unite:focus-within { border-color: var(--encre); }
.champ-unite em { font-family: var(--mono); font-size: .82rem; font-style: normal; color: var(--gris); }
.deux-champs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; clear: both; }
.deux-champs > * { min-width: 0; }
.champ-select { display: grid !important; gap: 4px; margin-top: 6px; }
.champ-select span { font-size: .82rem; color: var(--gris); }

.lignes-comparateur { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--encre); }
.ligne-scie { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) 132px; gap: 18px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--trait); }
.ligne-scie:hover { background: var(--creme); }
.ligne-scie-nom { display: flex; align-items: center; gap: 12px; font-weight: 750; line-height: 1.2; text-decoration: none; }
.ligne-scie-nom:hover { text-decoration: underline; }
.ligne-scie-nom img { flex: none; width: 64px; height: 64px; object-fit: contain; background: var(--fond); mix-blend-mode: multiply; }
.ligne-scie-nom small { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.ligne-scie-cotes { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, .75fr) minmax(0, 1.15fr) minmax(0, .8fr) minmax(0, 1fr); gap: 14px; margin: 0; }
.ligne-scie-cotes dt { font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.ligne-scie-cotes dd { margin: 0; font-family: var(--mono); font-size: .8rem; line-height: 1.35; white-space: nowrap; }
.ligne-scie-cotes div:nth-child(n+4) dd { white-space: normal; }
.ligne-scie-cotes dd small { display: block; color: var(--gris); }
.ligne-scie-prix { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ligne-scie-prix p { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.aucun-resultat { padding: 32px 0; color: var(--encre-2); }

.comparaison { margin-bottom: 48px; padding: 24px; border: 2px solid var(--encre); box-shadow: 8px 8px 0 var(--jaune); }
.comparaison-dessin { margin-bottom: 20px; }
.comparaison-dessin .legende { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 0; padding: 0; list-style: none; font-size: .84rem; }
.comparaison-dessin .legende i { display: inline-block; width: 18px; height: 3px; margin-right: 6px; vertical-align: middle; }
.tableau-cote-a-cote td { min-width: 150px; }
.tableau-cote-a-cote .retirer { display: inline-block; margin-top: 6px; padding: 0; background: none; border: 0; font-size: .78rem; text-decoration: underline; color: var(--gris); }
.tableau-cote-a-cote .meilleur { color: var(--ok); font-weight: 600; }

/* --------------------------------------------------------------------------
   Outil de capacité, tableaux, location
   -------------------------------------------------------------------------- */

.capacite-outil { margin-bottom: 44px; }
.fiche-coupe-large { box-shadow: 10px 10px 0 var(--jaune); }
.fiche-coupe-ligne { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 28px; margin-bottom: 18px; }
.fiche-coupe-ligne .fiche-coupe-champs { flex: 1 1 320px; margin: 0; }
.fiche-coupe-ligne .fiche-coupe-angle { margin: 0; }
.capacite-resultats { margin-top: 40px; }
.capacite-resultats h2 { margin-bottom: .3em; }
.capacite-resultats .chapeau { margin-bottom: 26px; }
.groupe-resultat { margin-bottom: 38px; }
.groupe-resultat h3 { padding-bottom: 8px; border-bottom: 1.5px solid var(--encre); }

.tableau-pieces, .tableau-marques, .tableau-location { border: 1px solid var(--trait); }
.tableau-pieces th, .tableau-pieces td, .tableau-marques th, .tableau-marques td, .tableau-location th, .tableau-location td { padding: 11px 14px; border-bottom: 1px solid var(--trait); text-align: left; }
.tableau-pieces td, .tableau-marques td { font-family: var(--mono); font-size: .86rem; }
.tableau-location td { font-size: .95rem; }
.tableau-location td:nth-child(2) { font-weight: 750; }
.tableau-location td:nth-child(3) { font-family: var(--mono); font-size: .86rem; }
.tableau-pieces thead th, .tableau-marques thead th, .tableau-location thead th { border-bottom: 1.5px solid var(--encre); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.tableau-pieces tbody th a, .tableau-marques tbody th a, .tableau-location tbody th a { font-weight: 750; }
.avec-icone { display: inline-flex; align-items: center; gap: 8px; }

.tableau-tarifs { max-width: none; margin: 0 0 34px; border-top: 1.5px solid var(--encre); }
.tableau-tarifs caption { padding-bottom: 8px; font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-align: left; text-transform: uppercase; }
.tableau-tarifs caption .icone { display: inline-block; width: 16px; height: 16px; margin-right: 7px; vertical-align: -3px; }
.tableau-tarifs th, .tableau-tarifs td { padding: 12px 0; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: baseline; }
.tableau-tarifs th { padding-right: 20px; font-weight: 650; }
.tableau-tarifs td { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tableau-tarifs abbr { font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: 0; text-decoration: none; color: var(--gris); }
.tableau-tarifs small { display: block; margin-top: 2px; font-size: .84rem; font-weight: 400; color: var(--gris); }
.encart-acheter { max-width: var(--colonne); margin: 48px 0 72px; padding: 22px 24px; border: 2px solid var(--encre); box-shadow: 8px 8px 0 var(--jaune); }
.encart-acheter h2 { font-size: 1.25rem; }
.encart-acheter p { margin: 0; }

/* --------------------------------------------------------------------------
   Pages de texte et guides
   -------------------------------------------------------------------------- */

.page-texte .article { max-width: var(--colonne); padding-bottom: 56px; }
/* Le texte à gauche, une colonne collante à droite (sommaire, fiche de coupe, pages voisines).
 * L'en-tête et la colonne sont frères du texte : sur mobile, la colonne tombe juste sous l'en-tête. */
.page-texte .article-grille { display: grid; grid-template-columns: minmax(0, var(--colonne)) 320px; column-gap: 72px; align-items: start; max-width: none; }
.article-grille > * { grid-column: 1; }
.article-grille > .article-cote { grid-column: 2; grid-row: 1 / span 6; position: sticky; top: 24px; display: grid; gap: 22px; padding-top: 30px; }
.tete-article { margin-bottom: 28px; padding: 22px 0 28px; border-bottom: 1.5px solid var(--encre); }
.tete-article .tete-titre { margin-bottom: 18px; }
.tete-article .chapeau { max-width: none; }
.date-article { display: flex; align-items: center; gap: 7px; margin: 0; font-family: var(--mono); font-size: .78rem; color: var(--gris); }
.date-article .icone { width: 15px; height: 15px; }
.article-cote .sommaire { margin: 0; }
.article-cote .sommaire li { font-size: .92rem; line-height: 1.35; }
.fiche-coupe-mini { padding: 0 18px 18px; border-width: 1.5px; box-shadow: 8px 8px 0 var(--jaune); }
.fiche-coupe-mini .fiche-coupe-entete { margin: 0 -18px 16px; padding: 8px 18px; }
.fiche-coupe-titre { margin: 0; font-size: 1.12rem; font-weight: 750; letter-spacing: -.01em; }
.fiche-coupe-mini .fiche-coupe-champs { gap: 10px; margin: 12px 0 16px; }
.fiche-coupe-mini .fiche-coupe-champs input { font-size: 1.5rem; }
.fiche-coupe-mini .bouton { font-size: .76rem; }
.nav-cote ul { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--encre); }
.nav-cote a { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--trait); font-weight: 600; text-decoration: none; }
.nav-cote a:hover, .nav-cote a[aria-current] { box-shadow: inset 4px 0 0 var(--jaune); padding-left: 12px; }
.nav-cote .icone { width: 18px; height: 18px; }
.article-cote .memo-titre { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; }
.article-cote .memo-titre .icone { width: 16px; height: 16px; }
.article-cote .encart-acheter { max-width: none; margin: 0; padding: 18px 18px 16px; }
.article-cote .encart-acheter p:not(.memo-titre) { margin-bottom: 12px; font-size: .94rem; }
.sommaire { margin: 0 0 34px; padding: 18px 22px; background: var(--creme); border-left: 4px solid var(--jaune); }
.sommaire p { margin: 0 0 8px; font-size: .68rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.sommaire ol { margin: 0; padding-left: 1.4em; }
.sommaire li { padding: 3px 0; }
.sommaire li::marker { font-family: var(--mono); font-size: .85em; }
.sommaire a { text-decoration: none; }
.sommaire a:hover { text-decoration: underline; }
.contact-adresse { font-family: var(--mono); font-size: 1.2rem; }
.page-404 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: start; padding-top: 72px; padding-bottom: 96px; }
.page-404 h1 { max-width: 18ch; }
.page-404 .liste-pastilles { margin-top: 10px; }
.page-404-besoins { margin-top: 44px; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.pied { background: var(--encre); color: #cfc9b4; }
.pied a { color: #f2eedd; text-decoration: none; }
.pied a:hover { color: var(--jaune); text-decoration: underline; text-decoration-color: var(--jaune); }
.pied-dedans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 56px; max-width: var(--large); margin: 0 auto; padding: 60px var(--gouttiere) 40px; }
.pied-promesse { margin: 20px 0 14px; font-size: .94rem; }
.pied-affiliation { font-size: .8rem; color: #9c967f; }
.pied-colonnes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.pied-colonnes ul { margin: 0 0 18px; padding: 0; list-style: none; }
.pied-colonnes li { padding: 3px 0; font-size: .88rem; line-height: 1.35; }
.pied-titre { margin: 0 0 10px; font-size: .68rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--jaune); }
.pied-bas { border-top: 1px solid #3a3622; }
.pied-bas p { max-width: var(--large); margin: 0 auto; padding: 18px var(--gouttiere); font-size: .8rem; color: #8f8971; }
.pied::before { content: ""; display: block; height: 6px; background: var(--jaune); }

/* Tiroir de comparaison, en bas de l'écran. */
.tiroir-comparaison { position: fixed; left: 50%; bottom: 16px; z-index: 45; width: min(760px, calc(100% - 24px)); transform: translateX(-50%); }
.tiroir-comparaison-dedans { display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 18px; background: var(--encre); color: #fff; border-left: 6px solid var(--jaune); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .6); }
.tiroir-comparaison p { margin: 0; white-space: nowrap; }
.tiroir-comparaison strong { font-family: var(--mono); color: var(--jaune); }
.tiroir-comparaison ul { flex: 1; display: flex; gap: 8px; margin: 0; padding: 0; overflow: hidden; list-style: none; }
.tiroir-comparaison li { padding: 3px 8px; border: 1px solid #4a4530; font-size: .82rem; white-space: nowrap; }
.tiroir-comparaison .bouton-texte { color: #cfc9b4; }

/* Recherche. */
.recherche { width: min(700px, calc(100% - 24px)); max-height: min(640px, 82vh); margin: 9vh auto auto; padding: 0; background: var(--blanc); color: var(--encre); border: 2px solid var(--encre); box-shadow: 10px 10px 0 var(--jaune); }
.recherche::backdrop { background: rgba(30, 26, 0, .55); }
.recherche-champ { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-bottom: 1.5px solid var(--encre); }
.recherche-champ input { flex: 1; padding: 10px 0; background: none; border: 0; font-size: 1.15rem; }
.recherche-champ input:focus { outline: none; }
.recherche-resultats { max-height: calc(min(640px, 82vh) - 64px); overflow-y: auto; }
.recherche-resultats ul { margin: 0; padding: 6px 0; list-style: none; }
.recherche-resultats a { display: flex; align-items: center; gap: 12px; padding: 9px 16px; text-decoration: none; }
.recherche-resultats a:hover, .recherche-resultats a.actif { background: var(--creme); box-shadow: inset 4px 0 0 var(--jaune); }
.recherche-resultats img { width: 44px; height: 44px; object-fit: contain; background: var(--fond); mix-blend-mode: multiply; }
.recherche-resultats .r-type { margin-left: auto; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.recherche-resultats .r-prix { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.recherche-resultats .r-titre { font-weight: 650; }
.recherche-resultats .r-sous { display: block; font-family: var(--mono); font-size: .74rem; font-weight: 400; color: var(--gris); }
.recherche-vide { margin: 0; padding: 18px 16px; color: var(--gris); }

/* ==========================================================================
   Écrans plus petits. Tout le responsive est ici, après les règles de base.
   ========================================================================== */

@media (max-width: 1100px) {
  .choix-corps { grid-template-columns: 220px minmax(0, 1fr); }
  .choix-achat { grid-column: 2; }
  .grille-budgets-prix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-principale { display: none; }
  .bouton-menu { display: inline-grid; }
  .entete-haut { gap: 18px; padding-bottom: 16px; }
  .grille-selections-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grille-scies { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ligne-scie { grid-template-columns: minmax(0, 200px) minmax(0, 1fr) 130px; }
  .ligne-scie-cotes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pied-dedans { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  :root { --gouttiere: 20px; }
  .accueil-tete-grille { grid-template-columns: 1fr; gap: 44px; padding-top: 44px; }
  .bloc-tete { grid-template-columns: 1fr; gap: 12px; }
  .grille-usages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grille-budgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .budget:nth-child(2n) { border-right: 0; }
  .budget:nth-child(n+3) { border-top: 1px solid var(--trait); }
  .grille-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trois-points { grid-template-columns: 1fr; gap: 24px; }
  .fiche-tete { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .fiche-tete > * { min-width: 0; }
  .capacite-bloc { grid-template-columns: 1fr; gap: 24px; }
  .fiche-technique { columns: 1; }
  .comparateur { grid-template-columns: 1fr; gap: 16px; }
  .filtres { position: static; max-height: none; overflow: visible; }
  .filtres-repli { border: 1.5px solid var(--encre); }
  .filtres-repli > summary { display: flex; justify-content: space-between; padding: 12px 16px; font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
  .filtres-formulaire { padding: 0 16px 12px; }
  .filtres-marques { columns: 2; }
  .pied-colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .barre-achat {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px var(--gouttiere) calc(10px + env(safe-area-inset-bottom)); background: var(--blanc); border-top: 2px solid var(--encre);
  }
  .barre-achat div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .barre-achat strong { overflow: hidden; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
  .barre-achat span { font-weight: 800; font-variant-numeric: tabular-nums; }
  .page-fiche { padding-bottom: 72px; }
  .sommaire-fiche .bouton { display: none; }
  .avis-grille { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tete-liste { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .page-texte .article-grille { display: block; max-width: var(--colonne); }
  .page-404 { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; }
  .article-grille > .article-cote { position: static; margin-bottom: 30px; padding-top: 0; }
  .article-cote .fiche-coupe-mini { display: none; }
  .tete-fiche { max-width: 520px; }
  .memo { position: static; max-width: 460px; }
  .memo-prix { display: none; }
  .tiroir-comparaison { bottom: 84px; }
}

@media (max-width: 760px) {
  .faux-champ, .bouton-location { display: none; }
  .bouton-loupe { display: inline-grid; }
  .entete-actions { margin-left: auto; }
}

@media (max-width: 640px) {
  :root { --gouttiere: 16px; }
  body { font-size: 1rem; }
  .bandeau a { padding: 7px 10px; font-size: .62rem; letter-spacing: .08em; }
  .bandeau-plus { display: none; }
  .choix-corps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .choix-achat { grid-column: auto; }
  .choix-photo { max-width: 260px; }
  .choix-suivantes ul { grid-template-columns: minmax(0, 1fr); }
  .choix-cotes { grid-template-columns: minmax(0, 1fr); }
  .grille-budgets-prix { grid-template-columns: minmax(0, 1fr); }
  .tableau-prix th, .tableau-prix td { padding: 9px 5px; font-size: .78rem; }
  .tableau-prix thead th { font-size: .58rem; letter-spacing: .04em; white-space: normal; }
  .tableau-prix tbody th { white-space: normal; min-width: 92px; }
  .tableau-prix-marques .marque-ligne-logo { display: none; }
  .grille-logos-accueil, .grille-logos-page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tuile-logo { height: 46px; padding: 0 8px; }
  .tuile-logo .logo-marque { max-height: 26px; max-width: 110px; }
  .marque-ligne-logo { width: 64px; }
  .bloc-pas-cher-tete { grid-template-columns: auto minmax(0, 1fr); }
  .bloc-pas-cher-tete .bouton { grid-column: 1 / -1; justify-self: start; }
  .grille-selections:not(.grille-selections-5) { grid-template-columns: minmax(0, 1fr); }
  .grille-selections:not(.grille-selections-5) .selection-titre { min-height: 0; }
  .grille-selections:not(.grille-selections-5) .selection-scie { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 14px; }
  .grille-selections:not(.grille-selections-5) .selection-scie img { aspect-ratio: 1; margin: 0; padding: 6px; }
  .table-capacites td { white-space: normal; }
  .table-capacites td small { margin-top: 2px; }
  .entete-haut { padding-top: 12px; padding-bottom: 12px; }
  .logo-image { height: 26px; }
  .accueil-tete h1 { font-size: 2.45rem; }
  .accueil-promesse { font-size: 1.04rem; }
  .fiche-coupe { padding: 0 18px 20px; box-shadow: 6px 6px 0 var(--encre); }
  .fiche-coupe-entete { margin: 0 -18px 20px; padding: 9px 18px; }
  .fiche-coupe-champs input { font-size: 1.75rem; }
  .bloc-accueil { padding-top: 60px; }
  .grille-usages a { padding: 16px 14px 14px; }
  .grille-usages .tuile { width: 36px; height: 36px; }
  .usage-nom { font-size: 1rem; }
  .usage-texte { font-size: .84rem; }
  .grille-selections, .grille-selections-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grille-budgets { grid-template-columns: 1fr; }
  .budget { border-right: 0; border-top: 1px solid var(--trait); }
  .budget:first-child { border-top: 0; }
  .grille-guides { grid-template-columns: 1fr; }
  .guide-une { grid-column: auto; }
  .guide-une a { min-height: 0; padding: 22px; }
  .bande-methode { margin-top: 64px; padding: 52px 0 60px; }
  .grille-scies { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .carte-photo { padding: 8px; }
  .carte-corps { padding: 10px 10px 4px; }
  .carte-nom { font-size: .96rem; }
  .carte-cotes div { flex-direction: column; gap: 0; }
  .carte-pied { flex-direction: column; align-items: stretch; padding: 8px 10px 10px; }
  .carte-pied .bouton-comparer { justify-content: center; }
  .etiquettes li:nth-child(n+3) { display: none; }
  .tete-titre { gap: 14px; }
  .tete-titre .tuile-grande { width: 44px; height: 44px; }
  .tete-titre .tuile-grande .icone { width: 24px; height: 24px; }
  .chiffre { margin-right: 18px; padding-right: 18px; }
  .chiffre strong { font-size: 1.35rem; }
  .barre-liste { flex-wrap: wrap; }
  .fiche-chiffres dd { font-size: 1rem; }
  .encart-prix { grid-template-columns: minmax(0, 1fr); padding: 18px; box-shadow: 5px 5px 0 var(--jaune); }
  .encart-prix .bouton { padding-inline: 1.1em; letter-spacing: .05em; text-align: center; white-space: normal; }
  .prix-montant { font-size: 2rem; }
  .galerie-vue { padding: 16px; }
  .pour-contre { grid-template-columns: 1fr; }
  .section-fiche { padding-top: 46px; }
  .ligne-scie { grid-template-columns: 1fr auto; gap: 10px 12px; }
  .ligne-scie-cotes { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ligne-scie-prix { grid-column: 2; grid-row: 1; }
  .ligne-scie-nom img { width: 52px; height: 52px; }
  .comparaison { padding: 16px; }
  .pied-colonnes { grid-template-columns: 1fr 1fr; gap: 20px; }
  .tiroir-comparaison-dedans { flex-wrap: wrap; gap: 10px; }
  .tiroir-comparaison ul { display: none; }
  .tiroir-comparaison .bouton { flex: 1; }
}
