/* ========================================================
   STV1000 - direction sobre boutique pro armurerie
   Palette anthracite + accent ocre minimal
   ======================================================== */

:root {
  --stv-bg: #ffffff;
  --stv-bg-soft: #f7f5f1;
  --stv-bg-dark: #1a1815;
  --stv-text: #1a1815;
  --stv-text-muted: #6b6863;
  --stv-text-light: #9b9892;
  --stv-border: #e8e4dc;
  --stv-border-strong: #d4cfc4;
  --stv-accent: #8b6f47;
  --stv-accent-dark: #6b5536;
  --stv-radius: 2px;
  --stv-shadow-soft: 0 1px 0 rgba(0,0,0,.04);
  --stv-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --stv-h-header: 64px;
}

/* RESET / BASELINE -------------------------------------- */
.stv1000-theme,
.stv1000-theme body,
.stv1000-theme .ast-container,
.stv1000-theme #content {
  font-family: var(--stv-font);
  color: var(--stv-text);
  background: var(--stv-bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.stv1000-theme h1, .stv1000-theme h2, .stv1000-theme h3,
.stv1000-theme h4, .stv1000-theme h5, .stv1000-theme h6 {
  font-family: var(--stv-font);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--stv-text);
}

.stv1000-theme h1 { font-size: 2rem; line-height: 1.15; }
.stv1000-theme h2 { font-size: 1.4rem; line-height: 1.2; }
.stv1000-theme h3 { font-size: 1.05rem; line-height: 1.3; }

.stv1000-theme a { color: var(--stv-text); text-decoration: none; }
.stv1000-theme a:hover { color: var(--stv-accent); }

/* Boutons globaux : sobre, plat, bordure fine */
.stv1000-theme .wp-block-button__link,
.stv1000-theme .button,
.stv1000-theme button[type="submit"],
.stv1000-theme input[type="submit"],
.stv1000-theme .ast-button {
  background: var(--stv-text);
  color: #fff;
  border: 1px solid var(--stv-text);
  border-radius: var(--stv-radius);
  padding: 10px 22px;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: none;
  transition: background .15s ease, color .15s ease;
}
.stv1000-theme .wp-block-button__link:hover,
.stv1000-theme .button:hover,
.stv1000-theme button[type="submit"]:hover {
  background: var(--stv-accent);
  border-color: var(--stv-accent);
  color: #fff;
}

.stv1000-theme .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--stv-text);
  border: 1px solid var(--stv-border-strong);
}
.stv1000-theme .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--stv-text);
  color: #fff;
  border-color: var(--stv-text);
}

/* Reset complet de la chaine de wrappers Astra :
   #content > #primary > #main > article > .entry-header + .entry-content
   On vire tous les paddings/margins/max-width pour que le contenu prenne
   toute la largeur et commence pile sous le header. */
.stv1000-theme #content,
.stv1000-theme #content > .ast-container,
.stv1000-theme #primary,
.stv1000-theme #main,
.stv1000-theme .site-main,
.stv1000-theme .content-area,
.stv1000-theme article,
.stv1000-theme .ast-article-single,
.stv1000-theme .entry-header,
.stv1000-theme .entry-content,
.stv1000-theme .ast-page-builder-template .entry-content {
  display: block;
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
}
/* Neutralise les marges top des premiers blocs de page */
.stv1000-theme article > *:first-child,
.stv1000-theme .entry-content > *:first-child,
.stv1000-theme .entry-header + .entry-content > *:first-child {
  margin-top: 0 !important;
}
.stv1000-theme .entry-header { display: none; }

/* Astra cale les blocs "alignfull" via une logique container — on force
   plein largeur pour les blocs cover hero des pages secondaires */
.stv1000-theme .entry-content > .wp-block-cover.alignfull,
.stv1000-theme .entry-content > .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Header en position: sticky -> pas besoin de padding-top sur #content
   (le header reste dans le flow). On force juste tous les paddings/margins
   parasites a 0 avec !important. */
.stv1000-theme #content,
.stv1000-theme #primary,
.stv1000-theme #main,
.stv1000-theme .site-main,
.stv1000-theme article {
  padding: 0 !important;
  margin: 0 !important;
}
.stv1000-theme.page:not(.home) .entry-content {
  padding-bottom: 48px !important;
}

/* Cards en colonnes : forcer meme hauteur entre colonnes paralleles */
.stv1000-theme .wp-block-columns.is-layout-flex {
  align-items: stretch;
}
.stv1000-theme .wp-block-columns.is-layout-flex > .wp-block-column {
  display: flex;
  flex-direction: column;
}
.stv1000-theme .wp-block-columns.is-layout-flex > .wp-block-column > .wp-block-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}
/* CTA en bas de card aligne en pied */
.stv1000-theme .wp-block-columns.is-layout-flex > .wp-block-column > .wp-block-group > .wp-block-buttons:last-child,
.stv1000-theme .wp-block-columns.is-layout-flex > .wp-block-column > .wp-block-group > .wp-block-button:last-child {
  margin-top: auto;
}

/* HEADER ------------------------------------------------- */
.stv-header {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid transparent;
  height: calc(var(--stv-h-header) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: border-box;
  transition: border-color .2s ease, background .2s ease;
}
.stv-header.is-stuck {
  background: #ffffff;
  border-bottom-color: var(--stv-border);
}

.stv-header-inner {
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.stv-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.stv-brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stv-text);
}
.stv-brand-baseline {
  font-size: 0.65rem;
  color: var(--stv-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
}

.stv-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.stv-menu {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0; padding: 0;
  white-space: nowrap;
}
.stv-menu li { margin: 0; }
.stv-menu a {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stv-text);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
@media (max-width: 1200px) {
  .stv-menu { gap: 16px; }
  .stv-menu a { font-size: 0.72rem; letter-spacing: 0.04em; }
}
.stv-menu a:hover,
.stv-menu .current-menu-item > a {
  color: var(--stv-text);
  border-bottom-color: var(--stv-accent);
}

.stv-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.stv-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--stv-border);
  border-radius: var(--stv-radius);
  padding: 0 6px 0 12px;
  height: 38px;
  background: #fff;
  transition: border-color .15s ease;
}
.stv-search:focus-within { border-color: var(--stv-accent); }
.stv1000-theme .stv-search input[type="search"] {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.9rem;
  width: 230px;
  transition: width .2s ease;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--stv-text);
  font-family: var(--stv-font);
  height: auto !important;
  min-height: 0 !important;
}
.stv1000-theme .stv-search input[type="search"]:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.stv1000-theme .stv-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.stv1000-theme .stv-search button,
.stv1000-theme .stv-search button[type="submit"] {
  background: transparent !important;
  color: var(--stv-text-muted) !important;
  border: none !important;
  padding: 6px 8px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  height: auto !important;
  font-size: inherit !important;
  cursor: pointer;
  box-shadow: none !important;
}
.stv1000-theme .stv-search button:hover {
  color: var(--stv-accent) !important;
  background: transparent !important;
}

.stv-account-link,
.stv-cart-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--stv-text);
  padding: 6px 4px;
  position: relative;
}
.stv-account-link span,
.stv-cart-link .stv-cart-count {
  font-size: 0.78rem;
}
.stv-account-link:hover,
.stv-cart-link:hover { color: var(--stv-accent); }

