/*
Theme Name: Usine Theme
Theme URI: https://example.local
Author: Webiteasy
Author URI: https://example.local
Description: Minimal base theme for the software factory
Version: 0.1.0
Text Domain: usine-theme
*/

*, *::before, *::after { box-sizing: border-box; }
html {
  background-color: var(--usine-bg-primary, #FFFFFF);
}
body {
  margin: 0;
  background-color: var(--usine-bg-primary, #FFFFFF);
  font-family: var(--usine-font-family-base, Roboto, "Helvetica Neue", Arial, sans-serif);
}

.usine-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  /* Fallbacks if ACF options not imported yet */
  --usine-bg-primary: #CAC9C5;
  --us-color-bg: #FFFFFF;
  --us-color-fg: #e2e8f0;
  --us-color-muted: #94a3b8;
  --us-color-accent: #10b981;
  --us-color-accent-2: #0ea5e9;

  /*
   * Breakpoints de référence (alignés sur assets/css/usine-components.css).
   * Les @media ne peuvent pas utiliser des custom properties ; documenter ici la grille unique :
   *  — large ≤1200  : padding section allégé
   *  — tablette ≤1024
   *  — mobile  ≤768
   *  — petit   ≤640 (optionnel, composants)
   */
  --usine-doc-bp-wide: 1200px;
  --usine-doc-bp-tablet: 1024px;
  --usine-doc-bp-mobile: 768px;
  --usine-doc-bp-small: 640px;
}

.us-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.us-section {
  padding: 3.5rem 0;
}

.us-section__header {
  margin-bottom: 2rem;
}

.us-section__title {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  line-height: 1.2;
}

.us-section__subtitle {
  margin: 0;
  color: var(--us-color-muted);
  font-size: 1.05rem;
}

.us-hero {
  padding: 4rem 0 4.5rem;
  background: linear-gradient(180deg, rgba(2,6,23,0.9), rgba(2,6,23,0.6));
  color: var(--us-color-fg);
  text-align: left;
}

.us-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.75);
}

.us-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.1;
}

.us-hero__subtitle {
  margin: 0 0 1.5rem;
  max-width: 640px;
  color: rgba(226, 232, 240, 0.9);
}

.us-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.us-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--us-color-accent);
  color: #022c22;
}

.us-button:hover,
.us-button:focus {
  text-decoration: none;
  filter: brightness(0.95);
}

.us-button--ghost {
  background: transparent;
  border: 1px solid rgba(226, 232, 240, 0.6);
  color: var(--us-color-fg);
}

.us-button--solid {
  background: var(--us-color-accent-2);
  color: #ffffff;
}

.us-link {
  color: var(--us-color-accent-2);
  text-decoration: none;
  font-weight: 600;
}

.us-link:hover,
.us-link:focus {
  text-decoration: underline;
}

