/* Foulée Douce, base fonctionnelle des composants refaits (fiche 2 colonnes, verdict, tableau en cartes), 22/11/2026.
   Chargée seulement par les gabarits de la refonte (phare.html, accueil-refonte.html), avant refonte.css. */
/* Bouton clair : même forme que le jaune, sans le jaune (les choix secondaires) */
.choix-carte:not(.choix-premier) .bouton, .bouton-marque { background: var(--papier); box-shadow: 2px 2px 0 var(--creme-2); }
.choix-carte:not(.choix-premier) .bouton:hover { box-shadow: 3px 3px 0 var(--sauge); }
/* Tableau : plus de bouton jaune, un lien d'achat discret */
.tableau .tableau-achat .bouton { all: unset; cursor: pointer; display: inline-block; margin-top: 4px; font-family: var(--mono); font-size: 12px;
  color: var(--sauge-fonce); text-decoration: underline; text-underline-offset: 3px; }
.tableau .tableau-achat .bouton::after { content: " →"; }
.tableau .tableau-achat .bouton:hover { color: var(--terracotta-texte); }

/* Chiffres clés : trois compteurs de console */
.chiffres { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; padding: 0; }
.chiffres div { background: var(--graphite); color: var(--papier); border-radius: 4px; padding: 6px 10px 5px; min-width: 76px; }
.chiffres dt { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #b9c7b5; }
.chiffres dd { margin: 0; font: 500 22px/1.15 var(--mono); color: var(--jaune); }
.chiffres small { font-size: 12px; color: var(--papier); }

/* Choix rapide = verdict en bref : la carte n° 1 domine */
.choix-carte { display: flex; flex-direction: column; gap: 4px; }
.choix-carte .bouton { margin-top: auto; }
.choix-premier { border-top-color: var(--jaune); box-shadow: 5px 5px 0 var(--graphite); }
.choix-badge { align-self: flex-start; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  background: var(--jaune); border: 1.5px solid var(--graphite); border-radius: 3px; padding: 1px 8px; margin: -26px 0 4px !important; }
.choix .chiffres div { min-width: 0; padding: 4px 8px; }
.choix .chiffres dd { font-size: 17px; }

/* Fiche : photo ou dessin à gauche, verdict + chiffres + bouton à droite */
.fiche { padding: 34px 22px 18px; }
.fiche-grille { display: grid; gap: 18px; }
.fiche-media { min-width: 0; }
.fiche-media .produit-image { margin: 0; background: #fff; border: 1.5px solid var(--graphite); border-radius: 4px; padding: 12px; }
.fiche-infos .produit-pourqui { font-size: 18px; }
.fiche .produit-action { margin: 6px 0 4px; }
.fiche .produit-action .bouton:first-child { font-size: 19px; padding: 12px 22px; }
.fiche .produit-cols { border-top: 1px dashed #bdb39a; padding-top: 12px; margin-top: 14px; }
.fiche-specs { margin-top: 6px; }
.fiche-specs summary { cursor: pointer; font-family: var(--mono); font-size: 13px; color: var(--sauge-fonce); padding: 6px 0; }
@media (min-width: 760px) { .fiche-grille { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 28px; } }

/* Dessin à l'échelle : papier millimétré, tapis graphite, règle de 2 m */
.silhouette { margin: 0; background-color: #fff; border: 1.5px solid var(--graphite); border-radius: 4px; padding: 12px 12px 8px;
  background-image: linear-gradient(rgba(59,90,68,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(59,90,68,.09) 1px, transparent 1px); background-size: 20px 20px; }
.silhouette svg { display: block; width: 100%; height: auto; overflow: visible; }
.silhouette figcaption { font-family: var(--mono); font-size: 11px; color: var(--gris); margin-top: 6px; line-height: 1.4; }
.sil-cadre { fill: var(--graphite); }
.sil-bande { stroke: var(--sauge); stroke-width: 2; }
.sil-sol { stroke: var(--graphite); stroke-width: 1.5; }
.sil-regle line { stroke: var(--graphite); stroke-width: 1; }
.sil-regle text, .sil-cote text, .sil-txt, .sil-note { font-family: var(--mono); font-size: 11px; fill: var(--graphite); }
.sil-cote text { fill: var(--terracotta-texte); font-weight: 500; }
.sil-note { fill: var(--sauge-fonce); }
.sil-dessus { fill: var(--graphite-2); }
.sil-surface { fill: none; stroke: var(--jaune); stroke-width: 1.5; stroke-dasharray: 5 3; }
.sil-txt { fill: var(--papier); font-size: 10px; }

/* Tableau en cartes sur mobile (plus de défilement latéral) */
@media (max-width: 640px) {
  .tableau-cartes { overflow: visible; border: 0; background: none; }
  .tableau-cartes table, .tableau-cartes tbody, .tableau-cartes tr, .tableau-cartes th, .tableau-cartes td { display: block; width: auto; }
  .tableau-cartes thead { display: none; }
  .tableau-cartes tbody tr { background: var(--papier); border: 1.5px solid var(--graphite); border-radius: 6px; margin: 0 0 12px; padding: 10px 12px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .tableau-cartes tbody tr[hidden] { display: none; }
  .tableau-cartes tbody th { grid-column: 1 / -1; position: static; min-width: 0; max-width: none; box-shadow: none; padding: 0; font-size: 19px; }
  .tableau-cartes td { padding: 0; font-size: 15px; border: 0; }
  .tableau-cartes td::before { content: attr(data-col); display: block; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); }
}

/* Ce que disent les acheteurs (bloc écrit par la rédaction : <div class="acheteurs">) */
.acheteurs { display: grid; gap: 12px; margin: 16px 0; }
@media (min-width: 640px) { .acheteurs { grid-template-columns: 1fr 1fr; } }
.acheteurs > div { background: var(--papier); border: 1.5px dashed var(--graphite); border-radius: 6px; padding: 10px 14px; }
.acheteurs p:first-child { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 4px; }
.acheteurs ul { margin: 0; padding-left: 18px; font-size: 17px; }
.acheteurs-source { grid-column: 1 / -1; font-family: var(--mono); font-size: 12px; color: var(--gris); margin: 0; }
.choix-carte:not(.choix-premier) .bouton { font-size: 15px; padding: 8px 10px; }
.sil-encombrement { fill: rgba(59,90,68,.08); stroke: var(--graphite); stroke-width: 1.5; stroke-dasharray: 6 4; }
@media (min-width: 760px) { .fiche-sans-media { grid-template-columns: minmax(0, 1fr); } }
