:root :where(.is-layout-constrained) > *{
  margin-block-start: var(--block-gap, 1.5rem);
}

:root{
  --color-primary:#003C5A;--color-primary-hover:#002B40;--color-secondary:#1A965B;--color-text:#1F2937;--color-heading:#111827;--color-background:#FFFFFF;--color-surface:#F8FAFC;--color-border:#E5E7EB;--color-link:var(--color-primary);--color-link-hover:var(--color-secondary);
  --font-body:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--font-headings:var(--font-body);--font-navigation:var(--font-body);--font-buttons:var(--font-body);
  --body-font-size:clamp(14px, 0.55vw + 7px, 17px);;--body-font-weight:400;--body-bold-font-weight:700;--body-line-height:1.65;--h1-font-size:clamp(2.25rem,5vw,4rem);--h2-font-size:clamp(1.85rem,4vw,3rem);--h3-font-size:clamp(1.45rem,3vw,2rem);--h4-font-size:1.25rem;--headings-font-weight:700;--headings-bold-font-weight:800;--headings-line-height:1.15;--headings-letter-spacing:-.02em;--headings-margin-top:0;--headings-margin-bottom:.65em;
  --nav-font-size:16px;--nav-mobile-font-size:20px;--nav-font-weight:600;--nav-text-transform:none;--nav-letter-spacing:0;--nav-color:var(--color-text);--nav-hover-color:var(--color-primary);--nav-active-color:var(--color-primary);
  --button-font-size:16px;--button-font-weight:700;--button-text-transform:none;--button-letter-spacing:0;--button-radius:8px;--button-padding-y:.85rem;--button-padding-x:1.25rem;--button-margin-top:0;--button-margin-right:0;--button-margin-bottom:0;--button-margin-left:0;
  --container-content:1120px;--container-wide:1400px;--container-full:100%;--site-gutter:24px;--section-spacing:clamp(3rem,7vw,6rem);--block-gap:1.5rem;
  --header-height:88px;--header-mobile-height:72px;--header-bg:#fff;--header-color:var(--color-text);--header-border:var(--color-border);--header-shadow:0 10px 30px rgba(0,0,0,.06);--radius-global:12px;--shadow-default:0 12px 40px rgba(15,23,42,.08)
}
/* Gutenberg palette classes : ne jamais forcer .has-text-color, sinon les couleurs choisies dans l'éditeur sont écrasées. */
.has-primary-color{color:var(--wp--preset--color--primary)!important}.has-primary-background-color{background-color:var(--wp--preset--color--primary)!important}.has-secondary-color{color:var(--wp--preset--color--secondary)!important}.has-secondary-background-color{background-color:var(--wp--preset--color--secondary)!important}.has-accent-color{color:var(--wp--preset--color--accent)!important}.has-accent-background-color{background-color:var(--wp--preset--color--accent)!important}.has-neutral-color{color:var(--wp--preset--color--neutral)!important}.has-neutral-background-color{background-color:var(--wp--preset--color--neutral)!important}.has-light-color{color:var(--wp--preset--color--light)!important}.has-light-background-color{background-color:var(--wp--preset--color--light)!important}.has-dark-color{color:var(--wp--preset--color--dark)!important}.has-dark-background-color{background-color:var(--wp--preset--color--dark)!important}.has-success-color{color:var(--wp--preset--color--success)!important}.has-success-background-color{background-color:var(--wp--preset--color--success)!important}.has-warning-color{color:var(--wp--preset--color--warning)!important}.has-warning-background-color{background-color:var(--wp--preset--color--warning)!important}.has-danger-color{color:var(--wp--preset--color--danger)!important}.has-danger-background-color{background-color:var(--wp--preset--color--danger)!important}

:where(.wp-block-group.has-background) {
    padding: 0
}

.wp-block-paragraph{
  margin-bottom: 1em;
}

.wp-block-columns:has(.is-equal-height-cover){
  align-items:stretch;
}

.wp-block-column:has(.is-equal-height-cover){
  display:flex;
}

/* Image seule dans une colonne (visuel de type bannière à côté d'un texte) :
   elle remplit 100 % de sa figure en mode cover, même sur grand écran où la
   colonne est plus large que le fichier. Les images redimensionnées à la main
   (pictos, logos : classe is-resized) et les SVG ne sont pas concernés. */
@media(min-width:782px){
  .wp-block-columns > .wp-block-column > .wp-block-image:only-child:not(.is-resized):not(:has(img[src$=".svg"])){
    height:100%;
    margin:0;
  }
  .wp-block-columns > .wp-block-column > .wp-block-image:only-child:not(.is-resized):not(:has(img[src$=".svg"])) img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
  }
}

/* La colonne de la bannière s'étire toujours sur la hauteur de la rangée,
   même si un alignement vertical (centre, haut, bas) est choisi sur la colonne. */
.wp-block-columns > .wp-block-column:has(> .is-equal-height-cover){
  align-self:stretch;
}

.wp-block-column:has(.is-equal-height-cover) > .is-equal-height-cover{
  width:100%;
  height:100%;
  min-height:420px;
}


/* Colonne sticky Gutenberg.
 * La colonne reste contrainte par le bloc Columns parent.
 * Le comportement est désactivé lorsque Gutenberg empile les colonnes. */
@media(min-width:782px){
  .wp-block-column.lndigital-column-sticky{
    position:sticky;
    top:var(--lndigital-sticky-top, 100px);
    align-self:flex-start;
  }
}

@media(max-width:781px){
  .wp-block-column.lndigital-column-sticky{
    position:static;
    top:auto;
  }
}

@media(max-width:767px){
  .wp-block-column:has(.is-equal-height-cover){
    display:block;
  }

  .wp-block-column:has(.is-equal-height-cover) > .is-equal-height-cover{
    height:auto;
    min-height:280px;
  }
  .wp-block-columns.lndigital-columns-reverse-mobile {
    flex-direction: column-reverse;
  }
}


/* Vidéo YouTube lancée depuis une image d'aperçu (bloc Vidéo YouTube, fiche produit) :
   le cadre prend toute la largeur disponible, l'iframe le remplit. */
.video-responsive{
  width:100%;
  max-width:100%;
  aspect-ratio:16 / 9;
}
.video-responsive iframe{
  display:block;
  width:100%;
  height:100%;
  border:0;
}

/* Vignette YouTube cliquable (bloc video_youtube, description produit). */
.lnd-yt__poster { cursor: pointer; }
.lnd-yt .lnd-yt__poster[hidden] { display: none !important; }