.stv-cart-count {
  background: var(--stv-text);
  color: #fff;
  font-size: 0.65rem;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-weight: 600;
  letter-spacing: 0;
}
.stv-cart-count[data-count="0"] { display: none; }

.stv-burger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.stv-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--stv-text);
}

/* HOME --------------------------------------------------- */
.stv-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  background-color: var(--stv-bg-dark);
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.stv-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 65%, rgba(0,0,0,0.85) 100%);
}
.stv-hero-inner {
  position: relative;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 28px 36px;
}
.stv-hero-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  border-left: 2px solid var(--stv-accent);
  padding-left: 10px;
  margin-bottom: 18px;
}
.stv-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 16px;
  max-width: 720px;
  letter-spacing: -0.015em;
}
.stv-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 0 28px;
}
.stv-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.stv-btn {
  display: inline-block;
  padding: 12px 26px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: var(--stv-radius);
  border: 1px solid;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.stv-btn-primary {
  background: #fff;
  color: var(--stv-text);
  border-color: #fff;
}
.stv-btn-primary:hover {
  background: var(--stv-text);
  color: #fff;
  border-color: var(--stv-text);
}
.stv-btn-ghost {
  background: var(--stv-accent);
  color: #fff;
  border-color: var(--stv-accent);
}
.stv-btn-ghost:hover {
  background: var(--stv-text);
  color: #fff;
  border-color: var(--stv-text);
}

/* Bandeau infos discret sous hero */
.stv-bar {
  background: var(--stv-text);
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid #000;
}
.stv-bar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stv-bar-inner span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.stv-bar-inner svg { stroke: var(--stv-accent); }

/* Sections home : compactes */
.stv-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px 28px;
}
.stv-section-tight {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 28px;
}
.stv-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 24px;
  flex-wrap: wrap;
}
.stv-section-head h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}
.stv-section-head .stv-eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stv-text-muted);
  margin-bottom: 6px;
}
.stv-section-head a.stv-more {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stv-text);
  border-bottom: 1px solid var(--stv-text);
  padding-bottom: 2px;
}

/* Grid catégories : tuiles serrées avec image de fond + overlay sombre */
.stv-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--stv-border);
  border: 1px solid var(--stv-border);
}
.stv-cat-grid > .stv-cat-card {
  background: var(--stv-bg-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform .3s ease;
}
/* Overlay sombre teinte anthracite, plus dense en bas pour lisibilite */
.stv-cat-grid > .stv-cat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,24,21,0.35) 0%, rgba(26,24,21,0.78) 70%, rgba(26,24,21,0.92) 100%);
  z-index: 0;
  transition: background .3s ease;
}
/* Filtre desaturate leger pour rester dans la palette sobre */
.stv-cat-grid > .stv-cat-card.has-image {
  filter: none;
}
.stv-cat-grid > .stv-cat-card.has-image::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--stv-bg-dark);
  mix-blend-mode: saturation;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}
.stv-cat-grid > .stv-cat-card > * {
  position: relative;
  z-index: 1;
}
.stv-cat-grid > .stv-cat-card:hover::before {
  background: linear-gradient(180deg, rgba(26,24,21,0.25) 0%, rgba(139,111,71,0.85) 100%);
}
.stv-cat-grid .stv-cat-count {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.stv-cat-grid .stv-cat-name {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.stv-cat-grid .stv-cat-arrow {
  font-size: 1.3rem;
  color: #fff;
  align-self: flex-end;
  transform: translateX(0);
  transition: transform .2s ease;
}
.stv-cat-grid > .stv-cat-card:hover .stv-cat-arrow { transform: translateX(4px); }

/* FOOTER ------------------------------------------------- */
.stv-footer {
  background: var(--stv-bg-dark);
  color: rgba(255,255,255,0.78);
  font-size: 0.85rem;
}
.stv-footer-top {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 28px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.stv-footer h4 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
  font-weight: 500;
}
.stv-footer p, .stv-footer ul, .stv-footer li {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.8;
}
.stv-footer ul li a {
  color: rgba(255,255,255,0.78);
  border-bottom: 1px solid transparent;
}
.stv-footer ul li a:hover {
  color: #fff;
  border-bottom-color: var(--stv-accent);
}
.stv-footer-brand .stv-brand-name {
  color: #fff;
  font-size: 1.15rem;
}
.stv-footer-brand .stv-brand-baseline {
  color: rgba(255,255,255,0.55);
}
.stv-footer-brand p {
  margin-top: 14px;
  color: rgba(255,255,255,0.6);
  max-width: 320px;
  font-size: 0.82rem;
}
.stv-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 28px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}
.stv-footer-bottom-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* WOOCOMMERCE - GRID PRODUITS DENSE -------------------- */
.stv1000-theme.woocommerce ul.products,
.stv1000-theme .woocommerce ul.products,
.stv1000-theme .wc-block-grid__products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--stv-border);
  border: 1px solid var(--stv-border);
  margin: 0;
  padding: 0;
  list-style: none;
}
.stv1000-theme.woocommerce ul.products li.product,
.stv1000-theme .wc-block-grid__product {
  background: var(--stv-bg);
  padding: 22px;
  margin: 0 !important;
  width: auto !important;
  float: none !important;
  display: flex;
  flex-direction: column;
  transition: background .2s ease;
}
.stv1000-theme.woocommerce ul.products li.product:hover,
.stv1000-theme .wc-block-grid__product:hover {
  background: var(--stv-bg-soft);
}
.stv1000-theme.woocommerce ul.products li.product img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--stv-bg);
  margin: 0 0 14px;
}
.stv1000-theme.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  color: var(--stv-text);
  padding: 0 !important;
  margin: 0 0 6px !important;
}
.stv1000-theme.woocommerce ul.products li.product .price {
  font-size: 0.9rem !important;
  color: var(--stv-text) !important;
  font-weight: 600 !important;
  margin: 0 0 10px !important;
}
.stv1000-theme.woocommerce ul.products li.product .button {
  align-self: flex-start;
  font-size: 0.7rem;
  padding: 8px 14px;
  background: transparent;
  color: var(--stv-text);
  border: 1px solid var(--stv-border-strong);
}
.stv1000-theme.woocommerce ul.products li.product .button:hover {
  background: var(--stv-text);
  color: #fff;
  border-color: var(--stv-text);
}
.stv1000-theme.woocommerce ul.products li.product .onsale {
  background: var(--stv-accent);
  color: #fff;
  border-radius: 0;
  padding: 4px 8px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-width: 0;
  min-height: 0;
  line-height: 1;
}

/* Single product : sobre */
.stv1000-theme.single-product div.product .product_title {
  font-size: 1.6rem;
}
.stv1000-theme.single-product div.product .price {
  font-size: 1.3rem;
  color: var(--stv-text);
  font-weight: 600;
}

