/* ==========================================================================
   THÈME DU SITE CLIENT — refonte graphique 2026, version 2 (maquettes V2)
   Bleu roi, kraft, pied de page noir. Polices : Roboto (titres, menus),
   Inter (FAQ, articles), Poppins (avis, titres d'articles), Nunito Sans
   (pied de page), Source Sans 3 (texte du hero et des cartes métiers).
   Chargé par components/header.php sur toutes les pages client (pas dans le
   back-office), après les styles propres à chaque page : il les surcharge.
   Les règles d'en-tête sont préfixées .header-wrapper.is-front pour primer
   sur les styles internes de header.php, partagés avec le back-office.
   ========================================================================== */

:root {
  /* Marque */
  --cs-blue: #1a50d7;
  --cs-blue-dark: #1340b0;
  --cs-blue-darker: #0e2f86;
  --cs-blue-band: #e9ecfb;
  --cs-blue-soft: #f3f7fe;
  --cs-kraft: #ff7f00;
  --cs-kraft-dark: #d66600;
  --cs-kraft-soft: #fff1e3;
  --cs-ink: #111111;
  --cs-text: #2b2d33;
  --cs-muted: #6b6f7a;
  --cs-line: #ededed;
  --cs-footer: #1a1a1a;
  --cs-red: #e3120b;
  --cs-radius: 6px;
  --cs-font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --cs-font-condensed: 'Roboto Condensed', 'Roboto', 'Arial Narrow', Arial, sans-serif;
  --cs-font-text: 'Source Sans 3', 'Source Sans Pro', 'Segoe UI', Arial, sans-serif;
  --cs-font-inter: 'Inter', 'Segoe UI', Arial, sans-serif;
  --cs-font-poppins: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --cs-font-nunito: 'Nunito Sans', 'Segoe UI', Arial, sans-serif;

  /* Gabarits des maquettes (largeur de référence 1430px) */
  --cs-container: 1192px;
  --cs-container-wide: 1352px;
  --cs-container-text: 1340px;
  --cs-gutter: 16px;

  /* Hauteur de l'en-tête fixe (barre 44 + bandeau 107 + menu 51 ; mobile : barre 26 + bandeau 52) */
  --cs-header-h: 202px;
  --cs-header-h-mobile: 78px;

  /* Variables historiques du site (« --blue » était le vert de l'ancienne charte) */
  --blue: var(--cs-blue);
  --blue-dark: var(--cs-blue-dark);
  --blue-darker: var(--cs-blue-darker);
  --primary: var(--cs-blue);
  --primary-dark: var(--cs-blue-dark);
  --primary-darker: var(--cs-blue-darker);
  --text-secondary: var(--cs-blue-dark);
  --font-primary: var(--cs-font);
  --font-secondary: var(--cs-font);

  /* Formes plus carrées que l'ancienne charte (variables des pages client) */
  --page-radius-xs: 4px;
  --page-radius-sm: 4px;
  --page-radius: 6px;
  --page-radius-md: 6px;
  --page-radius-lg: 6px;
  --page-radius-xl: 0px;
  --radius-xs: 4px;
  --radius-sm: 4px;
  --radius-base: 6px;
  --radius-md: 6px;
  --radius-lg: 6px;
  --radius-xl: 6px;
  --page-shadow-hover: 0 10px 30px rgba(15, 23, 42, 0.10);
  --page-shadow-tint: 0 12px 34px rgba(15, 23, 42, 0.14);
  --page-text: var(--cs-text);
}

/* Empêche tout débordement horizontal sur mobile (animations d'apparition,
   décors…) sans casser les éléments « sticky », contrairement à overflow: hidden */
html,
body {
  overflow-x: clip;
}

body {
  font-family: var(--cs-font);
  color: var(--cs-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cs-font);
}

