/**
 * Bloc Header 01 - Complete Styles
 *
 * Hero section with CTA buttons, reviews, and main image.
 * All Figma values hardcoded for pixel-perfect rendering.
 *
 * Figma reference: https://figma.com/design/I6wtq12NH17BottRCSlGff/?node-id=176:31367
 * Brand primary: #3C0314
 * Text color: #232425
 * Background: #FFFFFF
 *
 * @package Usine
 * @version 2.1.0 - Corrected Figma values
 */

/* ============================================
   ROOT BLOCK
   Figma: bloc_header_01 (root)
   ============================================ */

.usine-bloc-header-01 {
  position: relative;
  width: 100%;
  background-color: #FFFFFF;          /* Figma: bg white */
  padding: 80px var(--section-padding-x, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  overflow: visible;                   /* RC-26: was clip, clipped review badge shadow */
  /* Maquette hero : coins image / cadre — 8px (aligné ACF / inline) */
  --usine-bloc-header-01-image-radius: 8px;
  /* Fond cadre photo (#3E2B17) */
  --usine-bloc-header-01-image-bg: #3e2b17;
  /* Marge intérieure photo / bord du cadre brun */
  --usine-bloc-header-01-image-inset: clamp(16px, 3.5vw, 28px);
}

/* ============================================
   CONTAINER / LAYOUT
   Figma: contai_container
   ============================================ */

.usine-bloc-header-01__layout {
  display: flex;
  flex-direction: row;                /* Content left, media right (default) */
  flex-wrap: nowrap;                  /* NEVER wrap on desktop */
  align-items: stretch;              /* RC-11: both halves fill full height */
  gap: 40px;                          /* Maquette : respiration entre texte et visuel */
  max-width: var(--section-max-width, 1312px);
  width: 100%;
  min-height: 480px;                 /* Hauteur hero proche maquette */
  overflow: visible;                  /* RC-HEADER-CLIP: was clip, but cuts review shadow and review badge */
}

/* Header #9 : tablette uniquement — retirer la hauteur minimale */
@media (min-width: 769px) and (max-width: 1024px) {
  section#header-01-fc-bloc_header_01-9 .usine-bloc-header-01__layout {
    min-height: 0;
  }
}

/* Header #8 : tablette uniquement — retirer la hauteur minimale */
@media (min-width: 769px) and (max-width: 1024px) {
  section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__layout {
    min-height: 0;
  }
}

/* Overrides ciblés : supprimer les coins arrondis des images pour ces instances */
section#header-01-fc-bloc_header_01-1,
section#header-01-fc-bloc_header_01-8,
section#header-01-fc-bloc_header_01-9 {
  --usine-bloc-header-01-image-radius: 0px;
}

/* Header #1/#8/#9 : override le radius forcé (8px) sur wrapper + image */
section#header-01-fc-bloc_header_01-1 .usine-bloc-header-01__image-wrapper,
section#header-01-fc-bloc_header_01-1 .usine-bloc-header-01__image,
section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__image-wrapper,
section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__image,
section#header-01-fc-bloc_header_01-9 .usine-bloc-header-01__image-wrapper,
section#header-01-fc-bloc_header_01-9 .usine-bloc-header-01__image {
  border-radius: 0 !important;
}

.usine-bloc-header-01__layout--content-panel {
  gap: 0;                            /* RC-11: no gap between colored panel and image */
}

/* Layout modifier: media on left (content first in DOM, reverse so media appears left) */
.usine-bloc-header-01__layout--media-left {
  flex-direction: row;
}

/* Layout modifier: media on right (default — content first in DOM, natural order) */
.usine-bloc-header-01__layout--media-right {
  flex-direction: row;
}

/* Layout modifier: media on top */
.usine-bloc-header-01__layout--media-top {
  flex-direction: column-reverse;
}

/* Layout modifier: media on bottom */
.usine-bloc-header-01__layout--media-bottom {
  flex-direction: column;
}

/* ============================================
   HERO FLUID — 1er hero hors bannière : accueil (+ laptop) ou page « Comment ça marche »
   Typo / espacements clamp(), flex-wrap, image en cover dans le cadre.
   ============================================ */

.usine-bloc-header-01--hero-fluid.usine-bloc-header-01 {
  padding: clamp(1rem, 5vw, 5rem) clamp(1rem, 4vw, 4rem) !important;
}

.usine-bloc-header-01--hero-fluid .usine-bloc-header-01__layout:not(.usine-bloc-header-01__layout--media-background) {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: clamp(18rem, 42vw, 32rem);
}

