/*
Theme Name:       Lancepierres
Theme URI:        https://lance-pierres.fr/
Author:           Lance-pierres.fr
Author URI:       https://lance-pierres.fr/
Description:      Thème classique pixel-perfect pour Lance-pierres.fr — spécialiste lance-pierres en France. WooCommerce ready, compatible SEOPress, optimisé pour o2switch. Charte Outdoor V7 (vert identité + terracotta action) avec variantes de palette via le Customizer.
Version:          1.2.1
Requires at least: 6.5
Tested up to:     6.7
Requires PHP:     8.1
License:          GPL-2.0-or-later
License URI:      https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:      lancepierres
Domain Path:      /languages
Tags:             e-commerce, woocommerce, custom-colors, custom-menu, custom-logo, featured-images, full-width-template, threaded-comments, translation-ready, blog
*/

/* ──────────────────────────────────────────────────────────
   NB : Ce fichier ne contient PAS les styles du site.
   Les styles sont chargés depuis assets/css/site.css
   (fichier extrait tel quel du prototype HTML, pixel-perfect).
   On garde ici uniquement les overrides spécifiques WP/WC.
   ────────────────────────────────────────────────────────── */

/* WP admin bar offset (sticky header) */
html[lang] body.admin-bar header.site { top: 32px; }
@media screen and (max-width: 782px) {
  html[lang] body.admin-bar header.site { top: 46px; }
}

/* Alignement de bloc Gutenberg dans le contenu d'une page classique */
.alignwide  { max-width: 1280px; margin-left: auto; margin-right: auto; }
.alignfull  { max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft  { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.alignnone  { margin: 0 0 1em 0; }

/* Captions et galeries WP par défaut */
.wp-caption-text,
.gallery-caption {
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 6px;
}

/* Sticky offset (used when admin bar is on) */
body.admin-bar .mobile-menu { padding-top: 56px; }

/* Réglette de la barre de recherche WP par défaut */
.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* Skip link (a11y) */
.skip-link.screen-reader-text:focus {
  background-color: var(--cream-50);
  color: var(--noir-950);
  clip: auto !important;
  clip-path: none;
  display: block;
  font: 700 13px/1 Inter, sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 14px 22px;
  position: fixed;
  left: 16px;
  top: 16px;
  text-decoration: none;
  width: auto;
  z-index: 100000;
  outline: 2px solid var(--accent-500);
}

/* Pagination commentaires/posts */
.lp-pagination {
  display: flex;
  gap: 8px;
  margin: 48px 0;
  justify-content: center;
}
.lp-pagination .page-numbers {
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  font: 600 12px/1 'Inter', sans-serif;
  color: var(--gray-700);
  transition: all .2s;
  border-radius: 2px;
}
.lp-pagination .page-numbers:hover,
.lp-pagination .page-numbers.current {
  background: var(--accent-500);
  border-color: var(--accent-500);
  color: var(--cream-100);
}
