/*
Theme Name: Vesxpress
Theme URI: https://vesxpress.com
Author: Vesxpress
Author URI: https://vesxpress.com
Description: Thème e-commerce professionnel pour la vente de machines à coudre 220V. Design moderne et fluide, optimisé SEO, compatible WooCommerce et Polylang. Crée automatiquement les pages Accueil, Boutique, Contact, À propos et les 4 pages légales (Confidentialité, Livraison et retour, CGV, Mentions légales).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vesxpress
Tags: e-commerce, business, blog, custom-logo, custom-menu, featured-images, translation-ready, rtl-language-support
*/

/* ==========================================================================
   1. Variables & Reset
   ========================================================================== */
:root {
  /* Palette chaleureuse : espresso, terracotta, crème, lin */
  --vx-primary: #2d2419;          /* espresso — textes forts, en-tête */
  --vx-primary-dark: #1c1710;     /* espresso profond — pied de page */
  --vx-primary-light: #4a3b2a;    /* brun chaud */
  --vx-accent: #c75b39;           /* terracotta — boutons, accents */
  --vx-accent-dark: #a8462a;      /* terracotta foncé */
  --vx-teal: #7d8b5a;             /* olive doux — validations */
  --vx-sand: #faf6f0;             /* crème chaud */
  --vx-linen: #efe6d9;            /* lin — séparateurs doux */
  --vx-grey-50: #faf8f5;
  --vx-grey-100: #f0eae1;
  --vx-grey-300: #d6cabb;
  --vx-grey-500: #857463;
  --vx-grey-700: #4a3f34;
  --vx-text: #2b241c;
  --vx-white: #ffffff;
  --vx-radius: 14px;
  --vx-radius-sm: 8px;
  --vx-shadow-sm: 0 2px 10px rgba(45, 36, 25, .06);
  --vx-shadow: 0 10px 30px rgba(45, 36, 25, .10);
  --vx-shadow-lg: 0 24px 50px rgba(15, 47, 79, .16);
  --vx-container: 1200px;
  --vx-transition: .3s cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--vx-text);
  background: var(--vx-white);
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--vx-primary-light); text-decoration: none; transition: color var(--vx-transition); }
a:hover, a:focus { color: var(--vx-accent); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  line-height: 1.22;
  color: var(--vx-primary);
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }

.vx-container { width: 100%; max-width: var(--vx-container); margin: 0 auto; padding: 0 20px; }
.vx-container--narrow { max-width: 900px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 10px; left: 10px; z-index: 9999; width: auto; height: auto;
  clip: auto; padding: 12px 18px; background: var(--vx-accent); color: #fff; border-radius: 6px;
}

/* ==========================================================================
   2. Boutons
   ========================================================================== */