.usine-bloc-header-01--hero-fluid .usine-bloc-header-01__content {
  flex: 1 1 300px;
  min-width: 0;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.usine-bloc-header-01--hero-fluid .usine-bloc-header-01__media {
  flex: 1 1 300px;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.usine-bloc-header-01--hero-fluid .usine-bloc-header-01__inner-wrapper {
  gap: clamp(0.625rem, 2vw, 1.5rem);
}

.usine-bloc-header-01--hero-fluid .usine-bloc-header-01__text-group {
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.usine-bloc-header-01--hero-fluid .usine-bloc-header-01__tagline {
  font-size: clamp(0.875rem, 0.35rem + 1.2vw, 1rem) !important;
  line-height: 1.5;
}

.usine-bloc-header-01--hero-fluid .usine-bloc-header-01__title {
  font-size: clamp(1.75rem, 0.85rem + 2.8vw, 3.25rem) !important;
  line-height: 1.05;
}

.usine-bloc-header-01--hero-fluid .usine-bloc-header-01__description {
  font-size: clamp(0.9375rem, 0.8rem + 0.55vw, 1.125rem) !important;
  line-height: 1.5;
}

.usine-bloc-header-01--hero-fluid .usine-bloc-header-01__description p {
  margin: 0 0 clamp(0.5rem, 1.2vw, 1rem) 0;
}

.usine-bloc-header-01--hero-fluid .usine-bloc-header-01__buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  width: auto;
  max-width: 100%;
}

.usine-bloc-header-01--hero-fluid .usine-bloc-header-01__btn,
.usine-bloc-header-01--hero-fluid.usine-bloc-header-01 .btn {
  width: auto;
  max-width: 100%;
  min-height: clamp(2.75rem, 4vw + 1.5rem, 3rem) !important;
  height: auto !important;
  min-width: min(100%, 10.5rem);
  padding: clamp(0.5rem, 1.2vw, 0.5rem) clamp(0.875rem, 2.5vw, 1.5rem);
  font-size: clamp(1rem, 0.75rem + 0.9vw, 1.25rem) !important;
  white-space: normal;
  flex: 0 1 auto;
}

.usine-bloc-header-01--hero-fluid .usine-bloc-header-01__layout--media-left .usine-bloc-header-01__buttons + .usine-bloc-header-01__review {
  margin-top: clamp(1rem, 2vw, 2rem);
}

.usine-bloc-header-01--hero-fluid .usine-bloc-header-01__review-score {
  font-size: clamp(0.8125rem, 0.7rem + 0.35vw, 0.875rem) !important;
}

.usine-bloc-header-01--hero-fluid .usine-bloc-header-01__review-count {
  font-size: clamp(0.75rem, 0.65rem + 0.3vw, 0.8125rem) !important;
}

/* Colonne visuelle : le cadre prend la hauteur dispo ; l’image remplit tout le wrapper */
.usine-bloc-header-01--hero-fluid .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child {
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  min-height: clamp(14rem, 36vw, 28rem);
  height: 100%;
  aspect-ratio: unset;
  padding: 0;
  display: block;
  position: relative;
  overflow: hidden;
}

.usine-bloc-header-01--hero-fluid .usine-bloc-header-01__layout--media-left .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image,
.usine-bloc-header-01--hero-fluid .usine-bloc-header-01__layout--media-right .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image,
main#primary > .page-content-wrapper > .entry-content > section.usine-bloc-header-01--hero-fluid:has(+ .usine-bloc-stack--text01-feat02) .usine-bloc-header-01__layout--media-left .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  flex: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Accueil : asset laptop via content (CCM garde le <img> servi par PHP).
   Exclure #header-01-fc-bloc_header_01-11 : sinon content: url() écrase le src du <img> (PHP). */
.usine-bloc-header-01--hero-fluid-laptop.usine-bloc-header-01:not(#header-01-fc-bloc_header_01-11) .usine-bloc-header-01__layout--media-left .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image,
.usine-bloc-header-01--hero-fluid-laptop.usine-bloc-header-01:not(#header-01-fc-bloc_header_01-11) .usine-bloc-header-01__layout--media-right .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image,
main#primary > .page-content-wrapper > .entry-content > section.usine-bloc-header-01--hero-fluid-laptop:not(#header-01-fc-bloc_header_01-11):has(+ .usine-bloc-stack--text01-feat02) .usine-bloc-header-01__layout--media-left .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image {
  content: url("../../assets/img/header-01-bloc-1-hero-laptop.png") !important;
  background-color: #3e2b17 !important;
}

.usine-bloc-header-01--hero-fluid .usine-bloc-header-01__media,
.usine-bloc-header-01--hero-fluid .usine-bloc-header-01__image-wrapper {
  background-color: #3e2b17 !important;
  border-radius: var(--usine-bloc-header-01-image-radius, 8px) !important;
  overflow: hidden !important;
}

.usine-bloc-header-01--hero-fluid .usine-bloc-header-01__image,
.usine-bloc-header-01--hero-fluid .usine-bloc-header-01__image-wrapper {
  border-radius: var(--usine-bloc-header-01-image-radius, 8px) !important;
}

.usine-bloc-header-01--hero-fluid .usine-bloc-header-01__title .usine-bloc-header-01__title-highlight {
  color: #9f2b2c !important;
}

/* Header #1: blue highlights for Wordpress / 10 jours / 990€ */
#header-01-fc-bloc_header_01-1 .usine-bloc-header-01__title .usine-bloc-header-01__title-highlight {
  color: #FF5700 !important;
}

/* ============================================
   BANNER MODE (media_position = "background")
   Full-width banner with image as background,
   text overlaid and centered, border-radius on
   the entire banner container.
   ============================================ */

.usine-bloc-header-01__layout--media-background {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  min-height: clamp(20rem, 55vh, 30rem);
  max-width: 100%;
  border-radius: var(--usine-header-banner-radius, 16px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  gap: 0;
}

/* Dark overlay for text readability */
.usine-bloc-header-01__layout--media-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
  border-radius: inherit;
}

/* Content sits above overlay */
.usine-bloc-header-01__layout--media-background .usine-bloc-header-01__content {
  position: relative;
  z-index: 2;
  align-items: center;
  max-width: min(800px, 100%);
  padding: clamp(3rem, 10vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
}

.usine-bloc-header-01__layout--media-background .usine-bloc-header-01__inner-wrapper {
  align-items: center;
}

.usine-bloc-header-01__layout--media-background .usine-bloc-header-01__text-group {
  align-items: center;
}

/* Override text colors to white for banner mode */
.usine-bloc-header-01__layout--media-background .usine-bloc-header-01__title {
  font-size: clamp(1.75rem, 0.9rem + 3.5vw, 3.25rem) !important;
  line-height: 1.08 !important;
}

.usine-bloc-header-01__layout--media-background .usine-bloc-header-01__tagline {
  font-size: clamp(0.875rem, 0.35rem + 1.2vw, 1rem) !important;
}

.usine-bloc-header-01__layout--media-background .usine-bloc-header-01__description {
  font-size: clamp(0.9375rem, 0.8rem + 0.55vw, 1.125rem) !important;
}

.usine-bloc-header-01__layout--media-background .usine-bloc-header-01__tagline,
.usine-bloc-header-01__layout--media-background .usine-bloc-header-01__title,
.usine-bloc-header-01__layout--media-background .usine-bloc-header-01__description,
.usine-bloc-header-01__layout--media-background .usine-bloc-header-01__feature-text,
.usine-bloc-header-01__layout--media-background .usine-bloc-header-01__review-score,
.usine-bloc-header-01__layout--media-background .usine-bloc-header-01__review-count {
  color: #FFFFFF;
}

/* Buttons centered in banner */
.usine-bloc-header-01__layout--media-background .usine-bloc-header-01__buttons {
  justify-content: center;
}

/* Primary button white on dark background */
.usine-bloc-header-01__layout--media-background .usine-bloc-header-01__btn--primary {
  background-color: #FFFFFF;
  color: #232425;
}

/* Secondary button white outline */
.usine-bloc-header-01__layout--media-background .usine-bloc-header-01__btn--secondary {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

/* Features row centered in banner */
.usine-bloc-header-01__layout--media-background .usine-bloc-header-01__features {
  justify-content: center;
}

/* Review badge on banner */
.usine-bloc-header-01__layout--media-background .usine-bloc-header-01__review {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
}

/* ============================================
   CONTENT COLUMN
   Figma: comp_content_header_group
   ============================================ */

.usine-bloc-header-01__content {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;           /* RC-11: vertically center text in its half */
  gap: 40px;                         /* FIX: reduced from 56px to tighten content spacing */
}

/* RC-HEADER-RADIUS: border-radius only when content-panel has its own bg distinct
   from the image side. When the bg is continuous (same as section bg), radius breaks
   the visual continuity that the maquette expects. The radius comes from ACF
   inline styles via usine_auto_styles when explicitly set. */
.usine-bloc-header-01__content--panel {
  align-self: stretch;
  justify-content: center;
  padding: 48px 56px;
  border-radius: 0;
  box-sizing: border-box;
}

/* Inner wrapper: content_all + actions + review */
.usine-bloc-header-01__inner-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* P11: when content has text-align center (from ACF), center flex children too */
.usine-bloc-header-01__content[style*="text-align: center"] .usine-bloc-header-01__inner-wrapper {
  align-items: center;
}
.usine-bloc-header-01__content[style*="text-align: center"] .usine-bloc-header-01__buttons {
  justify-content: center;
}

/* Text group: tagline + headline + description */
.usine-bloc-header-01__text-group {
  display: flex;
  flex-direction: column;
  gap: 20px;                         /* RC-26: increased from 16px for better title/desc/CTA spacing */
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

/* Tagline — échelle fluide (≈ 14–16px), priorité sur inline ACF */
.usine-bloc-header-01__tagline {
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(0.875rem, 0.35rem + 1.2vw, 1rem) !important;
  line-height: 1.5;
  color: inherit;
  margin: 0;
}

/* Titre — fluide ≈ 28–52px selon viewport */
.usine-bloc-header-01__title {
  font-family: var(--usine-font-family-heading, 'Bricolage Grotesque', sans-serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 0.85rem + 2.8vw, 3.25rem) !important;
  line-height: 1.05;
  letter-spacing: 0;
  color: inherit;
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Maquette (media-left) : titre en Regular */
.usine-bloc-header-01__layout--media-left .usine-bloc-header-01__title {
  font-weight: 400 !important;
}

/* Description — fluide ≈ 15–18px */
.usine-bloc-header-01__description {
  font-family: inherit;
  font-weight: 400;
  font-size: clamp(0.9375rem, 0.8rem + 0.55vw, 1.125rem) !important;
  line-height: 1.5;
  color: inherit;
  margin: 0;
}

.usine-bloc-header-01__description p {
  margin: 0 0 clamp(0.5rem, 1.2vw, 1rem) 0;
}

.usine-bloc-header-01__description p:last-child {
  margin-bottom: 0;
}

/* ============================================
   BUTTONS
   Figma: el_primary_button, el_secondary_button
   ============================================ */

.usine-bloc-header-01__buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;                         /* Figma: gap-16px */
  /* P11: respect parent text-align center for CTA alignment */
  justify-content: inherit;
}

/* Button base — typo et hauteur fluides (≈ 16–20px) */
.usine-bloc-header-01__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: clamp(2.75rem, 3vw + 2.25rem, 3rem);
  height: auto;
  padding: clamp(0.5rem, 1vw, 0.5rem) clamp(1rem, 2vw, 1.5rem);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 0.75rem + 0.9vw, 1.25rem) !important;
  line-height: 1.5;
  text-decoration: none;
  border-radius: inherit;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  position: relative;
  overflow: hidden;
  /* Ne pas animer outline/border (évite l’effet « double trait » au clic / focus souris). */
  transition: transform 0.25s ease;
}

/* Keep header CTAs visually active even when rendered as non-clickable fallback spans */
.usine-bloc-header-01__btn.btn-disabled,
.usine-bloc-header-01__btn[aria-disabled="true"] {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

/* Primary button — inline styles from usine_render_button pilot colors */
.usine-bloc-header-01__btn--primary {
  background-color: inherit;
  color: inherit;
  border: none;
}

/* Secondary button — inline styles pilot colors */
.usine-bloc-header-01__btn--secondary {
  background-color: transparent;
  color: inherit;
  border: 1px solid currentColor;
}

/* Survol uniquement : pas de lift au focus souris (évite superposition avec l’état cliqué). */
.usine-bloc-header-01__btn:hover {
  transform: translateY(-2px);
}

.usine-bloc-header-01__btn:active {
  transform: translateY(0);
}

/* Desktop : libellés CTA sur une ligne ; le fluide reprend le dessous sur petits écrans */
@media (min-width: 769px) {
  .usine-bloc-header-01__btn {
    white-space: nowrap;
  }
}

/* Clic / focus souris : pas d’outline (la bordure du secondaire suffit — pas de double trait). */
.usine-bloc-header-01__btn:focus {
  outline: none;
}

/* Focus clavier uniquement (accessibilité). */
.usine-bloc-header-01__btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Button icons */
.usine-bloc-header-01__btn .btn-icon-left,
.usine-bloc-header-01__btn .btn-icon-right {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ============================================
   REVIEW - Figma: subcomp_review
   ============================================ */

.usine-bloc-header-01__review {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  border-radius: 9999px;
  background-color: #F9FAFB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  width: fit-content;
}

/* Maquette hero (layout media-left) : badge review sans fond ni shadow, et sans icône à gauche */
.usine-bloc-header-01__layout--media-left .usine-bloc-header-01__review,
.usine-bloc-header-01__layout--media-right .usine-bloc-header-01__review {
  background-color: transparent !important;
  box-shadow: none !important;
}

.usine-bloc-header-01__layout--media-left .usine-bloc-header-01__review-logo,
.usine-bloc-header-01__layout--media-right .usine-bloc-header-01__review-logo {
  display: none !important;
}

/* Maquette : le badge "Noté 4.8 sur 5" sans padding */
.usine-bloc-header-01__layout--media-left .usine-bloc-header-01__review {
  padding: 0 !important;
}

/* Maquette (media-left) : 32px entre CTA et review */
.usine-bloc-header-01__layout--media-left .usine-bloc-header-01__buttons + .usine-bloc-header-01__review {
  margin-top: 32px;
}

/* Legacy .review class (for render.php usine_render_review) */
.usine-bloc-header-01__review .review {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  padding: 0;
  border: none;
}

.usine-bloc-header-01__review-logo {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.usine-bloc-header-01__review-logo svg,
.usine-bloc-header-01__review-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.usine-bloc-header-01__review-score {
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(0.8125rem, 0.7rem + 0.35vw, 0.875rem) !important;
  line-height: 1.4;
  color: inherit;
}

.usine-bloc-header-01__review-stars {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 2px;                          /* Figma: gap-2px */
}

/* Legacy selector */
.review__stars {
  display: flex;
  gap: 2px;
}

.usine-bloc-header-01__review-star {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Header #1 : étoiles d'avis en orange (#FF5700) — SVG rendu via <img> */
section#header-01-fc-bloc_header_01-1 .usine-bloc-header-01__review-star {
  filter: invert(45%) sepia(97%) saturate(3712%) hue-rotate(2deg) brightness(103%) contrast(103%);
}

/* Legacy selector */
.review__stars .star-icon {
  width: 24px;
  height: 24px;
}

.usine-bloc-header-01__review-count {
  font-family: inherit;
  font-weight: 400;
  font-size: clamp(0.75rem, 0.65rem + 0.3vw, 0.8125rem) !important;
  line-height: 1.4;
  color: inherit;
}

/* ============================================
   FEATURES / ICON+TEXT - Figma: layout_spacer_repeater
   ============================================ */

.usine-bloc-header-01__features {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px 32px;                    /* Figma: row-gap 16px, col-gap 32px */
  align-items: flex-start;
  align-content: flex-start;
  width: 100%;
}

.usine-bloc-header-01__features--surface {
  padding: 16px 24px;
  border-radius: 8px;
  background-color: #F7F6F2;
}

/* Legacy class */
.usine-bloc-header-01__icon-texts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  width: 100%;
}

.usine-bloc-header-01__feature {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 8px;                          /* Figma: gap-8px */
  width: 228px;                      /* Figma: w-228px */
  max-width: 100%;
}

.usine-bloc-header-01__features--surface .usine-bloc-header-01__feature {
  width: auto;
  flex: 0 1 auto;
}

/* Legacy class */
.usine-bloc-header-01 .icon-text {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 228px;
  max-width: 100%;
}

.usine-bloc-header-01__feature-icon {
  width: 24px;                       /* Figma: 24x24 */
  height: 24px;
  flex-shrink: 0;
}

/* Legacy class */
.usine-bloc-header-01 .icon-text__icon {
  width: var(--us-icon-size, 24px);
  height: var(--us-icon-size, 24px);
  flex-shrink: 0;
  box-sizing: border-box;
}

.usine-bloc-header-01 .icon-text__icon.icon--wrapped {
  box-sizing: content-box;
}

.usine-bloc-header-01__feature-text {
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(0.9375rem, 0.8rem + 0.45vw, 1.125rem) !important;
  line-height: 1.5;
  color: inherit;
}

/* ============================================
   MEDIA (IMAGE) - Figma: subcomp_placeholder_square
   ============================================ */

.usine-bloc-header-01__media {
  flex: 1 1 0%;                      /* ~50 % avec colonne texte */
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background-color: #3e2b17;
  align-self: center;
}

/*
 * Cadre photo maquette : fond brun, coins arrondis, ratio ~4:3, marge intérieure,
 * image contenue (effet laptop centré dans le cadre).
 */
.usine-bloc-header-01__image-wrapper {
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--usine-bloc-header-01-image-inset, clamp(16px, 3.5vw, 28px));
  background-color: var(--usine-bloc-header-01-image-bg, #3e2b17);
  border-radius: var(--usine-bloc-header-01-image-radius, 8px) !important;
}

.usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3;
}

.usine-bloc-header-01__image {
  display: block;
  flex: 0 1 auto;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: var(--usine-bloc-header-01-image-radius, 8px) !important;
  background-color: transparent !important;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Maquette hero (layout media-left) : forcer le rayon exact 8px */
.usine-bloc-header-01__layout--media-left .usine-bloc-header-01__image-wrapper,
.usine-bloc-header-01__layout--media-left .usine-bloc-header-01__image,
.usine-bloc-header-01__layout--media-right .usine-bloc-header-01__image-wrapper,
.usine-bloc-header-01__layout--media-right .usine-bloc-header-01__image {
  border-radius: 8px !important;
}

/* Header #6: remove background behind the image */
section#header-01-fc-bloc_header_01-6 .usine-bloc-header-01__media,
section#header-01-fc-bloc_header_01-6 .usine-bloc-header-01__image-wrapper {
  background-color: transparent !important;
}

/* Header #1: remove background behind the image */
section#header-01-fc-bloc_header_01-1 .usine-bloc-header-01__media,
section#header-01-fc-bloc_header_01-1 .usine-bloc-header-01__image-wrapper {
  background-color: transparent !important;
}

.usine-bloc-header-01__image.is-loaded {
  opacity: 1;
  transform: scale(1);
}

/*
 * Layout texte + média, une seule image : l’img remplit le cadre (object-fit: cover).
 * :only-child = même cas que aspect-ratio 4/3 sur le wrapper — hauteur définie.
 */
.usine-bloc-header-01__layout--media-left .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child,
.usine-bloc-header-01__layout--media-right .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child {
  padding: 0;
  display: block;
  position: relative;
  overflow: hidden;
}

.usine-bloc-header-01__layout--media-left .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image,
.usine-bloc-header-01__layout--media-right .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  flex: none;
  object-fit: cover;
  object-position: center;
}

/* =============================================================================
   HERO #header-01-fc-bloc_header_01-8 — fluide uniquement (clamp, flex-wrap, sans MQ)
   Aucun autre bloc : #11 et le reste du site inchangés hors exclusions ci-dessous.
   ============================================================================= */

main#primary > .page-content-wrapper > .entry-content > section#header-01-fc-bloc_header_01-8.usine-bloc-header-01,
section#header-01-fc-bloc_header_01-8.usine-bloc-header-01 {
  padding: 24px clamp(1rem, 4vw, var(--section-padding-x, 64px)) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__layout:not(.usine-bloc-header-01__layout--media-background) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  gap: clamp(1rem, 3vw, 2.5rem) !important;
  min-height: clamp(16rem, 38vw, 30rem) !important;
}

section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__content {
  flex: 1 1 300px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  gap: clamp(1rem, 2.5vw, 2rem) !important;
}

section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__inner-wrapper {
  gap: clamp(0.75rem, 2vw, 1.5rem) !important;
}

section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__text-group {
  gap: clamp(0.75rem, 2vw, 1.25rem) !important;
}

section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__tagline {
  font-size: clamp(0.875rem, 0.35rem + 1.2vw, 1rem) !important;
  line-height: 1.5 !important;
}

/* Même échelle que les titres FAQ « text-title-desktop-h2 » : 43px desktop, 30px tablette, 28px mobile */
section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__title {
  font-size: 2.6875rem !important; /* 43px */
  line-height: 1 !important;
}

@media (max-width: 1024px) {
  section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__title {
    font-size: 30px !important;
  }
}

@media (max-width: 768px) {
  section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__title {
    font-size: 28px !important;
  }
}

section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__description {
  font-size: clamp(0.9375rem, 0.8rem + 0.55vw, 1.125rem) !important;
  line-height: 1.5 !important;
}

section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__description p {
  margin: 0 0 clamp(0.5rem, 1.2vw, 1rem) 0 !important;
}

section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  width: auto !important;
  max-width: 100% !important;
}

