/* VERSION TÉLÉPHONE v1 (25 nov. 2026, accord du propriétaire « Fais le », exception au gel Black Friday).
   Chargé par build.js après style.css et fx/filtres.css, seulement si data/telephone-v1.on existe. Tout est sous 600 px : rien ne change sur ordinateur.
   Source de travail : apercu-mobile/mobile.css (aperçu local). */

@media (max-width: 600px) {
  /* 1. Comparateur en cartes compactes (2 lignes par boutique) */
  .price-table.m-cards, .price-table.m-cards tbody { display: block; }
  .price-table.m-cards thead { display: none; }
  .price-table.m-cards tr { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "info prix go" "info ecart go"; align-items: center; column-gap: 10px; row-gap: 2px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .price-table.m-cards tr:last-child { border-bottom: 0; }
  .price-table.m-cards tr.best { background: rgba(255, 204, 0, .07); }
  .price-table.m-cards td { display: block; padding: 0 !important; border: 0 !important; background: none !important; }
  .price-table.m-cards td.rank, .price-table.m-cards td.pt-d { display: none; }
  .price-table.m-cards td:nth-child(2) { grid-area: info; min-width: 0; line-height: 1.25; }
  .price-table.m-cards td.pt-price { grid-area: prix; font-size: 17px; text-align: right; white-space: nowrap; }
  .price-table.m-cards td.pt-diff { grid-area: ecart; text-align: right; font-size: 12.5px; white-space: nowrap; }
  .price-table.m-cards td.pt-diff .best-flag { font-size: 11px; padding: 2px 6px; }
  .price-table.m-cards td.pt-go { grid-area: go; }
  .price-table.m-cards td.pt-go .btn { padding: 10px 14px; min-height: 40px; display: inline-flex; align-items: center; }
  .price-table.m-cards .tag.shop { margin: 0 0 3px; }
  .price-table.m-cards .pt-tag { display: inline; background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; font-size: 11.5px; }
  .price-table.m-cards .pt-tag + .pt-tag::before { content: " · "; color: var(--muted); }
  .price-table.m-cards .pt-tag .pt-i { display: none; }
  .price-table.m-cards .pt-dm { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
  .price-table.m-cards td:nth-child(2) > .tag.shop { display: table; }
  .price-table.m-cards td:nth-child(2) > .tag.shop + .pt-tag::before { content: none; }

  /* 2. Accueil : blocs « Promos » en bandes qui défilent sur le côté */
  .grid-section.uni .home-grid { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .grid-section.uni .home-grid::-webkit-scrollbar { display: none; }
  .grid-section.uni .home-grid > .hc { display: block !important; flex: 0 0 158px; scroll-snap-align: start; }
  .grid-section.uni .home-grid .card { display: flex; flex-direction: column; height: 100%; }
  .grid-section.uni .home-grid .card .thumb { width: 100%; height: 150px; flex: none; }
  .grid-section.uni .home-grid .card .thumb img { max-height: 126px; max-width: 80%; }
  .grid-section.uni .home-grid .card .body { padding: 10px 10px 12px; gap: 5px; }
  .grid-section.uni .home-grid .card h3 { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .grid-section.uni .home-grid .card .cat-tag { font-size: 11px; }
  .grid-section.uni .home-grid .card .uni-meta { font-size: 11.5px; }
  .grid-section.uni .home-grid .card .price { font-size: 19px; }
  .grid-section.uni .home-grid .card .old { font-size: 12px; }

  /* 4. Petits défauts */
  .card .uni-meta, .card .economy, .card [class*="eco"] { white-space: normal; overflow-wrap: anywhere; }

  /* 5. Carrousel « À la une » : flèches et points SOUS la vignette (plus jamais sur le bouton) */
  .une { height: auto !important; max-height: none !important; }
  .une-track { height: auto; }
  .une-slide { padding-bottom: 18px !important; min-height: 0; }
  .une-ctrl { position: static; padding: 10px 0 12px; background: var(--panel); border-top: 1px solid rgba(255, 255, 255, .06); }
  .une-ctrl .une-nav { width: 38px; height: 38px; }
  .une-txt { gap: 8px; }
  .une-badge { max-width: 100%; text-wrap: balance; line-height: 1.25; }

  /* 6. Titres : centrés et équilibrés sur plusieurs lignes */
  h1, h2, h3, .une-title, .plat-name { text-wrap: balance; }
  main h1, .hero-head h1, .hh-txt h1 { text-align: center; }
  .m-centre { text-align: center !important; text-wrap: balance; margin-inline: auto !important; }
  a.m-centre, span.m-centre { display: block; }
  .m-centre > * { text-align: center; justify-content: center; margin-inline: auto; }
  .bf-banner, .bf-banner * { text-align: left; }
  /* En-tête des guides et articles : pastille, titre et date centrés ensemble */
  .article-head, .guide-head, .art-head, .g-head-txt { text-align: center; }
  .g-head-txt { display: flex; flex-direction: column; align-items: center; }
  h1 ~ .meta, .article-head .meta, .guide-head .meta { text-align: center; text-wrap: balance; }
  .hero-head, .hh-txt { text-align: center; justify-content: center; }
  .plat-panel > .plat-name, .plat-panel > .plat-release, .plat-panel > .pt-summary, .cmp-box > .pt-title { text-align: center; text-wrap: balance; }
  .pt-summary { text-wrap: pretty; }
  p { text-wrap: pretty; }

  /* 7. Fiche : pastilles et titre centrés, alignés */
  .tags { justify-content: center; text-align: center; display: flex; flex-wrap: wrap; gap: 8px; }
  .tags > * { margin: 0 !important; }
  .tags + h1 { text-align: center; margin-top: 12px; }
  .quick-price { text-align: center; justify-content: center; }
  .tags > :not([class*="genre"]):not(.badge):not([class*="cib"]):not([class*="new"]) { border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; }
  .game-synopsis + .syn-more, .syn-more { display: block; margin-inline: auto; }
  .plat-picker .plat-btn { text-align: center; }

  /* 8. Boutons de tri (pastilles) centrés partout */
  .filters, .dr-filters, .chips, .filter-chips { justify-content: center; }

  /* 9. Flèches sous les bandes qui défilent (baisses, promos, Pré-BF) */
  .m-fleches { display: flex; justify-content: center; gap: 14px; margin: 10px 0 2px; }
  .m-fleches button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: var(--panel-2, #1b1f2a); color: #fff; font-size: 22px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; padding: 0 0 2px; cursor: pointer; transition: opacity .2s; }
  .car > .car-btn { display: none !important; }
  .hero-grid .dr-list, .car-track { scrollbar-width: none; }
  .hero-grid .dr-list::-webkit-scrollbar, .car-track::-webkit-scrollbar { display: none; }
  .m-fleches button:disabled { opacity: .3; cursor: default; }

  /* 12. Zones de toucher : au moins ~36-40 px pour le doigt, SANS changer le dessin des boutons
     (zone invisible autour du bouton, ou marge intérieure compensée pour les liens texte) */
  .une-dots button, .dr-filters .chip, .chips .chip, .console-switch a, header .logo { position: relative; }
  .une-ctrl .une-dots { gap: 14px; }
  .une-dots button::after { content: ""; position: absolute; inset: -14px -8px; }
  .dr-filters .chip::after, .chips .chip::after { content: ""; position: absolute; inset: -6px 0; }
  .console-switch a::after { content: ""; position: absolute; inset: -6px 0; }
  header .logo::after { content: ""; position: absolute; inset: -6px 0; }
  main p a, footer .links a, .crumbs a, .dr-head a, .section-title a, .see-all, .uni-foot a, .pt-missing a { padding-block: 8px; margin-block: -8px; }
  footer .links a { display: inline-block; padding: 8px 2px; margin: -4px 0; }
  .syn-more { padding: 10px 16px !important; margin-top: -6px !important; }
  .dr-tri, select { min-height: 36px; }
  .crumbs { text-align: center; }
  .fx-search input { align-self: stretch; }
  .dr-filters .dr-sort { flex-basis: 100%; justify-content: center !important; margin-inline: 0 !important; }
  .dr-meta time { white-space: nowrap; }
  .nav-top { position: relative; }
  .nav-top::after { content: ""; position: absolute; inset: -4px 0; }
  .see-all { padding-block: 10px !important; margin-block: -10px !important; }
}