.vx-btn,
button.vx-btn,
input[type="submit"].vx-btn,
.wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 30px; border: 2px solid transparent; border-radius: 50px;
  font-size: 1rem; font-weight: 600; line-height: 1; cursor: pointer;
  text-align: center; transition: all var(--vx-transition);
  background: var(--vx-accent); color: #fff;
  box-shadow: 0 6px 18px rgba(230, 57, 70, .28);
}
.vx-btn:hover, .vx-btn:focus { background: var(--vx-accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(230, 57, 70, .38); }
.vx-btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); box-shadow: none; }
.vx-btn--outline:hover { background: #fff; color: var(--vx-primary); border-color: #fff; }
.vx-btn--dark { background: var(--vx-primary); box-shadow: 0 6px 18px rgba(15, 47, 79, .25); }
.vx-btn--dark:hover { background: var(--vx-primary-dark); box-shadow: 0 10px 24px rgba(15, 47, 79, .32); }
.vx-btn--ghost { background: var(--vx-grey-100); color: var(--vx-primary); box-shadow: none; }
.vx-btn--ghost:hover { background: var(--vx-grey-300); color: var(--vx-primary); }
.vx-btn--full { width: 100%; }
.vx-btn--sm { padding: 10px 20px; font-size: .9rem; }

/* ==========================================================================
   3. En-tête
   ========================================================================== */
.vx-topbar {
  background: var(--vx-primary-dark); color: rgba(255, 255, 255, .85);
  font-size: .85rem; padding: 8px 0;
}
.vx-topbar__inner { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.vx-topbar a { color: rgba(255, 255, 255, .85); }
.vx-topbar a:hover { color: #fff; }
.vx-topbar__usp { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.vx-topbar__usp span { display: inline-flex; align-items: center; gap: 7px; }

.vx-header {
  position: sticky; top: 0; z-index: 200;
  background: linear-gradient(135deg, var(--vx-primary) 0%, var(--vx-primary-dark) 100%);
  color: #fff; box-shadow: var(--vx-shadow-sm);
}
.vx-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }

.vx-logo { display: flex; align-items: center; gap: 12px; font-size: 1.6rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.vx-logo:hover { color: #fff; }
.vx-logo--image img { display: block; width: auto; height: 52px; max-width: 260px; }
.vx-logo--image { gap: 0; }

/* Logo animé : léger relief au survol, sans distraire. */
.vx-header .vx-logo--image img { transition: transform .3s cubic-bezier(.4,0,.2,1), filter .3s; }
.vx-header .vx-logo--image:hover img { transform: translateY(-1px) scale(1.015); filter: drop-shadow(0 3px 10px rgba(230,57,70,.35)); }

/* Animation de chargement de page (optionnelle). */
.vx-loader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: var(--vx-primary-dark); transition: opacity .5s ease, visibility .5s ease;
}
.vx-loader.is-done { opacity: 0; visibility: hidden; }
.vx-loader img { width: 132px; height: 132px; }

/* Accessibilité : respect de la préférence système « réduire les animations ». */
@media (prefers-reduced-motion: reduce) {
  .vx-logo--image img { transition: none; }
  .vx-header .vx-logo--image:hover img { transform: none; filter: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
.vx-logo__mark {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; background: var(--vx-accent); color: #fff; font-size: 1.15rem;
}
.vx-logo__text span { color: var(--vx-accent); }
.vx-logo__tagline { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }

.vx-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.vx-nav a {
  display: block; padding: 10px 15px; border-radius: 8px; color: #fff;
  font-weight: 500; font-size: .97rem;
}
.vx-nav a:hover, .vx-nav .current-menu-item > a { background: rgba(255, 255, 255, .12); color: #fff; }
.vx-nav .sub-menu {
  position: absolute; min-width: 215px; padding: 8px; margin: 6px 0 0; list-style: none;
  background: #fff; border-radius: var(--vx-radius-sm); box-shadow: var(--vx-shadow);
  display: none; z-index: 300;
}
.vx-nav .sub-menu a { color: var(--vx-primary); }
.vx-nav .sub-menu a:hover { background: var(--vx-grey-100); color: var(--vx-accent); }
.vx-nav li { position: relative; }
.vx-nav li:hover > .sub-menu { display: block; }

.vx-header__actions { display: flex; align-items: center; gap: 6px; }
.vx-icon-btn {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .09);
  transition: all var(--vx-transition);
}
.vx-icon-btn:hover { background: var(--vx-accent); color: #fff; transform: translateY(-2px); }
.vx-cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 20px; background: var(--vx-accent);
  color: #fff; font-size: .7rem; font-weight: 700; border: 2px solid var(--vx-primary);
}

.vx-nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.25rem;
}
.vx-lang { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.vx-lang ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vx-lang a { color: rgba(255, 255, 255, .7); font-weight: 600; text-transform: uppercase; font-size: .8rem; }
.vx-lang a:hover, .vx-lang .current-lang a { color: #fff; }

/* ==========================================================================
   4. Hero — bannière photo chaleureuse
   ========================================================================== */
.vx-hero {
  position: relative; display: flex; align-items: center;
  min-height: 640px; padding: 100px 0; color: #fff; text-align: center;
  background:
    linear-gradient(115deg, rgba(28, 23, 16, .90) 0%, rgba(45, 36, 25, .72) 48%, rgba(74, 59, 42, .45) 100%),
    radial-gradient(circle at 80% 20%, rgba(199, 91, 57, .30), transparent 55%),
    #2d2419;
  background-size: cover;
  background-position: center 40%;
  overflow: hidden;
}
.vx-hero--image { background-size: cover; background-position: center 40%; }
.vx-hero__inner { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; }
.vx-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; margin-bottom: 22px;
  border-radius: 40px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
  font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.vx-hero h1 { color: #fff; margin-bottom: 20px; text-shadow: 0 3px 22px rgba(0, 0, 0, .45); }
.vx-hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .93); max-width: 660px; margin: 0 auto 34px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.vx-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.vx-hero__stats {
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: center;
  margin-top: 56px; padding-top: 34px; border-top: 1px solid rgba(255, 255, 255, .16);
}
.vx-hero__stat strong { display: block; font-size: 2rem; color: #fff; line-height: 1; }
.vx-hero__stat span { font-size: .86rem; color: rgba(255, 255, 255, .72); }

/* ==========================================================================
   5. Sections
   ========================================================================== */
.vx-section { padding: 78px 0; }
.vx-section--alt { background: var(--vx-grey-50); }
.vx-section--dark { background: linear-gradient(135deg, var(--vx-primary) 0%, var(--vx-primary-dark) 100%); color: rgba(255, 255, 255, .88); }
.vx-section--dark h2, .vx-section--dark h3 { color: #fff; }
.vx-section--tight { padding: 54px 0; }

.vx-section__head { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.vx-section__head p { color: var(--vx-grey-500); margin-bottom: 0; }
.vx-section--dark .vx-section__head p { color: rgba(255, 255, 255, .75); }
.vx-section__eyebrow {
  display: inline-block; margin-bottom: 12px; color: var(--vx-accent);
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.vx-section__head h2 { position: relative; padding-bottom: 18px; }
.vx-section__head h2::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 74px; height: 4px; border-radius: 4px; background: var(--vx-accent);
}

/* ==========================================================================
   6. Grille produits
   ========================================================================== */
.vx-grid { display: grid; gap: 30px; }
.vx-grid--3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.vx-grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.vx-products { display: grid; gap: 34px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }

.vx-product {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--vx-grey-100);
  border-radius: var(--vx-radius); overflow: hidden; box-shadow: var(--vx-shadow-sm);
  transition: transform var(--vx-transition), box-shadow var(--vx-transition);
}
.vx-product:hover { transform: translateY(-8px); box-shadow: var(--vx-shadow-lg); }
.vx-product__media { position: relative; aspect-ratio: 4 / 3; background: var(--vx-grey-50); overflow: hidden; }
.vx-product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.vx-product:hover .vx-product__media img { transform: scale(1.06); }
.vx-product__badges { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 8px; z-index: 3; }
.vx-badge {
  padding: 6px 14px; border-radius: 30px; font-size: .74rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; background: var(--vx-accent); color: #fff;
}
.vx-badge--teal { background: var(--vx-teal); }
.vx-badge--dark { background: var(--vx-primary); }
.vx-product__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.vx-product__cat { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--vx-grey-500); margin-bottom: 8px; }
.vx-product__title { font-size: 1.24rem; margin-bottom: 10px; }
.vx-product__title a { color: var(--vx-primary); }
.vx-product__title a:hover { color: var(--vx-accent); }
.vx-product__excerpt { color: var(--vx-grey-500); font-size: .95rem; margin-bottom: 16px; }
.vx-product__specs { list-style: none; margin: 0 0 20px; padding: 0; font-size: .9rem; }
.vx-product__specs li { display: flex; gap: 9px; padding: 4px 0; color: var(--vx-grey-700); }
.vx-product__specs li::before { content: "\2713"; color: var(--vx-teal); font-weight: 700; }
.vx-product__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--vx-grey-100); }
.vx-price { font-size: 1.55rem; font-weight: 800; color: var(--vx-accent); line-height: 1.1; }
.vx-price small { display: block; font-size: .74rem; font-weight: 500; color: var(--vx-grey-500); letter-spacing: .04em; }
.vx-price del { font-size: .95rem; color: var(--vx-grey-500); font-weight: 500; margin-right: 8px; }
.vx-price ins { text-decoration: none; }
.vx-product__buttons { display: flex; gap: 10px; }

/* ==========================================================================
   7. Cartes avantages / confiance
   ========================================================================== */
.vx-features { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.vx-feature {
  padding: 32px 24px; text-align: center; background: #fff; border-radius: var(--vx-radius);
  border: 1px solid var(--vx-grey-100); box-shadow: var(--vx-shadow-sm); transition: all var(--vx-transition);
}
.vx-feature:hover { transform: translateY(-6px); box-shadow: var(--vx-shadow); border-color: var(--vx-grey-300); }
.vx-feature__icon {
  width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center;
  border-radius: 18px; background: linear-gradient(135deg, var(--vx-primary), var(--vx-primary-light));
  color: #fff; font-size: 1.6rem;
}
.vx-feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.vx-feature p { color: var(--vx-grey-500); font-size: .92rem; margin: 0; }

/* ==========================================================================
   8. Bandeau promo / CTA
   ========================================================================== */
.vx-cta {
  display: grid; gap: 30px; align-items: center; grid-template-columns: 1.3fr 1fr;
  padding: 46px; border-radius: 22px; color: #fff;
  background: linear-gradient(120deg, var(--vx-accent) 0%, #b5179e 100%);
  box-shadow: var(--vx-shadow-lg);
}
.vx-cta h2 { color: #fff; margin-bottom: 10px; }
.vx-cta p { margin: 0; color: rgba(255, 255, 255, .92); }
.vx-cta__action { text-align: right; }

/* ==========================================================================
   9. Avis clients
   ========================================================================== */
.vx-testimonials { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.vx-testimonial {
  padding: 30px; border-radius: var(--vx-radius); background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px);
}
.vx-testimonial__stars { color: #ffc300; margin-bottom: 12px; letter-spacing: 2px; }
.vx-testimonial__text { font-style: italic; color: rgba(255, 255, 255, .92); }
.vx-testimonial__author { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.vx-testimonial__avatar {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--vx-accent); color: #fff; font-weight: 700;
}
.vx-testimonial__author strong { display: block; color: #fff; }
.vx-testimonial__author span { font-size: .84rem; color: rgba(255, 255, 255, .7); }

/* ==========================================================================
   9 bis. Galerie — grille régulière de 3 visuels compacts
   ========================================================================== */
.vx-gallery {
  display: grid; gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1040px; margin: 0 auto;
}
.vx-gallery__item {
  position: relative; overflow: hidden; border-radius: var(--vx-radius);
  background: var(--vx-linen); box-shadow: var(--vx-shadow-sm);
  display: block; text-decoration: none;
  aspect-ratio: 4 / 3;            /* cases identiques, hauteur maîtrisée */
  max-height: 260px;              /* taille réduite */
}
.vx-gallery__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.4, 0, .2, 1);
}
.vx-gallery__item:hover img { transform: scale(1.05); }
.vx-gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28, 23, 16, .78) 0%, rgba(28, 23, 16, .12) 42%, transparent 68%);
  opacity: .92; transition: opacity var(--vx-transition);
}
.vx-gallery__item:hover::after { opacity: 1; }
.vx-gallery__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 12px 16px; color: #fff;
}
.vx-gallery__caption strong { display: block; font-size: .94rem; color: #fff; line-height: 1.3; }
.vx-gallery__caption span { font-size: .76rem; color: rgba(255, 255, 255, .82); line-height: 1.35; display: block; }

/* Toutes les cases ont le même poids visuel */
.vx-gallery__item--large,
.vx-gallery__item--small,
.vx-gallery__item--wide { grid-column: span 1; min-height: 0; }

@media (max-width: 900px) {
  .vx-gallery { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
  .vx-gallery__item { max-height: 210px; }
}

@media (max-width: 560px) {
  .vx-gallery { grid-template-columns: 1fr; max-width: 420px; }
  .vx-gallery__item { max-height: 240px; }
}

/* Bandeau de crédits photo (obligation des licences CC) */
.vx-photo-credits {
  margin-top: 26px; font-size: .76rem; line-height: 1.6;
  color: var(--vx-grey-500); text-align: center;
}
.vx-photo-credits a { color: var(--vx-grey-500); text-decoration: underline; }
.vx-photo-credits a:hover { color: var(--vx-accent); }

/* Visuel « atelier » pour la section à propos */
.vx-studio {
  display: grid; gap: 30px; align-items: center;
  grid-template-columns: 1.1fr 1fr;
}
.vx-studio__img {
  border-radius: var(--vx-radius); overflow: hidden;
  box-shadow: var(--vx-shadow); aspect-ratio: 4 / 3;
}
.vx-studio__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vx-studio__list { list-style: none; margin: 22px 0 0; padding: 0; }
.vx-studio__list li {
  display: flex; gap: 12px; padding: 10px 0; align-items: flex-start;
  border-bottom: 1px solid var(--vx-grey-100);
}
.vx-studio__list li:last-child { border-bottom: 0; }
.vx-studio__list li::before {
  content: "\2713"; color: var(--vx-teal); font-weight: 700; flex: 0 0 auto;
}
@media (max-width: 860px) {
  .vx-studio { grid-template-columns: 1fr; }
}

/* ==========================================================================
   10. Contenu éditorial / pages
   ========================================================================== */
.vx-page-header {
  padding: 62px 0 46px; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--vx-primary) 0%, var(--vx-primary-dark) 100%);
}
.vx-page-header h1 { color: #fff; margin-bottom: 10px; }
.vx-page-header p { color: rgba(255, 255, 255, .78); max-width: 680px; margin: 0 auto; }

.vx-breadcrumb { font-size: .86rem; color: rgba(255, 255, 255, .7); margin-bottom: 12px; }
.vx-breadcrumb a { color: rgba(255, 255, 255, .85); }

.vx-content { padding: 62px 0; }
.vx-content__inner { max-width: 860px; margin: 0 auto; }
.vx-content h2 { margin-top: 2em; padding-bottom: 10px; border-bottom: 2px solid var(--vx-grey-100); }
.vx-content h3 { margin-top: 1.6em; color: var(--vx-primary-light); }
.vx-content ul li, .vx-content ol li { margin-bottom: .5em; }
.vx-content blockquote {
  margin: 1.6em 0; padding: 20px 26px; border-left: 4px solid var(--vx-accent);
  background: var(--vx-grey-50); border-radius: 0 var(--vx-radius-sm) var(--vx-radius-sm) 0; font-style: italic;
}
.vx-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; }
.vx-content th, .vx-content td { padding: 12px 14px; border: 1px solid var(--vx-grey-100); text-align: left; }
.vx-content th { background: var(--vx-grey-50); color: var(--vx-primary); }

.vx-legal-meta {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center;
  margin-top: 6px; font-size: .86rem; color: rgba(255, 255, 255, .72);
}
.vx-legal-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--vx-grey-100); }
.vx-legal-nav a {
  padding: 10px 18px; border-radius: 40px; background: var(--vx-grey-50);
  border: 1px solid var(--vx-grey-100); font-size: .9rem; font-weight: 500;
}
.vx-legal-nav a:hover { background: var(--vx-primary); color: #fff; border-color: var(--vx-primary); }

/* ==========================================================================
   11. Formulaires (contact / checkout / newsletter)
   ========================================================================== */
.vx-form { display: grid; gap: 18px; }
.vx-form__row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.vx-field label { display: block; margin-bottom: 7px; font-weight: 600; font-size: .92rem; color: var(--vx-primary); }
.vx-field input, .vx-field select, .vx-field textarea,
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="search"], input[type="number"], select, textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--vx-grey-300); border-radius: 10px;
  font: inherit; font-size: .97rem; color: var(--vx-text); background: #fff;
  transition: border-color var(--vx-transition), box-shadow var(--vx-transition);
}
.vx-field input:focus, .vx-field select:focus, .vx-field textarea:focus,
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--vx-primary-light); box-shadow: 0 0 0 4px rgba(29, 78, 122, .12);
}
.vx-field--check { display: flex; align-items: flex-start; gap: 11px; font-size: .92rem; }
.vx-field--check input { width: auto; margin-top: 4px; }
.vx-form__note { font-size: .84rem; color: var(--vx-grey-500); }