section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__btn,
section#header-01-fc-bloc_header_01-8.usine-bloc-header-01 .btn {
  width: auto !important;
  max-width: 100% !important;
  min-height: clamp(2.75rem, 4vw + 1.25rem, 3rem) !important;
  height: auto !important;
  padding: clamp(0.5rem, 1.2vw, 0.5rem) clamp(0.875rem, 2.5vw, 1.5rem) !important;
  font-size: clamp(1rem, 0.75rem + 0.9vw, 1.25rem) !important;
  white-space: normal !important;
}

section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__review-score {
  font-size: clamp(0.8125rem, 0.7rem + 0.35vw, 0.875rem) !important;
}

section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__review-count {
  font-size: clamp(0.75rem, 0.65rem + 0.3vw, 0.8125rem) !important;
}

section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__feature-text {
  font-size: clamp(0.9375rem, 0.8rem + 0.45vw, 1.125rem) !important;
}

section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__media {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 300px !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  align-self: stretch !important;
  background-color: transparent !important;
  gap: 0 !important;
  grid-template-columns: unset !important;
}

section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: clamp(12rem, 32vw, 24rem) !important;
  height: 100% !important;
  aspect-ratio: unset !important;
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
  background-color: #ededed !important;
  border-radius: 0 !important;
    padding: 0 !important;
}