/* Pages construites sur les blocs V2 (personnalisation, métiers, catégories, conseils) */
body.cs-page {
  margin: 0;
  background: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.cs-page *,
body.cs-page *::before,
body.cs-page *::after {
  box-sizing: border-box;
}

body.cs-page img {
  max-width: 100%;
}

body.cs-page main {
  padding-bottom: 0;
}

/* Conteneurs des maquettes */
.cs-container,
.cs-container-wide,
.cs-container-text {
  width: min(var(--cs-container), 100% - 2 * var(--cs-gutter));
  margin-inline: auto;
}

.cs-container-wide {
  width: min(var(--cs-container-wide), 100% - 2 * var(--cs-gutter));
}

.cs-container-text {
  width: min(var(--cs-container-text), 100% - 2 * var(--cs-gutter));
}

/* ==========================================================================
   EN-TÊTE (components/header.php)
   ========================================================================== */
.header-wrapper.is-front {
  font-family: var(--cs-font);
}

.header-wrapper.is-front .top-bar {
  height: 44px;
  background: var(--cs-blue);
  transition: margin-top 0.25s ease;
}

/* En défilant, la barre bleue se replie : l'en-tête ne garde que 158px */
.header-wrapper.is-front.is-scrolled .top-bar {
  margin-top: -44px;
}

.header-wrapper.is-front .top-bar-inner {
  max-width: var(--cs-container);
  padding: 0;
  gap: 0;
  font-family: var(--cs-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.header-wrapper.is-front .top-bar-item {
  padding: 0 12px;
  border-left: 1px solid #ffffff;
  line-height: 44px;
}

.header-wrapper.is-front .top-bar-left .top-bar-item {
  line-height: 44px;
}

.header-wrapper.is-front .top-bar-message {
  padding-left: 12px;
  border-left: none;
  border-right: none;
}

.header-wrapper.is-front .top-bar-item svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

/* Sélecteur de langue */
.header-wrapper.is-front .top-bar-lang {
  position: relative;
  display: flex;
  border-right: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
}

.header-wrapper.is-front .top-bar-lang > button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border: none;
  background: none;
  color: #ffffff;
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

.header-wrapper.is-front .top-bar-lang > button svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.header-wrapper.is-front .top-bar-lang-menu {
  position: absolute;
  top: 100%;
  left: -1px;
  z-index: 1100;
  display: none;
  min-width: calc(100% + 2px);
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.header-wrapper.is-front .top-bar-lang:hover .top-bar-lang-menu,
.header-wrapper.is-front .top-bar-lang:focus-within .top-bar-lang-menu {
  display: block;
}

.header-wrapper.is-front .top-bar-lang-menu a {
  display: block;
  padding: 8px 12px;
  color: var(--cs-ink);
  font-size: 13px;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
}

.header-wrapper.is-front .top-bar-lang-menu a:hover {
  background: var(--cs-blue-band);
  color: var(--cs-blue);
}

/* Bandeau : logo, recherche, compte / favoris / panier */
.header-wrapper.is-front .middle-bar {
  height: 107px;
  background: var(--cs-blue-band);
}

.header-wrapper.is-front .middle-bar-inner {
  max-width: var(--cs-container);
  padding: 0;
  gap: 0;
}

.header-wrapper.is-front .site-logo {
  margin-bottom: 4px;
}

.header-wrapper.is-front .site-logo img {
  width: 360px;
  height: auto;
}

.header-wrapper.is-front .header-search {
  flex: 0 1 583px;
  max-width: 583px;
  margin: 0 0 0 26px;
}

.header-wrapper.is-front .search-form {
  margin-bottom: 7px;
  border-radius: 6px;
  box-shadow: none;
}

.header-wrapper.is-front .search-form input {
  height: 38px;
  padding: 0 16px;
  border: 1px solid #f9fafe;
  border-radius: 6px 0 0 6px;
  background: #f9fafe;
  font-family: var(--cs-font-inter);
  font-size: 14px;
  color: var(--cs-ink);
}

.header-wrapper.is-front .search-form input::placeholder {
  color: #5f6673;
}

.header-wrapper.is-front .search-form input:focus {
  border-color: var(--cs-blue);
}

.header-wrapper.is-front .search-form button {
  width: 42px;
  border-radius: 0 6px 6px 0;
  background: var(--cs-blue);
  font-size: 14px;
}

.header-wrapper.is-front .header-icons {
  gap: 0;
  margin: 0 -6px 16px auto;
}

.header-wrapper.is-front .header-action {
  gap: 4px;
  min-width: 67px;
  padding: 4px 0 2px;
  color: #5b6170;
  background: none;
}

.header-wrapper.is-front .header-action:hover {
  color: var(--cs-blue);
  background: none;
}

.header-wrapper.is-front .header-action svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

.header-wrapper.is-front .header-action-label {
  font-family: var(--cs-font);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.header-wrapper.is-front .cart-count,
.header-wrapper.is-front .wishlist-badge {
  top: -5px;
  right: -9px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  font-size: 9px;
  line-height: 14px;
  box-shadow: none;
}

/* Menu : liens centrés dans l'espace libre, « Bons plans » à droite */
.header-wrapper.is-front .main-navigation {
  height: 51px;
  border-bottom: none;
}

.header-wrapper.is-front .nav-container {
  display: flex;
  align-items: center;
  max-width: var(--cs-container);
  padding: 0;
}

.header-wrapper.is-front .menu-list {
  flex: 1;
  justify-content: center;
  gap: 24px;
  height: 100%;
}

.header-wrapper.is-front .menu-item {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-wrapper.is-front .menu-link {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0;
  font-family: var(--cs-font);
  padding-top: 2px;
  font-size: 15.8px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--cs-ink);
}

@media (min-width: 1201px) {
  .header-wrapper.is-front .menu-link i.fa-chevron-down {
    display: none;
  }
}

.header-wrapper.is-front .menu-link::before {
  bottom: 8px;
}

.header-wrapper.is-front .menu-link:hover::before {
  width: 100%;
}

/* La maquette ne marque pas la page courante dans le menu */
.header-wrapper.is-front .menu-link.active {
  color: var(--cs-ink);
}

.header-wrapper.is-front .menu-link.active:hover {
  color: var(--cs-blue);
}

.header-wrapper.is-front .menu-link.active:not(:hover)::before {
  width: 0;
}

.header-wrapper.is-front .nav-deals {
  gap: 2px;
  margin-right: 21px;
  padding: 0;
  font-family: var(--cs-font);
  padding-top: 2px;
  font-size: 15.8px;
  font-weight: 500;
  color: var(--cs-blue);
}

.header-wrapper.is-front .nav-deals-badge {
  padding: 0 4px;
  border-radius: 6px;
  background: var(--cs-red);
  font-family: var(--cs-font);
  font-size: 9px;
  font-weight: 700;
  line-height: 11px;
  letter-spacing: 0;
  transform: translateY(-2px);
}

/* « Bons plans » dans le menu : mobile uniquement (sinon lien à droite du menu) */
.header-wrapper.is-front .menu-item.menu-item-deals {
  display: none;
}

.header-wrapper.is-front .menu-link.promo {
  color: var(--cs-blue);
}

/* Méga-menu « Par catégorie » : sous le menu, aligné sur le lien */
.header-wrapper.is-front .megamenu {
  top: 100%;
}

@media (max-width: 1260px) {
  .header-wrapper.is-front .top-bar-inner,
  .header-wrapper.is-front .middle-bar-inner,
  .header-wrapper.is-front .nav-container {
    padding: 0 var(--cs-gutter);
  }

  .header-wrapper.is-front .header-search {
    margin-left: 32px;
  }
}

@media (max-width: 1200px) {
  .header-wrapper.is-front .menu-list {
    height: 100vh;
    justify-content: flex-start;
    gap: 0;
  }

  .header-wrapper.is-front .menu-item {
    display: block;
    height: auto;
  }

  .header-wrapper.is-front .menu-link {
    height: auto;
    padding: 15px 25px;
    font-size: 15px;
  }

  .header-wrapper.is-front .nav-container {
    justify-content: space-between;
  }
}

@media (max-width: 1024px) {
  .header-wrapper.is-front .site-logo img {
    width: 240px;
  }

  .header-wrapper.is-front .header-search {
    margin-left: 20px;
  }

  .header-wrapper.is-front .header-action {
    min-width: 52px;
  }
}

@media (max-width: 900px) {
  .header-wrapper.is-front .top-bar-lang,
  .header-wrapper.is-front .top-bar-item.is-newsletter {
    display: none;
  }
}

@media (max-width: 768px) {
  /* En-tête compact sur une seule ligne : menu, logo, recherche, compte / favoris / panier.
     78px de haut (barre bleue 26 + bandeau 52), 52px une fois la barre repliée au défilement. */
  .header-wrapper.is-front {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .header-wrapper.is-front .top-bar {
    grid-column: 1 / -1;
    height: 26px;
  }

  .header-wrapper.is-front.is-scrolled .top-bar {
    margin-top: -26px;
  }

  .header-wrapper.is-front .top-bar-inner {
    justify-content: center;
    font-size: 11px;
  }

  .header-wrapper.is-front .top-bar-right {
    display: none;
  }

  .header-wrapper.is-front .top-bar-item,
  .header-wrapper.is-front .top-bar-left .top-bar-item {
    line-height: 26px;
    border: none;
    padding: 0;
  }

  .header-wrapper.is-front .main-navigation {
    grid-row: 2;
    grid-column: 1;
    height: 52px;
    background: var(--cs-blue-band);
  }

  .header-wrapper.is-front .nav-container {
    padding: 0 0 0 4px;
  }

  .header-wrapper.is-front .burger-btn {
    padding: 8px 6px;
    font-size: 21px;
  }

  /* « Bons plans » passe dans le menu (components/header.php) */
  .header-wrapper.is-front .nav-deals {
    display: none;
  }

  .header-wrapper.is-front .menu-item.menu-item-deals {
    display: block;
  }

  .header-wrapper.is-front .middle-bar {
    grid-row: 2;
    grid-column: 2;
    height: 52px;
  }

  .header-wrapper.is-front .middle-bar-inner {
    gap: 8px;
    padding: 0 6px 0 0;
  }

  .header-wrapper.is-front .site-logo {
    margin-bottom: 0;
  }

  /* Mobile : le logo complet prendrait toute la barre, on ne garde que le carton */
  .header-wrapper.is-front .site-logo img.site-logo-full {
    display: none;
  }

  .header-wrapper.is-front .site-logo img.site-logo-mark {
    display: block;
    width: auto;
    height: 40px;
  }

  .header-wrapper.is-front .header-search {
    flex: 1;
    max-width: none;
    margin: 0;
  }

  .header-wrapper.is-front .search-form {
    margin-bottom: 0;
  }

  .header-wrapper.is-front .search-form input {
    height: 36px;
    font-size: 13px;
    padding: 0 10px;
  }

  .header-wrapper.is-front .search-form button {
    width: 38px;
  }

  .header-wrapper.is-front .header-icons {
    margin: 0;
  }

  .header-wrapper.is-front .header-action {
    min-width: 32px;
    padding: 4px 2px;
  }

  /* Espace client : pas de menu, la barre latérale le remplace */
  body.dashboard-active .header-wrapper.is-front {
    display: block;
  }
}

/* ==========================================================================
   TITRE DE SECTION : majuscules, soulignement bleu sur filet gris
   <div class="cs-title"><h2>…</h2></div>
   ========================================================================== */
.cs-title {
  width: min(var(--cs-container), 100% - 2 * var(--cs-gutter));
  margin: 0 auto;
  border-bottom: 3px solid var(--cs-line);
  text-align: center;
}

.cs-title > h2,
.cs-title > h1 {
  display: inline-block;
  margin: 0 0 -3px;
  padding: 0 8px 18px;
  border-bottom: 3px solid var(--cs-blue);
  color: var(--cs-ink);
  font-family: var(--cs-font);
  font-size: 26.1px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Ancienne classe (pages À propos…) alignée sur le même rendu */
.cs-section-title {
  display: table;
  margin: 0 auto;
  padding: 0 8px 18px;
  border-bottom: 3px solid var(--cs-blue);
  color: var(--cs-ink);
  font-family: var(--cs-font);
  font-size: 26.1px;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  background: none;
}

/* ==========================================================================
   HERO : photo pleine largeur, titre à gauche
   ========================================================================== */
.cs-hero {
  position: relative;
  height: 329px;
  padding: 28px 0 0 max(45px, calc((100% - var(--cs-container-text)) / 2));
  background: #eeeeec var(--cs-hero-img, url('/assets/img/v2/hero-emballages.jpg')) right top / cover no-repeat;
}

.cs-hero-title {
  margin: 0;
  color: var(--cs-hero-title, var(--cs-ink));
  font-family: var(--cs-font);
  font-size: 46px;
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.cs-hero-title strong {
  display: block;
  color: var(--cs-hero-highlight, var(--cs-kraft));
  font-size: 52.5px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

.cs-hero-text {
  max-width: 510px;
  margin: 22px 0 0;
  color: var(--cs-hero-text, var(--cs-ink));
  font-family: var(--cs-font-text);
  font-size: 13.5px;
  line-height: 16px;
  letter-spacing: 0;
}

.cs-hero-text strong {
  font-weight: 700;
}

/* Visuel sombre (texte clair choisi dans le back-office) : légère ombre pour la lisibilité */
.cs-hero--dark .cs-hero-title,
.cs-hero--dark .cs-hero-text {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.cs-hero--dark .cs-more-btn {
  color: #fff;
}

/* Accueil : hero plus haut, cartes métiers en surimpression */
.cs-hero--home {
  height: 499px;
  padding-top: 66px;
}

.cs-hero--home .cs-hero-text {
  margin-top: 22px;
}

.cs-hero-metiers {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
}

/* ==========================================================================
   CARTES MÉTIERS (accueil, page « Par métier »)
   ========================================================================== */
.cs-metier-card {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 157px;
  padding: 0 4px 0 8px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--cs-blue);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.55);
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cs-metier-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.cs-metier-card__text {
  flex: 0 0 51%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 12px;
  text-align: right;
}

.cs-metier-card__intro {
  font-family: var(--cs-font);
  font-size: 21.2px;
  font-weight: 300;
  line-height: 1.1;
}

.cs-metier-card__name {
  margin: 1px 0 0;
  font-family: var(--cs-font);
  font-size: 22.5px;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.cs-metier-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 9px 0 0;
  font-family: var(--cs-font-text);
  font-size: 11px;
  font-weight: 600;
  line-height: 10.6px;
}

.cs-metier-card__img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.cs-metier-card__img img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
}

/* Grille (page « Par métier ») */
.cs-metiers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px 8px;
  margin: 30px auto 0;
}

/* Carrousel (accueil) */
.cs-carousel {
  position: relative;
}

.cs-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 8px) / 4);
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2px 1px 8px;
}

.cs-carousel-track::-webkit-scrollbar {
  display: none;
}

.cs-carousel-track > * {
  scroll-snap-align: start;
}

.cs-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 80px;
  margin-top: -44px;
  padding: 0;
  border: none;
  background: none;
  color: #ffffff;
  cursor: pointer;
}

.cs-carousel-btn svg {
  width: 26px;
  height: 76px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
}

.cs-carousel-btn.is-prev {
  left: -25px;
}

.cs-carousel-btn.is-next {
  right: -25px;
}

/* ==========================================================================
   RÉASSURANCE : tuiles kraft (accueil)
   ========================================================================== */
.cs-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  padding: 11px 7px 0 6px;
}

.cs-trust-item {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 74px;
  padding: 0 12px 0 36px;
  border-radius: 4px;
  background: var(--cs-kraft);
  color: #ffffff;
}

.cs-trust-item svg {
  flex: none;
  width: 70px;
  height: 52px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cs-trust-item strong {
  display: block;
  font-family: var(--cs-font);
  font-size: 16.6px;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.cs-trust-item span {
  display: block;
  font-family: var(--cs-font);
  font-size: 16.2px;
  font-weight: 400;
  line-height: 1.05;
}

/* ==========================================================================
   BANNIÈRES PROMO (accueil)
   ========================================================================== */
/* Colonnes de 576, 381 et 191px séparées de 39 et 4px (marges incluses dans les fractions) */
.cs-promos {
  display: grid;
  grid-template-columns: 615fr 381fr 195fr;
  margin-top: 38px;
}

.cs-promo {
  position: relative;
  display: block;
  height: 252px;
  overflow: hidden;
  background: #efefef;
  color: var(--cs-ink);
  text-decoration: none;
}

.cs-promo--pizza {
  margin-right: 39px;
}

/* L'image (modifiable dans le back-office) ne déborde jamais sur le texte de droite */
.cs-promo--pizza > img {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: auto;
  max-width: 54%;
  object-fit: cover;
  object-position: left center;
}

.cs-promo--food > img,
.cs-promo-minis img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-promo-badge {
  position: absolute;
  top: 14px;
  padding: 0 12px;
  color: #ffffff;
  font-family: var(--cs-font);
  font-size: 20px;
  font-weight: 700;
  line-height: 36px;
}

.cs-promo-badge.is-green {
  right: 0;
  border-radius: 18px 0 0 18px;
  background: #8b9d6b;
}

.cs-promo-badge.is-red {
  left: 0;
  border-radius: 0 18px 18px 0;
  background: #c8140c;
}

.cs-promo-copy {
  position: absolute;
  right: 22px;
  top: 108px;
  text-align: right;
}

.cs-promo-kicker {
  display: block;
  font-family: var(--cs-font);
  font-size: 23px;
  font-weight: 300;
  line-height: 1.1;
  text-transform: uppercase;
}

.cs-promo-copy strong {
  display: block;
  color: var(--cs-blue);
  font-family: var(--cs-font);
  font-size: 28.2px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.cs-promo-btn {
  display: inline-block;
  padding: 0 16px;
  border-radius: 3px;
  background: var(--cs-blue);
  color: #ffffff;
  font-family: var(--cs-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 46px;
  text-transform: uppercase;
  transition: background 0.2s;
}

.cs-promo-copy .cs-promo-btn {
  margin: 20px 21px 0 0;
}

.cs-promo--food .cs-promo-btn {
  position: absolute;
  left: 20px;
  bottom: 23px;
  background: var(--cs-kraft);
}

.cs-promo:hover .cs-promo-btn {
  background: var(--cs-blue-dark);
}

.cs-promo--food:hover .cs-promo-btn {
  background: var(--cs-kraft-dark);
}

.cs-promo-minis {
  margin-left: 4px;
  display: grid;
  grid-template-rows: 122fr 125fr;
  gap: 5px;
  height: 252px;
}

.cs-promo-minis a {
  display: block;
  overflow: hidden;
  background: #efefef;
}

.cs-promos-more {
  margin: 7px 0 0;
  text-align: right;
}

.cs-promos-more a {
  color: var(--cs-blue);
  font-family: var(--cs-font-text);
  font-size: 19.6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   SECTIONS DE L'ACCUEIL
   ========================================================================== */
.cs-section {
  padding-top: 47px;
}

.cs-bestsellers {
  padding-top: 19px;
}

/* Cartes produits (bestsellers) : détails et actions au survol */
.cs-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 14px;
  margin-top: 16px;
}

.cs-product {
  position: relative;
  min-width: 0;
}

.cs-product__box {
  position: relative;
  background: #ffffff;
  text-align: center;
}

.cs-product__img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 288 / 282;
  overflow: hidden;
  background: #ffffff;
}

.cs-product__img {
  position: relative;
}

/* Bandeau personnalisé du produit (même rendu que .badge-custom du catalogue) */
.cs-product__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-product__badges .badge-custom {
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
  color: #ffffff;
  font-family: var(--cs-font-poppins);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.2;
  text-transform: uppercase;
}

.cs-product__img img {
  width: 100%;
  height: 100%;
  padding: 9%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.cs-product__noimg {
  color: #c8c8c8;
  font-size: 40px;
}

.cs-product__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 15px 8px 0;
  font-family: var(--cs-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.cs-product__name a {
  color: var(--cs-ink);
  text-decoration: none;
}

.cs-product__cat {
  margin: 4px 0 0;
  color: #9a9a9a;
  font-family: var(--cs-font);
  font-size: 13.5px;
  line-height: 1.3;
  text-transform: uppercase;
}

.cs-product__price {
  margin: 5px 0 0;
  color: var(--cs-blue);
  font-family: var(--cs-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  word-spacing: 0.15em;
}

.cs-product__more {
  display: none;
}

.cs-product__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 9px 8px 0;
  color: #9a9a9a;
  font-family: var(--cs-font);
  font-size: 14px;
  line-height: 14px;
}

.cs-product__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding: 0 21px 0 20px;
}

.cs-product__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: none;
  color: #222222;
  cursor: pointer;
}

.cs-product__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cs-product__icon.is-active {
  color: var(--cs-red);
}

.cs-product__icon.is-active svg {
  fill: currentColor;
}

.cs-product__cart {
  width: 145px;
  padding: 4px 8px;
  border: none;
  border-radius: 3px;
  background: var(--cs-blue);
  color: #ffffff;
  font-family: var(--cs-font);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 14px;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 42px;
}

.cs-product__cart:hover {
  background: var(--cs-blue-dark);
}

.cs-product__cart:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (hover: hover) and (min-width: 769px) {
  .cs-product:hover .cs-product__box,
  .cs-product:focus-within .cs-product__box {
    z-index: 5;
    margin: -21px -13px 0;
    padding: 21px 13px 0;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.10);
  }

  .cs-product:hover .cs-product__img,
  .cs-product:focus-within .cs-product__img {
    aspect-ratio: 288 / 270;
  }

  /* L'image raccourcit de 12px : le titre descend d'autant pour ne pas bouger */
  .cs-product:hover .cs-product__name,
  .cs-product:focus-within .cs-product__name {
    margin-top: 27px;
  }

  .cs-product:hover .cs-product__more,
  .cs-product:focus-within .cs-product__more {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: 0 0 14px;
    background: #ffffff;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.10);
    clip-path: inset(0 -20px -20px -20px);
  }
}

/* Écrans tactiles : actions toujours visibles, sans description */
@media (hover: none), (max-width: 768px) {
  .cs-product__more {
    display: block;
  }

  .cs-product__desc {
    display: none;
  }
}

/* Personnalisation : zone de test sur bande bleue (components/logo-customizer.php) */
/* Espace réservé sous les bestsellers : le panneau d'actions au survol y déborde */
.cs-customizer-title {
  padding-top: 217px;
}

@media (hover: none), (max-width: 768px) {
  .cs-customizer-title {
    padding-top: 60px;
  }
}

/* ==========================================================================
   AVIS CLIENTS ET LOGOS
   ========================================================================== */
.cs-testimonials {
  padding-top: 52px;
}

.cs-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 336px);
  justify-content: center;
  column-gap: calc((100% - 3 * 336px) / 2);
  align-items: start;
  width: min(1198px, 100% - 2 * var(--cs-gutter));
  margin: 27px auto 0;
}

.cs-testimonial {
  padding: 24px 25px 26px 24px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.09);
  font-family: var(--cs-font-poppins);
}

.cs-testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cs-testimonial-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e6e8ee;
  color: #45484f;
  font-size: 11px;
  font-weight: 600;
}