.vx-contact-grid { display: grid; gap: 34px; grid-template-columns: 1.35fr 1fr; align-items: start; }
.vx-info-card {
  padding: 30px; border-radius: var(--vx-radius); background: #fff;
  border: 1px solid var(--vx-grey-100); box-shadow: var(--vx-shadow-sm);
}
.vx-info-card h3 { margin-bottom: 18px; }
.vx-info-list { list-style: none; margin: 0; padding: 0; }
.vx-info-list li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--vx-grey-100); }
.vx-info-list li:last-child { border-bottom: 0; }
.vx-info-list .vx-info-list__icon {
  width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 10px; background: var(--vx-grey-50); color: var(--vx-accent);
}

.vx-alert { padding: 16px 20px; border-radius: var(--vx-radius-sm); margin-bottom: 26px; font-size: .94rem; }
.vx-alert--success { background: #e8f6f1; border-left: 4px solid var(--vx-teal); color: #14604f; }
.vx-alert--info { background: #eaf2fa; border-left: 4px solid var(--vx-primary-light); color: var(--vx-primary); }
.vx-alert--warn { background: #fdf3e3; border-left: 4px solid #e8a33d; color: #8a5a10; }

/* ==========================================================================
   12. Newsletter
   ========================================================================== */
.vx-newsletter {
  padding: 46px; border-radius: 22px; color: #fff; text-align: center;
  background: linear-gradient(135deg, var(--vx-primary-dark), var(--vx-primary-light));
}
.vx-newsletter h2 { color: #fff; }
.vx-newsletter p { color: rgba(255, 255, 255, .82); }
.vx-newsletter form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 560px; margin: 22px auto 0; }
.vx-newsletter input[type="email"] {
  flex: 1 1 280px; border: 0; border-radius: 50px; padding: 15px 22px; background: rgba(255, 255, 255, .14); color: #fff;
}
.vx-newsletter input[type="email"]::placeholder { color: rgba(255, 255, 255, .68); }

/* ==========================================================================
   13. WooCommerce
   ========================================================================== */
.woocommerce-page .vx-content { padding-top: 40px; }
.woocommerce ul.products { display: grid; gap: 30px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
  width: 100% !important; margin: 0 !important; float: none !important; text-align: left;
  background: #fff; border: 1px solid var(--vx-grey-100); border-radius: var(--vx-radius);
  overflow: hidden; box-shadow: var(--vx-shadow-sm); transition: all var(--vx-transition);
  display: flex; flex-direction: column;
}
.woocommerce ul.products li.product:hover { transform: translateY(-8px); box-shadow: var(--vx-shadow-lg); }
.woocommerce ul.products li.product a img { margin: 0; border-radius: 0; aspect-ratio: 4 / 3; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 16px 20px 0; font-size: 1.12rem; color: var(--vx-primary); }
.woocommerce ul.products li.product .price {
  padding: 0 20px; margin: 8px 0 0; color: var(--vx-accent); font-size: 1.35rem; font-weight: 800;
}
.woocommerce ul.products li.product .price del { color: var(--vx-grey-500); font-size: .9rem; font-weight: 500; }
.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .add_to_cart_button {
  margin: 18px 20px 22px; border-radius: 50px; background: var(--vx-primary); color: #fff;
  font-weight: 600; padding: 12px 22px; text-align: center;
}
.woocommerce ul.products li.product .button:hover { background: var(--vx-accent); color: #fff; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 26px; color: var(--vx-grey-500); }
.woocommerce .woocommerce-ordering select { width: auto; display: inline-block; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 8px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px;
  background: var(--vx-grey-50); color: var(--vx-primary); font-weight: 600;
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--vx-primary); color: #fff; }

.woocommerce div.product .product_title { font-size: 2rem; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--vx-accent); font-size: 1.8rem; font-weight: 800; }
.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  border-radius: 50px; background: var(--vx-accent); color: #fff; font-weight: 600; padding: 14px 30px; border: 0;
}

/* ===== Bouton « Acheter maintenant » (achat direct) ===== */
.vx-btn--buy-now {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  margin-left: 10px; padding: 14px 30px; border-radius: 50px;
  background: var(--vx-primary); color: #fff !important;
  font-weight: 600; line-height: 1; text-align: center; text-decoration: none;
  border: 2px solid var(--vx-primary);
  transition: all var(--vx-transition);
  box-shadow: 0 6px 18px rgba(15, 47, 79, .22);
}
.vx-btn--buy-now:hover,
.vx-btn--buy-now:focus {
  background: var(--vx-primary-dark); border-color: var(--vx-primary-dark);
  color: #fff !important; transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 47, 79, .3);
}
.vx-btn--buy-now svg { flex: 0 0 auto; }

/* Empêche le bouton de passer à la ligne sous le bouton panier */
.woocommerce div.product form.cart .vx-btn--buy-now { margin-top: 0; }

/* Dans la grille boutique : sous le bouton « Ajouter au panier » */
.woocommerce ul.products li.product .vx-btn--buy-now {
  display: block; margin: 0 20px 22px; padding: 12px 22px;
  font-size: .92rem; border-radius: 50px;
}

@media (max-width: 480px) {
  .vx-btn--buy-now { margin-left: 0; margin-top: 12px; width: 100%; }
}
.woocommerce #respond input#submit:hover, .woocommerce a.button:hover,
.woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--vx-accent-dark); color: #fff; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; display: flex; gap: 6px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: 0; background: var(--vx-grey-50); border-radius: 10px 10px 0 0; margin: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #fff; border-bottom-color: #fff; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--vx-primary); font-weight: 600; }
.woocommerce table.shop_table { border: 1px solid var(--vx-grey-100); border-radius: var(--vx-radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.woocommerce table.shop_table th { background: var(--vx-grey-50); color: var(--vx-primary); }
.woocommerce .cart_totals h2, .woocommerce-checkout h3 { font-size: 1.25rem; }
.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register,
.woocommerce-checkout #customer_details, .woocommerce-checkout #order_review {
  border: 1px solid var(--vx-grey-100); border-radius: var(--vx-radius); padding: 26px; background: #fff;
}
.woocommerce-checkout #order_review_heading { margin-top: 34px; }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info, .woocommerce .woocommerce-error {
  border-top: 0; border-left: 4px solid var(--vx-teal); background: var(--vx-grey-50); border-radius: var(--vx-radius-sm);
}
/* Badges de confiance sous le bouton de commande */
.vx-trust { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 18px; font-size: .84rem; color: var(--vx-grey-500); }
.vx-trust span { display: inline-flex; align-items: center; gap: 7px; }

/* ==========================================================================
   14. Pied de page
   ========================================================================== */
.vx-footer { background: var(--vx-primary-dark); color: rgba(255, 255, 255, .74); padding: 68px 0 0; font-size: .94rem; }
.vx-footer__grid { display: grid; gap: 40px; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
.vx-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; position: relative; padding-bottom: 13px; }
.vx-footer h3::after { content: ""; position: absolute; bottom: 0; left: 0; width: 42px; height: 3px; border-radius: 3px; background: var(--vx-accent); }
.vx-footer a { color: rgba(255, 255, 255, .74); }
.vx-footer a:hover { color: #fff; }
.vx-footer ul { list-style: none; margin: 0; padding: 0; }
.vx-footer li { margin-bottom: 11px; }
.vx-footer__brand .vx-logo { font-size: 1.5rem; margin-bottom: 16px; }
.vx-footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.vx-footer__contact svg, .vx-footer__contact i { color: var(--vx-accent); margin-top: 3px; flex: 0 0 auto; }
.vx-social { display: flex; gap: 12px; margin-top: 20px; }
.vx-social a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff;
}
.vx-social a:hover { background: var(--vx-accent); transform: translateY(-3px); color: #fff; }
.vx-footer__pay { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.vx-footer__pay span {
  padding: 7px 14px; border-radius: 8px; background: rgba(255, 255, 255, .08);
  font-size: .78rem; font-weight: 600; color: rgba(255, 255, 255, .82);
}
.vx-footer__bottom {
  margin-top: 54px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  font-size: .86rem; color: rgba(255, 255, 255, .6);
}
.vx-footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.vx-footer__legal a { color: rgba(255, 255, 255, .6); }
.vx-footer__legal a:hover { color: #fff; }

/* ==========================================================================
   15. Barre mobile + accessibilité
   ========================================================================== */
.vx-mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 250;
  background: #fff; border-top: 1px solid var(--vx-grey-100); box-shadow: 0 -4px 20px rgba(15, 47, 79, .08);
}
.vx-mobile-bar ul { display: flex; margin: 0; padding: 0; list-style: none; }
.vx-mobile-bar li { flex: 1; }
.vx-mobile-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px;
  font-size: .7rem; color: var(--vx-grey-500); font-weight: 600;
}
.vx-mobile-bar a.is-active, .vx-mobile-bar a:hover { color: var(--vx-accent); }
.vx-mobile-bar i, .vx-mobile-bar svg { font-size: 1.15rem; }

.vx-back-to-top {
  position: fixed; right: 22px; bottom: 84px; z-index: 240;
  width: 46px; height: 46px; display: grid; place-items: center; border: 0; cursor: pointer;
  border-radius: 50%; background: var(--vx-primary); color: #fff; box-shadow: var(--vx-shadow);
  opacity: 0; visibility: hidden; transition: all var(--vx-transition);
}
.vx-back-to-top.is-visible { opacity: 1; visibility: visible; }
.vx-back-to-top:hover { background: var(--vx-accent); transform: translateY(-3px); }

/* ==========================================================================
   16. Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .vx-footer__grid { grid-template-columns: 1fr 1fr; }
  .vx-cta { grid-template-columns: 1fr; text-align: left; }
  .vx-cta__action { text-align: left; }
}

@media (max-width: 900px) {
  .vx-nav-toggle { display: grid; place-items: center; }
  .vx-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--vx-primary-dark);
    padding: 14px 20px 22px; box-shadow: var(--vx-shadow); display: none;
  }
  .vx-nav.is-open { display: block; }
  .vx-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .vx-nav a { padding: 13px 12px; border-radius: 8px; }
  .vx-nav .sub-menu { position: static; display: block; background: rgba(255, 255, 255, .06); box-shadow: none; padding-left: 12px; margin: 4px 0; }
  .vx-nav .sub-menu a { color: rgba(255, 255, 255, .85); }
  .vx-contact-grid { grid-template-columns: 1fr; }
  .vx-header__inner { flex-wrap: wrap; }
}

@media (max-width: 782px) {
  .vx-section { padding: 58px 0; }
  .vx-hero { min-height: 500px; padding: 70px 0; }
  .vx-form__row { grid-template-columns: 1fr; }
  .vx-mobile-bar { display: block; }
  body { padding-bottom: 62px; }
  .vx-back-to-top { bottom: 78px; }
}

@media (max-width: 600px) {
  .vx-topbar__usp { display: none; }
  .vx-logo { font-size: 1.3rem; }
  .vx-hero__stats { gap: 26px; }
  .vx-hero__stat strong { font-size: 1.5rem; }
  .vx-newsletter, .vx-cta { padding: 30px 22px; }
  .vx-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .vx-footer__bottom { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   17. Impression (utile pour CGV / mentions légales)
   ========================================================================== */
@media print {
  .vx-header, .vx-footer, .vx-mobile-bar, .vx-back-to-top, .vx-topbar, .vx-newsletter { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .vx-page-header { background: none !important; color: #000 !important; padding: 0 0 18px; }
  .vx-page-header h1, .vx-page-header p { color: #000 !important; }
  .vx-content { padding: 0; }
}