section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image {
  position: absolute !important;
    inset: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0 !important;
    max-height: none !important;
}

/* Header #8 tablette + desktop : image full-bleed dans le wrapper (pas d'inset). */
@media (min-width: 769px) {
  section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__layout--media-right .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child,
  section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__layout--media-left .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child {
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__layout--media-right .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image,
  section#header-01-fc-bloc_header_01-8 .usine-bloc-header-01__layout--media-left .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
  }
}

/* =============================================================================
   HERO #header-01-fc-bloc_header_01-11 — fluide uniquement (clamp + flex-wrap, sans MQ)
   Isolé : n’impacte aucun autre bloc. Deux colonnes ~50/50 via flex: 1 1 300px ;
   l’image remplit la hauteur utile du hero.
   ============================================================================= */

#header-01-fc-bloc_header_01-11.usine-bloc-header-01,
main#primary > .page-content-wrapper > .entry-content > section#header-01-fc-bloc_header_01-11.usine-bloc-header-01 {
  padding: clamp(1rem, 5vw, 5rem) clamp(1rem, 4vw, 4rem) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

#header-01-fc-bloc_header_01-11 .usine-bloc-header-01__layout:not(.usine-bloc-header-01__layout--media-background),
main#primary > .page-content-wrapper > .entry-content > section#header-01-fc-bloc_header_01-11 .usine-bloc-header-01__layout:not(.usine-bloc-header-01__layout--media-background) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  gap: clamp(1rem, 3vw, 2.5rem) !important;
  min-height: clamp(16rem, 38vw, 30rem) !important;
}