.cs-testimonial-author strong {
  display: block;
  color: #111111;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.25;
}

.cs-testimonial-role {
  display: block;
  color: #555555;
  font-size: 7.6px;
  font-weight: 500;
  line-height: 1.3;
}

.cs-testimonial p {
  margin: 17px 0 0;
  font-family: inherit;
  color: #666666;
  font-size: 9.4px;
  line-height: 17.6px;
}

.cs-testimonial-stars {
  display: flex;
  gap: 1px;
  margin-top: 14px;
  color: #eb9a2e;
}

.cs-testimonial-stars svg {
  width: 9px;
  height: 9px;
  fill: currentColor;
}

.cs-clients {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1176px, 100% - 2 * var(--cs-gutter));
  margin: 41px auto 0;
  padding: 0;
  list-style: none;
}

.cs-clients img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- Badge Google (note, nombre d'avis, liens vers la fiche) --- */
.cs-google-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  width: fit-content;
  max-width: calc(100% - 2 * var(--cs-gutter));
  margin: 27px auto 0;
  padding: 14px 24px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.09);
  font-family: var(--cs-font-poppins);
}

.cs-google-g {
  flex: none;
  width: 34px;
  height: 34px;
}

.cs-google-badge-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cs-google-badge-score {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-google-badge-score strong {
  color: #111111;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.cs-google-badge-stars {
  display: flex;
  gap: 2px;
  color: #fbbc05;
}

.cs-google-badge-stars svg {
  width: 17px;
  height: 17px;
}

.cs-google-badge-count {
  color: #555555;
  font-size: 13px;
  line-height: 1.2;
}

.cs-google-badge-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-google-btn {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--cs-kraft);
  border-radius: 4px;
  background: var(--cs-kraft);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.cs-google-btn:hover,
.cs-google-btn:focus-visible {
  filter: brightness(0.92);
}

.cs-google-btn.is-ghost {
  background: transparent;
  color: var(--cs-kraft);
}

/* --- Cartes d'avis Google --- */
img.cs-testimonial-avatar {
  object-fit: cover;
}

.cs-testimonial-author a {
  color: inherit;
  text-decoration: none;
}

.cs-review-toggle {
  padding: 0;
  border: 0;
  background: none;
  color: var(--cs-kraft);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.cs-testimonial p.cs-testimonial-source {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: #777777;
  font-size: 8.6px;
  line-height: 1.2;
}

.cs-testimonial-source .cs-google-g {
  width: 13px;
  height: 13px;
}

/* ==========================================================================
   ARTICLES « CONSEILS » (accueil, page Nos conseils)
   ========================================================================== */
.cs-news {
  padding-top: 103px;
}

.cs-blog {
  padding-top: 25px;
}

.cs-articles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 281px));
  justify-content: space-between;
  gap: 21px 20px;
  width: min(1206px, 100% - 2 * var(--cs-gutter));
  margin: 28px auto 0;
}