/* Features */
.us-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.us-feature {
  background: rgba(15, 23, 42, 0.04);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.us-feature__icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.us-feature__title {
  margin: 0;
  font-size: 1.2rem;
}

.us-feature__meta {
  margin: 0;
  color: var(--us-color-muted);
  font-size: 0.95rem;
}

.us-feature__desc {
  margin: 0;
  color: var(--us-color-muted);
}

/* FAQ */
.us-faq__list {
  display: grid;
  gap: 1rem;
}

.us-faq__item {
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
}

.us-faq__item[open] {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.us-faq__q {
  cursor: pointer;
  font-weight: 600;
}

.us-faq__a {
  margin-top: 0.75rem;
  color: #1f2937;
}

/* CTA */
.us-cta {
  padding: 3rem 0;
  background: var(--us-color-accent-2);
  color: #ffffff;
  text-align: center;
}

.us-cta__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.us-cta__subtitle {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

.us-cta__actions {
  margin: 0;
}

/* Contact */
.us-contact__layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .us-contact__layout {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.us-contact__details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.us-contact__label {
  display: inline-block;
  min-width: 88px;
  font-weight: 600;
  color: var(--us-color-muted);
}

.us-contact__form {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

/* Gallery */
.us-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.us-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.us-gallery__caption {
  margin-top: 0.5rem;
  color: var(--us-color-muted);
  font-size: 0.9rem;
}

/* Testimonials */
.us-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.us-testimonial {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.us-testimonial__avatar img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
}

.us-testimonial__quote {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
}

.us-testimonial__author {
  margin: 0;
  font-weight: 600;
}

.us-testimonial__role {
  font-weight: 400;
  color: var(--us-color-muted);
  margin-left: 0.25rem;
}

/* Pricing */
.us-pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.us-plan {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.75rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: #ffffff;
}

.us-plan__badge {
  align-self: flex-start;
  padding: 0.25rem 0.625rem;
  background: rgba(14, 165, 233, 0.12);
  color: var(--us-color-accent-2);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.us-plan__title {
  margin: 0;
  font-size: 1.35rem;
}

.us-plan__price {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.us-plan__features {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.us-plan__actions {
  margin: 0;
}

/* Logos */
.us-logos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.us-logos__item {
  text-align: center;
}

.us-logos__item img {
  max-width: 140px;
  width: 100%;
  height: auto;
  filter: grayscale(1);
  opacity: 0.8;
}

/* Search */
.us-search__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.us-search__title {
  margin: 0 0 0.5rem;
}

.us-search__title a {
  text-decoration: none;
}

.us-search__title a:hover,
.us-search__title a:focus {
  text-decoration: underline;
}

.us-search__meta {
  margin: 0 0 0.75rem;
  color: var(--us-color-muted);
  font-size: 0.9rem;
}

.us-search__excerpt {
  margin: 0;
  color: #1f2937;
}

.us-search__pagination {
  margin-top: 2rem;
}

.us-search__empty {
  display: grid;
  gap: 1rem;
}

/* Archive */
.us-archive__list {
  display: grid;
  gap: 2rem;
}

.us-article {
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  padding-bottom: 2rem;
}

.us-article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.us-article__title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.us-article__title a {
  text-decoration: none;
}

.us-article__title a:hover,
.us-article__title a:focus {
  text-decoration: underline;
}

.us-article__meta {
  margin: 0 0 1rem;
  color: var(--us-color-muted);
}

.us-article__excerpt p {
  margin: 0 0 1rem;
}

.us-article__actions {
  margin: 0;
}

.us-archive__pagination {
  margin-top: 2.5rem;
}

.us-archive__empty {
  text-align: center;
  color: var(--us-color-muted);
}

/* Flex content fallback */
.usine-block-missing {
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.08);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.usine-block-missing__inner {
  max-width: 960px;
  margin: 0 auto;
}

.usine-block-missing__inner p {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.usine-block-missing__data {
  white-space: pre-wrap;
  font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.08);
  padding: 0.75rem;
  border-radius: 0.375rem;
}

/* Header */
.site-header {
  padding: 0.75rem 1rem;
  background: #0b1220;
  color: var(--us-color-fg);
}

.site-header .site-title {
  font-weight: 700;
  text-decoration: none;
  color: var(--us-color-fg);
}

.site-header .site-tagline {
  margin-left: 0.5rem;
  color: var(--us-color-muted);
  font-size: 0.9rem;
}

.site-header .us-btn {
  margin-left: 1rem;
  background: var(--us-color-accent-2);
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  text-decoration: none;
}

/* ==========================================================================
   Usine Image Placeholder System
   ========================================================================== */
.usine-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(circle at top left, rgba(36, 100, 209, 0.16), transparent 38%),
      linear-gradient(135deg, #f8fafc 0%, #e8eef6 100%);
    color: #5f6f86;
    border: 1px solid #d7e0ea;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.usine-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.55;
    pointer-events: none;
}

.usine-image-placeholder svg {
    position: relative;
    z-index: 1;
    width: 40%;
    height: 40%;
    max-width: 48px;
    max-height: 48px;
}

.usine-image-placeholder__label {
    position: relative;
    z-index: 1;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.72;
}

/* Size variants */
.usine-image-placeholder--small {
    width: 24px;
    height: 24px;
}

.usine-image-placeholder--medium {
    width: 80px;
    height: 80px;
}

.usine-image-placeholder--large {
    width: 100%;
    aspect-ratio: 4/3;
    min-height: 150px;
}

/* Avatar variant (circular) */
.usine-image-placeholder--avatar {
    border-radius: 50%;
}

/* ==========================================================================
   Global UX rules (site-wide)
   ========================================================================== */
html {
  overflow-x: clip;
}

html,
body {
  background-color: #CAC9C5 !important;
}

body {
  padding: 16px;
}

/* Règle globale: 16px entre navbar et premier contenu */
.usine-navbar + main#primary {
  margin-top: 16px;
}

/*
 * Espace global: 16px entre le dernier contenu de page et le footer.
 * Padding sur <main> (pas sur les blocs) : pas d’alteration des marges internes ACF ;
 * le dernier margin-bottom d’un bloc se comporte normalement (pas de marge ajoutée
 * par-dessus via un sélecteur :last-child sur les sections).
 */
main#primary.site-main {
  padding-bottom: 16px;
}

@media (max-width: 768px) {
  body {
    padding: 8px;
  }
}

/* REC-RSP-002: chaîne layout page — min-width:0 pour flex/grid, pas de clip horizontal ici
   (certains blocs ex. témoignages utilisent 100vw / overflow visible sur la section). */
#primary.site-main,
.site-main,
.page-content-wrapper,
.entry-content {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Longues chaînes / URLs : évite le scroll horizontal sans casser la lecture (FR) */
.entry-content {
  overflow-wrap: break-word;
}

.entry-content pre,
.entry-content code {
  max-width: 100%;
}

.entry-content pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.entry-content canvas,
.entry-content picture {
  max-width: 100%;
  height: auto;
}

/* REC-RSP-003: racines de blocs dans le flux — min-width:0 pour flex/grid descendants */
.entry-content > [class*="bloc-"],
.entry-content > [class*="usine-bloc-"],
.entry-content .usine-bloc-stack {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.entry-content img,
.entry-content video {
  max-width: 100%;
  height: auto;
}

.entry-content iframe {
  max-width: 100%;
}

/* Keep 16px vertical rhythm between dynamic blocks/sections */
.entry-content > * + *,
.site-main > * + * {
  margin-top: 16px;
}

/* Enchaînement maquette : pas de marge entre texte 01 et features 02 */
.entry-content > .bloc-text-01 + .bloc-features-02 {
  margin-top: 0;
}

/* Même marge lorsque les deux blocs sont dans .usine-bloc-stack (rendu flexible-content.php) */
.entry-content .usine-bloc-stack--text01-feat02 > .bloc-text-01 + .bloc-features-02 {
  margin-top: 0;
}

/*
 * Enveloppe commune générée quand bloc_text_01 est immédiatement suivi de bloc_features_02
 * (coins 8px sur le conteneur ; sections internes sans rayon pour un seul visuel)
 */
.usine-bloc-stack--text01-feat02 {
  border-radius: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.entry-content .usine-bloc-stack--text01-feat02 > .bloc-text-01,
.entry-content .usine-bloc-stack--text01-feat02 > .bloc-features-02 {
  border-radius: 0 !important;
}

/* Global block rounding (racines de section uniquement pour éviter les faux positifs) */
.entry-content > section[class^="bloc-"],
.entry-content > section[class*=" bloc-"],
.entry-content > section[class^="usine-bloc-"],
.entry-content > section[class*=" usine-bloc-"] {
  border-radius: 0;
}

/* Highlights ciblés : couleur bleue demandée */
#features-04-fc-bloc_features_04-5 .bloc-features-04__headline-highlight,
.usine-bloc-stack--text01-feat02 .bloc-text-01__headline-highlight,
#pricing-01-fc-bloc_pricing_01-6 .bloc-pricing-01__headline-highlight,
#testimonials-01-fc-bloc_testimonials_01-7 .bloc-testimonials-01__headline-highlight {
  color: #045FFF !important;
}

/* Bloc hardcodé (sans ACF) inséré entre features-04-8 et gallery-01 */
.usine-hardcoded-showcase {
  background: #ffffff;
  border-radius: 8px;
  padding-top: 80px;
  padding-bottom: 80px;
  padding-left: var(--section-padding-x, 64px);
  padding-right: var(--section-padding-x, 64px);
}

.usine-hardcoded-showcase__container {
  width: 100%;
  max-width: var(--section-max-width, 1312px);
  margin: 0 auto;
  box-sizing: border-box;
}

.usine-hardcoded-showcase__tagline {
  margin: 0 0 20px;
  font-family: "Inter Tight", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #696e71;
}

.usine-hardcoded-showcase__title {
  margin: 0 0 20px;
  max-width: none;
  width: 100%;
  font-family: "Inter Tight", sans-serif;
  font-size: 43px;
  font-weight: 500;
  line-height: 1;
  color: #232425;
}

.usine-hardcoded-showcase__desc {
  margin: 0 0 32px;
  max-width: none;
  width: 100%;
  font-family: "Figtree", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #5a5e60;
}

.usine-hardcoded-showcase__slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.usine-hardcoded-showcase__track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: max-content;
  animation: usine-hardcoded-showcase-scroll 36s linear infinite;
  will-change: transform;
}

.usine-hardcoded-showcase__slide {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: #efefef;
  flex: 0 0 clamp(260px, 24vw, 340px);
}

.usine-hardcoded-showcase__slide img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
}

@keyframes usine-hardcoded-showcase-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-50% - 12px), 0, 0);
  }
}

@media (min-width: 1025px) {
  /* Desktop only: breakout slider to full viewport width, keep text aligned in container */
  .usine-hardcoded-showcase {
    overflow-x: clip;
  }

  .usine-hardcoded-showcase__slider {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  /* Desktop: soften carousel edges (natural fade like testimonials peek). */
  .usine-hardcoded-showcase__slider::before,
  .usine-hardcoded-showcase__slider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(32px, 5vw, 84px);
    pointer-events: none;
    z-index: 2;
  }

  .usine-hardcoded-showcase__slider::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
  }

  .usine-hardcoded-showcase__slider::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
  }
}