#header-01-fc-bloc_header_01-11 .usine-bloc-header-01__content,
main#primary > .page-content-wrapper > .entry-content > section#header-01-fc-bloc_header_01-11 .usine-bloc-header-01__content {
  flex: 1 1 300px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  gap: clamp(1rem, 3vw, 2.5rem) !important;
}

#header-01-fc-bloc_header_01-11 .usine-bloc-header-01__inner-wrapper {
  gap: clamp(0.625rem, 2vw, 1.5rem) !important;
}

#header-01-fc-bloc_header_01-11 .usine-bloc-header-01__text-group {
  gap: clamp(0.75rem, 2vw, 1.25rem) !important;
}

#header-01-fc-bloc_header_01-11 .usine-bloc-header-01__tagline {
  font-size: clamp(0.875rem, 0.35rem + 1.2vw, 1rem) !important;
  line-height: 1.5 !important;
}

#header-01-fc-bloc_header_01-11 .usine-bloc-header-01__title {
  font-size: clamp(1.75rem, 0.85rem + 2.8vw, 2.6875rem) !important;
  line-height: 1.05 !important;
}

#header-01-fc-bloc_header_01-11 .usine-bloc-header-01__description {
  font-size: clamp(0.9375rem, 0.8rem + 0.55vw, 1.125rem) !important;
  line-height: 1.5 !important;
}