/* RESPONSIVE -------------------------------------------- */
@media (max-width: 1024px) {
  .stv-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .stv1000-theme.woocommerce ul.products,
  .stv1000-theme .wc-block-grid__products { grid-template-columns: repeat(3, 1fr); }
  .stv-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --stv-h-header: 56px; }
  .stv-header-inner { padding: 0 16px; gap: 12px; }
  .stv-brand-baseline { display: none; }
  .stv-search { display: none; }
  .stv-account-link span { display: none; }
  .stv-burger { display: flex; }

  .stv-nav {
    position: fixed;
    top: var(--stv-h-header);
    left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--stv-border);
    border-bottom: 1px solid var(--stv-border);
    transform: translateY(-110%);
    transition: transform .2s ease;
    padding: 12px 20px;
    z-index: 99;
  }
  .stv-nav.is-open { transform: translateY(0); }
  .stv-menu { flex-direction: column; gap: 0; }
  .stv-menu li { border-bottom: 1px solid var(--stv-border); }
  .stv-menu li:last-child { border-bottom: none; }
  .stv-menu a { padding: 12px 0; display: block; }

  .stv-hero { min-height: 50vh; }
  .stv-section { padding: 40px 20px; }
  .stv-cat-grid { grid-template-columns: 1fr; }

  .stv1000-theme.woocommerce ul.products,
  .stv1000-theme .wc-block-grid__products { grid-template-columns: repeat(2, 1fr); }

  .stv-footer-top { grid-template-columns: 1fr; gap: 28px; padding: 40px 20px 28px; }
  .stv-footer-bottom-inner { flex-direction: column; }
}


/* ===================================================================
   STV1000 — Menu "Nos rayons" avec panneau au survol (facon Meyson)
   =================================================================== */