@media (max-width: 1024px) {
  .usine-hardcoded-showcase {
    padding-top: 64px;
    padding-bottom: 64px;
    padding-left: var(--section-padding-x, 64px);
    padding-right: var(--section-padding-x, 64px);
  }

  .usine-hardcoded-showcase__tagline {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .usine-hardcoded-showcase__title {
    font-size: 36px;
    margin-bottom: 14px;
  }

  .usine-hardcoded-showcase__desc {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .usine-hardcoded-showcase__track {
    gap: 16px;
    animation-duration: 32s;
  }

  .usine-hardcoded-showcase__slide {
    flex-basis: clamp(240px, 42vw, 320px);
    padding: 0 !important;
    aspect-ratio: 1 / 1;
  }

  .usine-hardcoded-showcase__slide img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: cover;
    display: block;
  }

  /* Mobile only: +25% line-height on selected H2 headings */
  section#features-04-fc-bloc_features_04-5 .bloc-features-04__header .bloc-features-04__headline,
  section#pricing-01-fc-bloc_pricing_01-6 .bloc-pricing-01__header .bloc-pricing-01__headline,
  section.usine-hardcoded-showcase .usine-hardcoded-showcase__title,
  section#testimonials-01-fc-bloc_testimonials_01-7 .bloc-testimonials-01__header .bloc-testimonials-01__headline {
    line-height: 1.25 !important;
  }
}