.cs-article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 368px;
  padding: 11px 11px 0 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.10);
  font-family: var(--cs-font-inter);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s;
}

a.cs-article:hover {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.16);
}

.cs-article__img {
  flex: none;
  height: 145px;
  overflow: hidden;
  border-radius: 8px;
  background: #eef1f6;
}

.cs-article__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-article__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  color: #5a6b85;
  font-size: 13.7px;
  font-weight: 600;
  line-height: 20px;
}

.cs-article__meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;
}

.cs-article__meta svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.cs-article__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 9px 0 0;
  color: #1c2434;
  font-family: var(--cs-font-poppins);
  font-size: 19.5px;
  font-weight: 700;
  line-height: 28px;
}

.cs-article__excerpt {
  font-family: var(--cs-font-inter);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 8px 0 0;
  color: #5d6f88;
  font-size: 15.7px;
  line-height: 24px;
}

.cs-article__tags {
  display: flex;
  gap: 6px;
  margin: 7px 0 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  white-space: nowrap;
}

.cs-article__tags li {
  flex: none;
  padding: 0 8px;
  border: 1px solid #e3e6ec;
  border-radius: 999px;
  background: #f9fafb;
  color: #2c3442;
  font-size: 12px;
  line-height: 22px;
}

/* ==========================================================================
   TEXTE SEO (pages intérieures)
   ========================================================================== */