.widget.widget_stv_rayons, .stv-rayons { overflow: visible; }
.ast-left-sidebar .widget-area, .ast-left-sidebar .sidebar-main { overflow: visible; }
.stv-rayons ul { list-style: none; margin: 0; padding: 0; }
.stv-rayons { position: relative; }
.stv-rayons > ul > li { position: static; border-bottom: 1px solid #eee4d4; }
.stv-rayons > ul > li:last-child { border-bottom: 0; }
.stv-rayons a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 10px 10px; color: #23201a; text-decoration: none; font-size: 0.95em; }
.stv-rayons > ul > li > a { font-weight: 600; }
.stv-rayons a:hover { color: #c98a3a; }
.stv-rayons li.actif > a { color: #c98a3a; }
.stv-rayons .cnt { color: #a39a8a; font-size: 0.82em; font-weight: 400; }
.stv-rayons .stv-sous { display: none; }
.stv-rayons .stv-sous-titre { font-weight: 700; font-size: 0.8em; text-transform: uppercase;
  letter-spacing: 0.06em; color: #a08040; padding: 8px 14px 4px; }
.stv-toggle { display: none; }

/* --- ordinateur : panneau flottant au survol --- */
@media (min-width: 922px) {
  .stv-rayons > ul > li:hover, .stv-rayons > ul > li.hov { background: #faf5ec; }
  body.ast-left-sidebar #secondary { z-index: 60; }
  .stv-rayons > ul > li.has-sub.hov > .stv-sous {
    display: block; position: absolute; left: 100%; top: 0; min-width: 300px; min-height: 100%;
    background: #ffffff; border: 1px solid #e7dfd2; border-left: 3px solid #c98a3a;
    border-radius: 0 8px 8px 0; box-shadow: 0 10px 28px rgba(40, 30, 10, 0.16);
    padding: 4px 0 8px; z-index: 999; }
  .stv-rayons .stv-sous li a { padding: 8px 14px; }
}

/* --- téléphone / tablette : depliage a l'appui --- */
@media (max-width: 921px) {
  .stv-rayons > ul > li { display: flex; flex-wrap: wrap; align-items: center; }
  .stv-rayons > ul > li > a { flex: 1; }
  .stv-toggle { display: inline-block; background: none; border: 0; cursor: pointer;
    color: #c98a3a; font-size: 1.05em; padding: 6px 12px; transition: transform 0.2s; }
  .stv-rayons li.open > .stv-toggle { transform: rotate(180deg); }
  .stv-rayons li.open > .stv-sous { display: block; flex-basis: 100%; padding-left: 14px; }
  .stv-rayons .stv-sous-titre { display: none; }
}

/* ===================================================================
   STV1000 — Grille produits compacte (vignettes moins grosses)
   =================================================================== */
@media (min-width: 922px) {
  .woocommerce.archive ul.products li.product,
  .woocommerce-page.archive ul.products li.product { margin-bottom: 1.4em; }
  .woocommerce.archive ul.products li.product .woocommerce-loop-product__title,
  .woocommerce-page.archive ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.88em; line-height: 1.35; }
  .woocommerce.archive ul.products li.product .price,
  .woocommerce-page.archive ul.products li.product .price { font-size: 0.92em; }
  .woocommerce.archive ul.products li.product .button,
  .woocommerce-page.archive ul.products li.product .button { font-size: 0.8em; padding: 0.55em 1em; }
  .woocommerce.archive ul.products li.product img,
  .woocommerce-page.archive ul.products li.product img {
    aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
  .woocommerce.archive ul.products li.product .ast-loop-product__link + *,
  .woocommerce.archive ul.products li.product .astra-shop-summary-wrap { padding-top: 0.4em; }
}


/* ===================================================================
   STV1000 — Menu rayons v2 : menu fixe (sticky) + vignettes reduites
   + mobile : barre "Nos rayons" repliee en haut
   =================================================================== */

/* --- ordinateur : le menu reste fixe pendant qu'on fait defiler les produits --- */
@media (min-width: 922px) {
  body.ast-left-sidebar #secondary { position: sticky; top: 32px; align-self: start; }

  /* vignettes encore plus compactes */
  .woocommerce.archive ul.products li.product img,
  .woocommerce-page.archive ul.products li.product img {
    max-height: 170px; width: auto; margin-left: auto; margin-right: auto; }
  .woocommerce.archive ul.products li.product .woocommerce-loop-product__title,
  .woocommerce-page.archive ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.84em; }
  .woocommerce.archive ul.products li.product,
  .woocommerce-page.archive ul.products li.product { margin-bottom: 1em; }
}

/* --- telephone : les produits d'abord, le menu en barre repliee --- */
@media (max-width: 921px) {
  /* on masque Recherche et Marques (gain de place, la recherche reste dans l'entete) */
  #secondary .widget_woocommerce_product_search,
  #secondary .widget_product_search,
  #secondary .widget_woocommerce_layered_nav,
  #secondary .widget_layered_nav { display: none; }
  #secondary { margin-bottom: 10px; }

  /* la barre "Nos rayons" : repliee par defaut, un appui l'ouvre */
  .widget_stv_rayons .widget-title { cursor: pointer; display: flex;
    justify-content: space-between; align-items: center; gap: 10px;
    background: #faf5ec; border: 1px solid #e7dfd2; border-radius: 8px;
    padding: 11px 14px; margin-bottom: 0; font-size: 1em; }
  .widget_stv_rayons .widget-title::after { content: "▾"; color: #c98a3a;
    transition: transform 0.2s; }
  .widget_stv_rayons.stv-open .widget-title::after { transform: rotate(180deg); }
  .widget_stv_rayons .stv-rayons { display: none; }
  .widget_stv_rayons.stv-open .stv-rayons { display: block;
    border: 1px solid #e7dfd2; border-top: 0; border-radius: 0 0 8px 8px;
    padding: 4px 10px 8px; background: #fff; }
}

/* ===================================================================
   STV1000 — Mise en page 2 colonnes de la boutique (menu a gauche)
   Le gabarit du theme enfant n emballe pas primary/secondary comme
   Astra l attend : on pose donc la grille nous-memes.
   =================================================================== */
@media (min-width: 922px) {
  body.ast-left-sidebar main#content.site-content {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
  }
  body.ast-left-sidebar #secondary { width: auto; margin: 0; }
  body.ast-left-sidebar #primary  { width: auto; margin: 0; }
}
@media (max-width: 921px) {
  body.ast-left-sidebar main#content.site-content { display: block; }
}


/* ===================================================================
   STV1000 — Recherche mise en valeur (23/07)
   =================================================================== */
/* bandeau : la barre s'elargit quand on clique dedans */
.stv1000-theme .stv-search input[type="search"]:focus { width: 300px; }
@media (max-width: 1200px) {
  .stv1000-theme .stv-search input[type="search"] { width: 160px; }
  .stv1000-theme .stv-search input[type="search"]:focus { width: 200px; }
}

/* recherche du menu mobile : cachee sur ordinateur */
.stv-search-nav { display: none; }
@media (max-width: 768px) {
  .stv-nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .stv-nav .stv-search-nav { display: flex; align-items: center; gap: 6px;
    order: -1; margin: 2px 0 12px; padding: 0 4px 0 12px; height: 42px;
    background: #fff; border: 1px solid var(--stv-border);
    border-radius: var(--stv-radius); }
  .stv-nav .stv-search-nav:focus-within { border-color: var(--stv-accent); }
  .stv1000-theme .stv-search-nav input[type="search"] {
    border: none !important; background: transparent !important;
    box-shadow: none !important; outline: none !important;
    flex: 1; min-width: 0; font-size: 0.95rem; padding: 0 !important;
    margin: 0 !important; height: auto !important; min-height: 0 !important;
    color: var(--stv-text); font-family: var(--stv-font); }
  .stv1000-theme .stv-search-nav button {
    background: transparent !important; border: none !important;
    color: var(--stv-text-muted) !important; padding: 6px 10px !important;
    height: auto !important; box-shadow: none !important; cursor: pointer; }
}


/* ===================================================================
   STV1000 — Logo image dans le bandeau et le pied de page (24/07)
   =================================================================== */
.stv-brand { text-decoration: none; }
.stv-brand-logo { height: 46px !important; width: auto !important; max-width: none !important; display: block; }
.stv-footer-logo { height: 44px !important; width: auto !important; max-width: none !important; display: block;
  background: #fff; padding: 7px 11px; border-radius: 8px; margin-bottom: 6px; }
@media (max-width: 768px) {
  .stv-brand-logo { height: 34px !important; }
  .stv-footer-logo { height: 40px !important; }
}


/* ===================================================================
   STV1000 — Fallback garanti mobile : espace fixe pour la barre d'etat
   (Android bord-a-bord ; le logo reste sous la barre des le 1er affichage)
   =================================================================== */
@media (max-width: 768px) {
  .stv-header {
    padding-top: 30px;
    padding-top: max(env(safe-area-inset-top, 0px), 30px);
    height: calc(var(--stv-h-header) + 30px);
    height: calc(var(--stv-h-header) + max(env(safe-area-inset-top, 0px), 30px));
  }
}


/* ===================================================================
   STV1000 - Bloc reglementaire par categorie legale (fiche produit)
   =================================================================== */
.stv-reglemente { border-left: 4px solid #c98a3a; background: #fbf4e9;
  padding: 12px 16px; margin: 16px 0; font-size: .95em; line-height: 1.55; color: #3a352c; }
.stv-reglemente-titre { font-weight: 700; color: #8a5a12; margin-bottom: 6px; }
.stv-reglemente-intro { margin: 0 0 6px; }
.stv-reglemente-liste { margin: 0; padding-left: 20px; }
.stv-reglemente-liste li { margin: 2px 0; }
.stv-reglemente-note { margin: 8px 0 0; font-size: .9em; color: #6b6459; }
.stv-reglemente a { color: #185fa5; }


/* Liens legaux du pied (barre du bas) : visibles */
.stv-footer-bottom .stv-footer-legal a { color: rgba(255,255,255,0.8); }
.stv-footer-bottom .stv-footer-legal a:hover { color: #fff; border-bottom: 1px solid var(--stv-accent); }


/* ===================================================================
   STV1000 - Pages de texte (legal) : largeur de lecture + typo
   =================================================================== */
.stv-doc-page .site-content .entry-header,
.stv-doc-page .site-content .entry-content,
.stv-doc-page .site-content .ast-container > article {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.stv-doc-page .entry-title { text-align: center; margin-bottom: .2em; }
.stv-doc-page .entry-content { line-height: 1.7; }
.stv-doc-page .entry-content h3 {
  margin-top: 1.9em; margin-bottom: .35em; font-size: 1.12em;
  padding-bottom: .25em; border-bottom: 1px solid #e7dfd2;
}
.stv-doc-page .entry-content h3:first-child { margin-top: .4em; }
.stv-doc-page .entry-content p { margin: .5em 0 1em; }
.stv-doc-page .entry-content ul { margin: .3em 0 1.1em; padding-left: 22px; }
.stv-doc-page .entry-content li { margin: .3em 0; }


/* ===================================================================
   STV1000 - Banniere d'accueil (hero) : tetes non coupees (texte centre d'origine)
   =================================================================== */
.home .wp-block-cover:has(h1) img.wp-block-cover__image-background {
  object-position: 50% 14% !important;
}


/* ===================================================================
   STV1000 - anti-debordement horizontal mobile (blocs pleine largeur)
   Les blocs .alignwide ont des marges negatives (-20px) pensees pour
   le desktop ; sur mobile elles debordent l'ecran -> on les neutralise.
   =================================================================== */
@media (max-width: 768px) {
  .entry-content .alignwide {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
  }
}


/* ===================================================================
   STV1000 - bande d'infos accueil plus compacte (mobile)
   Les colonnes empilees avaient 20px de marge basse -> resserre a 6px.
   =================================================================== */
@media (max-width: 768px) {
  .home .wp-block-group.has-black-background-color .wp-block-column {
    margin-bottom: 6px !important;
  }
}


/* ===================================================================
   STV1000 - Nos rayons collant (mobile) : sous le titre Boutique,
   se colle sous l'entete quand on fait defiler les articles.
   =================================================================== */
@media (max-width: 921px) {
  .widget_stv_rayons.stv-rayons-mobile {
    position: sticky;
    top: calc(var(--stv-h-header) + max(env(safe-area-inset-top, 0px), 30px));
    z-index: 40;
    background: #fff;
    margin: 0 0 14px;
  }
  .widget_stv_rayons.stv-rayons-mobile.stv-open .stv-rayons {
    max-height: calc(100vh - var(--stv-h-header) - 96px);
    overflow-y: auto;
  }
}


/* ===================================================================
   STV1000 - Entete compacte (hamburger) jusqu'a 921px
   Corrige le chevauchement logo/menu en paysage telephone & petite tablette.
   (Reprend les regles mobiles de l'entete, etendues de 768px a 921px.)
   =================================================================== */
@media (max-width: 921px) {
  .stv-brand-baseline { display: none; }
  .stv-search { display: none; }
  .stv-account-link span { display: none; }
  .stv-burger { display: flex; }

  .stv-nav {
    position: fixed;
    top: var(--stv-h-header);
    left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--stv-border);
    border-bottom: 1px solid var(--stv-border);
    transform: translateY(-110%);
    transition: transform .2s ease;
    padding: 12px 20px;
    z-index: 99;
  }
  .stv-nav.is-open { transform: translateY(0); display: flex; flex-direction: column; align-items: stretch; }
  .stv-menu { flex-direction: column; gap: 0; }
  .stv-menu li { border-bottom: 1px solid var(--stv-border); }
  .stv-menu li:last-child { border-bottom: none; }
  .stv-menu a { padding: 12px 0; display: block; }

  .stv-nav .stv-search-nav { display: flex; align-items: center; gap: 6px;
    order: -1; margin: 2px 0 12px; padding: 0 4px 0 12px; height: 42px;
    background: #fff; border: 1px solid var(--stv-border); border-radius: var(--stv-radius); }
  .stv-nav .stv-search-nav:focus-within { border-color: var(--stv-accent); }
}


/* ===================================================================
   STV1000 - menu deroulant defilable (paysage)
   En paysage l'ecran est court : on limite le menu ouvert a la hauteur
   dispo et on le rend defilable pour atteindre tous les liens.
   =================================================================== */
@media (max-width: 921px) {
  .stv-nav {
    max-height: calc(100vh - var(--stv-h-header));   /* repli navigateurs anciens */
    max-height: calc(100dvh - var(--stv-h-header));  /* hauteur visible reelle (mobile) */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}


/* ===================================================================
   STV1000 - menu ferme invisible (pas de depassement)
   Le menu deroulant est un enfant de l'entete : range en haut, son bas
   se peignait par-dessus le fond de l'entete. On le masque tant qu'il
   est ferme (mode mobile uniquement ; le desktop n'a pas .is-open et
   n'est pas concerne car hors media query).
   =================================================================== */
@media (max-width: 921px) {
  .stv-nav:not(.is-open) { visibility: hidden; }
}


/* ===================================================================
   STV1000 - menu ouvert cale sous la vraie hauteur d'entete
   L'entete = calc(--stv-h-header + degagement). Le menu doit s'ouvrir
   pile en dessous, sinon il recouvre le bas de l'entete (logo).
   =================================================================== */
@media (max-width: 921px) {
  :root { --stv-header-real: calc(var(--stv-h-header) + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 768px) {
  :root { --stv-header-real: calc(var(--stv-h-header) + max(env(safe-area-inset-top, 0px), 30px)); }
}
@media (max-width: 921px) {
  .stv-nav {
    top: var(--stv-header-real);
    max-height: calc(100vh - var(--stv-header-real));    /* repli */
    max-height: calc(100dvh - var(--stv-header-real));   /* hauteur visible reelle */
  }
}


/* ===================================================================
   STV1000 - menu deroulant demarre en haut (pas centre)
   Sinon justify-content:center (herite du desktop) centre le contenu
   quand il depasse la hauteur (paysage) et coupe le haut (recherche).
   =================================================================== */
@media (max-width: 921px) {
  .stv-nav { justify-content: flex-start; }
}


/* ===================================================================
   STV1000 - page Seances harmonisee (maquette) : styles limites a .stv-seances
   =================================================================== */
.stv-seances{ --sg:#c98a3a; --sg-d:#a06e28; --sg-soft:#f6ecd9; --snavy:#12244d;
  --scream:#f3ecde; --sborder:#e7dfd2; --smuted:#6b6152; --sink:#23201a; color:var(--sink); }
.stv-seances .s-eyebrow{ font-size:12.5px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--sg-d); }
.stv-seances .s-tag{ display:inline-block; font-size:10.5px; font-weight:700; letter-spacing:.07em;
  text-transform:uppercase; color:var(--sg-d); border:1px solid var(--sg); background:var(--sg-soft);
  padding:1px 7px; border-radius:999px; vertical-align:middle; margin-left:4px; }
.stv-seances h2{ font-size:clamp(23px,3.2vw,30px); font-weight:800; margin:.35rem 0 0; line-height:1.2; }
.stv-seances .s-sec{ margin:52px 0; }
.stv-seances .s-head{ text-align:center; max-width:60ch; margin:0 auto 26px; }
.stv-seances .s-head p{ color:var(--smuted); margin:10px 0 0; }
.stv-seances .s-intro{ text-align:center; max-width:46ch; margin:38px auto; }
.stv-seances .s-intro .s-lead{ font-size:clamp(18px,2.4vw,22px); font-weight:700; margin:0; }
.stv-seances .s-intro .s-lead b{ color:var(--sg-d); }
.stv-seances .s-intro p{ color:var(--smuted); margin:12px 0 0; }
.stv-seances .s-incl{ display:grid; grid-template-columns:repeat(auto-fit,minmax(205px,1fr)); gap:12px; }
.stv-seances .s-inclitem{ display:flex; gap:11px; align-items:flex-start; border:1px solid var(--sborder);
  border-radius:12px; padding:14px 16px; background:#fff; }
.stv-seances .s-inclitem .s-ic{ flex:none; width:28px; height:28px; border-radius:7px; background:var(--sg-soft);
  display:grid; place-items:center; color:var(--sg-d); font-weight:800; font-size:15px; }
.stv-seances .s-inclitem b{ display:block; font-size:15px; }
.stv-seances .s-inclitem span{ font-size:13px; color:var(--smuted); }
.stv-seances .s-steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.stv-seances .s-step{ text-align:center; }
.stv-seances .s-step .s-num{ width:48px; height:48px; margin:0 auto 12px; border-radius:50%;
  background:var(--snavy); color:#fff; font-size:20px; font-weight:800; display:grid; place-items:center; }
.stv-seances .s-step b{ font-size:16px; }
.stv-seances .s-step p{ color:var(--smuted); font-size:14px; margin:5px 0 0; }
.stv-seances .s-cards{ display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:start; }
.stv-seances .s-card{ background:#fff; border:1px solid var(--sborder); border-radius:16px; padding:24px;
  box-shadow:0 2px 4px rgba(30,20,5,.05),0 10px 30px rgba(30,20,5,.06); display:flex; flex-direction:column; position:relative; }
.stv-seances .s-card.feat{ border-color:var(--sg); }
.stv-seances .s-card .s-ribbon{ position:absolute; top:-12px; left:24px; background:var(--sg); color:#fff;
  font-size:11.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:4px 12px; border-radius:999px; }
.stv-seances .s-card h3{ font-size:20px; font-weight:800; margin:0; }
.stv-seances .s-price{ display:flex; align-items:baseline; gap:7px; margin:10px 0 4px; flex-wrap:wrap;
  font-variant-numeric:tabular-nums; }
.stv-seances .s-price .s-amt{ font-size:32px; font-weight:800; color:var(--snavy); }
.stv-seances .s-price .s-cur{ font-size:17px; font-weight:700; color:var(--snavy); }
.stv-seances .s-price .s-note{ font-size:12.5px; color:var(--smuted); font-weight:600; }
.stv-seances .s-flist{ list-style:none; margin:16px 0 20px; padding:0; display:flex; flex-direction:column; gap:9px; }
.stv-seances .s-flist li{ display:flex; gap:9px; align-items:flex-start; font-size:14.5px; }
.stv-seances .s-flist li::before{ content:"\2713"; color:var(--sg-d); font-weight:800; flex:none; }
.stv-seances .s-flist li.s-lock::before{ content:"\1F512"; }
.stv-seances .s-gate{ font-size:13px; color:var(--smuted); background:var(--scream); border-radius:8px;
  padding:9px 12px; margin-bottom:14px; }
.stv-seances .s-btn{ margin-top:auto; display:inline-flex; align-items:center; justify-content:center; width:100%;
  font-weight:700; font-size:15px; padding:13px 20px; border-radius:10px; border:2px solid transparent;
  text-decoration:none; cursor:pointer; transition:background .15s,color .15s,border-color .15s; }
.stv-seances .s-btn-primary{ background:var(--sg); color:#fff; }
.stv-seances .s-btn-primary:hover{ background:var(--sg-d); color:#fff; }
.stv-seances .s-btn-ghost{ background:transparent; color:var(--snavy); border-color:var(--snavy); }
.stv-seances .s-btn-ghost:hover{ background:var(--snavy); color:#fff; }
.stv-seances .s-info{ display:grid; grid-template-columns:1.1fr .9fr; gap:20px; }
.stv-seances .s-box{ background:#fff; border:1px solid var(--sborder); border-radius:12px; padding:20px 22px; }
.stv-seances .s-box h3{ font-size:16px; font-weight:800; margin:0 0 12px; }
.stv-seances .s-slot{ display:flex; justify-content:space-between; padding:9px 12px; border-radius:8px;
  background:var(--scream); font-size:14.5px; margin-bottom:7px; }
.stv-seances .s-slot b{ color:var(--snavy); }
.stv-seances .s-note{ font-size:13px; color:var(--smuted); margin:10px 0 0; }
.stv-seances .s-cond{ background:var(--sg-soft); border-color:#eddcc0; }
.stv-seances .s-cond ul{ margin:0; padding-left:18px; display:flex; flex-direction:column; gap:6px; font-size:14px; }
.stv-seances .s-final{ text-align:center; background:var(--scream); border-radius:16px; padding:38px 24px; }
.stv-seances .s-final h2{ margin:0; }
.stv-seances .s-final p{ color:var(--smuted); margin:8px 0 20px; }
.stv-seances .s-cta{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
@media (max-width:760px){
  .stv-seances .s-cards{ grid-template-columns:1fr; }
  .stv-seances .s-steps{ grid-template-columns:1fr; gap:22px; }
  .stv-seances .s-info{ grid-template-columns:1fr; }
  .stv-seances .s-sec{ margin:40px 0; }
}


/* ===================================================================
   STV1000 - Seances : avis + offrir une seance
   =================================================================== */
.stv-seances .s-quotes{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.stv-seances .s-quote{ background:#fff; border:1px solid var(--sborder); border-radius:14px;
  padding:22px; display:flex; flex-direction:column;
  box-shadow:0 2px 4px rgba(30,20,5,.05),0 8px 24px rgba(30,20,5,.05); }
.stv-seances .s-stars{ color:var(--sg); letter-spacing:2px; font-size:16px; }
.stv-seances .s-quote p{ font-size:15px; line-height:1.55; margin:12px 0 16px; }
.stv-seances .s-quote .s-author{ font-size:13.5px; color:var(--smuted); margin-top:auto; }
.stv-seances .s-quote .s-author b{ color:var(--sink); }
.stv-seances .s-gift{ background:linear-gradient(120deg,var(--snavy),#0e1a33); color:#fff;
  border-radius:18px; padding:32px; display:flex; align-items:center; gap:24px; flex-wrap:wrap;
  justify-content:space-between; }
.stv-seances .s-gift .s-gift-txt{ max-width:60ch; }
.stv-seances .s-gift .s-eyebrow{ color:#e7b877; }
.stv-seances .s-gift h2{ color:#fff; }
.stv-seances .s-gift p{ color:#dfe4ef; margin:8px 0 0; }
.stv-seances .s-gift .s-btn{ width:auto; background:#fff; color:var(--snavy); }
.stv-seances .s-gift .s-btn:hover{ background:var(--sg); color:#fff; }
@media (max-width:760px){
  .stv-seances .s-quotes{ grid-template-columns:1fr; }
  .stv-seances .s-gift{ text-align:center; justify-content:center; }
}


/* ===================================================================
   STV1000 - anti-debordement conteneur contenu (entry-content clip)
   La banniere pleine largeur (alignfull=100vw) depassait de la largeur de
   scrollbar. On recadre le conteneur de contenu (pas la racine, pas l'entete)
   -> plus de debordement, sticky preserve (entete + Nos rayons).
   =================================================================== */
.entry-content { overflow-x: clip; }


/* ===================================================================
   STV1000 - Stand de tir : images / stats / galerie (scope .stv-seances)
   =================================================================== */
.stv-seances .s-figure{ margin:0; border-radius:16px; overflow:hidden; border:1px solid var(--sborder);
  box-shadow:0 2px 4px rgba(30,20,5,.05),0 10px 30px rgba(30,20,5,.06); }
.stv-seances .s-figure img{ display:block; width:100%; height:auto; }
.stv-seances .s-figure figcaption{ font-size:13px; color:var(--smuted); padding:10px 16px; background:#fff; text-align:center; }
.stv-seances .s-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; text-align:center; }
.stv-seances .s-stat{ background:#fff; border:1px solid var(--sborder); border-radius:14px; padding:20px 12px; }
.stv-seances .s-stat .s-big{ font-size:clamp(24px,5vw,38px); font-weight:800; color:var(--snavy); line-height:1;
  font-variant-numeric:tabular-nums; }
.stv-seances .s-stat .s-lbl{ font-size:13.5px; color:var(--smuted); margin-top:6px; }
.stv-seances .s-split{ display:grid; grid-template-columns:1fr 1fr; gap:26px; align-items:center; }
.stv-seances .s-split img{ width:100%; height:100%; max-height:440px; object-fit:cover; object-position:50% 12%; border-radius:16px; border:1px solid var(--sborder); }
.stv-seances .s-gallery{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:14px; }
.stv-seances .s-gallery img{ width:100%; height:280px; object-fit:cover; border-radius:12px; border:1px solid var(--sborder); }
@media (max-width:760px){
  .stv-seances .s-stats{ gap:8px; }
  .stv-seances .s-stat{ padding:14px 6px; }
  .stv-seances .s-stat .s-lbl{ font-size:12px; }
  .stv-seances .s-split{ grid-template-columns:1fr; }
  .stv-seances .s-split img{ max-height:300px; }
  .stv-seances .s-gallery img{ height:240px; }
}


/* ===================================================================
   STV1000 - A propos : encart USP + fiche personne (scope .stv-seances)
   =================================================================== */
.stv-seances .s-usp{ background:linear-gradient(120deg,var(--snavy),#0e1a33); color:#fff;
  border-radius:18px; padding:34px; text-align:center; }
.stv-seances .s-usp .s-eyebrow{ color:#e7b877; }
.stv-seances .s-usp h2{ color:#fff; margin-top:6px; }
.stv-seances .s-usp p{ color:#dfe4ef; margin:8px auto 0; max-width:60ch; }
.stv-seances .s-person-name{ font-size:20px; font-weight:800; margin-top:2px; }
.stv-seances .s-person-role{ font-size:13.5px; color:var(--sg-d); font-weight:700;
  text-transform:uppercase; letter-spacing:.05em; margin:2px 0 12px; }


/* ===================================================================
   STV1000 - Accueil : accent rouge -> dore/marine (harmonisation)
   =================================================================== */
.home .wp-block-button__link.has-vivid-red-background-color{ background-color:#c98a3a !important; color:#fff !important; }
.home .wp-block-button__link.has-vivid-red-background-color:hover{ background-color:#a06e28 !important; }
.home .has-vivid-red-color{ color:#a06e28 !important; }
.home .has-pale-gray-background-color{ background-color:#f3ecde !important; }


/* ===================================================================
   STV1000 - Contact : coordonnees + formulaire CF7 + carte (scope .stv-seances)
   =================================================================== */
.stv-seances .s-contact{ display:grid; grid-template-columns:1fr 1fr; gap:24px; align-items:start; }
.stv-seances .s-coord, .stv-seances .s-formbox{ background:#fff; border:1px solid var(--sborder);
  border-radius:16px; padding:24px; box-shadow:0 2px 4px rgba(30,20,5,.05),0 8px 24px rgba(30,20,5,.05); }
.stv-seances .s-citem{ display:flex; gap:13px; align-items:flex-start; padding:14px 0; border-bottom:1px solid var(--sborder); }
.stv-seances .s-citem:first-child{ padding-top:0; }
.stv-seances .s-citem:last-child{ border-bottom:0; padding-bottom:0; }
.stv-seances .s-cic{ flex:none; width:34px; height:34px; border-radius:9px; background:var(--sg-soft);
  display:grid; place-items:center; font-size:17px; }
.stv-seances .s-clabel{ font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em;
  color:var(--sg-d); margin-bottom:3px; }
.stv-seances .s-coord a{ color:var(--snavy); text-decoration:none; }
.stv-seances .s-coord a:hover{ color:var(--sg-d); text-decoration:underline; }
.stv-seances .s-formbox h3{ font-size:18px; font-weight:800; margin:0 0 16px; }

/* Formulaire Contact Form 7 */
.stv-seances .wpcf7 label{ display:block; font-size:14px; font-weight:600; color:var(--sink); margin-bottom:14px; }
.stv-seances .wpcf7 .wpcf7-form-control-wrap{ display:block; }
.stv-seances .wpcf7 input[type=text],
.stv-seances .wpcf7 input[type=email],
.stv-seances .wpcf7 textarea{ width:100%; margin-top:6px; padding:11px 13px; border:1px solid var(--sborder);
  border-radius:9px; font-family:inherit; font-size:15px; background:#fff; color:var(--sink); box-sizing:border-box; }
.stv-seances .wpcf7 input:focus, .stv-seances .wpcf7 textarea:focus{ outline:none; border-color:var(--sg);
  box-shadow:0 0 0 3px rgba(201,138,58,.15); }
.stv-seances .wpcf7 textarea{ min-height:130px; resize:vertical; }
.stv-seances .wpcf7 .wpcf7-submit{ background:var(--sg); color:#fff; border:0; font-weight:700; font-size:15px;
  padding:13px 28px; border-radius:10px; cursor:pointer; transition:background .15s; margin-top:4px; }
.stv-seances .wpcf7 .wpcf7-submit:hover{ background:var(--sg-d); }

/* Carte */
.stv-seances .s-map{ border-radius:16px; overflow:hidden; border:1px solid var(--sborder); line-height:0; }
.stv-seances .s-map iframe{ width:100%; height:360px; border:0; display:block; }

@media (max-width:760px){
  .stv-seances .s-contact{ grid-template-columns:1fr; }
  .stv-seances .s-map iframe{ height:280px; }
}


/* ===================================================================
   STV1000 - Contact : boutons d'action rapide + badge ouvert/ferme
   =================================================================== */
.stv-seances .s-quick{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.stv-seances .s-quick a{ display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:15px;
  padding:12px 22px; border-radius:10px; text-decoration:none; border:2px solid transparent;
  transition:background .15s,color .15s,border-color .15s; }
.stv-seances .s-quick .qa-call{ background:var(--sg); color:#fff; }
.stv-seances .s-quick .qa-call:hover{ background:var(--sg-d); }
.stv-seances .s-quick .qa-dir, .stv-seances .s-quick .qa-write{ background:#fff; color:var(--snavy); border-color:var(--snavy); }
.stv-seances .s-quick .qa-dir:hover, .stv-seances .s-quick .qa-write:hover{ background:var(--snavy); color:#fff; }
.stv-seances .s-open-badge{ display:inline-block; margin-top:8px; font-size:12.5px; font-weight:700;
  padding:3px 11px; border-radius:999px; }
.stv-seances .s-open-badge.is-open{ background:#e6f4ea; color:#1e7d34; }
.stv-seances .s-open-badge.is-closed{ background:#fbeaea; color:#b23b3b; }
@media (max-width:520px){
  .stv-seances .s-quick{ flex-direction:column; }
  .stv-seances .s-quick a{ justify-content:center; }
}


/* ===================================================================
   STV1000 - Actualites : grille d'articles en cartes
   + accent vivid-red -> dore GLOBAL (etendu au-dela de .home)
   =================================================================== */
.wp-block-button__link.has-vivid-red-background-color{ background-color:#c98a3a !important; color:#fff !important; }
.wp-block-button__link.has-vivid-red-background-color:hover{ background-color:#a06e28 !important; }
.has-vivid-red-color{ color:#a06e28 !important; }

.wp-block-latest-posts.is-grid{ gap:22px; }
.wp-block-latest-posts.is-grid > li{ background:#fff; border:1px solid #e7dfd2; border-radius:14px;
  overflow:hidden; box-shadow:0 2px 4px rgba(30,20,5,.05),0 8px 24px rgba(30,20,5,.05); }
.wp-block-latest-posts.is-grid .wp-block-latest-posts__featured-image{ margin:0; }
.wp-block-latest-posts.is-grid .wp-block-latest-posts__featured-image img{ width:100%; height:190px;
  object-fit:cover; display:block; }
.wp-block-latest-posts.is-grid > li > a{ display:block; font-weight:800; font-size:17px; margin:14px 0 0;
  padding:0 16px; color:#23201a; text-decoration:none; line-height:1.3; }
.wp-block-latest-posts.is-grid > li > a:hover{ color:#a06e28; }
.wp-block-latest-posts.is-grid .wp-block-latest-posts__post-date{ display:block; color:#8a8172;
  font-size:12.5px; margin-top:6px; padding:0 16px; }
.wp-block-latest-posts.is-grid .wp-block-latest-posts__post-excerpt{ color:#6b6152; font-size:14px;
  margin:8px 0 16px; padding:0 16px; }


/* ===================================================================
   STV1000 - Actualites : grille d'articles en cartes
   + accent vivid-red -> dore GLOBAL (etendu au-dela de .home)
   =================================================================== */
.wp-block-button__link.has-vivid-red-background-color{ background-color:#c98a3a !important; color:#fff !important; }
.wp-block-button__link.has-vivid-red-background-color:hover{ background-color:#a06e28 !important; }
.has-vivid-red-color{ color:#a06e28 !important; }

.wp-block-latest-posts.is-grid{ gap:22px; }
.wp-block-latest-posts.is-grid > li{ background:#fff; border:1px solid #e7dfd2; border-radius:14px;
  overflow:hidden; box-shadow:0 2px 4px rgba(30,20,5,.05),0 8px 24px rgba(30,20,5,.05); }
.wp-block-latest-posts.is-grid .wp-block-latest-posts__featured-image{ margin:0; }
.wp-block-latest-posts.is-grid .wp-block-latest-posts__featured-image img{ width:100%; height:190px;
  object-fit:cover; display:block; }
.wp-block-latest-posts.is-grid > li > a{ display:block; font-weight:800; font-size:17px; margin:14px 0 0;
  padding:0 16px; color:#23201a; text-decoration:none; line-height:1.3; }
.wp-block-latest-posts.is-grid > li > a:hover{ color:#a06e28; }
.wp-block-latest-posts.is-grid .wp-block-latest-posts__post-date{ display:block; color:#8a8172;
  font-size:12.5px; margin-top:6px; padding:0 16px; }
.wp-block-latest-posts.is-grid .wp-block-latest-posts__post-excerpt{ color:#6b6152; font-size:14px;
  margin:8px 0 16px; padding:0 16px; }


/* STV1000 - Actualites : cadrage haut des vignettes (garde visages/armes) */
.wp-block-latest-posts.is-grid .wp-block-latest-posts__featured-image img{ object-position: 50% 0%; }


/* ===================================================================
   STV1000 - Article (single post) : hero + colonne de lecture
   =================================================================== */
.single-post .entry-header{ display:none; }
.single-post .entry-content{ max-width:none !important; padding:0 !important; }
.single-post .ast-article-single,
.single-post #primary{ padding:0 !important; margin:0 !important; }

.stv-post-hero{ position:relative; width:100%; height:360px; overflow:hidden;
  display:flex; align-items:center; justify-content:center; text-align:center; }
.stv-post-hero img{ position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:50% 28%; }
.stv-post-hero--plain{ background:#12244d; }
.stv-post-veil{ position:absolute; inset:0; background:#0e1a33; opacity:.52; }
.stv-post-hero-inner{ position:relative; z-index:2; color:#fff; padding:0 22px; max-width:820px; }
.stv-post-hero .stv-eyebrow{ display:inline-block; letter-spacing:.18em; text-transform:uppercase;
  font-size:12.5px; font-weight:700; color:#f2c98a; margin-bottom:12px; }
.stv-post-title{ font-size:34px; line-height:1.2; margin:0 0 12px; font-weight:800; color:#fff;
  text-shadow:0 2px 14px rgba(0,0,0,.35); }
.stv-post-meta{ font-size:13.5px; color:#e7ddca; }

.stv-post-card{ background:#fff; max-width:760px; margin:-46px auto 0; position:relative; z-index:3;
  border-radius:16px; box-shadow:0 10px 34px rgba(30,20,5,.12); padding:44px 50px 40px;
  border:1px solid #e7dfd2; }
.stv-post-card > p{ font-size:16.5px; line-height:1.75; color:#3a352c; margin:0 0 20px; }
.stv-post-card > p:first-child{ font-size:19px; line-height:1.65; color:#2c2820;
  font-weight:500; margin-bottom:26px; }
.stv-post-card > h2{ font-size:22px; line-height:1.3; color:#12244d; font-weight:800;
  margin:34px 0 14px; padding-left:16px; position:relative; }
.stv-post-card > h2::before{ content:""; position:absolute; left:0; top:3px; bottom:3px; width:5px;
  border-radius:4px; background:linear-gradient(#c98a3a,#a06e28); }
.stv-post-card strong{ color:#a06e28; }
.stv-post-card .wp-block-buttons{ margin-top:30px; justify-content:center; }
.stv-post-card .wp-block-button__link,
.stv-post-card .wp-element-button{ padding:13px 30px; font-weight:700; border-radius:8px; }

.stv-post-back{ display:block; max-width:760px; margin:22px auto 40px; padding-left:6px;
  color:#a06e28; text-decoration:none; font-weight:600; font-size:14.5px; }
.stv-post-back:hover{ text-decoration:underline; }

@media(max-width:640px){
  .stv-post-hero{ height:270px; }
  .stv-post-title{ font-size:24px; }
  .stv-post-card{ margin:-34px 14px 0; padding:30px 22px 28px; }
  .stv-post-card > p:first-child{ font-size:17px; }
  .stv-post-back{ margin-left:16px; }
}


/* STV1000 - Article : neutraliser le cadre Astra + fond cream derriere la carte */
.single-post #content.site-content{ padding:0 !important; background:#efe7d8; }
.single-post #primary{ padding:0 !important; margin:0 !important; }
.single-post .ast-separate-container .ast-article-single,
.single-post .ast-article-single{
  background:#efe7d8 !important; box-shadow:none !important; border:0 !important;
  border-radius:0 !important; padding:0 0 46px !important; margin:0 !important;
}


/* STV1000 - Article : titre hero lisible (forcer blanc + voile + ombre) */
.single-post .stv-post-hero .stv-post-title{
  color:#ffffff !important;
  text-shadow:0 2px 22px rgba(0,0,0,.65), 0 1px 4px rgba(0,0,0,.55) !important;
}
.single-post .stv-post-hero .stv-post-meta{ color:#f3ecde !important; }
.single-post .stv-post-hero .stv-eyebrow{ color:#f2c98a !important; }
.single-post .stv-post-veil{
  opacity:1 !important;
  background:linear-gradient(180deg, rgba(14,26,51,.50) 0%, rgba(14,26,51,.66) 55%, rgba(14,26,51,.74) 100%) !important;
}


/* STV1000 - Article : zone commentaires resserree (largeur de lecture) */
.single-post #comments.comments-area{
  max-width:760px; margin-left:auto; margin-right:auto;
  padding:14px 20px 46px; box-sizing:border-box;
}
.single-post #comments .comment-form textarea,
.single-post #comments .comment-form input[type=text],
.single-post #comments .comment-form input[type=email],
.single-post #comments .comment-form input[type=url]{ max-width:100%; box-sizing:border-box; }


/* STV1000 - Article : titre descendu dans la banniere */
.single-post .stv-post-hero-inner{ transform: translateY(30px); }
@media(max-width:640px){ .single-post .stv-post-hero-inner{ transform: translateY(18px); } }


/* STV1000 - Article : zone commentaires masquee (commentaires fermes cote serveur) */
.single-post #comments.comments-area{ display:none !important; }


/* STV1000 - Article : cadrage hero garde les tetes (haut de la photo) */
.single-post .stv-post-hero img{ object-position: 50% 0% !important; }


/* STV1000 - Article : encart CTA (appel a l'action de fin d'article) */
.stv-post-card .stv-cta{ margin:36px 0 6px; background:#f6ecd9; border:1px solid #ecdcbf;
  border-radius:14px; padding:28px 28px; text-align:center; }
.stv-post-card .stv-cta h3{ margin:0 0 8px; color:#12244d; font-size:19px; font-weight:800; }
.stv-post-card .stv-cta p{ margin:0 0 18px; font-size:15px; line-height:1.6; color:#5c5445; }
.stv-post-card .stv-cta-btn{ display:inline-block; background:#c98a3a; color:#fff !important;
  text-decoration:none; font-weight:700; font-size:16px; padding:13px 30px; border-radius:8px;
  box-shadow:0 4px 12px rgba(160,110,40,.28); transition:background .15s; }
.stv-post-card .stv-cta-btn:hover{ background:#a06e28; }