@media (max-width: 768px) {
  .usine-hardcoded-showcase {
    padding-top: 48px;
    padding-bottom: 48px;
    padding-left: var(--section-padding-x, 64px);
    padding-right: var(--section-padding-x, 64px);
  }

  .usine-hardcoded-showcase__title {
    font-size: 28px;
  }

  .usine-hardcoded-showcase__desc {
    font-size: 16px;
  }

  .usine-hardcoded-showcase__track {
    gap: 12px;
    animation-duration: 28s;
  }

  .usine-hardcoded-showcase__slide {
    flex-basis: min(82vw, 300px);
    padding: 0 !important;
    aspect-ratio: 1 / 1;
  }

  .usine-hardcoded-showcase__slide img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: cover;
    display: block;
  }
}

/* Bloc hardcode KPIs homepage (entre features-04-5 et header-01-6) */
.usine-hardcoded-kpis {
  background: #0f2340;
  border-radius: 0;
  padding: 0 var(--section-padding-x, 64px);
}

.usine-hardcoded-kpis__container {
  max-width: var(--section-max-width, 1312px);
  margin: 0 auto;
  width: 100%;
}

.usine-hardcoded-kpis__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  background: transparent;
  border-radius: 0;
  padding: 28px 32px;
}

.usine-hardcoded-kpis__item {
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.usine-hardcoded-kpis__value {
  margin: 0 !important;
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(34px, 2.2vw, 48px);
  font-weight: 500;
  line-height: 1;
  color: #ffffff;
}

.usine-hardcoded-kpis__label {
  margin: 0 !important;
  font-family: "Figtree", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
}

@media (max-width: 1024px) {
  .usine-hardcoded-kpis {
    padding: 0 var(--section-padding-x, 64px);
  }

  .usine-hardcoded-kpis__value {
    font-size: calc(clamp(34px, 2.2vw, 48px) * 1.2) !important;
  }

  .usine-hardcoded-kpis__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px;
    padding: 24px;
  }

  .usine-hardcoded-kpis__label {
    font-size: 20px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .usine-hardcoded-kpis__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, auto) !important;
  }
}

@media (max-width: 768px) {
  .usine-hardcoded-kpis {
    padding: 0 var(--section-padding-x, 64px);
  }

  .usine-hardcoded-kpis__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 20px;
  }

  .usine-hardcoded-kpis__label {
    font-size: 18px;
  }
}

/* Tablette et tablette etroite : toujours 2 articles par ligne, 2 lignes */
@media (min-width: 641px) and (max-width: 768px) {
  .usine-hardcoded-kpis__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, auto) !important;
  }
}