.cs-seo {
  margin-top: 30px;
  color: var(--cs-ink);
  font-family: var(--cs-font);
}

.cs-seo h2 {
  margin: 0;
  color: var(--cs-ink);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.cs-seo p {
  margin: 20px 0 0;
  font-size: 18.2px;
  line-height: 21.6px;
}

.cs-seo p + p {
  margin-top: 12px;
}

/* ==========================================================================
   PAGE « PAR CATÉGORIE » : tuiles bleues avec pictogramme
   ========================================================================== */
.cs-categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 160px);
  justify-content: center;
  gap: 14px 13px;
  margin: 21px auto 0;
}

.cs-category-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 158px;
  padding: 16px 8px 0;
  border-radius: 8px;
  background: var(--cs-blue);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cs-category-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.cs-category-tile strong {
  font-family: var(--cs-font);
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.cs-category-tile__icon {
  position: absolute;
  left: 50%;
  top: 55px;
  width: 148px;
  height: 100px;
  margin-left: -74px;
}

svg.cs-category-tile__icon {
  top: 62px;
  height: 80px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   QUI, QUOI, COMMENT ? (components/faq-band.php)
   ========================================================================== */
.faq-band {
  padding-top: 34px;
  background: #ffffff;
  font-family: var(--cs-font-inter);
}

.faq-band-head {
  width: min(var(--cs-container), 100% - 2 * var(--cs-gutter));
  margin: 0 auto;
  border-bottom: 3px solid var(--cs-line);
  text-align: center;
}

.faq-band-head .cs-section-title {
  display: inline-block;
  margin-bottom: -3px;
  padding: 0 8px 12px;
}

.faq-band-body {
  background: var(--cs-kraft);
  padding: 53px 20px 56px;
}

.faq-band-grid {
  max-width: 1196px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 20px;
  align-items: start;
}

.faq-band-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.faq-band-item {
  background: #ffffff;
  border: 1px solid #5a8ff0;
}

.faq-band-item[open] {
  border: 2px solid var(--cs-blue);
}

.faq-band-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 75px;
  padding: 10px 26px 10px 26px;
  color: var(--cs-blue);
  font-family: var(--cs-font-inter);
  font-size: 15.15px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s, color 0.2s;
}

.faq-band-item summary::-webkit-details-marker {
  display: none;
}

.faq-band-item summary svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.faq-band-item summary:hover {
  background: var(--cs-blue-soft);
}

.faq-band-item summary:focus-visible {
  outline: 3px solid rgba(26, 80, 215, 0.35);
  outline-offset: 2px;
}

.faq-band-item[open] summary {
  min-height: 75px;
  margin: -1px -1px 0;
  background: var(--cs-blue);
  color: #ffffff;
  font-weight: 400;
  letter-spacing: 0;
}

.faq-band-item[open] summary svg {
  transform: rotate(180deg);
}

.faq-band-answer {
  padding: 24px 26px 22px;
  background: var(--cs-blue-soft);
  color: #5b5f69;
  font-size: 13.2px;
  line-height: 20px;
}

/* typography.css fixe police et taille des <p> : on reprend celles du bloc */
.faq-band-answer p {
  margin: 0;
  font: inherit;
}

/* Réponses saisies dans le back-office : paragraphes, listes, liens */
.faq-band-answer > * + * {
  margin-top: 8px;
}

.faq-band-answer ul,
.faq-band-answer ol {
  margin: 0;
  padding-left: 18px;
}

.faq-band-answer ul li {
  list-style: disc;
}

.faq-band-answer ol li {
  list-style: decimal;
}

.faq-band-answer a {
  color: var(--cs-blue, #1a50d7);
  font-weight: 600;
  text-decoration: underline;
}

.faq-band-more {
  margin: 26px 0 0;
  text-align: center;
}

.faq-band-more a {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  background: #ffffff;
  color: var(--cs-blue);
  font-family: var(--cs-font);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.faq-band-more a:hover {
  background: var(--cs-blue);
  color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE DES SECTIONS V2
   ========================================================================== */
@media (max-width: 1260px) {
  .cs-promo--pizza {
    margin-right: 16px;
  }

  .cs-categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    width: min(var(--cs-container), 100% - 2 * var(--cs-gutter));
  }

  .cs-carousel-btn.is-prev {
    left: -6px;
  }

  .cs-carousel-btn.is-next {
    right: -6px;
  }
}

@media (max-width: 1100px) {
  /* Photo sous le texte : les produits restent visibles sans gêner la lecture */
  .cs-hero,
  .cs-hero--home {
    height: auto;
    padding: 24px var(--cs-gutter) 190px;
    /* à gauche de la photo, le mur et le bord de table sont prolongés en dégradé */
    background:
      var(--cs-hero-img, url('/assets/img/v2/hero-emballages.jpg')) right bottom / auto 200px no-repeat,
      linear-gradient(to top, #eceeed 42px, #dcddd9 42px, #dcddd9 55px, #ececea 55px);
  }

  /* Visuel sombre : le fond prolongé passe au bleu nuit, pour garder le texte clair lisible */
  .cs-hero--dark,
  .cs-hero--dark.cs-hero--home {
    background:
      var(--cs-hero-img, url('/assets/img/v2/hero-emballages.jpg')) right bottom / auto 200px no-repeat,
      #031326;
  }

  .cs-hero-metiers {
    position: static;
    margin: 24px calc(-1 * var(--cs-gutter)) 0;
  }

  .cs-promo--pizza > img {
    width: 50%;
    object-fit: cover;
    object-position: left center;
  }

  .cs-promo-kicker {
    font-size: 18px;
  }

  .cs-promo-copy strong {
    font-size: 21px;
  }

  .cs-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px var(--cs-gutter) 0;
  }

  .cs-metiers-grid,
  .cs-articles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cs-carousel-track {
    grid-auto-columns: calc((100% - 8px) / 2);
  }

  .cs-testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .cs-clients {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 36px;
  }
}

@media (max-width: 900px) {
  .cs-promos {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .cs-promo--pizza {
    grid-column: 1 / -1;
    margin-right: 0;
  }

  .cs-promo-minis {
    margin-left: 0;
  }

  .cs-promo-minis {
    height: 252px;
  }

  .cs-testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

}

/* ==========================================================================
   MOBILE (≤ 768px) : pages compactes
   Les listes (métiers de l'accueil, bannières, bestsellers, avis, articles)
   deviennent des rangées à faire glisser du doigt [data-cs-carousel], avec
   points de pagination (assets/js/cs-mobile.js) ; les textes longs sont
   repliés derrière « Lire la suite » [data-cs-clamp].
   ========================================================================== */
.cs-dots,
.cs-more-btn,
.cs-clients .is-loop-copy {
  display: none;
}

@media (max-width: 768px) {
  /* --- Hero : texte sur la photo voilée, sans bandeau photo en dessous --- */
  .cs-hero,
  .cs-hero--home {
    height: auto;
    padding: 18px var(--cs-gutter) 16px;
    background:
      linear-gradient(90deg, rgba(245, 245, 243, 0.97) 0%, rgba(245, 245, 243, 0.9) 58%, rgba(245, 245, 243, 0.5) 100%),
      var(--cs-hero-img, url('/assets/img/v2/hero-emballages.jpg')) 78% 100% / cover no-repeat;
  }

  /* Visuel sombre : voile foncé au lieu du voile clair */
  .cs-hero--dark,
  .cs-hero--dark.cs-hero--home {
    background:
      linear-gradient(90deg, rgba(8, 18, 36, 0.92) 0%, rgba(8, 18, 36, 0.8) 58%, rgba(8, 18, 36, 0.45) 100%),
      var(--cs-hero-img, url('/assets/img/v2/hero-emballages.jpg')) 78% 100% / cover no-repeat;
  }

  .cs-hero-title,
  .cs-hero--home .cs-hero-title {
    font-size: 26px;
  }

  .cs-hero-title strong,
  .cs-hero--home .cs-hero-title strong {
    font-size: 28px;
  }

  .cs-hero-text,
  .cs-hero--home .cs-hero-text {
    --cs-clamp: 56px;
    max-width: none;
    margin-top: 10px;
    font-size: 13.5px;
    line-height: 1.35;
  }

  .cs-hero-metiers {
    margin: 14px calc(-1 * var(--cs-gutter)) 0;
  }

  /* --- Titres de section --- */
  .cs-title > h2,
  .cs-title > h1,
  .cs-section-title {
    padding-bottom: 12px;
    font-size: 19px;
    text-wrap: balance;
  }

  /* --- Réassurance : 2 × 2 tuiles compactes --- */
  .cs-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px var(--cs-gutter) 0;
  }

  .cs-trust-item {
    gap: 7px;
    height: auto;
    min-height: 58px;
    padding: 8px 8px 8px 9px;
  }

  .cs-trust-item svg {
    width: 30px;
    height: 26px;
    stroke-width: 3;
  }

  .cs-trust-item strong,
  .cs-trust-item span {
    font-size: 11.5px;
    line-height: 1.2;
  }

  /* --- Rangées à faire glisser (pleine largeur d'écran) --- */
  [data-cs-carousel] {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-template-rows: none;
    grid-auto-columns: 80%;
    justify-content: start;
    gap: 12px;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 4px var(--cs-gutter) 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--cs-gutter);
    scrollbar-width: none;
  }

  [data-cs-carousel]::-webkit-scrollbar {
    display: none;
  }

  [data-cs-carousel] > * {
    min-width: 0;
    scroll-snap-align: start;
  }

  .cs-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
  }

  .cs-dots[hidden] {
    display: none;
  }

  .cs-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: #cfd4df;
    cursor: pointer;
    transition: width 0.2s, background 0.2s;
  }

  .cs-dots button.is-active {
    width: 18px;
    background: var(--cs-blue);
  }

  /* Cartes métiers de l'accueil : une carte et le début de la suivante */
  .cs-carousel-track[data-cs-carousel] {
    grid-auto-columns: 86%;
  }

  .cs-carousel-btn {
    display: none;
  }

  /* --- Bannières promo --- */
  .cs-promos {
    margin-top: 18px;
  }

  .cs-promos[data-cs-carousel] {
    grid-auto-columns: 86%;
  }

  .cs-promos[data-cs-carousel] > * {
    grid-column: auto;
    margin: 0;
  }

  .cs-promo,
  .cs-promo-minis {
    height: 190px;
  }

  .cs-promo-minis {
    gap: 4px;
  }

  .cs-promo--pizza > img {
    width: 45%;
    object-fit: cover;
    object-position: left center;
  }

  .cs-promo-badge {
    top: 10px;
    padding: 0 10px;
    font-size: 14px;
    line-height: 28px;
  }

  .cs-promo-copy {
    top: auto;
    right: 12px;
    bottom: 14px;
  }

  .cs-promo-kicker {
    font-size: 14px;
  }

  .cs-promo-copy strong {
    font-size: 16px;
  }

  .cs-promo-copy .cs-promo-btn {
    margin: 10px 0 0;
  }

  .cs-promo-btn {
    padding: 0 12px;
    font-size: 13px;
    line-height: 36px;
  }

  .cs-promo--food .cs-promo-btn {
    left: 12px;
    bottom: 14px;
  }

  .cs-promos-more {
    margin-top: 0;
  }

  .cs-promos-more a {
    font-size: 15px;
  }

  /* --- Bestsellers : deux produits visibles, on fait glisser pour la suite --- */
  .cs-bestsellers {
    padding-top: 26px;
  }

  .cs-products {
    margin-top: 12px;
  }

  .cs-products[data-cs-carousel] {
    grid-auto-columns: 44%;
  }

  .cs-products[data-cs-carousel] > .loading-placeholder {
    grid-column: span 2 !important;
  }

  .cs-product__name,
  .cs-product__cat,
  .cs-product__price {
    font-size: 12px;
  }

  .cs-product__name {
    margin: 10px 4px 0;
  }

  .cs-product__actions {
    margin-top: 10px;
    padding: 0 2px;
  }

  .cs-product__icon {
    width: 28px;
  }

  .cs-product__cart {
    flex: 1;
    width: auto;
    min-height: 38px;
    margin: 0 4px;
    padding: 4px 6px;
    font-size: 10.5px;
    line-height: 12px;
  }

  /* --- Personnalisation --- */
  .cs-customizer-title {
    padding-top: 34px;
  }

  /* --- Avis clients : une carte et le début de la suivante --- */
  .cs-testimonials {
    padding-top: 34px;
  }

  .cs-testimonials-grid {
    margin-top: 16px;
  }

  .cs-testimonials-grid[data-cs-carousel] {
    grid-auto-columns: 84%;
    align-items: stretch;
  }

  .cs-testimonial {
    padding: 18px;
  }

  .cs-testimonial p {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.55;
  }

  .cs-testimonial-author strong {
    font-size: 13px;
  }

  .cs-testimonial-role {
    font-size: 11px;
  }

  .cs-testimonial-stars {
    margin-top: 10px;
  }

  .cs-google-badge {
    gap: 12px 16px;
    margin-top: 16px;
    padding: 14px 16px;
  }

  .cs-google-badge-links {
    justify-content: center;
    width: 100%;
  }

  .cs-testimonial p.cs-testimonial-source {
    font-size: 11px;
  }

  .cs-testimonial-stars svg {
    width: 12px;
    height: 12px;
  }

  /* --- Logos clients : une seule ligne qui défile toute seule --- */
  .cs-clients-wrap {
    margin-top: 22px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }

  .cs-clients {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 36px;
    width: max-content;
    margin: 0;
    animation: cs-logos 30s linear infinite;
  }

  .cs-clients .is-loop-copy {
    display: list-item;
  }

  .cs-clients li {
    flex: none;
  }

  .cs-clients img {
    width: auto;
    height: auto;
    max-width: 104px;
    max-height: 44px;
  }

  /* --- Articles (accueil) --- */
  .cs-news {
    padding-top: 34px;
  }

  .cs-articles {
    margin-top: 16px;
  }

  .cs-articles[data-cs-carousel] {
    grid-auto-columns: 78%;
  }

  .cs-article {
    height: 350px;
  }

  /* --- Page « Nos conseils » : liste compacte (vignette + titre) --- */
  .cs-blog {
    padding-top: 20px;
  }

  .cs-blog .cs-articles {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(var(--cs-container), 100% - 2 * var(--cs-gutter));
    max-width: none;
  }

  .cs-blog .cs-article {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-content: start;
    column-gap: 12px;
    height: auto;
    padding: 8px;
  }

  .cs-blog .cs-article__img {
    grid-row: 1 / 3;
    height: 80px;
    border-radius: 6px;
  }

  .cs-blog .cs-article__meta {
    margin-top: 0;
    font-size: 12px;
    line-height: 16px;
  }

  .cs-blog .cs-article__title {
    -webkit-line-clamp: 3;
    margin-top: 4px;
    font-size: 14.5px;
    line-height: 19px;
  }

  .cs-blog .cs-article__excerpt,
  .cs-blog .cs-article__tags {
    display: none;
  }

  /* --- Page « Par métier » : deux cartes par ligne, sans le texte descriptif --- */
  .cs-metiers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: min(var(--cs-container-wide), 100% - 2 * var(--cs-gutter));
    max-width: none;
    margin-top: 16px;
  }

  .cs-metiers-grid .cs-metier-card {
    flex-direction: column;
    height: auto;
    padding: 10px 10px 6px;
  }

  .cs-metiers-grid .cs-metier-card__text {
    flex: none;
    align-items: flex-start;
    padding: 0;
    text-align: left;
  }

  .cs-metiers-grid .cs-metier-card__intro {
    font-size: 14px;
  }

  .cs-metiers-grid .cs-metier-card__name {
    font-size: 15.5px;
    line-height: 1.1;
  }

  .cs-metiers-grid .cs-metier-card__desc {
    display: none;
  }

  .cs-metiers-grid .cs-metier-card__img {
    height: 92px;
    margin-top: 6px;
  }

  .cs-metiers-grid .cs-metier-card__img img {
    max-height: 92px;
  }

  /* --- Page « Par catégorie » : trois tuiles par ligne --- */
  .cs-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: min(var(--cs-container), 100% - 2 * var(--cs-gutter));
    margin-top: 16px;
  }

  .cs-category-tile {
    height: 112px;
    padding: 10px 4px 0;
  }

  .cs-category-tile strong {
    font-size: 11.5px;
    line-height: 1.15;
  }

  .cs-category-tile__icon {
    top: 44px;
    width: 92px;
    height: 62px;
    margin-left: -46px;
  }

  svg.cs-category-tile__icon {
    top: 50px;
    height: 50px;
  }

  /* --- Texte SEO, replié --- */
  .cs-seo {
    margin-top: 24px;
  }

  .cs-seo h2 {
    font-size: 18px;
  }

  .cs-seo-text {
    --cs-clamp: 100px;
  }

  .cs-seo p {
    margin-top: 10px;
    font-size: 14.5px;
    line-height: 1.5;
  }

  /* --- « Lire la suite » --- */
  .js-clamp:not(.is-open) {
    max-height: var(--cs-clamp, 96px);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 55%, transparent);
    mask-image: linear-gradient(#000 55%, transparent);
  }

  .cs-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    padding: 4px 0;
    border: none;
    background: none;
    color: var(--cs-blue);
    font-family: var(--cs-font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }

  .cs-more-btn::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }

  .cs-more-btn[aria-expanded="true"]::after {
    transform: translateY(1px) rotate(-135deg);
  }

  .cs-more-btn[hidden] {
    display: none;
  }

  .customizer-text .cs-more-btn {
    color: #ffffff;
  }

  /* --- Questions fréquentes : accordéon resserré --- */
  .faq-band {
    padding-top: 30px;
  }

  .faq-band-body {
    padding: 20px var(--cs-gutter) 24px;
  }

  .faq-band-grid,
  .faq-band-col {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .faq-band-item summary,
  .faq-band-item[open] summary {
    min-height: 52px;
    padding: 10px 14px;
    font-size: 14px;
  }

  .faq-band-answer {
    padding: 14px;
    font-size: 13.5px;
    line-height: 1.5;
  }

  /* --- Boutons flottants (discussion, WhatsApp) plus discrets --- */
  .page-home .float-buttons {
    right: 12px;
    bottom: 16px;
    gap: 10px;
  }

  .page-home .float-btn {
    width: 48px;
    height: 48px;
  }

  .page-home .float-btn svg {
    width: 22px;
    height: 22px;
  }

  body:has(.menu-list.open) .float-buttons {
    display: none;
  }
}