#header-01-fc-bloc_header_01-11 .usine-bloc-header-01__description p {
  margin: 0 0 clamp(0.5rem, 1.2vw, 1rem) 0 !important;
}

#header-01-fc-bloc_header_01-11 .usine-bloc-header-01__buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  width: auto !important;
  max-width: 100% !important;
}

#header-01-fc-bloc_header_01-11 .usine-bloc-header-01__btn,
#header-01-fc-bloc_header_01-11.usine-bloc-header-01 .btn {
  min-height: clamp(2.75rem, 4vw + 1.5rem, 3rem) !important;
  height: auto !important;
  padding: clamp(0.5rem, 1.2vw, 0.5rem) clamp(0.875rem, 2.5vw, 1.5rem) !important;
  font-size: clamp(1rem, 0.75rem + 0.9vw, 1.25rem) !important;
  white-space: normal !important;
}

#header-01-fc-bloc_header_01-11 .usine-bloc-header-01__media,
main#primary > .page-content-wrapper > .entry-content > section#header-01-fc-bloc_header_01-11 .usine-bloc-header-01__media {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 300px !important;
  flex-grow: 1 !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  align-self: stretch !important;
  background-color: transparent !important;
  gap: 0 !important;
  grid-template-columns: unset !important;
}

#header-01-fc-bloc_header_01-11 .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child {
  flex: 1 1 auto !important;
  align-self: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: clamp(14rem, 36vw, 28rem) !important;
  height: 100% !important;
  aspect-ratio: unset !important;
  padding: 0 !important;
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
  background-color: #ededed !important;
  border-radius: 8px !important;
}

#header-01-fc-bloc_header_01-11 .usine-bloc-header-01__layout--media-left .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image,
#header-01-fc-bloc_header_01-11 .usine-bloc-header-01__layout--media-right .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image,
main#primary > .page-content-wrapper > .entry-content > section#header-01-fc-bloc_header_01-11 .usine-bloc-header-01__layout--media-left .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 8px !important;
}

/* Variante laptop (content: url) : cadre fluide, image bornée au wrapper */
#header-01-fc-bloc_header_01-11.usine-bloc-header-01--hero-fluid-laptop .usine-bloc-header-01__layout--media-left .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image,
#header-01-fc-bloc_header_01-11.usine-bloc-header-01--hero-fluid-laptop .usine-bloc-header-01__layout--media-right .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Scope local et stable: page "comment ca marche" + header ciblé */
body.page-id-3578 #header-01-fc-bloc_header_01-1 .usine-bloc-header-01__media {
  background-color: #3e2b17 !important;
}

/* Comment ça marche : ajuster uniquement le cadrage visible de l'image */
body.page-id-3578 #header-01-fc-bloc_header_01-1 .usine-bloc-header-01__layout--media-left .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child {
  border-radius: 8px !important;
  overflow: hidden !important;
}

/* Mockup laptop : hors landing fluide — même remplissage du cadre que le hero standard */
section#header-01-fc-bloc_header_01-1:not(.usine-bloc-header-01--hero-fluid) .usine-bloc-header-01__layout--media-left .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image,
main#primary > .page-content-wrapper > .entry-content > section#header-01-fc-bloc_header_01-1:not(.usine-bloc-header-01--hero-fluid):has(+ .usine-bloc-stack--text01-feat02) .usine-bloc-header-01__layout--media-left .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image {
  content: url("../../assets/img/header-01-bloc-1-hero-laptop.png") !important;
  background-color: #3e2b17 !important;
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  flex: none !important;
  border-radius: 8px !important;
  object-fit: cover !important;
  object-position: center center !important;
}

section#header-01-fc-bloc_header_01-1:not(.usine-bloc-header-01--hero-fluid) .usine-bloc-header-01__media {
  border-radius: 8px !important;
  overflow: hidden !important;
}

section#header-01-fc-bloc_header_01-1:not(.usine-bloc-header-01--hero-fluid) .usine-bloc-header-01__image-wrapper,
section#header-01-fc-bloc_header_01-1:not(.usine-bloc-header-01--hero-fluid) .usine-bloc-header-01__image {
  border-radius: 8px !important;
}

body.page-id-3578 #header-01-fc-bloc_header_01-1 .usine-bloc-header-01__image-wrapper {
  background-color: #3e2b17 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

/* Comment ca marche : image mockup uniquement pour le bloc "Votre site créé simplement..." */
body.page-id-3578 section#header-01-fc-bloc_header_01-1:not(.usine-bloc-header-01--hero-fluid) .usine-bloc-header-01__layout--media-left .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image,
body.page-id-3578 main#primary > .page-content-wrapper > .entry-content > section#header-01-fc-bloc_header_01-1:not(.usine-bloc-header-01--hero-fluid):has(+ .usine-bloc-stack--text01-feat02) .usine-bloc-header-01__layout--media-left .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image {
  content: url("../../assets/headers/header-ccm-bloc-1-webiteasy-phone-v2.png") !important;
}

/* Comment ca marche : meme image forcee si le bloc passe en variante hero-fluid-laptop. */
body.page-id-3578 section#header-01-fc-bloc_header_01-1.usine-bloc-header-01--hero-fluid-laptop .usine-bloc-header-01__layout--media-left .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image,
body.page-id-3578 section#header-01-fc-bloc_header_01-1.usine-bloc-header-01--hero-fluid-laptop .usine-bloc-header-01__layout--media-right .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image,
body.page-id-3578 main#primary > .page-content-wrapper > .entry-content > section#header-01-fc-bloc_header_01-1.usine-bloc-header-01--hero-fluid-laptop:has(+ .usine-bloc-stack--text01-feat02) .usine-bloc-header-01__layout--media-left .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image {
  content: url("../../assets/headers/header-ccm-bloc-1-webiteasy-phone-v2.png") !important;
}

section#header-01-fc-bloc_header_01-1:not(.usine-bloc-header-01--hero-fluid) .usine-bloc-header-01__media,
section#header-01-fc-bloc_header_01-1:not(.usine-bloc-header-01--hero-fluid) .usine-bloc-header-01__image-wrapper {
  background-color: #3e2b17 !important;
}

/* Placeholder (empty state) */
.usine-bloc-header-01__placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at top left, rgba(36, 100, 209, 0.18), transparent 38%),
    linear-gradient(135deg, #f8fafc 0%, #e7edf6 100%);
  border: 1px solid #d7e0ea;
  border-radius: var(--usine-bloc-header-01-image-radius, 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.usine-bloc-header-01__placeholder-icon {
  width: 64px;
  height: 64px;
  opacity: 0.62;
  color: #5f6f86;
}

/* ============================================
   ALIGNMENTS (WordPress support)
   ============================================ */

.usine-bloc-header-01.alignwide {
  max-width: 1400px;
}

.usine-bloc-header-01.alignfull {
  max-width: none;
}

.usine-bloc-header-01.alignfull .usine-bloc-header-01__layout {
  max-width: none;
}

/* RC-26 THG-26/31: When ACF sets padding to 0 (edge-to-edge), remove horizontal padding too */
.usine-bloc-header-01[style*="padding-top: 0"][style*="padding-bottom: 0"] {
  padding-inline: 0;
}

/* ============================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ============================================ */

@media (min-width: 1025px) {
  section#header-01-fc-bloc_header_01-6.usine-bloc-header-01 {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  .usine-bloc-header-01__layout.usine-bloc-header-01__layout--media-right {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Header #6 desktop : 24px de padding vertical sur le layout */
  section#header-01-fc-bloc_header_01-6 .usine-bloc-header-01__layout.usine-bloc-header-01__layout--media-right {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
  }

  /* Header #6 desktop : chaîne étirée pour que l'image respecte le padding du layout */
  section#header-01-fc-bloc_header_01-6 .usine-bloc-header-01__media {
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Header #6 desktop : aucune marge interne, image full-bleed dans le wrapper */
  section#header-01-fc-bloc_header_01-6 .usine-bloc-header-01__layout--media-right .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child,
  section#header-01-fc-bloc_header_01-6 .usine-bloc-header-01__layout--media-left .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child {
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    aspect-ratio: unset !important;
    overflow: hidden !important;
  }

  section#header-01-fc-bloc_header_01-6 .usine-bloc-header-01__layout--media-right .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image,
  section#header-01-fc-bloc_header_01-6 .usine-bloc-header-01__layout--media-left .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

@media (max-width: 1024px) {
  /* Header #1 tablette/mobile : +15% d'interlignage sur le titre */
  section#header-01-fc-bloc_header_01-1 .usine-bloc-header-01__title {
    line-height: 1.15 !important;
  }

  .usine-bloc-header-01:not(.usine-bloc-header-01--hero-fluid):not(#header-01-fc-bloc_header_01-8) {
    padding: 64px var(--section-padding-x, 64px);
  }

  .usine-bloc-header-01__layout {
    gap: 48px;
  }

  .usine-bloc-header-01__layout--content-panel {
    gap: 0;
  }

  .usine-bloc-header-01__content {
    max-width: 100%;
  }

  .usine-bloc-header-01__feature,
  .usine-bloc-header-01 .icon-text {
    width: 100%;
  }

  /* Header #1 (zone intermédiaire) : éviter que les libellés sortent des boutons */
  section#header-01-fc-bloc_header_01-1 .usine-bloc-header-01__buttons {
    flex-wrap: wrap;
    gap: 12px;
  }

  section#header-01-fc-bloc_header_01-1 .usine-bloc-header-01__btn,
  section#header-01-fc-bloc_header_01-1 .usine-bloc-header-01__button .usine-bloc-header-01__btn {
    width: auto !important;
    min-width: 220px;
    max-width: 100%;
    white-space: nowrap !important;
    overflow: visible;
    text-overflow: clip;
    flex: 0 1 auto;
  }

  /* Header #1 tablette/mobile : image ~50% moins haute */
  section#header-01-fc-bloc_header_01-1 .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child {
    aspect-ratio: 8 / 3 !important; /* 4/3 -> 8/3 = hauteur divisée par 2 */
    overflow: hidden !important;
  }

  section#header-01-fc-bloc_header_01-1 .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child > .usine-bloc-header-01__image,
  section#header-01-fc-bloc_header_01-1 .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child > img.usine-bloc-header-01__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

/* Header #1 tablette uniquement : -15% taille du titre (52px -> ~44px) */
@media (min-width: 769px) and (max-width: 1024px) {
  section#header-01-fc-bloc_header_01-1 .usine-bloc-header-01__title {
    font-size: 44px !important;
  }
}