/* Petits téléphones : la boîte à pizza laisse la place au texte de la bannière */
@media (max-width: 400px) {
  .cs-promo--pizza > img {
    width: 38%;
  }
}

@keyframes cs-logos {
  to {
    transform: translateX(calc(-50% - 18px));
  }
}

/* Mouvement réduit demandé : les logos ne défilent plus seuls, on les fait glisser */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .cs-clients-wrap {
    overflow-x: auto;
  }

  .cs-clients {
    animation: none;
  }

  .cs-clients .is-loop-copy {
    display: none;
  }
}

/* ==========================================================================
   CATALOGUE (products/listing.php, body.page-catalog)
   ========================================================================== */
.page-catalog .page-header {
  border: 1px solid var(--cs-line);
  box-shadow: none;
}

.page-catalog .page-header::before {
  display: none;
}

.page-catalog .page-header-eyebrow {
  border-radius: 4px;
  font-family: var(--cs-font-condensed);
}

.page-catalog .page-title {
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.page-catalog .filters-card {
  border: 1px solid var(--cs-line);
  box-shadow: none;
}

.page-catalog .product-card {
  border: 1px solid var(--cs-line);
  box-shadow: none;
}

.page-catalog .product-card:hover {
  border-color: var(--cs-blue);
  box-shadow: var(--page-shadow-hover);
  transform: none;
}

.page-catalog .product-image {
  background: #ffffff;
}

.page-catalog .product-name,
.page-catalog .product-name a {
  font-family: var(--cs-font-condensed);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cs-ink);
}