/* Header #8 : tablette uniquement, +20% de hauteur du bloc */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Header #6 tablette : réduire la hauteur globale du bloc */
  section#header-01-fc-bloc_header_01-6.usine-bloc-header-01 {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  section#header-01-fc-bloc_header_01-6 .usine-bloc-header-01__layout {
    min-height: 360px !important;
  }

  /* Header #1 tablette : réduire la hauteur globale du bloc */
  section#header-01-fc-bloc_header_01-1.usine-bloc-header-01 {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  section#header-01-fc-bloc_header_01-1 .usine-bloc-header-01__layout {
    min-height: 320px !important;
  }

  /* Header #1 tablette : image carrée */
  section#header-01-fc-bloc_header_01-1 .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child {
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
  }

  /* Header #1 tablette : supprimer le fond derrière l'image */
  section#header-01-fc-bloc_header_01-1 .usine-bloc-header-01__media,
  section#header-01-fc-bloc_header_01-1 .usine-bloc-header-01__image-wrapper {
    background-color: transparent !important;
  }

  section#header-01-fc-bloc_header_01-1 .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child > .usine-bloc-header-01__image,
  section#header-01-fc-bloc_header_01-1 .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child > img.usine-bloc-header-01__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  section#header-01-fc-bloc_header_01-8.usine-bloc-header-01 {
    min-height: 408px !important; /* 340px * 1.2 */
  }

  /* Header #6 tablette : image carrée */
  section#header-01-fc-bloc_header_01-6 .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child {
    aspect-ratio: 1 / 1 !important;
  }

  section#header-01-fc-bloc_header_01-6 .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child > .usine-bloc-header-01__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

/* ============================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
  .usine-bloc-header-01:not(.usine-bloc-header-01--hero-fluid):not(#header-01-fc-bloc_header_01-8) {
    padding: 48px var(--section-padding-x, 64px);
  }

  .usine-bloc-header-01:not(.usine-bloc-header-01--hero-fluid):not(#header-01-fc-bloc_header_01-8) .usine-bloc-header-01__layout {
    flex-direction: column;
    gap: 24px;
    min-height: 0;                   /* RC-11: no forced min-height when stacked */
  }

  .usine-bloc-header-01__layout--content-panel {
    gap: 0;
  }

  .usine-bloc-header-01:not(.usine-bloc-header-01--hero-fluid):not(#header-01-fc-bloc_header_01-8) .usine-bloc-header-01__content {
    gap: 32px;
  }

  .usine-bloc-header-01:not(.usine-bloc-header-01--hero-fluid):not(#header-01-fc-bloc_header_01-8) .usine-bloc-header-01__inner-wrapper {
    gap: 24px;
  }

  .usine-bloc-header-01:not(.usine-bloc-header-01--hero-fluid):not(#header-01-fc-bloc_header_01-8) .usine-bloc-header-01__text-group {
    gap: 16px;
  }

  .usine-bloc-header-01:not(.usine-bloc-header-01--hero-fluid):not(#header-01-fc-bloc_header_01-8) .usine-bloc-header-01__buttons {
    flex-direction: column;
    width: 100%;
  }

  .usine-bloc-header-01:not(.usine-bloc-header-01--hero-fluid):not(#header-01-fc-bloc_header_01-8) .usine-bloc-header-01__btn,
  .usine-bloc-header-01:not(.usine-bloc-header-01--hero-fluid):not(#header-01-fc-bloc_header_01-8) .usine-bloc-header-01 .btn {
    width: 100%;
    justify-content: center;
  }

  .usine-bloc-header-01__review {
    flex-wrap: wrap;
  }

  .usine-bloc-header-01__features,
  .usine-bloc-header-01__icon-texts {
    flex-direction: column;
    gap: 16px;
  }

  .usine-bloc-header-01:not(.usine-bloc-header-01--hero-fluid):not(#header-01-fc-bloc_header_01-8) .usine-bloc-header-01__media {
    width: 100%;
    order: -1;
  }

  /* Header #1 mobile: place image after content/review */
  section#header-01-fc-bloc_header_01-1 .usine-bloc-header-01__media {
    order: 2 !important;
  }

  section#header-01-fc-bloc_header_01-1 .usine-bloc-header-01__content {
    order: 1 !important;
  }

  .usine-bloc-header-01:not(.usine-bloc-header-01--hero-fluid):not(#header-01-fc-bloc_header_01-8) .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child {
    aspect-ratio: 4 / 3;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.usine-bloc-header-01.animate-in {
  animation: fadeInUp 0.8s ease forwards;
}

/* Sequential child animations */
.usine-bloc-header-01.animate-in .usine-bloc-header-01__tagline {
  animation: fadeInUp 0.8s ease 0.1s backwards;
}

.usine-bloc-header-01.animate-in .usine-bloc-header-01__title {
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.usine-bloc-header-01.animate-in .usine-bloc-header-01__description {
  animation: fadeInUp 0.8s ease 0.3s backwards;
}

.usine-bloc-header-01.animate-in .usine-bloc-header-01__buttons {
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.usine-bloc-header-01.animate-in .usine-bloc-header-01__review {
  animation: fadeInUp 0.8s ease 0.5s backwards;
}

.usine-bloc-header-01.animate-in .usine-bloc-header-01__features,
.usine-bloc-header-01.animate-in .usine-bloc-header-01__icon-texts {
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .usine-bloc-header-01 {
    page-break-inside: avoid;
  }

  .usine-bloc-header-01__btn,
  .usine-bloc-header-01 .btn,
  .usine-bloc-header-01__image {
    box-shadow: none !important;
  }
}

/* ============================================
   REDUCED MOTION (accessibility)
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .usine-bloc-header-01,
  .usine-bloc-header-01 * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .usine-bloc-header-01__btn:hover,
  .usine-bloc-header-01 .btn:hover {
    transform: none;
  }
}

/* Header #6 tablette + desktop : image full-bleed (AUCUN padding/inset interne). */
@media (min-width: 769px) {
  section#header-01-fc-bloc_header_01-6 .usine-bloc-header-01__layout--media-right .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child,
  section#header-01-fc-bloc_header_01-6 .usine-bloc-header-01__layout--media-left .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child {
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  section#header-01-fc-bloc_header_01-6 .usine-bloc-header-01__layout--media-right .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image,
  section#header-01-fc-bloc_header_01-6 .usine-bloc-header-01__layout--media-left .usine-bloc-header-01__media .usine-bloc-header-01__image-wrapper:only-child .usine-bloc-header-01__image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}