.page-catalog .product-name a:hover {
  color: var(--cs-blue);
}

.page-catalog .price-ttc {
  color: var(--cs-blue);
}

.page-catalog .product-quick-add {
  border-radius: 4px;
}

/* ==========================================================================
   MOBILE : PRODUITS AFFICHÉS PAR LIGNE DE DEUX
   Catalogue et produits similaires ; cartes compactées pour tenir
   dans une demi-largeur d'écran.
   ========================================================================== */
@media (max-width: 768px) {
  .page-catalog .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .page-catalog .product-image {
    height: 140px;
    padding: 10px;
  }

  .page-catalog .product-content {
    padding: 10px;
  }

  .page-catalog .product-brand {
    font-size: 0.6rem;
  }

  .page-catalog .product-name {
    min-height: 2.7em;
    margin-bottom: 8px;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .page-catalog .product-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 8px;
  }

  .page-catalog .price-ttc {
    font-size: 0.95rem;
  }

  .page-catalog .product-stock {
    padding: 3px 7px;
    font-size: 0.62rem;
  }

  .page-catalog .delivery-info {
    font-size: 0.6rem;
  }

  .page-catalog .product-wishlist {
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  /* Sur écran tactile, le bouton panier est toujours visible */
  .page-catalog .product-quick-add {
    bottom: 6px;
    right: 6px;
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
    opacity: 1;
    transform: none;
  }

  .page-catalog .product-badges .badge {
    padding: 3px 7px;
    font-size: 0.55rem;
  }

  /* Fiche produit : deux produits similaires visibles à la fois */
  .similar-products-carousel {
    gap: 10px;
  }

  .similar-products-carousel .new-product-card {
    min-width: calc((100% - 10px) / 2);
    max-width: calc((100% - 10px) / 2);
  }

  .similar-products-carousel .new-product-image {
    height: 130px;
    padding: 10px;
  }

  .similar-products-carousel .new-product-info {
    padding: 10px;
  }

  .similar-products-carousel .new-product-name {
    height: auto;
    min-height: 2.7em;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .similar-products-carousel .new-product-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .similar-products-carousel .new-product-price {
    font-size: 0.95rem;
  }

  .similar-products-carousel .view-product-btn-card {
    padding: 9px 6px;
    font-size: 0.7rem;
  }

  /* Flèches plus petites, au niveau des images pour ne pas masquer les noms */
  .similar-products-carousel-wrapper .carousel-nav-btn {
    top: 80px;
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .similar-products-carousel-wrapper .carousel-nav-btn.prev {
    left: -12px;
  }

  .similar-products-carousel-wrapper .carousel-nav-btn.next {
    right: -12px;
  }
}
